简体   繁体   English

USB〜串口的数据

[英]Data from USB ~ Serial Port

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. 我想通过USB-串行端口(DB-9)适配器将数据从(我的笔记本电脑或Android设备的)USB主机传输到(台式机的)串行COM端口。

Is there any library existed to do this task?? 有没有图书馆可以做这个任务?

i have already studied and tried http://developer.android.com/guide/topics/connectivity/usb/host.html but failed. 我已经研究并尝试了http://developer.android.com/guide/topics/connectivity/usb/host.html,但失败了。

Can i send data by a using a java program or Android App from my Laptop or Android Device ?? 我可以使用Java程序或Android应用程序从笔记本电脑或Android设备发送数据吗?

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. 是的,这是可能的,具体实施取决于您选择的设备。

Check out the usb-serial-for-android project for the communication from Android to the USB device. 请查看usb-serial-for-android项目 ,了解从Android到USB设备的通信。 This has support for most major USB to UART Bridge devices such as a Silicon Labs, Prolific, FTDI and CDC Class devices. 它支持大多数主要的USB至UART桥接设备,例如Silicon Labs,Prolific,FTDI和CDC类设备。

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 . 您可以使用常规的串行通信(例如Linux或OSX的POSIX方法WindowsCommuincations API)从便携式计算机作为串行设备与之对话

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM