如何在C#中通过USB端口发送和接收数据? [英] how to send and receive data through usb port in c#?

查看:906
本文介绍了如何在C#中通过USB端口发送和接收数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

:(((你好

如何在C#窗口应用程序中通过USB端口发送和接收数据?

在此先感谢
Pradeep Kumar Jaiswal
k84.pradeep@gmail.com

:(( hello

How to send and receive data through usb port in c# window application?

thanks in advance
Pradeep kumar jaiswal
k84.pradeep@gmail.com

推荐答案

这实际上取决于您希望与之通信的设备.
通常,设备制造商会为此目的提供API.
例如,许多慢速"设备在USB上使用虚拟COM,因此,一旦安装了必需的驱动程序,便可以使用标准RS232协议进行通信.
:)
It really depends on the device you wish to communicate with.
Usually device manufacturers provide APIs to the purpose.
For instance many ''slow'' devices use virtual COM over USB so that, once installed the required drivers, you communicate using standard RS232 protocol.
:)


在Codeproject项目中搜索"USB".
Search Codeproject articles for ''USB''.


这篇关于如何在C#中通过USB端口发送和接收数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆