Adaptive efficient CAN and Ethernet translation system, method and device and storage medium

By using a combination solution of data pre-shaping module and host computer interface in the communication gateway, the problems of inefficient communication efficiency and insufficient flexibility caused by fixed routing tables and translation rules in the prior art are solved, and efficient routing and translation and dynamic configuration functions are realized.

CN119544814APending Publication Date: 2025-02-28DONGFENG OFF ROAD VEHICLE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411462013.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When existing communication gateways process data from different protocols, fixed routing tables and translation rules limit the flexibility of the system, resulting in low communication efficiency, high development and maintenance costs, and lack of intelligent dynamic configuration functions.

Method used

Through the data pre-shaping module, the data domain segmentation and the data flow path are defined, the parameterization of data signals is realized, the communication overhead of forwarding and communication of non-demand data is reduced, and the host computer interface is provided for dynamic configuration and adaptive routing processing.

Benefits of technology

The calculation steps of the data forwarding and routing process have been greatly shortened, the routing and translation efficiency has been improved, the communication overhead has been reduced, the efficiency and simplicity of dynamic configuration has been realized, and the application of complex and changeable application scenarios has been adapted.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544814A_ABST
    Figure CN119544814A_ABST
Patent Text Reader

Abstract

The invention discloses a self-adaptive efficient CAN and Ethernet translation system and device and a storage medium, and the system comprises a data packet detection module, a data pre-shaping module, a data path analysis module, a data composition analysis module, a data load analysis module and a data transmission module. According to the system, feature identification code insertion, data field segmentation scribing and data flow direction path definition are carried out on data through the data pre-shaping module, data signal parameterization can replace addressing, data can be grabbed and taken away at the same time, the calculation step of the data forwarding routing process is greatly shortened, the forwarding communication overhead of non-demand data is reduced, and the data forwarding efficiency is improved. The routing translation efficiency is effectively improved; meanwhile, an upper computer interface is provided, effective data packet extraction is carried out during gateway forwarding, rapid and convenient dynamic configuration is provided, address information of bottom layer signals does not need to be concerned during dynamic configuration, decoupling of an application layer and a bottom layer is achieved, the dynamic configuration efficiency is high, technical operability is simple and practical, and actual requirements are better met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle-mounted communication technology, and in particular to an adaptive and efficient CAN and Ethernet translation system, device and storage medium. Background Art

[0002] With the rapid development of the automotive industry, the networking properties of vehicles are constantly enhanced, and the demand for data exchange inside and outside the car has increased sharply. Modern cars use a variety of communication protocols, such as CAN (Controller Area Network) and Ethernet, to achieve data transmission between different electronic control units (ECUs). CAN bus is widely used in internal automotive communications due to its high reliability and low cost, while Ethernet has gradually become the main protocol for external automotive communications due to its high-speed transmission capability and wide network support. In order to achieve efficient interconnection and intercommunication between different protocols, communication gateways play an important role in vehicle networks. Communication gateways translate data from different protocols to achieve cross-system functional linkage and meet the increasingly complex vehicle communication needs.

[0003] Existing communication gateways usually use fixed routing tables and translation rules, and implement translation routing of different protocol data by modifying the gateway software. Common translation schemes include encapsulating CAN data packets into Ethernet data packets, or disassembling Ethernet data packets into multiple CAN data packets. Although these schemes are simple to implement, they have some limitations in practical applications. For example, traditional translation methods require pre-definition of routing tables and signal combinations during the design phase. Once the system is put into operation, any modifications require rewriting and testing the software, increasing the cost of development and maintenance. In addition, the existing translation methods process data packets in a relatively rough manner and lack refined management of data content, resulting in low communication efficiency.

[0004] The shortcomings of the existing technology are mainly reflected in the following aspects: First, the fixed routing table and translation rules limit the flexibility of the system and cannot adapt to complex and changeable application scenarios. For example, when the vehicle is modified or the system is upgraded, the gateway software needs to be modified frequently, which increases the workload of development and testing. Secondly, the existing translation method has a relatively simple way of processing data packets and lacks refined management of data content, resulting in low communication efficiency. For example, the traditional method requires the entire CAN data packet to be encapsulated into an Ethernet data packet. Even if only a small part of the data is really needed, the entire data packet must be transmitted, increasing the communication overhead. Finally, the existing translation method lacks intelligent dynamic configuration function, and cannot automatically adjust the routing strategy according to the real-time network status and data requirements, affecting the overall performance of the system. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the purpose of the present invention is to provide an adaptive and efficient CAN and Ethernet translation system, device and storage medium. The system inserts feature identification codes into data, segments the data domain and defines the data flow path through a data pre-shaping module. The data signal can be parameterized instead of addressed, so as to realize data capture and movement, avoid the traditional traversal query idea based on the address as the only principle, greatly shorten the calculation steps of the data forwarding routing process, reduce the forwarding communication overhead of non-demand data, and effectively improve the routing translation efficiency; at the same time, provide a host computer interface, extract effective data packets when the gateway forwards, provide fast and convenient dynamic configuration and even have certain adaptive routing processing functions. There is no need to pay attention to the address information of the underlying signal during dynamic configuration, so as to realize the decoupling of the application layer and the underlying layer. The dynamic configuration is efficient, the technical operability is simple and practical, and it is more in line with the actual needs of the application modification field.

[0006] According to a first aspect of the present invention, there is provided an adaptive and efficient CAN and Ethernet translation system, comprising:

[0007] The data packet detection module is used to detect the incoming data packets and determine whether the data type is non-autonomously defined data or autonomously defined data;

[0008] A data pre-shaping module, used to define the signal set field of the non-autonomous defined data, including inserting one or more of a signal number, a signal length identifier, a signal sequence identifier, a signal quantity identifier or a control word information, and performing data domain segmentation and data flow path definition to obtain a pre-shaped non-autonomous defined data packet;

[0009] A data path analysis module, used for performing data path decoding on the autonomously defined data or the pre-shaped non-autonomously defined data packets;

[0010] A data composition analysis module, used for performing detailed signal-level disassembly of the data packet decoded by the data path to form a signal-level data packet to be sent;

[0011] A data load analysis module, used to comprehensively evaluate the size of the signal-level data packet to be sent, determine the data forwarding transmission rule, load the data packet according to the transmission rule, and obtain the loaded data packet;

[0012] The data sending module is used to send the loaded data packet according to the sending queue sequence linked list.

[0013] Furthermore, the signal set field definition is performed in advance on the autonomously defined data.

[0014] Furthermore, the identification method of the data packet detection module includes frame start identification, frame end feature identification, frame ID header identification and frame cycle type identification.

[0015] Furthermore, the signal word is used to represent the signal set rule, and the specific meanings include: 0 means 4-bit rule method, 1 means 2-bit rule method, 2 means mixed rule method and 3 means 8-bit rule method.

[0016] Furthermore, the signal length is controlled by the control word. If the control word is 0, i.e., a 4-bit rule method, 1, i.e., a 2-bit rule method, or 3, i.e., an 8-bit rule method, then the signal length can be defined according to the detailed rules; if the control word is 2, i.e., a mixed rule method, then continuous 000 is represented as a 2-bit length signal, continuous 001 is represented as a 4-bit length signal, and continuous 011 is represented as an 8-bit signal.

[0017] Furthermore, the data forwarding transmission rules include disassembling multi-packet loading and transmission and directly loading and transmission of a single packet.

[0018] Furthermore, it also includes a time monitoring module for performing priority analysis, transmission duration estimation and maximum delay tolerance estimation on the loaded data packets to form the sending queue sequence linked list.

[0019] According to a second aspect of the present invention, there is provided an adaptive and efficient CAN and Ethernet translation method, comprising:

[0020] S100, performing data detection on the incoming data packet to determine whether the data type is non-autonomously defined data or autonomously defined data;

[0021] S200, performing signal set field definition on the non-autonomous defined data, including inserting one or more of a signal number, a signal length identifier, a signal sequence identifier, a signal quantity identifier or control word information, and performing data domain segmentation and data flow path definition to obtain a pre-shaped non-autonomous defined data packet;

[0022] S300, performing data path decoding on the autonomously defined data or the pre-shaped non-autonomously defined data packet, and performing signal-level detailed disassembly on the data packet after the data path decoding to form a signal-level data packet to be sent;

[0023] S400, comprehensively evaluating the size of the signal-level data packet to be sent, determining a data forwarding transmission rule, loading the data packet according to the transmission rule, and obtaining a loaded data packet;

[0024] S500, performing priority analysis, transmission duration estimation and maximum delay tolerance estimation on the loaded data packet, forming the sending queue sequence linked list, and sending the loaded data packet according to the sending queue sequence linked list.

[0025] According to a third aspect of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned adaptive and efficient CAN and Ethernet translation method when loading and executing the computer program.

[0026] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the above-mentioned adaptive and efficient CAN and Ethernet translation method.

[0027] Beneficial effects of the present invention:

[0028] 1. The system of the present invention inserts feature identification codes into data, segments the data domain and defines the data flow path through the data pre-shaping module, which can replace the address with parameterization of data signals, realize the data capture and movement, avoid the traditional traversal query idea based on the address as the only principle, greatly shorten the calculation steps of the data forwarding routing process, reduce the forwarding communication overhead of non-demand data, and effectively improve the routing translation efficiency; at the same time, it provides an upper computer interface, extracts effective data packets when the gateway forwards, provides fast and convenient dynamic configuration and even has a certain adaptive routing processing function. There is no need to pay attention to the address information of the underlying signal during dynamic configuration, and the application layer and the underlying layer are decoupled. The dynamic configuration is efficient, the technical operability is simple and practical, and it is more in line with the actual needs of the application modification field;

[0029] 2. The system of the present invention uses a data composition analysis module to perform detailed signal-level disassembly of data to form signal-level data packets to be sent, ensuring that only necessary signal data is extracted and forwarded, reducing the transmission of invalid data, reducing communication overhead, and improving the efficiency of routing translation;

[0030] 3. The system of the present invention uses the data packet detection module to perform overall identification and analysis on the incoming data frame type, intelligently identify the frame type, frame quantity, forwarding urgency and time parameter requirements of the data packet, and the data pre-shaping module inserts the signal number, signal length identifier and control word information to ensure the integrity and correctness of the data, realize the refined management of the data, and avoid the low communication efficiency caused by the transmission of a large amount of invalid data in the traditional method;

[0031] 4. The system in the present invention dynamically defines routing types, signal combinations and routing paths through the host computer interface. Users can import dynamic configuration tables through the host computer interface to implement routing switching of signal combinations; import routing path definition linked tables to implement routing path planning, providing flexible dynamic configuration functions. Users can adjust routing strategies at any time according to actual needs without frequently modifying gateway software, simplifying system maintenance and upgrade processes;

[0032] 5. The system of the present invention uses the time monitoring module to analyze the priority of each data packet, estimate the transmission time and the maximum tolerance of delay, and form a sequential list of sending queues. The data sending module sends data packets in the sequential queue to ensure the orderly transmission of data, enhance the adaptability and reliability of the system, maintain efficient and stable communication in a complex and changeable network environment, and improve the overall performance of the system.

[0033] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0035] Figure 1 It is a schematic diagram of an adaptive and efficient CAN and Ethernet translation system in an embodiment of the present invention;

[0036] Figure 2 is a schematic diagram of an existing network architecture in an embodiment of the present invention;

[0037] Figure 3 is a schematic diagram of a signal set field in an embodiment of the present invention;

[0038] Figure 4 is a schematic diagram of a signal set field characterization rule in an embodiment of the present invention;

[0039] Figure 5 This is a schematic diagram of the first definition of a field of a data signal set that can be independently defined in an embodiment of the present invention;

[0040] Figure 6 This is a schematic diagram of the first definition of a field of a data signal set that can be independently defined in an embodiment of the present invention;

[0041] Figure 7 Schematic diagram of the shaping and slicing process of the data pre-shaping module in an embodiment of the present invention;

[0042] Figure 8 It is a schematic diagram of the data loading process of the data load analysis module in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0044] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0045] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as the general understanding of those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and will not be interpreted with an idealized or overly formal meaning unless specifically defined as in the embodiments of this application.

[0046] The existing technical solution is mainly a PDU routing solution for translating someip Ethernet protocol messages and CAN messages. For messages that need to be translated into CAN messages, they are first defined and preset according to the CAN message PDU, and then loaded into the payload data area of ​​Ethernet. The rule is mainly composed of CANID+Length+CAN Payload. If multiple CAN PDUs need to be output at one time, they are arranged and filled in sequence. The existing solution is relatively easy to understand, the function is relatively simple, and the software implementation is easy, but its routing strategy is too simple and rough, and the routing table needs to be defined in advance. Both the source network segment and the target network segment need to have self-defined conditions to execute. There are many constraints on the scope of application, which is not suitable for many places that require modification design or compatibility design; at the same time, it routes the payload of the entire CAN data packet, and its usability is not strong and the actual efficiency is not high. According to statistics, in the practical design process, the actual effective signal content may be scattered in multiple CAN data packets, but the existing conventional solution needs to be encapsulated into MAC frames through multiple CAN_PDUs, which has high communication overhead and low communication efficiency.

[0047] The present invention provides an adaptive and efficient CAN and Ethernet translation system, device and storage medium. The system inserts a feature identification code into data, segments and slices the data domain and defines the data flow path through a data pre-shaping module, and can parameterize data signals instead of addressing them, so as to achieve data capture and movement, avoid the traditional traversal query idea based on the address as the only principle, greatly shorten the calculation steps of the data forwarding routing process, reduce the forwarding communication overhead of non-demand data, and effectively improve the routing translation efficiency; at the same time, a host computer interface is provided, and effective data packets are extracted when the gateway forwards, so that fast and convenient dynamic configuration is provided and even has a certain adaptive routing processing function. During dynamic configuration, there is no need to pay attention to the address information of the underlying signal, so as to achieve decoupling of the application layer and the underlying layer, and the dynamic configuration is efficient, simple and practical in technical operability, and more in line with the actual needs of the application modification field.

[0048] Embodiment 1:

[0049] As a comparison, the embodiment of the present invention first provides an existing network architecture, such as Figure 2As shown, ECU C (Ethernet node) needs the data signals (a3, a5, a8, b4, b7) of communication node A (CAN node) and communication node B (CAN node); if the conventional market solution is followed, the central gateway will disassemble the PDU of the two data packets CANID (0x18FF2132) and CANID (0x18FF3921) from ECUA and ECUB, and directly load them into the data field of the Ethernet MAC frame. Among them, ECU C needs to traverse the content of the data field of all Ethernet MAC frames according to the definition of the required signal, find the required data signal (a3, a5, a8, b4, b7), and then pass the data to the upper layer. After the upper layer application obtains the data, it performs data calculation according to the application function program logic that has been written, and the function is realized. From this we can see that although the gateway is simple to operate, its efficiency is low. Its effective signal data is only the data signal (a3, a5, a8, b4, b7), which is 24 bits. However, the actual data volume that needs to be transmitted is at least two CAN headers (29bit+29bit) plus two CAN data domains (64bit+64bit). The actual effective communication efficiency is only 12.9%. This situation is only when the signal comes from two CAN packets. If there are three or more different CAN data packets, the actual effective communication efficiency will be lower. In the actual development process, it is usually less than 10%. Another shortcoming is that if the ECU upper software needs to call the required signal, it cannot be quickly retrieved. It usually needs to read each bit of data in the CANPDU in sequence through traversal operations until all the required data are read and copied and called back. Assuming that a certain data is at the end of the data domain, it needs to start from the first bit and read one by one until the required data is read out. Its processing efficiency is insufficient, which can be seen.

[0050] The method for defining a signal set field provided in this embodiment can extract signal features in batches and perform centralized preprocessing to quickly meet the needs of the receiving end. At the same time, it supports intelligent dynamic configuration to meet the needs of adaptive modification applications.

[0051] The following still takes the above demand case as an example. Figure 3 Figure 4 As shown, the signal set field is defined. This field only occupies 2 bytes and is used to characterize the starting address and length of the signal, so that the gateway can flexibly extract and integrate on demand. The specific explanation method is as follows:

[0052] 1) The control word occupies 3 bits and is used to represent the signal set rule. The specific meanings are as follows: 0 means 4-bit rule method, 1 means 2-bit rule method, 2 means mixed rule method, and 3 means 8-bit rule method. Among them, the mixed identification method is the most commonly used.

[0053] 2) The number of signals occupies 5 bits and is used to represent the number of signals contained in this CAN data packet;

[0054] 3) Corresponding signal length: This field is usually 1 byte long, and usually defines the length of 8 groups of signals in sequence; this field is controlled by the control word. If the control word is 0, 1, or 3, it can be defined according to the detailed rules; it should be noted that if it is 2, that is, the mixed rule method, it is necessary to pay attention to the continuous 000 being represented as a 2-bit length signal, the continuous 001 being represented as a 4-bit length signal, and the continuous 011 being represented as an 8-bit signal. The following table is an example of the characterization method for better understanding.

[0055] Through this method, CAN data can be effectively organized. At the gateway, only the open interface configuration is required to effectively combine multiple CANs. If the signals (a1, a3, a5) in ECU-A and (b6, b7, b9) in ECU-B are required, for the central gateway, only data capture is required, and the data corresponding to these six signals are loaded into the PDU of the MAC frame. At this time, the data effectively transmitted in the MAC frame is the valid data of ECU-C itself, and there is no other irrelevant data, and the communication overhead is greatly reduced. If the ECU on the demand side of the gateway is changed to another ECU, such as ECU-D, the required signal is (a3\a4\a5)(b6\b8), then it only needs to be configured on the gateway side through the host computer to input the unpacking capture code to achieve it. This example is only a translation and extraction case of 2 different CAN packets. If there are multiple CAN packets, the effect will be more obvious.

[0056] like Figure 5 Figure 6 As shown in the figure, if the source network segment data can be defined independently, when it is CAN or CANFD data, in its data domain, a signal collection field is defined, and the signal collection field contains the following contents: number of signals n, signal number array a, signal sequence b, signal length c array; all signal data are filled starting from byte0bit0 as the starting address. The function of this collection field is to greatly shorten the calculation steps of the data forwarding routing process and reduce the forwarding communication overhead of non-demand data; at the same time, it provides an upper computer interface to extract effective data packets when the gateway forwards, providing fast and convenient dynamic configuration and even having certain adaptive routing processing functions.

[0057] Embodiment 2:

[0058] like Figure 1As shown, based on Example 1, an embodiment of the present invention provides an adaptive and efficient CAN and Ethernet translation system, including: a data packet detection module, used to detect the incoming data packet and determine whether the data type is non-autonomous defined data or autonomous defined data; a data pre-shaping module, used to define the signal set field of the non-autonomous defined data, including inserting one or more of the signal number, signal length identifier, signal sequence identifier, signal quantity identifier or control word information, and performing data domain segmentation and data flow path definition. The specific process is as follows Figure 7 As shown; a data path analysis module is used to perform data path decoding on the autonomously defined data or the pre-shaped non-autonomously defined data packet; a data composition analysis module is used to perform detailed signal-level disassembly on the data packet after the data path decoding to form a signal-level data packet to be sent; a data load analysis module is used to comprehensively evaluate the size of the signal-level data packet to be sent, determine the data forwarding transmission rule, load the data packet according to the transmission rule, and obtain the loaded data packet. The specific process is as follows Figure 8 As shown; a data sending module is used to send the loaded data packet according to the sending queue sequence list.

[0059] Specifically, the system performs overall identification and analysis of data frame types through a data packet detection module; inserts feature identification codes into the data through a data pre-shaping module, segments the data domain, defines the data flow path, screens out valid data segments, and outputs basic data packets to be routed and forwarded; after the basic data packet flows to the data analysis path module, the data path is decoded, and this module outputs the flow path of the data flow to the destination; the data composition analysis module performs detailed signal-level disassembly of the data to form signal-level to-be-sent data packets; each to-be-sent data packet flows to a data load analysis module; the data load analysis module performs a comprehensive assessment of the data size; and then determines the data forwarding transmission rules, which usually adopt two modes: disassembly of multi-packet loading and transmission, and single-packet direct loading and transmission; when the to-be-sent data packet flows to the sender's mailbox, the time monitoring module performs priority analysis, transmission duration estimation, and maximum delay tolerance estimation on each data packet, and finally forms a sending queue sequence list; and the data sending module sends the data in sequence.

[0060] Embodiment 3:

[0061] The embodiment of the present invention provides an adaptive and efficient CAN and Ethernet translation method, comprising:

[0062] S100, performing data detection on the incoming data packet to determine whether the data type is non-autonomously defined data or autonomously defined data;

[0063] S200, performing signal set field definition on the non-autonomous defined data, including inserting one or more of a signal number, a signal length identifier, a signal sequence identifier, a signal quantity identifier or control word information, and performing data domain segmentation and data flow path definition to obtain a pre-shaped non-autonomous defined data packet;

[0064] S300, performing data path decoding on the autonomously defined data or the pre-shaped non-autonomously defined data packet, and performing signal-level detailed disassembly on the data packet after the data path decoding to form a signal-level data packet to be sent;

[0065] S400, comprehensively evaluating the size of the signal-level data packet to be sent, determining a data forwarding transmission rule, loading the data packet according to the transmission rule, and obtaining a loaded data packet;

[0066] S500, performing priority analysis, transmission duration estimation and maximum delay tolerance estimation on the loaded data packet, forming the sending queue sequence linked list, and sending the loaded data packet according to the sending queue sequence linked list.

[0067] An embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned adaptive and efficient CAN and Ethernet translation method when loading and executing the computer program.

[0068] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned adaptive and efficient CAN and Ethernet translation method.

[0069] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0070] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An adaptive and efficient CAN and Ethernet translation system, characterized in that: include: The data packet detection module is used to detect the incoming data packets and determine whether the data type is non-autonomously defined data or autonomously defined data; A data pre-shaping module, used to define the signal set field of the non-autonomous defined data, including inserting one or more of a signal number, a signal length identifier, a signal sequence identifier, a signal quantity identifier or a control word information, and performing data domain segmentation and data flow path definition to obtain a pre-shaped non-autonomous defined data packet; A data path analysis module, used for performing data path decoding on the autonomously defined data or the pre-shaped non-autonomously defined data packets; A data composition analysis module, used for performing detailed signal-level disassembly of the data packet decoded by the data path to form a signal-level data packet to be sent; A data load analysis module, used to comprehensively evaluate the size of the signal-level data packet to be sent, determine the data forwarding transmission rule, load the data packet according to the transmission rule, and obtain the loaded data packet; The data sending module is used to send the loaded data packet according to the sending queue sequence linked list.

2. The adaptive and efficient CAN and Ethernet translation system according to claim 1, characterized in that: A signal set field is defined in advance in the data field of the autonomously defined data.

3. The adaptive and efficient CAN and Ethernet translation system according to claim 1, characterized in that: The identification method of the data packet detection module includes frame start identification, frame end feature identification, frame ID header identification and frame cycle type identification.

4. The adaptive and efficient CAN and Ethernet translation system according to claim 2, characterized in that: The signal word in the signal set field is used to characterize the signal set rule, and the specific meanings include: 0 means 4-bit rule method, 1 means 2-bit rule method, 2 means mixed rule method and 3 means 8-bit rule method.

5. The adaptive and efficient CAN and Ethernet translation system according to claim 4, characterized in that: The signal length in the signal set field is controlled by the control word. If the control word is 0, i.e., the 4-bit rule method, 1, i.e., the 2-bit rule method, or 3, i.e., the 8-bit rule method, then the signal length can be defined according to the detailed rules; if the control word is 2, i.e., the mixed rule method, then continuous 000 is represented as a 2-bit length signal, continuous 001 is represented as a 4-bit length signal, and continuous 011 is represented as an 8-bit signal.

6. The adaptive and efficient CAN and Ethernet translation system according to claim 1, characterized in that: The data forwarding transmission rules include disassembling multi-packet loading and transmission and directly loading and transmission of a single packet.

7. An adaptive and efficient CAN and Ethernet translation system according to any one of claims 1-6, characterized in that: It also includes a time monitoring module, which is used to perform priority analysis, transmission time estimation and maximum delay tolerance estimation on the loaded data packets to form the sending queue sequence list.

8. An adaptive and efficient CAN and Ethernet translation method, characterized in that: include: S100, performing data detection on the incoming data packet to determine whether the data type is non-autonomously defined data or autonomously defined data; S200, performing signal set field definition on the non-autonomous defined data, including inserting one or more of a signal number, a signal length identifier, a signal sequence identifier, a signal quantity identifier or control word information, and performing data domain segmentation and data flow path definition to obtain a pre-shaped non-autonomous defined data packet; S300, performing data path decoding on the autonomously defined data or the pre-shaped non-autonomously defined data packet, and performing signal-level detailed disassembly on the data packet after the data path decoding to form a signal-level data packet to be sent; S400, comprehensively evaluating the size of the signal-level data packet to be sent, determining a data forwarding transmission rule, loading the data packet according to the transmission rule, and obtaining a loaded data packet; S500, performing priority analysis, transmission duration estimation and maximum delay tolerance estimation on the loaded data packet, forming the sending queue sequence linked list, and sending the loaded data packet according to the sending queue sequence linked list.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor loads and executes the computer program, the processor implements the adaptive and efficient CAN and Ethernet translation method as claimed in claim 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the adaptive and efficient CAN and Ethernet translation method as claimed in claim 8.

Citation Information

Patent Citations

  • Security gateway based on multi-channel CAN bus and Ethernet communication and communication method

    CN107426075A

  • Vehicle-mounted system control method, vehicle and storage medium

    CN114978801A

  • CAN signal analysis method, CAN signal generation method, CAN signal analysis equipment and storage medium

    CN116204477A

  • Vehicle data processing method and device, computer equipment and storage medium

    CN118368281A

  • Frame conversion apparatus for converting controller area network frame into ethernet frame and frame conversion method thereof

    US20140126584A1