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
8.4.2 T
RANSFERRING AN APPLICATION TO WRAP USING TERMINAL SOFTWARE
If your WRAP is not connected to a LAN, you may use terminal software of your own choice to
transfer data to the WRAP. The WRAP contains an X/Y/Zmodem protocol application, which
allows you to transfer data over the console using almost any terminal software available.
1. Connect your computer to the WRAP management UART using a cross-over serial cable,
and start your terminal software (115 200bps, 8 data bits, no parity, 1 stop bit).
2. Change your working directory to where you want to upload your application, and run
the xmodem application with your application name as parameter.
3. Start Xmodem send from your terminal software.
Example:
[root@wrap /] cd /tmp
[root@wrap /tmp] rx testapp
rx: ready to receive testapp.
now start xmodem (checksum, not CRC) send from your terminal
[root@wrap /tmp]
If you want to save the application to /usr/local/bin (on the flash file system), you will have to
replace 'cd /tmp' with 'cd /usr/local/bin'. To examine the directory structure of the WRAP,
please see Appendix A.
8.4.3 U
SING NFS MOUNT
To use NFS mount, have a NFS share prepared in your development PC and mount the
directory with command "mount -o nolock <dev-pc-ipaddress>:/nfsshare /mnt/nfs". After this,
you can access the share in directory "/mnt/nfs".
8.5 R
UNNING AN APPLICATION TRANSFERRED TO WRAP
To run the application you just transferred to the WRAP, you need access to the WRAP Linux
console, either using terminal software connected to the WRAP management UART or using the
telnet connection (log in as "root" and remember the password, which is "buffy" by default).
After establishing a connection to the WRAP, change the directory to where your application is
located and change file permissions so that it can be executed, then run it.
Example:
[root@wrap /] cd /tmp
[root@wrap /tmp] chmod 755 testapp
[root@wrap /tmp] ./testapp
8.6 USING DEBUGGER (GDB/DDD)
It is possible to use GNU debugger GDB and a graphical user interface, like DDD, for
debugging applications in the WRAP Access Server.
You have to compile with debug options and without symbol stripping to make debugging
work. As mentioned above, this can be done by adding lines "APP_STRIP=false" and "CFLAGS
= -ggdb" to the Makefile below SRC line.
After you have compiled your application with these options and transferred your application to
WRAP, you can start debugging the application as follows:
1) Start gdbserver on the WRAP Access Server
Bluegiga Proprietary, Copyright © Bluegiga Technologies 2001-2004 49 (94)