CN111586131A - Vehicle-mounted Ethernet fault injection test device and test method - Google Patents

Vehicle-mounted Ethernet fault injection test device and test method Download PDF

Info

Publication number
CN111586131A
CN111586131A CN202010354439.XA CN202010354439A CN111586131A CN 111586131 A CN111586131 A CN 111586131A CN 202010354439 A CN202010354439 A CN 202010354439A CN 111586131 A CN111586131 A CN 111586131A
Authority
CN
China
Prior art keywords
fault
controller
vehicle
test
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010354439.XA
Other languages
Chinese (zh)
Inventor
沈庆韡
周罗善
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SAIC Volkswagen Automotive Co Ltd
Original Assignee
SAIC Volkswagen Automotive Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SAIC Volkswagen Automotive Co Ltd filed Critical SAIC Volkswagen Automotive Co Ltd
Priority to CN202010354439.XA priority Critical patent/CN111586131A/en
Publication of CN111586131A publication Critical patent/CN111586131A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a vehicle-mounted Ethernet fault injection test device, which comprises: and the tested end connector is connected to the Ethernet cable of the tested equipment. And the test end connector is connected to the Ethernet cable of the test equipment. And the power supply connector is connected to the test power supply and the ground. And the fault simulation relay network is connected between the tested end connector and the test end connector, is also connected to the power supply connector and simulates a fault mode. And the controller receives the control instruction and controls the opening or closing of each relay in the fault simulation relay network according to the control instruction so as to simulate a fault mode. And the power supply port is connected to the fault simulation relay network and the controller and provides working power supply for the fault simulation relay network and the controller. The invention also discloses a vehicle-mounted Ethernet fault injection test method executed by the vehicle-mounted Ethernet fault injection test device.

Description

Vehicle-mounted Ethernet fault injection test device and test method
Technical Field
The invention relates to the technical field of automobile testing, in particular to a fault injection testing technology of a vehicle-mounted Ethernet.
Background
The vehicle-mounted Ethernet is a new vehicle-mounted communication technology. In the past, the bus technology in the vehicle mainly includes a Controller Area Network (CAN), a Local Interconnect Network (LIN), and the like. A common problem with these buses is that the communication rate is low, such as the rate of the CAN bus is typically below 1 Mbps. With the higher duplication degree of the functions of the electronic and electric appliances in the automobile, the communication bandwidth of the bus in the automobile is gradually caught. In particular, the functions of autopilot, ADAS, infotainment, etc. often require the transmission of large data volumes. For example, a parking surround view system is usually provided with a plurality of cameras for collecting a plurality of images of front, back, left and right sides of a vehicle, the images need to be transmitted to a central controller through a data bus for processing and splicing, and in some intelligent scenes, in order to achieve high real-time performance of image processing, image data is preferably uncompressed, which puts high requirements on bandwidth of data transmission in the vehicle. Further, as in an entertainment system, audio and video data are transmitted from an entertainment host to a screen or power amplifier, and these data require high bandwidth. Therefore, it is difficult for conventional CAN, LIN, etc. buses to meet the requirements of these scenarios.
The rate of ethernet can reach 100Mbps, even 1Gbps and above, and ITs application in IT field is already very mature. However, due to the severe EMC requirements of the in-car environment, the ethernet technology in the IT field cannot be directly used in the car. Through technical improvement, the vehicle-mounted Ethernet technology is rapidly developed. At present, the vehicle-mounted Ethernet adopts the BroadR-Reach technology of the company Botong, realizes full-duplex communication on a single twisted pair wire and meets the EMC requirement of an automobile. IEEE has standardized this technology, and has formed specifications for 100Mbps and 1 Gbps. More and more vehicle models will be equipped with this technology in the future.
As with conventional buses, on-board ethernet also requires cable fault diagnostic functionality. When the cable has faults such as short circuit, open circuit and the like, the controller needs to detect and record fault codes in time, and when the fault is recovered, the controller needs to recover communication in time. In the development stage, in order to test this diagnostic function, engineers need to simulate the occurrence of a fault and analyze the fault behavior of the controller so as to confirm whether the design of the controller is satisfactory. Since the in-vehicle ethernet is a relatively new technology, there is currently no integrated automatic fault injection device for the in-vehicle ethernet. At present, fault testing of the vehicle-mounted Ethernet is mainly performed in a mode of manually plugging and unplugging cables. Although the purpose of fault simulation can be achieved by manually plugging and unplugging the cable, the disadvantages of manual plugging and unplugging are obvious: 1) the execution of the automatic test program is not facilitated; 2) the time for generating and recovering the fault cannot be accurately controlled; 3) the operation is inconvenient; 4) the failure modes that can be simulated are not rich enough.
Disclosure of Invention
The invention provides a technology capable of injecting a fault mode according to an instruction to carry out vehicle-mounted Ethernet test.
According to an embodiment of the present invention, a vehicle-mounted ethernet fault injection testing apparatus is provided, including: the device comprises a tested end connector, a test end connector, a power supply connector, a fault simulation relay network, a controller and a power supply port. The dut connector is connected to the ethernet cable of the dut. The test-end connector is connected to the ethernet cable of the test device. The power connector is connected to a test power source and ground. The fault simulation relay network is connected between the tested end connector and the tested end connector, the fault simulation relay network is also connected to the power supply connector, and the fault simulation relay network simulates a fault mode. The controller receives the control instruction, and controls each relay in the fault simulation relay network to be opened or closed according to the control instruction so as to simulate a fault mode. The power supply port is connected to the fault simulation relay network and the controller, and the power supply port provides working power supply for the fault simulation relay network and the controller.
In one embodiment, a fault-simulating relay network includes: the controller controls the opening or closing of each relay through each I/O pin, and the combination of the opening or closing of the plurality of relays enables the positive input end, the negative input end, the positive output end, the negative output end, the test power supply end and the test grounding end to be switched on in different modes so as to simulate a fault mode.
In one embodiment, the simulated failure modes of the fault simulation relay network include: the fault comprises a single-double line open circuit fault, a single-double line ground short circuit fault, a single-double line power supply short circuit fault, an input and output positive and negative short circuit fault and a signal attenuation fault.
In one embodiment, the test power supply is a vehicle-mounted battery, a vehicle-mounted battery jar or an external voltage-stabilizing power supply device, and the power supply connector simulates the fault of the Ethernet cable short circuit to the power supply or the ground.
In one embodiment, the controller is connected to a CAN bus, through which the controller receives control instructions.
In one embodiment, the control command is a CAN message, bits in the CAN message correspond to I/O pins of the controller and the relays one to one, and the controller outputs a command on the corresponding I/O pins according to the bits in the CAN message to turn on or turn off the corresponding relays.
According to an embodiment of the present invention, a vehicle-mounted ethernet fault injection test method is provided, which is executed by the vehicle-mounted ethernet fault injection test, and the test method includes:
an instruction receiving step, wherein a controller receives a control instruction;
in the instruction analyzing step, a controller analyzes a control instruction to obtain a fault mode;
a fault injection step, wherein the controller configures a fault simulation relay network according to a fault mode so as to simulate the fault mode;
and a state feedback step, wherein the controller feeds back the current states of all the I/O pins.
In one embodiment, in the command receiving step, the controller is connected to the CAN bus and monitors the CAN message from the specified ID in real time, and the CAN message from the specified ID is a control command.
In one embodiment, in the instruction parsing step, the controller configures each I/O pin according to a CAN message, where bits in the CAN message correspond to the I/O pins of the controller and the relays one to one, and the controller outputs the instruction on the corresponding I/O pin according to the bits in the CAN message.
In one embodiment, in the fault injection step, the controller controls the relays to open or close through the I/O pins, and the combination of the opening or closing of the relays enables the positive input terminal, the negative input terminal, the positive output terminal, the negative output terminal, the test power terminal and the test ground terminal to be switched on in different ways to simulate the fault mode.
In one embodiment, the controller configures the fault simulation relay network to simulate the fault mode in the fault injection step including: the fault comprises a single-double line open circuit fault, a single-double line ground short circuit fault, a single-double line power supply short circuit fault, an input and output positive and negative short circuit fault and a signal attenuation fault.
In one embodiment, in the state feedback step, the controller periodically monitors the current states of the I/O pins and compiles a CAN message, bits in the CAN message correspond to the I/O pins and the relays of the controller one to one, and the controller sends the compiled CAN message to the CAN bus.
The vehicle-mounted Ethernet fault injection test device and the test method provided by the invention are automatically controlled, integrate the vehicle-mounted Ethernet fault injection technology of various fault modes, and can bring great convenience to the test and development work of Ethernet vehicle types. Compared with the prior art, the vehicle-mounted Ethernet fault injection test device and the test method have the following advantages: the device has rich fault injection modes, realizes the faults of various different modes on the same device, and basically covers all the requirements of the fault test of the Ethernet interface; the operation is convenient, and the cable does not need to be plugged and pulled manually; CAN realize complete automatic test through CAN bus control; the time required for driving the I/O control relay after the microprocessor receives the CAN message instruction is in millisecond level, so that the time for generating and recovering the fault CAN be accurately controlled; two groups of attenuation circuits are provided, and switching can be performed through relay control; the attenuation circuit is realized by adopting a variable resistor, so that the attenuation degree can be flexibly adjusted; in the non-fault mode, only two relays are connected into the bus, and the influence of a fault circuit on bus signals in the normal communication mode is shielded to the greatest extent.
Drawings
Fig. 1 discloses a block diagram of a vehicle-mounted ethernet fault injection testing apparatus according to an embodiment of the present invention.
Fig. 2 discloses a circuit diagram of a fault simulation relay network in the vehicle-mounted ethernet fault injection testing device according to an embodiment of the present invention.
Fig. 3 discloses a flow chart of a vehicle-mounted ethernet fault injection testing method according to an embodiment of the present invention.
Detailed Description
Referring first to fig. 1, fig. 1 is a block diagram illustrating a structure of a vehicle-mounted ethernet fault injection testing apparatus according to an embodiment of the present invention. This on-vehicle ethernet fault injection test device includes: a tested end connector 101, a tested end connector 102, a power supply connector 103, a fault simulation relay network 104, a controller 105 and a power supply port 106.
The dut 101 is connected to the ethernet cable of the dut. The test-end connector 102 is connected to the ethernet cable of the test equipment. The fault simulation relay network 104 is connected between the dut terminal connector 101 and the tester terminal connector 102. Therefore, the ethernet cable of the device under test is connected to the fault simulation relay network 104 through the device under test 101, reaches the test end connector 102 after passing through the fault simulation relay network 104, and is connected to the ethernet cable of the test device through the test end connector 102. This provides access to the fault simulation relay network 104 between the ethernet cable of the device under test and the ethernet cable of the test equipment.
The power supply connector 103 is connected to test power and ground, and the power supply connector 103 is also connected to a fault simulation relay network 104. Faults that short the ethernet cable to power or to ground can be simulated by the power connector 103. In one embodiment, the test power supply is a vehicle-mounted battery, a vehicle-mounted battery cell or an external voltage-stabilizing power supply device.
The fault simulation relay network 104 is connected between the test-side connector 101 and the test-side connector 102, and the fault simulation relay network 104 is also connected to the power supply connector 103. The fault simulation relay network 104 simulates a fault pattern. In one embodiment, the fault-simulating relay network is comprised of a number of relays and a number of variable resistors. The fault-simulating relay network 104 is described further below in conjunction with fig. 2.
The controller 105 receives the control command, and controls the relays in the fault simulation relay network 104 to open or close according to the control command, so as to simulate the fault mode. In one embodiment, the controller 105 is connected to a CAN bus, through which the controller 105 receives control instructions.
The power supply port 106 is connected to the fault simulation relay network 104 and the controller 105. The power port 106 provides operating power to the fault simulation relay network 104 and the controller 105. It should be noted that the test power supplies connected to the power supply port 106 and the power supply connector 103 are different power supplies, independent of each other, and completely different in function. The power port 106 is used to provide operating power to the fault simulation relay network 104 and the controller 105. And the test power supply is one of the components of the fault simulation relay network 104 that performs the fault simulation test.
Referring to fig. 2, fig. 2 is a circuit diagram of a fault simulation relay network in a vehicle-mounted ethernet fault injection testing apparatus according to an embodiment of the present invention. The fault-simulating relay network 104 includes: the device comprises a positive input end BR + IN, a negative input end BR-IN, a positive output end BR + OUT, a negative output end BR-OUT, a test power end KL30, a test grounding end KL31, a plurality of relays and a plurality of variable resistors. In the embodiment shown in fig. 2, 11 relays K1-K11 and 6 variable resistors R1-R6 are included. The positive input end BR + IN and the negative input end BR-IN are connected with the tested end connector 101, and are connected to the Ethernet cables of the tested equipment through the tested end connector 101, such as the positive and negative cables of 100BASE-T1 vehicle-mounted Ethernet. The positive output end BR + OUT and the negative output end BR-OUT are connected with the test end connector 102, and are connected with the Ethernet cables of the test equipment through the test end connector 102, such as the positive and negative cables of 100BASE-T1 vehicle-mounted Ethernet. The test power supply terminal KL30 is connected to a test power supply, and the test ground terminal KL31 is grounded. The control terminal of each of the 11 relays K1-K11 is connected to one I/O pin of the controller 105. The controller 105 controls the relays to be opened or closed through the I/O pins, and the combination of the opening and closing of the relays enables the positive input terminal BR + IN, the negative input terminal BR-IN, the positive output terminal BR + OUT, the negative output terminal BR-OUT, the test power terminal KL30 and the test ground terminal KL31 to be switched on IN different modes so as to simulate a failure mode. In one embodiment, the fault simulation relay network 104 is capable of simulating fault modes including: the fault comprises a single-double line open circuit fault, a single-double line ground short circuit fault, a single-double line power supply short circuit fault, an input and output positive and negative short circuit fault and a signal attenuation fault.
Referring to FIG. 2, IN the embodiment shown IN FIG. 2, the positive input terminal BR + IN, the negative input terminal BR-IN, the positive output terminal BR + OUT, the negative output terminal BR-OUT, the test power terminal KL30, the test ground terminal KL31, the 11 relays K1-K11, and the 6 variable resistors R1-R6 are connected as follows:
the input of relay K1 is connected with positive input terminal BR + IN, the normally closed output of relay K1 is directly connected with positive output terminal BR + OUT, and the normally open output is connected with the input of relay K3.
The normally closed output of relay K3 is connected to the input of relay K4, and the normally open output is connected to the input of relay K5.
The normally closed output of relay K4 is connected to the input of relay K10 and the normally open output is connected to positive output terminal BR + OUT.
The normally open output of the relay K10 is connected to the test power supply terminal KL30, and the normally closed output is connected to the test ground terminal KL 31.
The normally closed output of the relay K5 is connected to the variable resistor R2, and the normally open output is connected to the variable resistor R5.
The input of the relay K2 is connected with the negative-positive input end BR-IN, the normally closed output of the relay K2 is directly connected with the negative output end BR-OUT, and the normally open output is connected with the input of the relay K6.
The normally closed output of relay K6 is connected to the input of relay K11 and the normally open output is connected to the negative output terminal BR-OUT.
The normally open output of the relay K11 is connected to the test power supply terminal KL30, and the normally closed output is connected to the test ground terminal KL 31.
The input of relay K7 is connected to negative output terminal BR-OUT, and the normally open output of relay K7 is connected to positive output terminal BR + OUT, and the normally closed output is unsettled.
The variable resistors R1-R6 and the relays K8 and K9 form a variable resistor network, and the variable resistor network is used for simulating signal attenuation faults. Among them, relay K8, variable resistor R1, R2 and R3 constitute a first group of attenuation analog circuits, which are connected to the normally closed output of relay K5, and in the illustrated embodiment, the normally closed output of relay K5 is connected to variable resistor R2. Relay K8 is connected to positive output terminal BR + OUT and negative output terminal BR-OUT, respectively. The relay K8 only pulls in to turn on the first set of attenuation analog circuits when the simulation of the signal attenuation fault is needed. When the signal attenuation fault is not simulated, the relay K8 is opened to avoid the influence of the resistor and the relay on normal signal communication. Relay K9, variable resistors R4, R5 and R6 form a second set of attenuation analog circuits connected to the normally open output of relay K5, and in the illustrated embodiment, the normally open output of relay K5 is connected to variable resistor R5. Relay K9 is connected to positive output terminal BR + OUT and negative output terminal BR-OUT, respectively. The relay K9 only pulls in to turn on the second set of attenuation analog circuits when the simulation of the signal attenuation fault is needed. When the signal attenuation fault is not simulated, the relay K9 is opened to avoid the influence of the resistor and the relay on normal signal communication.
The operation of the fault-simulating relay network shown in fig. 2 is as follows:
two relays, K1 and K2, are used to select whether to perform fault injection. When both K1 and K2 are IN the normally closed position, BR + IN is directly connected to BR + OUT and BR-IN is directly connected to BR-OUT, so the lines are IN a normally conductive state without any fault. When fault injection is carried out, the K1 or K2 is controlled to be switched to a normally open position firstly, and then the type of fault simulation is selected through opening and closing of other relays. The single-line fault of BR + or BR-can be simulated, and only one relay of K1 or K2 needs to be controlled to be switched to a normally open position.
The K3 relay is used for further selecting a fault mode of BR +, and various short-circuit faults can be further simulated through the K4 and K10 relays when the K3 is in a normally closed position, wherein the BR + is short-circuited to BR +, the BR + is short-circuited to KL30, and the BR + is short-circuited to KL 31. When K3 is in the normally open position, a signal attenuation fault can be simulated.
The K4 relay can further simulate a BR + to KL30 short circuit or a BR + to KL31 short circuit fault through K10 in a normally closed position. The fault of BR + to BR short circuit can be further simulated by K7 in the normally open position.
The K10 relay is used for simulating faults that BR + is short-circuited to KL30 or BR + is short-circuited to KL 31.
The K5 relay is used to simulate two types of signal attenuation faults. The degree of signal attenuation can be set by adjusting the variable resistance values of R1 through R6.
The K8 relay and the K9 relay are attracted when corresponding signal attenuation faults are simulated, and are disconnected when attenuation fault simulation is not performed, so that the influence of a fault attenuation circuit on signal communication when fault injection is not performed can be avoided.
The K6 relay is used for further selecting the fault mode of BR-, and BR-to-KL 30 short circuit or BR-to-KL 31 short circuit fault can be further simulated through K11 in a normally closed position. The fault of BR-to-BR + short circuit can be further simulated by K7 in the normally open position.
The K11 relay is used for simulating faults of BR-to-KL 30 short circuit or BR-to-KL 31 short circuit.
The faults that can be simulated by this fault simulation relay network and the corresponding activated relays are shown in table 1 below:
TABLE 1
Serial number Failure mode Relay with a movable contact
1 BR + short-circuiting KL31 K1
2 BR-short to KL31 K2
3 BR + short-circuiting KL30 K1,K10
4 BR-short to KL30 K2,K11
5 BR + and BR-short circuits K1,K2,K4,K6,K7
6 BR + is unsettled K1,K4
7 BR-suspension K2,K6
8 Attenuation mode 1 K1,K3,K8
9 Attenuation mode 2 K1,K3,K5,K9
In one embodiment, the control command received by the controller 105 is a CAN message, bits in the CAN message correspond to I/O pins of the controller and relays one to one, and the controller outputs a command on the corresponding I/O pin according to the bits in the CAN message to turn on or off the corresponding relay. In one embodiment, all relays in the fault-simulating relay network are controlled by I/O pins of the controller. The controller CAN analyze the received CAN message and drive the corresponding I/O pin of the controller to activate the corresponding relay according to the content of the message. In one embodiment, the control command is transmitted by a CAN message with the length of 2 bytes, and the state of the relay is controlled by using the state of a bit in the byte. When the state of the bit is 1, the controller activates the I/O pin corresponding to the bit, and then activates the relay. When the state of the bit is 0, the controller resets the corresponding I/O pin, and further resets the relay. The relationship of the CAN message bytes, bits and corresponding relays is shown in table 2 below. Bits 1-7 of Byte 0 correspond to relays K1-K7 respectively. Bit 0-3 of Byte 1 are respectively corresponding to K8-K11 of the relay. The remaining unused bits are set to 0.
TABLE 2
Figure BDA0002472993790000081
For example, when a short-circuit fault between BR + and BR-needs to be simulated, the test equipment sends out a CAN bus message with the content of (byte 0)01101011 and (byte 1)00000000, the controller drives the I/O pin according to the situation of the corresponding position after receiving the message, wherein the I/O pin is driven according to the corresponding positions, namely K1, K2, K4, K6 and K7, so that the short-circuit fault between BR + and BR-is simulated. When fault injection is not required, the test equipment only needs to send a message 0x 000 x00 to the CAN bus, thus resetting all relays. At the initial state of power-up, the controller resets all relays by default.
The invention also provides a vehicle-mounted Ethernet fault injection test method which is executed by the vehicle-mounted Ethernet fault injection test. Fig. 3 discloses a flow chart of a vehicle-mounted ethernet fault injection testing method according to an embodiment of the present invention. As shown in the figure, the vehicle-mounted ethernet fault injection test method comprises the following steps:
s101, an instruction receiving step, wherein the controller receives a control instruction. In one embodiment, in the command receiving step S101, the controller is connected to the CAN bus and monitors the CAN message from the specified ID in real time, and the CAN message from the specified ID is a control command.
And S102, an instruction analyzing step, wherein the controller analyzes the control instruction to acquire a fault mode. In one embodiment, in the instruction parsing step S102, the controller configures each I/O pin according to a CAN message, where bits in the CAN message correspond to the I/O pins and the relays of the controller one to one, and the controller outputs an instruction on the corresponding I/O pin according to the bits in the CAN message.
S103, a fault injection step, wherein the controller configures a fault simulation relay network according to the fault mode so as to simulate the fault mode. In one embodiment, in the fault injection step S103, the controller controls each relay to open or close through each I/O pin, and the combination of the opening or closing of the plurality of relays enables the positive input terminal, the negative input terminal, the positive output terminal, the negative output terminal, the test power terminal, and the test ground terminal to be turned on in different manners to simulate the fault mode. In one embodiment, the controller configures the fault simulation relay network to simulate the fault mode in the fault injection step including: the fault comprises a single-double line open circuit fault, a single-double line ground short circuit fault, a single-double line power supply short circuit fault, an input and output positive and negative short circuit fault and a signal attenuation fault.
And S104, a state feedback step, wherein the controller feeds back the current states of all the I/O pins. In one embodiment, in the state feedback step S104, the controller periodically monitors the current states of the I/O pins and compiles a CAN message, bits in the CAN message correspond to the I/O pins and the relays of the controller one to one, and the controller sends the compiled CAN message to the CAN bus.
The specific implementation details of the vehicle-mounted ethernet fault injection test method can refer to the description in conjunction with fig. 2, and the description is not repeated here.
It should also be noted that the above-mentioned embodiments are only specific embodiments of the present invention. It is apparent that the present invention is not limited to the above embodiments and similar changes or modifications can be easily made by those skilled in the art from the disclosure of the present invention and shall fall within the scope of the present invention. The embodiments described above are provided to enable persons skilled in the art to make or use the invention and that modifications or variations can be made to the embodiments described above by persons skilled in the art without departing from the inventive concept of the present invention, so that the scope of protection of the present invention is not limited by the embodiments described above but should be accorded the widest scope consistent with the innovative features set forth in the claims.

Claims (12)

1. The utility model provides a vehicle-mounted Ethernet fault injection test device which characterized in that includes:
the tested end connector is connected to the Ethernet cable of the tested equipment;
a test end connector connected to the Ethernet cable of the test equipment;
a power connector connected to a test power and ground;
the fault simulation relay network is connected between the tested end connector and the tested end connector, is also connected to the power supply connector and simulates a fault mode;
the controller receives the control instruction, and controls the opening or closing of each relay in the fault simulation relay network according to the control instruction so as to simulate a fault mode;
and the power supply port is connected to the fault simulation relay network and the controller and provides a working power supply for the fault simulation relay network and the controller.
2. The vehicle ethernet fault injection testing apparatus of claim 1, wherein said fault-simulating relay network comprises: the controller controls the opening or closing of each relay through each I/O pin, and the combination of the opening or closing of the plurality of relays enables the positive input end, the negative input end, the positive output end, the negative output end, the test power supply end and the test grounding end to be switched on in different modes so as to simulate a fault mode.
3. The vehicle-mounted Ethernet fault injection testing apparatus of claim 2, wherein the simulated fault modes of the fault simulation relay network comprise: the fault comprises a single-double line open circuit fault, a single-double line ground short circuit fault, a single-double line power supply short circuit fault, an input and output positive and negative short circuit fault and a signal attenuation fault.
4. The vehicle-mounted Ethernet fault injection testing device of claim 1, wherein the test power supply is a vehicle-mounted battery, a vehicle-mounted battery or an external voltage-stabilizing power supply device, and the power supply connector simulates a fault of an Ethernet cable short-circuited to a power supply or a ground.
5. The vehicle-mounted Ethernet fault injection testing device of claim 1, wherein the controller is connected to a CAN bus, and the controller receives the control command through the CAN bus.
6. The vehicle-mounted Ethernet fault injection test device of claim 5, wherein the control command is a CAN message, bits in the CAN message correspond to I/O pins of the controller and relays one to one, and the controller outputs a command on the corresponding I/O pins according to the bits in the CAN message to turn on or turn off the corresponding relays.
7. A vehicle-mounted ethernet fault injection test method executed by the vehicle-mounted ethernet fault injection test of any one of claims 1 to 6, comprising:
an instruction receiving step, wherein a controller receives a control instruction;
in the instruction analyzing step, a controller analyzes a control instruction to obtain a fault mode;
a fault injection step, wherein the controller configures a fault simulation relay network according to a fault mode so as to simulate the fault mode;
and a state feedback step, wherein the controller feeds back the current states of all the I/O pins.
8. The vehicle-mounted Ethernet fault injection test method of claim 7, wherein in the command receiving step, the controller is connected to the CAN bus and monitors CAN messages from the specified ID in real time, and the CAN messages from the specified ID are control commands.
9. The vehicle-mounted Ethernet fault injection test method according to claim 8, wherein in the command parsing step, the controller configures each I/O pin according to a CAN message, wherein bits in the CAN message correspond to the I/O pins and the relays of the controller one to one, and the controller outputs a command on the corresponding I/O pin according to the bits in the CAN message.
10. The on-board ethernet fault injection testing method of claim 9, wherein in the fault injection step, the controller controls the relays to open or close through the I/O pins, and the combination of the opening or closing of the relays makes the positive input terminal, the negative input terminal, the positive output terminal, the negative output terminal, the test power terminal, and the test ground terminal to be turned on in different ways to simulate the fault mode.
11. The on-board ethernet fault injection testing method of claim 10, wherein said fault injection step, wherein the controller configuring the fault-simulating relay network to simulate a fault pattern comprises: the fault comprises a single-double line open circuit fault, a single-double line ground short circuit fault, a single-double line power supply short circuit fault, an input and output positive and negative short circuit fault and a signal attenuation fault.
12. The vehicle-mounted Ethernet fault injection test method according to claim 7, wherein in the state feedback step, the controller periodically monitors the current states of the I/O pins and compiles CAN messages, bits in the CAN messages correspond to the I/O pins and the relays of the controller one to one, and the controller sends the compiled CAN messages to the CAN bus.
CN202010354439.XA 2020-04-29 2020-04-29 Vehicle-mounted Ethernet fault injection test device and test method Pending CN111586131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010354439.XA CN111586131A (en) 2020-04-29 2020-04-29 Vehicle-mounted Ethernet fault injection test device and test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010354439.XA CN111586131A (en) 2020-04-29 2020-04-29 Vehicle-mounted Ethernet fault injection test device and test method

Publications (1)

Publication Number Publication Date
CN111586131A true CN111586131A (en) 2020-08-25

Family

ID=72127599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010354439.XA Pending CN111586131A (en) 2020-04-29 2020-04-29 Vehicle-mounted Ethernet fault injection test device and test method

Country Status (1)

Country Link
CN (1) CN111586131A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260901A (en) * 2020-10-23 2021-01-22 北京信而泰科技股份有限公司 Network damage instrument and use method thereof
CN113703423A (en) * 2021-08-27 2021-11-26 中汽创智科技有限公司 Vehicle-mounted fault injection equipment, system and control method
CN113759879A (en) * 2021-09-28 2021-12-07 重庆长安汽车股份有限公司 Vehicle-mounted Ethernet DoIP diagnosis flash test method and system based on L3 whole vehicle architecture
CN114205275A (en) * 2021-12-10 2022-03-18 安徽江淮汽车集团股份有限公司 Automatic testing system for Ethernet communication
CN114745312A (en) * 2022-03-31 2022-07-12 中国第一汽车股份有限公司 Vehicle-mounted Ethernet test system and method
CN115134280A (en) * 2022-06-23 2022-09-30 安徽江淮汽车集团股份有限公司 Fault testing system and method for vehicle-mounted Ethernet

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201877066U (en) * 2009-11-11 2011-06-22 李峰 Automatic simulating device for faults of automobile electric system
CN102750216A (en) * 2012-03-01 2012-10-24 浙江吉利汽车研究院有限公司 Fault injection system for intelligent bus
CN203465595U (en) * 2013-07-15 2014-03-05 上汽通用五菱汽车股份有限公司 Automatic fault injection control board for finished automobile CAN network testing and system
CN105975369A (en) * 2016-05-23 2016-09-28 河北工业大学 Automatic testing environment configuration device for vehicle-mounted network unit
WO2016206980A1 (en) * 2015-06-25 2016-12-29 Volkswagen Aktiengesellschaft Device and method for simulating fault conditions in a line
CN208424394U (en) * 2018-04-25 2019-01-22 浙江吉利汽车研究院有限公司 A kind of fault detection means of vehicle mounted communication equipment
CN210199577U (en) * 2019-09-06 2020-03-27 中国重汽集团济南动力有限公司 Fault injection module and system for testing engine controller

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201877066U (en) * 2009-11-11 2011-06-22 李峰 Automatic simulating device for faults of automobile electric system
CN102750216A (en) * 2012-03-01 2012-10-24 浙江吉利汽车研究院有限公司 Fault injection system for intelligent bus
CN203465595U (en) * 2013-07-15 2014-03-05 上汽通用五菱汽车股份有限公司 Automatic fault injection control board for finished automobile CAN network testing and system
WO2016206980A1 (en) * 2015-06-25 2016-12-29 Volkswagen Aktiengesellschaft Device and method for simulating fault conditions in a line
CN105975369A (en) * 2016-05-23 2016-09-28 河北工业大学 Automatic testing environment configuration device for vehicle-mounted network unit
CN208424394U (en) * 2018-04-25 2019-01-22 浙江吉利汽车研究院有限公司 A kind of fault detection means of vehicle mounted communication equipment
CN210199577U (en) * 2019-09-06 2020-03-27 中国重汽集团济南动力有限公司 Fault injection module and system for testing engine controller

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260901A (en) * 2020-10-23 2021-01-22 北京信而泰科技股份有限公司 Network damage instrument and use method thereof
CN112260901B (en) * 2020-10-23 2022-05-03 北京信而泰科技股份有限公司 Network damage instrument and use method thereof
CN113703423A (en) * 2021-08-27 2021-11-26 中汽创智科技有限公司 Vehicle-mounted fault injection equipment, system and control method
CN113759879A (en) * 2021-09-28 2021-12-07 重庆长安汽车股份有限公司 Vehicle-mounted Ethernet DoIP diagnosis flash test method and system based on L3 whole vehicle architecture
CN113759879B (en) * 2021-09-28 2023-07-04 重庆长安汽车股份有限公司 Vehicle-mounted Ethernet DoIP diagnosis and writing test method and system based on L3 whole vehicle architecture
CN114205275A (en) * 2021-12-10 2022-03-18 安徽江淮汽车集团股份有限公司 Automatic testing system for Ethernet communication
CN114745312A (en) * 2022-03-31 2022-07-12 中国第一汽车股份有限公司 Vehicle-mounted Ethernet test system and method
CN114745312B (en) * 2022-03-31 2023-09-26 中国第一汽车股份有限公司 Vehicle-mounted Ethernet test system and method
CN115134280A (en) * 2022-06-23 2022-09-30 安徽江淮汽车集团股份有限公司 Fault testing system and method for vehicle-mounted Ethernet
CN115134280B (en) * 2022-06-23 2023-11-24 安徽江淮汽车集团股份有限公司 Fault testing system and method for vehicle-mounted Ethernet

Similar Documents

Publication Publication Date Title
CN111586131A (en) Vehicle-mounted Ethernet fault injection test device and test method
CN110501998B (en) BMS hardware in-loop test system and test method
CN103558849B (en) A kind of method of pure electric automobile control strategy debugging and network test
DE102013214577A1 (en) Monitoring and diagnosis of a control unit
CN210864417U (en) Vehicle CAN bus interface conversion self-adaptive system
CN210668925U (en) Communication harness, simulation test equipment and system
DE102021205925A1 (en) SYSTEM FOR DIAGNOSTICS AN IN-WIRE CONTROL BOX OF AN ELECTRIC VEHICLE AND METHOD FOR CONTROLLING THE SAME
CN210168053U (en) Automatic test system for automobile Ethernet
CN214729788U (en) Large and medium-sized fixed wing unmanned aerial vehicle ground simulation fault injection equipment
CN113259659A (en) Test method, test device, storage medium and electronic device
CN113836065B (en) One drags multidata line circuit and data line
WO2023138037A1 (en) Communication link operation characteristic test system and test method
CN212060973U (en) Pneumatic ESC test system of commercial car
CN110749798B (en) High-power group charging direct current charging unit test system and test method
CN201796248U (en) Universal serial bus (USB)-controller area network (CAN) communication module based on microcontroller
CN115134280A (en) Fault testing system and method for vehicle-mounted Ethernet
CN110580037B (en) UART communication system and vehicle-mounted equipment
CN209921228U (en) Tractor electrical box with self fault diagnosis function
CN216848541U (en) Pin signal processing circuit and vehicle fault detection device
CN205091614U (en) Engine signal pickup assembly
CN111829581A (en) Vehicle-mounted product testing system and method
CN115277282A (en) CAN node, working method thereof and CAN bus
CN220628433U (en) Connection assembly and vehicle-mounted network data acquisition system
CN110989416A (en) Whole vehicle control system based on real-time Ethernet bus
CN216851939U (en) Pin signal processing device and pin signal processing circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200825

RJ01 Rejection of invention patent application after publication