Question

I would like to transfer data from a USB Host (of my Laptop or Android Device) to Serial COM port (of a Desktop PC) through a USB - Serial port(DB-9) adapter.

Is there any library existed to do this task??

i have already studied and tried http://developer.android.com/guide/topics/connectivity/usb/host.html but failed.

Can i send data by a using a java program or Android App from my Laptop or Android Device ??

Can i receive data by an app in Desktop PC and show us????

If so please guide me how.

Was it helpful?

Solution

Yes, this is possible, the implementation will depend on what device you pick.

Check out the usb-serial-for-android project for the communication from Android to the USB device. This has support for most major USB to UART Bridge devices such as a Silicon Labs, Prolific, FTDI and CDC Class devices.

You can talk to it as a serial device from your laptop computer using normal serial communications such as POSIX method for Linux or OSX or the Commuincations API for Windows.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top