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数据帧不会出现丢失的问题。


    Access

    Download


    Export, share and cite



    Title :

    Data caching method for converting CAN communication into serial port communication and conversion medium


    Additional title:

    一种CAN通信转换为串口通信的数据缓存方法及转换介质


    Contributors:
    LIN MINGXING (author) / DING LIJIAN (author) / LUO QUAN (author)

    Publication date :

    2023-10-20


    Type of media :

    Patent


    Type of material :

    Electronic Resource


    Language :

    Chinese


    Classification :

    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

    WU HAIJUN / MA TAO / CHEN MIN et al. | European Patent Office | 2025

    Free access

    Helicopter main blade heating control system based on serial port bus communication

    WU SHILIANG / ZHANG JUN / HUANG QIANG et al. | European Patent Office | 2024

    Free access