从USB获取COMports到串行设备 [英] Get COMports from USB to Serial devices

查看:206
本文介绍了从USB获取COMports到串行设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在32位和64位系统上使用VS 2010和.NET4.0.

I am using VS 2010 and .NET4.0 on 32 bit and 64 bit systems.

我有一个USB到串行设备,

I have an USB to Serial device, 

有人可以告诉我如何找到USB到串行设备正在使用的COM端口号吗?

Can anyone show me how to find the COMport number the USB to Serial device is using? 

System.IO.Ports.SerialPort.GetPortNames()为我提供了所有COMport的列表,但是我需要知道哪些属于USB到串行设备.

System.IO.Ports.SerialPort.GetPortNames() gives me a list of all COMports, but I need to know which ones belong to the USB to Serial device.

 

谢谢

 

Peter

推荐答案

能给您正确答案的人.


这篇关于从USB获取COMports到串行设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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