I'm wanting to use Java to control a robot project via an arduino nano, but I'm having problems getting Java to recognise the tty device that the nano is on (/dev/ttyUSB0, works in the arduino IDE)
I'm using the javax.comm package for serial communication,and have the sample program located here: http://www.javaworld.com/jw-09-1998/indepth/SimpleWrite.java as a demonstration of how to write data using the package. However, it seems /dev/ttyUSB0 is not recognised at all, as it I put "System.out.println(portId.getName());" in the while loop, the only output to console is the following:
I know these are the serial ports historically, but this being an eee pc, I dont have any physical serial ports. Is there a way perhaps to link one port to another, so that I could output to ttyS1 and it be sent to ttyUSB0?
Can anybody suggest a better way of doing it? Or a reason why it's not working? Examples would be appreciated!