Android 上有没有办法与 USB 设备通信?
我有一个非常简短的问题:是否可以在 Android 操作系统上通信/使用 USB 设备?我认为它可能是平板设备。
免得说我想将某种 USB 读卡器连接到 Android 平板电脑。它会起作用吗?需要自己写驱动吗?
谢谢。
I have a really short question: Is it possible to communicate/use USB devices on Android OS? I assume it might be tablet device.
Lest say i want to connect some sort of USB card scanner to android tablet. Will it work? Do i need to write drivers by myself?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
首先,您的平板电脑上需要有一个 USB 主机端口。除了 On-the-Go(这是一种特殊设计,可以是主机或设备)之外,不可能将两个 USB 设备连接在一起。这种不兼容性是电气方面的,无论进行多少软件更改都无法使其正常工作。
First, you need a USB host port on your tablet. Except for On-the-Go (which is a special design that can be either host or device), it is not possible to connect two USB devices together. The incompatibility is electrical, no amount of software changes can make it work.
是的,有些手机可以充当主机,例如 DROID。在 Google 上搜索如何将 USB 键盘连接到 Android 手机,例如:http ://www.tombom.co.uk/blog/?p=124
Yes, some phones can work as hosts, like the DROID. Do a Google search for connecting a USB keyboard to an android phone, such as here: http://www.tombom.co.uk/blog/?p=124
是的,它可以工作,并且您不需要为 Android 端编写驱动程序。但是,设备必须支持开放配件协议并且必须能够为Android设备供电。提供开发套件。
但是:“配件模式最终取决于设备的硬件,并非所有设备都支持配件模式。”
Yes, it will work, and you do not need to write drivers for the Android side. However, the device must support the open accessory protocol and must be able to supply power to the Android device. A development kit is available.
However: "Accessory mode is ultimately dependent on the device's hardware and not all devices support accessory mode."