Fix BullTron GUI telemetry and MOS writes
This commit is contained in:
@@ -182,11 +182,11 @@ rated_capacity_Ah = parsed settings capacity
|
||||
|
||||
if register 0x002F == 1:
|
||||
label = TimeToFull
|
||||
minutes = rated_capacity_Ah * (100 - soc_percent) / current_A * 60
|
||||
minutes = rated_capacity_Ah * ((100 - soc_percent) / 100) / current_A * 60
|
||||
|
||||
if register 0x002F == 2:
|
||||
label = TimetoEmpty
|
||||
minutes = rated_capacity_Ah * soc_percent / current_A * 60
|
||||
minutes = rated_capacity_Ah * (soc_percent / 100) / current_A * 60
|
||||
```
|
||||
|
||||
If current is zero or the state is neither `1` nor `2`, the UI shows `-- h --m`.
|
||||
@@ -203,6 +203,11 @@ If current is zero or the state is neither `1` nor `2`, the UI shows `-- h --m`.
|
||||
| `40` | version data |
|
||||
| `06` | password data |
|
||||
| `12` | balancing state |
|
||||
|
||||
In the BullTron system screen, rated capacity is settings word `0` scaled by
|
||||
`0.1 Ah`. The charge and discharge MOS controls write single registers
|
||||
`0x00A5` and `0x00A6`; live MOS status is read separately from telemetry
|
||||
registers `0x0035` and `0x0036`.
|
||||
| `0A` | new alarm info |
|
||||
| `4A` | device parameter info |
|
||||
| `04` | communication/protocol or production date |
|
||||
|
||||
Reference in New Issue
Block a user