Communication verification method and device of vehicle-mounted central arithmetic unit, vehicle and storage medium
By performing multi-node loopback connection in the on-board central computing unit, loopback experiments of Ethernet, CAN and LIN data links are realized, which solves the problem of insufficient communication verification efficiency and reliability of on-board controllers in the existing technology, and improves communication Verified efficiency and reliability.
Patent Information
- Application Number
- CN202410939296.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-07-12
AI Technical Summary
The prior art is difficult to efficiently and at low cost to detect and verify the Ethernet, CAN and LIN communication of the vehicle controller, resulting in insufficient communication verification efficiency and reliability of the vehicle central computing unit.
By receiving the test signals sent by the upper computer, using cables to loopback multiple Ethernet, CAN and LIN nodes in the on-board central computing unit, generate and send target data packets and packets, and realize Ethernet, CAN and LIN data Loopback experiments on the link, avoiding the addition of additional experimental equipment.
It improves the functional monitoring reliability and communication verification efficiency of the vehicle-mounted central computing unit, and reduces detection costs and manpower and material investment.
Smart Images

Figure CN119299251A_ABST
Abstract
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 of a vehicle-mounted central processing unit. Background Art
[0002] With the increase of wired communication of vehicle-mounted controllers, such as Ethernet communication, CAN (Controller Area Network) communication, LIN (Local Interconnect Network) communication, etc., the requirements for wired communication testing of vehicle-mounted 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 of an on-board central processing unit to improve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a communication verification method for a vehicle-mounted central processing unit, the method comprising: receiving a test signal sent by a host computer, the test signal comprising at least one of an Ethernet data packet, a CAN message and a LIN message; based on the test signal, generating an output signal, the output signal comprising 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 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 vehicle-mounted central processing unit in sequence 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 vehicle-mounted central processing unit in sequence for loop-back connection based on cables; and 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.
[0005] In a second aspect, an embodiment of the present application provides a communication verification system for a vehicle-mounted central processing unit, the system comprising: an on-board central processing unit, for receiving a test signal sent by a host computer, the test signal comprising 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, the output signal comprising 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 sequentially passing through multiple Ethernet nodes connected by a loop-back cable in an Ethernet communication module of the on-board central processing unit. 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 computing unit in sequence based on cables for loop-back connection; 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 computing unit in sequence based on cables for loop-back connection; the host computer is used to receive the output signal and perform communication verification on the on-board central computing 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, the test signal comprising 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, the output signal comprising 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 after it passes through multiple Ethernet nodes connected by a loop-back cable in the Ethernet communication module of the on-board central processing unit in sequence. 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 computing unit in sequence and is connected based on cables for loopback connection; 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 computing unit in sequence and is connected based on cables for loopback connection; 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 computing 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 a 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 of a vehicle-mounted central operation unit. First, a test signal sent by a host computer is received, the test signal includes at least one of an Ethernet data packet, a CAN message and a LIN message, and then based on the test signal, an output signal is generated, 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 after the Ethernet data packet passes through multiple Ethernet nodes based on cables for loopback connection in the Ethernet communication module of the vehicle-mounted central operation unit in sequence; the target CAN message is a CAN message output by the CAN communication module after the CAN message passes through multiple CAN nodes based on cables for loopback connection in the CAN communication module of the vehicle-mounted central operation unit in sequence; the target LIN message is a LIN message output by the LIN communication module after the LIN message passes through multiple LIN nodes based on cables for loopback connection in the LIN communication module of the vehicle-mounted central operation unit in sequence, 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 computing unit are looped back by 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 computing unit and the communication verification efficiency of the vehicle-mounted central computing unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 showing an application scenario of a communication verification method for a vehicle-mounted central computing unit provided by an embodiment of the present application is shown;
[0012] Figure 2 A schematic diagram of the structure of a vehicle-mounted central computing unit provided in an embodiment of the present application is shown;
[0013] Figure 3 A connection diagram of a communication verification system of a vehicle-mounted central computing unit provided by an embodiment of the present application is shown;
[0014] Figure 4 A flow chart of a communication verification method of a vehicle-mounted central computing unit proposed in one embodiment of the present application is shown;
[0015] Figure 5 A flow chart showing a communication verification method of a vehicle-mounted central computing unit proposed in another embodiment of the present application is shown;
[0016] Figure 6 A flow chart of a communication verification system of a vehicle-mounted central computing unit proposed in another embodiment of the present application is shown;
[0017] Figure 7 A structural block diagram of a communication verification device of a vehicle-mounted central computing unit proposed in an embodiment of the present application is shown;
[0018] Figure 8 A structural block diagram of a vehicle for executing a communication verification method of a vehicle-mounted central computing unit according to an embodiment of the present application is shown;
[0019] Fig. 9 A storage unit in an embodiment of the present application is shown for storing or carrying program codes 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 the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0021] The embodiment of the present application proposes a communication verification method, device, vehicle and storage medium of a vehicle-mounted central operation unit. By using cables to loop back multiple Ethernet nodes, multiple CAN nodes and multiple LIN nodes in the vehicle-mounted central operation unit, loopback experiments on Ethernet data links, CAN data links and LIN data links can be implemented without adding additional experimental equipment, thereby improving the reliability of function monitoring of the vehicle-mounted central operation unit and improving the communication verification efficiency of the vehicle-mounted central operation unit.
[0022] The following is an introduction to the application environment of the communication verification method of the vehicle-mounted central computing 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 , and the communication verification system 300 may include a vehicle-mounted central operation unit 310 and a host computer 320 .
[0024] like Figure 2 As shown, the vehicle-mounted central operation unit 310 may include a CAN communication module 311, an Ethernet communication module 312, a LIN communication module 313, a SOC / MCU314 and other modules 315. Among them, 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 a vehicle-mounted Ethernet switch or an Ethernet transceiver (PHY); 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, the Ethernet communication module, the LIN communication module and other modules in the vehicle-mounted central operation unit are all connected to the SOC / MCU through 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 The device 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] Among them, the Ethernet loopback cable is used to connect the multi-node Ethernet port of the vehicle-mounted central computing unit. The network ports that are not connected externally with cables are connected in pairs inside the switch with VLAN, and finally connected to the host computer through the SOC100BASE-T1 to USB or 1000BASE-T1 to USB test tool in the vehicle-mounted central computing unit. Non-automotive grade models can be selected, the advantage is that the price is lower. According to past experience, the test reliability of non-automotive grade Ethernet test tools meets the requirements. The CAN loopback cable is used to connect the multi-node CAN port of the vehicle-mounted central computing unit, and the LIN loopback cable is used to connect the multi-node LIN port of the vehicle-mounted central computing unit. Among them, the multi-channel LIN data loopback is finally received by the SOC inside the vehicle-mounted central computing unit, and then forwarded to the CAN channel. Finally, it is connected to the CAN (FD) card through the last CAN channel of the loopback harness and then to the host computer.
[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 of 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 is used as a detection device for sending at least one of the Ethernet data packets, CAN messages and LIN messages, receiving at least one of the returned target Ethernet data packets, target CAN messages and target LIN messages, and displaying whether the Ethernet data packets, CAN messages and LIN messages have packet loss and delay, and judging whether the Ethernet communication experiment, CAN communication experiment and LIN communication experiment of the vehicle-mounted central operation unit have passed according to the displayed content. Among them, the host computer mainly sends test signals through the host computer software, and the host computer software mainly 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, it will automatically send a test signal to the on-board central computing unit. When the host computer automatically sends a test signal to the on-board central computing unit, a preset number of test signals can be sent 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 computing unit, that is, it can be understood as the number of test signals that the host computer needs to send at one time, and it can also be understood as the number of test signals that the host computer needs to send in total, which is not specifically limited 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 on-board central operation unit, the test signal can be sent to the on-board central operation unit according to a predetermined communication matrix correspondence. Among them, the communication matrix (CommunicationMatrix) specifies all signals to be sent and received by each Ethernet node, CAN node and LIN node, including the signal format, sequence number, signal content meaning, data range, cycle, etc. In this embodiment, the test signal corresponding to each communication node can be directly parsed according to the predetermined communication matrix correspondence, which is convenient for the host computer to control and compare.
[0035] Step S120: 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.
[0036] Among them, the target Ethernet data packet is the Ethernet data packet output by the Ethernet communication module after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the vehicle-mounted central computing unit in sequence that are connected in a loop 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 vehicle-mounted central computing unit in sequence that are connected in a loop 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 vehicle-mounted central computing unit in sequence that are connected in a loop 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 known that for the vehicle-mounted central computing unit, it includes 14 CANs, 4 LINs, 4 100Base-T1s, and 7 1000Base-T1s. Among them, the 14 CANs are equivalent to the CAN communication module in the embodiment of the present application, and multiple CAN nodes correspond to the 14 CANs one by one, that is, one CAN node corresponds to one CAN; the 4 LINs are equivalent to the LIN communication module in the embodiment of the present application, and multiple LIN nodes correspond to the 4 LINs one by one, that is, one LIN node corresponds to one LIN; the 4 100Base-T1s and 7 1000Base-T1s are equivalent to the Ethernet communication module in the embodiment of the present application, and the 4 100Base-T1s and 7 1000Base-T1s correspond to multiple Ethernet nodes one by one, that is, one Ethernet node corresponds to one 100Base-T1 or one 1000Base-T1.
[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. Among them, the Ethernet transceiver is generally a 100Base-T1 or 1000Base-T1 Ethernet transceiver; the CAN transceiver is commonly used for the conversion between the digital signal of the MCU and the analog signal of the CAN bus; the LIN transceiver is used for the conversion between the digital signal of the MCU and the analog signal of the LIN bus. Among them, the MCU is the main processor of the on-board central computing unit, which exchanges data with the SWITCH or Ethernet transceiver through the Ethernet data bus.
[0040] The loopback connection in the embodiment of the present application refers to connecting different communication nodes in pairs through physical cables. Multiple Ethernet nodes can be looped through Ethernet loopback cables, multiple CAN nodes can be looped through CAN loopback cables, and multiple LIN nodes can be connected through LIN loopback lines. Among them, the Ethernet loopback cable can be a general cable for vehicle-mounted Ethernet, used to connect 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 used to connect the twisted pair to another Ethernet node; the CAN loopback cable can be a common twisted pair cable, used to connect the CAN port of the vehicle-mounted central computing unit, i.e. CAN_H and CAN_L, and the CAN port is a pair of differential signal lines, and a CAN node is used to connect the twisted pair to another CAN node; the LIN loopback cable can be a common single-line cable, used to connect the LIN port of the vehicle-mounted central computing 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 vehicle-mounted central processing unit receives a test signal, different test signals can be sent to different communication modules in the vehicle-mounted central processing unit through the SOC / MCU in the vehicle-mounted 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 vehicle-mounted central operation unit based on the test signal and the output signal, the communication verification of the vehicle-mounted central operation unit can be performed by comparing the number and period of the output signal and the output signal. If the number and period of the two are the same, it can be determined that the communication verification of the vehicle-mounted central operation unit has passed; otherwise, it can be determined that the communication verification of the vehicle-mounted central operation 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 vehicle-mounted central operation unit has passed; otherwise, it can be determined that the Ethernet communication verification of the vehicle-mounted central operation 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 of the ways, when multiple communication verifications of the on-board central operation unit are performed in a certain order, multiple communication verifications of the on-board central operation unit can be performed in sequence 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 operation unit is: CAN communication verification-Ethernet communication verification-LIN communication verification.
[0047] As another method, when the multiple communication verifications of the vehicle-mounted central operation unit are performed in a certain order, the multiple communication verifications of the vehicle-mounted central operation unit can be performed in sequence according to the order of the output signals received by the host computer. For example, if the order of the output signals received by the host computer is: CAN message-LIN message-Ethernet data packet, then the order of communication verification of the vehicle-mounted central operation unit is: CAN communication verification-LIN communication verification-Ethernet communication verification.
[0048] The present application provides a communication verification method for a vehicle-mounted central computing unit, which utilizes cables to loop back multiple Ethernet nodes, multiple CAN nodes, and multiple LIN nodes in the vehicle-mounted central computing 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 function monitoring of the vehicle-mounted central computing unit and improving the communication verification efficiency of the vehicle-mounted central computing unit.
[0049] See also Figure 5, an embodiment of the present application provides a communication verification method of a vehicle-mounted central processing unit, the method comprising:
[0050] Step S210: receiving the Ethernet data packet sent by the host computer through the Ethernet communication module; and / or, receiving the CAN message sent by the host computer through the CAN communication module; and / or, receiving the 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 on-board central operation unit, the test signal can be first received by the MCU / SOC in the on-board central operation unit, and then the data type included in the test signal can be identified by the MCU / SOC, and then different types of test signals can be sent 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 the embodiment of the present application, when the output signal is a target Ethernet data packet, the Ethernet communication module can send the target Ethernet data packet to the host computer. When the host computer receives the target Ethernet data packet, it can perform Ethernet communication verification on the vehicle-mounted central operation unit based on the Ethernet data packet and the target Ethernet data packet. Specifically, if the number and period corresponding to 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 at this time, it can be determined that the Ethernet communication verification of the vehicle-mounted central operation unit has passed; otherwise, it can be determined that there is packet loss or delay in the Ethernet data packet, and at this time, it can be determined that the Ethernet communication verification of the vehicle-mounted central operation unit has 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 100Base-T1 to USB test tool, the other is 1000Base-T1 to USB test tool; it is used to connect any Ethernet port in the vehicle's central computing unit with the host computer to transmit and receive Ethernet data packets.
[0059] Through the aforementioned Figure 3 It can be known 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 operation unit based on the CAN message and the target CAN message.
[0061] In the 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 vehicle-mounted central operation unit based on the CAN message and the target CAN message. Specifically, if the number and period corresponding to 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 at this time it can be determined that the CAN communication verification of the vehicle-mounted central operation unit has passed; otherwise, it can be determined that there is packet loss or delay in the CAN message, and at this time it can be determined that the CAN communication verification of the vehicle-mounted central operation unit has 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 vehicle-mounted 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-mounted 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 operation unit based on the LIN message and the target LIN message.
[0066] In the 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. When the host computer receives the target LIN message, it can perform LIN communication verification on the vehicle-mounted central operation unit based on the LIN message and the target LIN message. Specifically, if the number and period corresponding to 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 at this time it can be determined that the LIN communication verification of the vehicle-mounted central operation unit has passed; otherwise, it can be determined that there is packet loss or delay in the LIN message, and at this time it can be determined that the LIN communication verification of the vehicle-mounted central operation unit has failed.
[0067] As a method, the target LIN message is sent to the microcontroller of the on-board central operation 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 operation 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 is necessary to first send the target LIN message to the SOC / MCU inside the vehicle central operation 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 3It can be known that the CAN (FD0 card is connected to a CAN (FD) port of the vehicle-mounted central computing unit, the remaining CAN ports are connected to each other in pairs using cables, and the various LIN ports are also connected to each other in pairs using cables. The LIN data signal is finally forwarded to any CAN port through the SOC inside the vehicle-mounted computing unit, and finally the loopback test on the CAN (FD) and LIN data links is realized through the cable. The 100 / 1000BASE-T1 to USB test tool is connected to any Ethernet port of the vehicle-mounted central computing unit, and the remaining Ethernet ports of the vehicle-mounted central computing unit (which can include all network ports of multiple switches) are connected to each other in pairs through cables, and finally the loopback test on the Ethernet data link is realized. The function monitoring of the vehicle-mounted central computing unit can be realized through simple tools, without adding any additional DV test equipment, which improves the reliability of the function monitoring during the DV test of the vehicle-mounted central computing unit and greatly reduces the manpower, material resources and costs of the DV test of the vehicle-mounted central computing unit.
[0071] The present application provides a communication verification method for a vehicle-mounted central computing unit, which utilizes cables to loop back multiple Ethernet nodes, multiple CAN nodes, and multiple LIN nodes in the vehicle-mounted central computing 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 function monitoring of the vehicle-mounted central computing unit and improving the communication verification efficiency of the vehicle-mounted central computing 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 vehicle-mounted central processing unit 310 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.
[0075] Among them, the target Ethernet data packet is the Ethernet data packet output by the Ethernet communication module after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the vehicle-mounted central computing unit in sequence that are connected in a loop 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 vehicle-mounted central computing unit in sequence that are connected in a loop 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 vehicle-mounted central computing unit in sequence that are connected in a loop 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 computing unit, which uses cables to loop back multiple Ethernet nodes, multiple CAN nodes, and multiple LIN nodes in the vehicle-mounted central computing unit, and can implement 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 computing unit and improving the communication verification efficiency of the vehicle-mounted central computing unit.
[0078] See also Figure 7 , an embodiment of the present application provides a communication verification device 400 of a vehicle-mounted central processing unit, the device 400 comprising:
[0079] The signal receiving unit 410 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.
[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 an Ethernet data packet output by the Ethernet communication module of the vehicle-mounted central computing unit after the Ethernet data packet passes through multiple Ethernet nodes in the Ethernet communication module of the vehicle-mounted central computing unit in sequence that are connected based on cables 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 vehicle-mounted central computing unit in sequence that are connected based on cables 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 vehicle-mounted central computing unit in sequence that are connected based on cables for loopback.
[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, to generate a target CAN message based on the CAN message; and / or, to 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 computing 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 computing 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 computing 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 vehicle-mounted 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; 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 the present 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 the present application is described.
[0090] See also Figure 8 Based on the above-mentioned vehicle-mounted central operation unit communication verification method and device, the embodiment of the present application also provides another vehicle 800 that can execute the above-mentioned vehicle-mounted central operation unit communication verification method. The vehicle 800 includes one or more (only one is shown in the figure) processors 802, a memory 804, and a network module 806 that are coupled to each other. Among them, the memory 804 stores a program that can execute the content of the above-mentioned embodiment, and the processor 802 can execute the program stored in the memory 804.
[0091] Among them, the processor 802 may include one or more processing cores. The processor 802 uses various interfaces and lines to connect various parts of the entire vehicle 800, and executes various functions and processes data of the vehicle 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804. Optionally, the processor 802 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 802 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 802, but may be implemented separately through a communication chip.
[0092] The memory 804 may include a random access memory (RAM) or a 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, wherein 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 following various method embodiments, etc. 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 record data), etc.
[0093] The network module 806 is used to receive and send 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 elements for performing these functions, such as antennas, radio frequency nodes, digital signal processors, encryption / decryption chips, user identity module (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 through 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 Fig. 9 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0095] The computer-readable storage medium 900 may 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. Optionally, 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 that performs any method step 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 an appropriate form.
[0096] The present application provides a communication verification method, device, vehicle and storage medium for an on-board central computing 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, wherein 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 computing unit after the Ethernet data packet sequentially passes through multiple Ethernet nodes in the Ethernet communication module of the on-board central computing unit that are connected in a loop back based on cables; the target CAN message is a CAN message output by the CAN communication module after the CAN message sequentially passes through multiple CAN nodes in the CAN communication module of the on-board central computing unit that are connected in a loop back based on cables; the target LIN message is a LIN message output by the LIN communication module after the LIN message sequentially passes through multiple LIN nodes in the LIN communication module of the on-board central computing unit that are connected in a loop back 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 computing 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 computing unit are looped back by 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 computing unit and the communication verification efficiency of the vehicle-mounted central computing 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 modes, which are merely illustrative rather than 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 within the protection of the present invention.
Claims
1. A communication verification method for a vehicle-mounted central processing unit, characterized in that: The method comprises: 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; 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, wherein the target Ethernet data packet is an Ethernet data packet output by the Ethernet communication module of the on-board central computing unit after the Ethernet data packet sequentially passes through multiple Ethernet nodes that are connected in a loop-back manner based on cables in the Ethernet communication module of the on-board central computing 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 connected in a loop-back manner based on cables in the CAN communication module of the on-board central computing 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 that are connected in a loop-back manner based on cables in the LIN communication module of the on-board central computing unit; 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.
2. The method according to claim 1, characterized in that The receiving of the test signal sent by the host computer comprises: 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, 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 The step of generating an output signal based on the test signal comprises: 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 operation 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 operation 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 operation 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 operation 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 the 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 operation 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 vehicle-mounted 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 the 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 operation 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 computing unit, characterized in that: The system comprises: The vehicle-mounted central computing unit 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; The on-board central operation 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 operation unit after the Ethernet data packet sequentially passes through multiple Ethernet nodes that are connected in a loop-back manner based on cables in the Ethernet communication module of the on-board 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 that are connected in a loop-back manner based on cables in the CAN communication module of the on-board 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 that are connected in a loop-back manner based on cables in the LIN communication module of the on-board central operation unit; The host computer is used to receive the output signal and perform communication verification on the vehicle-mounted central operation unit based on the test signal and the output signal.
8. A communication verification device for a vehicle-mounted central computing unit, characterized in that: The device comprises: A signal receiving unit, 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; A signal generating unit, 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, wherein the target Ethernet data packet is an Ethernet data packet output by the Ethernet communication module of the on-board central computing unit after the Ethernet data packet sequentially passes through a plurality of Ethernet nodes in the Ethernet communication module of the on-board central computing unit that are connected in a loopback manner based on cables; the target CAN message is a CAN message output by the CAN communication module after the CAN message sequentially passes through a plurality of CAN nodes in the CAN communication module of the on-board central computing unit that are connected in a loopback manner based on cables; and the target LIN message is a LIN message output by the LIN communication module after the LIN message sequentially passes through a plurality of LIN nodes in the LIN communication module of the on-board central computing unit that are connected in a loopback manner 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 operation 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
Loopback test device and method for diagnosing vehicle central gateway communication link fault
CN112241157A
Vehicle-mounted gateway test system
CN114666244A
Method and device for testing vehicle-mounted Ethernet
CN115129021A
Annular vehicle-mounted Ethernet determination method, device and equipment, medium and vehicle
CN117978580A
IO loopback test method for motor train unit power train
WO2023245974A1
Cited By
Vehicle-mounted multi-communication protocol test mainboard
CN120200949A