Description

The PowerStatus is used to retrieve the status of the Power 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 0x0A

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 1
2 CRC uint8_t Calculated
3 Command uint8_t 0x0A

Payload

Byte Name C Type Value
4 Status uint8_t See Below

The following table shows the list of power status:

Status Name Description
0x00 NO_BATTERY No Battery is connected.
0x01 CHARGE_TRICKLE Currently charging in trickle mode.
0x02 CHARGE_CC Currently charging in constant current.
0x03 CHARGE_CV Currently charging in constant voltage.
0x04 EOC Battery charging is completed.
0x05 FAULT_HOT Battery is too hot.
0x06 FAULT_COLD Battery is too cold.
0x07 - 0xFE Reserved Reserved
0xFF UNKNOWN Unknown status