Louisvdw / dbus-serialbattery

Battery Monitor driver for serial battery in VenusOS GX systems
MIT License
522 stars 164 forks source link

EG4 Lifepower - not reading all RS485 modules on the same interface #1116

Open Zeezichtje opened 2 weeks ago

Zeezichtje commented 2 weeks ago

Describe the bug

I am having a setup with 6 EG4 lifepower batteries. They are dipswitched 1 till 6 (verified via BMS Test program). Only the batteries 1, 3 and 5 are successfully read by dbus-serialbattery. Batteries 1 and 2 are 48v batteries. Batteries 3,4,5,6 are 24v batteries. Battery 3+4 and 5+6 are in series to create a 48v power bank.

I saw a user with a similair issue: https://github.com/Louisvdw/dbus-serialbattery/issues/142#issuecomment-2254960773

How to reproduce

bash /data/etc/dbus-serialbattery/reinstall-local.sh tail -F -n 100 /data/log/dbus-serialbattery.ttyUSB0/current | tai64nlocal

Expected behavior

Batteries 1 till 6 should be visible.

Driver version

v1.4.20240826dev

Venus OS device type

Cerbo GX

Venus OS version

v3.41

BMS type

Life/Tian Power

Cell count

16 (48v) and 8 (6v)

Battery count

6

Connection type

Serial USB adapter to RS485

Config file

;MAX_BATTERY_CHARGE_CURRENT = 300.0
;MAX_BATTERY_DISCHARGE_CURRENT = 250.0
BMS_TYPE = EG4_Lifepower
MODBUS_ADDRESSES = 0x01, 0x02, 0x03, 0x04, 0x05, 0x06
;MAX_CHARGE_CURRENT_T_FRACTION     = 0, 0.1, 0.2, 0.4, 0.8,  1,  1, 0.6,

Relevant log output

2024-08-28 02:57:59.733491500 INFO:SerialBattery:
2024-08-28 02:57:59.734284500 INFO:SerialBattery:Starting dbus-serialbattery
2024-08-28 02:57:59.736696500 INFO:SerialBattery:Venus OS v3.41
2024-08-28 02:57:59.737351500 INFO:SerialBattery:dbus-serialbattery v1.4.20240826dev
2024-08-28 02:58:15.752836500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-08-28 02:58:15.753818500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x01"
2024-08-28 02:58:15.819926500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:15.885197500 INFO:SerialBattery:Firmware Version:3QT-YS00-16SV100A-V3.40
2024-08-28 02:58:16.056789500 INFO:SerialBattery:Connection established to EG4_Lifepower
2024-08-28 02:58:16.057530500 INFO:SerialBattery:Successful battery connection at /dev/ttyUSB0 and this Modbus address 0x01
2024-08-28 02:58:16.058166500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-08-28 02:58:16.058942500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x02"
2024-08-28 02:58:16.099120500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:16.392654500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:16.675447500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:17.179726500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2024-08-28 02:58:17.180808500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x02"
2024-08-28 02:58:17.221148500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:17.510139500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:17.794840500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:18.299725500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-08-28 02:58:18.300604500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x02"
2024-08-28 02:58:18.352215500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:18.641817500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:18.925334500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:19.429776500 WARNING:SerialBattery:No battery connection at /dev/ttyUSB0 and this Modbus address 0x02
2024-08-28 02:58:19.430500500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-08-28 02:58:19.431309500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x03"
2024-08-28 02:58:19.476067500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:19.765531500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:19.949636500 INFO:SerialBattery:Connection established to EG4_Lifepower
2024-08-28 02:58:19.950376500 INFO:SerialBattery:Successful battery connection at /dev/ttyUSB0 and this Modbus address 0x03
2024-08-28 02:58:19.951012500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-08-28 02:58:19.951913500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x04"
2024-08-28 02:58:19.994960500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:20.288673500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:20.576768500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:21.081792500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2024-08-28 02:58:21.082779500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x04"
2024-08-28 02:58:21.127080500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:21.425480500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:21.708774500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:22.213834500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-08-28 02:58:22.214730500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x04"
2024-08-28 02:58:22.253087500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:22.546463500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:22.828877500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:23.334753500 WARNING:SerialBattery:No battery connection at /dev/ttyUSB0 and this Modbus address 0x04
2024-08-28 02:58:23.335488500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-08-28 02:58:23.336306500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x05"
2024-08-28 02:58:23.376331500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:23.443082500 INFO:SerialBattery:Firmware Version:3QT-YS01-8SV100A-V3.10
2024-08-28 02:58:23.613007500 INFO:SerialBattery:Connection established to EG4_Lifepower
2024-08-28 02:58:23.613994500 INFO:SerialBattery:Successful battery connection at /dev/ttyUSB0 and this Modbus address 0x05
2024-08-28 02:58:23.614645500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-08-28 02:58:23.615872500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x06"
2024-08-28 02:58:23.656657500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:23.937103500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:24.232734500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:24.737694500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2024-08-28 02:58:24.738590500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x06"
2024-08-28 02:58:24.778137500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:25.061656500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:25.366684500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:25.874185500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-08-28 02:58:25.875594500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x06"
2024-08-28 02:58:25.914235500 INFO:SerialBattery:Hardware Version:B
2024-08-28 02:58:26.194188500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:26.495165500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-28 02:58:26.999739500 WARNING:SerialBattery:No battery connection at /dev/ttyUSB0 and this Modbus address 0x06
2024-08-28 02:58:30.256742500 INFO:SerialBattery:Found existing battery with DeviceInstance = 4
2024-08-28 02:58:30.552518500 INFO:SerialBattery:DeviceInstance = 4
2024-08-28 02:58:30.554628500 INFO:SerialBattery:PID file created successfully: /var/tmp/dbus-serialbattery_4.pid
2024-08-28 02:58:30.555592500 INFO:SerialBattery:Used DeviceInstances = ['1', '2', '3', '6', '5', '4']
2024-08-28 02:58:30.556645500 INFO:SerialBattery:com.victronenergy.battery.ttyUSB0__0x01
2024-08-28 02:58:30.610291500 INFO:SerialBattery:publish config values = False
2024-08-28 02:58:34.127691500 INFO:SerialBattery:Found existing battery with DeviceInstance = 5
2024-08-28 02:58:34.376310500 INFO:SerialBattery:DeviceInstance = 5
2024-08-28 02:58:34.377914500 INFO:SerialBattery:PID file created successfully: /var/tmp/dbus-serialbattery_5.pid
2024-08-28 02:58:34.378608500 INFO:SerialBattery:Used DeviceInstances = ['1', '2', '3', '6', '5', '4']
2024-08-28 02:58:34.379406500 INFO:SerialBattery:com.victronenergy.battery.ttyUSB0__0x03
2024-08-28 02:58:34.410201500 INFO:SerialBattery:publish config values = False
2024-08-28 02:58:37.766159500 INFO:SerialBattery:Found existing battery with DeviceInstance = 6
2024-08-28 02:58:38.031609500 INFO:SerialBattery:DeviceInstance = 6
2024-08-28 02:58:38.033350500 INFO:SerialBattery:PID file created successfully: /var/tmp/dbus-serialbattery_6.pid
2024-08-28 02:58:38.034057500 INFO:SerialBattery:Used DeviceInstances = ['1', '2', '3', '6', '5', '4']
2024-08-28 02:58:38.034859500 INFO:SerialBattery:com.victronenergy.battery.ttyUSB0__0x05
2024-08-28 02:58:38.066416500 INFO:SerialBattery:publish config values = False
2024-08-28 02:58:38.081872500 INFO:SerialBattery:Polling data every 2.000 s
2024-08-28 02:58:38.081881500 INFO:SerialBattery:Battery EG4 Lifepower connected to dbus from /dev/ttyUSB0
2024-08-28 02:58:38.081884500 INFO:SerialBattery:========== Settings ==========
2024-08-28 02:58:38.081887500 INFO:SerialBattery:> Connection voltage: 51.5 V | Current: -12.8 A | SoC: 29.3%
2024-08-28 02:58:38.081890500 INFO:SerialBattery:> Cell count: 16 | Cells populated: 16
2024-08-28 02:58:38.081893500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2024-08-28 02:58:38.082011500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.900 V | MAX CELL VOLTAGE: 3.450 V| FLOAT CELL VOLTAGE: 3.375 V
2024-08-28 02:58:38.082016500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 50.0 A | MAX BATTERY DISCHARGE CURRENT: 60.0 A
2024-08-28 02:58:38.082020500 INFO:SerialBattery:> CVCM:     True
2024-08-28 02:58:38.082022500 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
2024-08-28 02:58:38.083153500 INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
2024-08-28 02:58:38.088489500 INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: False
2024-08-28 02:58:38.089486500 INFO:SerialBattery:> CHARGE FET: None | DISCHARGE FET: None | BALANCE FET: None
2024-08-28 02:58:38.090556500 INFO:SerialBattery:Serial Number/Unique Identifier: B_98.7Ah
2024-08-28 02:58:38.091404500 INFO:SerialBattery:Battery EG4 Lifepower connected to dbus from /dev/ttyUSB0
2024-08-28 02:58:38.092958500 INFO:SerialBattery:========== Settings ==========
2024-08-28 02:58:38.093768500 INFO:SerialBattery:> Connection voltage: 25.86 V | Current: -22.74 A | SoC: 29.7%
2024-08-28 02:58:38.094367500 INFO:SerialBattery:> Cell count: 8 | Cells populated: 8
2024-08-28 02:58:38.095250500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2024-08-28 02:58:38.096266500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.900 V | MAX CELL VOLTAGE: 3.450 V| FLOAT CELL VOLTAGE: 3.375 V
2024-08-28 02:58:38.097242500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 50.0 A | MAX BATTERY DISCHARGE CURRENT: 60.0 A
2024-08-28 02:58:38.098164500 INFO:SerialBattery:> CVCM:     True
2024-08-28 02:58:38.099101500 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
2024-08-28 02:58:38.100201500 INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
2024-08-28 02:58:38.101180500 INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: False
2024-08-28 02:58:38.102335500 INFO:SerialBattery:> CHARGE FET: None | DISCHARGE FET: None | BALANCE FET: None
2024-08-28 02:58:38.103424500 INFO:SerialBattery:Serial Number/Unique Identifier: B_182.2Ah
2024-08-28 02:58:38.104356500 INFO:SerialBattery:Battery EG4 Lifepower connected to dbus from /dev/ttyUSB0
2024-08-28 02:58:38.105239500 INFO:SerialBattery:========== Settings ==========
2024-08-28 02:58:38.106279500 INFO:SerialBattery:> Connection voltage: 25.83 V | Current: -23.79 A | SoC: 30.3%
2024-08-28 02:58:38.107213500 INFO:SerialBattery:> Cell count: 8 | Cells populated: 8
2024-08-28 02:58:38.108123500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2024-08-28 02:58:38.109142500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.900 V | MAX CELL VOLTAGE: 3.450 V| FLOAT CELL VOLTAGE: 3.375 V
2024-08-28 02:58:38.110204500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 50.0 A | MAX BATTERY DISCHARGE CURRENT: 60.0 A
2024-08-28 02:58:38.111141500 INFO:SerialBattery:> CVCM:     True
2024-08-28 02:58:38.112219500 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
2024-08-28 02:58:38.113209500 INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
2024-08-28 02:58:38.114151500 INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: False
2024-08-28 02:58:38.115074500 INFO:SerialBattery:> CHARGE FET: None | DISCHARGE FET: None | BALANCE FET: None
2024-08-28 02:58:38.116357500 INFO:SerialBattery:Serial Number/Unique Identifier: B_180.6Ah

Any other information that may be helpful

No response

mr-manuel commented 2 weeks ago

Thanks for reading carefully all instructions and providing all the needed data.

There is a very similar issue opened at the moment, which I think could also help you: https://github.com/Louisvdw/dbus-serialbattery/issues/1104

It's a different battery, but the same BMS protocol. You can quickly test, if all batteries are recognized, if you give them only odd address numbers: 1,3,5,7,9,11

Currently I did not figure out, why this is the case.

mr-manuel commented 2 weeks ago

Are you maybe able to read the commands that your software sends, so that you can compare any differences between the request and answer commands from the even and odd addresses?

Zeezichtje commented 2 weeks ago

Will this help?

Requesting battery 1 till 12

[2024-08-28 22:11:11:110]-Tx->: 7E 32 30 30 31 34 41 34 32 30 30 30 30 46 44 41 32 0D
[2024-08-28 22:11:11:834]-Tx->: 7E 32 30 30 32 34 41 34 32 30 30 30 30 46 44 41 31 0D
[2024-08-28 22:11:12:576]-Tx->: 7E 32 30 30 33 34 41 34 32 30 30 30 30 46 44 41 30 0D
[2024-08-28 22:11:13:301]-Tx->: 7E 32 30 30 34 34 41 34 32 30 30 30 30 46 44 39 46 0D
[2024-08-28 22:11:14:028]-Tx->: 7E 32 30 30 35 34 41 34 32 30 30 30 30 46 44 39 45 0D
[2024-08-28 22:11:14:755]-Tx->: 7E 32 30 30 36 34 41 34 32 30 30 30 30 46 44 39 44 0D
[2024-08-28 22:11:15:485]-Tx->: 7E 32 30 30 37 34 41 34 32 30 30 30 30 46 44 39 43 0D
[2024-08-28 22:11:16:205]-Tx->: 7E 32 30 30 38 34 41 34 32 30 30 30 30 46 44 39 42 0D
[2024-08-28 22:11:16:933]-Tx->: 7E 32 30 30 39 34 41 34 32 30 30 30 30 46 44 39 41 0D
[2024-08-28 22:11:17:829]-Tx->: 7E 32 30 30 41 34 41 34 32 30 30 30 30 46 44 39 32 0D
[2024-08-28 22:11:18:554]-Tx->: 7E 32 30 30 42 34 41 34 32 30 30 30 30 46 44 39 31 0D
[2024-08-28 22:11:19:283]-Tx->: 7E 32 30 30 43 34 41 34 32 30 30 30 30 46 44 39 30 0D

Commands communicating with Battery #1.

[2024-08-28 21:42:29:575]-Tx->: 7E 01 33 00 FE 0D
[2024-08-28 21:42:29:707]-Rx<-: 7E 01 33 16 51 54 2D 59 53 30 30 2D 31 36 53 56 31 30 30 41 2D 56 33 2E 34 30 B8 0D
[2024-08-28 21:42:30:122]-Tx->: 7E 32 30 30 31 34 41 34 32 30 30 30 30 46 44 41 32 0D
[2024-08-28 21:42:30:487]-Rx<-: 7E 32 30 30 31 34 41 30 30 41 30 43 41 31 30 30 31 31 30 30 43 38 41 30 43 38 44 30 43 38 41 30 43 38 42 30 43 38 41 30 43 38 46 30 43 38 41 30 43 38 45 30 43 38 45 30 43 38 46 30 43 38 44 30 43 38 42 30 43 38 43 30 43 39 30 30 43 38 43 30 43 38 43 30 34 30 42 45 31 30 42 45 31 30 42 45 31 30 42 45 31 30 42 44 37 30 42 44 37 30 30 44 38 31 34 31 33 30 35 46 39 32 36 38 45 30 31 39 32 30 46 30 30 30 46 30 30 36 32 30 43 39 30 30 43 38 41 30 30 30 36 30 42 45 31 30 42 45 31 30 30 33 31 37 31 41 32 30 30 33 31 32 31 30 43 30 30 31 41 36 36 36 36 30 30 31 39 43 44 39 33 30 30 30 30 30 45 43 32 30 30 30 30 31 33 32 37 37 30 45 31 39 33 35 42 44 31 35 46 0D
[2024-08-28 21:42:30:705]-Tx->: 7E 32 30 30 31 34 41 34 34 30 30 30 30 46 44 41 30 0D
[2024-08-28 21:42:30:948]-Rx<-: 7E 32 30 30 31 34 41 30 30 37 30 35 34 31 30 30 31 31 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 34 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 39 30 30 30 30 30 30 30 30 30 30 30 31 30 33 30 32 30 30 30 30 30 30 30 30 30 30 45 44 43 32 0D
[2024-08-28 21:42:31:157]-Tx->: 7E 01 33 00 FE 0D

Commands communicating with Battery #2.

[2024-08-28 21:48:59:203]-Tx->: 7E 02 33 00 FC 0D
[2024-08-28 21:48:59:401]-Rx<-: 7E 02 33 16 51 54 2D 59 53 30 30 2D 31 36 53 56 31 30 30 41 2D 56 33 2E 34 30 B8 0D
[2024-08-28 21:48:59:829]-Tx->: 7E 32 30 30 32 34 41 34 32 30 30 30 30 46 44 41 31 0D
[2024-08-28 21:49:00:204]-Rx<-: 7E 32 30 30 32 34 41 30 30 41 30 43 41 31 30 30 31 31 30 30 43 39 33 30 43 39 34 30 43 39 34 30 43 39 31 30 43 39 33 30 43 39 32 30 43 39 34 30 43 39 34 30 43 39 33 30 43 39 33 30 43 39 33 30 43 39 33 30 43 39 30 30 43 39 33 30 43 39 34 30 43 39 31 30 34 30 42 45 31 30 42 45 31 30 42 45 31 30 42 45 31 30 42 43 44 30 42 43 44 30 30 46 43 31 34 31 45 30 33 33 45 32 36 41 32 30 31 36 36 30 46 30 30 30 38 30 30 36 32 30 43 39 34 30 43 39 30 30 30 30 34 30 42 45 31 30 42 45 31 30 30 32 42 45 30 43 32 30 30 32 42 43 42 30 42 30 30 31 37 37 34 44 38 30 30 31 36 46 43 45 45 30 30 30 30 30 44 46 35 30 30 30 30 31 32 31 44 34 33 30 35 39 37 45 46 44 31 41 46 0D
[2024-08-28 21:49:00:429]-Tx->: 7E 32 30 30 32 34 41 34 34 30 30 30 30 46 44 39 46 0D
[2024-08-28 21:49:00:681]-Rx<-: 7E 32 30 30 32 34 41 30 30 37 30 35 34 31 30 30 31 31 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 34 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 39 30 30 30 30 30 30 30 30 30 30 30 31 30 33 30 32 30 30 30 30 30 30 30 30 30 30 45 44 43 31 0D
[2024-08-28 21:49:00:885]-Tx->: 7E 02 33 00 FC 0D

Commands communicating with Battery #5.

[2024-08-28 21:52:16:841]-Tx->: 7E 05 33 00 FE 0D
[2024-08-28 21:52:16:973]-Rx<-: 7E 05 33 15 51 54 2D 59 53 30 31 2D 38 53 56 31 30 30 41 2D 56 33 2E 31 30 B6 0D
[2024-08-28 21:52:17:424]-Tx->: 7E 32 30 30 35 34 41 34 32 30 30 30 30 46 44 39 45 0D
[2024-08-28 21:52:17:798]-Rx<-: 7E 32 30 30 35 34 41 30 30 43 30 41 41 31 30 30 31 30 38 30 43 39 45 30 43 39 38 30 43 39 39 30 43 39 41 30 43 39 37 30 43 39 44 30 43 39 42 30 43 39 44 30 34 30 42 44 37 30 42 44 37 30 42 44 37 30 42 44 37 30 42 43 44 30 42 43 44 30 31 46 35 30 41 31 35 30 41 39 41 34 37 32 43 30 32 32 44 30 46 30 30 30 45 30 30 35 42 30 43 39 45 30 43 39 37 30 30 30 37 30 42 44 37 30 42 44 37 30 30 38 38 38 38 46 43 30 30 38 38 30 30 36 46 30 30 32 34 39 32 45 38 30 30 32 33 43 37 43 35 30 30 30 30 31 37 33 38 30 30 30 30 32 35 30 46 33 45 44 39 31 33 42 33 44 38 31 45 0D
[2024-08-28 21:52:18:024]-Tx->: 7E 32 30 30 35 34 41 34 34 30 30 30 30 46 44 39 43 0D
[2024-08-28 21:52:18:275]-Rx<-: 7E 32 30 30 35 34 41 30 30 38 30 34 34 31 30 30 31 30 38 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 34 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 39 30 30 30 30 30 30 30 30 30 30 30 31 30 33 30 32 30 30 30 30 30 30 30 30 30 30 46 30 42 37 0D
[2024-08-28 21:52:18:478]-Tx->: 7E 05 33 00 FE 0D
Zeezichtje commented 2 weeks ago

1,3,5,7,9

This works. However, what is the correct HEX for number 11? 0x11 and 0x0A do not work.

LOG OUTPUT

2024-08-29 02:17:11.621960500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-08-29 02:17:11.622747500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x11"
2024-08-29 02:17:11.916504500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:12.204876500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:12.488012500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:12.992646500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2024-08-29 02:17:12.993776500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x11"
2024-08-29 02:17:13.286035500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:13.569656500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:13.865095500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:14.369636500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-08-29 02:17:14.370515500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x11"
2024-08-29 02:17:14.652825500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:14.948077500 ERROR:SerialBattery:>>> ERROR: No reply - returning
tail: /data/log/dbus-serialbattery.ttyUSB0/current has been replaced; following end of new file
2024-08-29 02:17:15.740773500 WARNING:SerialBattery:No battery connection at /dev/ttyUSB0 and this Modbus address 0x11
2024-08-29 02:17:15.741549500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-08-29 02:17:15.742365500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x0a"
2024-08-29 02:17:16.028215500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:16.314053500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:16.612328500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:17.116843500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2024-08-29 02:17:17.117670500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x0a"
2024-08-29 02:17:17.411708500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:17.696445500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:17.991533500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:18.495744500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-08-29 02:17:18.496774500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x0a"
2024-08-29 02:17:18.778342500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:19.071253500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:19.363466500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-08-29 02:17:19.867641500 WARNING:SerialBattery:No battery connection at /dev/ttyUSB0 and this Modbus address 0x0A
mr-manuel commented 2 weeks ago

Google is your friend: https://www.rapidtables.com/convert/number/decimal-to-hex.html?x=11 11 -> 0x0B 13 -> 0x0D 15 -> 0x0F