我发现了几个关于这个主题的帖子,但是在阅读之后我对我的问题没有一个清晰的概念.
I found several threads speacking about this subject, but after read them I don't have a clear idea about my problem.
我们有一个外部设备(类似于 tomtom 设备,我的意思是,不是附件),我们想将此设备连接到 Android 设备.我们希望使用 USB 连接在外部设备和 android 设备之间进行串行通信.(此时外接设备与其他非安卓设备使用RS232接口进行通信,但外接设备可以通过usb线处理)
We have a external device (something like a tomtom device, I mean, not an accessory) and we want to connect this device to an android device. And we want to have serial communication between the external device and the android device using a USB connection. (At this time we have communication between the external device and other non android devices using RS232 interface, but the external device can handle the communication using a usb cable)
据我所知,我们从 3.1 开始就支持 USB API.
As I read, we have USB API support since 3.1.
我们可以开发一个使用 USB 电缆与我们的外部设备通信的 android 应用程序吗?我的意思是,向设备发送数据和从设备接收数据,这两种方式,我们都希望将 Android 设备用作显示器".
Can we develop an android application which communicates with our external device using USB cable? I mean, sending data to the device and receiving data from the device, both ways, we want to use the Android device as a "display".
非常感谢您.
我基本上和你描述的一样.我仍处于早期阶段,但我在一些限制条件下管理了此类沟通:
I'm basically doing the same you are describing. I'm still at the early stages but I've managed such communication under some constraints:
我希望这会有所帮助.正如我所说,我开始在这个生态系统中工作,但我仍然需要在许多地方"中找到自己的方式.
I hope this helps. As I've said, I'm starting to work in this ecosystem and I still have to find my way around many "places".
干杯,阿西尔.
这篇关于Android:USB通信Android<->外接设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!