Hciparkmode() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 192

Advertising
background image

176

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

Return values

Returns a list with three values: status, HCI handle, and key flag.

Status (element 0) is one of the following:

“Success”

“Failure”

HCI handle (element 1) is the handle for the ACL connection.

Key flag (element 2) is the key flag (either 0 or 1).

Comments

This command is used to force the master of the piconet to use temporary
or semi-permanent link keys.

Example

result = HCIMasterLinkKey(0);

Trace("Merlin's Wand MasterLinkKey returned:", result[0],

"\n");

if(result[0] == "Success")

{

Trace(" Connection Handle : 0x", result[1], "\n");

Trace(" Key Flag

: 0x", result[2], "\n");

}

HCIParkMode()

HCIParkMode(Address, BeaconMaxInterval,
BeaconMinInterval)

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device in

question

Beacon

MaxInterval

Maximum
number of

0.625-msec

intervals

between bea-

cons.

Range is 0x0001 to 0xFFFF
(0.625 msec to 40.9 sec).

Beacon

MinInterval

Minimum

number of

0.625-msec

intervals

between bea-

cons.

Range is 0x0001 to 0xFFFF
(0.625 msec to 40.9 sec).

Advertising