Rfsenddatafrompipe(), Rfreceivedata(), Rfsenddatafrompipe() rfreceivedata() – Teledyne LeCroy Merlins Wand - Users Manual User Manual
Page 239

223
CATC M
ERLIN
’
S
W
AND
2.00
C
HAPTER
C
User’s Manual
Merlin’s Wand Scripting Commands
RFSendDataFromPipe()
RFSendDataFromPipe(Address, DLCI, PipeName)
Return value
•
“Success”
•
“Timed out”
•
“Not supported” (invalid data type)
•
“Not connected”
•
“Pipe not found”
•
“Internal Error”
Comments
An RFCOMM connection must already be established with the device. The
pipe specified must already be set up in the Data Transfer Manager. The
pipe should not be open when RFSendDataFromPipe is called.
Example
RFSendDataFromPipe(Devices[0], dlci, "MyPipe");
RFSendDataFromPipe("CONNECTED_DEVICE", dlci, "Pipe2");
RFReceiveData()
RFReceiveData(Address, DLCI, Timeout)
Parameter
Meaning
Default Value
Comments
Address
Bluetooth
address of
device
Can use “CONNECTED_DEVICE” to send data
to a master RFCOMM connection
DLCI
Data link con-
nection identi-
fier
The DLCI is returned by RFOpenClientChan-
nel()
PipeName
Name of the
transmit data
pipe to get
data to send
This pipe must exist.
Parameter
Meaning
Default Value
Comments
Address
Bluetooth
address of
device
Can use "CONNECTED_DEVICE" to receive
data from a master RFCOMM connection
DLCI
Data link con-
nection identi-
fier
The DLCI is returned by RFOpenClientChan-
nel()