Android 姜饼或冰淇淋三明治中的 USB 通信设备类支持
从 Android 3.1 开始,Android 设备的主机支持有限。我已审查过 android.hardware.usb,我发现对 USB CDC 支持的参考非常有限。我有一个自供电外围 USB 设备,它使用 USB CDC 串行进行通信。我想将它连接到作为主机运行的 Android 手机,并对其进行读取和写入。
我更喜欢使用姜饼进行界面,但也可以使用冰淇淋三明治。我见过使用自定义 ROM 和 root 手机讨论此问题的帖子,但这对我来说不是一个选择。
Android 3.1 或 4.0 支持 USB CDC 串口吗?如果是这样,有什么好的代码示例吗?
谢谢
Starting with Android 3.1, Android devices have limited host support. I have reviewed
android.hardware.usb, and I have found very limited references to USB CDC support. I have a self-powered peripheral USB device, that communicates using USB CDC serial. I would like to connect it to an Android phone operating as a host, and read and write to it.
I would prefer to interface using Gingerbread, but could live with Ice Cream sandwich. I have seen posts that discuss this using custom ROMs, and rooted phones, but that is not an option for me.
Is USB CDC serial supported in Android 3.1 or 4.0? If so, are there any good code examples?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
恐怕你是对的,Android API 没有附带 CDC 的类驱动程序。
看看这两个库:
I am afraid you are right, Android API does not come with a class driver for CDC.
Have a look at these two libraries: