Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jk bms B2A20S20P - problem with connection #85

Closed
Tesla72PL opened this issue Apr 21, 2023 · 13 comments
Closed

Jk bms B2A20S20P - problem with connection #85

Tesla72PL opened this issue Apr 21, 2023 · 13 comments

Comments

@Tesla72PL
Copy link

Hello, can you help mi with my bms, somethims working good but after 1-2days have problems with communication and cant connect to bms

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 14:49:30 INFO [main] BT Discovery: 14:49:35 INFO [main] BT Device JK_B2A20S20P address=C8:47:8C:EC:BE:E3 14:49:35 INFO [main] connecting mqtt mqttuser@core-mosquitto 14:49:35 INFO [main] Fetching 1 BMS + 0 others serially, period=20.00s, keep_alive=False 14:49:35 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3) 14:49:35 INFO [main] mqtt watchdog loop started with timeout 120.0s 14:49:47 INFO [sampling] connected bms JKBt(C8:47:8C:EC:BE:E3)! 14:49:53 ERROR [sampling] battery1 error: Not connected 14:49:53 INFO [sampling] {3: bytearray(b'U\xaa\xeb\x90\x035JK_B2A20S20P\x00\x00\x00\x0011.XW\x00\x00\x0011.26H\x00\x00\xfc\x10 \x00\x08\x00\x00\x00JK_B2A20S20P\x00\x00\x00\x001234\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00230327\x00\x003010545107\x000000\x00Input Userdata\x00\x00123\x00\x00\x00\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\x00\x08'), 1: bytearray(b'U\xaa\xeb\x90\x015X\x02\x00\x00\x08\x0c\x00\x00N\x0c\x00\x00\xde\r\x00\x00\xac\r\x00\x00\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x86\x0b\x00\x00\x808\x01\x00\x1e\x00\x00\x00<\x00\x00\x00\x90_\x01\x00,\x01\x00\x00<\x00\x00\x00<\x00\x00\x00\xd0\x07\x00\x00^\x01\x00\x00,\x01\x00\x00^\x01\x00\x00,\x01\x00\x00\x1e\x00\x00\x00<\x00\x00\x00 \x03\x00\x00\xbc\x02\x00\x00\x10\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\xe0\x93\x04\x00\xdc\x05\x00\x00z\r\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\x08\x00\x00\x00\x00|\xf8\xff\xff\x9f\r\x00\x00\x00\x00\x00\x00\xcd'), 2: bytearray(b'U\xaa\xeb\x90\x025\x89\r{\r|\r\x84\r\x81\r\x82\rs\rq\rp\r\x81\re\rw\r\x84\ry\r\x87\r\x83\r\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|\r#\x00\x00\ny\x00u\x00n\x00r\x00e\x00\x00t\x00o\x00j\x00l\x00^\x00V\x00X\x00d\x00{\x00o\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\xac\x00\x00\x00\x00\x00\xbe\xd7\x00\x00\xe2\x15\x1c\x00.\x82\x00\x00\x94\x00\x9a\x00\x00\x00\x00\x00\xe5\x07\x01_\xd6c\x04\x00\xe0\x93\x04\x00\x06\x00\x00\x00\xd8\xe6\x1b\x00d\x00\x00\x00\x0f\x12 \x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x01\x00\x00\x00\x18\x04\x9f\x00\x00\x00"d>@\x00\x00\xaa\x01\x93\x15\x00\x00\x00\x01\x00\x01\x00\x05\x00\x00\xb7\xc7\x11\x00\x00\x00\x00\x00\xac\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\x000')} bms debug data: battery1
14:49:53 ERROR [main] 1 exceptions occurred fetching BMSs
14:49:53 ERROR [main] Error (num 1, max 200) reading BMS: Not connected
14:49:53 ERROR [main] Stack: Traceback (most recent call last):
File "/app/bmslib/sampling.py", line 74, in sample
sample = await bms.fetch()
File "/app/bmslib/jikong.py", line 207, in fetch
await self._fetch_futures.wait_for(0x02, self.TIMEOUT)
File "/app/bmslib/init.py", line 46, 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 45, in fetch_loop
await fn()
File "/app/main.py", line 239, in fn
raise exceptions[0]
File "/app/main.py", line 234, in fn
await t
File "/app/bmslib/sampling.py", line 51, in call
return await self.sample()
File "/app/bmslib/sampling.py", line 70, in sample
async with bms:
File "/app/bmslib/bt.py", line 178, in aexit
await self.disconnect()
File "/app/bmslib/jikong.py", line 134, in disconnect
await self.client.stop_notify(self.UUID_RX)
File "/usr/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 1092, in stop_notify
raise BleakError("Not connected")
bleak.exc.BleakError: Not connected`

@fl4p
Copy link
Owner

fl4p commented Apr 21, 2023

Did you try to enable keep_alive?

@Tesla72PL
Copy link
Author

Tesla72PL commented Apr 21, 2023

With this "keep alive" is even worse, because it will only connect once or a few times and then it can no longer connect either. I bought a dedicated bluetooth usb, but that didn't help either.

From my cell phone, I connect to the app without any problems

@fl4p
Copy link
Owner

fl4p commented Apr 21, 2023

I just pushed update 0.0.60, which fixes the error from your logs above

@Tesla72PL
Copy link
Author

Tesla72PL commented Apr 21, 2023

I noticed the update, but I don't think it solved the problem, I don't know why there is still a problem with this connection. From the cell phone it logs in normally and after I leave the cell phone and close that session, connecting via HA is like a lottery - once it works and once it doesn't.... Maybe it's a problem with my BMS - I don't know....

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
21:15:22 INFO [bt] BT Discovery:
21:15:27 INFO [bt]  - no devices found - 
21:15:27 INFO [main] connecting mqtt mqttuser@core-mosquitto
21:15:27 INFO [main] Fetching 1 BMS + 0 others serially, period=20.00s, keep_alive=False
21:15:27 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
21:15:27 INFO [main] mqtt watchdog loop started with timeout 900.0s
21:15:31 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
21:15:41 ERROR [sampling] battery1 error: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:15:41 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
21:15:45 INFO [jikong] normal connect failed (<class 'asyncio.exceptions.TimeoutError'>), connecting with scanner
21:15:55 ERROR [sampling] battery1 error: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:15:55 ERROR [main] 1 exceptions occurred fetching BMSs
21:15:55 ERROR [main] Error (num 1, max 200) reading BMS: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:15:55 ERROR [main] Stack: Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/dbus_next/aio/message_bus.py", line 305, in call
    await future
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/app/bmslib/jikong.py", line 119, in connect
    await super().connect(timeout=4)
  File "/app/bmslib/bt.py", line 104, in connect
    await self._connect_client(timeout=timeout)
  File "/app/bmslib/bt.py", line 72, in _connect_client
    await self.client.connect(timeout=timeout)
  File "/usr/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 348, in connect
    reply = await asyncio.wait_for(
  File "/usr/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
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 198, in __aenter__
    await self.connect()
  File "/app/bmslib/jikong.py", line 122, in connect
    await self._connect_with_scanner(timeout=timeout)
  File "/app/bmslib/bt.py", line 124, in _connect_with_scanner
    raise Exception('Device %s not discovered. Make sure it in range and is not being controled by '
Exception: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())

And with 'verbose_log'

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
21:34:42 INFO [bt] BT Discovery:
21:34:47 INFO [bt]  - no devices found - 
21:34:47 INFO [main] Verbose logging enabled
21:34:47 INFO [main] connecting mqtt mqttuser@core-mosquitto
21:34:47 DEBUG [client] Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b''
21:34:47 DEBUG [client] Received CONNACK (0, 0)
21:34:47 INFO [main] Fetching 1 BMS + 0 others serially, period=20.00s, keep_alive=False
21:34:47 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
21:34:47 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:34:47 INFO [main] mqtt watchdog loop started with timeout 900.0s
21:34:47 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -60, 'Connected': True, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': True, 'AdvertisingFlags': b'\x06'}}
21:34:47 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:34:51 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:34:51 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
21:34:51 DEBUG [bt] starting scan
21:34:51 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -60, 'Connected': True, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': True, 'AdvertisingFlags': b'\x06'}}
21:34:51 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:34:51 DEBUG [client] Disconnecting (None)
21:34:51 DEBUG [client] already disconnected (None)
21:34:51 DEBUG [bt] retry 1 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:34:51 DEBUG [client] Disconnecting (None)
21:34:51 DEBUG [client] already disconnected (None)
21:34:51 DEBUG [bt] retry 2 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:34:52 DEBUG [client] Disconnecting (None)
21:34:52 DEBUG [client] already disconnected (None)
21:34:52 DEBUG [bt] retry 3 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:34:53 DEBUG [client] Disconnecting (None)
21:34:53 DEBUG [client] already disconnected (None)
21:34:53 DEBUG [bt] retry 4 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:34:54 DEBUG [client] Disconnecting (None)
21:34:54 DEBUG [client] already disconnected (None)
21:34:54 DEBUG [bt] retry 5 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:34:55 DEBUG [client] Disconnecting (None)
21:34:55 DEBUG [client] already disconnected (None)
21:34:55 DEBUG [bt] retry 6 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:34:57 DEBUG [client] Disconnecting (None)
21:34:57 DEBUG [client] already disconnected (None)
21:34:57 DEBUG [bt] retry 7 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:01 DEBUG [client] Disconnecting (None)
21:35:01 DEBUG [client] already disconnected (None)
21:35:01 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:35:01 ERROR [sampling] battery1 error: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:01 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
21:35:01 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:35:01 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -60, 'Connected': True, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': True, 'AdvertisingFlags': b'\x06'}}
21:35:01 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:35:05 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:35:05 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
21:35:05 DEBUG [bt] starting scan
21:35:05 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -60, 'Connected': True, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': True, 'AdvertisingFlags': b'\x06'}}
21:35:05 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:35:05 DEBUG [client] Disconnecting (None)
21:35:05 DEBUG [client] already disconnected (None)
21:35:05 DEBUG [bt] retry 1 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:05 DEBUG [client] Disconnecting (None)
21:35:05 DEBUG [client] already disconnected (None)
21:35:05 DEBUG [bt] retry 2 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:06 DEBUG [client] Disconnecting (None)
21:35:06 DEBUG [client] already disconnected (None)
21:35:06 DEBUG [bt] retry 3 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:06 DEBUG [client] Disconnecting (None)
21:35:06 DEBUG [client] already disconnected (None)
21:35:06 DEBUG [bt] retry 4 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:07 DEBUG [client] Disconnecting (None)
21:35:07 DEBUG [client] already disconnected (None)
21:35:07 DEBUG [bt] retry 5 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:09 DEBUG [client] Disconnecting (None)
21:35:09 DEBUG [client] already disconnected (None)
21:35:09 DEBUG [bt] retry 6 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:11 DEBUG [client] Disconnecting (None)
21:35:11 DEBUG [client] already disconnected (None)
21:35:11 DEBUG [bt] retry 7 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:15 DEBUG [client] Disconnecting (None)
21:35:15 DEBUG [client] already disconnected (None)
21:35:15 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:35:15 ERROR [sampling] battery1 error: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:15 ERROR [main] 1 exceptions occurred fetching BMSs
21:35:15 ERROR [main] Error (num 1, max 200) reading BMS: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:15 ERROR [main] Stack: Traceback (most recent call last):
  File "/app/bmslib/jikong.py", line 119, in connect
    await super().connect(timeout=4)
  File "/app/bmslib/bt.py", line 104, in connect
    await self._connect_client(timeout=timeout)
  File "/app/bmslib/bt.py", line 72, in _connect_client
    await self.client.connect(timeout=timeout)
  File "/usr/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 198, in connect
    raise BleakError(
bleak.exc.BleakError: Device with address C8:47:8C:EC:BE:E3 was not found.
During handling of the above exception, another exception occurred:
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 198, in __aenter__
    await self.connect()
  File "/app/bmslib/jikong.py", line 122, in connect
    await self._connect_with_scanner(timeout=timeout)
  File "/app/bmslib/bt.py", line 124, in _connect_with_scanner
    raise Exception('Device %s not discovered. Make sure it in range and is not being controled by '
Exception: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
21:35:35 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
21:35:35 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:35:35 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -59, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': False, 'AdvertisingFlags': b'\x06'}}
21:35:35 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:35:39 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3): ['org.bluez.Device1', {'RSSI': <dbus_next.signature.Variant ('n', -61)>}, []]
21:35:39 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3): ['org.bluez.Device1', {}, ['RSSI']]
21:35:39 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:35:39 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
21:35:39 DEBUG [bt] starting scan
21:35:39 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': False, 'AdvertisingFlags': b'\x06'}}
21:35:39 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3): ['org.bluez.Device1', {'RSSI': <dbus_next.signature.Variant ('n', -61)>}, []]
21:35:39 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:35:39 DEBUG [bt] connect attempt 1
21:35:39 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:35:39 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -61, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': False, 'AdvertisingFlags': b'\x06'}}
21:35:44 DEBUG [client] Disconnecting (None)
21:35:44 DEBUG [client] already disconnected (None)
21:35:44 DEBUG [bt] retry 1 after error Device with address C8:47:8C:EC:BE:E3 was not found.
21:35:44 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:35:44 DEBUG [bt] connect attempt 2
21:35:44 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:35:44 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -61, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': False, 'AdvertisingFlags': b'\x06'}}
21:35:44 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:35:44 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:35:47 DEBUG [client] Sending PINGREQ
21:35:47 DEBUG [client] Received PINGRESP
21:35:49 DEBUG [client] Disconnecting (None)
21:35:49 DEBUG [client] already disconnected (None)
21:35:49 DEBUG [bt] retry 2 after error Device with address C8:47:8C:EC:BE:E3 was not found.
21:35:49 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3): ['org.bluez.Device1', {'RSSI': <dbus_next.signature.Variant ('n', -60)>}, []]
21:35:49 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:35:50 DEBUG [bt] connect attempt 3
21:35:50 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:35:50 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -60, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': False, 'AdvertisingFlags': b'\x06'}}
21:35:50 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:35:50 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:35:55 DEBUG [client] Disconnecting (None)
21:35:55 DEBUG [client] already disconnected (None)
21:35:55 DEBUG [bt] retry 3 after error Device with address C8:47:8C:EC:BE:E3 was not found.
21:35:55 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:35:56 DEBUG [bt] connect attempt 4
21:35:56 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:35:56 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -60, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': False, 'AdvertisingFlags': b'\x06'}}
21:35:56 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:35:56 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:36:01 DEBUG [client] Disconnecting (None)
21:36:01 DEBUG [client] already disconnected (None)
21:36:01 DEBUG [bt] retry 4 after error Device with address C8:47:8C:EC:BE:E3 was not found.
21:36:01 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3): ['org.bluez.Device1', {'RSSI': <dbus_next.signature.Variant ('n', -60)>}, []]
21:36:01 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:36:02 DEBUG [bt] connect attempt 5
21:36:02 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:36:02 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -60, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': False, 'AdvertisingFlags': b'\x06'}}
21:36:02 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:36:02 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:36:07 DEBUG [client] Disconnecting (None)
21:36:07 DEBUG [client] already disconnected (None)
21:36:07 DEBUG [bt] retry 5 after error Device with address C8:47:8C:EC:BE:E3 was not found.
21:36:07 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3): ['org.bluez.Device1', {'RSSI': <dbus_next.signature.Variant ('n', -59)>}, []]
21:36:07 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:36:08 DEBUG [bt] connect attempt 6
21:36:08 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:36:08 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -59, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': False, 'AdvertisingFlags': b'\x06'}}
21:36:08 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:36:08 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:36:13 DEBUG [client] Disconnecting (None)
21:36:13 DEBUG [client] already disconnected (None)
21:36:13 DEBUG [bt] retry 6 after error Device with address C8:47:8C:EC:BE:E3 was not found.
21:36:13 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', False)>}, []]
21:36:16 DEBUG [bt] connect attempt 7
21:36:16 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3 with hci0
21:36:16 DEBUG [scanner] cached devices: {'/org/bluez/hci0/dev_C8_47_8C_EC_BE_E3': {'Address': 'C8:47:8C:EC:BE:E3', 'AddressType': 'public', 'Name': 'JK_B2A20S20P', 'Alias': 'JK_B2A20S20P', 'Paired': False, 'Bonded': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -59, 'Connected': False, 'UUIDs': ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000ffe0-0000-1000-8000-00805f9b34fb', 'f000ffc0-0451-4000-b000-000000000000'], 'Modalias': 'usb:v045Ep0040d0300', 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {2917: b'\x88\xa0\xc8G\x8c\xec\xbe\xe3'}, 'ServicesResolved': False, 'AdvertisingFlags': b'\x06'}}
21:36:16 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]
21:36:16 DEBUG [scanner] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0): ['org.bluez.Adapter1', {'Discovering': <dbus_next.signature.Variant ('b', True)>}, []]

@Tesla72PL
Copy link
Author

Tesla72PL commented Apr 21, 2023

Here's the story - sometimes it works without a problem and then something will go wrong and it can't establish a connection - I have no idea why this happens

image

@fl4p
Copy link
Owner

fl4p commented Apr 21, 2023

@fl4p
Copy link
Owner

fl4p commented Apr 21, 2023

  • Remove the add-on store repository
  • Download an old release from https://github.com/fl4p/batmon-ha/tags
  • Extract the contents of the ZIP file into Home Assistant's /addons/batmon-ha folder (using FTP, Samba Share, etc.).
  • The add-on will appear in the add-on store under "Local Addons" (click 'Check for updates')

@Tesla72PL
Copy link
Author

like this is good? and where exactly should I then look for this add-on in Devices and Services?

image

@Tesla72PL
Copy link
Author

ok, i dont know how but i have it :)
image

@Tesla72PL
Copy link
Author

why is hci1 when i setting hci0?
image

image

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
10:38:05 INFO [bt] BT Discovery:
10:38:10 INFO [bt]  - no devices found - 
10:38:10 INFO [main] Verbose logging enabled
10:38:10 INFO [main] connecting mqtt @core-mosquitto
10:38:10 DEBUG [client] Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b''
10:38:10 DEBUG [client] Received CONNACK (0, 5)
10:38:10 INFO [main] Fetching 1 BMS + 0 others serially, period=1.00s, keep_alive=False
10:38:10 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
10:38:10 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3
10:38:10 INFO [main] mqtt watchdog loop started with timeout 900.0s
10:38:10 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:38:11 DEBUG [client] Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b''
10:38:11 DEBUG [client] Received CONNACK (0, 5)
10:38:13 DEBUG [client] Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b''
10:38:13 DEBUG [client] Received CONNACK (0, 5)
10:38:14 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
10:38:14 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
10:38:14 DEBUG [bt] starting scan
10:38:14 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:38:14 DEBUG [client] Disconnecting (None)
10:38:14 DEBUG [client] already disconnected (None)
10:38:14 DEBUG [bt] retry 1 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:14 DEBUG [client] Disconnecting (None)
10:38:14 DEBUG [client] already disconnected (None)
10:38:14 DEBUG [bt] retry 2 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:15 DEBUG [client] Disconnecting (None)
10:38:15 DEBUG [client] already disconnected (None)
10:38:15 DEBUG [bt] retry 3 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:15 DEBUG [client] Disconnecting (None)
10:38:15 DEBUG [client] already disconnected (None)
10:38:15 DEBUG [bt] retry 4 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:16 DEBUG [client] Disconnecting (None)
10:38:16 DEBUG [client] already disconnected (None)
10:38:16 DEBUG [bt] retry 5 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:17 DEBUG [client] Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b''
10:38:17 DEBUG [client] Received CONNACK (0, 5)
10:38:18 DEBUG [client] Disconnecting (None)
10:38:18 DEBUG [client] already disconnected (None)
10:38:18 DEBUG [bt] retry 6 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:20 DEBUG [client] Disconnecting (None)
10:38:20 DEBUG [client] already disconnected (None)
10:38:20 DEBUG [bt] retry 7 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:24 DEBUG [client] Disconnecting (None)
10:38:24 DEBUG [client] already disconnected (None)
10:38:24 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
10:38:24 ERROR [sampling] battery1 error: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:24 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
10:38:24 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3
10:38:24 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:38:25 DEBUG [client] Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b''
10:38:25 DEBUG [client] Received CONNACK (0, 5)
10:38:28 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
10:38:28 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
10:38:28 DEBUG [bt] starting scan
10:38:28 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:38:28 DEBUG [client] Disconnecting (None)
10:38:28 DEBUG [client] already disconnected (None)
10:38:28 DEBUG [bt] retry 1 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:28 DEBUG [client] Disconnecting (None)
10:38:28 DEBUG [client] already disconnected (None)
10:38:28 DEBUG [bt] retry 2 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:28 DEBUG [client] Disconnecting (None)
10:38:28 DEBUG [client] already disconnected (None)
10:38:28 DEBUG [bt] retry 3 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:29 DEBUG [client] Disconnecting (None)
10:38:29 DEBUG [client] already disconnected (None)
10:38:29 DEBUG [bt] retry 4 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:30 DEBUG [client] Disconnecting (None)
10:38:30 DEBUG [client] already disconnected (None)
10:38:30 DEBUG [bt] retry 5 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:32 DEBUG [client] Disconnecting (None)
10:38:32 DEBUG [client] already disconnected (None)
10:38:32 DEBUG [bt] retry 6 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:34 DEBUG [client] Disconnecting (None)
10:38:34 DEBUG [client] already disconnected (None)
10:38:34 DEBUG [bt] retry 7 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:38 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
10:38:38 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3
10:38:38 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:38:41 DEBUG [client] Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b''
10:38:41 DEBUG [client] Received CONNACK (0, 5)
10:38:42 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
10:38:42 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
10:38:42 DEBUG [bt] starting scan
10:38:42 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:38:42 DEBUG [client] Disconnecting (None)
10:38:42 DEBUG [client] already disconnected (None)
10:38:42 DEBUG [bt] retry 1 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:43 DEBUG [client] Disconnecting (None)
10:38:43 DEBUG [client] already disconnected (None)
10:38:43 DEBUG [bt] retry 2 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:43 DEBUG [client] Disconnecting (None)
10:38:43 DEBUG [client] already disconnected (None)
10:38:43 DEBUG [bt] retry 3 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:44 DEBUG [client] Disconnecting (None)
10:38:44 DEBUG [client] already disconnected (None)
10:38:44 DEBUG [bt] retry 4 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:45 DEBUG [client] Disconnecting (None)
10:38:45 DEBUG [client] already disconnected (None)
10:38:45 DEBUG [bt] retry 5 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:46 DEBUG [client] Disconnecting (None)
10:38:46 DEBUG [client] already disconnected (None)
10:38:46 DEBUG [bt] retry 6 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:49 DEBUG [client] Disconnecting (None)
10:38:49 DEBUG [client] already disconnected (None)
10:38:49 DEBUG [bt] retry 7 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:52 DEBUG [client] Disconnecting (None)
10:38:52 DEBUG [client] already disconnected (None)
10:38:52 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
10:38:52 ERROR [sampling] battery1 error: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:52 ERROR [main] 1 exceptions occurred fetching BMSs
10:38:52 ERROR [main] Error (num 2, max 200) reading BMS: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:52 ERROR [main] Stack: Traceback (most recent call last):
  File "/app/bmslib/jikong.py", line 119, in connect
    await super().connect(timeout=4)
  File "/app/bmslib/bt.py", line 104, in connect
    await self._connect_client(timeout=timeout)
  File "/app/bmslib/bt.py", line 72, 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 135, in connect
    raise BleakDeviceNotFoundError(
bleak.exc.BleakDeviceNotFoundError: Device with address C8:47:8C:EC:BE:E3 was not found.
During handling of the above exception, another exception occurred:
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 198, in __aenter__
    await self.connect()
  File "/app/bmslib/jikong.py", line 122, in connect
    await self._connect_with_scanner(timeout=timeout)
  File "/app/bmslib/bt.py", line 124, in _connect_with_scanner
    raise Exception('Device %s not discovered. Make sure it in range and is not being controled by '
Exception: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:53 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
10:38:53 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3
10:38:53 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:38:57 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
10:38:57 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
10:38:57 DEBUG [bt] starting scan
10:38:57 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:38:57 DEBUG [client] Disconnecting (None)
10:38:57 DEBUG [client] already disconnected (None)
10:38:57 DEBUG [bt] retry 1 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:57 DEBUG [client] Disconnecting (None)
10:38:57 DEBUG [client] already disconnected (None)
10:38:57 DEBUG [bt] retry 2 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:58 DEBUG [client] Disconnecting (None)
10:38:58 DEBUG [client] already disconnected (None)
10:38:58 DEBUG [bt] retry 3 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:38:58 DEBUG [client] Disconnecting (None)
10:38:58 DEBUG [client] already disconnected (None)
10:38:59 DEBUG [bt] retry 4 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:00 DEBUG [client] Disconnecting (None)
10:39:00 DEBUG [client] already disconnected (None)
10:39:00 DEBUG [bt] retry 5 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:01 DEBUG [client] Disconnecting (None)
10:39:01 DEBUG [client] already disconnected (None)
10:39:01 DEBUG [bt] retry 6 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:03 DEBUG [client] Disconnecting (None)
10:39:03 DEBUG [client] already disconnected (None)
10:39:03 DEBUG [bt] retry 7 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:08 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
10:39:08 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3
10:39:08 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:39:12 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
10:39:12 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
10:39:12 DEBUG [bt] starting scan
10:39:12 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:39:12 DEBUG [client] Disconnecting (None)
10:39:12 DEBUG [client] already disconnected (None)
10:39:12 DEBUG [bt] retry 1 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:12 DEBUG [client] Disconnecting (None)
10:39:12 DEBUG [client] already disconnected (None)
10:39:12 DEBUG [bt] retry 2 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:13 DEBUG [client] Disconnecting (None)
10:39:13 DEBUG [client] already disconnected (None)
10:39:13 DEBUG [bt] retry 3 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:13 DEBUG [client] Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b''
10:39:13 DEBUG [client] Received CONNACK (0, 5)
10:39:13 DEBUG [client] Disconnecting (None)
10:39:13 DEBUG [client] already disconnected (None)
10:39:13 DEBUG [bt] retry 4 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:14 DEBUG [client] Disconnecting (None)
10:39:14 DEBUG [client] already disconnected (None)
10:39:14 DEBUG [bt] retry 5 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:16 DEBUG [client] Disconnecting (None)
10:39:16 DEBUG [client] already disconnected (None)
10:39:16 DEBUG [bt] retry 6 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:18 DEBUG [client] Disconnecting (None)
10:39:18 DEBUG [client] already disconnected (None)
10:39:18 DEBUG [bt] retry 7 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:21 DEBUG [client] Disconnecting (None)
10:39:21 DEBUG [client] already disconnected (None)
10:39:21 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
10:39:21 ERROR [sampling] battery1 error: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:21 ERROR [main] 1 exceptions occurred fetching BMSs
10:39:21 ERROR [main] Error (num 4, max 200) reading BMS: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:21 ERROR [main] Stack: Traceback (most recent call last):
  File "/app/bmslib/jikong.py", line 119, in connect
    await super().connect(timeout=4)
  File "/app/bmslib/bt.py", line 104, in connect
    await self._connect_client(timeout=timeout)
  File "/app/bmslib/bt.py", line 72, 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 135, in connect
    raise BleakDeviceNotFoundError(
bleak.exc.BleakDeviceNotFoundError: Device with address C8:47:8C:EC:BE:E3 was not found.
During handling of the above exception, another exception occurred:
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 198, in __aenter__
    await self.connect()
  File "/app/bmslib/jikong.py", line 122, in connect
    await self._connect_with_scanner(timeout=timeout)
  File "/app/bmslib/bt.py", line 124, in _connect_with_scanner
    raise Exception('Device %s not discovered. Make sure it in range and is not being controled by '
Exception: Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:22 INFO [sampling] connecting bms JKBt(C8:47:8C:EC:BE:E3)
10:39:22 DEBUG [client] Connecting to device @ C8:47:8C:EC:BE:E3
10:39:22 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:39:26 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', False)>}, []]
10:39:26 INFO [jikong] normal connect failed (Device with address C8:47:8C:EC:BE:E3 was not found.), connecting with scanner
10:39:26 DEBUG [bt] starting scan
10:39:27 DEBUG [client] Disconnecting (None)
10:39:27 DEBUG [client] already disconnected (None)
10:39:27 DEBUG [bt] retry 1 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:27 DEBUG [manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1): ['org.bluez.Adapter1', {'Discovering': <dbus_fast.signature.Variant ('b', True)>}, []]
10:39:27 DEBUG [client] Disconnecting (None)
10:39:27 DEBUG [client] already disconnected (None)
10:39:27 DEBUG [bt] retry 2 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:27 DEBUG [client] Disconnecting (None)
10:39:27 DEBUG [client] already disconnected (None)
10:39:27 DEBUG [bt] retry 3 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:28 DEBUG [client] Disconnecting (None)
10:39:28 DEBUG [client] already disconnected (None)
10:39:28 DEBUG [bt] retry 4 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:29 DEBUG [client] Disconnecting (None)
10:39:29 DEBUG [client] already disconnected (None)
10:39:29 DEBUG [bt] retry 5 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:30 DEBUG [client] Disconnecting (None)
10:39:30 DEBUG [client] already disconnected (None)
10:39:30 DEBUG [bt] retry 6 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())
10:39:33 DEBUG [client] Disconnecting (None)
10:39:33 DEBUG [client] already disconnected (None)
10:39:33 DEBUG [bt] retry 7 after error Device C8:47:8C:EC:BE:E3 not discovered. Make sure it in range and is not being controled by another application. (set())

@Tesla72PL
Copy link
Author

ok, I have to go to a wedding, so I will deal with this topic further on Monday ;)

@fl4p
Copy link
Owner

fl4p commented Apr 26, 2023

why is hci1 when i setting hci0?

this appears to be a bug, I pushed a fix here

@Tesla72PL
Copy link
Author

Ok working - thank you 😊👍🏼

Screenshot_2023-04-27-14-49-43-68_c3a231c25ed346e59462e84656a70e50

@fl4p fl4p closed this as completed Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants