摘要
为解决对某型装备的CAN总线数据的实时采集转发的问题,设计一种基于STM32的CAN数据采集分析仪。下位机基于RT-Thread实时操作系统,使用W5500实现与以太网的连接,作为客户端建立与PC服务器端的TCP连接,捕获CAN总线数据然后重构成以太网数据包并通过SPI总线传给W5500,后者将其转换为以太网数据包并通过RJ45网口发送给PC服务器。数据采集仪可以实时采集高速CAN数据并转发给PC服务器,便于计算机进行后期处理并分析装备工作状况。
In order to solve the problem of real-time acquisition and forwarding of CAN bus data of a certain equipment, a CAN data acquisition analyzer based on STM32 is designed. The lower machine based on RTThread real-time operating system with W5500 used to realize the connection with Ethernet establish TCP connection to PC server as client, and then capture the CAN bus data and turn to Ethernet packets and sent to the W5500 through the SPI bus, which will be converted into Ethernet packets and send through the RJ45 network to the PC server. The data acquisition device can collect high-speed CAN data in real time and forward it to the PC server, which is convenient for computer to deal with later and analyze the working condition of equipment.
出处
《电子测试》
2017年第9X期21-23,共3页
Electronic Test