I have some devices with Linux embedded and need to program a producer thread...
Thinking of doing it with JME, which library is the best to access serial port on this scenario?
You can use CommConnection from a JME app to read/write data from/to a serial port. http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/io/CommConnection.html
For example
CommConnection cc = (CommConnection) Connector.open("comm:com0;baudrate=19200");
Before calling Connector.open you should check which serial ports are available with
String ports = System.getProperty("microedition.commports");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With