Per-pack BMS queries (id arg): batSoc source + host_probe7
This commit is contained in:
1 parent
62e0fd649b
commit
3d59a75f14
5 files changed
+223
-13
No files matched your search
@@ -285,8 +285,14 @@ class LocalDeviceClient:
|
||||
def query_device_info(self) -> Dict[str, Any]:
|
||||
return self.send_rpc(CommunicationCmd.QUERY_DEVICE_INFO)
|
||||
|
||||
def query_bms_info(self) -> Dict[str, Any]:
|
||||
return self.send_rpc(CommunicationCmd.BMS)
|
||||
def query_bms_info(self, pack_id: int = 1) -> Dict[str, Any]:
|
||||
"""``queryBmsInfoBySocket`` — BMS pack query (``arguments={"id"}``).
|
||||
|
||||
The pack index selects the battery (``BMS_SN`` ``…B1``/``…B2`` in
|
||||
the device-info reply); omitting it yields the all-zero ``id: 0``
|
||||
slot. ``batSoc``/``batSoh`` carry the pack charge/health.
|
||||
"""
|
||||
return self.send_rpc(CommunicationCmd.BMS, data={"id": int(pack_id)})
|
||||
|
||||
def query_mppt_info(self) -> Dict[str, Any]:
|
||||
return self.send_rpc(CommunicationCmd.MPPT)
|
||||
|
||||
Reference in new issue
Block a user