User Manual

Table Of Contents
7.6. Making a Bluetooth Connection
CALL
CALL Connect to other device
Synopsis
CALL {bdaddr} SDP
CALL {bdaddr} {psm} L2CAP
CALL {bdaddr} {channel} RFCOMM
CALL {bdaddr} {uuid} RFCOMM
CALL {bdaddr} {channel} PPP [username password]
CALL {bdaddr} {uuid} PPP [username password]
CALL {bdaddr} {channel} WINPPP [username password]
CALL {bdaddr} {uuid} WINPPP [username password]
CALL {bdaddr} {channel} FORK {"/full/path/to/command and parameters"}
CALL {bdaddr} {uuid} FORK {"/full/path/to/command and parameters"}
CALL {bdaddr} {channel} FORK {host:port}
CALL {bdaddr} {uuid} FORK {host:port}
CALL {bdaddr} {PAN-destUUID} [PAN-srcUUID]
Description
The CALL command is used to make a connection to other Bluetooth devices. It returns the link
identifier (with an immediate reply), which will be used in subsequent commands and replies.
Note: Always 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 at the very beginning.
Note: There can only be one pending CALL at a time. You have to wait for the RINGING event before
issuing another CALL. The RINGING event comes almost immediately after the CALL. You get the
ERROR 008 error if you try to establish another call too quickly. In that case, wait for some tens of
milliseconds and retry. Receiving the CONNECT or NO CARRIER reply may take some time, for example,
when the user is keying in the PIN code.
Note: PPP is "raw" PPP without any special handshaking. WINPPP is a Windows RAS handshake
followed by raw PPP. If you are unsure, use WINPPP.
Reply
CALL link_id
RINGING link_id
94