48: Power Info
See how much power is or has been used by the device, as well as current power usage and if the device is charging. Field availability depends on hardware, firmware and charging state. Numeric values are little-endian. Integer fields may omit high zero bytes; float32 fields retain their four-byte IEEE 754 representation.
Header
| Field | Name | Description | Type |
|---|---|---|---|
| 5 | Method | Request a service to be perform an action Possible values:
| uint8 |
Payload
| Field | Name | Description | Type | Unit |
|---|---|---|---|---|
| 3 | Total power since profile | Accumulated charge usage in mAh. Starting a power-profile subscription resets the shared accumulator; GET returns that same accumulator. Before any such reset it covers usage since startup. Present only when current monitoring is available. | float32 | mAh |
| 4 | Current | Instantaneous Current power usage | float32 | mA |
| 5 | Charging | Is the device currently charging | bool | |
| 6 | External Voltage | Measured external voltage; omitted when zero. | float32 | V |
| 7 | Total power since last TX | Charge used since the last transmission; present only when current monitoring is available. | float32 | mAh |
| 8 | Charge Current | Charge current reported by the charger on supported BQ-equipped devices; present only while charging and when nonzero. Values are refreshed periodically. | float32 | mA |
| 9 | Input Current | Available on supported BQ-equipped devices; present only while charging and when nonzero. On BQ2589x devices, this is the input-current limit in effect, not measured input draw. Values are refreshed periodically; GET does not trigger a fresh charger read. | float32 | mA |
| 10 | Average Current | Average current in mA, rounded to the nearest integer and clamped to 0..65535. Zero before current samples are available. Uses the accumulated current-sampling window when nonempty, otherwise the previous completed window (nominally 3 seconds). Encoded in one or two little-endian bytes. | uint16 | mA |
Examples
Get request
📡 Real example from Generate tool on 2025-10-14Created using the generate tool, this was tested against an RH2 device, sent from Toit.
Get response
📡 Real example from RH2 P1 v2296 on 2025-10-14Response to the above GET request, captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor.
Subscription Request
📡 Real example from Generate tool on 2025-10-14Created using the generate tool, this was tested against an RH2 device, sent from Toit.
Subscription ACK
📡 Real example from RH2 P1 v2296 on 2025-10-14Response to the above SUBSCRIBE request, captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor.
Subscription update, while on charge
📡 Real example from RH2 P1 v2296 on 2025-10-14Response to the above subscription, captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor.
Code
For convenience, the following constants can be used to reference this message type.