| Author |
I have a serial-to-usb adapter, how do I read it from Android?
|
Jane Jukowsky
Ranch Hand
Joined: Mar 28, 2009
Posts: 145
|
|
On Windows, you can read a serial port as if it was a file name:
new File("COM1:")
Very simple really. Can the same be done on Android? If not, how does one read from a serial port connected to a USB drive via an RS232 to USB adapter? I googled till I was blue in the face, maybe I am googling for the wrong thing.
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14480
|
|
|
You can probably access the underlying Linux device, which is typically something like "/dev/ttyS0", although USB serial devices sometimes have their own naming conventions. I'm having another moment of senility, but I think it's "/dev/ttyUSB0", for example.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: I have a serial-to-usb adapter, how do I read it from Android?
|
|
|