Query BMS Data
QueryBmsData
ID 2041
- Payload
- ≥ 5 bytes, variable
- Packet
- ≥ 27 bytes
- Source
- ccu, vehicle
- Category
- Sensors
Request detailed battery management system data from a vehicle. The vehicle replies with one or more BmsData messages depending on the requested operation and pack index. If pack_idx is 0xFF the vehicle returns data for every detected battery pack. The operation field selects which class of data is returned, allowing future extension without protocol changes.
#Fields
| Offset | Field | Type | Unit | Range | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | #opOperation |
uint8_t |
Enumerated | – | Type of BMS data requested.
|
|||||||||||||||||||||
| 1 | #pack_idxPack Index |
uint8_t |
– | default
0xFF |
Battery pack index (0-based). Use 0xFF to address all detected packs. |
|||||||||||||||||||||
| 2 | #sbs_registerSBS Register |
uint8_t |
– | – | SBS register address for READ_RAW / WRITE_RAW operations. Ignored for other operations. |
|||||||||||||||||||||
| 3 | #dataData |
rawdata |
– | – | Payload for write operations (WRITE_RAW, SET_FET). For READ_RAW, data[0] specifies the expected response length in bytes (defaults to 2 if empty). Unused for other read operations. |