Rfsendtest(), Rfadvancecredit(), Rfsendtest() rfadvancecredit() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 248

Advertising
background image

232

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

RFSendTest()

RFSendTest(Address, DLCI)

Return value

“Success”

“Failure”

“Not Connected”

“Failure”

Comments

Sends a test frame on a particular RFCOMM connection.

Example

result = RFOpenClientChannel(Device, 1);

DLCI = result[1];

if(result[0] == "Success")

{

status = RFSendTest("CONNECTED_DEVICE", DLCI);

Trace("RFSendTest returned: ", status, "\n\n");

}

RFAdvanceCredit()

RFAdvanceCredit(Address, DLCI, credit)

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device

Can use “CONNECTED_DEVICE” to send a
test frame 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()

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device

Can use “CONNECTED_DEVICE” to advance
a credit to 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()

Advertising