Fuel cell vehicle-mounted terminal network system test method and related device

By acquiring multiple test parameters and conducting full-link testing in the fuel cell vehicle on-board terminal network system testing method, the problems of cumbersome testing operations and low compatibility in existing technologies are solved, achieving comprehensive test coverage and a simplified operation process.

CN120915699APending Publication Date: 2025-11-07FAW HAIMA AUTOMOBILE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511267331.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-05
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

Existing fuel cell vehicle terminal network system testing methods only focus on one aspect, resulting in cumbersome testing operations, low compatibility, and inability to cover the entire testing process.

Method used

A testing method for a fuel cell vehicle-mounted terminal network system is provided. By acquiring multiple test parameters under set conditions, physical layer, data link layer, interaction layer and network fault tolerance tests are performed sequentially, and a comprehensive test report is generated.

Benefits of technology

It achieves full-link testing coverage, improves test compatibility and ease of operation, and ensures the accuracy of test results and the effectiveness of fault location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120915699A_ABST
    Figure CN120915699A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a fuel cell vehicle-mounted terminal network system testing method and a related device, and relates to the technical field of fuel cell vehicles. The method comprises the following steps: acquiring a plurality of test parameters under set conditions; and sequentially performing a physical layer test, a data link layer test, an interaction layer test and a network fault tolerance test on the fuel cell vehicle-mounted terminal network system based on the test parameters. And generating a plurality of test sub-reports based on test results of the physical layer test, the data link layer test, the interaction layer test and the network fault tolerance test, and summarizing the test sub-reports to obtain a fuel cell vehicle-mounted terminal network system test report. According to the invention, the fuel cell vehicle-mounted terminal network system can be tested more comprehensively.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of fuel cell vehicle, in particular to a fuel cell vehicle terminal network system testing method and related device. BACKGROUND

[0002] In the field of new energy vehicles, the vehicle terminal network system is the core hub of the fuel cell vehicle power control and energy management, and its operation stability directly affects the safety performance and endurance of the vehicle. The CAN (Controller Area Network) bus becomes the key technology carrier for realizing real-time data interaction of the system with a communication rate of up to 1 Mbps, a differential signal anti-interference mechanism and a multi-master contention access protocol.

[0003] In the prior art, only one aspect of the vehicle terminal network system is often tested, and the full-link testing of the vehicle terminal network system cannot be covered. When other tests are needed, additional testing processes need to be added, making the operation of the test cumbersome and having low compatibility. SUMMARY

[0004] The purposes of the present application include, for example, providing a fuel cell vehicle terminal network system testing method and related device, which can at least partially solve the above technical problems.

[0005] Embodiments of the present application can be implemented as follows: In a first aspect, the embodiments of the present application provide a fuel cell vehicle terminal network system testing method, applied to a controller of a fuel cell vehicle terminal network system testing device, and the method comprises: Obtaining a plurality of test parameters under a set condition; Based on the test parameters, sequentially performing physical layer testing, data link layer testing, interaction layer testing and network fault tolerance testing on the fuel cell vehicle terminal network system; Based on the test results of the physical layer testing, the data link layer testing, the interaction layer testing and the network fault tolerance testing, respectively, a plurality of test sub-reports are generated, and the test sub-reports are summarized to obtain a fuel cell vehicle terminal network system testing report.

[0006] Optionally, the fuel cell vehicle terminal network system testing device further comprises an oscilloscope, and the controller is in communication connection with the oscilloscope; the test parameters include parallel resistance value, explicit differential voltage, implicit differential voltage and CAN signal transition edge waveform; and the physical layer testing comprises: acquire a parallel resistance value, an explicit differential voltage, an implicit differential voltage of a CAN bus terminal in the fuel cell vehicle terminal network system respectively, and acquire a CAN signal jump edge waveform based on the oscilloscope; perform a physical layer test on the fuel cell vehicle terminal network system based on the parallel resistance value, the explicit differential voltage, the implicit differential voltage and the jump edge waveform, and obtain a physical layer test result.

[0007] Optionally, the physical layer test on the fuel cell vehicle terminal network system based on the parallel resistance value, the explicit differential voltage, the implicit differential voltage and the jump edge waveform comprises: determining whether the parallel resistance value is within a preset standard resistance value range; determining whether the explicit differential voltage and the implicit differential voltage are within a preset standard voltage value range respectively; determining whether a jump duration of the jump edge waveform is within a preset jump duration range.

[0008] Optionally, the fuel cell vehicle terminal network system test device further comprises a CAN bus analyzer, the controller is in communication connection with the CAN bus analyzer, and the test parameters comprise a positioning time, a sampling point position and a CAN message; and the steps of the data link layer test comprise: measuring the positioning time and the sampling point position under a preset baud rate, verifying whether the positioning time and the sampling point position meet a preset standard, and obtaining a bit timing verification result; checking a DLC field and an ID identifier of the CAN message based on a preset protocol specification, and obtaining a message format checking result; injecting an abnormal message into the fuel cell vehicle terminal network system based on the CAN bus analyzer; the abnormal message comprises a CRC error frame and a format error frame; monitoring a first recovery duration required for a CAN bus to recover from an error state to a normal state, determining whether the first recovery duration is greater than a first preset recovery duration threshold, and obtaining a fault tolerance verification result; combining the bit timing verification result, the message format checking result and the fault tolerance verification result, and obtaining a data link layer test result.

[0009] Optionally, the steps of the interaction layer test comprise: monitoring a transmission cycle time deviation of a target cycle message, determining whether the transmission cycle time deviation is within a preset deviation range, and obtaining a cycle message time synchronization test result; injecting a preset fault code into the fuel cell vehicle terminal network system, and acquiring an event message corresponding to the preset fault code; determining whether the sending times of the event message meet the communication matrix list requirement to obtain an event response test result; combining the period message time synchronization test result and the event response test result to obtain an interaction layer test result.

[0010] Optionally, the network fault tolerance test step comprises: short circuit fault and open circuit fault simulation is performed on the CAN bus respectively, and a second recovery time length after short circuit fault elimination and a third recovery time length after open circuit fault elimination of the fuel cell vehicle terminal network system are monitored; whether the second recovery time length is within a second preset recovery time length threshold and whether the third recovery time length is within a third preset recovery time length threshold are determined respectively to obtain a short circuit and open circuit test result; based on the CAN bus analyzer, a plurality of error frames are injected into the fuel cell vehicle terminal network system at a preset frequency, so that the fuel cell vehicle terminal network system enters a bus shutdown fault state; a fourth recovery time length of the fuel cell vehicle terminal network system to recover to a normal state is monitored, and whether the fourth recovery time length is within a fourth preset recovery time length threshold is determined to obtain a bus shutdown fault recovery test result; combining the short circuit and open circuit test result and the bus shutdown fault recovery test result, a network fault tolerance test result is obtained.

[0011] Optionally, the CAN bus comprises a high potential line and a low potential line, and the short circuit fault and open circuit fault simulation on the CAN bus comprises: the high potential line and the low potential line are connected to a vehicle 12V power supply positive pole through relays respectively to simulate a high potential line and power supply short circuit fault state and a low potential line and power supply short circuit fault state; the high potential line and the low potential line are connected to a vehicle body ground wire through relays respectively to simulate a high potential line and ground wire short circuit fault state and a low potential line and ground wire short circuit fault state; the high potential line and the low potential line are connected by a wire to simulate a short circuit fault state between the high potential line and the low potential line; the CAN bus is disconnected to simulate an open circuit fault state.

[0012] In a second aspect, an embodiment of the present application provides a fuel cell vehicle terminal network system test device applied to a controller of a fuel cell vehicle terminal network system test equipment, and the fuel cell vehicle terminal network system test device comprises: A test parameter acquisition unit is configured to acquire a plurality of test parameters under a set condition. A test unit is configured to sequentially perform physical layer testing, data link layer testing, interactive layer testing and network fault tolerance testing on the fuel cell vehicle terminal network system based on the test parameters. A test report generation unit is configured to generate a plurality of test sub-reports based on test results of the physical layer testing, the data link layer testing, the interactive layer testing and the network fault tolerance testing respectively, and to obtain a fuel cell vehicle terminal network system test report by aggregating the test sub-reports.

[0013] In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the steps of the method according to any one of the preceding aspects when executing the program.

[0014] In a fourth aspect, a computer readable storage medium is provided, which includes a computer program, and the computer program controls a server where the computer readable storage medium is located to implement the steps of the method according to any one of the preceding aspects when running.

[0015] The beneficial effects of the embodiments of the present application include, for example: By acquiring a plurality of test parameters under different set conditions, and sequentially performing physical layer testing, data link layer testing, interactive layer testing and network fault tolerance testing on the fuel cell vehicle terminal network system based on the test parameters, a fuel cell vehicle terminal network system test report is finally obtained. The test coverage is wide, the compatibility is high, and the operation steps are simple. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope, and for those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0017] Figure 1 A block schematic diagram of an electronic device provided by the embodiments of the present application; Figure 2 A step flowchart of a fuel cell vehicle terminal network system test method provided by the embodiments of the present application; Figure 3 An architecture diagram of a fuel cell vehicle terminal network system test device provided by the embodiments of the present application; Figure 4An architecture diagram of a fuel cell vehicle terminal network system test device provided by an embodiment of the present application.

[0018] Icon: 100-electronic device; 110-memory; 120-processor; 130-communication module; 300-fuel cell vehicle terminal network system test device; 301-test parameter acquisition unit; 302-test unit; 303-test report generation unit. DETAILED DESCRIPTION

[0019] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. The components of the embodiments of the present application described and shown in the drawings can be arranged and designed in various different configurations.

[0020] Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative labor are within the scope of protection of the present application.

[0021] It should be noted that: similar reference numerals and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0022] In addition, if the terms "first", "second" and the like are used, they are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0023] It should be noted that: the features in the embodiments of the present application can be combined with each other without conflict.

[0024] The fuel cell vehicle terminal network system integrates complex characteristics such as high-voltage driving, complex thermal management and dynamic working conditions, and its operating environment temperature range can reach -30℃~75℃, the voltage fluctuation range reaches 300V~800V, and the traditional test method is difficult to fully cover the multi-dimensional test requirements such as physical layer signal integrity, data link layer protocol compatibility, interactive layer function consistency and network fault tolerance capability. According to the data of the new energy vehicle quality supervision and inspection center, under the existing test system, the early failure rate of the fuel cell vehicle terminal network system in actual application is still as high as 12%.

[0025] Based on the above situation, the embodiments of the present application provide a fuel cell vehicle terminal network system test method and related device, which can effectively alleviate the above problems.

[0026] Please refer to Figure 1 This is a block diagram of an electronic device 100 provided in this application. The electronic device 100 can be a data processing device, and this embodiment does not limit this. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, processor 120, and communication module 130 are electrically connected directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0027] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0028] The processor 120 is used to read / write data or programs stored in memory and to perform corresponding functions.

[0029] The communication module 130 is used to establish a communication connection between the server and other communication terminals through the network, and to send and receive data through the network.

[0030] It should be understood that, Figure 1 The structure shown is only a schematic diagram of the electronic device 100. The electronic device 100 may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown. Figure 1 The components shown can be implemented using hardware, software, or a combination thereof. This electronic device 100 can be integrated into other devices or configured as a standalone device.

[0031] This invention provides a testing method for a fuel cell vehicle on-board terminal network system, applied to the controller of a fuel cell vehicle on-board terminal network system testing equipment. The method includes, as described above... Figure 2 The following steps are shown: Step S110: Obtain multiple test parameters under the set conditions.

[0032] Step S120: based on the test parameters, sequentially performing physical layer testing, data link layer testing, interactive layer testing and network fault tolerance testing on the fuel cell vehicle terminal network system.

[0033] Step S130: based on the test results of the physical layer testing, the data link layer testing, the interactive layer testing and the network fault tolerance testing respectively, generating multiple test sub-reports, and summarizing each test sub-report to obtain a fuel cell vehicle terminal network system test report.

[0034] In step S110, multiple test parameters are obtained under a set condition.

[0035] For complete testing of the fuel cell vehicle terminal network system, multiple test steps are included, and various performance tests of the fuel cell vehicle terminal network system are included. Therefore, different set conditions can be used to ensure that the test environment does not affect the test results when testing different performances of the fuel cell vehicle terminal network system. Similarly, for different performance tests, the test parameters to be obtained are not completely the same. Therefore, multiple test parameters need to be obtained under a set condition, for example, the time length of the fuel cell vehicle terminal network system from a fault state to a normal state when the fuel cell vehicle terminal network system is in a fault state. The set condition here is that the fuel cell vehicle terminal network system is in a fault state, and the test parameter obtained is the time length of the fuel cell vehicle terminal network system from the fault state to the normal state.

[0036] In step S120, based on the test parameters, sequentially performing physical layer testing, data link layer testing, interactive layer testing and network fault tolerance testing on the fuel cell vehicle terminal network system.

[0037] The testing of the fuel cell vehicle terminal network system can include physical layer testing, data link layer testing, interactive layer testing and network fault tolerance testing. The physical layer is the basis for the fuel cell vehicle terminal network system to perform signal transmission, and its signal integrity (such as differential voltage, impedance matching, etc.) directly affects the protocol interaction of the data link layer (such as bit synchronization, error frame processing, etc.). The protocol consistency of the data link layer determines the correctness of the application layer function logic (such as network management). Therefore, when testing the fuel cell vehicle terminal network system, the testing should be performed in the order of "physical layer → data link layer → interactive layer → network fault tolerance".

[0038] If the physical layer test fails, the data link layer test will lose its foundation, i.e. signal distortion may cause abnormal protocol interaction, and at this time, the data link layer test will produce a "misjudgment" (mistaking physical layer problems for protocol problems). Similarly, when the data link layer protocol is inconsistent, it will directly lead to the failure of application layer interaction (such as UDS service response timeout), and if the data link layer problem is not solved first, the application layer test result will not have reference value.

[0039] Therefore, the test of the fuel cell vehicle terminal network system needs to ensure that the upper layer test passes before entering the lower layer, so as to ensure the accuracy of the test result and the effectiveness of fault positioning. In actual application, in order to ensure the integrity of the test process, if the upper layer test fails, the lower layer test can be continued to obtain complete fault correlation data (such as data link layer error frame caused by physical layer signal distortion, application layer timeout, etc.), but the test result of the lower layer is only used as a reference for fault analysis, not as the final conclusion.

[0040] Optionally, as shown in Figure 3 The test device of the fuel cell vehicle terminal network system further comprises an oscilloscope, and the controller is in communication connection with the oscilloscope. The test parameters include parallel resistance value, explicit differential voltage, implicit differential voltage, and CAN signal transition edge waveform. The steps of the physical layer test include: The parallel resistance value, explicit differential voltage, implicit differential voltage of the CAN bus terminal in the fuel cell vehicle terminal network system are acquired respectively, and the CAN signal transition edge waveform is acquired based on the oscilloscope.

[0041] The fuel cell vehicle terminal network system is tested based on the parallel resistance value, the explicit differential voltage, the implicit differential voltage, and the transition edge waveform to obtain a physical layer test result.

[0042] For the test of the physical layer, the controller can use the four-terminal measurement method to acquire the parallel resistance value of the CAN bus terminal, measure the differential voltage (i.e. explicit differential voltage) of the CAN bus explicit VCANH, VCANL, VCANDiff, VCANcom, and the differential voltage (i.e. implicit differential voltage) of the CAN bus implicit VCANH, VCANL, VCANDiff, VCANcom. And the CAN transition edge waveform is acquired through the oscilloscope. Based on these test parameters, the fuel cell vehicle terminal network system is tested at the physical layer to obtain a physical layer test result.

[0043] Optionally, the physical layer test of the fuel cell vehicle terminal network system based on the parallel resistance value, the explicit differential voltage, the implicit differential voltage, and the transition edge waveform comprises: determining whether the parallel resistance value is within a preset standard resistance value range.

[0044] determining whether the explicit differential voltage and the implicit differential voltage are within a preset standard voltage value range, respectively.

[0045] determining whether the transition duration of the transition edge waveform is within a preset transition duration range.

[0046] In an optional embodiment, the resistance test result can be obtained by determining whether the parallel resistance value is within a preset standard resistance value range. For example, after obtaining the parallel resistance value, it is determined whether the parallel resistance value is within the range of (60Ω±5Ω), so as to determine whether the bus impedance is matched, and the resistance test result is obtained.

[0047] In addition, the voltage characteristic test result can be obtained by determining whether the explicit differential voltage and the implicit differential voltage are within a preset standard voltage value range, respectively. For example, it is determined whether the value of the obtained explicit VCANDiff is within the range of 1.5V~3.0V, and whether the value of the implicit VCANcom is within the range of 4.2V~5.8V. Thus, it is verified whether the signal level meets the requirement of the ISO11898 standard, and the voltage characteristic test result is obtained.

[0048] The transition edge waveform of the CAN signal can be captured by the oscilloscope, and the transition duration of the signals such as CanH_Sr, CanH_Sf, CanL_Sr, CanL_Sf, CanDiff_Sr, and CanDiff_Sf can be obtained according to the transition edge waveform. If the transition duration of each signal meets the corresponding preset transition duration range, it is considered that the test is passed, that is, the signal quality meets the communication requirement; if one of the transition durations of the signals does not meet the requirement, it is considered that the test is failed. For example, if the preset transition duration range of CanDiff_Sr is 8ns~12ns, and the actually measured CanDiff_Sr=10ns, the transition duration of the signal passes the test; and if CanDiff_Sr=15ns, the transition duration of the signal fails the test.

[0049] Optionally, referring to Figure 3 , the fuel cell vehicle terminal network system test device further comprises a CAN bus analyzer, the controller is in communication connection with the CAN bus analyzer, and the test parameters include positioning time, sampling point position, and CAN message. The steps of the data link layer test include: measuring the positioning time and the sampling point position under a preset baud rate, verifying whether the positioning time and the sampling point position meet a preset standard, and obtaining a bit timing verification result.

[0050] The DLC field and the ID identifier of the CAN message are checked based on a preset protocol specification to obtain a message format checking result.

[0051] The CAN bus analyzer injects abnormal messages into the fuel cell vehicle terminal network system. The abnormal messages include CRC error frames and format error frames.

[0052] A first recovery time length required for the CAN bus to recover from an error state to a normal state is monitored, and it is determined whether the first recovery time length is greater than a first preset recovery time length threshold to obtain a fault tolerance verification result.

[0053] The data link layer test result is obtained in combination with the bit timing verification result, the message format checking result, and the fault tolerance verification result.

[0054] After the physical layer test is completed, the controller performs a data link layer test. The bit timing verification result is obtained by accurately measuring the positioning time and the sampling point position under a preset baud rate (e.g., 500 kbps) and verifying whether the positioning time and the sampling point position meet a preset standard. For example, if the standard value of the positioning time is 2000 ns ± 4 ns and the sampling point position is 81.25%, the waveforms of multiple consecutive bits are obtained, the time difference between adjacent rising edges / falling edges is measured, the fluctuation range of the measurement result is counted, and it is observed whether the fluctuation range is within 2000 ns ± 4 ns.

[0055] According to the bit time allocation formula:

[0056] Under the baud rate of 500 kbps, the nominal value of the bit time T bit is 2000 ns, wherein the synchronization segment (SYNCSEG): is used to realize bit synchronization of nodes on the bus; the time segment 1 (BS1): contains multiple time shares and is used to compensate for signal propagation delay; and the time segment 2 (BS2): also contains multiple time shares and is used to adjust the sampling point.

[0057] The sampling point position calculation formula is:

[0058] The values of the synchronization segment, the time segment 1, and the time segment 2 are substituted into the sampling point position calculation formula to obtain the value of the sampling point position (SamplePoint), and it is observed whether the value of the sampling point position is 81.25%. The bit timing verification result is further obtained.

[0059] In addition, based on a preset protocol specification (such as CAN2.0B protocol specification), the DLC field and ID identifier in the CAN message which are fixed as 8 bytes are checked, and a message format checking result is obtained.

[0060] Through the CAN bus analyzer, abnormal messages such as CRC error frames and format error frames are injected into the fuel cell vehicle terminal network system, and the time length (first recovery time length) for the CAN bus to recover from the error state to the normal state is monitored. If the time length is less than or equal to a first preset recovery time length threshold (such as 600 ms), the fault tolerance verification result of the fuel cell vehicle terminal network system is passed.

[0061] The bit timing verification result, the message format checking result, and the fault tolerance verification result are integrated to obtain a data link layer test result.

[0062] Optionally, the step of the interaction layer test comprises: The sending cycle time deviation of the target periodic message is monitored, and it is determined whether the sending cycle time deviation is within a preset deviation range to obtain a periodic message time synchronization test result.

[0063] A preset fault code is injected into the fuel cell vehicle terminal network system, and an event message corresponding to the preset fault code is obtained.

[0064] It is determined whether the sending number of the event message meets the communication matrix list requirement to obtain an event response test result.

[0065] The periodic message time synchronization test result and the event response test result are combined to obtain an interaction layer test result.

[0066] After the data link layer test is completed, the interaction layer test is performed. First, a target periodic message (such as 0x4D3) with a continuous monitoring period of 100 ms can be monitored, and it is recorded whether the time deviation of the actual sending period is within a preset deviation range. For example, when the sending cycle time deviation T≤10 ms, the time deviation meets the requirement of the preset deviation range ±10%; when the sending cycle time deviation T≤20 ms, the time deviation meets the requirement of the preset deviation range ±20%, and a periodic message time synchronization test result is obtained.

[0067] By injecting a preset fault code into the fuel cell vehicle terminal network system and obtaining an event message corresponding to the preset fault code, it is determined whether the sending number of the event message meets the communication matrix list requirement, so that an event response test result can be obtained.

[0068] For example, a fault trigger condition can be simulated by injecting a diagnostic trouble code (DTC) that complies with the UDS protocol specification of ISO 14229-1:2013.

[0069] A powertrain-related DTC (e.g., P0101, representing an air flow sensor range / performance fault) or a body system DTC (e.g., B1234, representing a body control module sensor signal abnormality) is injected, and a fault code is read through a UDS 0x22 service to trigger a sensor data abnormality state.

[0070] A control-related DTC (e.g., C0001, representing a brake control command format error) is injected, and an error format control command (e.g., an instruction length or a check value that does not comply with the protocol specification) is sent through a UDS 0x31 service to trigger a control command error state.

[0071] After the fault code is injected, the fuel cell vehicle terminal network system automatically triggers a repeated sending mechanism of the corresponding event message to determine whether the number of times of sending the event message meets the requirements of a communication matrix list, thereby obtaining an event response test result.

[0072] The period message time synchronization test result and the event response test result are combined to obtain an interaction layer test result.

[0073] Optionally, the step of network fault tolerance testing comprises: Short circuit and open circuit faults are simulated on the CAN bus, respectively, and a second recovery duration after the short circuit fault is eliminated and a third recovery duration after the open circuit fault is eliminated are monitored.

[0074] It is determined whether the second recovery duration is within a second preset recovery duration threshold and whether the third recovery duration is within a third preset recovery duration threshold, respectively, to obtain a short circuit and open circuit test result.

[0075] Based on the CAN bus analyzer, a plurality of error frames are injected into the fuel cell vehicle terminal network system at a preset frequency, so that the fuel cell vehicle terminal network system enters a bus shutdown fault state.

[0076] A fourth recovery duration for the fuel cell vehicle terminal network system to recover to a normal state is monitored, and it is determined whether the fourth recovery duration is within a fourth preset recovery duration threshold, to obtain a bus shutdown fault recovery test result.

[0077] The short circuit and open circuit test result and the bus shutdown fault recovery test result are combined to obtain a network fault tolerance test result.

[0078] After the interaction layer test is completed, network fault tolerance testing is performed. By respectively simulating short circuit faults and open circuit faults of the CAN bus, after the CAN bus is in a corresponding fault state, a recovery time length (i.e., a second recovery time length) of the fuel cell vehicle terminal network system after the short circuit fault is eliminated and a recovery time length (i.e., a third recovery time length) of the fuel cell vehicle terminal network system after the open circuit fault is eliminated are monitored. It is determined whether the second recovery time length is within a second preset recovery time length threshold and whether the third recovery time length is within a third preset recovery time length threshold, and a short circuit and open circuit test result is obtained. For example, if the second recovery time length is within the second preset recovery time length threshold, the short circuit test result is that the short circuit test is passed; and if the third recovery time length exceeds the third preset recovery time length threshold, the open circuit test result is that the open circuit test is not passed.

[0079] In addition, based on the CAN bus analyzer, a plurality of error frames can be injected into the fuel cell vehicle terminal network system at a preset frequency, so that the fuel cell vehicle terminal network system enters a bus-off fault state (i.e., a Busoff state). At this time, a fourth recovery time length of the fuel cell vehicle terminal network system from the bus-off fault state to a normal state is monitored, it is determined whether the fourth recovery time length is within a fourth preset recovery time length threshold, and a bus-off fault recovery test result is obtained.

[0080] For example, when the bus normally transmits an extended frame with an ID of 0x18F00500, a bit stream with an ID of 0x18F00600 is injected (the 15th bit in the arbitration field is intentionally sent with a level opposite to the bus), causing bit error accumulation. In the information field of the data frame, 6 bits of the same level are continuously transmitted (violating the rule in the CAN protocol that "5 consecutive same bits must be followed by an insertion bit"), triggering a stuffing error. In addition, when the correct CRC value of a certain frame data field is 0x5A8F, an error CRC value of 0x5A90 is injected, causing CRC check failure. In the frame end symbol, 7 bits of the recessive bit are not transmitted, but only 5 bits of the recessive bit are transmitted, triggering a form error.

[0081] By continuously injecting the error frame (e.g., 100 times / s), when the node error counter (TEC) reaches 255, the node enters the Busoff state, and the effectiveness of the fast recovery (45ms-70ms, first 5 times) and slow recovery (180ms-220ms, 6th and subsequent times) mechanisms can be further verified, and a bus-off fault recovery test result is obtained. In combination with the short circuit and open circuit test results and the bus-off fault recovery test result, a network fault tolerance test result is obtained.

[0082] Alternatively, the CAN bus includes a high potential line and a low potential line, and the respectively simulating short circuit faults and open circuit faults of the CAN bus includes: The high potential line and the low potential line are connected to the positive pole of the 12V power supply of the vehicle through relays, respectively, to simulate the fault state of short circuit of the high potential line to the power supply and the fault state of short circuit of the low potential line to the power supply.

[0083] The high potential line and the low potential line are connected to the vehicle body ground line through relays, respectively, to simulate the fault state of short circuit of the high potential line to the ground line and the fault state of short circuit of the low potential line to the ground line.

[0084] The high potential line and the low potential line are connected through a wire to simulate the short circuit fault state between the high potential line and the low potential line. The CAN bus is disconnected to simulate the open circuit fault state.

[0085] In an alternative embodiment, the high potential line (CAN_H) and the low potential line (CAN_L) of the CAN bus can be forcibly connected to the positive pole of the 12V power supply of the vehicle through relay control, respectively, to simulate the fault state of short circuit of the high potential line to the power supply and the fault state of short circuit of the low potential line to the power supply.

[0086] Similarly, the high potential line and the low potential line are connected to the vehicle body ground line, respectively, to simulate the fault state of short circuit of the high potential line to the ground line and the fault state of short circuit of the low potential line to the ground line. The high potential line and the low potential line are directly connected through a wire to simulate the short circuit fault state between the high potential line and the low potential line. The CAN bus is disconnected to simulate the open circuit fault state.

[0087] In step S130, a plurality of test sub-reports are generated based on the test results of the physical layer test, the data link layer test, the interaction layer test and the network fault tolerance test, respectively, and a fuel cell vehicle terminal network system test report is obtained by summarizing the test sub-reports.

[0088] After obtaining the physical layer test result, the controller generates a physical layer test sub-report. The bit timing verification result, the message format checking result and the fault tolerance verification result are combined to obtain the data link layer test result, and a data link layer test sub-report is generated. The periodic message time synchronization test result and the event response test result are combined to obtain the interaction layer test result, and an interaction layer test sub-report is generated. The short circuit and open circuit test results and the bus shutdown fault recovery test result are combined to obtain the network fault tolerance test result, and a network fault tolerance test sub-report is generated. The physical layer test sub-report, the data link layer test sub-report, the interaction layer test sub-report and the network fault tolerance test sub-report are combined to obtain a fuel cell vehicle terminal network system test report.

[0089] Based on the same inventive concept, as Figure 4As shown, the embodiment of the present application provides a fuel cell vehicle terminal network system testing device 300, which is applied to a controller of a fuel cell vehicle terminal network system testing equipment, and the fuel cell vehicle terminal network system testing device 300 comprises: a test parameter acquisition unit 301, configured to acquire a plurality of test parameters under a set condition.

[0090] a test unit 302, configured to sequentially perform physical layer testing, data link layer testing, interactive layer testing and network fault tolerance testing on the fuel cell vehicle terminal network system based on the test parameters.

[0091] a test report generation unit 303, configured to generate a plurality of test sub-reports based on test results of the physical layer testing, the data link layer testing, the interactive layer testing and the network fault tolerance testing respectively, and obtain a fuel cell vehicle terminal network system test report by summarizing the test sub-reports.

[0092] As to the fuel cell vehicle terminal network system testing device 300, the specific functions of each unit have been described in detail in the embodiment of the fuel cell vehicle terminal network system testing method provided in the present application, and thus will not be described in detail here.

[0093] Based on the same inventive concept, the embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the steps of any method of the fuel cell vehicle terminal network system testing method.

[0094] The present application at least has the following beneficial effects: By acquiring a plurality of test parameters under different set conditions, and sequentially performing physical layer testing, data link layer testing, interactive layer testing and network fault tolerance testing on the fuel cell vehicle terminal network system based on the test parameters, a fuel cell vehicle terminal network system test report is finally obtained. The test coverage is wide, the compatibility is high, and the operation steps are simple.

[0095] In several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the drawings show the possible implementation architecture, function and operation of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that in some alternative implementation manners, the functions noted in the blocks can also occur in different order from that noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for executing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0096] In addition, the function modules in the embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0097] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0098] The above description is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed by the present application can be easily thought of by those skilled in the art, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of testing a fuel cell vehicle on-board terminal network system, characterized by, A controller applied to a fuel cell vehicle terminal network system test device, the method comprising: obtaining a plurality of test parameters under a set condition; sequentially performing physical layer testing, data link layer testing, interactive layer testing and network fault tolerance testing on the fuel cell vehicle terminal network system based on the test parameters; generating a plurality of test sub-reports based on the test results of the physical layer testing, the data link layer testing, the interactive layer testing and the network fault tolerance testing, respectively, and obtaining a fuel cell vehicle terminal network system test report by summarizing each of the test sub-reports.

2. The method of claim 1, wherein the fuel cell vehicle telematics network system test is performed by a test system that is connected to the fuel cell vehicle telematics network system via a wired or wireless communication network. The fuel cell vehicle terminal network system test device further comprises an oscilloscope, and the controller is in communication connection with the oscilloscope; the test parameters include parallel resistance value, explicit differential voltage, implicit differential voltage and CAN signal transition edge waveform; the step of the physical layer testing comprises: obtaining the parallel resistance value, the explicit differential voltage, the implicit differential voltage of the CAN bus terminal in the fuel cell vehicle terminal network system, and obtaining the CAN signal transition edge waveform based on the oscilloscope; performing physical layer testing on the fuel cell vehicle terminal network system based on the parallel resistance value, the explicit differential voltage, the implicit differential voltage and the transition edge waveform to obtain a physical layer test result.

3. The method of claim 2, wherein the fuel cell vehicle telematics network system test is performed by a test system that is connected to the fuel cell vehicle telematics network system via a wired or wireless communication network. The physical layer testing based on the parallel resistance value, the explicit differential voltage, the implicit differential voltage and the transition edge waveform comprises: determining whether the parallel resistance value is within a preset standard resistance value range; determining whether the explicit differential voltage and the implicit differential voltage are within a preset standard voltage value range, respectively; determining whether the transition time of the transition edge waveform is within a preset transition time range.

4. The method of claim 1, wherein the fuel cell vehicle telematics network system test is performed by a test system. The fuel cell vehicle terminal network system test device further comprises a CAN bus analyzer, and the controller is in communication connection with the CAN bus analyzer; the test parameters include positioning time, sampling point position and CAN message; The step of the data link layer testing comprises: measuring the positioning time and the sampling point position under a preset baud rate, verifying whether the positioning time and the sampling point position meet a preset standard to obtain a bit timing verification result; checking the DLC field and the ID identifier of the CAN message based on a preset protocol specification to obtain a message format checking result; injecting an abnormal message into the fuel cell vehicle terminal network system based on the CAN bus analyzer; the abnormal message includes a CRC error frame and a format error frame; monitoring a first recovery time required for the CAN bus to recover from an error state to a normal state, and determining whether the first recovery time is greater than a first preset recovery time threshold to obtain a fault tolerance verification result; combining the bit timing verification result, the message format checking result and the fault tolerance verification result to obtain a data link layer test result.

5. The method of claim 1, wherein the fuel cell vehicle telematics network system test is performed by a test system that is connected to the fuel cell vehicle telematics network system via a wired or wireless communication network. The step of the interactive layer testing comprises: Monitoring a sending period time deviation of the target period message, judging whether the sending period time deviation is within a preset deviation range, and obtaining a period message time synchronization test result; Injecting a preset fault code into the fuel cell vehicle terminal network system, and obtaining an event message corresponding to the preset fault code; Judging whether a sending frequency of the event message meets a communication matrix list requirement, and obtaining an event response test result; Combining the period message time synchronization test result and the event response test result, and obtaining an interaction layer test result.

6. The fuel cell vehicle on-board terminal network system test method according to claim 4, wherein The network fault tolerance test comprises the following steps: Respectively simulating short circuit fault and open circuit fault of the CAN bus, and monitoring a second recovery time length after the short circuit fault is eliminated and a third recovery time length after the open circuit fault is eliminated; Respectively judging whether the second recovery time length is within a second preset recovery time length threshold and whether the third recovery time length is within a third preset recovery time length threshold, and obtaining a short circuit and open circuit test result; Based on the CAN bus analyzer, injecting a plurality of error frames into the fuel cell vehicle terminal network system at a preset frequency, so that the fuel cell vehicle terminal network system enters a bus shutdown fault state; Monitoring a fourth recovery time length for the fuel cell vehicle terminal network system to recover to a normal state, judging whether the fourth recovery time length is within a fourth preset recovery time length threshold, and obtaining a bus shutdown fault recovery test result; Combining the short circuit and open circuit test result and the bus shutdown fault recovery test result, and obtaining a network fault tolerance test result.

7. The fuel cell vehicle on-board terminal network system test method according to claim 6, characterized by, The CAN bus comprises a high potential line and a low potential line, and the respective simulation of short circuit fault and open circuit fault of the CAN bus comprises the following steps: Connecting the high potential line and the low potential line to a vehicle 12V power supply positive pole through relays, simulating a high potential line and power supply short circuit fault state, and simulating a low potential line and power supply short circuit fault state; Connecting the high potential line and the low potential line to a vehicle body ground wire through relays, simulating a high potential line and ground wire short circuit fault state, and simulating a low potential line and ground wire short circuit fault state; Connecting the high potential line and the low potential line through a wire, simulating a short circuit fault state between the high potential line and the low potential line; Disconnecting the CAN bus, simulating an open circuit fault state.

8. A fuel cell vehicle on-board terminal network system testing device characterized by comprising: A controller applied to a fuel cell vehicle terminal network system test device, the fuel cell vehicle terminal network system test device comprising: A test parameter acquisition unit configured to acquire a plurality of test parameters under a set condition; A test unit configured to sequentially perform physical layer testing, data link layer testing, interaction layer testing, and network fault tolerance testing on the fuel cell vehicle terminal network system based on the test parameters; A test report generation unit configured to generate a plurality of test sub-reports based on test results of the physical layer testing, the data link layer testing, the interaction layer testing, and the network fault tolerance testing, respectively, and obtain a fuel cell vehicle terminal network system test report by aggregating the test sub-reports.

9. An electronic device, comprising: Comprise: A memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1-7 when executing the program.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium comprises a computer program, the computer program controlling the server where the computer readable storage medium is located to implement the steps of the method of any one of claims 1-7 when running.