Louisvdw / dbus-serialbattery

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

Driver Fails to Start #1062

Closed WawaRoo closed 4 months ago

WawaRoo commented 6 months ago

Describe the problem

I can't get the driver to load and connect to a USB Port. It looks like the serial service is not starting.

Driver version

nightly build "v1.3.20240510passthrough"

Venus OS device type

Cerbo GX

Venus OS version

v3.31

BMS type

Renogy BMS

Cell count

4

Battery count

1

Connection type

Serial USB adapter to RS485

Config file

GNU nano 4.9.3       /data/etc/dbus-serialbattery/config.ini
[DEFAULT]

; If you want to add custom values/settings, then check the values/settings you>
; and insert them below to persist future driver updates.

; Example (remove the semicolon ";" to uncomment and activate the value/setting>
; MAX_BATTERY_CHARGE_CURRENT = 50.0
; MAX_BATTERY_DISCHARGE_CURRENT = 60.0

=====================================================================================================
  GNU nano 4.9.3   /data/etc/dbus-serialbattery/config.default.ini    Modified
[DEFAULT]

; --------- Set logging level ---------
; ERROR: Only errors are logged
; WARNING: Errors and warnings are logged
; INFO: Errors, warnings and info messages are logged
; DEBUG: Errors, warnings, info and debug messages are logged
LOGGING = INFO

; --------- Battery Current limits ---------
MAX_BATTERY_CHARGE_CURRENT    = 50.0
MAX_BATTERY_DISCHARGE_CURRENT = 60.0

; --------- Cell Voltages ---------
; Description:
;     Cell min/max voltages which are used to calculate the min/max battery vol>
; Example:
<= 46.4>[DEFAULT]

Relevant log output

root@einstein:~# tail -F -n 100 /data/log/serial-starter/current |tai64nlocal
2024-05-15 01:27:07.107111500 *** starting serial-starter ***
2024-05-15 01:27:07.608626500 serstart starting
2024-05-15 01:27:07.629954500 INFO: loading config file /etc/venus/serial-starte      r.conf
2024-05-15 01:27:08.458740500 INFO: loading config file /data/conf/serial-starte      r.d/dbus-serialbattery.conf
2024-05-15 01:27:10.357437500 INFO: Create daemontools service mk2-dbus.ttyS4
2024-05-15 01:27:11.949823500 INFO: Create daemontools service vedirect-interfac      e.ttyS5
2024-05-15 01:27:13.473452500 INFO: Create daemontools service vedirect-interfac      e.ttyS6
2024-05-15 01:27:14.983638500 INFO: Create daemontools service vedirect-interfac      e.ttyS7
2024-05-15 01:27:16.582872500 INFO: Start service mk2-dbus.ttyS4
2024-05-15 01:27:18.161767500 INFO: Start service vedirect-interface.ttyS5
2024-05-15 01:27:19.727938500 INFO: Start service vedirect-interface.ttyS6
2024-05-15 01:27:21.237194500 INFO: Start service vedirect-interface.ttyS7
2024-05-15 02:01:32.510246500 *** CCGX booted (0) ***
2024-05-15 02:01:32.999531500 *** starting serial-starter ***
2024-05-15 02:01:33.622970500 serstart starting
2024-05-15 02:01:33.669399500 INFO: loading config file /etc/venus/serial-starte      r.conf
2024-05-15 02:01:34.496719500 INFO: loading config file /data/conf/serial-starte      r.d/dbus-serialbattery.conf
2024-05-15 02:01:36.379360500 INFO: Create daemontools service mk2-dbus.ttyS4
2024-05-15 02:01:37.890712500 INFO: Create daemontools service vedirect-interfac      e.ttyS5
2024-05-15 02:01:39.324599500 INFO: Create daemontools service vedirect-interfac      e.ttyS6
2024-05-15 02:01:40.836481500 INFO: Create daemontools service vedirect-interfac      e.ttyS7
2024-05-15 02:01:42.598925500 INFO: Start service mk2-dbus.ttyS4
2024-05-15 02:01:44.103078500 INFO: Start service vedirect-interface.ttyS5
2024-05-15 02:01:45.565737500 INFO: Start service vedirect-interface.ttyS6
2024-05-15 02:01:47.003595500 INFO: Start service vedirect-interface.ttyS7
2024-05-15 02:24:55.410135500 *** CCGX booted (0) ***
2024-05-15 02:24:55.915994500 *** starting serial-starter ***
2024-05-15 02:24:56.561978500 serstart starting
2024-05-15 02:24:56.582033500 INFO: loading config file /etc/venus/serial-starte      r.conf
2024-05-15 02:24:57.364728500 INFO: loading config file /data/conf/serial-starte      r.d/dbus-serialbattery.conf
2024-05-15 02:24:59.266586500 INFO: Create daemontools service mk2-dbus.ttyS4
2024-05-15 02:25:00.805157500 INFO: Create daemontools service vedirect-interfac      e.ttyS5
2024-05-15 02:25:02.278922500 INFO: Create daemontools service vedirect-interfac      e.ttyS6
2024-05-15 02:25:03.748019500 INFO: Create daemontools service vedirect-interfac      e.ttyS7
2024-05-15 02:25:05.515208500 INFO: Start service mk2-dbus.ttyS4
2024-05-15 02:25:07.024541500 INFO: Start service vedirect-interface.ttyS5
2024-05-15 02:25:08.442565500 INFO: Start service vedirect-interface.ttyS6
2024-05-15 02:25:09.930247500 INFO: Start service vedirect-interface.ttyS7
2024-05-15 02:34:25.255867500 *** starting serial-starter ***
2024-05-15 02:34:25.326161500 serstart starting
2024-05-15 02:34:25.329462500 INFO: loading config file /etc/venus/serial-starte      r.conf
2024-05-15 02:35:18.457414500 *** CCGX booted (0) ***
2024-05-15 02:35:18.980064500 *** starting serial-starter ***
2024-05-15 02:35:19.523369500 serstart starting
2024-05-15 02:35:19.550932500 INFO: loading config file /etc/venus/serial-starte      r.conf
2024-05-15 02:35:22.054460500 INFO: Create daemontools service mk2-dbus.ttyS4
2024-05-15 02:35:23.569519500 INFO: Create daemontools service vedirect-interfac      e.ttyS5
2024-05-15 02:35:25.094431500 INFO: Create daemontools service vedirect-interfac      e.ttyS6
2024-05-15 02:35:26.627763500 INFO: Create daemontools service vedirect-interfac      e.ttyS7
2024-05-15 02:35:28.284526500 INFO: Start service mk2-dbus.ttyS4
2024-05-15 02:35:29.823312500 INFO: Start service vedirect-interface.ttyS5
2024-05-15 02:35:31.277166500 INFO: Start service vedirect-interface.ttyS6
2024-05-15 02:35:32.790294500 INFO: Start service vedirect-interface.ttyS7
2024-05-15 02:49:31.465950500 *** CCGX booted (0) ***
2024-05-15 02:49:31.972036500 *** starting serial-starter ***
2024-05-15 02:49:32.629215500 serstart starting
2024-05-15 02:49:32.641283500 INFO: loading config file /etc/venus/serial-starte      r.conf
2024-05-15 02:49:33.369019500 INFO: loading config file /data/conf/serial-starte      r.d/dbus-serialbattery.conf
2024-05-15 02:49:35.239051500 INFO: Create daemontools service mk2-dbus.ttyS4
2024-05-15 02:49:36.732479500 INFO: Create daemontools service vedirect-interfac      e.ttyS5
2024-05-15 02:49:38.264769500 INFO: Create daemontools service vedirect-interfac      e.ttyS6
2024-05-15 02:49:39.701865500 INFO: Create daemontools service vedirect-interfac      e.ttyS7
2024-05-15 02:49:41.519801500 INFO: Start service mk2-dbus.ttyS4
2024-05-15 02:49:42.968873500 INFO: Start service vedirect-interface.ttyS5
2024-05-15 02:49:44.408418500 INFO: Start service vedirect-interface.ttyS6
2024-05-15 02:49:45.896467500 INFO: Start service vedirect-interface.ttyS7

========================================================================================================

root@einstein:~# tail -F -n 100 /data/log/dbus-serialbattery.ttyUSB0/current |tai64nlocal
2024-05-15 01:23:46.744749500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-15 01:23:47.031915500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:23:47.035529500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:23:48.059697500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:23:48.060436500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:23:48.082667500 INFO:SerialBattery:Start testing for Seplos v3 on slave address 0
2024-05-15 01:23:48.930054500 ERROR:SerialBattery:Non blocking exception occurred: UnboundLocalError("local variable 'found' referenced before assignment") of type <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py line #115
2024-05-15 01:23:49.431570500 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB0
2024-05-15 01:24:25.634031500 INFO:SerialBattery:
2024-05-15 01:24:25.634751500 INFO:SerialBattery:Starting dbus-serialbattery
2024-05-15 01:24:25.636873500 INFO:SerialBattery:Venus OS v3.31
2024-05-15 01:24:25.637573500 INFO:SerialBattery:dbus-serialbattery v1.2.20240401
2024-05-15 01:24:41.650536500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-05-15 01:24:41.651652500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-15 01:24:41.796581500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:41.797523500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-15 01:24:41.938495500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:41.939277500 INFO:SerialBattery:Testing Ecs
2024-05-15 01:24:42.019010500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:42.019930500 INFO:SerialBattery:Testing HeltecModbus
2024-05-15 01:24:45.831802500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:45.832509500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-15 01:24:46.654599500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:46.655403500 INFO:SerialBattery:Testing Jkbms
2024-05-15 01:24:46.938779500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:46.942657500 INFO:SerialBattery:Testing Lifepower
2024-05-15 01:24:47.230671500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:47.234771500 INFO:SerialBattery:Testing LltJbd
2024-05-15 01:24:47.536850500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:47.540739500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-05-15 01:24:47.825132500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:47.828677500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-15 01:24:48.113830500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:48.117578500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:24:49.141676500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:49.142410500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:24:49.164782500 INFO:SerialBattery:Start testing for Seplos v3 on slave address 0
2024-05-15 01:24:50.014857500 ERROR:SerialBattery:Non blocking exception occurred: UnboundLocalError("local variable 'found' referenced before assignment") of type <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py line #115
2024-05-15 01:24:50.516490500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2024-05-15 01:24:50.517364500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-15 01:24:50.662478500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:50.664546500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-15 01:24:50.805522500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:50.806278500 INFO:SerialBattery:Testing Ecs
2024-05-15 01:24:51.234739500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:51.235486500 INFO:SerialBattery:Testing HeltecModbus
2024-05-15 01:24:55.042850500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:55.043564500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-15 01:24:55.866589500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:55.867308500 INFO:SerialBattery:Testing Jkbms
2024-05-15 01:24:56.155534500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:56.159763500 INFO:SerialBattery:Testing Lifepower
2024-05-15 01:24:56.444260500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:56.448541500 INFO:SerialBattery:Testing LltJbd
2024-05-15 01:24:56.734562500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:56.738649500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-05-15 01:24:57.021058500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:57.024672500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-15 01:24:57.312931500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:57.316570500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:24:58.340552500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:58.341441500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:24:58.363641500 INFO:SerialBattery:Start testing for Seplos v3 on slave address 0
2024-05-15 01:24:59.210904500 ERROR:SerialBattery:Non blocking exception occurred: UnboundLocalError("local variable 'found' referenced before assignment") of type <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py line #115
2024-05-15 01:24:59.712819500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-05-15 01:24:59.714058500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-15 01:24:59.856514500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:59.857395500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-15 01:24:59.998511500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:59.999577500 INFO:SerialBattery:Testing Ecs
2024-05-15 01:25:00.427325500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:00.428139500 INFO:SerialBattery:Testing HeltecModbus
2024-05-15 01:25:04.235692500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:04.236420500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-15 01:25:05.064600500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:05.065384500 INFO:SerialBattery:Testing Jkbms
2024-05-15 01:25:05.357044500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:05.360525500 INFO:SerialBattery:Testing Lifepower
2024-05-15 01:25:05.647882500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:05.651674500 INFO:SerialBattery:Testing LltJbd
2024-05-15 01:25:05.942719500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:05.946870500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-05-15 01:25:06.229053500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:06.232750500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-15 01:25:06.516689500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:06.520787500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:25:07.544659500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:07.545366500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:25:07.567644500 INFO:SerialBattery:Start testing for Seplos v3 on slave address 0
2024-05-15 01:25:08.415065500 ERROR:SerialBattery:Non blocking exception occurred: UnboundLocalError("local variable 'found' referenced before assignment") of type <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py line #115
2024-05-15 01:25:08.919624500 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB0
2024-05-15 01:25:45.095983500 INFO:SerialBattery:
2024-05-15 01:25:45.096697500 INFO:SerialBattery:Starting dbus-serialbattery
2024-05-15 01:25:45.098711500 INFO:SerialBattery:Venus OS v3.31
2024-05-15 01:25:45.099356500 INFO:SerialBattery:dbus-serialbattery v1.2.20240401
2024-05-15 01:27:06.293524500 *** CCGX booted (0) ***
2024-05-15 02:01:32.378511500 *** CCGX booted (0) ***
2024-05-15 02:24:55.285172500 *** CCGX booted (0) ***
2024-05-15 02:35:18.331851500 *** CCGX booted (0) ***
2024-05-15 02:49:31.348447500 *** CCGX booted (0) ***

Any other information that may be helpful

I tried a these driver versions as well: 1) latest release "v1.2.20240408" (louisvdw's repo, stable) 2) latest release "v1.2.20240401" (mr-manuel's repo, stable, most up to date)

I did have other Renogy batteries linked; but have unlinked them (ie removed the link cable connecting the BMS's) to just get one renogy battery to talk to the Cerbo GX.

mr-manuel commented 6 months ago

It seems that after the last reboot you are not getting any logs anymore. Are you sure, you selected the right port?

You could try with tail -n 100 -F /var/log/dbus-serialbattery.*/current | tai64nlocal to fetch all logs of all ttyUSB ports.

WawaRoo commented 6 months ago

Looks like USB0 and USB1 are assinged to serial battery; see log at bottom.

I've tried physically moving the cable to try each of the ports; I'm beginning to wonder if i have a cable issue, but it is a new generic RS232, although i also tried a another USB-RS485 but with CH343.

root@einstein:~# tail -n 100 -F /var/log/dbus-serialbattery.*/current | tai64nlocal
==> /var/log/dbus-serialbattery.ttyACM0/current <==
2024-05-14 01:07:55.477318500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-05-14 01:07:55.477329500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-14 01:07:55.631612500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:07:55.632564500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-14 01:07:55.774747500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:07:55.775492500 INFO:SerialBattery:Testing Ecs
2024-05-14 01:07:56.190799500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:07:56.192188500 INFO:SerialBattery:Testing HeltecModbus
2024-05-14 01:08:00.033668500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:00.034508500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-14 01:08:00.862641500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:00.863339500 INFO:SerialBattery:Testing Jkbms
2024-05-14 01:08:01.132995500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:01.150752500 INFO:SerialBattery:Testing Lifepower
2024-05-14 01:08:01.433551500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:01.451819500 INFO:SerialBattery:Testing LltJbd
2024-05-14 01:08:01.731814500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:01.749781500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-05-14 01:08:02.018714500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:02.036639500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-14 01:08:02.316094500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:02.333455500 INFO:SerialBattery:Testing Seplos
2024-05-14 01:08:03.357529500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:03.358243500 INFO:SerialBattery:Testing Seplosv3
2024-05-14 01:08:03.379534500 INFO:SerialBattery:Start testing for Seplos v3 on slave address 0
2024-05-14 01:08:04.231997500 ERROR:SerialBattery:Non blocking exception occurred: UnboundLocalError("local variable 'found' referenced before assignment") of type <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py line #115
2024-05-14 01:08:04.733511500 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyACM0
2024-05-14 01:08:19.552813500 INFO:SerialBattery:
2024-05-14 01:08:19.553509500 INFO:SerialBattery:Starting dbus-serialbattery
2024-05-14 01:08:19.555510500 INFO:SerialBattery:Venus OS v3.31
2024-05-14 01:08:19.556145500 INFO:SerialBattery:dbus-serialbattery v1.2.20240401
2024-05-14 01:08:35.571633500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-05-14 01:08:35.572527500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-14 01:08:35.720534500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:35.721593500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-14 01:08:35.864556500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:35.865385500 INFO:SerialBattery:Testing Ecs
2024-05-14 01:08:35.926893500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:35.927612500 INFO:SerialBattery:Testing HeltecModbus
2024-05-14 01:08:39.769690500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:39.770405500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-14 01:08:40.598480500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:40.598490500 INFO:SerialBattery:Testing Jkbms
2024-05-14 01:08:40.884162500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:40.901708500 INFO:SerialBattery:Testing Lifepower
2024-05-14 01:08:41.171623500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:41.197869500 INFO:SerialBattery:Testing LltJbd
2024-05-14 01:08:41.472042500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:41.489772500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-05-14 01:08:41.764194500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:41.788758500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-14 01:08:42.058895500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-14 01:08:42.076574500 INFO:SerialBattery:Testing Seplos
2024-05-14 01:08:43.100546500 ERROR:SerialBattery:>>> ERROR: No repl@400000006642b9f0100328c4 *** CCGX booted (0) ***
2024-05-14 15:30:23.254912500 *** CCGX booted (0) ***
2024-05-14 16:17:42.245450500 *** CCGX booted (0) ***
2024-05-14 17:41:24.281485500 *** CCGX booted (0) ***
2024-05-14 20:45:53.283295500 *** CCGX booted (0) ***
2024-05-14 23:44:16.295686500 *** CCGX booted (0) ***
2024-05-15 01:27:06.279542500 *** CCGX booted (0) ***
2024-05-15 02:01:32.369721500 *** CCGX booted (0) ***
2024-05-15 02:24:55.276295500 *** CCGX booted (0) ***
2024-05-15 02:35:18.323382500 *** CCGX booted (0) ***
2024-05-15 02:49:31.340049500 *** CCGX booted (0) ***

==> /var/log/dbus-serialbattery.ttyUSB0/current <==
2024-05-15 01:23:46.744749500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-15 01:23:47.031915500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:23:47.035529500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:23:48.059697500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:23:48.060436500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:23:48.082667500 INFO:SerialBattery:Start testing for Seplos v3 on slave address 0
2024-05-15 01:23:48.930054500 ERROR:SerialBattery:Non blocking exception occurred: UnboundLocalError("local variable 'found' referenced before assignment") of type <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py line #115
2024-05-15 01:23:49.431570500 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB0
2024-05-15 01:24:25.634031500 INFO:SerialBattery:
2024-05-15 01:24:25.634751500 INFO:SerialBattery:Starting dbus-serialbattery
2024-05-15 01:24:25.636873500 INFO:SerialBattery:Venus OS v3.31
2024-05-15 01:24:25.637573500 INFO:SerialBattery:dbus-serialbattery v1.2.20240401
2024-05-15 01:24:41.650536500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-05-15 01:24:41.651652500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-15 01:24:41.796581500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:41.797523500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-15 01:24:41.938495500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:41.939277500 INFO:SerialBattery:Testing Ecs
2024-05-15 01:24:42.019010500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:42.019930500 INFO:SerialBattery:Testing HeltecModbus
2024-05-15 01:24:45.831802500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:45.832509500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-15 01:24:46.654599500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:46.655403500 INFO:SerialBattery:Testing Jkbms
2024-05-15 01:24:46.938779500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:46.942657500 INFO:SerialBattery:Testing Lifepower
2024-05-15 01:24:47.230671500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:47.234771500 INFO:SerialBattery:Testing LltJbd
2024-05-15 01:24:47.536850500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:47.540739500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-05-15 01:24:47.825132500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:47.828677500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-15 01:24:48.113830500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:48.117578500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:24:49.141676500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:49.142410500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:24:49.164782500 INFO:SerialBattery:Start testing for Seplos v3 on slave address 0
2024-05-15 01:24:50.014857500 ERROR:SerialBattery:Non blocking exception occurred: UnboundLocalError("local variable 'found' referenced before assignment") of type <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py line #115
2024-05-15 01:24:50.516490500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2024-05-15 01:24:50.517364500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-15 01:24:50.662478500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:50.664546500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-15 01:24:50.805522500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:50.806278500 INFO:SerialBattery:Testing Ecs
2024-05-15 01:24:51.234739500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:51.235486500 INFO:SerialBattery:Testing HeltecModbus
2024-05-15 01:24:55.042850500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:55.043564500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-15 01:24:55.866589500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:55.867308500 INFO:SerialBattery:Testing Jkbms
2024-05-15 01:24:56.155534500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:56.159763500 INFO:SerialBattery:Testing Lifepower
2024-05-15 01:24:56.444260500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:56.448541500 INFO:SerialBattery:Testing LltJbd
2024-05-15 01:24:56.734562500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:56.738649500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-05-15 01:24:57.021058500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:57.024672500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-15 01:24:57.312931500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:57.316570500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:24:58.340552500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:58.341441500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:24:58.363641500 INFO:SerialBattery:Start testing for Seplos v3 on slave address 0
2024-05-15 01:24:59.210904500 ERROR:SerialBattery:Non blocking exception occurred: UnboundLocalError("local variable 'found' referenced before assignment") of type <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py line #115
2024-05-15 01:24:59.712819500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-05-15 01:24:59.714058500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-15 01:24:59.856514500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:59.857395500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-15 01:24:59.998511500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:24:59.999577500 INFO:SerialBattery:Testing Ecs
2024-05-15 01:25:00.427325500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:00.428139500 INFO:SerialBattery:Testing HeltecModbus
2024-05-15 01:25:04.235692500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:04.236420500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-15 01:25:05.064600500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:05.065384500 INFO:SerialBattery:Testing Jkbms
2024-05-15 01:25:05.357044500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:05.360525500 INFO:SerialBattery:Testing Lifepower
2024-05-15 01:25:05.647882500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:05.651674500 INFO:SerialBattery:Testing LltJbd
2024-05-15 01:25:05.942719500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:05.946870500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-05-15 01:25:06.229053500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:06.232750500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-05-15 01:25:06.516689500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:06.520787500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:25:07.544659500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-05-15 01:25:07.545366500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:25:07.567644500 INFO:SerialBattery:Start testing for Seplos v3 on slave address 0
2024-05-15 01:25:08.415065500 ERROR:SerialBattery:Non blocking exception occurred: UnboundLocalError("local variable 'found' referenced before assignment") of type <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py line #115
2024-05-15 01:25:08.919624500 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB0
2024-05-15 01:25:45.095983500 INFO:SerialBattery:
2024-05-15 01:25:45.096697500 INFO:SerialBattery:Starting dbus-serialbattery
2024-05-15 01:25:45.098711500 INFO:SerialBattery:Venus OS v3.31
2024-05-15 01:25:45.099356500 INFO:SerialBattery:dbus-serialbattery v1.2.20240401
2024-05-15 01:27:06.293524500 *** CCGX booted (0) ***
2024-05-15 02:01:32.378511500 *** CCGX booted (0) ***
2024-05-15 02:24:55.285172500 *** CCGX booted (0) ***
2024-05-15 02:35:18.331851500 *** CCGX booted (0) ***
2024-05-15 02:49:31.348447500 *** CCGX booted (0) ***

================================================================================

root@einstein:~# head /data/var/lib/serial-starter/*
==> /data/var/lib/serial-starter/ttyACM0 <==
sbattery

==> /data/var/lib/serial-starter/ttyS4 <==
mkx

==> /data/var/lib/serial-starter/ttyS5 <==
vedirect

==> /data/var/lib/serial-starter/ttyS6 <==
vedirect

==> /data/var/lib/serial-starter/ttyS7 <==
vedirect

==> /data/var/lib/serial-starter/ttyUSB0 <==
sbattery

==> /data/var/lib/serial-starter/ttyUSB1 <==
sbattery
mr-manuel commented 6 months ago

Very strange that there are no new logs. Try to reinstall the driver and reboot the GX device after.

WawaRoo commented 6 months ago

Results look very similar.

*** dbus-serialbattery v1.2.20240401 was installed. ***

rebooted
=======================================================
root@einstein:~# head /data/var/lib/serial-starter/*
==> /data/var/lib/serial-starter/ttyACM0 <==

==> /data/var/lib/serial-starter/ttyS4 <==
mkx

==> /data/var/lib/serial-starter/ttyS5 <==
vedirect

==> /data/var/lib/serial-starter/ttyS6 <==
vedirect

==> /data/var/lib/serial-starter/ttyS7 <==
vedirect

==> /data/var/lib/serial-starter/ttyUSB0 <==

==> /data/var/lib/serial-starter/ttyUSB1 <==
root@einstein:~# tail -n 100 -F /var/log/dbus-serialbattery.*/current | tai64nlo                                             cal
==> /var/log/dbus-serialbattery.ttyACM0/current <==
2024-05-14 01:07:55.477318500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-05-14 01:07:55.477329500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-14 01:07:55.631612500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:07:55.632564500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-14 01:07:55.774747500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:07:55.775492500 INFO:SerialBattery:Testing Ecs
2024-05-14 01:07:56.190799500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:07:56.192188500 INFO:SerialBattery:Testing HeltecModbus
2024-05-14 01:08:00.033668500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:00.034508500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-14 01:08:00.862641500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:00.863339500 INFO:SerialBattery:Testing Jkbms
2024-05-14 01:08:01.132995500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:01.150752500 INFO:SerialBattery:Testing Lifepower
2024-05-14 01:08:01.433551500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:01.451819500 INFO:SerialBattery:Testing LltJbd
2024-05-14 01:08:01.731814500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:01.749781500 INFO:SerialBattery:Testing Renogy at address "\x30                                             "
2024-05-14 01:08:02.018714500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:02.036639500 INFO:SerialBattery:Testing Renogy at address "\xf7                                             "
2024-05-14 01:08:02.316094500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:02.333455500 INFO:SerialBattery:Testing Seplos
2024-05-14 01:08:03.357529500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:03.358243500 INFO:SerialBattery:Testing Seplosv3
2024-05-14 01:08:03.379534500 INFO:SerialBattery:Start testing for Seplos v3 on                                              slave address 0
2024-05-14 01:08:04.231997500 ERROR:SerialBattery:Non blocking exception occurre                                             d: UnboundLocalError("local variable 'found' referenced before assignment") of t                                             ype <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-se                                             rialbattery.py line #115
2024-05-14 01:08:04.733511500 ERROR:SerialBattery:ERROR >>> No battery connectio                                             n at /dev/ttyACM0
2024-05-14 01:08:19.552813500 INFO:SerialBattery:
2024-05-14 01:08:19.553509500 INFO:SerialBattery:Starting dbus-serialbattery
2024-05-14 01:08:19.555510500 INFO:SerialBattery:Venus OS v3.31
2024-05-14 01:08:19.556145500 INFO:SerialBattery:dbus-serialbattery v1.2.2024040                                             1
2024-05-14 01:08:35.571633500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-05-14 01:08:35.572527500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-14 01:08:35.720534500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:35.721593500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-14 01:08:35.864556500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:35.865385500 INFO:SerialBattery:Testing Ecs
2024-05-14 01:08:35.926893500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:35.927612500 INFO:SerialBattery:Testing HeltecModbus
2024-05-14 01:08:39.769690500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:39.770405500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-14 01:08:40.598480500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:40.598490500 INFO:SerialBattery:Testing Jkbms
2024-05-14 01:08:40.884162500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:40.901708500 INFO:SerialBattery:Testing Lifepower
2024-05-14 01:08:41.171623500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:41.197869500 INFO:SerialBattery:Testing LltJbd
2024-05-14 01:08:41.472042500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:41.489772500 INFO:SerialBattery:Testing Renogy at address "\x30                                             "
2024-05-14 01:08:41.764194500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:41.788758500 INFO:SerialBattery:Testing Renogy at address "\xf7                                             "
2024-05-14 01:08:42.058895500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-14 01:08:42.076574500 INFO:SerialBattery:Testing Seplos
2024-05-14 01:08:43.100546500 ERROR:SerialBattery:>>> ERROR: No repl@40000000664                                             2b9f0100328c4 *** CCGX booted (0) ***
2024-05-14 15:30:23.254912500 *** CCGX booted (0) ***
2024-05-14 16:17:42.245450500 *** CCGX booted (0) ***
2024-05-14 17:41:24.281485500 *** CCGX booted (0) ***
2024-05-14 20:45:53.283295500 *** CCGX booted (0) ***
2024-05-14 23:44:16.295686500 *** CCGX booted (0) ***
2024-05-15 01:27:06.279542500 *** CCGX booted (0) ***
2024-05-15 02:01:32.369721500 *** CCGX booted (0) ***
2024-05-15 02:24:55.276295500 *** CCGX booted (0) ***
2024-05-15 02:35:18.323382500 *** CCGX booted (0) ***
2024-05-15 02:49:31.340049500 *** CCGX booted (0) ***
2024-05-15 23:13:19.305097500 *** CCGX booted (0) ***

==> /var/log/dbus-serialbattery.ttyUSB0/current <==
2024-05-15 01:23:47.031915500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:23:47.035529500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:23:48.059697500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:23:48.060436500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:23:48.082667500 INFO:SerialBattery:Start testing for Seplos v3 on                                              slave address 0
2024-05-15 01:23:48.930054500 ERROR:SerialBattery:Non blocking exception occurre                                             d: UnboundLocalError("local variable 'found' referenced before assignment") of t                                             ype <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-se                                             rialbattery.py line #115
2024-05-15 01:23:49.431570500 ERROR:SerialBattery:ERROR >>> No battery connectio                                             n at /dev/ttyUSB0
2024-05-15 01:24:25.634031500 INFO:SerialBattery:
2024-05-15 01:24:25.634751500 INFO:SerialBattery:Starting dbus-serialbattery
2024-05-15 01:24:25.636873500 INFO:SerialBattery:Venus OS v3.31
2024-05-15 01:24:25.637573500 INFO:SerialBattery:dbus-serialbattery v1.2.2024040                                             1
2024-05-15 01:24:41.650536500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-05-15 01:24:41.651652500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-15 01:24:41.796581500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:41.797523500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-15 01:24:41.938495500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:41.939277500 INFO:SerialBattery:Testing Ecs
2024-05-15 01:24:42.019010500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:42.019930500 INFO:SerialBattery:Testing HeltecModbus
2024-05-15 01:24:45.831802500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:45.832509500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-15 01:24:46.654599500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:46.655403500 INFO:SerialBattery:Testing Jkbms
2024-05-15 01:24:46.938779500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:46.942657500 INFO:SerialBattery:Testing Lifepower
2024-05-15 01:24:47.230671500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:47.234771500 INFO:SerialBattery:Testing LltJbd
2024-05-15 01:24:47.536850500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:47.540739500 INFO:SerialBattery:Testing Renogy at address "\x30                                             "
2024-05-15 01:24:47.825132500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:47.828677500 INFO:SerialBattery:Testing Renogy at address "\xf7                                             "
2024-05-15 01:24:48.113830500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:48.117578500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:24:49.141676500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:49.142410500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:24:49.164782500 INFO:SerialBattery:Start testing for Seplos v3 on                                              slave address 0
2024-05-15 01:24:50.014857500 ERROR:SerialBattery:Non blocking exception occurre                                             d: UnboundLocalError("local variable 'found' referenced before assignment") of t                                             ype <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-se                                             rialbattery.py line #115
2024-05-15 01:24:50.516490500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2024-05-15 01:24:50.517364500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-15 01:24:50.662478500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:50.664546500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-15 01:24:50.805522500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:50.806278500 INFO:SerialBattery:Testing Ecs
2024-05-15 01:24:51.234739500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:51.235486500 INFO:SerialBattery:Testing HeltecModbus
2024-05-15 01:24:55.042850500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:55.043564500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-15 01:24:55.866589500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:55.867308500 INFO:SerialBattery:Testing Jkbms
2024-05-15 01:24:56.155534500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:56.159763500 INFO:SerialBattery:Testing Lifepower
2024-05-15 01:24:56.444260500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:56.448541500 INFO:SerialBattery:Testing LltJbd
2024-05-15 01:24:56.734562500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:56.738649500 INFO:SerialBattery:Testing Renogy at address "\x30                                             "
2024-05-15 01:24:57.021058500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:57.024672500 INFO:SerialBattery:Testing Renogy at address "\xf7                                             "
2024-05-15 01:24:57.312931500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:57.316570500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:24:58.340552500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:58.341441500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:24:58.363641500 INFO:SerialBattery:Start testing for Seplos v3 on                                              slave address 0
2024-05-15 01:24:59.210904500 ERROR:SerialBattery:Non blocking exception occurre                                             d: UnboundLocalError("local variable 'found' referenced before assignment") of t                                             ype <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-se                                             rialbattery.py line #115
2024-05-15 01:24:59.712819500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-05-15 01:24:59.714058500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-05-15 01:24:59.856514500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:59.857395500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-05-15 01:24:59.998511500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:24:59.999577500 INFO:SerialBattery:Testing Ecs
2024-05-15 01:25:00.427325500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:25:00.428139500 INFO:SerialBattery:Testing HeltecModbus
2024-05-15 01:25:04.235692500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:25:04.236420500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-05-15 01:25:05.064600500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:25:05.065384500 INFO:SerialBattery:Testing Jkbms
2024-05-15 01:25:05.357044500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:25:05.360525500 INFO:SerialBattery:Testing Lifepower
2024-05-15 01:25:05.647882500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:25:05.651674500 INFO:SerialBattery:Testing LltJbd
2024-05-15 01:25:05.942719500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:25:05.946870500 INFO:SerialBattery:Testing Renogy at address "\x30                                             "
2024-05-15 01:25:06.229053500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:25:06.232750500 INFO:SerialBattery:Testing Renogy at address "\xf7                                             "
2024-05-15 01:25:06.516689500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:25:06.520787500 INFO:SerialBattery:Testing Seplos
2024-05-15 01:25:07.544659500 ERROR:SerialBattery:>>> ERROR: No reply - returnin                                             g
2024-05-15 01:25:07.545366500 INFO:SerialBattery:Testing Seplosv3
2024-05-15 01:25:07.567644500 INFO:SerialBattery:Start testing for Seplos v3 on                                              slave address 0
2024-05-15 01:25:08.415065500 ERROR:SerialBattery:Non blocking exception occurre                                             d: UnboundLocalError("local variable 'found' referenced before assignment") of t                                             ype <class 'UnboundLocalError'> in /opt/victronenergy/dbus-serialbattery/dbus-se                                             rialbattery.py line #115
2024-05-15 01:25:08.919624500 ERROR:SerialBattery:ERROR >>> No battery connectio                                             n at /dev/ttyUSB0
2024-05-15 01:25:45.095983500 INFO:SerialBattery:
2024-05-15 01:25:45.096697500 INFO:SerialBattery:Starting dbus-serialbattery
2024-05-15 01:25:45.098711500 INFO:SerialBattery:Venus OS v3.31
2024-05-15 01:25:45.099356500 INFO:SerialBattery:dbus-serialbattery v1.2.2024040                                             1
2024-05-15 01:27:06.293524500 *** CCGX booted (0) ***
2024-05-15 02:01:32.378511500 *** CCGX booted (0) ***
2024-05-15 02:24:55.285172500 *** CCGX booted (0) ***
2024-05-15 02:35:18.331851500 *** CCGX booted (0) ***
2024-05-15 02:49:31.348447500 *** CCGX booted (0) ***
2024-05-15 23:13:19.313666500 *** CCGX booted (0) ***
mdkeil commented 6 months ago

The log will be shorter If you directly set your BMS type via config.ini

mr-manuel commented 6 months ago

The serial starter is not starting the driver. Probably your adapter is not recognized anymore correctly. Check with lsusb.

Are you using a USB hub? If yes, connect the USB to serial adapter directly to a USB port.

The log of the serial starter should contain this output: https://louisvdw.github.io/dbus-serialbattery/troubleshoot/#datalogserial-startercurrent

WawaRoo commented 6 months ago

No USB hub; I'm going to get a new cable; will take a few days.

mr-manuel commented 6 months ago

What is the output of lsusb?

WawaRoo commented 5 months ago
root@einstein:~# lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0bda:d723 Realtek Semiconductor Corp. 802.11n WLAN Adapter
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mr-manuel commented 5 months ago

Your USB to serial adapter is not recognized. That is the problem.

mr-manuel commented 5 months ago

Do you still need assistance?

WawaRoo commented 5 months ago

I have ordered a victron cable (after trying 3 different generic ones); I wont have it until the weekend. Ill let you know if i get things to work, or if i still have issues. Thx

mr-manuel commented 4 months ago

Any updates?

WawaRoo commented 4 months ago

Yes...so got new cable....wired on RJ45....and got connected to my battery.

Given that i have 4 batteries (Renogy) linked together via rj45, i installed dbus-aggregate-batteries; It does not see any batteries. Wondering how to troubleshoot?

mr-manuel commented 4 months ago

Please post a picture of your cabeling. You know that you currently can connect only one battery per serial adapter? See also https://github.com/Louisvdw/dbus-serialbattery/issues/142.

WawaRoo commented 4 months ago

IMG_5564 In the pic of cabling, i can attach the renogy Bluetooth adapter in place of the cable to the Cerbo, and see all of the batteries.

I was thinking i may need a serial adapter per BMS.

Question: I will need to add a USB hub, as the cerbo only has 3 ports, and i need 4, Will this work? Q2: Is aggregate battery a good solution for connecting the 4 BMS's? Or is it OK to just run 4 instances of serial battery?

mr-manuel commented 4 months ago

https://louisvdw.github.io/dbus-serialbattery/faq/#what-can-i-do-if-the-bms-communication-is-unstable

https://louisvdw.github.io/dbus-serialbattery/faq/#how-to-aggregate-multiple-batteries

ewinkley commented 2 months ago

@WawaRoo how did you connect the Renogy BT adapter to the Cerbo? Are you referring to the Renogy BT-2 module? In what port on the Cerbo did you connect?