Sending serial data to Arduino using RXTX Java library -
i have code reads line of serial data arduino. have arduino set send out whatever data reads in, or if there no data read send out "no data". receiving "no data" java console fine, , arduino code works expected when using terminal. cannot java send data arduino, have tried various methods no luck :( ideally serial event method used send data great. (the receive 1 working). any appreciated, code shown below: public class serialcomm implements serialporteventlistener { serialport serialport; /** port we're going use. */ private static final string port_names[] = { "/dev/tty.usbserial-a9007ux1", // mac os x "/dev/ttyacm0", // raspberry pi "/dev/ttyusb0", // linux "com3", // windows }; /** * bufferedreader fed inputstreamreader * converting bytes characters * making displayed results codepage independent */ private bufferedreader input; /** output stream port */ privat...