• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I have a serial-to-usb adapter, how do I read it from Android?

 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18362
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic