File Transfer

The SDK comes with utilites — pscp or scp — to transfer files to the device or Emulator.

Windows

On Windows, you can use the pscp (PuTTY Secure Copy) utility that comes with the SDK to transfer files from the host PC to a folder on the device using an SSH connection. You would use pscp at the command line.

Syntax:

pscp -scp -P 10022 -pw "" <source-file> root@localhost:/<path>/<to>/<folder>        

Example:

pscp -scp -P 10022 -pw "" simple root@localhost:/media/internal        

The above example transfers the simple executable (sample application) to the /media/internal folder on the device. The port (-P) is 10022 and an empty string ("") is entered for the password (-pw).

Mac

On the Mac, use scp to transfer files. Launch the Terminal application, then, at the command line, type the command scp. It is used in the same way as Windows except without 'pscp' and without the '-pw' option. After entering the command, you are prompted for the password. Press ENTER and the file is transferred.