Hi,
I am trying to write the simple program about com port.
In Java language, I can read from Com Port in java communication.
However, I want to use Android to read from Com Port,is it possible?
In some of the webpage, it does not mention how to read from Com Port
Under Andorid.
In java language, it works
//portList = CommPortIdentifier.getPortIdentifiers();
//serialPort = (SerialPort)portId.open("AAAA", 10000);
//serialPort.setSerialPortParams
(baudRate,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE);
//serialPort.setFlowControlMode
(SerialPort.FLOWCONTROL_NONE);
// in = new BufferedReader(new InputStreamReader
(serialPort.getInputStream()));
How can I do so ? Thx for your help!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en