0

I am a newbie to serial programming. I need to develop an application where a device send serial data at 250Kbps which needs to be captured through a PC. I know that the conventional RS232 COM ports have a baud rate restriction to 115Kbaud.

Can I use a RS485 to USB converter and achieve this communication?

And an additional questions if any of you guys are familiar with this topic. When I used C# for acquiring the serial data, with a conventional COM port (or even with a RS232 to USB converter) the system generated exception when I initialized the baud rate register with a value higher than 115Kbaud.

Please let me know what do need to solve my high baud rate application.

4

1 回答 1

1

尽管这是一篇旧帖子,但这里有一个包含所有技术细节的答案:

可用于 Windows PC RS232 / RS485 应用程序的波特率取决于:

  1. RS232/RS485 芯片组及其 Windows 设备驱动程序允许的波特率范围。对于较旧的/消费设备,这很多时候仅包括高达 115200 波特的标准波特率(参见例如来自 NI 的此信息)。在最初的帖子中,我认为问题确实是使用了这样的“基本”RS232 设备,并且它的 COM 端口驱动程序本身不接受高于 115200 位的设置。还要注意驱动程序接受的波特率(几乎可以是一切)与 RS232 端的实际传输率之间的差异。有关可实现的波特率,请参阅FTDI 芯片组知识库。

  2. RS232/RS485接口电气设计的实际限制。知名供应商(MOXA、Lantronix、Digi Edgeport、VSCOM 等)拥有专为工业应用和高达 MBit 范围的高波特率设计的特殊产品。FTDI 本身也为不同的波特率提供完整的电缆组。

  3. 电缆/连接的电气特性。这包括电缆长度、电缆屏蔽,以及对于 RS485 等差分电压传输,还包括使用端接电阻器的适当端接(例如,请参阅有关 RS485 的此 TI 应用说明)。对于 250KBit,我当然建议在两端使用 120 欧姆的端接电阻进行适当的端接。

最后 - 在开始自己的编程项目之前,我建议始终使用现有软件工具检查 COM 端口连接。任何像 RealTerm 或 YAT 这样的免费软件,或者我们的Docklight 评估都应该能够做到这一点。

于 2016-09-12T11:47:59.837 回答