I found several threads speacking about this subject, but after read them I don't have a clear idea about my problem.
We have a external device (something like a tomtom device, I mean, not an accessory) and we want to connect this device to an android device. And we want to have serial communication between the external device and the android device using a USB connection. (At this time we have communication between the external device and other non android devices using RS232 interface, but the external device can handle the communication using a usb cable)
As I read, we have USB API support since 3.1.
Can we develop an android application which communicates with our external device using USB cable? I mean, sending data to the device and receiving data from the device, both ways, we want to use the Android device as a "display".
Thank you very much in advance.
When you connect USB the first time (with already installed app), system call permission dialog. Then another time at start app usb will get permission automatically.
To change USB preferencesDrag down the status bar, and then tap Android System next to (USB icon). Tap Tap for more options, and then select an option.
USB accessory mode allows users to connect USB host hardware specifically designed for Android-powered devices. The accessories must adhere to the Android accessory protocol outlined in the Android Accessory Development Kit documentation.
I'm basically doing the same you are describing. I'm still at the early stages but I've managed such communication under some constraints:
I hope this helps. As I've said, I'm starting to work in this ecosystem and I still have to find my way around many "places".
Cheers, Asier.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With