Search

CN-121984904-A - Device and method applied to whole vehicle CAN physical layer test

CN121984904ACN 121984904 ACN121984904 ACN 121984904ACN-121984904-A

Abstract

The invention discloses a device and a method for testing a CAN physical layer of a whole vehicle, wherein the device comprises a power supply module, a universal meter module, an executor module, an oscilloscope module, a controller local area network signal analyzer module, an upper computer module and an electronic control module, wherein the power supply module is respectively connected with the executor module and the electronic control module, the electronic control module and the controller local area network signal analyzer module are respectively connected with the executor module, the executor module is respectively connected with the universal meter module and the oscilloscope module, and the controller local area network signal analyzer module is connected with the upper computer module. The invention has the advantages of realizing rapid fault injection by adopting an automatic switching mode, saving a great amount of time for testers, greatly improving the test efficiency of the CAN physical layer of the local area network signal of the whole vehicle controller, reducing the cost of the whole test system and ensuring the integrity of the CAN signal of the controller by adopting the triode as a switch, and having faster switching speed compared with the traditional switch and relay.

Inventors

  • WANG LUDI
  • SHAO FAN
  • LIU XIAOMING
  • Ye Fatao
  • WU QIANGQIANG
  • FAN LI

Assignees

  • 杰锋汽车动力系统股份有限公司

Dates

Publication Date
20260505
Application Date
20260203

Claims (9)

  1. 1. A device and a method for testing a physical layer of a whole vehicle CAN are characterized by comprising a power supply module (1), a universal meter module (2), an actuator module (3), an oscilloscope module (4), a controller local area network signal analyzer module (5), an upper computer module (6) and an electronic control module (ECU), wherein the power supply module (1) is respectively connected with the actuator module (3) and the electronic control module (ECU), the electronic control module (ECU) and the controller local area network signal analyzer module (5) are respectively connected with the actuator module (3), the actuator module (3) is respectively connected with the universal meter module (2) and the oscilloscope module (4), and the controller local area network signal analyzer module (5) is connected with the upper computer module (6).
  2. 2. The device and method for testing the physical layer of the whole vehicle CAN, which are disclosed in claim 1, are characterized in that the power supply module (1) supplies power for the actuator module (3), the power supply module (1) supplies power for the electronic control module (ECU), the electronic control module (ECU) transmits a test signal to the actuator module (3), the actuator module (3) transmits a controller area network signal (CAN) to the controller area network signal analyzer module (5), the controller area network signal analyzer module (5) transmits the analyzed and processed controller area network signal (CAN) to the upper computer module (6), the upper computer module (6) monitors the transmitted controller area network signal (CAN) and transmits a control message to the controller area network signal analyzer module (5), the controller area network signal analyzer module (5) transmits the received message to the actuator module (3), and the actuator module (3) performs corresponding operation according to a message instruction and performs controller area network detection through the multimeter module (2) and the oscilloscope module (4).
  3. 3. The device and method for testing the physical layer of the whole vehicle CAN according to claim 1, wherein the actuator module (3) comprises a micro control processor unit (A2), a controller area network signal (CAN) receiving unit (A3) and a fault injection unit (A4).
  4. 4. The apparatus and method for testing the physical layer of a vehicle CAN according to claim 3, wherein said controller area network signal (CAN) receiving unit (A3) receives the controller area network signal (CAN) execution message sent by the upper computer module (6) and transmits the received controller area network signal (CAN) execution message to the micro control processor unit (A2).
  5. 5. The device and method for CAN physical layer test of whole vehicle according to claim 3, wherein the fault injection unit (A4) comprises a negative pressure generating device (A5), a position capacitor element (A6), a resistor element (A7) and a triode switch element (A8).
  6. 6. The apparatus and method for whole vehicle CAN physical layer test as claimed in claim 1, wherein the electronic control module (ECU) is a tested element and sends an original test controller area network signal (CAN) to the actuator module (3).
  7. 7. The device and method for testing the physical layer of the whole vehicle CAN according to claim 6, wherein the original test controller area network signal (CAN) is divided into a controller area network signal high line (CANH) and a controller area network signal low line (CANL), and the controller area network signal high line (CANH) and the controller area network signal low line (CANL) jointly form a pair of differential signal lines.
  8. 8. The device and method for testing the physical layer of the whole vehicle CAN according to claim 1, wherein the universal meter module (2) and the oscilloscope module (4) detect the signal characteristics of the controller area network signal (CAN) of the current test case.
  9. 9. An apparatus and method for a CAN physical layer test for an entire vehicle according to any one of claims 1-8, wherein the method comprises the steps of: The system comprises a power supply module (1) for supplying power to an electronic control module (ECU) and an actuator module (3), an upper computer module (6) for sending a control message to a controller area network signal analyzer module (5), and the controller area network signal analyzer module (5) for transmitting the received message information to the actuator module (3); s2, a controller area network signal (CAN) receiving unit (A3) in the executor module (3) transmits the received controller area network signal (CAN) message information to a micro control processor unit (A2), and the micro control processor unit (A2) analyzes the received controller area network signal (CAN) message information into a control signal; S3, outputting the analyzed control signal by the micro-control processor unit (A2), controlling the triode switch device (A8) in the fault injection unit (A4) to be opened and closed, and combining the negative pressure generating device (A5), the position capacitor component (A6) and the resistor component (A7) in the fault injection unit (A4) to manufacture faults required by the current test case; S4, detecting whether a controller area network signal (CAN) passing through the fault injection unit A4 meets a test standard or not by using a universal meter module (2) and an oscilloscope module (4); S5, if the test standard is met, ending the test of the next use case, if not, firstly checking whether the control message issued by the upper computer module (6) is the message required by the current test case, if so, detecting a controller area network signal (CAN) unit in the current electronic control module (ECU) by related hardware technicians, and if not, re-issuing the control message by the upper computer module (6).

Description

Device and method applied to whole vehicle CAN physical layer test Technical Field The invention belongs to the technical field of detection, and particularly relates to a device and a method applied to the test of a whole vehicle CAN physical layer, which are used for providing a device and a method capable of realizing automatic switching, low in cost and small in loss of a controller area network signal CAN for the detection of the whole vehicle controller area network signal CAN physical layer. Background In the test of the CAN physical layer of the whole vehicle controller local area network signal, the switch control mode widely adopted at present mainly comprises a single-pole switch, a toggle switch and a relay. The methods have obvious technical limitations and engineering defects in practical application, so that the complexity and cost of a test system are increased, and the test efficiency and the signal integrity are adversely affected. The single-knife switch and the toggle switch belong to purely mechanical manual switches, and the operation of the single-knife switch and the toggle switch is completely dependent on the physical toggle of detection personnel one by one. Under the scene that the test items are numerous and the test cases need to be frequently switched on and off, the manual operation mode can obviously reduce the test efficiency and occupy a large amount of human resources. The inspector must repeatedly operate the switch according to the testing steps, the process is tedious and is easy to cause misoperation due to fatigue, and the accuracy and repeatability of the testing sequence are further affected. In addition, as the test scale is enlarged or the integration level of the test platform is improved, the number of the mechanical switches may be increased remarkably, so that the test bench is complicated in layout and disordered in wire harness connection, the difficulty of installation and maintenance is improved, and the fault risk caused by poor contact or mechanical abrasion is increased. In order to overcome the defects of manual operation, part of the test schemes adopt a relay as an electronic control switch. The relay can be controlled by an external electric signal to realize automatic switching of the switch state, so that a tester is liberated from repeated manual operation, and automation and serialization of a test flow are facilitated. However, the relay solution also has significant drawbacks. Firstly, the cost is greatly increased compared with a mechanical switch, and particularly in a test system with large channel number and high density configuration, the purchase and wiring cost of the relay can obviously increase the manufacturing cost of the whole test platform. Second, there are coil drive circuits and mechanical contact structures inside the relay, whose conduction path is not an ideal conductor, typically with contact resistances of tens of milliohms or even higher. When the CAN bus signal of the controller area network flows through the relay contact, the additional resistor CAN introduce unnecessary signal attenuation, and under the conditions of high baud rate or long-distance communication, the signal amplitude CAN be influenced, the waveform distortion is aggravated, and therefore, the accuracy of physical layer parameter measurement is interfered. In addition, the action speed of the relay is relatively slow, and the problems of contact bounce and the like exist, so that the relay is not applicable to a test scene requiring high-speed switching or strict time sequence requirements. Disclosure of Invention The invention aims to overcome the defects of the prior art, and provides a device and a method applied to the test of a whole vehicle CAN physical layer, which are used for realizing the automatic switching for the detection of a whole vehicle controller area network signal CAN physical layer, reducing the loss of the controller area network signal CAN and reducing the cost. In order to achieve the aim, the technical scheme adopted by the invention is that the device and the method for testing the CAN physical layer of the whole vehicle comprise a power supply module 1, a universal meter module 2, an actuator module 3, an oscilloscope module 4, a controller area network signal analyzer module 5, an upper computer module 6 and an electronic control module ECU, wherein the power supply module 1 is respectively connected with the actuator module 3 and the electronic control module ECU, the electronic control module ECU and the controller area network signal analyzer module 5 are respectively connected with the actuator module 3, the actuator module 3 is respectively connected with the universal meter module 2 and the oscilloscope module 4, and the controller area network signal analyzer module 5 is connected with the upper computer module 6. The power supply module 1 supplies power to the executor module 3, the power supply module 1 supplies p