deconz-rest-plugin: deCONZ to 2.05.88 failing to recognize Raspbee
Describe the bug
After updating Deconz HomeAssistant Add On from 6.4.1(2.05.84) to 6.5.0 (2.05.88), Deconz fails to recognize the RaspBee, even though the configuration has not changed.
device: /dev/ttyS0
Steps to reproduce the behavior
Upgrading the Hassio AddOn as described above, reproduces the error.
Expected behavior
Deconz will connect to RaspBee and start the Zigbee Network
Screenshots
Environment
- Host system: Raspberry Pi 4
- Running method: Home Assistent deCONZ Add-on
- Firmware version: (26xxyy00)
- deCONZ version: (2.05.88)
- Device: RaspBee I
- Do you use an USB extension cable: no
- Is there any other USB or serial devices connected to the host system? If so: Which? USB SSD (USB 3.0), USB ZWave Device
deCONZ Logs
device state timeout ignored in state 2
Additional context
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 48 (10 by maintainers)
How’s firmware flashing relevant here when reverting to a hassio-deconz-plugin < 6.5.0 (and thus older deconz) makes things work immediately again, without any re-flashing or the like? (yes, I’m affected as well, exactly same symptoms as described by others already)
Hi please let keep it civil here.
For RaspBee there shouldn’t be re-enumeration issues like for example we see for USB devices. I’m not sure what is happening here, or if it is an configuration problem.
On Raspbian we have seen that sometimes after an system update the serial configuration was reverted. In that case the steps to reconfigure it via
raspi-confighelped.Yes it’s part of all the upcoming releases.
Hard to tell I did two tests in my setup to get a more detailed picture.
Update from older firmware version
logindocker exec -it addon_core_deconz bashNote: RaspBee I and ConBee I are more easy to handle as both use a FTDI chip which stays always up, even if the MCU reboots for the firmware update. So I think that the above issue is a different as other common USB re-enumeration issues. Related https://github.com/marthoc/docker-deconz/issues/298
Update when no firmware is installed
This state can be simulated by repeating above step 4) but aborting via Ctrl-C during the update:
Phoscon App shows now “Firmware not connected”.
In VNC deCONZ is also disconnected but shows the “Update Firmware” button. This exectues
But this doesn’t seem to work anymore. I repeated the firmware update with some more logging in the SSH shell.
Even after 10 attempts I always get the same error message
could not sync with bootloader. Notice the communication does work as there are messages received from the bootloader, but there appears to be a timing problem here.Curious about this I switched the same RaspBee I module onto another Raspberry Pi with a native Raspbian.
Here the firmware update went through fine in the first attempt.
So this might indeed be a timing issue, once the RaspBee I is in a state when there is no firmware installed (or a firmware update doesn’t succeed on the first try. Normally GCFFlasher recovers from that automatically due the -t 60 parameter (try for a minute).
I’m not sure if the different timing is caused by the virtualization or simply because my HassOS is under heavier load compared to the plain Pi with nothing really running on it.
The GCFFlasher internal state machine is already very fast, but perhaps the critical phase at
00:47:06:619 bootloader v1 update firmwarecan be tweaked a bit.This should be working now in HA add-on with deCONZ v2.7.1, can anybody using this setup confirm?
Didnt you say the functionality wasn’t broken? So now you do agree that it’s broken?
Wasn’t it my suggestion that you opened a issue on our git with related information on how to fix? Ah yes, I did before but you didn’t want to. You wanted to email.
Don’t worry, you don’t have to do anything. We got this covered. Should be included in next beta. Need you to fix something on your end then. But that’s fine right?
@mkai that’s worked for me thanks!