Teledyne LeCroy Merlins Wand - CSL manual (CATC Scripting Language Manual) User Manual

Page 67

Advertising
background image

61

CATC Scripting Language for Bluetooth Analyzers

CATC

Manual Ver. 1.21

const BNEP_resp_msg_table = [

[ 0x0005 , "Reserved" , "Reservedfor future use" ],

[ 0x0000 , "Success" , "Operation Successful" ],

[ 0x0001 , "Bad Dest UUID" , "Operation Failed: Invalid Destination Service UUID" ],

[ 0x0002 , "Bad Source UUID" , "Operation Failed: Invalid Source Service UUID" ],

[ 0x0003 , "Bad UUID Size" , "Operation Failed: Invalid Service UUID Size" ],

[ 0x0004 , "not allowed" , "Operation Failed: Connection not allowed" ]

];

ShowCtrlSetupRes()

{

if ( IsNotEnoughBnepData(2, 1) ) return 0;

data = NextNBits(16);

row = Find(BNEP_resp_msg_table, data);

AddCell("message", row[1], Format("0x%04X - ", data) + row[2], Bnep_color);

DecodedBytes = DecodedBytes + 2;

}

ShowFilterNetTypeSet()

{

if ( IsNotEnoughBnepData(2, 1) ) return 0;

length = NextNBits(16);

AddCell("list length", Format("%d", length), "Length of the start and end range of network protocol
types list", Bnep_color);

DecodedBytes = DecodedBytes + 2;

if ( IsNotEnoughBnepData(length, 1) ) return 0;

Advertising