Manage The Device State; Cmd_Getstate_Req - We PROTEUS-III User Manual

Hide thumbs Also See for PROTEUS-III:
Table of Contents

Advertisement

WIRELESS CONNECTIVITY & SENSORS
User manual Proteus-III

7.5. Manage the device state

7.5.1. CMD_GETSTATE_REQ

This command returns the current state of the module.
Please refer to chapter 5 for details on the states of the module.
Format:
Response ( CMD_GETSTATE_CNF ):
Command
Start signal
| 0x40
0x02
0x41
Module role:
0x00: No role
0x01: Peripheral
0x02: Central
0x10: Direct test mode (DTM)
Other: Reserved
Module action:
0x00: No action
0x01: Idle (advertising)
0x02: Scanning
0x03: Connected
0x04: Sleep (system-off mode)
0x05: Direct test mode
More info:
• If module action is "Connected"
– 6 Bytes FS_BTMAC address of the connected device
– 1 Byte indicating the maximum payload of the connection
• Otherwise, more info is empty
Order code 2611011024000
Version 1.8 , July 2022
Start signal
Command
0x02
0x01
Length
Module role
2 Bytes
1 Byte
Length
CS
0x00 0x00
0x03
Module
More info
actions
1 Byte
(Length - 2) Bytes
www.we-online.com/wcs
CS
1 Byte
84

Advertisement

Table of Contents
loading

This manual is also suitable for:

Proteus-iii-spi26110110240102611011024000

Table of Contents