7.1.3. CMD_GETDEVICES_REQ
This command returns the information about the devices found during the last scan oper-
ation.
#Devices
determines the number of devices that have been detected. The corre-
sponding information will be output one after the other in the field behind
#Devices
in the
response. The RSSI and TXPower values are transmitted in the two’s
complement notation.
Format:
Start signal
Command
Length
CS
0x02
0x0B
0x00 0x00
0x09
Response (
Start signal
Command | 0x40
Length
Status
#Devices
Payload
CS
0x02
0x4B
2 Bytes
1 Byte
1 Byte
(Length - 2) Bytes
1 Byte
The Payload sequentially lists the data of the detected
#Devices
devices. It consists of
#Devices
times the following telegram (see example below).
BTMAC
RSSI
TXPower
Device name length
Device name
6 Bytes
1 Byte
1 Byte
1 Byte
Device name length Bytes
Status:
0x00:
Request received
0x01:
Operation failed
0xFF:
Operation not permitted
If there are too many devices found to be output, the response of the
is split into several
messages.
The detected device name is the content of the device name field of the re-
ceived advertising packet. Thus, in case of the "Complete Local Name" is too
long to fit into the device name field of the advertising packet, this could be the
"Shortened Local Name" of the device.
If RSSI = 0x80, there is no value available.
Proteus-III reference manual version 1.3
© August 2020
www.we-online.com/wireless-connectivity
65