基于RS485和RS232的机车总线控制器设计 |
| |
引用本文: | 陈昊苓,张兵.基于RS485和RS232的机车总线控制器设计[J].计算机测量与控制,2023,31(12):152-159. |
| |
作者姓名: | 陈昊苓 张兵 |
| |
作者单位: | 西南交通大学牵引动力国家重点实验室,西南交通大学牵引动力国家重点实验室 |
| |
基金项目: | 国家自然科学基金(U19A20110) |
| |
摘 要: | 随着现代机车运行速度和运载能力的提高,为了保证机车的安全运行,需要准确采集机车运行的各种参数来进行数据的监控、管理和机车控制,此外也可以为故障诊断提供数据支持,因此需要开发一套可以准确、高速传输数据的大容量机车总线控制系统;设计了基于RS485和RS232的机车总线控制器,详细阐述了以STC8G2K64S4芯片为核心的主控模块、电平转换模块、时钟模块、电源模块和LED指示灯模块的硬件设计以及相互之间的软件逻辑控制和所用通信协议,通过4个串口实现程序的下载以及数据的交换;主要的交换参数包括电压、电流、总有功功率、频率等这些机车运行数据;测试结果表明该机车总线控制器可以高速、准确、及时的传输各个设备生成或采集到的数据,为后续的数据分析提供了支持。
|
关 键 词: | RS485总线 RS232总线 机车总线控制器 STC8G2K64S4 Modbus协议 HostLink协议 |
收稿时间: | 2023/2/20 0:00:00 |
修稿时间: | 2023/3/17 0:00:00 |
Design of Locomotive Bus Controller Based on RS485 and RS232 |
| |
Abstract: | With the improvement of the speed and carrying capacity of modern locomotive, in order to ensure the safe operation of locomotive, it is necessary to accurately collect various parameters of locomotive operation for data monitoring, management and control. In addition, it can also provide data support for fault diagnosis. Therefore, it is necessary to develop a set of large-capacity locomotive bus control system that can accurately and high-speed data transmission. The locomotive bus controller based on RS485 and RS232 is designed. The hardware design of main control module, level conversion module, clock module, power module and LED indicator module with STC8G2K64S4 chip as the core is described in detail, as well as the software logic control and communication protocol between them. Through 4 serial ports to achieve program download and data exchange. The main switching parameters include voltage, current, total active power, frequency and other locomotive operating data. The test results show that the locomotive bus controller can transmit the data generated or collected by each device at high speed, accurately and timely, which provides support for the subsequent data analysis. |
| |
Keywords: | RS485 bus RS232 bus locomotive bus controller STC8G2K64S4 Modbus protocol HostLink protocol |
|
| 点击此处可从《计算机测量与控制》浏览原始摘要信息 |
|
点击此处可从《计算机测量与控制》下载全文 |
|