User Manual

Table Of Contents
191
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Manufacturer name (element 4) is the two-byte manufacturer name of the
Bluetooth hardware.
LMP subversion (element 5) is the two-byte Link Manager Protocol sub-
version value.
Comments
Reads the version information for the local device.
Example
result = HCIReadLocalVersionInformation();
Trace("HCIReadLocalVersionInformation returned: ",
result[0], "\n");
if (result[0] == "Success")
{
Trace("HCI version is: 0x", result[1], "\n");
Trace("HCI revision is: 0x", result[2], "\n");
Trace("LMP version is: 0x", result[3], "\n");
Trace("Manufacturer name is: 0x", result[4], "\n");
Trace("LMP subversion is: 0x", result[5], "\n");
}
HCIReadLoopbackMode()
HCIReadLoopbackMode()
Return values
Returns a list with two values: status and loopback mode.
Status (element 0) is one of the following:
“Success”
“Failure”
Loopback mode (element 1) is the one-byte loopback mode value. (0=No
loopback mode; 1=Local loopback mode; 2=Remote loopback mode.)
Comments
Reads the loopback mode value. This value determines the path by which
the Host Controller returns information to the Host.
Example
result = HCIReadLoopbackMode();
Trace("HCIReadLoopbackMode returned: ", result[0], "\n");
Parameter Meaning Default Value Comments
N/A