User's Guide

USER MANUAL WRAP PRODUCT SERIES
After connecting to the WRAP FTP daemon, you need to decide where you want to put your files – either on
the ramdisk for testing purposes or on the flash filesystem for preserving your files between power-offs. The
ramdisk is accessed through the ram-directory and the flash filesystem through the flash-directory after
logging in with FTP.
In the following example we will upload our application to the /tmp directory (on the ramdisk in WRAP)
using a simple FTP client (normally called "ftp" and available both in Linux and Windows command
prompt). User input is shown like this.
$ ftp <wrap-ip-address>
Connected to <wrap-ip-address>.
220 Welcome to Stupid-FTPd server.
User (<wrap-ip-address>:(none)): root
331 Guest login ok, send your e-mail address as password.
Password: buffy (not echoed)
230 User root logged in.
ftp> bin
200 Type set to I.
ftp> cd ram/tmp
250 CWD command successful.
ftp> put testapp
200 PORT command successful.
150 FILE: testapp
226 Transfer complete.
ftp: 133120 bytes sent in 0.91Seconds 145.96Kbytes/sec.
ftp> bye
221 Bye.
If you want to save the application to /usr/local/bin (on the flash filesystem), you will have to replace 'cd
ram/tmp' with 'cd flash/usr/local/bin'. To examine the directory structure on the WRAP, please see the
appendix in the WRAP SDK manual.
4.4.2 T
RANSFERRING FILES TO/FROM WRAP USING TERMINAL SOFTWARE
If your WRAP is not connected to a LAN (either using Ethernet or Bluetooth), you may use your favourite
terminal software (like HyperTerminal in Windows) to transfer data to the WRAP. The WRAP contains an
Xmodem protocol application called "xmodem", which allows it to transfer data over the console using
almost any terminal software available.
1. Connect your computer to the WRAP management UART using the serial cable shipped with the
product, and start your terminal software (115 200bps, 8 data bits, no parity, 1 stop bit, no flow
control).
2. At WRAP’s command prompt, change your working directory to where you want to upload your
application, and run the "xmodem" application in WRAP with your application name as parameter.
To download a file, use "xmodem –s " instead.
3. Start Xmodem send from your terminal software.
Example upload:
/> cd /tmp
/mnt/ram/tmp> xmodem testapp
start xmodem transfer now.
Now start xmodem (checksum, not CRC) send from your terminal.
xmodem receive completed.
Example download:
20 (26)