通过无线连接访问 USB 设备
我想要实现的目标是让 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题到底是什么?
您想连接什么类型的设备?
我确信只有 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.