Appendix b: bttrainer scripting commands, B.1 bluetooth addresses, B.2 basic commands – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual
Page 155: Main, Appendix b bttrainer scripting commands, Bluetooth addresses basic commands, Appendix b: bt trainer scripting commands

137
CATC BTT
RAINER
2.11
C
HAPTER
User’s Manual
Appendix B: BTTrainer Scripting
Commands
BTTrainer supports scripting commands to help automate testing processes
and commonly used sequences of Bluetooth commands. Custom scripts
can be written, saved, and run in Script Manager.
B.1 Bluetooth Addresses
Bluetooth addresses are represented in scripts as binary strings in
big-endian byte order. For example, the Bluetooth address
“0x010203040506” would be represented in the script as:
DeviceAddress = '010203040506';
Comparisons can be performed using binary strings. For example:
if ( DeviceAddress == '010203040506' )
{
#do something based on comparison here
}
B.2 Basic Commands
Main
Main()
Return value
None.
Comments
This is the entry point into a script. When a script is run, the script’s Main()
function will be called. Include this command at the beginning of every
script.
Example
Main()
{
Parameter
Meaning
Default Value
Comments
N/A