摘要
针对使用不同协议和不同波特率的CAN总线网络,本文以STM32F103单片机为主控制器,设计了一种监测CAN总线多种现场状态的分析仪。STM32F103通过外接CAN接收器TJA1050与CAN总线进行通信,实现对CAN总线数据的收集和处理。测试结果表明,当波特率为5kbps/s,发送报文间隔为100ms时,检测到的总线吞吐量为10帧/s,说明不同的波特率和不同的报文发送时间间隔,所测得的总线负载和总线吞吐量与实际相符。该分析仪为CAN总线的现场监测和排错提供了快速、准确的解决方案,可以对CAN网络进行可靠的实时监控。
For CAN bus networks with different protocols and baud rates, this paper takes STM32F103 as the primary controller and designs a type of analyzer to monitor different states of CAN bus. STM32F103 can communicate with CAN bus through extemal CAN receiver TJA1050, realizing the data collection and processing of CAN bus. The test results show that, the monitoring to the bus throughput is 10 fps/s when the baud rate is 5 kbps/s and the sending packets interval is 100 ms. The measured bus loads and bus throughput are matched the actual. This type of analyzer provides rapid and exact solutions to the fielding monitoring and troubleshooting of CAN bus and can realize the reliable real-time monitoring of CAN network.
出处
《青岛大学学报(工程技术版)》
CAS
2013年第1期19-21,共3页
Journal of Qingdao University(Engineering & Technology Edition)
基金
山东省自然科学基金项目资助(Y2008F23)
山东省科技发展计划项目资助(2011GGB01123)
863计划项目资助(2012AA110407)