Open tjanicsek opened 1 year ago
seems that I have the same issue
1:10:49 INFO [sampling] JKBt(C8:47:xx:xx:xx:xx) times: connect=0.00s fetch=0.72s
21:10:57 WARNING [bt] BMS JKBt(C8:47:xx:xx:xx:xx) disconnected after 22.7s!
21:10:57 INFO [sampling] battery280 bms debug data: {3: bytearray(b'U\xaa\xeb\x90\x03\x12JK_B2A20S20P\x00\x00\x00\x0011.XW\x00\x00\x0011.26H\x00\x00\xdc\xfb\t\x00\x02\x00\x00\x00JK_B2A20S20P\x00\x00\x00\x001234\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00230426\x00\x003010545094\x000000\x00Input Userdata\x00\x00123456\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Input Userdata\x00\x00|\xf8\xff\xff\x9f\r\x00\x00\x00\x00\x00\x00\x90\x0f\x00\x00\x00\x00\xc0\xd8\x03\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x007'), 1: bytearray(b'U\xaa\xeb\x90\x01\x12X\x02\x00\x00(\n\x00\x00Z\n\x00\x00\x10\x0e\x00\x00\xde\r\x00\x00\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc4\t\x00\x00P\xc3\x00\x00\x1e\x00\x00\x00<\x00\x00\x00@\r\x03\x00,\x01\x00\x00<\x00\x00\x00<\x00\x00\x00\xd0\x07\x00\x00\xbc\x02\x00\x00X\x02\x00\x00\xbc\x02\x00\x00X\x02\x00\x008\xff\xff\xff\x9c\xff\xff\xff\xe8\x03\x00\x00 \x03\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\xc0E\x04\x00\xdc\x05\x00\x00\xb8\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0q\x0b\x00\x00\x00\x00\x00\x00|\xf8\xff\xff\x9f\r\x00\x00\x00\x00\x00\x00\xab'), 2: bytearray(b'U\xaa\xeb\x90\x02&\xcc\x0c\xcb\x0c\xcc\x0c\xcc\x0c\xcc\x0c\xcb\x0c\xcc\x0c\xcc\x0c\xcc\x0c\xcb\x0c\xcc\x0c\xcc\x0c\xcb\x0c\xcb\x0c\xcc\x0c\xcb\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\xcb\x0c\x01\x00\x00\x023\x003\x002\x003\x002\x003\x002\x002\x002\x002\x002\x002\x002\x002\x00?\x00=\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe2\x00\x00\x00\x00\x00\xb4\xcc\x00\x00\xc30\x03\x00j\xf0\xff\xff\xc9\x00\xc8\x00\x00\x00\x08\x00\x00\x00\x00,\xb5\xe1\x01\x00\xc0E\x04\x00\x00\x00\x00\x00\xe9\xd6\x03\x00d\x00\x00\x00\xe8\xfb\t\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x01\x00\x00\x00\x1a\x04\x00\x00\x13\x005b=@\x00\x00\x00\x00x\x14\x00\x00\x00\x01\x00\x01\x00\x05\x00\x00|\xffA\x00\x00\x00\x00\x00\xe2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xff\x7f\xdc/\x01\x01\x01\x00\x00\x00\x00Y')}Traceback (most recent call last):
File "/app/main.py", line 266, in main
await fetch_loop(fn, period=sample_period, max_errors=max_errors)
File "/app/main.py", line 36, in fetch_loop
await fn()
File "/app/main.py", line 259, in fn
await t()
File "/app/bmslib/sampling.py", line 67, in __call__
return await self.sample()
File "/app/bmslib/sampling.py", line 92, in sample
sample = await bms.fetch()
File "/app/bmslib/jikong.py", line 222, in fetch
await self._fetch_futures.wait_for(0x02, self.TIMEOUT)
File "/app/bmslib/__init__.py", line 48, in wait_for
return await asyncio.wait_for(self._futures.get(name), timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/main.py", line 296, in <module>
asyncio.run(main())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
asyncio.exceptions.CancelledError
21:10:57 INFO [main] exit signal handler... (), {}, shutdown already False
21:19:54 ERROR [sampling] battery280 error: <class 'asyncio.exceptions.TimeoutError'>
SOLVED: Seems that intel ax200 firmware was at fault!
Update:
Crashed again, but what I see is lots of WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary#033[0m
when battery connects
like the the same as you since the 2023.5.1 update
23:24:15 ERROR [main] Error (num 107, max 200) reading BMS: Device with address A4:C1:38:E6:3F:18 was not found. It may have been removed from BlueZ when scanning stopped. 23:24:15 ERROR [main] Stack: Traceback (most recent call last): File "/app/main.py", line 36, in fetch_loop await fn() File "/app/main.py", line 264, in fn raise exceptions[0] File "/app/main.py", line 259, in fn await t() File "/app/bmslib/sampling.py", line 67, in call return await self.sample() File "/app/bmslib/sampling.py", line 86, in sample async with bms: File "/app/bmslib/bt.py", line 207, in aenter await self.connect() File "/app/bmslib/jbd.py", line 53, in connect await super().connect(kwargs) File "/app/bmslib/bt.py", line 113, in connect await self._connect_client(timeout=timeout) File "/app/bmslib/bt.py", line 81, in _connect_client await self.client.connect(timeout=timeout) File "/usr/lib/python3.10/site-packages/bleak/init.py", line 531, in connect return await self._backend.connect(kwargs) File "/usr/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 239, in connect raise BleakDeviceNotFoundError( bleak.exc.BleakDeviceNotFoundError: Device with address A4:C1:38:E6:3F:18 was not found. It may have been removed from BlueZ when scanning stopped. 23:25:15 INFO [sampling] connecting bms JbdBt(A4:C1:38:A2:EA:D8) 23:25:15 ERROR [sampling] BANK2 error: Device with address A4:C1:38:A2:EA:D8 was not found. It may have been removed from BlueZ when scanning stopped. 23:25:15 INFO [sampling] BANK2 bms debug data: bytearray(b'\xdd\x04\x00 \x0c\xf3\x0c\xf1\x0c\xf1\x0c\xf2\x0c\xef\x0c\xf3\x0c\xf6\x0c\xf5\x0c\xf5\x0c\xf7\x0c\xf1\x0c\xf3\x0c\xef\x0c\xf2\x0c\xf5\x0c\xf4\xef\xf2w') 23:25:15 INFO [sampling] connecting bms JbdBt(A4:C1:38:2A:95:DB) 23:25:35 ERROR [sampling] BANK1 error: Device with address A4:C1:38:2A:95:DB was not found. 23:25:35 INFO [sampling] connecting bms JbdBt(A4:C1:38:E6:3F:18) 23:25:36 INFO [sampling] connected bms JbdBt(A4:C1:38:E6:3F:18)! 23:25:36 INFO [sampling] BANK3: BmsSampl(94.8%,U=53.0V,I=-4.89A,P=-259W,q=293.7Ah/310,mos=nan°C) 23:25:37 INFO [sampling] BANK3 volt=3319,3315,3315,3316,3315,3312,3317,3315,3312,3314,3313,3319,3314,3311,3312,3310 temp=[19.7] 23:25:39 INFO [sampling] JbdBt(A4:C1:38:E6:3F:18) times: connect=1.69s fetch=0.33s 23:25:39 ERROR [main] 2 exceptions occurred fetching BMSs 23:25:39 ERROR [main] Error (num 108, max 200) reading BMS: Device with address A4:C1:38:A2:EA:D8 was not found. It may have been removed from BlueZ when scanning stopped. 23:25:39 ERROR [main] Stack: Traceback (most recent call last): File "/app/main.py", line 36, in fetch_loop await fn() File "/app/main.py", line 264, in fn raise exceptions[0] File "/app/main.py", line 259, in fn await t() File "/app/bmslib/sampling.py", line 67, in call return await self.sample() File "/app/bmslib/sampling.py", line 86, in sample async with bms: File "/app/bmslib/bt.py", line 207, in aenter await self.connect() File "/app/bmslib/jbd.py", line 53, in connect await super().connect(kwargs) File "/app/bmslib/bt.py", line 113, in connect await self._connect_client(timeout=timeout) File "/app/bmslib/bt.py", line 81, in _connect_client await self.client.connect(timeout=timeout) File "/usr/lib/python3.10/site-packages/bleak/init.py", line 531, in connect return await self._backend.connect(kwargs) File "/usr/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 239, in connect raise BleakDeviceNotFoundError( bleak.exc.BleakDeviceNotFoundError: Device with address A4:C1:38:A2:EA:D8 was not found. It may have been removed from BlueZ when scanning stopped. 23:26:39 INFO [sampling] connecting bms JbdBt(A4:C1:38:E6:3F:18) 23:26:39 ERROR [sampling] BANK3 error: Device with address A4:C1:38:E6:3F:18 was not found. It may have been removed from BlueZ when scanning stopped. 23:26:39 INFO [sampling] BANK3 bms debug data: bytearray(b'\xdd\x04\x00 \x0c\xf7\x0c\xf3\x0c\xf3\x0c\xf4\x0c\xf3\x0c\xf0\x0c\xf5\x0c\xf3\x0c\xf0\x0c\xf2\x0c\xf1\x0c\xf7\x0c\xf2\x0c\xef\x0c\xf0\x0c\xee\xef\xfbw') 23:26:39 INFO [sampling] connecting bms JbdBt(A4:C1:38:2A:95:DB) 23:26:59 ERROR [sampling] BANK1 error: Device with address A4:C1:38:2A:95:DB was not found. 23:26:59 INFO [sampling] connecting bms JbdBt(A4:C1:38:A2:EA:D8) 23:27:00 INFO [sampling] connected bms JbdBt(A4:C1:38:A2:EA:D8)! 23:27:00 INFO [sampling] BANK2: BmsSampl(91.7%,U=53.0V,I=-6.12A,P=-324W,q=256.8Ah/280,mos=nan°C) 23:27:00 INFO [sampling] BANK2 volt=3315,3312,3312,3313,3310,3314,3317,3315,3316,3318,3312,3315,3310,3313,3316,3314 temp=[19.7] 23:27:03 INFO [sampling] JbdBt(A4:C1:38:A2:EA:D8) times: connect=1.33s fetch=0.24s 23:27:03 ERROR [main] 2 exceptions occurred fetching BMSs 23:27:03 ERROR [main] Error (num 109, max 200) reading BMS: Device with address A4:C1:38:E6:3F:18 was not found. It may have been removed from BlueZ when scanning stopped. 23:27:03 ERROR [main] Stack: Traceback (most recent call last): File "/app/main.py", line 36, in fetch_loop await fn() File "/app/main.py", line 264, in fn raise exceptions[0] File "/app/main.py", line 259, in fn await t() File "/app/bmslib/sampling.py", line 67, in call return await self.sample() File "/app/bmslib/sampling.py", line 86, in sample async with bms: File "/app/bmslib/bt.py", line 207, in aenter await self.connect() File "/app/bmslib/jbd.py", line 53, in connect await super().connect(kwargs) File "/app/bmslib/bt.py", line 113, in connect await self._connect_client(timeout=timeout) File "/app/bmslib/bt.py", line 81, in _connect_client await self.client.connect(timeout=timeout) File "/usr/lib/python3.10/site-packages/bleak/init.py", line 531, in connect return await self._backend.connect(kwargs) File "/usr/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 239, in connect raise BleakDeviceNotFoundError( bleak.exc.BleakDeviceNotFoundError: Device with address A4:C1:38:E6:3F:18 was not found. It may have been removed from BlueZ when scanning stopped.
Batmon starts fine, but a half minute later stops.