Closed schindlerit1984 closed 1 year ago
Multiple devices on one RS485 adapter are not supported yet. See https://github.com/Louisvdw/dbus-serialbattery/issues/8
this is via two adapters not one
Oh ok. That you meaned with indivitually. Only connected one at a time over USB to serial adapter. If you connect both at the same time, with one adapter each it do not work. Is this correct?
@wollew maybe you can take a look?
yeah so once the first one is detected the second one gets ignored / either on boot or boot once a second one is connected either as usb0 / 1 / 2 ... it does not matter.
the once i am using is shown as :
lrwxrwxrwx 1 root root 13 Jan 1 1970 usb-FTDI_FT232R_USB_UART_A9HJMHE8-if00-port0 -> ../../ttyUSB0 lrwxrwxrwx 1 root root 13 May 20 13:49 usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_0001-if00-port0 -> ../../ttyUSB7
in my case ttyUSB0 works just fine - both converters work fine individually - also it does not matter if they come up as ttyUSB 1-7 . both packs have no dip switch enabled - switching between the packs and all various combinations bring the same result
if i try to manually start them with ./start-serialbattery.sh ttyUSB7 i am getting ->
UTC-2023.05.20-13:53:57 Starting dbus-serialbattery.py on ttyUSB7
INFO:SerialBattery:
INFO:SerialBattery:Starting dbus-serialbattery
INFO:SerialBattery:dbus-serialbattery v1.0.20230518dev
INFO:SerialBattery:Testing Seplos
WARNING:SerialBattery:checksum error
INFO:SerialBattery:Testing Seplos
ERROR:SerialBattery:Unexpected err=SerialException('read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)'), type(err)=<class 'serialserialutil.SerialException'>
INFO:SerialBattery:Testing Seplos
ERROR:SerialBattery:Unexpected err=SerialException('read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)'), type(err)=<class 'serialserialutil.SerialException'>
ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB7
Oh ok. That you meaned with indivitually. Only connected one at a time over USB to serial adapter. If you connect both at the same time, with one adapter each it do not work. Is this correct?
@wollew maybe you can take a look?
I will ty to look into it, sorry for the delay, it seems I did not get a notification (or I overlooked it). EDIT: I did receive the notification emails but apparently deleted them immediately, my bad.
@schindlerit1984 Are you saying you're getting the above log output when you already have a running (and working) dbus-serialbattery.py on /dev/ttyUSB0 ? And you then manually start python /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py /dev/ttyUSB7 ?
Also, if you unplug usb-FTDI_FT232R_USB_UART_A9HJMHE8-if00-port0, does the other adapter still show up as something other than ttyUSB0 but then works?
@schindlerit1984 Are you saying you're getting the above log output when you already have a running (and working) dbus-serialbattery.py on /dev/ttyUSB0 ? And you then manually start python /opt/victronenergy/dbus-serialbattery/dbus-serialbattery.py /dev/ttyUSB7 ?
Yes thats correct.
Once the other is disconnected the other one shows up ( Takes Like 1-2 mins )
So this would mean if we have two separate Python processes using different ttyUSBx it does not work. To me this would mean this is not a problem specific to Seplos but rather at least one level above that. @mr-manuel: Can you confirm we have working examples of the same BMS on more than one separate ttyUSBx?
@schindlerit1984 can you provide the output of
~# ps | grep dbus-serialbattery
while both adapters are connected and then after you unplug the working one and the second shows up?
2092 root 1612 S supervise dbus-serialbattery.ttyUSB0
2094 root 1624 S multilog t s25000 n4 /var/log/dbus-serialbattery.tty
5179 root 20668 S python /opt/victronenergy/dbus-serialbattery/dbus-se
8602 root 1612 S supervise dbus-serialbattery.ttyUSB7
8605 root 1756 S multilog t s25000 n4 /var/log/dbus-serialbattery.tty
8607 root 20668 S python /opt/victronenergy/dbus-serialbattery/dbus-se
9119 root 2692 S grep dbus-serialbattery
with the newest it shows up in the gui with 2 but one on --- and tail -n 100 -f /data/log/dbus-serialbattery.ttyUSB7/current | tai64nlocal gives constant
2023-06-05 13:03:30.655523500 INFO:SerialBattery:Starting dbus-serialbattery
2023-06-05 13:03:30.656321500 INFO:SerialBattery:dbus-serialbattery v1.0.20230526dev
2023-06-05 13:03:30.656959500 INFO:SerialBattery:Testing Seplos
2023-06-05 13:03:31.788106500 INFO:SerialBattery:Connection established to Seplos
2023-06-05 13:03:31.788406500 INFO:SerialBattery:Battery Seplos connected to dbus from /dev/ttyUSB7
2023-06-05 13:03:31.788759500 INFO:SerialBattery:========== Settings ==========
2023-06-05 13:03:31.789380500 INFO:SerialBattery:> Connection voltage: 54.19V | Current: 0.67A | SoC: 98.2%
2023-06-05 13:03:31.789980500 INFO:SerialBattery:> Cell count: 16 | Cells populated: 0
2023-06-05 13:03:31.789985500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2023-06-05 13:03:31.790238500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 194.0A | MAX BATTERY DISCHARGE CURRENT: 194.0A
2023-06-05 13:03:31.790529500 INFO:SerialBattery:> CVCM: True
2023-06-05 13:03:31.790816500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.5V
2023-06-05 13:03:31.791082500 INFO:SerialBattery:> CCCM CV: True | DCCM CV: True
2023-06-05 13:03:31.791355500 INFO:SerialBattery:> CCCM T: False | DCCM T: True
2023-06-05 13:03:31.791623500 INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: True
2023-06-05 13:03:31.829751500 INFO:SerialBattery:DeviceInstance = 1
2023-06-05 13:03:31.830099500 INFO:SerialBattery:com.victronenergy.battery.ttyUSB7
2023-06-05 13:03:31.846536500 INFO:SerialBattery:publish config values = 1
2023-06-05 13:03:39.286677500 WARNING:SerialBattery:checksum error
2023-06-05 13:03:44.286789500 WARNING:SerialBattery:checksum error
2023-06-05 13:03:49.292662500 WARNING:SerialBattery:checksum error
2023-06-05 13:03:54.289135500 WARNING:SerialBattery:checksum error
2023-06-05 13:03:59.291865500 WARNING:SerialBattery:checksum error
2023-06-05 13:04:04.291239500 WARNING:SerialBattery:checksum error
2023-06-05 13:04:09.294518500 WARNING:SerialBattery:checksum error
2023-06-05 13:04:14.295512500 WARNING:SerialBattery:checksum error
2023-06-05 13:04:19.298988500 WARNING:SerialBattery:checksum error
2023-06-05 13:04:24.297780500 WARNING:SerialBattery:checksum error
2023-06-05 13:04:29.303358500 WARNING:SerialBattery:checksum error
2023-06-05 13:04:34.301715500 WARNING:SerialBattery:checksum error
2023-06-05 13:04:39.307015500 WARNING:SerialBattery:checksum error
so it seems like that now it comes up once but then gets the checksum error again. ( i just plugged in the usb7 again without reboot)
I guess you already checked this always happens for the second adapter, no matter which adapter you use as the second one (looking at https://github.com/Louisvdw/dbus-serialbattery/issues/652#issuecomment-1555916894 you own two different ones) and also no matter which physical BMS is connected to which adapter? If so, I have no idea what could be the issue here because the two python process should not interfere with each other. Would you be able to change the loglevel to DEBUG and then give us the output (check /opt/victronenergy/dbus-serialbattery/utils.py)? Not that I really know how that could help but maybe I'm missing something here.
Yes tried all the various ways. Different Adapter / Same Type Adapter , different cables , swapped them and so on.
Checking on the loglevel
sometimes both are there an then 20 secs later one is gone and the other one is there
both then end up in checksum error - during loading this happens
2023-06-05 13:46:41.500149500 INFO:SerialBattery:Starting dbus-serialbattery
2023-06-05 13:46:41.500960500 INFO:SerialBattery:dbus-serialbattery v1.0.20230526dev
2023-06-05 13:46:41.501372500 INFO:SerialBattery:Testing Seplos
2023-06-05 13:46:43.390286500 ERROR:SerialBattery:Unexpected err=UnicodeDecodeError('ascii', b'\x80\x00\x06f', 0, 1, 'ordinal not in range(128)'), type(err)=<class 'UnicodeDecodeError'>
2023-06-05 13:46:43.390515500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-05 13:46:43.891299500 INFO:SerialBattery:Testing Seplos
2023-06-05 13:46:46.147632500 WARNING:SerialBattery:checksum error
2023-06-05 13:46:46.154293500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-05 13:46:46.655379500 INFO:SerialBattery:Testing Seplos
2023-06-05 13:46:47.788607500 INFO:SerialBattery:Connection established to Seplos
2023-06-05 13:46:47.789085500 INFO:SerialBattery:Battery Seplos connected to dbus from /dev/ttyUSB7
2023-06-05 13:46:47.789384500 INFO:SerialBattery:========== Settings ==========
2023-06-05 13:46:47.789842500 INFO:SerialBattery:> Connection voltage: 54.44V | Current: 25.59A | SoC: 98.1%
2023-06-05 13:46:47.790152500 INFO:SerialBattery:> Cell count: 16 | Cells populated: 0
2023-06-05 13:46:47.790700500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2023-06-05 13:46:47.791094500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 194.0A | MAX BATTERY DISCHARGE CURRENT: 194.0A
2023-06-05 13:46:47.791392500 INFO:SerialBattery:> CVCM: True
2023-06-05 13:46:47.791718500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.5V
2023-06-05 13:46:47.792035500 INFO:SerialBattery:> CCCM CV: True | DCCM CV: True
2023-06-05 13:46:47.792343500 INFO:SerialBattery:> CCCM T: False | DCCM T: True
2023-06-05 13:46:47.792632500 INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: True
2023-06-05 13:46:47.826477500 INFO:SerialBattery:DeviceInstance = 1
2023-06-05 13:46:47.826921500 INFO:SerialBattery:com.victronenergy.battery.ttyUSB7
2023-06-05 13:46:47.845993500 INFO:SerialBattery:publish config values = 1
2023-06-05 13:46:56.690850500 Traceback (most recent call last):
2023-06-05 13:46:56.690854500 File "/opt/victronenergy/dbus-serialbattery/dbushelper.py", line 361, in publish_battery
2023-06-05 13:46:56.690858500 success = self.battery.refresh_data()
2023-06-05 13:46:56.690861500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 117, in refresh_data
2023-06-05 13:46:56.690865500 result_status = self.read_status_data()
2023-06-05 13:46:56.690868500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 194, in read_status_data
2023-06-05 13:46:56.690961500 data = self.read_serial_data_seplos(
2023-06-05 13:46:56.690964500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 293, in read_serial_data_seplos
2023-06-05 13:46:56.690968500 if not Seplos.is_valid_frame(data):
2023-06-05 13:46:56.690971500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 267, in is_valid_frame
2023-06-05 13:46:56.690975500 if chksum != Seplos.int_from_2byte_hex_ascii(data, -5):
2023-06-05 13:46:56.691005500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 32, in int_from_2byte_hex_ascii
2023-06-05 13:46:56.691010500 bytes.fromhex(data[offset : offset + 4].decode("ascii")),
2023-06-05 13:46:56.691013500 UnicodeDecodeError: 'ascii' codec can't decode byte 0x94 in position 1: ordinal not in range(128)
2023-06-05 13:46:56.691017500
reboot gave debug infos - let me check
rebooted with usb0 + 4 now :
the moment usb4 goes out it posts
2023-06-05 13:52:15.555094500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
3.341V [16]3.342V
2023-06-05 13:51:44.395782500 DEBUG:SerialBattery:read status data
2023-06-05 13:51:44.396171500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:51:44.406723500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 13:51:45.521412500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D7A0D210D5C0D280D3E0D1C0D780D360D0E0D3A0D0D0D3B0D150D180D0D0D0E060C0D0BF80BFA0C0C0C340C19FFCC151A6B4F0A6D6003D56D60001603E8151CFFF800000BC80B5B'
2023-06-05 13:51:45.529937500 DEBUG:SerialBattery:Voltage cell[0]=3.45V
2023-06-05 13:51:45.529942500 DEBUG:SerialBattery:Voltage cell[1]=3.361V
2023-06-05 13:51:45.529945500 DEBUG:SerialBattery:Voltage cell[2]=3.42V
2023-06-05 13:51:45.531220500 DEBUG:SerialBattery:Voltage cell[3]=3.368V
2023-06-05 13:51:45.531225500 DEBUG:SerialBattery:Voltage cell[4]=3.39V
2023-06-05 13:51:45.531228500 DEBUG:SerialBattery:Voltage cell[5]=3.356V
2023-06-05 13:51:45.531485500 DEBUG:SerialBattery:Voltage cell[6]=3.448V
2023-06-05 13:51:45.531854500 DEBUG:SerialBattery:Voltage cell[7]=3.382V
2023-06-05 13:51:45.532211500 DEBUG:SerialBattery:Voltage cell[8]=3.342V
2023-06-05 13:51:45.532563500 DEBUG:SerialBattery:Voltage cell[9]=3.386V
2023-06-05 13:51:45.532915500 DEBUG:SerialBattery:Voltage cell[10]=3.341V
2023-06-05 13:51:45.533255500 DEBUG:SerialBattery:Voltage cell[11]=3.387V
2023-06-05 13:51:45.533611500 DEBUG:SerialBattery:Voltage cell[12]=3.349V
2023-06-05 13:51:45.533968500 DEBUG:SerialBattery:Voltage cell[13]=3.352V
2023-06-05 13:51:45.534363500 DEBUG:SerialBattery:Voltage cell[14]=3.341V
2023-06-05 13:51:45.534672500 DEBUG:SerialBattery:Voltage cell[15]=3.342V
2023-06-05 13:51:45.535012500 DEBUG:SerialBattery:Temp cell[0]=35.4°C
2023-06-05 13:51:45.535344500 DEBUG:SerialBattery:Temp cell[1]=33.3°C
2023-06-05 13:51:45.535654500 DEBUG:SerialBattery:Temp cell[2]=33.5°C
2023-06-05 13:51:45.535955500 DEBUG:SerialBattery:Temp cell[3]=35.3°C
2023-06-05 13:51:45.536360500 DEBUG:SerialBattery:Current = -0.52A , Voltage = 54.02V
2023-06-05 13:51:45.536635500 DEBUG:SerialBattery:Capacity = 274.71/280.0Ah , SOC = 98.1%
2023-06-05 13:51:45.536895500 DEBUG:SerialBattery:Cycles = 22
2023-06-05 13:51:45.537178500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C
2023-06-05 13:51:45.537423500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells
2023-06-05 13:51:45.537768500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:51:45.551755500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 13:51:47.615803500 WARNING:SerialBattery:checksum error
2023-06-05 13:51:47.639070500 DEBUG:SerialBattery:logged to dbus [98.1]
2023-06-05 13:51:47.639636500 DEBUG:SerialBattery:Cells:[1]3.45V [2]3.361V [3]3.42V [4]3.368V [5]3.39V [6]3.356V [7]3.448V [8]3.382V [9]3.342V [10]3.386V [11]3.341V [12]3.387V [13]3.349V [14]3.352V [15]3.341V [16]3.342V
2023-06-05 13:51:49.397852500 DEBUG:SerialBattery:read status data
2023-06-05 13:51:49.398227500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:51:49.411417500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 13:51:50.523913500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D7A0D210D5C0D280D3E0D1D0D7A0D360D0F0D3A0D0E0D3B0D150D190D0D0D0E060C0D0BF80BFA0C0C0C340C190000151A6B4F0A6D6003D56D60001603E8151DFFFBFEEA0BC80B5B'
2023-06-05 13:51:50.529828500 DEBUG:SerialBattery:Voltage cell[0]=3.45V
2023-06-05 13:51:50.530183500 DEBUG:SerialBattery:Voltage cell[1]=3.361V
2023-06-05 13:51:50.530650500 DEBUG:SerialBattery:Voltage cell[2]=3.42V
2023-06-05 13:51:50.531096500 DEBUG:SerialBattery:Voltage cell[3]=3.368V
2023-06-05 13:51:50.531537500 DEBUG:SerialBattery:Voltage cell[4]=3.39V
2023-06-05 13:51:50.531988500 DEBUG:SerialBattery:Voltage cell[5]=3.357V
2023-06-05 13:51:50.532428500 DEBUG:SerialBattery:Voltage cell[6]=3.45V
2023-06-05 13:51:50.532896500 DEBUG:SerialBattery:Voltage cell[7]=3.382V
2023-06-05 13:51:50.533331500 DEBUG:SerialBattery:Voltage cell[8]=3.343V
2023-06-05 13:51:50.533757500 DEBUG:SerialBattery:Voltage cell[9]=3.386V
2023-06-05 13:51:50.534173500 DEBUG:SerialBattery:Voltage cell[10]=3.342V
2023-06-05 13:51:50.534674500 DEBUG:SerialBattery:Voltage cell[11]=3.387V
2023-06-05 13:51:50.535140500 DEBUG:SerialBattery:Voltage cell[12]=3.349V
2023-06-05 13:51:50.535520500 DEBUG:SerialBattery:Voltage cell[13]=3.353V
2023-06-05 13:51:50.535889500 DEBUG:SerialBattery:Voltage cell[14]=3.341V
2023-06-05 13:51:50.536235500 DEBUG:SerialBattery:Voltage cell[15]=3.342V
2023-06-05 13:51:50.536650500 DEBUG:SerialBattery:Temp cell[0]=35.4°C
2023-06-05 13:51:50.537013500 DEBUG:SerialBattery:Temp cell[1]=33.3°C
2023-06-05 13:51:50.537320500 DEBUG:SerialBattery:Temp cell[2]=33.5°C
2023-06-05 13:51:50.537619500 DEBUG:SerialBattery:Temp cell[3]=35.3°C
2023-06-05 13:51:50.538027500 DEBUG:SerialBattery:Current = 0.0A , Voltage = 54.02V
2023-06-05 13:51:50.538305500 DEBUG:SerialBattery:Capacity = 274.71/280.0Ah , SOC = 98.1%
2023-06-05 13:51:50.538563500 DEBUG:SerialBattery:Cycles = 22
2023-06-05 13:51:50.538845500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C
2023-06-05 13:51:50.539085500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells
2023-06-05 13:51:50.539433500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:51:50.549770500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 13:51:52.616667500 WARNING:SerialBattery:checksum error
2023-06-05 13:51:52.633402500 DEBUG:SerialBattery:logged to dbus [98.1]
2023-06-05 13:51:52.634063500 DEBUG:SerialBattery:Cells:[1]3.45V [2]3.361V [3]3.42V [4]3.368V [5]3.39V [6]3.357V [7]3.45V [8]3.382V [9]3.343V [10]3.386V [11]3.342V [12]3.387V [13]3.349V [14]3.353V [15]3.341V [16]3.342V
2023-06-05 13:51:54.400024500 DEBUG:SerialBattery:read status data
2023-06-05 13:51:54.400407500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:51:54.414522500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 13:51:55.527683500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D7A0D210D5C0D280D3E0D1D0D7A0D370D0F0D3A0D0F0D3B0D150D180D0D0D0E060C0D0BF80BFA0C0C0C340C190000151A6B4F0A6D6003D56D60001603E8151D000100F20BC80B5B'
2023-06-05 13:51:55.534872500 DEBUG:SerialBattery:Voltage cell[0]=3.45V
2023-06-05 13:51:55.535450500 DEBUG:SerialBattery:Voltage cell[1]=3.361V
2023-06-05 13:51:55.535936500 DEBUG:SerialBattery:Voltage cell[2]=3.42V
2023-06-05 13:51:55.536406500 DEBUG:SerialBattery:Voltage cell[3]=3.368V
2023-06-05 13:51:55.536813500 DEBUG:SerialBattery:Voltage cell[4]=3.39V
2023-06-05 13:51:55.537190500 DEBUG:SerialBattery:Voltage cell[5]=3.357V
2023-06-05 13:51:55.537609500 DEBUG:SerialBattery:Voltage cell[6]=3.45V
2023-06-05 13:51:55.538014500 DEBUG:SerialBattery:Voltage cell[7]=3.383V
2023-06-05 13:51:55.538526500 DEBUG:SerialBattery:Voltage cell[8]=3.343V
2023-06-05 13:51:55.538895500 DEBUG:SerialBattery:Voltage cell[9]=3.386V
2023-06-05 13:51:55.539255500 DEBUG:SerialBattery:Voltage cell[10]=3.343V
2023-06-05 13:51:55.539610500 DEBUG:SerialBattery:Voltage cell[11]=3.387V
2023-06-05 13:51:55.539968500 DEBUG:SerialBattery:Voltage cell[12]=3.349V
2023-06-05 13:51:55.540386500 DEBUG:SerialBattery:Voltage cell[13]=3.352V
2023-06-05 13:51:55.540743500 DEBUG:SerialBattery:Voltage cell[14]=3.341V
2023-06-05 13:51:55.541057500 DEBUG:SerialBattery:Voltage cell[15]=3.342V
^C
root@raspberrypi4:~# tail -n 100 -f /data/log/dbus-serialbattery.ttyUSB4/current | tai64nlocal
2023-06-05 13:51:55.548614500 DEBUG:SerialBattery:Temp cell[0]=35.4°C
2023-06-05 13:51:55.548619500 DEBUG:SerialBattery:Temp cell[1]=33.3°C
2023-06-05 13:51:55.548622500 DEBUG:SerialBattery:Temp cell[2]=33.5°C
2023-06-05 13:51:55.548625500 DEBUG:SerialBattery:Temp cell[3]=35.3°C
2023-06-05 13:51:55.548628500 DEBUG:SerialBattery:Current = 0.0A , Voltage = 54.02V
2023-06-05 13:51:55.548631500 DEBUG:SerialBattery:Capacity = 274.71/280.0Ah , SOC = 98.1%
2023-06-05 13:51:55.548634500 DEBUG:SerialBattery:Cycles = 22
2023-06-05 13:51:55.548637500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C
2023-06-05 13:51:55.548716500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells
2023-06-05 13:51:55.548719500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:51:55.557322500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 13:51:57.620583500 WARNING:SerialBattery:checksum error
2023-06-05 13:51:57.634302500 DEBUG:SerialBattery:logged to dbus [98.1]
2023-06-05 13:51:57.634307500 DEBUG:SerialBattery:Cells:[1]3.45V [2]3.361V [3]3.42V [4]3.368V [5]3.39V [6]3.357V [7]3.45V [8]3.383V [9]3.343V [10]3.386V [11]3.343V [12]3.387V [13]3.349V [14]3.352V [15]3.341V [16]3.342V
2023-06-05 13:51:59.401996500 DEBUG:SerialBattery:read status data
2023-06-05 13:51:59.402382500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:51:59.411845500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 13:52:00.526119500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D7A0D220D5C0D280D3E0D1D0D7A0D360D0F0D3A0D0F0D3B0D160D190D0D0D0E060C0D0BF80BFA0C0C0C340C1900DD151A6B4F0A6D6003D56D60001603E8151FFFFB00000BC80B5B'
2023-06-05 13:52:00.536541500 DEBUG:SerialBattery:Voltage cell[0]=3.45V
2023-06-05 13:52:00.536870500 DEBUG:SerialBattery:Voltage cell[1]=3.362V
2023-06-05 13:52:00.537181500 DEBUG:SerialBattery:Voltage cell[2]=3.42V
2023-06-05 13:52:00.537486500 DEBUG:SerialBattery:Voltage cell[3]=3.368V
2023-06-05 13:52:00.537785500 DEBUG:SerialBattery:Voltage cell[4]=3.39V
2023-06-05 13:52:00.538108500 DEBUG:SerialBattery:Voltage cell[5]=3.357V
2023-06-05 13:52:00.538413500 DEBUG:SerialBattery:Voltage cell[6]=3.45V
2023-06-05 13:52:00.538754500 DEBUG:SerialBattery:Voltage cell[7]=3.382V
2023-06-05 13:52:00.539107500 DEBUG:SerialBattery:Voltage cell[8]=3.343V
2023-06-05 13:52:00.539468500 DEBUG:SerialBattery:Voltage cell[9]=3.386V
2023-06-05 13:52:00.539813500 DEBUG:SerialBattery:Voltage cell[10]=3.343V
2023-06-05 13:52:00.540155500 DEBUG:SerialBattery:Voltage cell[11]=3.387V
2023-06-05 13:52:00.540609500 DEBUG:SerialBattery:Voltage cell[12]=3.35V
2023-06-05 13:52:00.540879500 DEBUG:SerialBattery:Voltage cell[13]=3.353V
2023-06-05 13:52:00.541223500 DEBUG:SerialBattery:Voltage cell[14]=3.341V
2023-06-05 13:52:00.541541500 DEBUG:SerialBattery:Voltage cell[15]=3.342V
2023-06-05 13:52:00.541912500 DEBUG:SerialBattery:Temp cell[0]=35.4°C
2023-06-05 13:52:00.542583500 DEBUG:SerialBattery:Temp cell[1]=33.3°C
2023-06-05 13:52:00.542911500 DEBUG:SerialBattery:Temp cell[2]=33.5°C
2023-06-05 13:52:00.543244500 DEBUG:SerialBattery:Temp cell[3]=35.3°C
2023-06-05 13:52:00.543679500 DEBUG:SerialBattery:Current = 2.21A , Voltage = 54.02V
2023-06-05 13:52:00.543971500 DEBUG:SerialBattery:Capacity = 274.71/280.0Ah , SOC = 98.1%
2023-06-05 13:52:00.544761500 DEBUG:SerialBattery:Cycles = 22
2023-06-05 13:52:00.548112500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C
2023-06-05 13:52:00.548117500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells
2023-06-05 13:52:00.548120500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:00.565658500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 13:52:02.623191500 WARNING:SerialBattery:checksum error
2023-06-05 13:52:02.651429500 DEBUG:SerialBattery:logged to dbus [98.1]
2023-06-05 13:52:02.653945500 DEBUG:SerialBattery:Cells:[1]3.45V [2]3.362V [3]3.42V [4]3.368V [5]3.39V [6]3.357V [7]3.45V [8]3.382V [9]3.343V [10]3.386V [11]3.343V [12]3.387V [13]3.35V [14]3.353V [15]3.341V [16]3.342V
2023-06-05 13:52:04.403914500 DEBUG:SerialBattery:read status data
2023-06-05 13:52:04.404340500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:04.417739500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 13:52:05.530091500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D7B0D230D5D0D290D3F0D1E0D7C0D380D100D3B0D100D3D0D170D1A0D0E0D11060C0D0BF80BFA0C0C0C340C190126151D6B500A6D6003D56D60001603E81520FFF400000BC80B5B'
2023-06-05 13:52:05.538692500 DEBUG:SerialBattery:Voltage cell[0]=3.451V
2023-06-05 13:52:05.538696500 DEBUG:SerialBattery:Voltage cell[1]=3.363V
2023-06-05 13:52:05.538699500 DEBUG:SerialBattery:Voltage cell[2]=3.421V
2023-06-05 13:52:05.538702500 DEBUG:SerialBattery:Voltage cell[3]=3.369V
2023-06-05 13:52:05.538705500 DEBUG:SerialBattery:Voltage cell[4]=3.391V
2023-06-05 13:52:05.539075500 DEBUG:SerialBattery:Voltage cell[5]=3.358V
2023-06-05 13:52:05.539509500 DEBUG:SerialBattery:Voltage cell[6]=3.452V
2023-06-05 13:52:05.539923500 DEBUG:SerialBattery:Voltage cell[7]=3.384V
2023-06-05 13:52:05.540328500 DEBUG:SerialBattery:Voltage cell[8]=3.344V
2023-06-05 13:52:05.540734500 DEBUG:SerialBattery:Voltage cell[9]=3.387V
2023-06-05 13:52:05.541134500 DEBUG:SerialBattery:Voltage cell[10]=3.344V
2023-06-05 13:52:05.541536500 DEBUG:SerialBattery:Voltage cell[11]=3.389V
2023-06-05 13:52:05.541936500 DEBUG:SerialBattery:Voltage cell[12]=3.351V
2023-06-05 13:52:05.542336500 DEBUG:SerialBattery:Voltage cell[13]=3.354V
2023-06-05 13:52:05.542737500 DEBUG:SerialBattery:Voltage cell[14]=3.342V
2023-06-05 13:52:05.543137500 DEBUG:SerialBattery:Voltage cell[15]=3.345V
2023-06-05 13:52:05.543567500 DEBUG:SerialBattery:Temp cell[0]=35.4°C
2023-06-05 13:52:05.543976500 DEBUG:SerialBattery:Temp cell[1]=33.3°C
2023-06-05 13:52:05.544465500 DEBUG:SerialBattery:Temp cell[2]=33.5°C
2023-06-05 13:52:05.544894500 DEBUG:SerialBattery:Temp cell[3]=35.3°C
2023-06-05 13:52:05.545400500 DEBUG:SerialBattery:Current = 2.94A , Voltage = 54.05V
2023-06-05 13:52:05.545782500 DEBUG:SerialBattery:Capacity = 274.72/280.0Ah , SOC = 98.1%
2023-06-05 13:52:05.546145500 DEBUG:SerialBattery:Cycles = 22
2023-06-05 13:52:05.546527500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C
2023-06-05 13:52:05.546886500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells
2023-06-05 13:52:05.547336500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:05.562317500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 13:52:07.627286500 WARNING:SerialBattery:checksum error
2023-06-05 13:52:07.675188500 DEBUG:SerialBattery:logged to dbus [98.1]
2023-06-05 13:52:07.675874500 DEBUG:SerialBattery:Cells:[1]3.451V [2]3.363V [3]3.421V [4]3.369V [5]3.391V [6]3.358V [7]3.452V [8]3.384V [9]3.344V [10]3.387V [11]3.344V [12]3.389V [13]3.351V [14]3.354V [15]3.342V [16]3.345V
2023-06-05 13:52:09.404894500 DEBUG:SerialBattery:read status data
2023-06-05 13:52:09.405274500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:09.418066500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 13:52:10.530706500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D7D0D240D5F0D2A0D410D1F0D7D0D390D100D3C0D110D3D0D180D1A0D0F0D10060C0D0BF80BFA0C0C0C340C19024D151E6B500A6D6003D56D60001603E81524FFF300000BC80B5B'
2023-06-05 13:52:10.538268500 DEBUG:SerialBattery:Voltage cell[0]=3.453V
2023-06-05 13:52:10.538600500 DEBUG:SerialBattery:Voltage cell[1]=3.364V
2023-06-05 13:52:10.538946500 DEBUG:SerialBattery:Voltage cell[2]=3.423V
2023-06-05 13:52:10.539274500 DEBUG:SerialBattery:Voltage cell[3]=3.37V
2023-06-05 13:52:10.539595500 DEBUG:SerialBattery:Voltage cell[4]=3.393V
2023-06-05 13:52:10.539925500 DEBUG:SerialBattery:Voltage cell[5]=3.359V
2023-06-05 13:52:10.540242500 DEBUG:SerialBattery:Voltage cell[6]=3.453V
2023-06-05 13:52:10.540551500 DEBUG:SerialBattery:Voltage cell[7]=3.385V
2023-06-05 13:52:10.540855500 DEBUG:SerialBattery:Voltage cell[8]=3.344V
2023-06-05 13:52:10.541164500 DEBUG:SerialBattery:Voltage cell[9]=3.388V
2023-06-05 13:52:10.541498500 DEBUG:SerialBattery:Voltage cell[10]=3.345V
2023-06-05 13:52:10.541798500 DEBUG:SerialBattery:Voltage cell[11]=3.389V
2023-06-05 13:52:10.542115500 DEBUG:SerialBattery:Voltage cell[12]=3.352V
2023-06-05 13:52:10.542427500 DEBUG:SerialBattery:Voltage cell[13]=3.354V
2023-06-05 13:52:10.542743500 DEBUG:SerialBattery:Voltage cell[14]=3.343V
2023-06-05 13:52:10.543059500 DEBUG:SerialBattery:Voltage cell[15]=3.344V
2023-06-05 13:52:10.543409500 DEBUG:SerialBattery:Temp cell[0]=35.4°C
2023-06-05 13:52:10.543751500 DEBUG:SerialBattery:Temp cell[1]=33.3°C
2023-06-05 13:52:10.544112500 DEBUG:SerialBattery:Temp cell[2]=33.5°C
2023-06-05 13:52:10.544515500 DEBUG:SerialBattery:Temp cell[3]=35.3°C
2023-06-05 13:52:10.544958500 DEBUG:SerialBattery:Current = 5.89A , Voltage = 54.06V
2023-06-05 13:52:10.545253500 DEBUG:SerialBattery:Capacity = 274.72/280.0Ah , SOC = 98.1%
2023-06-05 13:52:10.545521500 DEBUG:SerialBattery:Cycles = 22
2023-06-05 13:52:10.545816500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C
2023-06-05 13:52:10.546124500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells
2023-06-05 13:52:10.546704500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:10.560513500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 13:52:12.625019500 WARNING:SerialBattery:checksum error
2023-06-05 13:52:14.406711500 DEBUG:SerialBattery:read status data
2023-06-05 13:52:14.407095500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:14.417522500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 13:52:15.533884500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D800D260D620D2C0D420D210D800D3B0D110D3E0D130D3F0D190D1B0D100D11060C0D0BF80BFA0C0C0C340C19029515216B510A6D6003D56D60001603E81526FFFC00000BC80B5B'
2023-06-05 13:52:15.538934500 DEBUG:SerialBattery:Current = 6.61A , Voltage = 54.09V
2023-06-05 13:52:15.539325500 DEBUG:SerialBattery:Capacity = 274.73/280.0Ah , SOC = 98.1%
2023-06-05 13:52:15.539664500 DEBUG:SerialBattery:Cycles = 22
2023-06-05 13:52:15.540129500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C
2023-06-05 13:52:15.540411500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells
2023-06-05 13:52:15.540902500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:15.555094500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 13:52:17.626505500 WARNING:SerialBattery:checksum error
2023-06-05 13:52:19.407469500 DEBUG:SerialBattery:read status data
2023-06-05 13:52:19.407852500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:19.417950500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 13:52:20.533800500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D820D260D640D2D0D440D210D820D3D0D120D3F0D130D400D190D1C0D100D11060C0D0BF80BFA0C0C0C340C19026D15226B520A6D6003D56D60001603E81527FFFD00000BC80B5B'
2023-06-05 13:52:20.540898500 DEBUG:SerialBattery:Current = 6.21A , Voltage = 54.1V
2023-06-05 13:52:20.541218500 DEBUG:SerialBattery:Capacity = 274.74/280.0Ah , SOC = 98.1%
2023-06-05 13:52:20.541501500 DEBUG:SerialBattery:Cycles = 22
2023-06-05 13:52:20.541810500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C
2023-06-05 13:52:20.542073500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells
2023-06-05 13:52:20.542443500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:20.554174500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 13:52:22.633602500 WARNING:SerialBattery:checksum error
2023-06-05 13:52:24.409452500 DEBUG:SerialBattery:read status data
2023-06-05 13:52:24.409832500 DEBUG:SerialBattery:read serial data seplos
2023-06-05 13:52:24.419963500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
and then for a longer period posts this : ```
2023-06-05 13:53:14.445112500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r' 2023-06-05 13:53:15.558063500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D930D2C0D770D320D4D0D250D910D470D140D480D140D490D1C0D1F0D120D15060C0D0BF80BFA0C0C0C340C19018F152E6B5B0A6D6003D56D60001603E81532FFF300000BC80B5B' 2023-06-05 13:53:15.563498500 DEBUG:SerialBattery:Current = 3.99A , Voltage = 54.22V 2023-06-05 13:53:15.563502500 DEBUG:SerialBattery:Capacity = 274.83/280.0Ah , SOC = 98.1% 2023-06-05 13:53:15.563506500 DEBUG:SerialBattery:Cycles = 22 2023-06-05 13:53:15.563683500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C 2023-06-05 13:53:15.563940500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells 2023-06-05 13:53:15.564367500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:15.576819500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r' 2023-06-05 13:53:17.664331500 WARNING:SerialBattery:checksum error 2023-06-05 13:53:19.432591500 DEBUG:SerialBattery:read status data 2023-06-05 13:53:19.432595500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:19.443027500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r' 2023-06-05 13:53:20.555681500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D940D2C0D780D320D4D0D240D920D470D140D480D130D4A0D1C0D1F0D120D14060C0D0BF80BFA0C0C0C340C1901CA152E6B5B0A6D6003D56D60001603E81533FFF300000BC80B5B' 2023-06-05 13:53:20.561208500 DEBUG:SerialBattery:Current = 4.58A , Voltage = 54.22V 2023-06-05 13:53:20.561294500 DEBUG:SerialBattery:Capacity = 274.83/280.0Ah , SOC = 98.1% 2023-06-05 13:53:20.561514500 DEBUG:SerialBattery:Cycles = 22 2023-06-05 13:53:20.561808500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C 2023-06-05 13:53:20.562292500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells 2023-06-05 13:53:20.563178500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:20.572630500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r' 2023-06-05 13:53:22.666722500 WARNING:SerialBattery:checksum error 2023-06-05 13:53:24.433746500 DEBUG:SerialBattery:read status data 2023-06-05 13:53:24.434125500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:24.446190500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r' 2023-06-05 13:53:25.558846500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D960D2D0D7A0D330D4F0D260D940D490D150D490D150D4A0D1D0D200D130D14060C0D0BF80BFA0C0C0C340C19022215306B5C0A6D6003D56D60001603E81535FFF800000BC80B5B' 2023-06-05 13:53:25.564922500 DEBUG:SerialBattery:Current = 5.46A , Voltage = 54.24V 2023-06-05 13:53:25.565237500 DEBUG:SerialBattery:Capacity = 274.84/280.0Ah , SOC = 98.1% 2023-06-05 13:53:25.565522500 DEBUG:SerialBattery:Cycles = 22 2023-06-05 13:53:25.565826500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C 2023-06-05 13:53:25.566082500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells 2023-06-05 13:53:25.566463500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:25.578777500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r' 2023-06-05 13:53:27.670553500 WARNING:SerialBattery:checksum error 2023-06-05 13:53:29.435717500 DEBUG:SerialBattery:read status data 2023-06-05 13:53:29.436156500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:29.451664500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r' 2023-06-05 13:53:30.563534500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D980D2E0D7C0D340D500D270D960D4B0D150D4B0D150D4C0D1D0D200D150D15060C0D0BF80BFA0C0C0C340C19022415326B5D0A6D6003D56D60001603E81536FFFB00000BC80B5B' 2023-06-05 13:53:30.570933500 DEBUG:SerialBattery:Current = 5.48A , Voltage = 54.26V 2023-06-05 13:53:30.571242500 DEBUG:SerialBattery:Capacity = 274.85/280.0Ah , SOC = 98.1% 2023-06-05 13:53:30.571518500 DEBUG:SerialBattery:Cycles = 22 2023-06-05 13:53:30.571816500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C 2023-06-05 13:53:30.572070500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells 2023-06-05 13:53:30.572436500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:30.590105500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r' 2023-06-05 13:53:32.674026500 WARNING:SerialBattery:checksum error 2023-06-05 13:53:34.439044500 DEBUG:SerialBattery:read status data 2023-06-05 13:53:34.439049500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:34.450281500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r' 2023-06-05 13:53:35.562606500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D9A0D2F0D7E0D350D510D270D980D4C0D160D4B0D160D4D0D1E0D210D130D15060C0D0BF80BFA0C0C0C340C19020615346B5D0A6D6003D56D60001603E81537FFF700000BC80B5B' 2023-06-05 13:53:35.568942500 DEBUG:SerialBattery:Current = 5.18A , Voltage = 54.28V 2023-06-05 13:53:35.570766500 DEBUG:SerialBattery:Capacity = 274.85/280.0Ah , SOC = 98.1% 2023-06-05 13:53:35.570770500 DEBUG:SerialBattery:Cycles = 22 2023-06-05 13:53:35.570773500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C 2023-06-05 13:53:35.570776500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells 2023-06-05 13:53:35.570779500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:35.583501500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r' 2023-06-05 13:53:37.678342500 WARNING:SerialBattery:checksum error 2023-06-05 13:53:39.440619500 DEBUG:SerialBattery:read status data 2023-06-05 13:53:39.441004500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:39.450553500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r' 2023-06-05 13:53:40.562810500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D9A0D2F0D7F0D350D510D270D990D4D0D150D4C0D150D4E0D1D0D210D140D15060C0D0BF80BFA0C0C0C340C19011215346B5E0A6D6003D56D60001603E81536FFF700000BC80B5B' 2023-06-05 13:53:40.570287500 DEBUG:SerialBattery:Current = 2.74A , Voltage = 54.28V 2023-06-05 13:53:40.572295500 DEBUG:SerialBattery:Capacity = 274.86/280.0Ah , SOC = 98.1% 2023-06-05 13:53:40.572300500 DEBUG:SerialBattery:Cycles = 22 2023-06-05 13:53:40.572303500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C 2023-06-05 13:53:40.572307500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells 2023-06-05 13:53:40.572310500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:40.586616500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r' 2023-06-05 13:53:42.680685500 WARNING:SerialBattery:checksum error 2023-06-05 13:53:44.443013500 DEBUG:SerialBattery:read status data 2023-06-05 13:53:44.443385500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:44.456946500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r' 2023-06-05 13:53:45.569933500 DEBUG:SerialBattery:return info data of length 150 : b'0000100D9B0D2E0D800D340D510D260D990D4C0D150D4C0D140D4D0D1D0D200D130D15060C0D0BF80BFA0C0C0C340C19018315336B5E0A6D6003D56D60001603E81537FFFC00000BC80B5B' 2023-06-05 13:53:45.575762500 DEBUG:SerialBattery:Current = 3.87A , Voltage = 54.27V 2023-06-05 13:53:45.576068500 DEBUG:SerialBattery:Capacity = 274.86/280.0Ah , SOC = 98.1% 2023-06-05 13:53:45.576345500 DEBUG:SerialBattery:Cycles = 22 2023-06-05 13:53:45.576650500 DEBUG:SerialBattery:Environment temp = 39.3°C , Power temp = 36.6°C 2023-06-05 13:53:45.576903500 DEBUG:SerialBattery:HW:Seplos BMS 16 cells 2023-06-05 13:53:45.577259500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:45.587952500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r' 2023-06-05 13:53:47.682973500 WARNING:SerialBattery:checksum error 2023-06-05 13:53:49.444887500 DEBUG:SerialBattery:read status data 2023-06-05 13:53:49.445285500 DEBUG:SerialBattery:read serial data seplos 2023-06-05 13:53:49.459767500 DEBUG:SerialBattery:wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
To me, this looks like more than one serial batterydriver is trying to read from the same port. As you've already edited utils.py, can you change
logging.basicConfig()
into
FORMAT = '%(process)d %(message)s'
logging.basicConfig(format=FORMAT)
and then restart the driver (you don't need to reboot, it is enough to kill all dbus-serialbattery.py processes)?
done it
definitly runs longer in parallel but still second usb ( usb4 goes lost after ~1-2 mins)
2023-06-05 14:55:08.385408500 3180 Voltage cell[13]=3.375V
2023-06-05 14:55:08.385413500 3180 Voltage cell[14]=3.346V
2023-06-05 14:55:08.385416500 3180 Voltage cell[15]=3.347V
2023-06-05 14:55:08.385419500 3180 Temp cell[0]=34.9°C
2023-06-05 14:55:08.385421500 3180 Temp cell[1]=32.9°C
2023-06-05 14:55:08.385424500 3180 Temp cell[2]=33.0°C
2023-06-05 14:55:08.385426500 3180 Temp cell[3]=34.8°C
2023-06-05 14:55:08.385428500 3180 Current = 4.07A , Voltage = 54.86V
2023-06-05 14:55:08.385431500 3180 Capacity = 274.92/280.0Ah , SOC = 98.1%
2023-06-05 14:55:08.385434500 3180 Cycles = 22
2023-06-05 14:55:08.385542500 3180 Environment temp = 38.5°C , Power temp = 35.6°C
2023-06-05 14:55:08.385546500 3180 HW:Seplos BMS 16 cells
2023-06-05 14:55:08.385548500 3180 read serial data seplos
2023-06-05 14:55:08.402166500 3180 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 14:55:10.502105500 3180 checksum error
2023-06-05 14:55:10.553582500 3180 logged to dbus [98.1]
2023-06-05 14:55:10.557532500 3180 Cells:[1]3.507V [2]3.424V [3]3.508V [4]3.429V [5]3.491V [6]3.391V [7]3.506V [8]3.508V [9]3.348V [10]3.479V [11]3.347V [12]3.484V [13]3.365V [14]3.375V [15]3.346V [16]3.347V
2023-06-05 14:55:12.241564500 3180 read status data
2023-06-05 14:55:12.241945500 3180 read serial data seplos
2023-06-05 14:55:12.256513500 3180 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 14:55:13.368884500 3180 return info data of length 150 : b'0000100DB60D620DB60D670DA60D400DB60DB70D150D990D140D9F0D250D300D120D14060C080BF40BF50C070C2C0C0F018315706B640A6D6003D56D60001603E81575FFF700000BC90B5C'
2023-06-05 14:55:13.378267500 3180 Voltage cell[0]=3.51V
2023-06-05 14:55:13.378271500 3180 Voltage cell[1]=3.426V
2023-06-05 14:55:13.378274500 3180 Voltage cell[2]=3.51V
2023-06-05 14:55:13.378277500 3180 Voltage cell[3]=3.431V
2023-06-05 14:55:13.378279500 3180 Voltage cell[4]=3.494V
2023-06-05 14:55:13.378282500 3180 Voltage cell[5]=3.392V
2023-06-05 14:55:13.378385500 3180 Voltage cell[6]=3.51V
2023-06-05 14:55:13.379239500 3180 Voltage cell[7]=3.511V
2023-06-05 14:55:13.379243500 3180 Voltage cell[8]=3.349V
2023-06-05 14:55:13.379517500 3180 Voltage cell[9]=3.481V
2023-06-05 14:55:13.379919500 3180 Voltage cell[10]=3.348V
2023-06-05 14:55:13.380318500 3180 Voltage cell[11]=3.487V
2023-06-05 14:55:13.380720500 3180 Voltage cell[12]=3.365V
2023-06-05 14:55:13.381149500 3180 Voltage cell[13]=3.376V
2023-06-05 14:55:13.381522500 3180 Voltage cell[14]=3.346V
2023-06-05 14:55:13.389640500 3180 Voltage cell[15]=3.348V
2023-06-05 14:55:13.389645500 3180 Temp cell[0]=34.9°C
2023-06-05 14:55:13.389648500 3180 Temp cell[1]=32.9°C
2023-06-05 14:55:13.389650500 3180 Temp cell[2]=33.0°C
2023-06-05 14:55:13.389653500 3180 Temp cell[3]=34.8°C
2023-06-05 14:55:13.389655500 3180 Current = 3.87A , Voltage = 54.88V
2023-06-05 14:55:13.389658500 3180 Capacity = 274.92/280.0Ah , SOC = 98.1%
2023-06-05 14:55:13.389661500 3180 Cycles = 22
2023-06-05 14:55:13.389663500 3180 Environment temp = 38.5°C , Power temp = 35.6°C
2023-06-05 14:55:13.389710500 3180 HW:Seplos BMS 16 cells
2023-06-05 14:55:13.389714500 3180 read serial data seplos
2023-06-05 14:55:13.402686500 3180 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 14:55:15.510185500 3180 checksum error
2023-06-05 14:55:15.528398500 3180 logged to dbus [98.1]
2023-06-05 14:55:15.529041500 3180 Cells:[1]3.51V [2]3.426V [3]3.51V [4]3.431V [5]3.494V [6]3.392V [7]3.51V [8]3.511V [9]3.349V [10]3.481V [11]3.348V [12]3.487V [13]3.365V [14]3.376V [15]3.346V [16]3.348V
2023-06-05 14:55:17.244022500 3180 read status data
2023-06-05 14:55:17.244027500 3180 read serial data seplos
2023-06-05 14:55:17.258428500 3180 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 14:55:18.370444500 3180 return info data of length 150 : b'0000100DB80D630DB80D680DA80D410DB80DB90D150D9A0D140DA00D260D300D130D14060C080BF40BF50C070C2C0C0F010115726B650A6D6003D56D60001603E81576FFF400000BC90B5C'
2023-06-05 14:55:18.380468500 3180 Voltage cell[0]=3.512V
2023-06-05 14:55:18.380473500 3180 Voltage cell[1]=3.427V
2023-06-05 14:55:18.380476500 3180 Voltage cell[2]=3.512V
2023-06-05 14:55:18.380478500 3180 Voltage cell[3]=3.432V
2023-06-05 14:55:18.380481500 3180 Voltage cell[4]=3.496V
2023-06-05 14:55:18.380483500 3180 Voltage cell[5]=3.393V
2023-06-05 14:55:18.380947500 3180 Voltage cell[6]=3.512V
2023-06-05 14:55:18.381767500 3180 Voltage cell[7]=3.513V
2023-06-05 14:55:18.382865500 3180 Voltage cell[8]=3.349V
2023-06-05 14:55:18.383056500 3180 Voltage cell[9]=3.482V
2023-06-05 14:55:18.389494500 3180 Voltage cell[10]=3.348V
2023-06-05 14:55:18.389499500 3180 Voltage cell[11]=3.488V
2023-06-05 14:55:18.389502500 3180 Voltage cell[12]=3.366V
2023-06-05 14:55:18.389793500 3180 Voltage cell[13]=3.376V
2023-06-05 14:55:18.390224500 3180 Voltage cell[14]=3.347V
2023-06-05 14:55:18.390722500 3180 Voltage cell[15]=3.348V
2023-06-05 14:55:18.391443500 3180 Temp cell[0]=34.9°C
2023-06-05 14:55:18.391894500 3180 Temp cell[1]=32.9°C
2023-06-05 14:55:18.392271500 3180 Temp cell[2]=33.0°C
2023-06-05 14:55:18.392652500 3180 Temp cell[3]=34.8°C
2023-06-05 14:55:18.393480500 3180 Current = 2.57A , Voltage = 54.9V
2023-06-05 14:55:18.393833500 3180 Capacity = 274.93/280.0Ah , SOC = 98.1%
2023-06-05 14:55:18.394197500 3180 Cycles = 22
2023-06-05 14:55:18.394541500 3180 Environment temp = 38.5°C , Power temp = 35.6°C
2023-06-05 14:55:18.394844500 3180 HW:Seplos BMS 16 cells
2023-06-05 14:55:18.395270500 3180 read serial data seplos
2023-06-05 14:55:18.413161500 3180 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 14:55:20.518994500 3180 checksum error
2023-06-05 14:55:22.245463500 3180 read status data
2023-06-05 14:55:22.245844500 3180 read serial data seplos
2023-06-05 14:55:22.255408500 3180 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 14:55:23.368619500 3180 return info data of length 150 : b'0000100DB90D630DBA0D680DA80D400DB90DBA0D150D9B0D130DA10D250D300D130D14060C080BF40BF50C070C2B0C0F005815736B650A6D6003D56D60001603E81575FFF200000BC90B5C'
2023-06-05 14:55:23.377206500 3180 Current = 0.88A , Voltage = 54.91V
2023-06-05 14:55:23.377226500 3180 Capacity = 274.93/280.0Ah , SOC = 98.1%
2023-06-05 14:55:23.377278500 3180 Cycles = 22
2023-06-05 14:55:23.378248500 3180 Environment temp = 38.4°C , Power temp = 35.6°C
2023-06-05 14:55:23.378253500 3180 HW:Seplos BMS 16 cells
2023-06-05 14:55:23.378778500 3180 read serial data seplos
2023-06-05 14:55:23.395948500 3180 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 14:55:25.494761500 3180 checksum error
2023-06-05 14:55:50.515983500 3000 Voltage cell[4]=3.496V
2023-06-05 14:55:50.516288500 3000 Voltage cell[5]=3.392V
2023-06-05 14:55:50.516593500 3000 Voltage cell[6]=3.512V
2023-06-05 14:55:50.516897500 3000 Voltage cell[7]=3.514V
2023-06-05 14:55:50.517204500 3000 Voltage cell[8]=3.348V
2023-06-05 14:55:50.517505500 3000 Voltage cell[9]=3.483V
2023-06-05 14:55:50.517807500 3000 Voltage cell[10]=3.346V
2023-06-05 14:55:50.518112500 3000 Voltage cell[11]=3.489V
2023-06-05 14:55:50.518413500 3000 Voltage cell[12]=3.365V
2023-06-05 14:55:50.518728500 3000 Voltage cell[13]=3.376V
2023-06-05 14:55:50.519032500 3000 Voltage cell[14]=3.346V
2023-06-05 14:55:50.519346500 3000 Voltage cell[15]=3.348V
2023-06-05 14:55:50.519703500 3000 Temp cell[0]=34.9°C
2023-06-05 14:55:50.520038500 3000 Temp cell[1]=32.9°C
2023-06-05 14:55:50.520344500 3000 Temp cell[2]=33.0°C
2023-06-05 14:55:50.520734500 3000 Temp cell[3]=34.8°C
2023-06-05 14:55:50.521279500 3000 Current = 0.99A , Voltage = 54.9V
2023-06-05 14:55:50.521593500 3000 Capacity = 274.94/280.0Ah , SOC = 98.1%
2023-06-05 14:55:50.521864500 3000 Cycles = 22
2023-06-05 14:55:50.522565500 3000 Environment temp = 38.4°C , Power temp = 35.5°C
2023-06-05 14:55:50.522865500 3000 HW:Seplos BMS 16 cells
2023-06-05 14:55:50.523267500 3000 read serial data seplos
2023-06-05 14:55:50.534882500 3000 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004644E00201FD34\r'
2023-06-05 14:55:51.626934500 3000 return info data of length 98 : b'00001000000000000000000000000000000000060000000000000000140000000000000300000200000000000000000002'
2023-06-05 14:55:51.631112500 3000 alarm info raw b'00001000000000000000000000000000000000060000000000000000140000000000000300000200000000000000000002'
2023-06-05 14:55:51.631119500 3000 alarm info decoded b'\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x03\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02'
2023-06-05 14:55:51.646075500 3000 logged to dbus [98.1]
2023-06-05 14:55:51.646822500 3000 Cells:[1]3.513V [2]3.427V [3]3.514V [4]3.432V [5]3.496V [6]3.392V [7]3.512V [8]3.514V [9]3.348V [10]3.483V [11]3.346V [12]3.489V [13]3.365V [14]3.376V [15]3.346V [16]3.348V
2023-06-05 14:55:54.381223500 3000 read status data
2023-06-05 14:55:54.381228500 3000 read serial data seplos
2023-06-05 14:55:54.397547500 3000 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004642E00201FD36\r'
2023-06-05 14:55:55.507343500 3000 return info data of length 150 : b'0000100DBA0D640DBA0D690DA90D400DB90DBA0D140D9B0D120DA20D250D300D120D14060C080BF40BF50C070C2B0C0E000015736B660A6D6003D56D60001603E81575FFF3017F0BC90B5C'
2023-06-05 14:55:55.510478500 3000 Voltage cell[0]=3.514V
2023-06-05 14:55:55.510855500 3000 Voltage cell[1]=3.428V
2023-06-05 14:55:55.511311500 3000 Voltage cell[2]=3.514V
2023-06-05 14:55:55.511629500 3000 Voltage cell[3]=3.433V
2023-06-05 14:55:55.511964500 3000 Voltage cell[4]=3.497V
2023-06-05 14:55:55.512266500 3000 Voltage cell[5]=3.392V
2023-06-05 14:55:55.512612500 3000 Voltage cell[6]=3.513V
2023-06-05 14:55:55.512948500 3000 Voltage cell[7]=3.514V
2023-06-05 14:55:55.513267500 3000 Voltage cell[8]=3.348V
2023-06-05 14:55:55.513675500 3000 Voltage cell[9]=3.483V
2023-06-05 14:55:55.513994500 3000 Voltage cell[10]=3.346V
2023-06-05 14:55:55.514303500 3000 Voltage cell[11]=3.49V
2023-06-05 14:55:55.514612500 3000 Voltage cell[12]=3.365V
2023-06-05 14:55:55.514917500 3000 Voltage cell[13]=3.376V
2023-06-05 14:55:55.515313500 3000 Voltage cell[14]=3.346V
2023-06-05 14:55:55.515640500 3000 Voltage cell[15]=3.348V
2023-06-05 14:55:55.515985500 3000 Temp cell[0]=34.9°C
2023-06-05 14:55:55.516297500 3000 Temp cell[1]=32.9°C
2023-06-05 14:55:55.516604500 3000 Temp cell[2]=33.0°C
2023-06-05 14:55:55.516911500 3000 Temp cell[3]=34.8°C
2023-06-05 14:55:55.517405500 3000 Current = 0.0A , Voltage = 54.91V
2023-06-05 14:55:55.517692500 3000 Capacity = 274.94/280.0Ah , SOC = 98.1%
2023-06-05 14:55:55.517960500 3000 Cycles = 22
2023-06-05 14:55:55.518242500 3000 Environment temp = 38.4°C , Power temp = 35.5°C
2023-06-05 14:55:55.518504500 3000 HW:Seplos BMS 16 cells
2023-06-05 14:55:55.518956500 3000 read serial data seplos
2023-06-05 14:55:55.530410500 3000 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004644E00201FD34\r'
2023-06-05 14:55:56.621795500 3000 return info data of length 98 : b'00001000000000000000000000000000000000060000000000000000140000000000000300000100000000000000000001'
2023-06-05 14:55:56.623754500 3000 alarm info raw b'00001000000000000000000000000000000000060000000000000000140000000000000300000100000000000000000001'
2023-06-05 14:55:56.625292500 3000 alarm info decoded b'\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x03\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'
2023-06-05 14:55:56.636412500 3000 logged to dbus [98.1]
2023-06-05 14:55:56.636635500 3000 Cells:[1]3.514V [2]3.428V [3]3.514V [4]3.433V [5]3.497V [6]3.392V [7]3.513V [8]3.514V [9]3.348V [10]3.483V [11]3.346V [12]3.49V [13]3.365V [14]3.376V [15]3.346V [16]3.348V
2023-06-05 14:55:59.381630500 3000 read status data
2023-06-05 14:55:59.382039500 3000 read serial data seplos
2023-06-05 14:55:59.396584500 3000 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004642E00201FD36\r'
2023-06-05 14:56:00.517636500 3000 return info data of length 150 : b'0000100DB90D630DBA0D680DA80D400DB80DB90D140D9B0D110DA10D240D2F0D120D13060C080BF40BF50C070C2B0C0EFFAE15726B660A6D6003D56D60001603E81573FFF400000BC90B5C'
2023-06-05 14:56:00.519927500 3000 Voltage cell[0]=3.513V
2023-06-05 14:56:00.520273500 3000 Voltage cell[1]=3.427V
2023-06-05 14:56:00.520596500 3000 Voltage cell[2]=3.514V
2023-06-05 14:56:00.520916500 3000 Voltage cell[3]=3.432V
2023-06-05 14:56:00.521305500 3000 Voltage cell[4]=3.496V
2023-06-05 14:56:00.521637500 3000 Voltage cell[5]=3.392V
2023-06-05 14:56:00.521968500 3000 Voltage cell[6]=3.512V
2023-06-05 14:56:00.522303500 3000 Voltage cell[7]=3.513V
2023-06-05 14:56:00.522613500 3000 Voltage cell[8]=3.348V
2023-06-05 14:56:00.523034500 3000 Voltage cell[9]=3.483V
2023-06-05 14:56:00.523391500 3000 Voltage cell[10]=3.345V
2023-06-05 14:56:00.523716500 3000 Voltage cell[11]=3.489V
2023-06-05 14:56:00.524024500 3000 Voltage cell[12]=3.364V
2023-06-05 14:56:00.524328500 3000 Voltage cell[13]=3.375V
2023-06-05 14:56:00.524634500 3000 Voltage cell[14]=3.346V
2023-06-05 14:56:00.524933500 3000 Voltage cell[15]=3.347V
2023-06-05 14:56:00.525264500 3000 Temp cell[0]=34.9°C
2023-06-05 14:56:00.525576500 3000 Temp cell[1]=32.9°C
2023-06-05 14:56:00.525888500 3000 Temp cell[2]=33.0°C
2023-06-05 14:56:00.526252500 3000 Temp cell[3]=34.8°C
2023-06-05 14:56:00.526699500 3000 Current = -0.82A , Voltage = 54.9V
2023-06-05 14:56:00.527040500 3000 Capacity = 274.94/280.0Ah , SOC = 98.1%
2023-06-05 14:56:00.527373500 3000 Cycles = 22
2023-06-05 14:56:00.527687500 3000 Environment temp = 38.4°C , Power temp = 35.5°C
2023-06-05 14:56:00.527952500 3000 HW:Seplos BMS 16 cells
2023-06-05 14:56:00.528321500 3000 read serial data seplos
2023-06-05 14:56:00.536067500 3000 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004644E00201FD34\r'
2023-06-05 14:56:01.629288500 3000 return info data of length 98 : b'00001000000000000000000000000000000000060000000000000000140000000000000300000100000000000000000001'
2023-06-05 14:56:01.634722500 3000 alarm info raw b'00001000000000000000000000000000000000060000000000000000140000000000000300000100000000000000000001'
2023-06-05 14:56:01.634729500 3000 alarm info decoded b'\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x03\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'
2023-06-05 14:56:01.645677500 3000 logged to dbus [98.1]
2023-06-05 14:56:01.646345500 3000 Cells:[1]3.513V [2]3.427V [3]3.514V [4]3.432V [5]3.496V [6]3.392V [7]3.512V [8]3.513V [9]3.348V [10]3.483V [11]3.345V [12]3.489V [13]3.364V [14]3.375V [15]3.346V [16]3.347V
2023-06-05 14:56:04.383969500 3000 read status data
2023-06-05 14:56:04.384657500 3000 read serial data seplos
2023-06-05 14:56:04.400117500 3000 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004642E00201FD36\r'
^C
after keep trying and trying the second one comes back shortly and dies again ( pulled from the log thats why it looks different)
@40000000647df85a1cf5799c 3180 read serial data seplos
@40000000647df85a1dc67d6c 3180 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df85c22dbb6b4 3180 checksum error
@40000000647df85c2357e7ac
@40000000647df86d2ad57634 4513 Starting dbus-serialbattery
@40000000647df86d2ade4fd4 4513 dbus-serialbattery v1.0.20230526dev
@40000000647df86d2ae29594 4513 Testing Seplos
@40000000647df86d2ae9f064 4513 read status data
@40000000647df86d2aef62ec 4513 read serial data seplos
@40000000647df86d2b895ce4 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df86e33b9ad24 4513 return info data of length 150 : b'0000100DB20D620DB20D670DA70D3F0DB20DB30D130D9A0D100DA00D230D2F0D110D12060C080BF30BF40C060C2A0C0D0000156E6B670A6D6003D56D60001603E81570FFF5FF320BC90B5C'
@40000000647df86e34274f8c 4513 Current = 0.0A , Voltage = 54.86V
@40000000647df86e342d0864 4513 Capacity = 274.95/280.0Ah , SOC = 98.1%
@40000000647df86e3431426c 4513 Cycles = 22
@40000000647df86e3435c6ac 4513 Environment temp = 38.3°C , Power temp = 35.4°C
@40000000647df86e3439b67c 4513 HW:Seplos BMS 16 cells
@40000000647df86e343dd144 4513 Connection established to Seplos
@40000000647df86e3441fbac 4513 Battery Seplos connected to dbus from /dev/ttyUSB4
@40000000647df86e3445c084 4513 ========== Settings ==========
@40000000647df86e344a3cf4 4513 > Connection voltage: 54.86V | Current: 0.0A | SoC: 98.1%
@40000000647df86e344e2cc4 4513 > Cell count: 16 | Cells populated: 0
@40000000647df86e34524b74 4513 > LINEAR LIMITATION ENABLE: True
@40000000647df86e3456857c 4513 > MAX BATTERY CHARGE CURRENT: 194.0A | MAX BATTERY DISCHARGE CURRENT: 194.0A
@40000000647df86e345a6994 4513 > CVCM: True
@40000000647df86e345e97e4 4513 > MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.5V
@40000000647df86e3462aec4 4513 > CCCM CV: True | DCCM CV: True
@40000000647df86e3466e0fc 4513 > CCCM T: False | DCCM T: True
@40000000647df86e346af3f4 4513 > CCCM SOC: False | DCCM SOC: True
@40000000647df86e36e6293c 4513 DeviceInstance = 4
@40000000647df86e36e63cc4 4513 com.victronenergy.battery.ttyUSB4
@40000000647df86e37b5b9f4 4513 publish config values = 1
@40000000647df873388c7a84 4513 read status data
@40000000647df87338926624 4513 read serial data seplos
@40000000647df87339512a14 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df8752354f9ac 4513 checksum error
@40000000647df87523b08efc 4513 read serial data seplos
@40000000647df875245a7afc 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df87626d67b64 4513 checksum error
@40000000647df8762846dffc 4513 logged to dbus [98.1]
@40000000647df8762854ca7c 4513 Cells:[1]NoneV [2]NoneV [3]NoneV [4]NoneV [5]NoneV [6]NoneV [7]NoneV [8]NoneV [9]NoneV [10]NoneV [11]NoneV [12]NoneV [13]NoneV [14]NoneV [15]NoneV [16]NoneV
@40000000647df87838a5ea3c 4513 read status data
@40000000647df87838a9d624 4513 read serial data seplos
@40000000647df8783950533c 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df87a238debcc 4513 checksum error
@40000000647df87a23c510fc 4513 read serial data seplos
@40000000647df87a2487dc2c 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df87b26b03a6c 4513 checksum error
@40000000647df87b270c8754 4513 logged to dbus [98.1]
@40000000647df87b2715071c 4513 Cells:[1]NoneV [2]NoneV [3]NoneV [4]NoneV [5]NoneV [6]NoneV [7]NoneV [8]NoneV [9]NoneV [10]NoneV [11]NoneV [12]NoneV [13]NoneV [14]NoneV [15]NoneV [16]NoneV
@40000000647df87d38bcaa74 4513 read status data
@40000000647df87d38dd55bc 4513 read serial data seplos
@40000000647df87d399c5ffc 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df87f23c061c4 4513 checksum error
@40000000647df87f242768c4 4513 read serial data seplos
@40000000647df87f24b70664 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df88026d43d2c 4513 checksum error
@40000000647df88027d79b9c 4513 logged to dbus [98.1]
@40000000647df88027e2134c 4513 Cells:[1]NoneV [2]NoneV [3]NoneV [4]NoneV [5]NoneV [6]NoneV [7]NoneV [8]NoneV [9]NoneV [10]NoneV [11]NoneV [12]NoneV [13]NoneV [14]NoneV [15]NoneV [16]NoneV
@40000000647df88238ceafbc 4513 read status data
@40000000647df88238ec614c 4513 read serial data seplos
@40000000647df8823a09cf9c 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df88423e19d94 4513 checksum error
@40000000647df88424451e3c 4513 read serial data seplos
@40000000647df88424dfc02c 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df88527155154 4513 checksum error
@40000000647df88527d40d74 4513 logged to dbus [98.1]
@40000000647df88527ee57ec 4513 Cells:[1]NoneV [2]NoneV [3]NoneV [4]NoneV [5]NoneV [6]NoneV [7]NoneV [8]NoneV [9]NoneV [10]NoneV [11]NoneV [12]NoneV [13]NoneV [14]NoneV [15]NoneV [16]NoneV
@40000000647df88738f6b5d4 4513 read status data
@40000000647df88738f6c95c 4513 read serial data seplos
@40000000647df88739e1c984 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df88923f7254c 4513 checksum error
@40000000647df889245984e4 4513 read serial data seplos
@40000000647df88924ea3bc4 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df88a27107b0c 4513 checksum error
@40000000647df88a27c9b8ec 4513 logged to dbus [98.1]
@40000000647df88a2806c9bc 4513 Cells:[1]NoneV [2]NoneV [3]NoneV [4]NoneV [5]NoneV [6]NoneV [7]NoneV [8]NoneV [9]NoneV [10]NoneV [11]NoneV [12]NoneV [13]NoneV [14]NoneV [15]NoneV [16]NoneV
@40000000647df88c39063a7c 4513 read status data
@40000000647df88c39064a1c 4513 read serial data seplos
@40000000647df88c39a11704 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df88e2406dcbc 4513 checksum error
@40000000647df88e2475947c 4513 read serial data seplos
@40000000647df88e2529adf4 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df88f272cadcc 4513 checksum error
@40000000647df88f281c5d2c 4513 logged to dbus [98.1]
@40000000647df88f2828922c 4513 Cells:[1]NoneV [2]NoneV [3]NoneV [4]NoneV [5]NoneV [6]NoneV [7]NoneV [8]NoneV [9]NoneV [10]NoneV [11]NoneV [12]NoneV [13]NoneV [14]NoneV [15]NoneV [16]NoneV
@40000000647df8913920f254 4513 read status data
@40000000647df891392105dc 4513 read serial data seplos
@40000000647df89139ddba74 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df893243bbbe4 4513 checksum error
@40000000647df8932494095c 4513 read serial data seplos
@40000000647df89325330494 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df894274d3dbc 4513 checksum error
@40000000647df894284522ac 4513 logged to dbus [98.1]
@40000000647df89428538644 4513 Cells:[1]NoneV [2]NoneV [3]NoneV [4]NoneV [5]NoneV [6]NoneV [7]NoneV [8]NoneV [9]NoneV [10]NoneV [11]NoneV [12]NoneV [13]NoneV [14]NoneV [15]NoneV [16]NoneV
@40000000647df8963935a334 4513 read status data
@40000000647df8963935b6bc 4513 read serial data seplos
@40000000647df89639d73294 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df898245ca1c4 4513 checksum error
@40000000647df89824c79894 4513 read serial data seplos
@40000000647df89825931a3c 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df89925aa5774 4513 short read, data=b''
@40000000647df8992658c7b4 4513 logged to dbus [98.1]
@40000000647df899266137dc 4513 Cells:[1]NoneV [2]NoneV [3]NoneV [4]NoneV [5]NoneV [6]NoneV [7]NoneV [8]NoneV [9]NoneV [10]NoneV [11]NoneV [12]NoneV [13]NoneV [14]NoneV [15]NoneV [16]NoneV
@40000000647df89b393c178c 4513 read status data
@40000000647df89b3941d834 4513 read serial data seplos
@40000000647df89b3a0d07d4 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df89d2466cb54 4513 checksum error
@40000000647df89d24c5fa84 4513 read serial data seplos
@40000000647df89d255b5cb4 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df89e2797b43c 4513 checksum error
@40000000647df89e288d14a4 4513 logged to dbus [98.1]
@40000000647df89e28982c7c 4513 Cells:[1]NoneV [2]NoneV [3]NoneV [4]NoneV [5]NoneV [6]NoneV [7]NoneV [8]NoneV [9]NoneV [10]NoneV [11]NoneV [12]NoneV [13]NoneV [14]NoneV [15]NoneV [16]NoneV
@40000000647df8a03956852c 4513 read status data
@40000000647df8a0395c70cc 4513 read serial data seplos
@40000000647df8a03a252f6c 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df8a224953a0c 4513 checksum error
@40000000647df8a22515c44c 4513 read serial data seplos
@40000000647df8a225e10774 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df8a327e21f04 4513 checksum error
@40000000647df8a5396fba4c 4513 read status data
@40000000647df8a53975964c 4513 read serial data seplos
@40000000647df8a53a2eef84 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df8a724a003c4 4513 checksum error
@40000000647df8a724f9cc24 4513 read serial data seplos
@40000000647df8a725cdba0c 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df8a827a2fedc 4513 checksum error
@40000000647df8aa398df0ac 4513 read status data
@40000000647df8aa3993bd0c 4513 read serial data seplos
@40000000647df8aa3a6ee684 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df8ac24a74724 4513 checksum error
@40000000647df8ac25055544 4513 read serial data seplos
@40000000647df8ac25e967fc 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df8ad27bdd5f4 4513 checksum error
@40000000647df8af39a6a0fc 4513 read status data
@40000000647df8af39a6b484 4513 read serial data seplos
@40000000647df8af3a62f3ec 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df8b124e97874 4513 checksum error
@40000000647df8b1255430c4 4513 read serial data seplos
@40000000647df8b12607d124 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df8b227dc2b94 4513 checksum error
@40000000647df8b439acabdc 4513 read status data
@40000000647df8b439b4358c 4513 read serial data seplos
@40000000647df8b43a7416a4 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df8b624ec1084 4513 checksum error
@40000000647df8b6257d2524 4513 read serial data seplos
@40000000647df8b6262e7f7c 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647df8b728093abc 4513 checksum error
@40000000647df8b939c33564 4513 read status data
@40000000647df8b939c8f224 4513 read serial data seplos
@40000000647df8b93a677444 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647df8bb24f7b4fc 4513 checksum error
@40000000647df8bb257944f4 4513 read serial data seplos
@40000000647df8bb261f5894 4513 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
first one also does with the same error but not in parallel and randomly
So, if the log output in https://github.com/Louisvdw/dbus-serialbattery/issues/652#issuecomment-1576959884 is complete (what happens between 14:55:25.494761500 and 14:55:25.494761500 ?) we have both PID 3000 and PID 3180 working on the same tty, this cannot work. Are you starting these processes manually or are you getting the messages from the log?
nothing manual - let me restart again and pull the log again
nope keeps doing it and doesnt seem to me that its doing on an other tty
@40000000647dfbce0ffb647c 3073 Voltage cell[3]=3.443V
@40000000647dfbce10004e4c 3073 Voltage cell[4]=3.508V
@40000000647dfbce1005016c 3073 Voltage cell[5]=3.397V
@40000000647dfbce10097ddc 3073 Voltage cell[6]=3.505V
@40000000647dfbce100dfe34 3073 Voltage cell[7]=3.509V
@40000000647dfbce10128a44 3073 Voltage cell[8]=3.345V
@40000000647dfbce1016f32c 3073 Voltage cell[9]=3.496V
@40000000647dfbce101d4844 3073 Voltage cell[10]=3.344V
@40000000647dfbce1020131c 3073 Voltage cell[11]=3.503V
@40000000647dfbce1024a314 3073 Voltage cell[12]=3.364V
@40000000647dfbce10291f84 3073 Voltage cell[13]=3.378V
@40000000647dfbce102d9424 3073 Voltage cell[14]=3.343V
@40000000647dfbce103204dc 3073 Voltage cell[15]=3.345V
@40000000647dfbce1036eeac 3073 Temp cell[0]=34.7°C
@40000000647dfbce103b828c 3073 Temp cell[1]=32.7°C
@40000000647dfbce103ffefc 3073 Temp cell[2]=32.8°C
@40000000647dfbce1044833c 3073 Temp cell[3]=34.5°C
@40000000647dfbce104a99d4 3073 Current = 2.27A , Voltage = 54.94V
@40000000647dfbce104ed7c4 3073 Capacity = 274.93/280.0Ah , SOC = 98.1%
@40000000647dfbce1052c3ac 3073 Cycles = 22
@40000000647dfbce1057019c 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbce105ace44 3073 HW:Seplos BMS 16 cells
@40000000647dfbce1060295c 3073 read serial data seplos
@40000000647dfbce113962bc 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbd01811377c 3073 checksum error
@40000000647dfbd018ce3a34 3073 logged to dbus [98.1]
@40000000647dfbd018d809ec 3073 Cells:[1]3.508V [2]3.441V [3]3.509V [4]3.443V [5]3.508V [6]3.397V [7]3.505V [8]3.509V [9]3.345V [10]3.496V [11]3.344V [12]3.503V [13]3.364V [14]3.378V [15]3.343V [16]3.345V
@40000000647dfbd20806cd4c 3073 read status data
@40000000647dfbd2080ca564 3073 read serial data seplos
@40000000647dfbd208de9f4c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfbd30f866744 3073 return info data of length 150 : b'0000100DB70D730DB80D750DB70D470DB40DB80D120DAB0D110DB20D250D330D110D12060C060BF20BF30C040C260C0800FD15796B650A6D6003D56D60001603E8157EFFFB00000BC90B5C'
@40000000647dfbd30fed85b4 3073 Voltage cell[0]=3.511V
@40000000647dfbd30ff25814 3073 Voltage cell[1]=3.443V
@40000000647dfbd30ff70f1c 3073 Voltage cell[2]=3.512V
@40000000647dfbd30ffba2fc 3073 Voltage cell[3]=3.445V
@40000000647dfbd31000467c 3073 Voltage cell[4]=3.511V
@40000000647dfbd31004d28c 3073 Voltage cell[5]=3.399V
@40000000647dfbd3100956cc 3073 Voltage cell[6]=3.508V
@40000000647dfbd3100dcb6c 3073 Voltage cell[7]=3.512V
@40000000647dfbd31012400c 3073 Voltage cell[8]=3.346V
@40000000647dfbd31016c064 3073 Voltage cell[9]=3.499V
@40000000647dfbd3101b311c 3073 Voltage cell[10]=3.345V
@40000000647dfbd3101fa1d4 3073 Voltage cell[11]=3.506V
@40000000647dfbd310241674 3073 Voltage cell[12]=3.365V
@40000000647dfbd31028872c 3073 Voltage cell[13]=3.379V
@40000000647dfbd3102d51bc 3073 Voltage cell[14]=3.345V
@40000000647dfbd31031d214 3073 Voltage cell[15]=3.346V
@40000000647dfbd31037e4c4 3073 Temp cell[0]=34.7°C
@40000000647dfbd3103be434 3073 Temp cell[1]=32.7°C
@40000000647dfbd310407044 3073 Temp cell[2]=32.8°C
@40000000647dfbd3105340ac 3073 Temp cell[3]=34.5°C
@40000000647dfbd310535434 3073 Current = 2.53A , Voltage = 54.97V
@40000000647dfbd310535fec 3073 Capacity = 274.93/280.0Ah , SOC = 98.1%
@40000000647dfbd3105484e4 3073 Cycles = 22
@40000000647dfbd31058f59c 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbd3105ca6ec 3073 HW:Seplos BMS 16 cells
@40000000647dfbd31062252c 3073 read serial data seplos
@40000000647dfbd310fb501c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbd5184aaa84 3073 checksum error
@40000000647dfbd70823177c 3073 read status data
@40000000647dfbd708298bd4 3073 read serial data seplos
@40000000647dfbd708f6847c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfbd80fbb7d1c 3073 return info data of length 150 : b'0000100DB90D740DBA0D770DB90D480DB50DBA0D120DAD0D120DB40D260D330D110D12060C060BF20BF30C040C260C080115157B6B660A6D6003D56D60001603E8157EFFFB00000BC90B5C'
@40000000647dfbd8101b870c 3073 Current = 2.77A , Voltage = 54.99V
@40000000647dfbd8101b9a94 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbd8101baa34 3073 Cycles = 22
@40000000647dfbd8101bb204 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbd81020de3c 3073 HW:Seplos BMS 16 cells
@40000000647dfbd81026c5f4 3073 read serial data seplos
@40000000647dfbd810c9439c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
root@raspberrypi4:~# cat /data/log/dbus-serialbattery.ttyUSB4/current
@40000000647dfbdd0fa68dbc 3073 return info data of length 150 : b'0000100DBB0D750DBA0D770DBB0D480DB70DBB0D130DAE0D110DB60D260D340D110D12060C060BF20BF30C040C260C080000157C6B660A6D6003D56D60001603E8157EFFFE01B50BC90B5C'
@40000000647dfbdd101925ac 3073 Current = 0.0A , Voltage = 55.0V
@40000000647dfbdd101dc15c 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbdd10221aa4 3073 Cycles = 22
@40000000647dfbdd10268b5c 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbdd102a7b2c 3073 HW:Seplos BMS 16 cells
@40000000647dfbdd102fe9cc 3073 read serial data seplos
@40000000647dfbdd10f4436c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbdf18a34a04 3073 checksum error
@40000000647dfbe10872394c 3073 read status data
@40000000647dfbe10877f9f4 3073 read serial data seplos
@40000000647dfbe1090c278c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfbe20fb3dfe4 3073 return info data of length 150 : b'0000100DB90D750DBA0D770DBA0D470DB60DBB0D120DAE0D100DB50D250D330D100D12060C060BF20BF30C040C260C08FF9F157B6B660A6D6003D56D60001603E8157CFFFA00000BC90B5C'
@40000000647dfbe2102f68e4 3073 Current = -0.97A , Voltage = 54.99V
@40000000647dfbe210340c64 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbe210383e9c 3073 Cycles = 22
@40000000647dfbe2103d4b94 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbe210415aa4 3073 HW:Seplos BMS 16 cells
@40000000647dfbe210471764 3073 read serial data seplos
@40000000647dfbe2112a284c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbe418fc1094 3073 checksum error
@40000000647dfbe60898189c 3073 read status data
@40000000647dfbe6089e65e4 3073 read serial data seplos
@40000000647dfbe609938f9c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfbe7103c3254 3073 return info data of length 150 : b'0000100DB80D730DB80D750DB80D460DB40DB60D110DAC0D0E0DB30D240D320D0F0D11060C060BF20BF30C040C260C08FF1715786B660A6D6003D56D60001603E8157AFFFB00000BC90B5C'
@40000000647dfbe710a6e6bc 3073 Current = -2.33A , Voltage = 54.96V
@40000000647dfbe710ab76b4 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbe710afb0bc 3073 Cycles = 22
@40000000647dfbe710b42944 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbe710b820e4 3073 HW:Seplos BMS 16 cells
@40000000647dfbe710bd9b3c 3073 read serial data seplos
@40000000647dfbe7116020b4 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbe91905f3d4 3073 checksum error
@40000000647dfbeb08b6fadc 3073 read status data
@40000000647dfbeb08c1b8dc 3073 read serial data seplos
@40000000647dfbeb09592a64 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfbec1005b904 3073 return info data of length 150 : b'0000100DB60D720DB60D740DB70D450DB30DB60D110DAA0D0E0DB20D240D320D0F0D11060C060BF20BF30C040C260C08000015776B660A6D6003D56D60001603E8157AFFFBFEE40BC90B5C'
@40000000647dfbec10682454 3073 Current = 0.0A , Voltage = 54.95V
@40000000647dfbec10735f54 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbec1077918c 3073 Cycles = 22
@40000000647dfbec107d467c 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbec1081652c 3073 HW:Seplos BMS 16 cells
@40000000647dfbec1086eb3c 3073 read serial data seplos
@40000000647dfbec11256974 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbee1937f0b4 3073 checksum error
@40000000647dfbf008d6b7dc 3073 read status data
@40000000647dfbf008dc7c6c 3073 read serial data seplos
@40000000647dfbf009804a04 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfbf11034857c 3073 return info data of length 150 : b'0000100DB60D730DB70D750DB50D460DB40DB70D120DAB0D100DB20D250D320D100D11060C060BF20BF30C040C260C08005C15786B660A6D6003D56D60001603E8157BFFFD00000BC90B5C'
@40000000647dfbf1109e4b9c 3073 Current = 0.92A , Voltage = 54.96V
@40000000647dfbf110a30a74 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbf110a738c4 3073 Cycles = 22
@40000000647dfbf110aba594 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbf110af994c 3073 HW:Seplos BMS 16 cells
@40000000647dfbf110b50404 3073 read serial data seplos
@40000000647dfbf1118c06fc 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbf3194ce014 3073 checksum error
@40000000647dfbf508ffd734 3073 read status data
@40000000647dfbf509059fac 3073 read serial data seplos
@40000000647dfbf50a141dc4 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfbf610862fbc 3073 return info data of length 150 : b'0000100DB70D730DB70D750DB60D460DB40DB60D120DAC0D100DB30D250D320D100D11060C060BF20BF30C040C260C08000015796B660A6D6003D56D60001603E8157CFFF700D70BC90B5C'
@40000000647dfbf61104be2c 3073 Current = 0.0A , Voltage = 54.97V
@40000000647dfbf611094a3c 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbf6110d611c 3073 Cycles = 22
@40000000647dfbf61111b67c 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbf611175bcc 3073 HW:Seplos BMS 16 cells
@40000000647dfbf6111cca6c 3073 read serial data seplos
@40000000647dfbf611d87d34 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbf819959d2c 3073 checksum error
@40000000647dfbfa091d465c 3073 read status data
@40000000647dfbfa092316a4 3073 read serial data seplos
@40000000647dfbfa09c74db4 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfbfb107d0414 3073 return info data of length 150 : b'0000100DB70D740DB80D760DB70D460DB40DB70D120DAC0D100DB30D250D330D100D12060C060BF20BF30C040C260C08000015796B660A6D6003D56D60001603E8157BFFF801D90BC90B5C'
@40000000647dfbfb10d72e1c 3073 Current = 0.0A , Voltage = 54.97V
@40000000647dfbfb10dc3b14 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbfb10e3c4c4 3073 Cycles = 22
@40000000647dfbfb10e8ba4c 3073 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbfb10ecec84 3073 HW:Seplos BMS 16 cells
@40000000647dfbfb10f32644 3073 read serial data seplos
@40000000647dfbfb11bb6014 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbfd19c119fc 3073 checksum error
@40000000647dfbff093eef8c 3073 read status data
@40000000647dfbff0944cf74 3073 read serial data seplos
@40000000647dfbff0a123d4c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfc0010ba5364 3073 return info data of length 150 : b'0000100DB70D730DB70D750DB40D460DB40DB70D120DAC0D0F0DB30D250D320D100D11060C060BF20BF30C040C250C08000015786B660A6D6003D56D60001603E8157BFFF9FEDB0BC90B5C'
@40000000647dfc00111c97a4 3073 Current = 0.0A , Voltage = 54.96V
@40000000647dfc0011212f6c 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfc001125658c 3073 Cycles = 22
@40000000647dfc001129da2c 3073 Environment temp = 37.8°C , Power temp = 34.9°C
@40000000647dfc00112dcde4 3073 HW:Seplos BMS 16 cells
@40000000647dfc00113328fc 3073 read serial data seplos
@40000000647dfc0011da751c 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfc0219e9febc 3073 checksum error
@40000000647dfc040969dbd4 3073 read status data
@40000000647dfc040969eb74 3073 read serial data seplos
@40000000647dfc040a3ceefc 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
@40000000647dfc0510ea67fc 3073 return info data of length 150 : b'0000100DB60D730DB70D750DB60D460DB40DB70D110DAB0D0F0DB20D250D320D100D11060C060BF20BF30C040C250C08FF8A15786B660A6D6003D56D60001603E8157AFFF800000BC90B5C'
@40000000647dfc05116909f4 3073 Current = -1.18A , Voltage = 54.96V
@40000000647dfc0511691994 3073 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfc0511692934 3073 Cycles = 22
@40000000647dfc0511693104 3073 Environment temp = 37.8°C , Power temp = 34.9°C
@40000000647dfc05116c3a5c 3073 HW:Seplos BMS 16 cells
@40000000647dfc051171c454 3073 read serial data seplos
@40000000647dfc051234aadc 3073 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
@40000000647dfbf71260a0c4 2899 read status data
@40000000647dfbf71260b064 2899 read serial data seplos
@40000000647dfbf712e8ace4 2899 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004642E00201FD36\r'
@40000000647dfbf819978574 2899 return info data of length 150 : b'0000100DB70D730DB70D750DB70D460DB40DB60D120DAC0D100DB30D250D320D100D11060C060BF20BF30C040C260C08000015796B660A6D6003D56D60001603E8157CFFFA00300BC90B5C'
@40000000647dfbf819c8cea4 2899 Voltage cell[0]=3.511V
@40000000647dfbf819cea6bc 2899 Voltage cell[1]=3.443V
@40000000647dfbf819d3d2f4 2899 Voltage cell[2]=3.511V
@40000000647dfbf819d8fb44 2899 Voltage cell[3]=3.445V
@40000000647dfbf819dd354c 2899 Voltage cell[4]=3.511V
@40000000647dfbf819e203c4 2899 Voltage cell[5]=3.398V
@40000000647dfbf819ea3184 2899 Voltage cell[6]=3.508V
@40000000647dfbf819ef2edc 2899 Voltage cell[7]=3.51V
@40000000647dfbf819f76854 2899 Voltage cell[8]=3.346V
@40000000647dfbf819fcea7c 2899 Voltage cell[9]=3.5V
@40000000647dfbf81a458854 2899 Voltage cell[10]=3.344V
@40000000647dfbf81a459bdc 2899 Voltage cell[11]=3.507V
@40000000647dfbf81a45a794 2899 Voltage cell[12]=3.365V
@40000000647dfbf81a45b34c 2899 Voltage cell[13]=3.378V
@40000000647dfbf81a45bb1c 2899 Voltage cell[14]=3.344V
@40000000647dfbf81a45c6d4 2899 Voltage cell[15]=3.345V
@40000000647dfbf81a45cea4 2899 Temp cell[0]=34.7°C
@40000000647dfbf81a45d674 2899 Temp cell[1]=32.7°C
@40000000647dfbf81a45e22c 2899 Temp cell[2]=32.8°C
@40000000647dfbf81a475d14 2899 Temp cell[3]=34.5°C
@40000000647dfbf81a4e757c 2899 Current = 0.0A , Voltage = 54.97V
@40000000647dfbf81a53289c 2899 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbf81a574f1c 2899 Cycles = 22
@40000000647dfbf81a5bbbec 2899 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbf81a5fbf44 2899 HW:Seplos BMS 16 cells
@40000000647dfbf81a65704c 2899 read serial data seplos
@40000000647dfbf81b73ea7c 2899 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004644E00201FD34\r'
@40000000647dfbf920f6d9b4 2899 return info data of length 98 : b'00001002000200020002020002000200000000060000000000000000140001000000000300001000000000000000000010'
@40000000647dfbf9218492f4 2899 alarm info raw b'00001002000200020002020002000200000000060000000000000000140001000000000300001000000000000000000010'
@40000000647dfbf92184ae4c 2899 alarm info decoded b'\x00\x00\x10\x02\x00\x02\x00\x02\x00\x02\x02\x00\x02\x00\x02\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x01\x00\x00\x00\x00\x03\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10'
@40000000647dfbf921f53eb4 2899 logged to dbus [98.1]
@40000000647dfbf92203060c 2899 Cells:[1]3.511V [2]3.443V [3]3.511V [4]3.445V [5]3.511V [6]3.398V [7]3.508V [8]3.51V [9]3.346V [10]3.5V [11]3.344V [12]3.507V [13]3.365V [14]3.378V [15]3.344V [16]3.345V
@40000000647dfbfc1291cab4 2899 read status data
@40000000647dfbfc1291de3c 2899 read serial data seplos
@40000000647dfbfc13188eb4 2899 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004642E00201FD36\r'
@40000000647dfbfd19c1aa84 2899 return info data of length 150 : b'0000100DB70D740DB80D750DB60D460DB40DB70D120DAC0D100DB30D250D330D100D11060C060BF20BF30C040C260C08000015796B660A6D6003D56D60001603E8157BFFF9FFE40BC90B5C'
@40000000647dfbfd19f8db6c 2899 Voltage cell[0]=3.511V
@40000000647dfbfd19ff1144 2899 Voltage cell[1]=3.444V
@40000000647dfbfd1a05b864 2899 Voltage cell[2]=3.512V
@40000000647dfbfd1a0ab9a4 2899 Voltage cell[3]=3.445V
@40000000647dfbfd1a100904 2899 Voltage cell[4]=3.51V
@40000000647dfbfd1a150e2c 2899 Voltage cell[5]=3.398V
@40000000647dfbfd1a19a20c 2899 Voltage cell[6]=3.508V
@40000000647dfbfd1a1e35ec 2899 Voltage cell[7]=3.511V
@40000000647dfbfd1a76586c 2899 Voltage cell[8]=3.346V
@40000000647dfbfd1a766bf4 2899 Voltage cell[9]=3.5V
@40000000647dfbfd1a7673c4 2899 Voltage cell[10]=3.344V
@40000000647dfbfd1a767f7c 2899 Voltage cell[11]=3.507V
@40000000647dfbfd1a76874c 2899 Voltage cell[12]=3.365V
@40000000647dfbfd1a769304 2899 Voltage cell[13]=3.379V
@40000000647dfbfd1a769ebc 2899 Voltage cell[14]=3.344V
@40000000647dfbfd1a76a68c 2899 Voltage cell[15]=3.345V
@40000000647dfbfd1a76b244 2899 Temp cell[0]=34.7°C
@40000000647dfbfd1a76ba14 2899 Temp cell[1]=32.7°C
@40000000647dfbfd1a77891c 2899 Temp cell[2]=32.8°C
@40000000647dfbfd1a7794d4 2899 Temp cell[3]=34.5°C
@40000000647dfbfd1a779ca4 2899 Current = 0.0A , Voltage = 54.97V
@40000000647dfbfd1a77a85c 2899 Capacity = 274.94/280.0Ah , SOC = 98.1%
@40000000647dfbfd1a77b414 2899 Cycles = 22
@40000000647dfbfd1a77bbe4 2899 Environment temp = 37.9°C , Power temp = 34.9°C
@40000000647dfbfd1a77c79c 2899 HW:Seplos BMS 16 cells
@40000000647dfbfd1a77d354 2899 read serial data seplos
@40000000647dfbfd1aff3b64 2899 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004644E00201FD34\r'
@40000000647dfbfe209550f4 2899 return info data of length 98 : b'00001002000200020002020002000200000000060000000000000000140001000000000300001000000000000000000010'
@40000000647dfbfe20cba334 2899 alarm info raw b'00001002000200020002020002000200000000060000000000000000140001000000000300001000000000000000000010'
@40000000647dfbfe20d1449c 2899 alarm info decoded b'\x00\x00\x10\x02\x00\x02\x00\x02\x00\x02\x02\x00\x02\x00\x02\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x01\x00\x00\x00\x00\x03\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10'
@40000000647dfbfe21526b1c 2899 logged to dbus [98.1]
@40000000647dfbfe215d291c 2899 Cells:[1]3.511V [2]3.444V [3]3.512V [4]3.445V [5]3.51V [6]3.398V [7]3.508V [8]3.511V [9]3.346V [10]3.5V [11]3.344V [12]3.507V [13]3.365V [14]3.379V [15]3.344V [16]3.345V
what is @40000000647dfd4703548424 5036 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004644E00201FD34\r' doing ?
maybe this helps
@40000000647dfe8818c7ecec if chksum != Seplos.int_from_2byte_hex_ascii(data, -5):
@40000000647dfe8833c1810c File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 32, in int_from_2byte_hex_ascii
@40000000647dfe8833c1987c bytes.fromhex(data[offset : offset + 4].decode("ascii")),
@40000000647dfe8833c1a81c UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128)
@40000000647dfecd19e5e00c 7400 Environment temp = 37.6°C , Power temp = 34.6°C
@40000000647dfecd19ebdf34 7400 HW:Seplos BMS 16 cells
@40000000647dfecd19f43404 7400 read serial data seplos
@40000000647dfecd1b7a62bc 7400 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004644E00201FD34\r'
@40000000647dfece1f9cdf64 Traceback (most recent call last):
@40000000647dfece1f9cf2ec File "/opt/victronenergy/dbus-serialbattery/dbushelper.py", line 361, in publish_battery
@40000000647dfece1f9d028c success = self.battery.refresh_data()
@40000000647dfece1f9d0e44 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 119, in refresh_data
@40000000647dfece1f9d1de4 result_alarm = self.read_alarm_data()
@40000000647dfece1f9d299c File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 132, in read_alarm_data
@40000000647dfece1f9e527c data = self.read_serial_data_seplos(
@40000000647dfece1f9e621c File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 293, in read_serial_data_seplos
@40000000647dfece1f9e71bc if not Seplos.is_valid_frame(data):
@40000000647dfece1f9e798c File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 267, in is_valid_frame
@40000000647dfece1f9e892c if chksum != Seplos.int_from_2byte_hex_ascii(data, -5):
@40000000647dfece1f9ef68c File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 32, in int_from_2byte_hex_ascii
@40000000647dfece1f9f062c bytes.fromhex(data[offset : offset + 4].decode("ascii")),
@40000000647dfece1f9f11e4 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in position 2: ordinal not in range(128)
Are you sure
@40000000647dfbf712e8ace4 2899 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004642E00201FD36\r'
was contained in the output of root@raspberrypi4:~# cat /data/log/dbus-serialbattery.ttyUSB4/current
?
what is @40000000647dfd4703548424 5036 wrote 20 bytes to serial port /dev/ttyUSB0, command=b'~20004644E00201FD34\r' doing ?
Not sure what you mean, but in order to read from the BMS you first need to send a command to let it know what information you want, b'~20004644E00201FD34\r'
is that command (20 bytes).
The backtraces you posted are just a consequence of reading garbled data from the serial port, doesn't really help, sorry.
the 2899 was in log for usb0 and 3073 was for usb4 -
currently running for a few minutes with 0 or 4 going out after each other with the same messages
seems like the driver restarts - pid changes
thats what i am getting on usb4 the moment it dies and comes back
2023-06-05 15:32:55.363738500 8376 HW:Seplos BMS 16 cells
2023-06-05 15:32:55.364218500 8376 read serial data seplos
2023-06-05 15:32:55.382417500 8376 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004644E00201FD34\r'
2023-06-05 15:32:56.474438500 8376 return info data of length 98 : b'00001000000000000000000000000000000000060000000000000000140000000000000300000100000000000000000001'
2023-06-05 15:32:56.480428500 8376 alarm info raw b'00001000000000000000000000000000000000060000000000000000140000000000000300000100000000000000000001'
2023-06-05 15:32:56.481375500 8376 alarm info decoded b'\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x03\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'
2023-06-05 15:32:56.497176500 8376 logged to dbus [98.0]
2023-06-05 15:32:56.498718500 8376 Cells:[1]3.422V [2]3.383V [3]3.413V [4]3.391V [5]3.423V [6]3.366V [7]3.424V [8]3.409V [9]3.334V [10]3.423V [11]3.332V [12]3.423V [13]3.346V [14]3.355V [15]3.333V [16]3.334V
2023-06-05 15:32:59.229948500 8376 read status data
2023-06-05 15:32:59.230320500 8376 read serial data seplos
2023-06-05 15:32:59.244784500 8376 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 15:33:00.721588500 Traceback (most recent call last):
2023-06-05 15:33:00.721593500 File "/opt/victronenergy/dbus-serialbattery/dbushelper.py", line 361, in publish_battery
2023-06-05 15:33:00.721597500 success = self.battery.refresh_data()
2023-06-05 15:33:00.721600500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 117, in refresh_data
2023-06-05 15:33:00.721604500 result_status = self.read_status_data()
2023-06-05 15:33:00.721607500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 194, in read_status_data
2023-06-05 15:33:00.721688500 data = self.read_serial_data_seplos(
2023-06-05 15:33:00.721692500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 293, in read_serial_data_seplos
2023-06-05 15:33:00.721696500 if not Seplos.is_valid_frame(data):
2023-06-05 15:33:00.721699500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 267, in is_valid_frame
2023-06-05 15:33:00.721702500 if chksum != Seplos.int_from_2byte_hex_ascii(data, -5):
2023-06-05 15:33:00.721730500 File "/opt/victronenergy/dbus-serialbattery/bms/seplos.py", line 32, in int_from_2byte_hex_ascii
2023-06-05 15:33:00.721734500 bytes.fromhex(data[offset : offset + 4].decode("ascii")),
2023-06-05 15:33:00.721738500 UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128)
2023-06-05 15:33:00.721742500
2023-06-05 15:33:18.559215500 10080 Starting dbus-serialbattery
2023-06-05 15:33:18.559821500 10080 dbus-serialbattery v1.0.20230526dev
2023-06-05 15:33:18.560131500 10080 Testing Seplos
2023-06-05 15:33:18.560642500 10080 read status data
2023-06-05 15:33:18.561062500 10080 read serial data seplos
2023-06-05 15:33:18.574779500 10080 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 15:33:19.691020500 10080 return info data of length 150 : b'0000100D6D0D460D660D4F0D700D350D6F0D630D0F0D6F0D150D6F0D1E0D250D0E0D0F060C040BF20BF40C030C230C050661153A6B480A6D6003D46D60001603E81542000800000BCA0B5C'
2023-06-05 15:33:19.697305500 10080 Current = 16.33A , Voltage = 54.34V
2023-06-05 15:33:19.697663500 10080 Capacity = 274.64/280.0Ah , SOC = 98.0%
2023-06-05 15:33:19.697984500 10080 Cycles = 22
2023-06-05 15:33:19.698324500 10080 Environment temp = 37.6°C , Power temp = 34.6°C
2023-06-05 15:33:19.698720500 10080 HW:Seplos BMS 16 cells
2023-06-05 15:33:19.699013500 10080 Connection established to Seplos
2023-06-05 15:33:19.699226500 10080 Battery Seplos connected to dbus from /dev/ttyUSB4
2023-06-05 15:33:19.699525500 10080 ========== Settings ==========
2023-06-05 15:33:19.699862500 10080 > Connection voltage: 54.34V | Current: 16.33A | SoC: 98.0%
2023-06-05 15:33:19.700226500 10080 > Cell count: 16 | Cells populated: 0
2023-06-05 15:33:19.700521500 10080 > LINEAR LIMITATION ENABLE: True
2023-06-05 15:33:19.700785500 10080 > MAX BATTERY CHARGE CURRENT: 194.0A | MAX BATTERY DISCHARGE CURRENT: 194.0A
2023-06-05 15:33:19.701104500 10080 > CVCM: True
2023-06-05 15:33:19.701430500 10080 > MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.5V
2023-06-05 15:33:19.701752500 10080 > CCCM CV: True | DCCM CV: True
2023-06-05 15:33:19.702086500 10080 > CCCM T: False | DCCM T: True
2023-06-05 15:33:19.702398500 10080 > CCCM SOC: False | DCCM SOC: True
2023-06-05 15:33:19.751576500 10080 DeviceInstance = 4
2023-06-05 15:33:19.752117500 10080 com.victronenergy.battery.ttyUSB4
2023-06-05 15:33:19.768404500 10080 publish config values = 1
2023-06-05 15:33:24.781941500 10080 read status data
2023-06-05 15:33:24.782319500 10080 read serial data seplos
2023-06-05 15:33:24.794308500 10080 wrote 20 bytes to serial port /dev/ttyUSB4, command=b'~20004642E00201FD36\r'
2023-06-05 15:33:25.911059500 10080 return info data of length 150 : b'0000100D730D4A0D6C0D520D760D360D730D690D0F0D750D130D750D1E0D260D0E0D10060C040BF20BF40C030C230C0500D5153F6B4B0A6D6003D46D60001603E8153E000500000BCA0B5C'
2023-06-05 15:33:25.926719500 10080 Voltage cell[0]=3.443V
2023-06-05 15:33:25.926724500 10080 Voltage cell[1]=3.402V
I am out of ideas, I still suspect "something else" is trying to use the same serial port while it is also used by the dbus-serialbattery/seplos. But this is only a guess, at least according to the logs it is not a second instance of the driver itself. Unfortunately Venus OS doesn't have lsof, so maybe you could try something like
watch -n0.5 "ps | grep ttyUSB4"
and check if something else shows up.
confused as well :
did disconnect usb4 earlier
now reconnected it again - and so far (fingers crossed) it stays up - already for more then 3-4mins
Well it is definitely possible to get the Seplos BMS into a state where it doesn't reply anymore. Happened a few times during my initial implementation and also just now while fiddling with it. Had to turn it off and on again to make it behave again.
the gps dbus tries to connect to the usb devices
But - current state is that it works in parallel - i will keep an eye on it and report again.
gps dbus definitly tries to use the device - saw it in the watch .. command
spoke to soon. its pulling data after doing the disconnect reconnect usb thingy - but does not pull cell voltages and some other details ^^
2023-06-05 18:26:42.888810500 5497 read status data
2023-06-05 18:26:42.890770500 5497 read serial data seplos
2023-06-05 18:26:42.898261500 5497 wrote 20 bytes to serial port /dev/ttyUSB5, command=b'~20004642E00201FD36\r'
2023-06-05 18:26:44.010920500 5497 return info data of length 150 : b'0000100CF10CEE0CF00CEE0CEF0CED0CEF0CED0CF00CF10CE80CF00CEE0CF10CF00CF2060C010BEF0BF20BFF0C230C0BF7C814B25EFA0A6D6003646D60001603E814B3000600000BCA0B6D'
2023-06-05 18:26:44.016149500 5497 Current = -21.04A , Voltage = 52.98V
2023-06-05 18:26:44.016453500 5497 Capacity = 243.14/280.0Ah , SOC = 86.8%
2023-06-05 18:26:44.016716500 5497 Cycles = 22
2023-06-05 18:26:44.017000500 5497 Environment temp = 37.6°C , Power temp = 35.2°C
2023-06-05 18:26:44.017260500 5497 HW:Seplos BMS 16 cells
2023-06-05 18:26:44.017608500 5497 read serial data seplos
2023-06-05 18:26:44.027154500 5497 wrote 20 bytes to serial port /dev/ttyUSB5, command=b'~20004644E00201FD34\r'
2023-06-05 18:26:45.113910500 5497 return info data of length 98 : b'00001000000000000000000000000000000000060000000000000000140000000000000300000100000000000000000001'
2023-06-05 18:26:45.120981500 5497 alarm info raw b'00001000000000000000000000000000000000060000000000000000140000000000000300000100000000000000000001'
2023-06-05 18:26:45.121293500 5497 alarm info decoded b'\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x03\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'
2023-06-05 18:26:45.130799500 5497 logged to dbus [86.8]
2023-06-05 18:26:45.130803500 5497 Cells:
2023-06-05 18:26:47.890170500 5497 read status data
2023-06-05 18:26:47.890551500 5497 read serial data seplos
2023-06-05 18:26:47.902443500 5497 wrote 20 bytes to serial port /dev/ttyUSB5, command=b'~20004642E00201FD36\r'
2023-06-05 18:26:49.014007500 5497 return info data of length 150 : b'0000100CF10CEE0CF00CEE0CEF0CED0CF00CED0CF10CF10CE90CF00CEF0CF10CF10CF2060C010BEF0BF20BFF0C230C0BF7B314B25EF70A6D6003646D60001603E814B3000400000BCA0B6D'
gps dbus definitly tries to use the device - saw it in the watch .. command
What exactly did you see there?
the disconnect reconnect usb thingy
What exactly do you mean, did you do anything or did it happen automatically? Please post the full log output, ideally including the command that you used to extract that particular output. If you did something in between, please also add what you did. I have to admit it is a little bit hard to follow which of your outputs belong to what action and or file (not that I am currently having a lot of ideas, but still, it doesn't make it easier).
One more thing: do you have any idea why your USB TTY numbering changes all the time, do you have any other USB devices connected? It should be consistent if I'm not mistaken but appararently it is not.
{start-gps.sh} /bin/bash /opt/victronenergy/gps-dbus/start-gps.sh ttyUSB5
/opt/victronenergy/gps-dbus/gps_dbus -v --banner --dbus system --timeout 2 -s /dev/ttyUSB5 -b 38400
will try to use the device sometimes ( thats from 10h ago).
during the night i could see that almost every 30 minutes something is going on that interferes with the usb / rs485 connection. the driver then goes into the checksum error loop on ttyUSB0 - USB1 i was not pulling data via dbus mqtt .
usb numbering was changing because the second controller was running via usb hub - i had changed this after you wrote and both come up as usb0 +1 now.
i will try to keep an eye on whats going on every 20-30 mins
so its running now since ~3h without any problems. however - what i did was :
/opt/victronenergy/gps-dbus/start-gps.sh modified to args="-v --banner --dbus system --timeout 2 -s /dev/ttyUSB9" ( had usb7 before which killed the autodetec from one of the victron mppt´s )
also changed inside the bms/seplos.py the parameter self.poll_interval = 5000 to self.poll_interval = 15000 ( it think this does not have any impact)
with the gps change the device has not disappeared anymore . i will keep monitoring and rebooting once in a wile and report back.
from my perspective the gps process trying out all the usb´s kills it. maybe the serial driver and dbus serial battery is stuck shortly and the device is "free" again to be tried out for all processes that it goes in a weird mode that serial battery cant take it anymore.
{start-gps.sh} /bin/bash /opt/victronenergy/gps-dbus/start-gps.sh ttyUSB5
/opt/victronenergy/gps-dbus/gps_dbus -v --banner --dbus system --timeout 2 -s /dev/ttyUSB5 -b 38400
also changed inside the bms/seplos.py the parameter self.poll_interval = 5000 to self.poll_interval = 15000 ( it think this does not have any impact)
This is the inverval which is used to poll the data. If the interval is to long, then the serial adapter is free and could be used from other drivers. I'm not sure if this is good, that the driver take 15 seconds to refresh all data. This has to be evaluated.
Please try also at least to run the driver without restarting for 2 days. Better would be 7 days.
thanks for the info : if its pulling data only every 5 seconds would this mean that cell voltages are only updated every 5 seconds ? because currently i feel like its faster then that.
Thats correct. Add a message in the log with the battery ID, so you see exactly which battery updates the cell informations with which interval
thanks again for all of your and the teams affords . really appreciate it
You're welcome. Thanks for helping to improve the driver :-)
I just read through https://github.com/victronenergy/venus/wiki/howto-add-a-driver-to-Venus and from what I understand as long as the driver doesn't exit (which it shouldn't as long as we can read valid data) the serial port should not be probed by other drivers. No matter what poll interval is used. That is what confuses me. BTW, in my case 5 seconds was already on the defensive side, usually refreshing is done in <1sec.
So right now I don't see any necessary changes to the seplos driver, all the problems seem to lie somewhere outside the seplos part. Do you agree @mr-manuel? Also I was considering making this all a little bit more robust by catching excpetions when reading garbled data, but the aforementioned Victron documentation explicitly states "Which means: don't code too defensively." So I guess I'm gonna leave it as is?!
@schindlerit1984 After reading the docs I gathered that everything that serial-starter does should be logged, maybe you can watch (and post) the output of
tail -F /data/log/serial-starter/current | tai64nlocal
so i think i have found the process that kills it ( it was stable for 6 hours now)
fresh after the reboot - dbus battery comes up - gps does something - dbus battery goes down - and so on.
i have tried around with the combination of fake usb gps device or real one and there is no change - the only "fix" for now is adjusting the parameter self.poll_interval = 5000 to self.poll_interval = 15000 - ( have not tested how low i can go but its obvious that with 5000 the process gets sucked away by the dbus gpus because maybe some data does not come back and the process is restarted and usb0 +1 is free again.
2023-06-06 14:17:45.763197500 INFO: Create daemontools service dbus-cgwacs.ttyUSB1
2023-06-06 14:17:49.172820500 INFO: Start service gps-dbus.ttyUSB0 once
2023-06-06 14:17:51.567934500 INFO: Create daemontools service vedirect-interface.ttyUSB0
2023-06-06 14:17:52.037678500 INFO: Start service dbus-cgwacs.ttyUSB1 once
2023-06-06 14:17:57.708546500 INFO: Start service vedirect-interface.ttyUSB0 once
2023-06-06 14:17:57.970393500 INFO: Create daemontools service dbus-fzsonick-48tl.ttyUSB1
2023-06-06 14:18:01.596723500 INFO: Start service dbus-serialbattery.ttyUSB0 once
2023-06-06 14:18:04.229366500 INFO: Start service dbus-fzsonick-48tl.ttyUSB1 once
2023-06-06 14:18:06.971379500 INFO: Create daemontools service dbus-imt-si-rs485tc.ttyUSB1
2023-06-06 14:18:13.081848500 INFO: Start service dbus-imt-si-rs485tc.ttyUSB1 once
2023-06-06 14:18:16.445293500 INFO: Create daemontools service dbus-modbus-client.serial.ttyUSB1
2023-06-06 14:18:22.500322500 INFO: Start service dbus-modbus-client.serial.ttyUSB1 once
2023-06-06 14:18:30.221793500 INFO: Start service gps-dbus.ttyUSB0 once
2023-06-06 14:18:31.544566500 INFO: Create daemontools service dbus-serialbattery.ttyUSB1
2023-06-06 14:18:34.819325500 INFO: Start service vedirect-interface.ttyUSB0 once
2023-06-06 14:18:37.597795500 INFO: Start service dbus-serialbattery.ttyUSB1 once
2023-06-06 14:18:40.078493500 INFO: Start service dbus-serialbattery.ttyUSB0 once
2023-06-06 14:18:59.717202500 INFO: Start service gps-dbus.ttyUSB0 once
2023-06-06 14:19:01.015214500 INFO: Create daemontools service gps-dbus.ttyUSB1
2023-06-06 14:19:04.261042500 INFO: Start service vedirect-interface.ttyUSB0 once
2023-06-06 14:19:07.060321500 INFO: Start service gps-dbus.ttyUSB1 once
2023-06-06 14:19:07.616985500 INFO: Start service vedirect-interface.ttyUSB1 once
2023-06-06 14:19:10.885668500 INFO: Start service dbus-serialbattery.ttyUSB0 once
2023-06-06 14:19:12.152564500 INFO: Start service dbus-cgwacs.ttyUSB1 once
2023-06-06 14:19:17.548039500 INFO: Start service dbus-fzsonick-48tl.ttyUSB1 once
2023-06-06 14:19:20.867324500 INFO: Start service dbus-imt-si-rs485tc.ttyUSB1 once
2023-06-06 14:19:24.160827500 INFO: Start service dbus-modbus-client.serial.ttyUSB1 once
2023-06-06 14:19:31.521433500 INFO: Start service gps-dbus.ttyUSB0 once
2023-06-06 14:19:32.764728500 INFO: Start service dbus-serialbattery.ttyUSB1 once
2023-06-06 14:19:36.037492500 INFO: Start service vedirect-interface.ttyUSB0 once
2023-06-06 14:19:41.318728500 INFO: Start service dbus-serialbattery.ttyUSB0 once
2023-06-06 14:19:48.650988500 INFO: Start service gps-dbus.ttyUSB0 once
2023-06-06 14:19:49.927791500 INFO: Start service gps-dbus.ttyUSB1 once
not sure if this helps in any way
That's really weird, as far as I understand after "Start service dbus-serialbattery.ttyUSB1 once" there should not be any more entries in serial-starter for that tty, because dbus-serialbattery on ttyUSB1 would not exit thus no more work for serial-starter for that tty. Can you attach/post the logs of dbus-serialbattery.ttyUSB0 and dbus-serialbattery.ttyUSB1 for that same time frame also?
I added some new documentation regarding the serial starter. See https://louisvdw.github.io/dbus-serialbattery/troubleshoot/#no-log-file
Thanks for the added documentation. I'll wait and see if @schindlerit1984 comes up with more logs of the startup. As already stated in https://github.com/Louisvdw/dbus-serialbattery/issues/652#issuecomment-1578385594, I currently don't see that this is a problem of the driver but rather something outside of it, possibly handling the serial ttys. But we'll see, without any additional information I won't be able to work on it, though.
Describe the bug
Hi,
getting an error when i try to connect two Seplos Batteries individually via Rs485 - two USB Devices and no daisy chaining - individually the work fine - once both are connected only one of them is working.
ERROR:SerialBattery:Unexpected err=SerialException('read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)'), type(err)=<class 'serial.serialutil.SerialException'>
is what i am getting on the second usb then once first one is running.
any idea how to fix it ? for me its mainly to pull the rs485 infos out of the pack like cell voltages etc.
How to reproduce
Steps to reproduce the behavior:
Expected behavior
hope to get both bms visible - this was only working once a few versions ago ( i am not 100% sure)
Driver version
1.0.20230518dev
Venus OS device type
Raspberry Pi
Venus OS version
3.042
BMS type
Seplos
Cell count
16
Connection type
Serial USB adapter to RS485
Config file
Relevant log output
Any other information that may be helpful
No response