本文介绍了从USB数据〜串行端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我想将数据从一个USB主机通过USB传输(我的笔记本电脑或Android设备)至(的台式电脑)的串行COM口 - 串口(DB-9)适配器。I would like to transfer data from a USB Host (of my Laptop or Android Device) to Serial COM port (of a Desktop PC) through a USB - Serial port(DB-9) adapter.有没有存在的库做这个任务?Is there any library existed to do this task??我已经研究并尝试 http://developer.android。 COM /引导/主题/连接/ USB / host.html 但失败了。i have already studied and tried http://developer.android.com/guide/topics/connectivity/usb/host.html but failed.我可以通过使用Java程序或Android应用程序从我的笔记本电脑或Android设备?Can i send data by a using a java program or Android App from my Laptop or Android Device ??我可以在台式机应用程序接收数据和我们展示????Can i receive data by an app in Desktop PC and show us????如果这样,请指导我如何。If so please guide me how.推荐答案是的,这是可能的,实现将取决于你选择什么样的设备。Yes, this is possible, the implementation will depend on what device you pick.查看 USB串行换Android项目,在通信从Android的USB设备。这对大多数主要 USB转UART桥接设备如Silicon Labs的,多产,FTDI和CDC类的设备。Check out the usb-serial-for-android project for the communication from Android to the USB device. This has support for most major USB to UART Bridge devices such as a Silicon Labs, Prolific, FTDI and CDC Class devices.您可以从您的笔记本电脑使用正常的串行通信等的或OSX或Windows中的 Commuincations API POSIX方法/ A>。You can talk to it as a serial device from your laptop computer using normal serial communications such as POSIX method for Linux or OSX or the Commuincations API for Windows. 这篇关于从USB数据〜串行端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-22 15:25
查看更多