Users Manual Instruction Manual
137
CATC BTTRAINER 2.11 CHAPTER
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