User Manual

Table Of Contents
231
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
“Failure”
“Not Connected”
“Timed Out”
Comments
Sets the line status on a particular RFCOMM connection.
Example
result = RFOpenClientChannel(Device, 1);
DLCI = result[1];
if(result[0] == "Success")
{
status = RFSetLineStatus("CONNECTED_DEVICE", DLCI,
["RF_LINE_ERROR", "RF_FRAMING"]);
Trace("RFSetLineStatus returned: ", status, "\n\n");
}
RFSetModemStatus()
RFSetModemStatus(Address, DLCI, ModemSignals,
BreakLength)
Return value
“Success”
“Failure”
“Not Connected”
“Timed Out”
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device
Can use “CONNECTED_DEVICE” to set
modem status on a master RFCOMM connec-
tion. 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()
ModemSignals List of strings
specifying sig-
nal types
Can be “RF_FLOW”, “RF_RTC”, “RF_RTR”,
“RF_IC”, “RF_DV”, “RF_DSR”, “RF_CTS”,
“RF_RI”, “RF_CD”, “RF_DTR”, “RF_RTS”
BreakLength Indicates the
length of the
break signal in
200 ms units
Must be between 0 and 15 (inclusive). If 0, no
break signal was sent.