goinni / android-serialport-api

Automatically exported from code.google.com/p/android-serialport-api
0 stars 0 forks source link

Read data with non-blocking I/O #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I read data on thread, I want to put data in an byte array.
How can i read data come to serial port with FileInputStream and store in an 
array with non-blocking I/O?

Original issue reported on code.google.com by tua...@lumivietnam.com on 20 Nov 2012 at 1:46

GoogleCodeExporter commented 9 years ago
You could use android-serialport-api just to configure the port (baudrate, no 
parity, 8 bits per character, 1 stop bit), and then directly open the 
"/dev/..." with a FileInputStream. Not sure if it will be non-blocking though.

Original comment by cedric.p...@gmail.com on 20 Feb 2013 at 5:37