-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
[nrjavaserial] Multiple versions #750
Comments
You are right, there is a "bug".
The feature "openhab-transport-serial" of the "openhab-core" feature repo should not depend on nrjavaserial directly but use the feature "openhab.tp-serial-rxtx" of the "openhab-tp" feature repo. There should be a hard requirement for "openhab.tp;feature=serial" and an optional dependency for the "rxtx" one if no other one is already provided. |
Why is there "openhab-core-io-transport-serial" and "openhab-transport-serial"? |
vs.
|
I was actually wiating for a response to ask the same question! I missed the conversations about what to do with serial when ESH was reintegrated. There is some discussion in the forum about a serial issue with the zwave binding, after this move, where the serial is not starting with OH but starts after the binding is restarted. |
IMHO: The openhab-core-io-transport features provide the specific bundle itself and that dependencies. The "old" openHAB feature do not following the split between targetplatform and openHAB part as done before and in the migrated ones.
|
Seem to happen for other dependencies too:
|
Hallo, I have found that if nrjavaserial 3.14.0 is present and selected, finding USB serial ports on Windows10 does not work, see: #370. |
@kaikreuzer What's the difference between the openHAB nrjavaserial release and the upstream one? |
@maggu2810 This was built by @wborn, for details see https://github.com/wborn/nrjavaserial-builder/releases/tag/3.15.0.OH2. |
So, it seems the difference is the usage of "liblockdev".
@wborn Can you give me some insides? |
The liblockdev library doesn't work properly with newer Linux distributions. As a result it doesn't properly unlock serial ports so openHAB can no longer use them. You'll run into it whenever you restart openHAB in the Docker container (Debian 9). IIRC liblockdev has also been removed from the current Debian based distros. See:
The release we use also adds arm64 support which isn't available in any official nrjavaserial release. Using openHAB with a 64-bit JVM is sometimes the only option (e.g. on arm64 based Synology NAS-es, see community). |
No change to get it upstream (arm64 support and the liblockdev removal)? |
The PR for adding arm64 support was merged upstream (NeuronRobotics/nrjavaserial#134) but there hasn't been an official release since it was merged. I didn't have time for looking into a structural solution for the liblockdev issue yet. |
* add nrjavaserial without liblockdev * use only one feature for a nrjavaserial implementation Fixes: #750 Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
* add nrjavaserial without liblockdev * use only one feature for a nrjavaserial implementation Fixes: openhab#750 Signed-off-by: Markus Rathgeb <maggu2810@gmail.com> GitOrigin-RevId: d2c7db6
This is more of a question than an issue (maybe). Could someone please explain why there are multiple versions in use? It looks like there are at least two...
https://github.com/openhab/openhab-core/search?q=nrjavaserial
The text was updated successfully, but these errors were encountered: