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

Page 211

Advertising
background image

195

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

HCIReadRemoteVersionInformation()

HCIReadRemoteVersionInformation(Address)

Return values

Returns a list with four values: status, LMP version, manufacturer name,
and LMP subversion.

Status (element 0) is one of the following:

“Success”

“Failure”

“Failed: Device not found”

“Not connected”

LMP version (element 1) is the one-byte Link Manager Protocol version
value.

Manufacturer name (element 2) is the two-byte manufacturer name of the
Bluetooth hardware.

LMP subversion (element 3) is the two-byte Link Manager Protocol sub-
version value.

Comments

Reads the version information for the specified device. An ACL connec-
tion with the device is required.

Example

Address = '010203040506';

result = HCIReadRemoteVersionInformation(Address);

Trace("HCIReadRemoteVersionInformation returned: ",

result[0], "\n");

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

{

Trace("LMP version is: 0x", result[1], "\n");

Trace("Manufacturer name is: 0x", result[2], "\n");

Trace("LMP subversion is: 0x", result[3], "\n");

}

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device to con-

nect with.

Advertising