You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can connect to the daly bms with the app. can see it in the list of devices in the log, but it fails on "timeout".
12:57:14 ERROR [bt] Device with address 40:17:12:01:05:53 was not found., starting scanner
12:57:14 INFO [bt] BT Discovery:
12:57:19 INFO [bt] BT DC:23:4F:C0:CF:9C TY
12:57:19 INFO [bt] BT 6F:DF:B2:BC:1D:14 Smart Tag
12:57:19 INFO [bt] BT 41:5B:94:C2:B8:19 41-5B-94-C2-B8-19
12:57:19 INFO [bt] BT D0:D0:03:79:0F:9E D0-D0-03-79-0F-9E
12:57:19 INFO [bt] BT 54:D2:72:38:26:F4 Nuki_333826F4
12:57:19 INFO [bt] BT CA:85:4F:C0:7C:C1 Primo
12:57:19 INFO [bt] BT 6E:70:B9:A5:5B:AA 6E-70-B9-A5-5B-AA
12:57:19 INFO [bt] BT 66:23:67:99:05:CF 66-23-67-99-05-CF
12:57:19 INFO [bt] BT 6C:2F:57:05:44:CF 6C-2F-57-05-44-CF
12:57:19 INFO [bt] BT D0:D0:03:6D:C4:CF [TV] Samsung 7 Series (75)
12:57:19 INFO [bt] BT 54:48:E6:8F:58:45 Qingping Air Monitor Lite
12:57:19 INFO [bt] BT 6F:1D:0F:4D:17:A7 6F-1D-0F-4D-17-A7
12:57:19 INFO [bt] BT 58:B6:23:2E:0F:AA 58-B6-23-2E-0F-AA
12:57:19 INFO [bt] BT C0:18:03:19:84:BB C0-18-03-19-84-BB
12:57:19 INFO [bt] BT 40:17:12:01:05:53 DL-401712010553
12:57:19 INFO [daly] normal connect failed (Device with address 40:17:12:01:05:53 was not found.), connecting with scanner
12:57:29 ERROR [sampling] battery1 error (#1): [org.bluez.Error.InProgress] Operation already in progress
Traceback (most recent call last):
File "/app/bmslib/models/daly.py", line 122, in connect
await super().connect(timeout=timeout)
File "/app/bmslib/bt.py", line 237, in connect
await self._connect_client(timeout=timeout)
File "/app/bmslib/bt.py", line 186, in _connect_client
await asyncio.wait_for(self.client.connect(timeout=timeout), timeout=timeout + 1)
File "/usr/lib/python3.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 531, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 135, in connect
raise BleakDeviceNotFoundError(
bleak.exc.BleakDeviceNotFoundError: Device with address 40:17:12:01:05:53 was not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/bmslib/sampling.py", line 155, in call
s = await self._sample_inner()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bmslib/sampling.py", line 227, in _sample_inner
async with bms:
File "/app/bmslib/bt.py", line 345, in aenter
await self.connect()
File "/app/bmslib/models/daly.py", line 125, in connect
await self._connect_with_scanner(timeout=timeout)
File "/app/bmslib/bt.py", line 273, in _connect_with_scanner
await self._connect_client(timeout=timeout / 2)
File "/app/bmslib/bt.py", line 186, in _connect_client
await asyncio.wait_for(self.client.connect(timeout=timeout), timeout=timeout + 1)
File "/usr/lib/python3.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 531, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 124, in connect
device = await BleakScanner.find_device_by_address(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 310, in find_device_by_address
return await cls.find_device_by_filter(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 369, in find_device_by_filter
async with cls(detection_callback=apply_filter, **kwargs):
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 152, in aenter
await self._backend.start()
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/scanner.py", line 191, in start
self._stop = await manager.active_scan(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/manager.py", line 368, in active_scan
assert_reply(reply)
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/utils.py", line 22, in assert_reply
raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.InProgress] Operation already in progress
12:57:29 INFO [sampling] battery1 bms debug data: {'r': None, 'buf': {}, 'rx': None, 'tx': None}
12:57:29 INFO [sampling] Bleak version 0.20.2
12:57:29 INFO [sampling] connecting bms DalyBt(40:17:12:01:05:53,battery1)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I can connect to the daly bms with the app. can see it in the list of devices in the log, but it fails on "timeout".
12:57:14 ERROR [bt] Device with address 40:17:12:01:05:53 was not found., starting scanner
12:57:14 INFO [bt] BT Discovery:
12:57:19 INFO [bt] BT DC:23:4F:C0:CF:9C TY
12:57:19 INFO [bt] BT 6F:DF:B2:BC:1D:14 Smart Tag
12:57:19 INFO [bt] BT 41:5B:94:C2:B8:19 41-5B-94-C2-B8-19
12:57:19 INFO [bt] BT D0:D0:03:79:0F:9E D0-D0-03-79-0F-9E
12:57:19 INFO [bt] BT 54:D2:72:38:26:F4 Nuki_333826F4
12:57:19 INFO [bt] BT CA:85:4F:C0:7C:C1 Primo
12:57:19 INFO [bt] BT 6E:70:B9:A5:5B:AA 6E-70-B9-A5-5B-AA
12:57:19 INFO [bt] BT 66:23:67:99:05:CF 66-23-67-99-05-CF
12:57:19 INFO [bt] BT 6C:2F:57:05:44:CF 6C-2F-57-05-44-CF
12:57:19 INFO [bt] BT D0:D0:03:6D:C4:CF [TV] Samsung 7 Series (75)
12:57:19 INFO [bt] BT 54:48:E6:8F:58:45 Qingping Air Monitor Lite
12:57:19 INFO [bt] BT 6F:1D:0F:4D:17:A7 6F-1D-0F-4D-17-A7
12:57:19 INFO [bt] BT 58:B6:23:2E:0F:AA 58-B6-23-2E-0F-AA
12:57:19 INFO [bt] BT C0:18:03:19:84:BB C0-18-03-19-84-BB
12:57:19 INFO [bt] BT 40:17:12:01:05:53 DL-401712010553
12:57:19 INFO [daly] normal connect failed (Device with address 40:17:12:01:05:53 was not found.), connecting with scanner
12:57:29 ERROR [sampling] battery1 error (#1): [org.bluez.Error.InProgress] Operation already in progress
Traceback (most recent call last):
File "/app/bmslib/models/daly.py", line 122, in connect
await super().connect(timeout=timeout)
File "/app/bmslib/bt.py", line 237, in connect
await self._connect_client(timeout=timeout)
File "/app/bmslib/bt.py", line 186, in _connect_client
await asyncio.wait_for(self.client.connect(timeout=timeout), timeout=timeout + 1)
File "/usr/lib/python3.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 531, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 135, in connect
raise BleakDeviceNotFoundError(
bleak.exc.BleakDeviceNotFoundError: Device with address 40:17:12:01:05:53 was not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/bmslib/sampling.py", line 155, in call
s = await self._sample_inner()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bmslib/sampling.py", line 227, in _sample_inner
async with bms:
File "/app/bmslib/bt.py", line 345, in aenter
await self.connect()
File "/app/bmslib/models/daly.py", line 125, in connect
await self._connect_with_scanner(timeout=timeout)
File "/app/bmslib/bt.py", line 273, in _connect_with_scanner
await self._connect_client(timeout=timeout / 2)
File "/app/bmslib/bt.py", line 186, in _connect_client
await asyncio.wait_for(self.client.connect(timeout=timeout), timeout=timeout + 1)
File "/usr/lib/python3.11/asyncio/tasks.py", line 489, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 531, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 124, in connect
device = await BleakScanner.find_device_by_address(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 310, in find_device_by_address
return await cls.find_device_by_filter(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 369, in find_device_by_filter
async with cls(detection_callback=apply_filter, **kwargs):
File "/app/venv/lib/python3.11/site-packages/bleak/init.py", line 152, in aenter
await self._backend.start()
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/scanner.py", line 191, in start
self._stop = await manager.active_scan(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/manager.py", line 368, in active_scan
assert_reply(reply)
File "/app/venv/lib/python3.11/site-packages/bleak/backends/bluezdbus/utils.py", line 22, in assert_reply
raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.InProgress] Operation already in progress
12:57:29 INFO [sampling] battery1 bms debug data: {'r': None, 'buf': {}, 'rx': None, 'tx': None}
12:57:29 INFO [sampling] Bleak version 0.20.2
12:57:29 INFO [sampling] connecting bms DalyBt(40:17:12:01:05:53,battery1)
Beta Was this translation helpful? Give feedback.
All reactions