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
9.4 C
ONNECTION COMMANDS AND REPLIES
9.4.1 C
ALL
The CALL command is used to call other Bluetooth devices. It returns the link identifier (with
an immediate reply), which will be used in subsequent commands and replies.
Always make sure you check for a correct link_id before processing replies further.
You can use the special "FORK" call type to create an RFCOMM connection and automatically
launch an application which gets the RFCOMM connection bound to its standard input and
output. The client application should modify both the stdout and stdin pipes and set NOECHO,
8BIT and all other necessary modes in the very beginning.
Note 1: There can be only one pending CALL at any time, you have to wait for CONNECT/NO
CARRIER before issuing another CALL.
Note 2: PPP is "raw" PPP without any special handshaking. WINPPP is a Windows RAS
handshake followed by raw PPP. If you are unsure, use WINPPP.
Command:
CALL bdaddr SDP
CALL bdaddr psm L2CAP
CALL bdaddr channel RFCOMM
CALL bdaddr uuid RFCOMM
CALL bdaddr channel PPP
CALL bdaddr uuid PPP
CALL bdaddr channel PPP username password
CALL bdaddr uuid PPP username password
CALL bdaddr channel WINPPP
CALL bdaddr uuid WINPPP
CALL bdaddr channel WINPPP username password
CALL bdaddr uuid WINPPP username password
CALL bdaddr channel FORK /full/path/to/command
CALL bdaddr uuid FORK /full/path/to/command
CALL bdaddr channel FORK "/full/path/to/command and parameters"
CALL bdaddr uuid FORK "/full/path/to/command and parameters"
CALL bdaddr PAN-destUUID
CALL bdaddr PAN-destUUID PAN-srcUUID
Reply: CALL link_id
Example: S: READY.
C: CALL 00:11:22:33:44:55 SDP
S: CALL 0
S: CONNECT 0 SDP
C: CALL 00:11:22:33:44:55 4 PPP
S: CALL 1
S: CONNECT 1 SDP
C: CALL NameOfOtherDevice LAN PPP
S: CALL 1
S: CONNECT 1 SDP
C: CALL 00:11:22:33:44:55 4 WINPPP buffy willow
S: CALL 2
S: CONNECT 2 PPP
Bluegiga Proprietary, Copyright © Bluegiga Technologies 2001-2004 67 (94)