Android 上有没有办法与 USB 设备通信?

发布于 2024-09-01 16:43:15 字数 133 浏览 14 评论 0原文

我有一个非常简短的问题:是否可以在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

我要还你自由 2024-09-08 16:43:15

首先,您的平板电脑上需要有一个 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.

如果没有你 2024-09-08 16:43:15

是的,有些手机可以充当主机,例如 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

梦境 2024-09-08 16:43:15

是的,它可以工作,并且您不需要为 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."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文