Hi, I’ve successfully extracted the root password, can SSH into the gateway and serialgateway is running.
I’m trying to add the device via ZHA. I can input the socket but I simply get an “Error” (nothing further than that) when trying to create a new radio network formation in the following step.
Here’s debug output where it breaks:
2023-10-09 22:29:01.929 DEBUG (MainThread) [bellows.uart] Data frame: b'232ea1a9062a15b2592a577e'
2023-10-09 22:29:01.930 DEBUG (MainThread) [bellows.uart] Sending: b'83401b7e'
2023-10-09 22:29:01.932 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getConfigurationValue: [<EzspStatus.SUCCESS: 0>, 0]
2023-10-09 22:29:01.933 DEBUG (MainThread) [bellows.ezsp] Setting config CONFIG_APPLICATION_ZDO_FLAGS = 3 (old value 0)
2023-10-09 22:29:01.933 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setConfigurationValue: (<EzspConfigId.CONFIG_APPLICATION_ZDO_FLAGS: 42>, <EmberZdoConfigurationFlags.APP_RECEIVES_SUPPORTED_ZDO_REQUESTS|APP_HANDLES_UNSUPPORTED_ZDO_REQUESTS: 3>)
2023-10-09 22:29:01.934 DEBUG (MainThread) [bellows.uart] Sending: b'332f21a9072a3fb1592b867e'
2023-10-09 22:29:01.981 DEBUG (MainThread) [bellows.uart] Data frame: b'342fa1a9072a152e937e'
2023-10-09 22:29:01.982 DEBUG (MainThread) [bellows.uart] Sending: b'8430fc7e'
2023-10-09 22:29:01.982 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setConfigurationValue: [<EzspStatus.SUCCESS: 0>]
2023-10-09 22:29:01.983 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getConfigurationValue: (<EzspConfigId.CONFIG_PACKET_BUFFER_COUNT: 1>,)
2023-10-09 22:29:01.984 DEBUG (MainThread) [bellows.uart] Sending: b'442c21a9062a1461d37e'
2023-10-09 22:29:02.033 DEBUG (MainThread) [bellows.uart] Data frame: b'452ca1a9062a15f2590a907e'
2023-10-09 22:29:02.034 DEBUG (MainThread) [bellows.uart] Sending: b'8520dd7e'
2023-10-09 22:29:02.036 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getConfigurationValue: [<EzspStatus.SUCCESS: 0>, 64]
2023-10-09 22:29:02.038 DEBUG (MainThread) [bellows.ezsp] Setting config CONFIG_PACKET_BUFFER_COUNT = 255 (old value 64)
2023-10-09 22:29:02.038 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setConfigurationValue: (<EzspConfigId.CONFIG_PACKET_BUFFER_COUNT: 1>, 255)
2023-10-09 22:29:02.039 DEBUG (MainThread) [bellows.uart] Sending: b'552d21a9072a144d5926167e'
2023-10-09 22:29:02.093 DEBUG (MainThread) [bellows.uart] Data frame: b'562da1a9542a1571b47e'
2023-10-09 22:29:02.094 DEBUG (MainThread) [bellows.uart] Sending: b'8610be7e'
2023-10-09 22:29:02.097 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received version: [0, 0, 0]
2023-10-09 22:29:02.097 ERROR (MainThread) [homeassistant] Error doing job: Fatal error: protocol.data_received() call failed.
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 1003, in _read_ready__data_received
self._protocol.data_received(data)
File "/usr/local/lib/python3.11/site-packages/bellows/uart.py", line 81, in data_received
self.frame_received(frame)
File "/usr/local/lib/python3.11/site-packages/bellows/uart.py", line 108, in frame_received
self.data_frame_received(data)
File "/usr/local/lib/python3.11/site-packages/bellows/uart.py", line 129, in data_frame_received
self._application.frame_received(self._randomize(data[1:-3]))
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/__init__.py", line 337, in frame_received
self._protocol(data)
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/protocol.py", line 119, in __call__
assert expected_id == frame_id
^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
2023-10-09 22:29:02.118 DEBUG (MainThread) [bellows.uart] Connection lost: AssertionError()
2023-10-09 22:29:02.120 ERROR (MainThread) [bellows.uart] Lost serial connection: AssertionError()
2023-10-09 22:29:02.120 DEBUG (MainThread) [bellows.ezsp] socket://192.168.2.50:8888 connection lost unexpectedly:
2023-10-09 22:29:02.121 ERROR (MainThread) [bellows.ezsp] NCP entered failed state. Requesting APP controller restart
2023-10-09 22:29:02.121 DEBUG (MainThread) [bellows.zigbee.application] Received _reset_controller_application frame with ('Serial connection loss: AssertionError()',)
2023-10-09 22:29:02.121 DEBUG (MainThread) [bellows.zigbee.application] Resetting ControllerApplication. Cause: 'Serial connection loss: AssertionError()'
I’ve exhausted my options; if anyone has any ideas how to fix this it’d be appreciated. I’ve gone through every other step available on the guide (including updating the radio firmware)- it is simply failing on the last step of creating the radio network.
Output from serialgateway while trying to create the network:
serialgateway Release-1.2: port 8888, serial=/dev/ttyS1, baud=115200, flow=HW
Connect from host 192.168.2.52 fd=5
Closing existing connection
Connect from host 192.168.2.52 fd=5
Closing existing connection
Connect from host 192.168.2.52 fd=5
Closing existing connection
Connect from host 192.168.2.52 fd=5
Closing existing connection
ZHA socket settings 115200 baud, software control. Tried every other combination imaginable.