Hi,

To communicate via your USB to serial interface, use Android drivers
supplied by the manufacturer. The main USB to serial interfaces to support
are Prolific and FTDI. If you Google those two, you can find the Android
driver library for each, which you'd include in your project.

I have an Android application which supports these two manufacturers' USB
to serial interfaces using their respective drivers, and in the several
years the application has been in development, I very rarely come across a
user whose device isn't FTDI or Prolific.

The Prolific driver is a bit annoying because the latest version
intentionally drops support for older Prolific interfaces; a move they
apparently did to fight counterfeits, but one which caused many of my users
problems. I got around this by using both old and new Prolific drivers in
my application.

I'm aware that there is an Android USB driver project on Github, but I
don't know a great deal about it.

Trev



On Wed, Mar 16, 2016 at 6:34 AM, Sanjyot Kadu <[email protected]>
wrote:

> Hi,
>
> I want to communicate using COM Port present on Mobile with other device.
> The communication should be serial (UART). I will connect the OTG Cable to
> phone and other end of OTG to USB to serial converter.
>
> Is the any API in android development kit? which can use directly to
> access the COM Ports.
>
> i did an experiment using Linux OS , and its possible to communicate using
> linux (linux detects this device as ttyUSB  and using Python API it was
> possible to use the COM PORTS )
>
> please let me know any information on it.
>
> or any other way to do it.
>
> Thanks
> sanjyot
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/3bef6aa7-c497-4bf8-bb06-0fc3d056bf8d%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/3bef6aa7-c497-4bf8-bb06-0fc3d056bf8d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAG8Y82rj%2BaMH32ksEkspR1RmVuhoQR8xRn6UJBpCKO%3DffwsQxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to