您如何在Windows中以编程方式配置串行FIFO接收和发送缓冲区? [英] How do you programmatically configure the Serial FIFO Receive and Transmit Buffers in Windows?

查看:254
本文介绍了您如何在Windows中以编程方式配置串行FIFO接收和发送缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows的设备管理器"中,可以从"COM端口"的高级设置"中为串行端口配置接收缓冲区"和发送FIFO缓冲区"大小:

From Device Manager in Windows it is possible to configure the Receive Buffer and Transmit FIFO Buffer sizes for a serial port from Advanced Settings for a COM port:

我想以编程方式为COM端口配置TX和RX FIFO缓冲区的值.理想的方法是在LabVIEW中甚至通过.NET/命令行执行此操作的方法,因为两者都可以从LabVIEW轻松进行连接.

I would like to configure the values for the TX and RX FIFO buffers for COM ports programmatically. Ideally a method to do it in LabVIEW or even via .NET / command line as both are easy to interface with from LabVIEW.

只是为了澄清这是关于16550兼容的UART FIFO缓冲区,而不是软件缓冲区,例如 VISA I/O缓冲区,等等.

Just to clarify this is in regards to the 16550 compatible UART FIFO buffers and not software buffers like the VISA I/O Buffer, etc.

推荐答案

一些可用的选项对于这种情况不是很理想,但需要注意:

A few options are available that are not as ideal for this case but useful to note:

弗拉基米尔(Vladimir)的CodeProject帖子标题为具有使用Microsoft驱动程序开发工具包(DDK)的方法,该工具包现在是

The CodeProject post by Vladimir titled "Serial Ports. Enumeration and FIFO control" has an approach that uses the Microsoft Driver Development Kit (DDK) which is now the Windows Driver Kit (WDK) in Visual C++.

论坛如何设置串行端口Fifo缓冲区而无需重新启动" 描述可以在注册表中更改这些值(我想应该是手动或以编程方式更改),然后使用

The forum "How to set Serial port Fifo buffers without reboot" describes that the values can be changed in the registry (manually or programmatically I suppose) and then the serial port interface restarted using the DEVCON command-line tool. I am not sure how reliable that approach and documentation is hard to find.

这篇关于您如何在Windows中以编程方式配置串行FIFO接收和发送缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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