Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discovered Serial Ports Need to be Added to Configuration File #1176

Closed
bwosborne2 opened this issue Nov 2, 2019 · 9 comments
Closed

Discovered Serial Ports Need to be Added to Configuration File #1176

bwosborne2 opened this issue Nov 2, 2019 · 9 comments

Comments

@bwosborne2
Copy link

bwosborne2 commented Nov 2, 2019

Possible bug related to #866

Starting with 2.5M2, although the serial ports are discovered, they cannot be used reliably. We see this particularly with the Zigbee binding using an Ember coordinator. It can be reliably reproduced by restarting the Zigbee addon bundles. I have not found any debug logging to provide more error details. Here is what we see in the logs.

19:53:06.321 [ERROR] [nding.zigbee.handler.ZigBeeSerialPort] - Serial Error: Port /dev/ttyUSB1 does not exist.
19:53:06.325 [ERROR] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - Unable to open Ember serial port

A restart of OpenHAB usually gives proper connectivity.

I currently have a test system & USB stick I can use to help troubleshoot. If this is expected behavior, then the openHABian Linux documentation needs to be updated to reference the configuration file change needed.

@wborn
Copy link
Member

wborn commented Nov 2, 2019

The ZigBee binding does not use the OHC RXTX serial transport so it will only use the ports specified in the gnu.io.rxtx.SerialPorts environment variable when it is present.

Ever since the OHC RXTX serial transport was created (eclipse-archived/smarthome#5560) it has been modifying the gnu.io.rxtx.SerialPorts environment variable itself to workaround port discovery issues.

Maybe the @openhab/zigbee-maintainers can migrate the binding to use the OHC serial transport?

@bwosborne2
Copy link
Author

That may help but I know the main maintainer is away for a couple of weeks. The issue apparently cropped up somewhere in the vast changes between M1 & M2. Prior, I found you need to restart OH to be able to select the serial ports, but then they work reliably. M2 & later, the ports appear but have this issue.

@cdjackson
Copy link
Contributor

cdjackson commented Nov 3, 2019 via email

@bwosborne2
Copy link
Author

Thanks Chris. In my experience, the Zwave binding does not seem to exhibit this issue. Is there some difference that could be used to improve the zigbee one without breaking everything?

@bwosborne2
Copy link
Author

I see this is already documented for the Zigbee binding. Sorry for the false issue.

@wborn
Copy link
Member

wborn commented Nov 3, 2019

Yes there may have been some issues with the OHC serial transport initially but AFAIK they have been fixed now. The Z-Wave binding is also still using it.

It's pretty straightforward to switch to the OHC serial transport so I've created openhab/org.openhab.binding.zigbee#513 for this.

@cdjackson
Copy link
Contributor

cdjackson commented Nov 3, 2019 via email

@kaikreuzer
Copy link
Member

What exactly do you mean by "systems not using standard libraries"? What is "at this time" resp. when do you think it should be merged?
Imho, it should be done rather sooner than later as we should not leave it to the last minutes before the 2.5 release...

@cdjackson
Copy link
Contributor

cdjackson commented Nov 4, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants