I have a problem with serial ports, i have one device already working that is the dsmr bridge for my smartmeter. This device is connected on USB0.
After that i tried installing and running both the RFlink and Mysensors bindings but somehow i cannot get those to work. I did put the extra java opts for these ports but still i get the following error for RFlinkserialconnector
Could not find COM port /dev/ttyUSB1
For the mysensorsserialconnector i get the same error but then on the USB2 port. I also installed nrjavaserial through the console.
I’m running the latest stable version of openhabian.
What am i missing or doing wrong.
Then i get the following,
crw-rw---- 1 root dialout 188, 0 Mar 7 19:46 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Mar 7 19:47 /dev/ttyUSB1
I now have disconnected one device so thats why you only see these two
All of those devices use the cdc_acm driver and appear as /dev/ttyACM? on my system. Since all of your serial USB devices appear at /dev/USB?, I have to think some odd driver is being used for your USB devices. That driver may not be recognized by nrjavaserial as being a serial device.
I do see that you reported that /dev/USB0 is working, if the driver it uses is the same for your other USB serial devices, then I am at a loss to explain what the problem may be.
Is it a different driver from that used for the /dev/ttyUSB* devices that are working, i.e., not ch341? If so, I think that may be the problem. I had a similar problem on my test system that runs CentOS 7 that hosts a docker OH2 container. I don’t recall the exact kernel module that was loaded for one of the two USB serial devices I have plugged into that system, but the java serial driver did not recognize one of those two devices as a serial device. Unfortunately I don’t recall the exact fix I applied, but I changed the driver used by udev and that fixed the issue for me.
I will try to recover my corrective action and let you know in more detail exactly how I fixed the problem.
i think i have the rflink online now, i started all over again write the image to the sd card and so on.
I think it had to do with adding Root to dialout and tty group. Only thing i have now is that the mysensors gateway doesn’t get an usb port assigned and is getting a printer driver assigned