The device is there in Ubuntu and it is RW for the group dialout.
User openhab which runs OH is in the group dialout and tty
And yes i used the coresponding option in openhabian-config, and checkt the permisions again. Nothing changed on the permission side.
As stated above i don’t even get /dev/ttyACM0 in the dropdown menu of the config section for the zwave-binding in paper-ui, or HABmin.
That is why i think JAVA can’t see the /dev/ttyACM0 from Ubuntu.
Even with
set.
I know my way around a Computer/Configs/a little programming, but i’m no linux java guru
I don’t know where next/else to look
I too am having this same problem. I have checked permissions for the ports, ensured openhab is in the tty and dialout groups, and checked /etc/default/openhab2 Java OPTs. Everything is according to the advice of the experts. OH2.2 simply doesn’t work on my RPI3. I’ll be keeping an eye out for OH2.2.1, hopefully it will solve this problem. Until then I will stick with v2.1
Did you try a restart of the system, I had similar issues (although not with the error message you saw) which where only solved after making all the changes you posted above AND doing a reboot.
Yes, I restarted OH, then when that didn’t work I rebooted the Pi. I have made a new, pristine SD card using the Openhabian 1.4 image. Tomorrow I will use that and see if it works.
I have spent the past few days doing a clean install of openhab2.2/openhabian1.4.
At first it went well. I installed the Zwave binding and configured the Things. Then I rewrote my config files using the new channel info.
The next step was the Mysensors binding. That took a couple of days. I had to enable the mysensors-serial-port through the karaf console, then install a jar file with the latest MySensors binding.
That went successful up until I rebooted the system. After a reboot the Zwave binding and the network binding disappeared. Completely gone. I had to reinstall them. When I did the Zwave serial port was once again not there. I couldn’t type in a serial port in the configuration window. It just gave me a dropdown list of /dev/ttyUSB0. If I unplugged the MySensors gateway and rebooted then I could manually enter a serial port (/dev/ttyACM0) but the system still insisted it didn’t exist. The same old problem as before. Basically all the work I had done for the past 3 days was gone.
When i think of it, I have not rebooted the system since i added the USB0 (LG TV binding)
I removed the USB to rs232 + the LG serial binding and rebooted. NOW ACM0 is back again inside OH and the Z-wave works again…
Could you try this as well Kchest?
Anyone know why this is happening?
Re added the LG Serial binding. every thing works.
Restarted OH and when it was back up online the ACM0 was gone again…
There must be a bug inside Nrjavaserial?
I’m not using ZWAVE, however while using the Intertechno binding in conjunction with a serial device at ttyACMO I do not see such behaviour after a restart!
I also did some further testing.
I can confirm kchest.
Scenario 1:
Reboot of the system only Zwave pluged in:
/dev/ttyACM0 is in ubuntu /dev; In Paperui the config section of the binding has only an empty textfield, where you can type in /dev/ttyACM0. Save the settings and the OH log complains /dev/ttyACM0 does not exist even it is there in ubuntu.
Zwave Controller offline
No change after another reboot of the system.
Scenario 2:
Reboot of the system Zwave and MySensors-Serial-Gateway(Arduino pluged in via USB) pluged in:
/dev/ttyACM0 is in ubuntu /dev (Zwave) additionally there is an /dev/ttyUSB0 (the MySensorsgateway).
Now the config section of the binding has no textfiel at all, only a dropdown-menue with /dev/ttyUSB0 (see my pictures in the first post). if i dont save the settings OH log still complains /dev/ttyACM0 does not exist. Saving the settings with /dev/ttyUSB0 brings the in user error. Sure, ttyUSB0 is the mysensors getway and in use from the mysensors-binding.
Still reboot of the system inbetween every step, or not at all brings no difference.
Zwave Controller offline
Having no dropdown-menue in the Zwavebinding when the Zwave stick ist pluged in allone, strengthens my belive Java/OH2 isn’t getting the /dev/ttyACM0 form the OS (Ubuntu). And so i’am allowed to type what ever i want.
With both pluged in, Java recognices the MySensors-gateway on USB0 only and so the Binding finds a serialdevice and presents me with the dropdown of all found serial devices. In my case only /dev/ttyUSB0.
Is there any more information/merrit to this:
???
As stated before the OS Ubuntu finds them correct (one pluged in it shows one, the ohter pluged in it showes the other, both pluged in, it shows both). But it seams only the /dev/ttyUSB0 is found by Java.
And also stated before in OH 2.1.x both worked perfectly
FWIW, you can configure the port to use using text files only, see binding docs.
Upgrading might have removed or changed that file.
Check if java knows about serial device (do a ps and see if -Dgnu.io.rxtx.SerialPorts=… contains /dev/ttyACM0).
It’s usually injected by setting EXTRA_JAVA_OPTS= in /etc/default/openhab2, but I don’t know if that applies to your Ubuntu setup as well.
BTW, are you sure it’s /dev/ttyACM0 ?
For my RaZberry board (which is more or less the same as the ZME USB stick), it’s /dev/ttyAMA0.
That was my thought too. From looking for further answers to my problem i was searching here in the forum.
I found a lot of /dev/ttyXYZ does not exist or behaving strangely on PINE64 installations etc.
64bit did come up often around those problems.
I used my standard Ubuntu-Server stick for installation, and it is a 64bit Ubuntu.
So i did a fresh install with Ubuntu 16.04 LTS i386. Clean new openhabian install and startet to add my main bindings, copying my backup config back etc.
I added the two main players (mysensors-binding and usb/serial gateway, and zwave binding and usb/serial stick) first.
Everything seamed to work at first. 3 or 4 additional bindings/copying configs back later, the same problem on the i386 Ubuntu again. sudo sytemctl start openhab2.service and the log says /dev/ttyAMC0 does not exist. Multiple restarts of openhab2 or system reboots did not help, but…
I found a workaround for my problem:
When i remove the mysensors binding via the karaf-console and restart openhab2.service the zwave bindig loads fine, finds /dev/ttyACM0 and all is well. i just have to add the mysensor-bindig manually at runtime, and both work fine.
Linux and Java are not my field of expertise, so i’m not able to investigate further, who is to blame the mysensorsbindig, the zwavebinding, the nrjavaserial, or openhab2 itself.
I can life with that workaround, and hope it sorts itself out with OH2.2.1 or what ever comes next.
Oh big problems. As far as I can see Razberry does not even work in Debian Stretch, @ThomDietrich is it possible to install latest oh in jessie? Guess it would be in a manual install.
I have the same problem since a reboot last week, I have described it in the post below, I have only one USB dongle, an Aeotec gen 5. I ran 2.2.0-amd64-debian in docker on ubuntu 17.10 before and after reboot, I only made a container update.