L2capregisterpsm() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 260

Advertising
background image

244

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

“Not connected”

Number of bytes (element 1) is the number of bytes of data that follow.

Data (element 2) is the raw data.

Comments

Sends an Info Request to the L2CAP protocol on the specified remote
device. Info requests are used to exchange implementation-specific infor-
mation regarding L2CAP’s capabilities.

Example

result = L2CAPInfoRequest('838010AC0008');

Trace("L2CAPInfoRequest result : ", result[0], "\n");

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

{

Trace("Data length : ", result[1], "\n");

Trace("Data

: ", result[2], "\n");

}

L2CAPRegisterPsm()

L2CAPRegisterPsm(PSM, ReceiveMTU)

Return value

“Success”

“Failure”

“In use”

Comments

This command is used to register a PSM identifier with L2CAP.

Example

Trace("Register PSM\n");

result = L2CAPRegisterPsm(0x1001, 0x1C2);

Trace(" Result : ", result, "\n");

Parameter

Meaning

Default Value

Comments

PSM

ReceiveMTU

0x1C2

Incoming MTU size for L2CAP connection with
that PSM

Advertising