通过无线连接访问 USB 设备

发布于 2024-12-04 12:31:13 字数 144 浏览 3 评论 0原文

我想要实现的目标是让 USB 设备可以远程访问。接下来,设备将连接到 Android 手机,该手机将通过无线方式联系服务器。我想避免为交易编写完整的处理程序。我的方法希望有点抽象且尽可能简单,我希望将 USB 映射到网络接口上,就像手机实际上充当 USB 可用性的代理一样。

What I want to achieve, is to make a usb device accessible remotely. Next the device will be connected to an android phone which will contact the server through wireless. I would like to avoid writing a complete handler for the transactions. My approach would like to be a bit abstract and as simple as possible I want the usb to be mapped on the network interface, in a way like the phone will actually work as a proxy for the availability of the usb.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

澉约 2024-12-11 12:31:13

你的问题到底是什么?
您想连接什么类型的设备?
我确信只有 android 3.0 可以充当 USB 主机(对此不确定)
如果您可以使用工业设备,他们的操作系统会支持它 http://www.ozdroid.com/#!PRODUCTS< /a>

可能有些模组也可以充当 USB 主机,

这是您想要实现的架构吗?

[计算机]->(互联网/无线局域网)->[Android]->[USB 键盘]

据我所知,没有抽象/简单的方法可以做到这一点,android api 不支持类似的东西。

可能有一些使用linux的解决方案,看看android/debian安装程序(需要root),

如果不是直接内核模块,类似的东西可能至少需要一些本机代码...

如果你为a创建一个代理具体设备(例如键盘),您可以将键盘事件发送到计算机上的 java(或其他)应用程序,但您需要设备上的 USB 主机支持。

And what is your question exactly ?
What kind of devices do you want to connect ?
Ive heart that only android 3.0 can act as usb host ( not sure on this one)
If you can use a industrial device they os supports it http://www.ozdroid.com/#!PRODUCTS

May be some mods can also act as usb hosts

is this the architecture you are trying to achieve ?

[COMPUTER]->(internet/wlan)->[Android]->[USB Keyboard]

There is no abstract/easy way to do this as far as I know the android api does not support anything like that.

May be there are some solutions for this using linux take a look on the android/debian installer ( needs root)

Something like that will probably need at least some native code if not directly a kernel module ...

IF you crate a proxy for a concrete device (for example a keyboard) you could send the keyboard events to a java ( or other) application on the computer but you need usb host support on the device.

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