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
{{ message }}
Repository navigation
--dev flag regression past 2.05.77 for deCONZ #5006
deCONZ no longer connects to the raspbee.
I'd like to update my deCONZ package due to the age of the package for new features and security reasons.
Steps to reproduce the behavior
Any deCONZ version above 2.05.77 fails to connect to the device over an SSH tunnelled virtual serial device
Expected behavior
No regression from 2.05.78 onward.
Screenshots
Environment
deCONZ/Phoscon versions as per above
Host system: x86 VM
Running method: Rpi 0W with a RaspBee II (I also have a RaspBee that I can test with as well)
Firmware version: 26690700
deCONZ version: 2.05.77 tested on 2.11.05-debian-buster-stable and 2.12.00-ubuntu-xenial-beta
Device: RaspBee I/RaspBee II
Do you use an USB extension cable: No
Is there any other USB or serial devices connected to the host system? If so: Which? No
deCONZ Logs
2.05.77 has: 15:52:21:724 COM: --dev: /home/redm/ttyAMA0 (RaspBee)
Where as any version onward does not have this line.
I am running deCONZ via /usr/bin/deCONZ --dev=/home/redm/ttyAMA0 --upnp=0 on any version I test.
Additional context
While the serial redirect may seem odd, it worked in the past and was the entire reason I wanted a deCONZ set up.
The reason for doing it this way is that it makes integration with my VM cluster much easier and deCONZ in its entirety is backed up nightly and I don't have to worry about the rpi dying or the SD card in the pi dying.
$ /usr/bin/deCONZ -platform minimal --http-port=8125 --auto-connect=1 --dev=/home/redm/ttyAMA0 --dbg-info=2 | grep COM
libpng warning: iCCP: known incorrect sRGB profile
23:21:38:638 CTRL. 3.27.223:21:38:704 COM: --dev: /home/redm/ttyAMA0 (RaspBee)
23:21:42:556 COM: --dev: /home/redm/ttyAMA0 (RaspBee)
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()
2.11.05
$ /usr/bin/deCONZ -platform minimal --http-port=8125 --auto-connect=1 --dev=/home/redm/ttyAMA0 --dbg-info=2 | grep COM
libpng warning: iCCP: known incorrect sRGB profile
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()
Thanks, I compared the code between these versions, turns out the Qt device enumerator doesn't list this particular path as serial com (regardless of the version) as there would be a different debug print in both versions. https://doc.qt.io/qt-5/qserialportinfo.html#availablePorts
The difference to the old version is that the given path was used anyway if not listed by Qt, I'll try to add this as fallback.
This works!
Sadly though there were too many timeouts (which was causing deconz to disconnect from the raspbee2 and try again after 15 seconds) so I had to switch from my pi0w to a pi3-somthing with an ethernet cable (it doesn't look as nice) but its working now.
I just added the feature to Red-M/RedSSH@895be69 which turned TCP_NODELAY on for the SSH session and the tunnel. Even on ethernet this is way faster than before and the zigbee network is much more responsive than before.
Activity
[-]`--dev` feature regression past 2.05.77[/-][+]`--dev` flag regression past 2.05.77 for `deCONZ`[/+]manup commentedon Jul 2, 2021
Is
/home/redm/ttyAMA0a symlink to another file?I'm asking because the current code already handles
ttyAMA*as long as it's in the system location.Red-M commentedon Jul 2, 2021
its technically a serial device presented via remserial in this case.
manup commentedon Jul 2, 2021
Can you please provide the output of:
ls -l /home/redm/ttyAMA0The early log output of starting deCONZ as follows would also help, there should be some "COM: ..." lines printed.
Red-M commentedon Jul 2, 2021
That COM line never shows up on later versions.
manup commentedon Jul 2, 2021
Sorry my bad wrong debug level, should be 2:
Hm interesting so the real device is
/dev/pts/0.Red-M commentedon Jul 2, 2021
Yeah I know the line you're asking for, it doesn't show up on newer versions.
manup commentedon Jul 2, 2021
Even with debug level 2?
COM: ...should always be printed for all serial com devices which are supported by Qt, there is no filter at this point where it is printed.Red-M commentedon Jul 2, 2021
2.05.77
2.11.05
manup commentedon Jul 2, 2021
Thanks, I compared the code between these versions, turns out the Qt device enumerator doesn't list this particular path as serial com (regardless of the version) as there would be a different debug print in both versions.
https://doc.qt.io/qt-5/qserialportinfo.html#availablePorts
The difference to the old version is that the given path was used anyway if not listed by Qt, I'll try to add this as fallback.
Red-M commentedon Jul 2, 2021
thanks, pts devices are actually for pseudo terminal slave devices so its understandable that Qt might remove them for "real" serial devices.
manup commentedon Jul 6, 2021
A fix (hopefully) is now in the latest alpha version.
http://deconz.dresden-elektronik.de/ubuntu/alpha/deconz-2.12.01-ubuntu-bionic-alpha~git.5e5991.c9b404_amd64.deb
Red-M commentedon Jul 6, 2021
This works!
Sadly though there were too many timeouts (which was causing deconz to disconnect from the raspbee2 and try again after 15 seconds) so I had to switch from my pi0w to a pi3-somthing with an ethernet cable (it doesn't look as nice) but its working now.
manup commentedon Jul 6, 2021
Not sure if it can be configured for the tunnel, but for TCP connections the
TCP_NODELAYoption might help with timeouts.Red-M commentedon Jul 7, 2021
I just added the feature to Red-M/RedSSH@895be69 which turned
TCP_NODELAYon for the SSH session and the tunnel. Even on ethernet this is way faster than before and the zigbee network is much more responsive than before.Red-M commentedon Jul 12, 2021
I've been running this for about a week now without any major issues, so if this will be brought into the next stable, I'd consider this resolved.
manup commentedon Jul 12, 2021
Cool, thanks for the feedback, it will also be part of the upcoming v2.12.2-beta.
manup commentedon Jul 13, 2021
Fixed in https://github.com/dresden-elektronik/deconz-rest-plugin/releases/tag/v2.12.2-beta