Communication verification method, device, vehicle and storage medium for vehicle-mounted central processing unit

By implementing a node verification method with loopback connections in the vehicle's central processing unit, the high cost of testing the on-board controller's wired communication is resolved, enabling efficient function monitoring and communication verification.

CN119299251BActive Publication Date: 2025-10-03GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410939296.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2025-10-03
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

In the prior art, wired communication testing of vehicle-mounted controllers has high requirements and high costs, and lacks efficient and low-cost testing methods.

Method used

Multiple Ethernet nodes, CAN nodes, and LIN nodes in the vehicle's central processing unit are looped back through cables to generate and send target data packets and messages, and communication verification is performed using the host computer.

Benefits of technology

This improves the reliability of functional monitoring of the vehicle's central processing unit and the efficiency of communication verification without the need for additional experimental equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299251B_ABST
    Figure CN119299251B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a communication verification method, device, vehicle and storage medium for a vehicle-mounted central processing unit. The method comprises: receiving a test signal sent by a host computer, the test signal including at least one of an Ethernet data packet, a CAN message and a LIN message; generating an output signal based on the test signal, the output signal including at least one of a target Ethernet data packet, a target CAN message and a target LIN message, wherein the target Ethernet data packet is an Ethernet data packet output by the Ethernet communication module of the vehicle-mounted central processing unit after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the vehicle-mounted central processing unit in sequence and is connected in a loop based on a cable; sending the output signal to the host computer so that the host computer performs communication verification on the vehicle-mounted central processing unit based on the test signal and the output signal. Through the above method, the communication nodes in the vehicle-mounted central processing unit are looped back through cables, thereby improving the efficiency of communication verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of vehicle technology, and specifically relates to a communication verification method, device, vehicle and storage medium for a vehicle-mounted central processing unit. Background Art

[0002] With the increase of wired communication of vehicle controllers, such as Ethernet communication, CAN (Controller Area Network) communication, LIN (Local Interconnect Network) communication, etc., the requirements for wired communication testing of vehicle controllers are becoming higher and higher, so an efficient and low-cost wired communication detection is needed. Summary of the Invention

[0003] In view of the above problems, the present application proposes a communication verification method, device, vehicle and storage medium for a vehicle-mounted central processing unit to improve the above problems.

[0004] In the first aspect, an embodiment of the present application provides a communication verification method for an on-board central processing unit, the method comprising: receiving a test signal sent by a host computer, the test signal including at least one of an Ethernet data packet, a CAN message and a LIN message; generating an output signal based on the test signal, the output signal including at least one of a target Ethernet data packet, a target CAN message and a target LIN message, wherein the target Ethernet data packet is an Ethernet data packet output by the Ethernet communication module of the on-board central processing unit after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the on-board central processing unit for loop-back connection based on cables; the target CAN message is a CAN message output by the CAN communication module after the CAN message passes through multiple CAN nodes in the CAN communication module of the on-board central processing unit for loop-back connection based on cables; the target LIN message is a LIN message output by the LIN communication module after the LIN message passes through multiple LIN nodes in the LIN communication module of the on-board central processing unit for loop-back connection based on cables; sending the output signal to the host computer so that the host computer performs communication verification on the on-board central processing unit based on the test signal and the output signal.

[0005] In a second aspect, an embodiment of the present application provides a communication verification system for an on-board central processing unit, the system comprising: an on-board central processing unit for receiving a test signal sent by a host computer, wherein the test signal comprises at least one of an Ethernet data packet, a CAN message, and a LIN message; the on-board central processing unit is further configured to generate an output signal based on the test signal, wherein the output signal comprises at least one of a target Ethernet data packet, a target CAN message, and a target LIN message, wherein the target Ethernet data packet is the Ethernet data packet that passes through multiple Ethernet nodes connected in a loop based on a cable in the Ethernet communication module of the on-board central processing unit in sequence. After the test signal is detected, the Ethernet data packet output by the Ethernet communication module is detected; the target CAN message is the CAN message output by the CAN communication module after the CAN message passes through multiple CAN nodes in the CAN communication module of the on-board central processing unit for loop-back connection based on cables; the target LIN message is the LIN message output by the LIN communication module after the LIN message passes through multiple LIN nodes in the LIN communication module of the on-board central processing unit for loop-back connection based on cables; the host computer is used to receive the output signal and perform communication verification on the on-board central processing unit based on the test signal and the output signal.

[0006] In a third aspect, an embodiment of the present application provides a communication verification device for an on-board central processing unit, the device comprising: a signal receiving unit for receiving a test signal sent by a host computer, wherein the test signal comprises at least one of an Ethernet data packet, a CAN message and a LIN message; a signal generating unit for generating an output signal based on the test signal, wherein the output signal comprises at least one of a target Ethernet data packet, a target CAN message and a target LIN message, wherein the target Ethernet data packet is the Ethernet data packet that passes through a plurality of Ethernet nodes connected by a loop-back cable in the Ethernet communication module of the on-board central processing unit in sequence. The Ethernet data packet output by the module; the target CAN message is the CAN message output by the CAN communication module after the CAN message passes through multiple CAN nodes in the CAN communication module of the on-board central processing unit for loop-back connection based on cables; the target LIN message is the LIN message output by the LIN communication module after the LIN message passes through multiple LIN nodes in the LIN communication module of the on-board central processing unit for loop-back connection based on cables; a signal sending unit is used to send the output signal to the host computer, so that the host computer performs communication verification on the on-board central processing unit based on the test signal and the output signal.

[0007] In a fourth aspect, an embodiment of the present application provides a vehicle comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0008] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, wherein the above method is executed when the program code is run.

[0009] The embodiment of the present application provides a communication verification method, device, vehicle and storage medium for a vehicle-mounted central operation unit. First, a test signal sent by a host computer is received, the test signal including at least one of an Ethernet data packet, a CAN message and a LIN message, then based on the test signal, an output signal is generated, the output signal including at least one of a target Ethernet data packet, a target CAN message and a target LIN message, wherein the target Ethernet data packet is an Ethernet data packet output by the Ethernet communication module of the vehicle-mounted central operation unit after the Ethernet data packet sequentially passes through multiple Ethernet nodes connected in a loop back based on a cable in the Ethernet communication module of the vehicle-mounted central operation unit; the target CAN message is a CAN message output by the CAN communication module after the CAN message sequentially passes through multiple CAN nodes connected in a loop back based on a cable in the CAN communication module of the vehicle-mounted central operation unit; the target LIN message is a LIN message output by the LIN communication module after the LIN message sequentially passes through multiple LIN nodes connected in a loop back based on a cable in the LIN communication module of the vehicle-mounted central operation unit, and finally the output signal is sent to the host computer so that the host computer performs communication verification on the vehicle-mounted central operation unit based on the test signal and the output signal. Through the above method, multiple Ethernet nodes, multiple CAN nodes and multiple LIN nodes in the vehicle-mounted central processing unit are looped back using cables, so that loopback experiments on Ethernet data links, CAN data links and LIN data links can be realized without adding additional experimental equipment, thereby improving the reliability of functional monitoring of the vehicle-mounted central processing unit and improving the communication verification efficiency of the vehicle-mounted central processing unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0011] Figure 1A schematic diagram illustrating an application scenario of a communication verification method for a vehicle-mounted central processing unit provided in an embodiment of the present application is shown;

[0012] Figure 2 A schematic diagram of the structure of a vehicle-mounted central processing unit provided in one embodiment of the present application is shown;

[0013] Figure 3 A connection diagram of a communication verification system for a vehicle-mounted central processing unit provided by an embodiment of the present application is shown;

[0014] Figure 4 A flow chart of a communication verification method for a vehicle-mounted central processing unit proposed in one embodiment of the present application is shown;

[0015] Figure 5 A flowchart of a communication verification method for a vehicle-mounted central processing unit proposed in another embodiment of the present application is shown;

[0016] Figure 6 A flow chart of a communication verification system for a vehicle-mounted central processing unit proposed in another embodiment of the present application is shown;

[0017] Figure 7 A structural block diagram of a communication verification device for a vehicle-mounted central processing unit proposed in an embodiment of the present application is shown;

[0018] Figure 8 A structural block diagram of a vehicle for executing the communication verification method of the vehicle-mounted central processing unit according to an embodiment of the present application is shown;

[0019] Figure 9 A storage unit in an embodiment of the present application is shown for storing or carrying program code for implementing a communication verification method of a vehicle-mounted central processing unit according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0021] The present invention provides a method, apparatus, vehicle, and storage medium for verifying the communication of an on-board central processing unit (CCU). By using cables to loop back multiple Ethernet nodes, multiple CAN nodes, and multiple LIN nodes in the CCU, loopback experiments can be performed on Ethernet, CAN, and LIN data links without requiring additional experimental equipment. This improves the reliability of monitoring the function of the CCU and the efficiency of verifying the communication of the CCU.

[0022] The following describes the application environment of the communication verification method of the vehicle-mounted central processing unit provided by the present invention:

[0023] See also Figure 1 The communication verification method of the vehicle-mounted central operation unit provided by the embodiment of the present invention can be applied to a communication verification system 300 , which may include a vehicle-mounted central operation unit 310 and a host computer 320 .

[0024] like Figure 2 As shown, the vehicle-mounted central processing unit 310 may include a CAN communication module 311, an Ethernet communication module 312, a LIN communication module 313, an SOC / MCU 314, and other modules 315. The CAN communication module may include multiple CAN nodes, each of which may be understood as a CAN transceiver; the Ethernet communication module may include multiple Ethernet nodes, each of which may be understood as an on-board Ethernet switch or an Ethernet transceiver (PHY); and the LIN communication module may include multiple LIN nodes, each of which may be understood as a LIN transceiver. Optionally, when the Ethernet node is represented as an Ethernet switch, the Ethernet switch may be 100Base-T1 or 1000Base-T1. Optionally, the CAN communication module, Ethernet communication module, LIN communication module, and other modules in the vehicle-mounted central processing unit are all connected to the SOC / MCU via a CAN bus.

[0025] In the embodiment of the present application, the connection relationship between the vehicle-mounted central processing unit 310 and the host computer 320 can be specifically as follows: Figure 3 As shown. Figure 3 It may include a host computer, an on-board central processing unit (DUT), 2 an on-board Ethernet switch (SWITCH), 3 a microcontroller or a system-on-a-chip SOC (System-on-a-Chip), 4 an Ethernet transceiver PHY, 5 a CAN transceiver, 6 a LIN transceiver, 7 an Ethernet loopback cable, 8 a CAN loopback cable, 9 a LIN loopback cable, 100 / 1000Base-T1 to USB test tool 10 and 11 a CAN (FD) card.

[0026] The Ethernet loopback cable is used to connect the multi-node Ethernet ports of the vehicle's central processing unit. Network ports not connected externally with cables are interconnected within the switch using VLANs. Finally, the cables are connected to the host computer via the SOC 100BASE-T1 to USB or 1000BASE-T1 to USB test tool within the vehicle's central processing unit. Non-automotive-grade models can be used, offering the advantage of lower price. Based on past experience, non-automotive-grade Ethernet test tools meet test reliability requirements. CAN loopback cables are used to connect the multi-node CAN ports of the vehicle's central processing unit, while LIN loopback cables are used to connect the multi-node LIN ports of the vehicle's central processing unit. The multi-channel LIN data loopback is ultimately received by the SOC within the vehicle's central processing unit, forwarded to the CAN channel, and finally connected to the CAN (FD) card and then to the host computer via the final CAN channel of the loopback harness.

[0027] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0028] See also Figure 4 , an embodiment of the present application provides a communication verification method for a vehicle-mounted central processing unit, the method comprising:

[0029] Step S110: receiving a test signal sent by a host computer, wherein the test signal includes at least one of an Ethernet data packet, a CAN message, and a LIN message.

[0030] In the embodiment of the present application, the host computer acts as a detection device that transmits at least one of the following: Ethernet data packets, CAN messages, and LIN messages; receives at least one of the following: target Ethernet data packets, target CAN messages, and target LIN messages; and displays whether the Ethernet data packets, CAN messages, and LIN messages have been lost or delayed. Based on the displayed information, the host computer determines whether the Ethernet communication test, CAN communication test, and LIN communication test of the vehicle-mounted central processing unit have passed. The host computer primarily sends test signals through the host computer software, which integrates basic functions such as test sequence management, test instruction control, test result judgment, and test data recording.

[0031] As a method, when it is detected that the host computer is powered on, a test signal sent by the host computer is received. The test signal is a signal sent by the host computer for communication verification of the on-board central operation unit. The test signal can be at least one of an Ethernet data packet, a CAN message, and a LIN message, that is, the test signal can be an Ethernet data packet; or, the test signal can be a CAN message; or, the test signal can be a LIN message; or, the test signal can be an Ethernet data packet and a CAN message; or, the test signal can be an Ethernet data packet and a LIN message; or, the test signal can be a CAN message and a LIN message; or, the test signal can be an Ethernet data packet, a CAN message, and a LIN message. The Ethernet data packet refers to a data packet used to perform Ethernet communication verification on the on-board central operation unit; the CAN message refers to a message used to perform CAN communication verification on the on-board central operation unit; and the LIN message refers to a message used to perform LIN communication verification on the on-board central operation unit.

[0032] Furthermore, after the host computer is powered on and started, it will automatically send a test signal to the on-board central processing unit. When the host computer automatically sends a test signal to the on-board central processing unit, it can send a preset number of test signals according to a preset period. Among them, the preset period can be understood as a pre-set period for sending test signals, that is, it can be understood as sending a test signal once every preset period; the preset number can be understood as a pre-set number of test signals used to determine the number of test signals to be sent to the on-board central processing unit, that is, it can be understood as the number of test signals that the host computer needs to send at one time, or it can be understood as the total number of test signals that the host computer needs to send, and no specific limitation is made here.

[0033] Optionally, in the case where the test signal includes at least two types of data, the preset periods and preset quantities of the at least two types of data included in the test signal may be set to be the same or different.

[0034] Optionally, when the host computer automatically sends a test signal to the onboard central processing unit, it can send the test signal to the onboard central processing unit according to a predetermined communication matrix correspondence. The communication matrix specifies all signals to be sent and received by each Ethernet node, CAN node, and LIN node, including signal format, sequence number, signal content and meaning, data range, period, etc. In this embodiment, the test signal corresponding to each communication node can be directly parsed according to the predetermined communication matrix correspondence, facilitating control and comparison by the host computer.

[0035] Step S120: generating an output signal based on the test signal, wherein the output signal includes at least one of a target Ethernet data packet, a target CAN message, and a target LIN message.

[0036] Among them, the target Ethernet data packet is the Ethernet data packet output by the Ethernet communication module of the on-board central processing unit after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the on-board central processing unit for loop-back connection based on cables; the target CAN message is the CAN message output by the CAN communication module of the on-board central processing unit after the CAN message passes through multiple CAN nodes in the CAN communication module of the on-board central processing unit for loop-back connection based on cables; the target LIN message is the LIN message output by the LIN communication module of the on-board central processing unit after the LIN message passes through multiple LIN nodes in the LIN communication module of the on-board central processing unit for loop-back connection based on cables.

[0037] In the embodiment of the present application, the target Ethernet data packet corresponds to the Ethernet data packet, the target CAN message corresponds to the CAN message, and the target LIN message corresponds to the LIN message. That is, the generated output signal will include as many types of data as the test signal includes.

[0038] It can be seen that the vehicle-mounted central processing unit includes 14 CAN channels, 4 LIN channels, 4 100Base-T1 channels, and 7 1000Base-T1 channels. The 14-channel CAN channel is equivalent to the CAN communication module in the embodiment of the present application, with multiple CAN nodes corresponding one-to-one to the 14 CAN channels, i.e., one CAN node corresponds to one CAN channel; the 4-channel LIN channel is equivalent to the LIN communication module in the embodiment of the present application, with multiple LIN nodes corresponding one-to-one to the 4-channel LIN channel, i.e., one LIN node corresponds to one LIN channel; the 4-channel 100Base-T1 channel and the 7-channel 1000Base-T1 channel are equivalent to the Ethernet communication module in the embodiment of the present application, with the 4-channel 100Base-T1 channel and the 7-channel 1000Base-T1 channel corresponding one-to-one to multiple Ethernet nodes, i.e., one Ethernet node corresponds to one 100Base-T1 channel or one 1000Base-T1 channel.

[0039] Furthermore, an Ethernet node can be understood as an Ethernet transceiver, a CAN node can be understood as a CAN transceiver, and a LIN node can be understood as a LIN transceiver. Ethernet transceivers are commonly used with 100Base-T1 or 1000Base-T1 Ethernet transceivers; CAN transceivers commonly used are standard high-speed CAN transceivers and CANFD transceivers, which are used to convert between the MCU's digital signals and the CAN bus's analog signals; and LIN transceivers are used to convert between the MCU's digital signals and the LIN bus's analog signals. The MCU is the main processor of the vehicle's central processing unit, which exchanges data with the switch or Ethernet transceiver via the Ethernet data bus.

[0040] The loopback connection in the embodiment of the present application refers to connecting different communication nodes in pairs through a physical cable. Multiple Ethernet nodes can be looped through an Ethernet loopback cable, multiple CAN nodes can be looped through a CAN loopback cable, and multiple LIN nodes can be connected for communication through a LIN loopback line. Wherein, the Ethernet loopback cable can be a general-purpose cable for vehicle-mounted Ethernet, for connecting the Ethernet port of SWITCH or the MDI (medium-dependent) interface of the Ethernet transceiver, and the Ethernet port is a pair of differential signal lines, and an Ethernet node is connected to another Ethernet node in a twisted pair; the CAN loopback cable can be an ordinary twisted pair cable, for connecting the CAN port of the vehicle-mounted central operation unit, i.e., CAN_H and CAN_L, and the CAN port is a pair of differential signal lines, and a CAN node is connected to another CAN node in a twisted pair; the LIN loopback cable can be an ordinary single-line cable, for connecting the LIN port of the vehicle-mounted central operation unit, and the LIN port is a single signal line, and a LIN node is connected to another LIN node with a pair of twisted pairs.

[0041] Optionally, in an embodiment of the present application, after the on-board central processing unit receives a test signal, different test signals can be sent to different communication modules in the on-board central processing unit through the SOC / MCU in the on-board central processing unit, so that different communication modules can generate different output signals.

[0042] Step S130: Sending the output signal to the host computer, so that the host computer performs communication verification on the vehicle-mounted central processing unit based on the test signal and the output signal.

[0043] In an embodiment of the present application, communication verification may include at least one of Ethernet communication verification, CAN communication verification, and LIN communication verification. The specific type of verification performed mainly depends on the data type included in the test signal sent by the host computer.

[0044] Specifically, when the host computer performs communication verification on the on-board central processing unit based on the test signal and the output signal, the host computer can compare the number and period of the output signal with the number of output signals to verify the communication of the on-board central processing unit. If the number and period of the two are the same, it can be determined that the communication verification of the on-board central processing unit has passed; otherwise, it can be determined that the communication verification of the on-board central processing unit has failed. For example, when the test signal is an Ethernet data packet and the output signal is a target Ethernet data packet, the number of data packets included in the Ethernet data packet and the target Ethernet data packet, as well as the period of the Ethernet data packet and the target Ethernet data packet can be compared; if the number and period of data packets corresponding to the Ethernet data packet and the target Ethernet data packet are the same, it can be determined that the Ethernet communication verification of the on-board central processing unit has passed; otherwise, it can be determined that the Ethernet communication verification of the on-board central processing unit has failed.

[0045] Optionally, in the embodiment of the present application, multiple communication verifications of the vehicle-mounted central processing unit can be performed simultaneously or in a certain order, which is not specifically limited here.

[0046] As one approach, if the multiple communication verifications of the on-board central processing unit are performed in a certain order, the multiple communication verifications of the on-board central processing unit can be performed sequentially according to the order of the test signals sent by the host computer. For example, if the order of the test signals sent by the host computer is: CAN message - Ethernet data packet - LIN message, then the order of communication verification of the on-board central processing unit is: CAN communication verification - Ethernet communication verification - LIN communication verification.

[0047] As another approach, if the multiple communication verifications for the on-board central processing unit are performed in a certain order, the multiple communication verifications can be performed sequentially according to the order of the output signals received by the host computer. For example, if the output signals received by the host computer are in the order of CAN message, LIN message, and Ethernet data packet, then the order of communication verification for the on-board central processing unit is: CAN communication verification, LIN communication verification, and Ethernet communication verification.

[0048] The present application provides a communication verification method for a vehicle-mounted central processing unit, which uses cables to loop back multiple Ethernet nodes, multiple CAN nodes, and multiple LIN nodes in the vehicle-mounted central processing unit, thereby realizing loopback experiments on Ethernet data links, CAN data links, and LIN data links without adding additional experimental equipment, thereby improving the reliability of functional monitoring of the vehicle-mounted central processing unit and improving the communication verification efficiency of the vehicle-mounted central processing unit.

[0049] See also Figure 5, an embodiment of the present application provides a communication verification method for a vehicle-mounted central processing unit, the method comprising:

[0050] Step S210: receiving an Ethernet data packet sent by the host computer through the Ethernet communication module; and / or receiving a CAN message sent by the host computer through the CAN communication module; and / or receiving a LIN message sent by the host computer through the LIN communication module.

[0051] In an embodiment of the present application, the Ethernet communication module is a module used to process Ethernet data packets in the test signal sent by the host computer; the CAN communication module is a module used to process CAN messages in the test signal sent by the host computer; and the LIN communication module is a module used to process LIN messages in the test signal sent by the host computer.

[0052] When the host computer sends a test signal to the onboard central processing unit, the test signal can first be received by the MCU / SOC in the onboard central processing unit. The MCU / SOC then identifies the data type contained in the test signal and can then send different types of test signals to different communication modules. Specifically, if the test signal includes an Ethernet data packet, the Ethernet data packet is sent to the Ethernet communication module; if the test signal includes a CAN message, the CAN message is sent to the CAN communication module; if the test signal includes a LIN message, the LIN message is sent to the LIN communication module.

[0053] Step S220: Generate a target Ethernet data packet based on the Ethernet data packet; and / or generate a target CAN message based on the CAN message; and / or generate a target LIN message based on the LIN message.

[0054] In an embodiment of the present application, if the test signal is an Ethernet data packet, the output signal is the target Ethernet data packet; if the test signal is a CAN message, the output signal is the target CAN message; if the test signal is a LIN message, the output signal is the target LIN message.

[0055] Step S230: Sending a target Ethernet data packet to the host computer through the Ethernet communication module, so that the host computer performs Ethernet communication verification on the vehicle-mounted central processing unit based on the Ethernet data packet and the target Ethernet data packet.

[0056] In an embodiment of the present application, when the output signal is a target Ethernet data packet, the Ethernet communication module can transmit the target Ethernet data packet to a host computer. After the host computer receives the target Ethernet data packet, it can perform Ethernet communication verification on the vehicle-mounted central processing unit based on the Ethernet data packet and the target Ethernet data packet. Specifically, if the number and period of the Ethernet data packet and the target Ethernet data packet are the same, it can be determined that there is no packet loss or delay in the Ethernet data packet, and the Ethernet communication verification of the vehicle-mounted central processing unit can be determined to have passed. Otherwise, it can be determined that there is packet loss or delay in the Ethernet data packet, and the Ethernet communication verification of the vehicle-mounted central processing unit can be determined to have failed.

[0057] As a method, the target Ethernet data packet is sent to the Ethernet to USB test tool through the Ethernet communication module, so that the Ethernet to USB test tool forwards the target Ethernet data packet to the host computer, so that the host computer performs Ethernet communication verification on the on-board central processing unit based on the Ethernet data packet and the target Ethernet data packet, wherein the Ethernet communication module, the Ethernet to USB test tool and the host computer are connected via an Ethernet loopback cable.

[0058] Among them, Ethernet to USB test tools are generally divided into two types: one is a 100Base-T1 to USB test tool, and the other is a 1000Base-T1 to USB test tool; they are used to connect any Ethernet port in the vehicle's central processing unit to the host computer to transmit and receive Ethernet data packets.

[0059] Through the aforementioned Figure 3 It can be seen that the Ethernet communication module and the host computer can be connected through the Ethernet to USB test tool. Therefore, in this case, when the host computer sends an Ethernet data packet to the Ethernet communication module, it can first send the Ethernet data packet to the Ethernet to USB test tool, and then the Ethernet to USB test tool sends the Ethernet data packet to the Ethernet communication module; if the Ethernet communication module needs to return the target Ethernet data packet to the host computer, it can first send the target Ethernet data packet to the Ethernet to USB test tool, and then the Ethernet to USB test tool sends the target Ethernet data packet to the host computer.

[0060] Step S240: Sending a target CAN message to the host computer through the CAN communication module, so that the host computer performs CAN communication verification on the vehicle-mounted central processing unit based on the CAN message and the target CAN message.

[0061] In an embodiment of the present application, when the output signal is a target CAN message, the CAN communication module can send the target CAN message to the host computer. After the host computer receives the target CAN message, it can perform CAN communication verification on the on-board central processing unit based on the CAN message and the target CAN message. Specifically, if the number and period of the CAN message and the target CAN message are the same, it can be determined that there is no packet loss or delay in the CAN message, and the CAN communication verification of the on-board central processing unit can be determined to have passed. Otherwise, it can be determined that there is packet loss or delay in the CAN message, and the CAN communication verification of the on-board central processing unit can be determined to have failed.

[0062] As a method, the target CAN message is sent to the CAN card through the CAN communication module, so that the CAN card forwards the target CAN message to the host computer, so that the host computer performs CAN communication verification on the on-board central processing unit based on the CAN message and the target CAN message, wherein the CAN communication module, the CAN card and the host computer are connected via a CAN loop cable.

[0063] Among them, the CAN card is used to connect a CAN communication port in the vehicle's central processing unit with the host computer to receive and send CAN (FD) messages.

[0064] Through the aforementioned Figure 3 It can be known that the CAN communication module and the host computer can be connected through a CAN card. Therefore, in this case, when the host computer sends a CAN message to the CAN communication module, it can first send the CAN message to the CAN card, and then the CAN card sends the CAN message to the CAN communication module; if the CAN communication module needs to return the target CAN message to the host computer, it can first send the target CAN message to the CAN card, and then the CAN card sends the target CAN message to the host computer.

[0065] Step S250: Sending a target LIN message to the host computer through the LIN communication module, so that the host computer performs LIN communication verification on the vehicle-mounted central processing unit based on the LIN message and the target LIN message.

[0066] In an embodiment of the present application, when the output signal is a target LIN message, the LIN communication module can send the target LIN message to the host computer. After the host computer receives the target LIN message, it can perform LIN communication verification on the on-board central processing unit based on the LIN message and the target LIN message. Specifically, if the number and period of the LIN message and the target LIN message are the same, it can be determined that there is no packet loss or delay in the LIN message, and the LIN communication verification of the on-board central processing unit can be determined to have passed. Otherwise, it can be determined that there is packet loss or delay in the LIN message, and the LIN communication verification of the on-board central processing unit can be determined to have failed.

[0067] As a method, the target LIN message is sent to the microcontroller of the on-board central processing unit through the LIN communication module, so that the microcontroller forwards the target LIN message to the CAN communication module; the target LIN message is sent to the CAN card through the CAN communication module, so that the CAN card forwards the target LIN message to the host computer, so that the host computer performs LIN communication verification on the on-board central processing unit based on the LIN message and the target LIN message.

[0068] Through the aforementioned Figure 3 It can be known that the LIN communication module and the host computer can be connected through the CAN card. Therefore, in this case, when the host computer sends a LIN message to the LIN communication module, it can first send the LIN message to the CAN card, and then the CAN card sends the LIN message to the LIN communication module; if the LIN communication module needs to return the target LIN message to the host computer, it can first send the target LIN message to the CAN card, and then the CAN card sends the target LIN message to the host computer.

[0069] When the LIN communication module sends the target LIN message to the CAN card, it needs to first send the target LIN message to the SOC / MCU inside the vehicle's central processing unit, then forward it to the CAN channel, and finally connect it to the CAN card and then to the host computer through the final CAN communication connection of the loopback harness.

[0070] Through the aforementioned Figure 3As can be seen, the CAN (FD0) card is connected to a CAN (FD) port on the vehicle's central processing unit (CPU). The remaining CAN ports are interconnected with cables, and the LIN ports are also interconnected with cables. The LIN data signal is finally forwarded to any CAN port by the SOC within the CPU, ultimately completing the loopback test on the CAN (FD) and LIN data links. The 100 / 1000BASE-T1 to USB test tool is connected to any Ethernet port on the CPU, and the remaining Ethernet ports (including all ports on multiple switches) are interconnected with cables, ultimately completing the loopback test on the Ethernet data link. This simple tool allows for functional monitoring of the CPU, eliminating the need for additional DV testing equipment. This improves the reliability of CPU DV testing and significantly reduces the manpower, material resources, and costs of CPU DV testing.

[0071] The present application provides a communication verification method for a vehicle-mounted central processing unit, which uses cables to loop back multiple Ethernet nodes, multiple CAN nodes, and multiple LIN nodes in the vehicle-mounted central processing unit, thereby realizing loopback experiments on Ethernet data links, CAN data links, and LIN data links without adding additional experimental equipment, thereby improving the reliability of functional monitoring of the vehicle-mounted central processing unit and improving the communication verification efficiency of the vehicle-mounted central processing unit.

[0072] See also Figure 6 , an embodiment of the present application provides a communication verification system for a vehicle-mounted central processing unit, the system comprising:

[0073] The vehicle-mounted central processing unit 310 is used to receive a test signal sent by a host computer, wherein the test signal includes at least one of an Ethernet data packet, a CAN message, and a LIN message.

[0074] The on-board central processing unit 310 is further configured to generate an output signal based on the test signal, wherein the output signal includes at least one of a target Ethernet data packet, a target CAN message, and a target LIN message.

[0075] Among them, the target Ethernet data packet is the Ethernet data packet output by the Ethernet communication module of the on-board central processing unit after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the on-board central processing unit for loop-back connection based on cables; the target CAN message is the CAN message output by the CAN communication module of the on-board central processing unit after the CAN message passes through multiple CAN nodes in the CAN communication module of the on-board central processing unit for loop-back connection based on cables; the target LIN message is the LIN message output by the LIN communication module of the on-board central processing unit after the LIN message passes through multiple LIN nodes in the LIN communication module of the on-board central processing unit for loop-back connection based on cables.

[0076] The host computer 320 is used to receive the output signal and perform communication verification on the vehicle-mounted central processing unit based on the test signal and the output signal.

[0077] The present application provides a communication verification system for a vehicle-mounted central processing unit, which uses cables to loop back multiple Ethernet nodes, multiple CAN nodes, and multiple LIN nodes in the vehicle-mounted central processing unit, and can realize loopback experiments on Ethernet data links, CAN data links, and LIN data links without adding additional experimental equipment, thereby improving the reliability of functional monitoring of the vehicle-mounted central processing unit and improving the communication verification efficiency of the vehicle-mounted central processing unit.

[0078] See also Figure 7 , an embodiment of the present application provides a communication verification device 400 for a vehicle-mounted central processing unit, the device 400 comprising:

[0079] The signal receiving unit 410 is configured to receive a test signal sent by a host computer, wherein the test signal includes at least one of an Ethernet data packet, a CAN message, and a LIN message.

[0080] As a method, the signal receiving unit 410 is specifically used to receive the Ethernet data packet sent by the host computer through the Ethernet communication module; and / or, to receive the CAN message sent by the host computer through the CAN communication module; and / or, to receive the LIN message sent by the host computer through the LIN communication module.

[0081] The signal generating unit 420 is used to generate an output signal based on the test signal, and the output signal includes at least one of a target Ethernet data packet, a target CAN message and a target LIN message, wherein the target Ethernet data packet is the Ethernet data packet output by the Ethernet communication module of the on-board central processing unit after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the on-board central processing unit for loop-back connection based on cables; the target CAN message is the CAN message output by the CAN communication module after the CAN message passes through multiple CAN nodes in the CAN communication module of the on-board central processing unit for loop-back connection based on cables; the target LIN message is the LIN message output by the LIN communication module after the LIN message passes through multiple LIN nodes in the LIN communication module of the on-board central processing unit for loop-back connection based on cables.

[0082] As a method, the signal generating unit 420 is specifically used to generate a target Ethernet data packet based on the Ethernet data packet; and / or, generate a target CAN message based on the CAN message; and / or, generate a target LIN message based on the LIN message.

[0083] The signal sending unit 430 is used to send the output signal to the host computer, so that the host computer performs communication verification on the vehicle-mounted central processing unit based on the test signal and the output signal.

[0084] As a method, the signal sending unit 430 is specifically used to send a target Ethernet data packet to the host computer through the Ethernet communication module, so that the host computer performs Ethernet communication verification on the on-board central processing unit based on the Ethernet data packet and the target Ethernet data packet; and / or, send a target CAN message to the host computer through the CAN communication module, so that the host computer performs CAN communication verification on the on-board central processing unit based on the CAN message and the target CAN message; and / or, send a target LIN message to the host computer through the LIN communication module, so that the host computer performs LIN communication verification on the on-board central processing unit based on the LIN message and the target LIN message.

[0085] Among them, the signal sending unit 430 is also used to send the target Ethernet data packet to the Ethernet to USB test tool through the Ethernet communication module, so that the Ethernet to USB test tool forwards the target Ethernet data packet to the host computer, so that the host computer performs Ethernet communication verification on the on-board central processing unit based on the Ethernet data packet and the target Ethernet data packet, wherein the Ethernet communication module, the Ethernet to USB test tool and the host computer are connected via an Ethernet loopback cable.

[0086] Optionally, the signal sending unit 430 is also used to send the target CAN message to the CAN card through the CAN communication module, so that the CAN card forwards the target CAN message to the host computer, so that the host computer performs CAN communication verification on the on-board central processing unit based on the CAN message and the target CAN message, wherein the CAN communication module, the CAN card and the host computer are connected via a CAN loop cable.

[0087] Optionally, the signal sending unit 430 is also used to send the target LIN message to the microcontroller of the on-board central processing unit through the LIN communication module, so that the microcontroller forwards the target LIN message to the CAN communication module; and send the target LIN message to the CAN card through the CAN communication module, so that the CAN card forwards the target LIN message to the host computer, so that the host computer performs LIN communication verification on the on-board central processing unit based on the LIN message and the target LIN message.

[0088] It should be noted that the device embodiment in this application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.

[0089] The following will be combined Figure 8 A vehicle provided in this application is described.

[0090] See also Figure 8 Based on the aforementioned vehicle-mounted central processing unit communication verification method and apparatus, embodiments of the present application also provide another vehicle 800 capable of executing the aforementioned vehicle-mounted central processing unit communication verification method. Vehicle 800 includes one or more (only one shown in the figure) processors 802, a memory 804, and a network module 806 coupled to each other. The memory 804 stores a program capable of executing the contents of the aforementioned embodiments, and the processor 802 can execute the program stored in the memory 804.

[0091] The processor 802 may include one or more processing cores. The processor 802 utilizes various interfaces and circuits to connect various components within the vehicle 800. It executes instructions, programs, code sets, or instruction sets stored in the memory 804 and accesses data stored in the memory 804 to perform various functions and process data for the vehicle 800. Optionally, the processor 802 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 802 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 802 and may be implemented separately via a communications chip.

[0092] The memory 804 may include random access memory (RAM) or read-only memory (ROM). The memory 804 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 804 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the various method embodiments described below, and the like. The data storage area may also store data created by the vehicle 800 during use (such as a phone book, audio and video data, chat history data, etc.).

[0093] The network module 806 is used to receive and transmit electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices, such as communicating with a vehicle. The network module 806 may include various existing circuit components for performing these functions, such as antennas, radio frequency nodes, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 806 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 806 can exchange information with a base station.

[0094] Please refer to Figure 9 , which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 900 stores program code, which can be called by a processor to execute the method described in the above method embodiment.

[0095] The computer-readable storage medium 900 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for program code 910 for executing any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 910 can be compressed, for example, in a suitable form.

[0096] The present application provides a communication verification method, device, vehicle and storage medium for an on-board central processing unit. The method first receives a test signal sent by a host computer, wherein the test signal includes at least one of an Ethernet data packet, a CAN message and a LIN message. Then, based on the test signal, an output signal is generated, and the output signal includes at least one of a target Ethernet data packet, a target CAN message and a target LIN message. The target Ethernet data packet is an Ethernet data packet output by the Ethernet communication module of the on-board central processing unit after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the on-board central processing unit for loop-back connection based on cables; the target CAN message is a CAN message output by the CAN communication module after the CAN message passes through multiple CAN nodes in the CAN communication module of the on-board central processing unit for loop-back connection based on cables; the target LIN message is a LIN message output by the LIN communication module after the LIN message passes through multiple LIN nodes in the LIN communication module of the on-board central processing unit for loop-back connection based on cables. Finally, the output signal is sent to the host computer so that the host computer performs communication verification on the on-board central processing unit based on the test signal and the output signal. Through the above method, multiple Ethernet nodes, multiple CAN nodes and multiple LIN nodes in the vehicle-mounted central processing unit are looped back using cables, so that loopback experiments on Ethernet data links, CAN data links and LIN data links can be realized without adding additional experimental equipment, thereby improving the reliability of functional monitoring of the vehicle-mounted central processing unit and improving the communication verification efficiency of the vehicle-mounted central processing unit.

[0097] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.

Claims

1. A communication verification method for a vehicle-mounted central processing unit, characterized in that: The method comprises: Receive a test signal sent by a host computer, wherein the test signal includes at least one of an Ethernet data packet, a CAN message, and a LIN message; Based on the test signal, an output signal is generated, wherein the output signal includes at least one of a target Ethernet data packet, a target CAN message, and a target LIN message, wherein the target Ethernet data packet is an Ethernet data packet output by the Ethernet communication module of the on-board central processing unit after the Ethernet data packet sequentially passes through multiple Ethernet nodes that are loop-back connected based on cables in the Ethernet communication module of the on-board central processing unit; the target CAN message is a CAN message output by the CAN communication module after the CAN message sequentially passes through multiple CAN nodes that are loop-back connected based on cables in the CAN communication module of the on-board central processing unit; and the target LIN message is a LIN message output by the LIN communication module after the LIN message sequentially passes through multiple LIN nodes that are loop-back connected based on cables in the LIN communication module of the on-board central processing unit; The output signal is sent to the host computer, so that the host computer performs communication verification on the vehicle-mounted central processing unit based on the test signal and the output signal.

2. The method according to claim 1, characterized in that The receiving of the test signal sent by the host computer includes: Receiving an Ethernet data packet sent by the host computer through the Ethernet communication module; and / or, Receiving CAN messages sent by the host computer through the CAN communication module; and / or, The LIN message sent by the host computer is received through the LIN communication module.

3. The method according to claim 2, characterized in that Generating an output signal based on the test signal includes: generating a target Ethernet data packet based on the Ethernet data packet; and / or, Based on the CAN message, generating a target CAN message; and / or, Based on the LIN message, generating a target LIN message; The sending of the output signal to the host computer so that the host computer performs communication verification on the vehicle-mounted central processing unit based on the test signal and the output signal includes: Sending a target Ethernet data packet to the host computer through the Ethernet communication module, so that the host computer performs Ethernet communication verification on the vehicle-mounted central processing unit based on the Ethernet data packet and the target Ethernet data packet; and / or, Sending a target CAN message to the host computer through the CAN communication module, so that the host computer performs CAN communication verification on the vehicle-mounted central processing unit based on the CAN message and the target CAN message; and / or, The target LIN message is sent to the host computer through the LIN communication module, so that the host computer performs LIN communication verification on the vehicle-mounted central operation unit based on the LIN message and the target LIN message.

4. The method according to claim 3, characterized in that The sending of a target Ethernet data packet to the host computer through the Ethernet communication module, so that the host computer performs Ethernet communication verification on the vehicle-mounted central processing unit based on the Ethernet data packet and the target Ethernet data packet, includes: The target Ethernet data packet is sent to the Ethernet-to-USB test tool through the Ethernet communication module, so that the Ethernet-to-USB test tool forwards the target Ethernet data packet to the host computer, so that the host computer performs Ethernet communication verification on the on-board central processing unit based on the Ethernet data packet and the target Ethernet data packet, wherein the Ethernet communication module, the Ethernet-to-USB test tool and the host computer are connected via an Ethernet loopback cable.

5. The method according to claim 3, characterized in that The sending of a target CAN message to the host computer through the CAN communication module, so that the host computer performs CAN communication verification on the vehicle-mounted central processing unit based on the CAN message and the target CAN message, includes: The target CAN message is sent to the CAN card through the CAN communication module, so that the CAN card forwards the target CAN message to the host computer, so that the host computer performs CAN communication verification on the on-board central processing unit based on the CAN message and the target CAN message, wherein the CAN communication module, the CAN card and the host computer are connected via a CAN loop cable.

6. The method according to claim 3, characterized in that The sending of a target LIN message to the host computer through the LIN communication module, so that the host computer performs LIN communication verification on the vehicle-mounted central operation unit based on the LIN message and the target LIN message, includes: Sending the target LIN message to the microcontroller of the on-board central processing unit through the LIN communication module, so that the microcontroller forwards the target LIN message to the CAN communication module; The target LIN message is sent to the CAN card through the CAN communication module, so that the CAN card forwards the target LIN message to the host computer, so that the host computer performs LIN communication verification on the vehicle-mounted central operation unit based on the LIN message and the target LIN message.

7. A communication verification system for a vehicle-mounted central processing unit, characterized in that: The system comprises: The vehicle-mounted central processing unit is used to receive a test signal sent by the host computer, wherein the test signal includes at least one of an Ethernet data packet, a CAN message, and a LIN message; The on-board central processing unit is further used to generate an output signal based on the test signal, and the output signal includes at least one of a target Ethernet data packet, a target CAN message and a target LIN message, wherein the target Ethernet data packet is an Ethernet data packet output by the Ethernet communication module of the on-board central processing unit after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the on-board central processing unit in sequence and is connected based on a cable for loopback; the target CAN message is a CAN message output by the CAN communication module after the CAN message passes through multiple CAN nodes in the CAN communication module of the on-board central processing unit in sequence and is connected based on a cable for loopback; the target LIN message is a LIN message output by the LIN communication module after the LIN message passes through multiple LIN nodes in the LIN communication module of the on-board central processing unit in sequence and is connected based on a cable for loopback; The host computer is used to receive the output signal and perform communication verification on the vehicle-mounted central processing unit based on the test signal and the output signal.

8. A communication verification device for a vehicle-mounted central processing unit, characterized in that: The device comprises: A signal receiving unit, configured to receive a test signal sent by a host computer, wherein the test signal includes at least one of an Ethernet data packet, a CAN message, and a LIN message; a signal generating unit, configured to generate an output signal based on the test signal, the output signal including at least one of a target Ethernet data packet, a target CAN message, and a target LIN message, wherein the target Ethernet data packet is an Ethernet data packet output by the Ethernet communication module of the on-board central processing unit after the Ethernet data packet sequentially passes through a plurality of Ethernet nodes in the Ethernet communication module of the on-board central processing unit that are loop-back connected based on cables; the target CAN message is a CAN message output by the CAN communication module of the on-board central processing unit after the CAN message sequentially passes through a plurality of CAN nodes in the CAN communication module of the on-board central processing unit that are loop-back connected based on cables; and the target LIN message is a LIN message output by the LIN communication module of the on-board central processing unit after the LIN message sequentially passes through a plurality of LIN nodes in the LIN communication module of the on-board central processing unit that are loop-back connected based on cables; A signal sending unit is used to send the output signal to the host computer, so that the host computer performs communication verification on the vehicle-mounted central processing unit based on the test signal and the output signal.

9. A vehicle, characterized in that: The method comprises one or more processors; one or more programs are stored in a memory and configured to execute the method according to any one of claims 1 to 6 by the one or more processors.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 6 is executed.

Citation Information

Patent Citations

  • Method and device for testing vehicle-mounted Ethernet

    CN115129021A

  • IO loopback test method for motor train unit power train

    WO2023245974A1