Hcireadencryptionmode() – Teledyne LeCroy Merlins Wand - Users Manual User Manual
Page 201

185
CATC M
ERLIN
’
S
W
AND
2.00
C
HAPTER
C
User’s Manual
Merlin’s Wand Scripting Commands
Comments
Reads the number and values of the currently used IAC LAPs.
Example
result = HCIReadCurrentIACLAP();
if(result[0] == "Success")
{
Trace("Current number of used IAC LAPs is: ", result[1],
"\n");
if(result[1] > 0)
{
Trace("Currently used IAC LAPs are:");
for(i = 0; i < result[1]; i = i + 1)
{
Trace(" 0x", result[2 + i]);
}
Trace("\n\n");
}
}
HCIReadEncryptionMode()
HCIReadEncryptionMode()
Return values
Returns a list with two values: status and encryption mode.
Status (element 0) is one of the following:
•
“Success”
•
“Failure”
Encryption mode (element 1) is the one-byte encryption mode value.
(0=Encryption disabled; 1=Encryption enabled for point-to-point packets
only; 2=Encryption enabled for both point-to-point and broadcast packets.)
Comments
Reads the encryption mode value. This value controls whether the local
device requires encryption to the remote device at connection setup.
Example
result = HCIReadEncryptionMode();
Trace("HCIReadEncryptionMode returned: ", result[0], "\n");
if (result[0] == "Success")
Parameter
Meaning
Default Value
Comments
N/A