串口仿真 [英] Serial Port Emulation

查看:157
本文介绍了串口仿真的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想开发一个应用程序来检测串行端口并检索仿真端口的设备名称.这是因为在w7设备管理器中,模拟的COM端口未显示其编号,并且当我使用多个设备时,有些混乱会在另一个应用程序中配置所有这些端口.
有什么主意吗?
在此先感谢...

Hi there,

I wanted to make an application to detect Serial Ports and retrieve the device names of the Emulated ones. This is because in w7 device manager the emulated COM ports dont show their number and when i use several devices gets kind of messy to configure all of them in another app.
Any idea?
Thanks in advance...

推荐答案

您可以使用以下代码枚举可用的串行端口名称;

You can enumerate the available serial Port names using the following code;

For Each item As String In My.Computer.Ports.SerialPortNames
    Debug.Print(item)
Next


Dim s1 As String
For Each s1 In SerialPort.GetPortNames()
    msgbox(s1)
Next s1


这篇关于串口仿真的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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