Go Down

Topic: RxTx 2.1 and Linux doesn't work with Linux (Read 976 times) previous topic - next topic


Found numerous posts of a partial solution on that say add:

     System.setProperty("gnu.io.rxtx.SerialPorts", "/dev/ttyACM0");

Played around with it and discovered that to detect all devices, you actually need something like the following:

     //without this, it only sees the ttyUSB#, with only /dev/ttyACM#, it only sees the ttyACM#, have to list all candidates or it doesn't find them
     System.setProperty("gnu.io.rxtx.SerialPorts", "/dev/ttyACM0:/dev/ttyACM1:/dev/ttyACM2:/dev/ttyUSB0:/dev/ttyUSB1:/dev/ttyUSB2");

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131