问题描述
我已经更新了我的VxWorks应用程序。目标的RS-232连接到触摸屏。出于某种原因,我必须知道它的波特率。我咨询了网络,发现只设置波特率的方法:
I've been updated my a VxWorks application. The target's RS-232 is connected to touch panel. For some reason, I must know its baud rate. I consulted the web and found only the way to set baud rate:
ioctl (fPipe, FIOBAUDRATE, 19200);
在文件中(ioLib。 h)包含FIOBAUDRATE,我找不到任何看起来像波特率的命令。
我在sioLib.h找到了两个定义:SIO_BAUD_GET& SIO_BAUD_SET,但SIO_BAUD_GET似乎无法获得波特率。
如何获取当前RS-232设置的波特率?
我尝试了什么:
我试图按上述方式运行并搜索我的头文件,发现什么都没能回答我的问题。
我用Google搜索了这个问题但是徒劳无功。
In the file (ioLib.h) containing FIOBAUDRATE, I can't find any command which looks like getting baud rate.
I found two definitions at sioLib.h: SIO_BAUD_GET & SIO_BAUD_SET, but SIO_BAUD_GET seems not working at get baud rate.
How can I do to get baud rate of my current RS-232 setting?
What I have tried:
I tried to run the ways as stated above and searched at my header files, found nothing able to answer my question.
I googled this problem but in vain.
推荐答案
这篇关于如何在vxworks中获取当前波特率设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!