Data conversion system of vehicle-mounted network
By designing the data conversion system of the CAN main module, protocol conversion module and on-board Ethernet main module in the vehicle system, the problem of low transmission rates between CAN data and on-board Ethernet data is solved, and faster communication and higher EMC electromagnetic properties.
Patent Information
- Application Number
- CN202420855050.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2034-04-23
AI Technical Summary
The prior art cannot effectively improve the transmission rate of CAN data and on-board Ethernet data in vehicle systems, resulting in the inability to meet the communication test requirements. At the same time, traditional Ethernet is costly and has low interoperability in EMC testing.
A data conversion system for in-vehicle network is designed, including CAN main module, protocol conversion module and in-vehicle Ethernet main module. CAN messages are sent through the CAN transceiver module and converted into in-vehicle Ethernet newspaper through the in-vehicle Ethernet converter module. To improve the data transmission rate, establish transmission channels through the gateway module, optimize electromagnetic compatibility performance.
It realizes fast and instant transmission of CAN data and on-board Ethernet data, improves the communication efficiency between the internal sensors and systems of the vehicle, and significantly improves the electromagnetic performance of on-board EMC.
Smart Images

Figure CN222128117U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the field of data conversion of vehicle-mounted networks, and in particular relates to a data conversion system for a vehicle-mounted network. Background Art
[0002] In vehicle networks, with the increase in data throughput, the traditional CAN bus can no longer meet the needs of data transmission, and Ethernet technology has gradually been applied to vehicle architecture. However, traditional Ethernet requires expensive cables and connectors to reduce electromagnetic interference for EMC (electromagnetic compatibility) testing. Based on this, through the improvement of physical layer technology, a single pair of UTP (unshielded twisted pair) and a dedicated connector are used to replace the traditional RJ45 network cable to reduce costs and line weight and provide electromagnetic compatibility.
[0003] The traditional CAN bus will not be replaced due to its high reliability, high real-time performance and wide application fields, and it complements the high-transmission automotive Ethernet. In the vehicle system, automotive Ethernet is used for the backbone network, and the CAN bus is used for the internal network of the ECU (electronic control unit). Communication testing requires the conversion of two different signals. However, there are few corresponding tools on the market that can convert the two protocols, and there is a problem of low standardization and interoperability, which cannot achieve 100% improvement in data transmission.
[0004] The patent number "CN201910832382.7" discloses a vehicle-mounted Ethernet data access device, which enables different types of bus nodes to access the vehicle-mounted Ethernet bus and transmit data through the vehicle-mounted Ethernet bus; however, the data transmission speed of this transmission method is slow and cannot meet the requirements of communication testing. Utility Model Content
[0005] The purpose of the utility model is to provide a data conversion system for an in-vehicle network, which solves the problem of converting CAN data and in-vehicle Ethernet data in the current vehicle system. Converting CAN signals into in-vehicle Ethernet signals can improve EMC function and efficiency, thereby effectively improving the convenience of communication within the automobile system.
[0006] In order to achieve the above utility model purpose, the technical solution adopted by the utility model is as follows:
[0007] A data conversion system for an in-vehicle network comprises a CAN main module, a protocol conversion module, and an in-vehicle Ethernet main module; the CAN main module comprises a CAN transceiver module and a host computer; the protocol conversion module comprises an in-vehicle Ethernet converter module; the in-vehicle Ethernet main module comprises an in-vehicle Ethernet transceiver module; one end of the CAN transceiver module is connected to the host computer, and the other end of the CAN transceiver module communicates with one end of the in-vehicle Ethernet converter module; the other end of the in-vehicle Ethernet converter module is connected to the in-vehicle Ethernet transceiver module;
[0008] The host computer is used to write CAN messages;
[0009] The CAN transceiver module is used to send the CAN message written by the host computer to the vehicle-mounted Ethernet converter module;
[0010] The vehicle Ethernet converter module is used to convert the CAN message into a vehicle Ethernet message;
[0011] The vehicle-mounted Ethernet transceiver module is used to receive the vehicle-mounted Ethernet message.
[0012] The utility model discloses a data conversion system for an on-vehicle network, which sends CAN messages through a CAN transceiver module and then converts the CAN messages into on-vehicle Ethernet messages through an on-vehicle Ethernet converter module, thereby solving the problem of converting CAN data and on-vehicle Ethernet data in the current vehicle system, improving the data transmission rate, making the communication between various sensors and systems inside the vehicle faster and more immediate, and largely breaking through the requirements of on-vehicle EMC electromagnetic performance.
[0013] Preferably, the data conversion system further comprises a gateway module; the other end of the CAN transceiver module is connected to one end of the gateway module; the other end of the gateway module is connected to one end of the vehicle Ethernet converter module;
[0014] The gateway module is used to establish a transmission channel between the CAN transceiver module and the vehicle-mounted Ethernet converter module.
[0015] Preferably, the data conversion system further includes a power supply module; the power supply module supplies power to the gateway module, the vehicle-mounted Ethernet converter module, and the vehicle-mounted Ethernet transceiver module respectively.
[0016] Preferably, the gateway module includes a first interface, a second interface, and a third interface; the gateway module communicates with the CAN transceiver module through the first interface; the gateway module communicates with the vehicle-mounted Ethernet converter module through the second interface; and the gateway module is electrically connected to the power supply module through the third interface.
[0017] Preferably, the vehicle-mounted Ethernet converter module includes a dip switch; the vehicle-mounted Ethernet transceiver module includes a host mode and a slave mode; the dip switch is used to change the vehicle-mounted Ethernet transceiver module to the host mode or the slave mode.
[0018] Preferably, when the on-board Ethernet transceiver module is in slave mode, the CAN transceiver module sends CAN messages to the on-board Ethernet converter module, and the on-board Ethernet transceiver module receives the on-board Ethernet messages converted by the on-board Ethernet converter module; when the on-board Ethernet transceiver module is in host mode, the on-board Ethernet transceiver module sends on-board Ethernet messages to the on-board Ethernet converter module, the on-board Ethernet converter module converts the on-board Ethernet messages into CAN messages, and the CAN transceiver module receives the CAN messages converted by the on-board Ethernet converter module.
[0019] Preferably, the vehicle-mounted Ethernet converter module includes a fourth interface; the vehicle-mounted Ethernet converter module is electrically connected to the power supply module via the fourth interface.
[0020] Preferably, the gateway module includes an access submodule; the gateway module configures the information transmission channel, port information, and address information required for the CAN message transmission through the access submodule.
[0021] Preferably, the gateway module also includes a storage chip; the storage chip is provided with a conversion protocol; the on-board Ethernet converter module includes an encapsulation protocol and an open source tool; the on-board Ethernet converter module encapsulates the CAN message into a traditional Ethernet message according to the encapsulation protocol; the on-board Ethernet converter module performs network packet capture on the traditional Ethernet message through the open source tool to obtain a data packet; the on-board Ethernet converter module parses the data packet according to the conversion protocol to obtain CAN message information.
[0022] Beneficial effects:
[0023] The utility model discloses a data conversion system for an on-vehicle network, which sends CAN messages through a CAN transceiver module and then converts the CAN messages into on-vehicle Ethernet messages through an on-vehicle Ethernet converter module, thereby solving the problem of converting CAN data and on-vehicle Ethernet data in the current vehicle system, improving the data transmission rate, making the communication between various sensors and systems inside the vehicle faster and more immediate, and largely breaking through the requirements of on-vehicle EMC electromagnetic performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 The figure is a structural block diagram of a data conversion system for an in-vehicle network according to the first embodiment;
[0025] Figure 2 The figure shows a schematic diagram of a gateway module interface of a data conversion system of an in-vehicle network according to the first embodiment;
[0026] Figure 3 The figure is a schematic diagram of a protocol conversion process of a data conversion system for an in-vehicle network according to the first embodiment;
[0027] Figure 4 The figure is a flow chart of a data conversion method for an in-vehicle network according to a second embodiment. DETAILED DESCRIPTION
[0028] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the specific implementation methods of the utility model will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the utility model. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.
[0029] The technical solution of the utility model is described in detail below with specific embodiments.
[0030] Embodiment 1
[0031] like Figure 1 As shown, this embodiment provides a data conversion system for an in-vehicle network, including a CAN main module, a protocol conversion module, and an in-vehicle Ethernet main module; the CAN main module includes a CAN transceiver module and a host computer; the protocol conversion module includes an in-vehicle Ethernet converter module; the in-vehicle Ethernet main module includes an in-vehicle Ethernet transceiver module; one end of the CAN transceiver module is connected to the host computer, and the other end of the CAN transceiver module communicates with one end of the in-vehicle Ethernet converter module; the other end of the in-vehicle Ethernet converter module is connected to the in-vehicle Ethernet transceiver module;
[0032] Host computer, used to write CAN messages;
[0033] CAN transceiver module, used to send CAN messages written by the host computer to the vehicle Ethernet converter module;
[0034] In-vehicle Ethernet converter module, used to convert CAN messages into in-vehicle Ethernet messages;
[0035] The vehicle Ethernet transceiver module is used to receive vehicle Ethernet messages.
[0036] Preferably, the data conversion system further comprises a gateway module; the other end of the CAN transceiver module is connected to one end of the gateway module; the other end of the gateway module is connected to one end of the vehicle Ethernet converter module;
[0037] The gateway module is used to establish the transmission channel between the CAN transceiver module and the vehicle Ethernet converter module.
[0038] Preferably, the data conversion system also includes a power supply module; the power supply module supplies power to the gateway module, the vehicle Ethernet converter module, and the vehicle Ethernet transceiver module respectively.
[0039] Preferably, Figure 2 As shown, the gateway module includes a CAN1 port, a CAN2 port, an RS-232 port, and a power port; the gateway module communicates with the CAN transceiver module through the CAN1 port and the CAN2 port; the gateway module communicates with the vehicle Ethernet converter module through the RS-232 port; and the gateway module is electrically connected to the power supply module through the power port.
[0040] Preferably, the vehicle-mounted Ethernet converter module includes a DIP switch; the vehicle-mounted Ethernet transceiver module includes a host mode and a slave mode; the DIP switch is used to change the vehicle-mounted Ethernet transceiver module to the host mode or the slave mode.
[0041] Preferably, when the on-board Ethernet transceiver module is in slave mode, the CAN transceiver module sends CAN messages to the on-board Ethernet converter module, and the on-board Ethernet transceiver module receives the on-board Ethernet messages converted by the on-board Ethernet converter module; when the on-board Ethernet transceiver module is in host mode, the on-board Ethernet transceiver module sends the on-board Ethernet messages to the on-board Ethernet converter module, the on-board Ethernet converter module converts the on-board Ethernet messages into CAN messages, and the CAN transceiver module receives the CAN messages converted by the on-board Ethernet converter module.
[0042] Preferably, the vehicle-mounted Ethernet converter module includes an MQS port; the vehicle-mounted Ethernet converter module is electrically connected to the power supply module via the MQS port.
[0043] Preferably, the gateway module includes an IP access interface; the gateway module configures the information transmission channel, port information, and IP information required for CAN message transmission through the IP access interface.
[0044] Preferably, the gateway module also includes a built-in chip; the built-in chip is provided with a conversion protocol; the on-board Ethernet converter module includes an encapsulation protocol and an open source tool; the on-board Ethernet converter module encapsulates the CAN message into a traditional Ethernet message according to the encapsulation protocol; the on-board Ethernet converter module performs network packet capture on the traditional Ethernet message through an open source tool to obtain a data packet; the on-board Ethernet converter module parses the data packet according to the conversion protocol to obtain CAN message information.
[0045] Specifically, the gateway module of this embodiment is a CAN to Ethernet gateway module; the power module is a 12V output lithium battery mobile power supply, which can be placed in a vehicle environment to ensure stable voltage output when external power supply is inconvenient.
[0046] Specifically, the vehicle Ethernet transceiver module of this embodiment is mainly used to control the transmission and reception of vehicle Ethernet message signals, and provide the entire system with a receiving / sending vehicle Ethernet message. Figure 1 As shown, it is connected to the vehicle Ethernet converter module and acts on the point-to-point conversion between T1 and TX at the physical layer. The vehicle Ethernet port supports: 100 / 1000BASE-T1, and the traditional Ethernet port supports 100 / 1000BASE-TX.
[0047] Specifically, one end of the vehicle Ethernet converter module of this embodiment is connected to a 12V power supply, and the other end is connected to the vehicle Ethernet transceiver module as described above, and the corresponding rate, master-slave mode, message frame format, etc. are adjusted according to its own DIP switch. The CAN transceiver module is connected to the host computer, sends CAN messages on the vehicle network CAN bus, and provides CAN messages for the entire system. This embodiment connects the vehicle Ethernet main module with the CAN main module through the gateway module to form the division of each functional module of the system.
[0048] Specifically, Figure 3 As shown, the CAN message sent by the CAN main module of this embodiment is connected to the gateway module PCAN-Ethernet Gateway FD DR through the CAN1 and CAN2 interfaces. The CAN protocol corresponds to pins 7 and 2, where pin 7 is CAN-H and pin 2 is CAN-L, which complies with the CiA international standard. In addition to the web interface configuration, it can also be accessed using the JSON interface. Figure 4 As shown, the data packets of the CAN bus are converted into Ethernet UDP / TCP packet formats according to the protocol encapsulation.
[0049] In actual operation, first connect the Power port of the gateway module, the MQS port of the vehicle Ethernet converter module, and the power interface of the vehicle Ethernet transceiver module to the power module to power on, and check the power indicator status of each module accordingly; then connect the CAN-H / CAN-L of the CAN bus respectively. At this time, two 120Ω terminal resistors need to be connected in parallel on the CAN bus; then use a standard RJ45 network cable to connect the LAN port of the gateway module and the TX interface of the vehicle Ethernet converter module respectively, and use the MATENET cable dedicated to the vehicle network to connect the CAN transceiver module and the T1 interface of the vehicle Ethernet converter module.
[0050] Specifically, the access submodule of the gateway module is an IP access interface.
[0051] Furthermore, in the data transmission mode, the host computer writes and sends CAN messages, enters the IP access interface of the gateway module, and the gateway module configures the transmission channel, port information, IP information, etc. required for CAN to Ethernet. Through open source tools, network packet capture is performed, and the obtained data packets are parsed according to the conversion protocol of the storage chip of the gateway module to parse the CAN information in the Ethernet message.
[0052] Furthermore, when the vehicle-mounted Ethernet transceiver module is in slave mode, the communication status is: slave node, 100M, traditional mode; at this time, each dip switch of the vehicle-mounted Ethernet converter module needs to be adjusted to the corresponding mode.
[0053] Specifically, a data conversion system for an in-vehicle network of this embodiment implements:
[0054] 1. CAN and automotive Ethernet protocol conversion: Develop a protocol converter to convert CAN messages into a format suitable for Ethernet, parse CAN information, and repackage it into data frames that comply with the Ethernet protocol.
[0055] 2. Data format conversion: The two protocols correspond to different data formats and structures, so data format conversion and rearrangement are required to ensure that the data frame is not modified or stored during the conversion process.
[0056] 3. Rate and timing processing: The transmission rate is different from the timing. It is necessary to ensure that the data transmission rate is completely matched to ensure the synchronization of message conversion.
[0057] 4. Network topology management: CAN is a bus topology, and automotive Ethernet is a point-to-point star topology, which is more complex in form and management. Therefore, it is necessary to ensure that Ethernet can effectively process CAN data.
[0058] 5. Security and reliability: During the conversion process, data integrity and confidentiality must be considered.
[0059] The utility model provides a vehicle network data conversion system which can solve the problem of converting CAN data and vehicle Ethernet data in the current vehicle system, improve the data transmission rate, make the communication between various sensors and systems inside the vehicle faster and more immediate, and largely break through the requirements of vehicle EMC electromagnetic performance.
[0060] Embodiment 2
[0061] This embodiment provides a data conversion method for an in-vehicle network, which is applied to a data conversion system for an in-vehicle network in the first embodiment; Figure 4 As shown, the data conversion method of the vehicle network of this embodiment includes the following steps:
[0062] Step S1. The host computer sends a CAN message to the CAN transceiver module;
[0063] Step S2. The CAN transceiver module encapsulates the CAN message into a traditional Ethernet message;
[0064] Step S3. The vehicle-mounted Ethernet converter module performs network packet capture on the traditional Ethernet message to obtain a data packet;
[0065] Step S4. The vehicle-mounted Ethernet converter module parses the data packet to obtain CAN message information;
[0066] Step S5. The vehicle-mounted Ethernet converter module converts the traditional Ethernet message into a vehicle-mounted Ethernet message according to the obtained CAN message information and inputs it into the vehicle-mounted Ethernet transceiver module.
[0067] Specifically, in step S2, the CAN transceiver module encapsulates the CAN message in the UDP / TCP message format.
[0068] Specifically, in step S3, the vehicle-mounted Ethernet converter module performs Ethernet protocol parsing on the UDP / TCP message by using an open source tool to capture packets.
[0069] Specifically, in step S5, the vehicle-mounted Ethernet transceiver module serves as the DUT.
[0070] A data conversion method for an in-vehicle network of this embodiment:
[0071] 1. In order to increase the data transmission rate and improve the data volume processing capability. Compared with the CAN protocol, automotive Ethernet has a larger bandwidth, which helps to support faster and more instant communication needs between various sensors and systems inside the vehicle. Therefore, it is more applicable in the field of advanced driver assistance systems and autonomous driving.
[0072] 2. Make EMC function more convenient. CAN and traditional Ethernet cannot have EMC function without expensive connectors and shielding equipment. Automotive Ethernet technology has made a breakthrough in the field of EMC. Therefore, converting CAN signals into automotive Ethernet signals improves EMC function and efficiency.
[0073] 3. Improve the convenience of data transmission within the integrated vehicle network. The vehicle field uses vehicle Ethernet as the backbone, and ECU acts as each subsystem unit. Through the design of this solution, the CAN and vehicle Ethernet message conversion and transmission are connected, effectively improving the convenience of communication within the vehicle system.
[0074] The above is a detailed description of an embodiment of a data conversion system for an in-vehicle network provided by the utility model. This article uses specific examples to illustrate the principles and implementation methods of the utility model. The description of the above embodiments is only used to help understand the core idea of the utility model. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the utility model, the utility model can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the claims of the utility model.
Claims
1. A data conversion system for an in-vehicle network, characterized in that: It includes a CAN main module, a protocol conversion module, and an in-vehicle Ethernet main module; the CAN main module includes a CAN transceiver module and a host computer; the protocol conversion module includes an in-vehicle Ethernet converter module; the in-vehicle Ethernet main module includes an in-vehicle Ethernet transceiver module; one end of the CAN transceiver module is connected to the host computer, and the other end of the CAN transceiver module communicates with one end of the in-vehicle Ethernet converter module; the other end of the in-vehicle Ethernet converter module is connected to the in-vehicle Ethernet transceiver module; The host computer is used to write CAN messages; The CAN transceiver module is used to send the CAN message written by the host computer to the vehicle-mounted Ethernet converter module; The vehicle Ethernet converter module is used to convert the CAN message into a vehicle Ethernet message; The vehicle-mounted Ethernet transceiver module is used to receive the vehicle-mounted Ethernet message.
2. The data conversion system according to claim 1, characterized in that: The data conversion system also includes a gateway module; the other end of the CAN transceiver module is connected to one end of the gateway module; the other end of the gateway module is connected to one end of the vehicle Ethernet converter module; The gateway module is used to establish a transmission channel between the CAN transceiver module and the vehicle-mounted Ethernet converter module.
3. The data conversion system according to claim 2, characterized in that: The data conversion system also includes a power supply module; the power supply module supplies power to the gateway module, the vehicle Ethernet converter module, and the vehicle Ethernet transceiver module respectively.
4. The data conversion system according to claim 3, characterized in that: The gateway module includes a first interface, a second interface, and a third interface; the gateway module communicates with the CAN transceiver module through the first interface; the gateway module communicates with the vehicle Ethernet converter module through the second interface; The gateway module is electrically connected to the power supply module via the third interface.
5. The data conversion system according to claim 2, characterized in that: The vehicle-mounted Ethernet converter module includes a dip switch; the vehicle-mounted Ethernet transceiver module includes a host mode and a slave mode; the dip switch is used to change the vehicle-mounted Ethernet transceiver module to the host mode or the slave mode.
6. The data conversion system according to claim 5, characterized in that: When the vehicle-mounted Ethernet transceiver module is in slave mode, the CAN transceiver module sends CAN messages to the vehicle-mounted Ethernet converter module, and the vehicle-mounted Ethernet transceiver module receives the vehicle-mounted Ethernet messages converted by the vehicle-mounted Ethernet converter module.
7. The data conversion system according to claim 5, characterized in that: When the vehicle-mounted Ethernet transceiver module is in the host mode, the vehicle-mounted Ethernet transceiver module sends the vehicle-mounted Ethernet message to the vehicle-mounted Ethernet converter module, the vehicle-mounted Ethernet converter module converts the vehicle-mounted Ethernet message into a CAN message, and the CAN transceiver module receives the CAN message converted by the vehicle-mounted Ethernet converter module.
8. The data conversion system according to claim 3, characterized in that: The vehicle-mounted Ethernet converter module includes a fourth interface; the vehicle-mounted Ethernet converter module is electrically connected to the power supply module via the fourth interface.
9. The data conversion system according to claim 2, characterized in that: The gateway module includes an access submodule; the gateway module configures the information transmission channel, port information, and address information required for the CAN message transmission through the access submodule.
10. The data conversion system according to claim 9, characterized in that: The gateway module also includes a storage chip; the storage chip is provided with a conversion protocol; the vehicle-mounted Ethernet converter module includes an encapsulation protocol and an open source tool; the vehicle-mounted Ethernet converter module encapsulates the CAN message into a traditional Ethernet message according to the encapsulation protocol; the vehicle-mounted Ethernet converter module performs network packet capture on the traditional Ethernet message through the open source tool to obtain a data packet; the vehicle-mounted Ethernet converter module parses the data packet according to the conversion protocol to obtain CAN message information.
