Description

The SensorStatus is used to retrieve the status of the Sensor subsystem.

Protocol

This command uses the Command-Ack-Response protocol.

Command

Byte Name C Type Value
0 Control Byte ( Packet Type (7:5) / SubSystem (4:0) ) uint8_t 0x40 ( 0b010 / 0b00000 )
1 Payload Length uint8_t 0
2 CRC uint8_t Calculated
3 Command uint8_t 0x0B

Payload

This command contains no payload.

Response

Header

Byte Name C Type Value
0 Control Byte ( Packet Type (7:5) / SubSystem (4:0) ) uint8_t 0x00 ( 0b000 / 0b00000 )
1 Payload Length uint8_t 2
2 CRC uint8_t Calculated
3 Command uint8_t 0x0B

Payload

Byte Name C Type Value
4 - 5 Status uint16_t See Below

The following table shows the list of sensor status bit mask:

Bit Mask Stream
0x0001 Accelerometer
0x0002 Accelerometer-Gyroscope
0x0004 Accelerometer-Magnetometer
0x0008 Gyroscope
0x0010 Humidity
0x0020 Magnetometer
0x0040 Pressure
0x0080 Temperature