Users Manual Instruction Manual

237
CATC BTTRAINER 2.11 CHAPTER
Users Manual
RFSendTest()
RFSendTest (Address, DLCI, Length, Pattern);
Return value
Returns "Success", "Failure", "Not Connected", "Timed Out".
Comments
This command provides means to send an RFCOMM packet with the spec-
ified sequence of bytes.
Example
RFSendTest(Device, 2, 13, ['AB', 'CD', 'EF', '01', '23',
'45', '67', '89', 'AB', 'CD', 'EF', '01', '23']);
RFSetLineStatus
RFSetLineStatus(Address, DLCI, LineStatus)
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device to
query
DLCI DLCI value to
be used for the
channel.
The DLCI value is used for the channel.
Length Length of pat-
tern in the
command
Pattern Pattern to be
sent
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device
Can use “CONNECTED_DEVICE” to set line
status on a master RFCOMM connection. Note
that this will work only if exactly one device is
connected via RFCOMM.
DLCI Data link con-
nection identi-
fier
The DLCI is returned by RFOpenClientChan-
nel()
LineStatus List of strings
representing
the Line Status
Can be “RF_LINE_ERROR”,
“RF_OVERRUN”, “RF_PARITY”,
“RF_FRAMING”