Android USB host serial driver library for CDC, FTDI, Arduino and other devices.
This is a driver library for communication with Arduinos and other USB serial hardware on Android, using the Android USB Host API available on Android 3.1+.
No root access, ADK, or special kernel drivers are required; all drivers are implemented in Java. You get a raw serial port with read(), write(), and other basic functions for use with your own protocols.
Serial-To-USB-ANDROID is an implementation of Serial to USB driver using the Android USB Host API.
REQUIREMENTS
--------------------------------------------------------------------------------------------
- ANDROID USB Host API (Android 3.1 or upper)
- no need to root the device
--------------------------------------------------------------------------------------------
USB Serial Driver for Android
This Android library enables you to send and receive messages from USB devices with a serial interface. UsbSerialDriver-master.zip(54.7 KB, 下载次数: 6)
2016-9-28 13:40 上传
点击文件名下载附件
Host模式有个致命的缺点:不能一边工作一边充电(有少数手机可以,但是也不稳定),那么可以选择使用 AOA <android open accessory> 模式
或者如果你的平板不支持OTG,只能设备,也可以选择使用 android open accessory 模式。
此时 STM32作为主机,平板作为设备, 使用 AOA 协议, 平板可以参考
android-open-accessory-bridge
A USB communication bridge using Android Open Accessory Protocol.
Andorid USB Host and Accessory
Capture_0253.jpg (58.41 KB, 下载次数: 0)
下载附件
2016-9-28 10:24 上传
如果你的平板支持OTG,能够作为主机,那么STM32作为设备,可以实现一个CDC,平板可以参考
usb-serial-for-android
https://github.com/mik3y/usb-serial-for-android
Android USB host serial driver library for CDC, FTDI, Arduino and other devices.
This is a driver library for communication with Arduinos and other USB serial hardware on Android, using the Android USB Host API available on Android 3.1+.
No root access, ADK, or special kernel drivers are required; all drivers are implemented in Java. You get a raw serial port with read(), write(), and other basic functions for use with your own protocols.
UsbSerial
Usb serial controller for Android.
Serial-to-USB-ANDROID
Serial-To-USB-ANDROID is an implementation of Serial to USB driver using the Android USB Host API.
REQUIREMENTS
--------------------------------------------------------------------------------------------
- ANDROID USB Host API (Android 3.1 or upper)
- no need to root the device
--------------------------------------------------------------------------------------------
USB Serial Driver for Android
This Android library enables you to send and receive messages from USB devices with a serial interface.
Host模式有个致命的缺点:不能一边工作一边充电(有少数手机可以,但是也不稳定),那么可以选择使用 AOA <android open accessory> 模式
或者如果你的平板不支持OTG,只能设备,也可以选择使用 android open accessory 模式。
此时 STM32作为主机,平板作为设备, 使用 AOA 协议, 平板可以参考
android-open-accessory-bridge
A USB communication bridge using Android Open Accessory Protocol.
或者也可以使用 ADB <Android Debug Bridge>协议,平板可以参考 microbridge-android
Android library implementation for the Microbridge ADB hack
Original author: Niels Brouwers Original repository: https://code.google.com/p/microbridge/
ADB interface runs on devices supporting Android 1.5.
AOA is only supported by some devices, and need Android 2.3.3.
一种实现android移动设备与USB OTG主机通讯的方法
该accessory才能被重新打开。所以,如果如果多次打开USB设备,因为之前该accessory已经被打开过而且无法关闭,会导致失败。当然,现在已经过去一年多的时间了,不知道这个问题现在是否依然存在。不过,如果安卓端不需要频繁的开关USB设备
Accessory模式也是可以使用,至于稳定性尚不清楚。
恩,非常感谢你的资料。
一周热门 更多>