Thanks for the reply! I’m having trouble connecting to the coordinator via zigpy-znp on Mac OS. All installed as expected, and I can access the coordinator’s internal web server at http://192.168.2.155 but when I run an energy scan via port 6638 I’m getting a “socket disconnected” error. Details below in case you have any hints for me. Thanks!
(venv) woolmagnet@Wools-MacBook-Air Downloads % python -m zigpy_znp.tools.energy_scan socket://192.168.2.155:6638
2022-08-10 00:10:10.421 Wools-Air.localdomain __main__ INFO Starting up zigpy-znp
2022-08-10 00:10:10.437 Wools-Air.localdomain zigpy_znp.uart WARNING Lost connection
Traceback (most recent call last):
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/serial/urlhandler/protocol_socket.py", line 171, in read
raise SerialException('socket disconnected')
serial.serialutil.SerialException: socket disconnected
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/serial_asyncio/__init__.py", line 115, in _read_ready
data = self._serial.read(self._max_read_size)
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/serial/urlhandler/protocol_socket.py", line 178, in read
raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: socket disconnected
Traceback (most recent call last):
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/zigpy_znp/api.py", line 652, in _skip_bootloader
result = await responses.get()
File "/opt/homebrew/Cellar/[email protected]/3.10.6/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/queues.py", line 159, in get
await getter
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.10.6/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/homebrew/Cellar/[email protected]/3.10.6/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/zigpy_znp/tools/energy_scan.py", line 96, in <module>
asyncio.run(main(sys.argv[1:])) # pragma: no cover
File "/opt/homebrew/Cellar/[email protected]/3.10.6/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/opt/homebrew/Cellar/[email protected]/3.10.6/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/zigpy_znp/tools/energy_scan.py", line 92, in main
await perform_energy_scan(args.serial, num_scans=args.num_scans)
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/zigpy_znp/tools/energy_scan.py", line 22, in perform_energy_scan
await app.connect()
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/zigpy_znp/zigbee/application.py", line 111, in connect
await znp.connect()
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/zigpy_znp/api.py", line 694, in connect
self.capabilities = (await self._skip_bootloader()).Capabilities
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/zigpy_znp/api.py", line 651, in _skip_bootloader
async with async_timeout.timeout(CONNECT_PROBE_TIMEOUT):
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/Users/woolmagnet/Downloads/venv/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError