某型高炮CAN总线检测系统的设计
2019-08-12李旭孟晨张晓良王成刘志鹏
李旭 孟晨 张晓良 王成 刘志鹏
摘 要: 为实现对某型高炮总线数据的实时监测,设计一种CAN总线检测系统。该系统使用CAN收发接口电路完成对信号的采集,采用STM32F1系列单片机作为下位机对采集的数据进行处理,通过W5500网络接口将数据传输到PC104 工控机,由工控机进行数据解析,从而实现CAN总线数据的检测功能。实验结果表明,该系统能够实现对某型高炮CAN数据的实时检测。
关键词: 数据检测系统; 信号采集; 数据处理; 数据传输; 网络通信; 程序设计
中图分类号: TN915?34 文獻标识码: A 文章编号: 1004?373X(2019)15?0013?04
Design of CAN bus detecting system for a certain type antiaircraft gun
LI Xu1, MENG Chen1, ZHANG Xiaoliang1, WANG Cheng1, LIU Zhipeng2
( 1. Army Engineering University, Shijiazhuang 050003, China; 2. Military Delegate Group Stationed in Changzhi Region, Changzhi 046000, China)
Abstract: In order to achieve the real?time monitoring for the bus data of a certain type antiaircraft gun, a CAN bus detecting system is designed, in which the CAN transceiver interface circuit is adopted to fulfill signal acquisition, STM32F1 series SCM is used as its slave computer to process the acquired data through, and then sent to PC104 IPC (industrial personal computer) through the W5500 Ethernet interface. The processed data is analyzed by the IPC to realize the system function for detecting CAN bus data. The experimental results show that the system can realize real?time detection of CAN data of a certain antiaircraft gun.
Keywords: data detecting system; signal acquisition; data processing; data transmission; network communication; program design
0 引 言
某型高炮作为新一代武器系统,其各个分系统已经实现了采集内部某些模拟信号或开关信号,并输出到CAN总线的功能。各个分系统之间的通信采用CAN 2.0B标准总线协议,总线通信波特率[1]为500 Kb/s。因此,可以通过采集CAN总线上的数据获取各个分系统的工作状况,并对检测出的故障进行分析和诊断,使得故障排查工作简单化、高效化。本文以某型高炮CAN总线数据采集检测作为研究对象,设计开发了CAN总线检测系统,并进行相关的测试实验。
1 系统总体结构设计
CAN总线检测系统结构设计框图如图1所示,输入包括某型高炮的待测信号和电源,输出为检测结果,通过图形界面进行显示。检测系统与某型高炮之间的电气连接采用可靠性高的航空接头作为连接方式。检测系统包含电源转换电路、工控机主板、CAN检测电路、液晶屏与键盘鼠标等模块组成。其中工控机主板采用PC104工控机作为上位机核心,负责数据处理与人机交互;CAN检测电路采用STM32F1系列单片机作为下位机的控制,负责CAN信号的采集与传输。……
