A CAN bus data transmission method and a management platform

By preparing the CAN protocol matrix DBC file and generating the parsing file, the problem of large workload and difficult maintenance of CAN data transmission between different vehicle models is solved, realizing efficient and accurate CAN data parsing and management, and adapting to the flexible configuration of different vehicle models.

CN115766331BActive Publication Date: 2026-03-06WUHAN JIMU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-17
Publication Date
2026-03-06

AI Technical Summary

Technical Problem

Existing technologies for CAN data transmission between different vehicle models suffer from problems such as high workload, difficult maintenance, low efficiency, and high error probability, especially lacking flexible adaptability and automated maintenance when CAN data strategies change.

Method used

By preparing a CAN protocol matrix DBC file, filtering and analyzing the CAN message signal characteristics of general vehicle information, generating a parsing file, and importing it into the vehicle equipment for compilation, the management platform collects and transmits the corresponding parsing files, thereby realizing dynamic CAN data parsing and management.

Benefits of technology

It simplifies the CAN data parsing workload between different vehicle models, improves development efficiency and signal output accuracy, and enables efficient management and flexible configuration of equipment for different vehicle models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766331B_ABST
    Figure CN115766331B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of vehicle component communication technology, specifically relating to a CAN bus data transmission method and a management platform. The CAN bus data transmission method of this invention configures different parsing files for different devices based on the signal characteristics of CAN messages, which can greatly simplify the workload of input and output for different vehicle models, realize dynamic CAN data parsing, increase development efficiency while ensuring accuracy, and facilitate efficient management of CAN message input and output for different types of devices in different vehicle models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of vehicle component communication technology, specifically relating to a CAN bus data transmission method and a management platform. Background Technology

[0002] The CAN bus protocol is a serial communication bus based on a message broadcast mode. Due to its simplicity, practicality, and reliability, it is widely used for reliable communication between ECUs in automobiles. The CAN bus is a multi-master bus system; CAN network messages are broadcast, meaning that all nodes on the network detect consistent data at any given time, making it suitable for transmitting short messages such as vehicle speed, steering, and braking. The CAN bus was initially proposed by Bosch and later confirmed as an international standard by the ISO organization. Data transmission between different ECUs in a vehicle is complex. When different vehicle models add or modify CAN data strategies, manual code modification and upgrades are required. This presents a series of problems, including a large workload, difficult maintenance, and a lack of flexibility for different CAN strategies, reducing the efficiency of subsequent CAN data analysis and application. Chinese invention patent CN107465695A discloses a method and system for dynamically updating CAN parsing parameters based on a database. This patent requires comparing and maintaining new CAN parsing parameters in the database each time, followed by a system restart for the changes to take effect. While it offers some configuration flexibility, maintenance and updates are not convenient or automated enough, lacking efficiency for rapidly changing CAN data acquisition needs. Currently, CAN data reception, parsing, and transmission are mostly handled through code parsing, requiring adaptation for different vehicle models. This is not only inefficient but also increases the error probability when dealing with a large number of CAN messages. Summary of the Invention

[0003] In view of this, the present invention provides a CAN bus data transmission method, which can greatly simplify the workload of input and output for different vehicle models, realize dynamic CAN data parsing, increase development efficiency while ensuring accuracy, and facilitate efficient management of CAN message input and output for different vehicle models and different types of devices.

[0004] To achieve the above-mentioned technical objectives, the specific technical solution adopted by the present invention is as follows:

[0005] A CAN bus data transmission method is provided for transmitting general information between a vehicle CAN protocol bus and an on-board device. The transmission method includes the following steps:

[0006] S101: Prepare a CAN protocol matrix DBC file based on the vehicle model, wherein the DBC file contains all the CAN messages to be transmitted by the vehicle;

[0007] S102: Filter the CAN messages of the vehicle general information to be transmitted by the device in the DBC file, and analyze the signal characteristics of the CAN messages of each general information.

[0008] S103: Transmit the signal characteristics of each signal to the CAN protocol bus message transmission platform to generate a parsing file for parsing the CAN message;

[0009] S104: Import the parsed file into the device on the vehicle that needs to be connected to the CAN protocol bus;

[0010] S105: Connect the device to the CAN protocol bus;

[0011] Wherein: when the device sends a CAN message to the CAN protocol bus or receives a CAN message from the CAN protocol bus, it compiles the CAN message based on the parsing file.

[0012] Furthermore, the signal characteristics include the baud rate and data transmission mode of the CAN message.

[0013] Furthermore, the signal characteristics include the ID used in the CAN message data and the bytes and bits containing the data.

[0014] Furthermore, the signal characteristics include the precision and data offset of the data contained in the CAN message.

[0015] Furthermore, the general information includes vehicle speed signals and turn signals.

[0016] Furthermore, the parsed files are numbered, and the number corresponds to the device.

[0017] Furthermore, the parsed file is in XML format.

[0018] The present invention also proposes a management platform for executing the above data transmission method on different devices. The management platform collects different numbered parsing files and transmits the numbered parsing files corresponding to the devices to the devices when the devices are deployed. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1This is a flowchart illustrating the process of parsing CAN messages transmitted via the CAN protocol bus in a CAN bus data transmission method according to a specific embodiment of the present invention.

[0021] Figure 2 This is a flowchart illustrating the CAN bus data transmission method of the present invention, showing the device outputting CAN messages to the CAN protocol bus.

[0022] Figure 3 This is a flowchart illustrating the preset parameters of the CAN bus data transmission method device and the overall CAN message transmission process in a specific embodiment of the present invention. Detailed Implementation

[0023] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0024] The following specific examples illustrate the implementation of this disclosure. Those skilled in the art can easily understand other advantages and effects of this disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. This disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this disclosure. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0025] It should be noted that various aspects of embodiments within the scope of the appended claims are described below. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using other structures and / or functionalities besides one or more of the aspects set forth herein.

[0026] It should also be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this disclosure. The illustrations only show the components related to this disclosure and are not drawn according to the number, shape and size of the components in actual implementation. In actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0027] Furthermore, specific details are provided in the following description to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects can be practiced without these specific details.

[0028] In one embodiment of the present invention, a CAN bus data transmission method is proposed for transmitting general information between the vehicle CAN protocol bus and in-vehicle equipment, such as... Figure 1 , 2 As shown, the transmission method includes the following steps:

[0029] S101: Prepare a CAN protocol matrix DBC file based on the vehicle model. The DBC file contains all the CAN messages to be transmitted by the vehicle.

[0030] S102: Filter the CAN messages of the vehicle general information to be transmitted by the device in the DBC file, and analyze the signal characteristics of the CAN messages of each general information.

[0031] S103: Transmits the characteristics of each signal to the CAN protocol bus message transmission platform to generate a parsing file for parsing CAN messages;

[0032] S104: Import the parsed file into the device on the vehicle that needs to be connected to the CAN protocol bus;

[0033] S105: Connect the device to the CAN protocol bus;

[0034] Specifically, when the device sends CAN messages to or receives CAN messages from the CAN protocol bus, it compiles the CAN messages based on the parsing file.

[0035] In this embodiment, the signal characteristics include the baud rate of the CAN message and the data transmission mode.

[0036] In this embodiment, the signal characteristics include the ID used in the CAN message data and the bytes and bits containing the data.

[0037] In this embodiment, the signal characteristics include the precision of the data contained in the CAN message and the data offset.

[0038] In this embodiment, the general information includes vehicle speed signals and turn signals.

[0039] In this embodiment, the parsed files are numbered, and each number corresponds to a device.

[0040] In this embodiment, the parsed file is in XML format.

[0041] The overall flowchart of the device preset process and CAN message transmission of the present invention is as follows: Figure 3 As shown.

[0042] Based on the same inventive concept, in one embodiment of this invention, a management platform is proposed for executing the data transmission method of the above embodiment on different devices. The management platform collects different numbered parsing files and transmits the numbered parsing file corresponding to the device to the device when the device is deployed.

[0043] Whether in commercial or passenger vehicles, data transmission within the vehicle body of different models from different manufacturers typically uses CAN buses. However, to differentiate between models, the transmission rate, format, and identifiers on the CAN bus vary. Adapting to different models is an extremely tedious task. This embodiment utilizes a CAN bus data transmission method that allows for targeted configuration based on important device IDs, enabling adaptation for different vehicle models. This improves the efficiency and quality of CAN message input parsing.

[0044] There are many types of controllers in automobiles, and different controllers (devices) need to transmit signals to the CAN bus. The output requirements also vary greatly depending on the manufacturer. To address this issue, this embodiment uses a CAN bus data transmission method to adapt the script for CAN output signals, parse it, and output the corresponding CAN message. For similar output signals, simple modifications can be made to meet the output requirements. This solves the technical problem of needing to write separate code for different CAN message outputs, simplifying the workload and improving the accuracy of signal output.

[0045] Different car manufacturers and different models require numerous different CAN messages for input and output. Implementing and managing all of these through code would result in an extremely heavy workload and significant management difficulties. The CAN bus data transmission method described in this embodiment allows the input and output CAN scripts to be stored in the cloud (management platform), facilitating management and development. This not only improves the flexibility and efficiency of CAN data parsing but also enables cloud-based control of CAN input / output configuration, thereby increasing development efficiency for different needs.

[0046] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A CAN bus data transmission method for the transmission of general information between a vehicle CAN protocol bus and a vehicle control device, characterized in that, The transmission method comprises the following steps: S101: Preparing a CAN protocol matrix DBC file based on the vehicle model, wherein the DBC file contains all CAN messages to be transmitted by the vehicle; S102: Screening CAN messages of vehicle general information to be transmitted by the vehicle controller device in the DBC file, and analyzing signal characteristics of each CAN message of general information; S103: Transmitting each signal characteristic to a CAN protocol bus message transmission platform to generate an analysis file for analyzing the CAN message; S104: Importing the analysis file into the vehicle controller device which needs to be connected to the CAN protocol bus; S105: Connecting the vehicle controller device to the CAN protocol bus; Wherein: when the vehicle controller device sends or receives the CAN message of the CAN protocol bus, the CAN message is compiled based on the analysis file, the analysis file is numbered, and the number corresponds to the vehicle controller device.

2. The CAN bus data transmission method according to claim 1, characterized in that, The signal characteristics include baud rate and data transmission mode of the CAN message.

3. The CAN bus data transmission method according to claim 1, characterized in that, The signal characteristics include ID and byte and bit where data of the CAN message are located.

4. The CAN bus data transmission method according to claim 1, characterized in that, The signal characteristics include precision and data offset of the CAN message.

5. The CAN bus data transmission method according to claim 1, characterized in that, The general information includes vehicle speed signal and steering signal.

6. The CAN bus data transmission method according to claim 1, characterized in that, The format of the analysis file is XML.

7. A management platform for performing the data transmission method of any one of claims 1-6 in different vehicle controller devices, characterized by The management platform collects different numbered analysis files, and transmits the numbered analysis file corresponding to the vehicle controller device to the vehicle controller device when arranging the vehicle controller device.

Citation Information

Patent Citations

  • Method and system for updating CAN analysis parameter dynamically based on database

    CN107465695A

  • CAN bus data analysis method and computer-readable storage medium

    CN107656520A

  • Configurable CAN data analysis method

    CN114793250A