
6.3.1.2. Running Examples........................................................................................53
6.3.2. Creating a New Project .............................................................................................54
6.3.3. Building from the Command Line..........................................................................54
6.3.4. Transferring an Application to Access Server .......................................................55
6.3.4.1. Transferring an Application Using SCP or SFTP......................................55
6.3.4.2. Using SSHFS ..................................................................................................55
6.3.4.3. Transferring an Application Using Terminal Software ...........................55
6.3.4.4. Using NFS Mount .........................................................................................56
6.3.4.5. Using CIFS Mount ........................................................................................56
6.3.5. Running an Application Transferred to Access Server ........................................56
6.3.6. Using GNU Project Debugger (GDB) .....................................................................57
6.3.7. Native SDK .................................................................................................................57
7. iWRAP - The Bluetooth API............................................................................................................59
7.1. Terms........................................................................................................................................59
7.2. Starting iWRAP ......................................................................................................................59
7.3. Writing iWRAP Applications ...............................................................................................59
7.3.1. Forklistener.................................................................................................................60
7.3.2. iWRAP Client .............................................................................................................60
7.4. btcli - iWRAP Command Line Interface Utility.................................................................60
7.5. iWRAP Commands................................................................................................................61
INFO ......................................................................................................................................61
QUIT ......................................................................................................................................62
SET .........................................................................................................................................63
SAVE ......................................................................................................................................73
LOAD ....................................................................................................................................74
PING......................................................................................................................................75
PONG ....................................................................................................................................76
ECHO ....................................................................................................................................77
LOCK.....................................................................................................................................78
UNLOCK ..............................................................................................................................79
SHUTDOWN........................................................................................................................80
SLEEP ....................................................................................................................................81
LOG .......................................................................................................................................82
7.6. Finding Bluetooth Devices....................................................................................................84
INQUIRY...............................................................................................................................84
NAME ...................................................................................................................................85
7.7. Bluetooth Connections ..........................................................................................................86
CALL .....................................................................................................................................86
CONNECT............................................................................................................................88
NO CARRIER.......................................................................................................................90
RING......................................................................................................................................91
RINGING..............................................................................................................................92
CLOSE ...................................................................................................................................93
LIST........................................................................................................................................94
RSSI........................................................................................................................................96
TXPOWER ............................................................................................................................97
BER.........................................................................................................................................98
v