When requirement will come to listen more than one USB / Serial Port in Java, make some changes in Java/jdk/jre/lib/javax.comm.properties file. By default the Application will listen only one port at a time but after make the changes simultaneously it'll listen multiple ports. changes need to be done: open the above mentioned file add the following line in particular section # Paths to server-side serial port devices serpath0 = /dev/ttyS0 #added.... serpath1 = /dev/ttyS1 serpath2 = /dev/ttyACM0 serpath3 = /dev/ttyACM1
share some interview advanced level questions related to some Open source : Linux, Apache, Mysql, Php, Java.
Friday, June 29, 2012
Communicate with Multiple USB / Serial Port
When requirement will come to listen more than one USB / Serial Port in Java, make some changes in Java/jdk/jre/lib/javax.comm.properties file. By default the Application will listen only one port at a time but after make the changes simultaneously it'll listen multiple ports. changes need to be done: open the above mentioned file add the following line in particular section # Paths to server-side serial port devices serpath0 = /dev/ttyS0 #added.... serpath1 = /dev/ttyS1 serpath2 = /dev/ttyACM0 serpath3 = /dev/ttyACM1
Subscribe to:
Posts (Atom)