Last Updated on : 2024-06-04 09:43:19download
This topic describes the commands for the battery service.
The MCU sends the following data.
| Field | Bytes | Description |
|---|---|---|
| Header | 2 | 0x55aa |
| Version | 1 | 0x03 |
| Command | 1 | 0x71 |
| Data length | 2 | 0x0001 |
| Data | 1 | Subcommand: 0x25 |
| Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
The module returns the following data.
| Field | Bytes | Description |
|---|---|---|
| Header | 2 | 0x55aa |
| Version | 1 | 0x00 |
| Command | 1 | 0x71 |
| Data length | 2 | 0x0002 |
| Data | 2 |
|
| Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
The MCU sends the following data.
| Field | Bytes | Description |
|---|---|---|
| Header | 2 | 0x55aa |
| Version | 1 | 0x03 |
| Command | 1 | 0x71 |
| Data length | 2 | 0x0001 |
| Data | 1 | Subcommand: 0x26 |
| Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
The module returns the following data.
| Field | Bytes | Description |
|---|---|---|
| Header | 2 | 0x55aa |
| Version | 1 | 0x00 |
| Command | 1 | 0x71 |
| Data length | 2 | 0x0002 |
| Data | 2 |
|
| Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback