The invention discloses a data caching method for converting CAN communication into serial port communication and a conversion medium, and relates to the technical field of automobile power battery test communication, and the method comprises the following steps: 1, setting a data caching conversion medium between a CAN communication interface and a serial port communication interface, the data cache conversion medium is provided with a CAN data cache region and a serial port sending cache region; and step 2, comparing the received CANFD data frames with the ID of the CANFD data frames in the CAN data cache region one by one, and if the CANFD data frames with the same ID exist, discarding the received CANFD data frames. According to the method, the CAN data cache region and the serial port sending cache region are defined on the RAM in the controller MCU in the conversion medium in advance, so that the problem that CANFD data frames with different IDs are not lost in the CAN communication-to-serial port communication data transmission and forwarding process is solved.
本发明公开一种CAN通信转换为串口通信的数据缓存方法及转换介质,涉及汽车动力电池测试通信技术领域,包括以下步骤:步骤1,在CAN通信接口和串口通信接口之间设置数据缓存转换介质,所述数据缓存转换介质设置CAN数据缓存区和串口发送缓存区;步骤2,将接收的CANFD数据帧与CAN数据缓存区中的CANFD数据帧ID进行逐一比对,若存在ID相同的CANFD数据帧,则丢弃接收的CANFD数据帧。本发明能通过提前在转换介质中控制器MCU中的RAM上定义好CAN数据缓存区和串口发送缓存区,保证在CAN通信转串口通信数据传输转发过程中不同ID的CANFD数据帧不会出现丢失的问题。
Data caching method for converting CAN communication into serial port communication and conversion medium
一种CAN通信转换为串口通信的数据缓存方法及转换介质
2023-10-20
Patent
Electronic Resource
Chinese
IPC: | G06F ELECTRIC DIGITAL DATA PROCESSING , Elektrische digitale Datenverarbeitung / B60R Fahrzeuge, Fahrzeugausstattung oder Fahrzeugteile, soweit nicht anderweitig vorgesehen , VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR / G01R Messen elektrischer Größen , MEASURING ELECTRIC VARIABLES |
Serial Data Communication Interface
SAE Technical Papers | 2002
Serial Data Communication Interface
SAE Technical Papers | 2021
Serial Data Communication Interface
SAE Technical Papers | 2015
BMS board automatic wake-up and serial port communication system
European Patent Office | 2025
|Helicopter main blade heating control system based on serial port bus communication
European Patent Office | 2024
|