aspose file tools*
The moose likes Android and the fly likes I have a serial-to-usb adapter, how do I read it from Android? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "I have a serial-to-usb adapter, how do I read it from Android?" Watch "I have a serial-to-usb adapter, how do I read it from Android?" New topic
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: 15641
    
  15

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I have a serial-to-usb adapter, how do I read it from Android?
 
Similar Threads
USB Port support?
USB Port support?
USB Port support?
reading barcode from scanner
Controlling a serial device from an Android app using USB connection