User Manual
Table Of Contents
- INTRODUCTION
- CONTROLLING THE ACCESS SERVER
- CONFIGURATION
- USING THE SYSTEM
- BLUETOOTH TECHNOLOGY OVERVIEW
- INTRODUCTION TO SDK
- INSTALLING THE WRAP SOFTWARE DEVELOPMENT ENVIRONMENT
- CREATING WRAP APPLICATIONS
- BLUETOOTH SERVER SOCKET INTERFACE
- I/O API
- ABOUT BLUEGIGA
- APPENDIX A – WRAP DIRECTORY STRUCTURE
USER'S AND DEVELOPER'S GUIDE WRAP MULTIRADIO ACCESS SERVER
1. Tools are prefixed with arm-linux-, so for calling gcc C-compiler you need to call arm-
linux-gcc, etc.
2. Tools are located in "/usr/local/arm/2.95.3/bin/" -directory, which is not in PATH by
default.
8.4 T
RANSFERRING AN APPLICATION TO WRAP HARDWARE
To run an application on the WRAP, it must first be transferred into the WRAP system. There
are several ways of doing this:
1. Over TCP/IP by FTP, SFTP, SCP (using Ethernet or Bluetooth)
2. Over management console by X/Y/Zmodem (using terminal software connected to the
WRAP)
3. Using NFS mount
8.4.1 T
RANSFERRING AN APPLICATION TO WRAP USING (S)FTP OR SCP
FTP is a fast and easy way to upload an application to the WRAP. If you wish to use FTP for
transferring data to and from the WRAP, there has to be an FTP daemon running on the WRAP
connected to your LAN (if an Ethernet interface is used). Normally, this is the case.
After connecting to the WRAP FTP daemon, you need to decide where you want to put your
application – either on the ramdisk for testing purposes, or on the flash file system for
preserving your application between power-offs. The ramdisk is accessed through the ram
directory and the flash file system through the flash directory after logging in with FTP.
In the following example we will transfer our application to the /tmp directory (on the ramdisk)
using a simple FTP client. SFTP works similary. User input is shown
like this.
$ ftp <wrap-ip-address>
Connected to <wrap-ip-address>.
220 Welcome to Stupid-FTPd server.
User (<wrap-ip>:(none)): root
331 Guest login ok, send your e-mail address as password.
Password: buffy (not echoed)
230 User anonymous logged in.
ftp> bin
200 Type set to I.
ftp> cd /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.
SCP transfer is done with command "scp testapp root@<wrapip-address>:/tmp
". If you want
to save the application to /usr/local/bin (on the flash filesystem), you will have to replace
'/tmp' with '/usr/local/bin'. To examine the directory structure of the WRAP, please see
Appendix A.
Bluegiga Proprietary, Copyright © Bluegiga Technologies 2001-2004 48 (94)