The java program works and can find one of the two Arduino's. However I'm having issues with the second Arduino'.
First I tried to figure out the ports of the Arduino's. I found out that /dev/ttyUSB0 works for one of the Arduino's. However there doesn't seem to be a /dev/ttyUSB1 or any other port for the other Arduino. I tried /dev/ttyACM0 but that doesn't work.
Here is the output from dmesg after plugging in the non working Arduino:
Here is the output of lsusb:[ 795.793920] usb 1-1.4: USB disconnect, device number 6
[ 802.688258] usb 1-1.5: new full-speed USB device number 7 using dwc_otg
[ 802.802140] usb 1-1.5: New USB device found, idVendor=2341, idProduct=0043
[ 802.802159] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 802.802173] usb 1-1.5: Manufacturer: Arduino (www.arduino.cc)
[ 802.802185] usb 1-1.5: SerialNumber: 95335343036351A001B0
[ 802.803473] cdc_acm 1-1.5:1.0: ttyACM0: USB ACM device
The same setup works fine on a regular laptop btw. So I know both Arduino's are fine.Bus 001 Device 007: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 004: ID 8888:6666
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub