串行(Com)端口名称 [英] Serial(Com) Port Name

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

问题描述

如何使用C#更改串行端口的名称

说我的系统有COM1
我想将其重命名为COM2

有可能吗?

怎么样?

我用Google搜索,但找不到相关的


在此先感谢


:-D

How can I change name of Serial Port using C#

Say My System have COM1
I want to rename it to COM2

Is it possible ?

How ?

I googled but could not find relevant


Thanks in Advance


:-D

推荐答案

COM端口与特定中断相关联:

COM ports are associated with specific interrupts:

COM1 IRQ4 3F8H
COM2 IRQ3 2F8H
COM3 IRQ4 3E8H
COM4 IRQ3 2E8H



您可以在C#中重命名"端口的唯一方法是更改​​代表该端口的对象的名称.请记住,这是BAD的专利,因为该对象不能准确表示底层硬件.



The only way you can "rename" the ports in C# is by changing the name of the object that represents that port. Keep in mind that this is a patently BAD idea, because the object doesn''t accurately represent the underlying hardware.


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

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