朱耀东.CAN网络实时监控系统设计[J].测控技术,2012,31(12):86-89 |
CAN网络实时监控系统设计 |
Design for CAN Real-Time Monitoring System |
|
DOI: |
中文关键词: CAN总线 虚拟仪器 实时监控 报文解析 生产者/消费者模式 |
英文关键词:CAN virtual instrument real-time monitoring message analysis producer/consumer pattern |
基金项目: |
|
摘要点击次数: 1385 |
全文下载次数: 60 |
中文摘要: |
提出了一种实时监控CAN网络的系统。本系统基于生产者/消费者设计开发模式,利用生产者循环响应用户操作,用消费者循环处理CAN网络中的数据及生产者产生的指令。整个系统有系统参数初始化、报文数据显示、报文图形显示、报文发送以及数据存储等功能。当CAN网络中有报文传输时,系统通过CAN接口卡采集报文,经过数据解析及统计,实时显示各种监控状态(如总线负载、各报文传输比率等)。实验中,通过另测试CAN节点发送不同标识符、不同数据域的报文的方法验证本监控系统的有效性,经测试,本系统能够达到实时监控CAN网络的目的。 |
英文摘要: |
A net monitor system used to real-time monitor the state of the controller area network(CAN) is designed.In the system,two while loops compose a producer/consumer pattern which is the main program structure.The producer loop responds user actions and the consumer loop handles commands and data.The functions of the system such as data trace,graphics display,signal selection,and write frame are compiled in corresponding sub-VIs.When the messages are transmitted in the bus,the system receives messages from the CAN by a CAN interface card.After data analysis and statistics,the states of the monitored net,such as busload,message rate and so on,are shown in the system.In the experiment,to test the validity of this system,another CAN node is used to send different messages to the monitoring system.The results show that the system can real-time monitor the CAN. |
查看全文 查看/发表评论 下载PDF阅读器 |
关闭 |
|
|
|