Go Down

Topic: RxTx 2.1 and Linux doesn't work with Linux (Read 1 time) 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