交通运输系统工程与信息 ›› 2009, Vol. 9 ›› Issue (4): 53-58 .

• 智能交通系统与信息技术 • 上一篇    下一篇

基于串口通信的列车实时数据通信的设计

周方明;毛保华*;柏赟;丁勇   

  1. 北京交通大学 中国综合交通研究中心,北京 100044
  • 收稿日期:2009-03-17 修回日期:2009-06-11 出版日期:2009-08-25 发布日期:2009-08-25
  • 通讯作者: 毛保华
  • 作者简介:周方明 (1979-),男,湖南祁东人,博士生.
  • 基金资助:

    国家自然科学基金重点项目 (60634010),教育部高等学校博士学科点专项科研基金资助项目(20060004014).

Design of Real-Time Train Movement Information Interface Based on Serial Communication

ZHOU Fang-ming; MAO Bao-hua; BAI Yun; DING Yong   

  1. Integrated Transport Research Center of China, Beijing Jiaotong University, Beijing 100044, China
  • Received:2009-03-17 Revised:2009-06-11 Online:2009-08-25 Published:2009-08-25
  • Contact: MAO Bao-hua

摘要: 为了保障列车行车安全,机车上都配置了列车运行监控记录装置和TAX2型监测装置,实时检测和记录列车运行参数,这些实时的列车运行参数同时也是其它的列车车载系统必需的基础数据条件。介绍了一种通过串口通信,动态获取列车运行参数的接口方案,阐述了相应的硬件连接方式和软件程序设计,其中采用了Windows多线程编程技术,还根据列车运行线路中存在长短链或基本线路变换的情况,设计了一种公里标突变识别并同时进行数据纠错的算法,实时接收数据的误码率为0.02%,实现了列车车载系统与列车现有监控装置之间可靠有效的联接。

关键词: 串口通信, 列车, 实时数据

Abstract: To insure the safety of the train, every locomotive is installed with train supervise and record device, TAX2 monitor and control device, which monitor the train movement and acquire real-time train information. Meanwhile, these real-time train information is necessary condition for designing other kinds of train on-board systems. This paper presents a feasible interface which can approach the real-time train data representing the states of the train with the support of serial communication. It also introduces the related hardware connection methods and software programming which adopts the Windows multi-threaded programming. With consideration of the existence of the changing of the milestone and basic line, an algorithm is proposed to recognize the route changing and correct the data error, and then the data error ratio is down to 0.02%. Based on that the reliable connection between the train on-board system and the existed monitor and control devices are well conducted.

Key words: serial communication, train, real-time data

中图分类号: