问题描述
#Introduction
首先,我想为我糟糕的英语道歉。我不会说英语而且正在使用谷歌翻译。
我需要用C ++开发一个用于Windows的程序。这个程序将控制我的应用程序中的串口。
#问题
可以将设置作为波特率,奇偶校验,停止位和另一个已被另一个应用程序打开的串口?我是怎么做到的?
我可以通过CreateFile()函数和GetCommState()轻松获取这些设置,但串口已经打开,我不能。
有人能帮助我吗?
#Introduction
First I would like to apologize for my bad English. I do not speak English and am using Google translator.
I need to develop a program in C ++ for windows. This program will control serial ports in my application.
#The problem
It is possible to get the settings as baud rate, parity, stop bit and other one serial port that is already open by another application? And how I do it?
I could easily get these settings through the CreateFile () function and GetCommState (), but the serial port already'll be open and I can not.
Could someone help me?
推荐答案
这篇关于如何获取已打开的串口的配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!