Thanks for the original post here - very helpful. This helped me get my serial ports up and running on my Mac with an M1 processor. I’ve been putting off upgrading from 2.5 for ages now because I couldn’t get the ports to work properly, hopefully this will work going forwards.
Since Openhab 3.4.2 I don’t see the input overruns issuing problems with my serial connections.
dmesg still show them, but Openhab runs smoothly.
Recently I switched to the testing branch of Openhab 4.0.0. With that, I see the serial connections issues again. Was there any change in the
For now I switcht back to 3.4.2 but I’am afraid of the offical release.
I’m using openhab 4.0.3 (still) facing the serial connection issues. Every 1-2 weeks, suddenly no provider for usbtty isn’t found anymore.
Just installed the purejavacomm jar (as described above).
After starting the bundle, I got the message “Unresolved requirement: Import-Package: org.openhab.core.io.transport.serial; version=”[3.0.0,4.0.0)“”.
I checked my installed serial-javacomm package and saw that my installation uses the version 4.0.3.
If I’m understanding the message correctly, the version installed of the package is to new for the bundle.
Has anyone a solution to get the bundle running with OH4?
Did you try the feature:install openhab-transport-serial noted in the second post in this chain?
No, because it is imho already installed.
openhab> feature:list | grep serial openhab-core-io-transport-serial-javacomm │ 4.0.3 │ x │ Started │ distro-4.0.3
Am I wrong?
I’m out of my league with the alternative java, but whenever I get that message, I run the command. I think there are several bundles that are installed with that command, not just one.
Yeah, the provider is bound to 3.x APIs. Because serial APIs in OH are still the same the import range is to restrictive. I’ll bring a new build for both OH versions.
Replying to myself, but there is OH 4.x version available: org.connectorio.addons.io.transport.serial.purejavacomm-4.0.0-20230928.jar.
@Tuny - can you pull it into first post? Installation is same as before, so your procedure still apply.
Thanks, did this.