CN116578069A - Method, device and system for testing faults in vehicle - Google Patents

Method, device and system for testing faults in vehicle Download PDF

Info

Publication number
CN116578069A
CN116578069A CN202310699119.1A CN202310699119A CN116578069A CN 116578069 A CN116578069 A CN 116578069A CN 202310699119 A CN202310699119 A CN 202310699119A CN 116578069 A CN116578069 A CN 116578069A
Authority
CN
China
Prior art keywords
fault
state
target
internal
identification information
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
CN202310699119.1A
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.)
Imotion Automotive Technology Suzhou Co Ltd
Original Assignee
Imotion Automotive Technology Suzhou 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 Imotion Automotive Technology Suzhou Co Ltd filed Critical Imotion Automotive Technology Suzhou Co Ltd
Priority to CN202310699119.1A priority Critical patent/CN116578069A/en
Publication of CN116578069A publication Critical patent/CN116578069A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The application relates to the technical field of vehicle safety, and discloses a method, a device and a system for testing internal faults of a vehicle, wherein terminal equipment analyzes a fault mapping function state table to acquire identification information of each internal fault; and transmitting the target identification information of the target internal fault and the target test state to the ECU. The ECU analyzes the fault mapping function state table to obtain the mapping relation between the internal fault and the equipment fault state signals; based on the mapping relation, the target identification information and the target test state, controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state, and reporting the functional state to the terminal device. And when the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state, judging that the reporting link corresponding to each internal fault is normal. External fault injection is realized through the terminal equipment, and the ECU triggers and reports the faults of the internal links of the software, so that the testing efficiency of the internal faults is improved.

Description

Method, device and system for testing faults in vehicle
Technical Field
The present application relates to the field of vehicle safety technologies, and in particular, to a method, an apparatus, and a system for testing internal faults of a vehicle.
Background
With the rapid development of computer technology and automatic control technology, vehicle safety detection technology has also been developed rapidly. The normal operation of each function of the vehicle is ensured by performing a vehicle fault test before the vehicle is actually put into use. The vehicle fault test is an effective guarantee for ensuring good running state of the vehicle, and is a precondition of safe driving.
Vehicle fault testing relies primarily on an electronic control unit (Electronic Control Unit, ECU) to simulate a vehicle fault, thereby completing the fault test. The current vehicle fault test technology needs to build a matched operation environment aiming at the fault type, so that the fault test of the vehicle is realized under the operation environment. Considering that the operation environments corresponding to different fault types are different, different operation environments need to be built aiming at different faults, the whole fault test process needs to spend more time, and the construction difficulty of some operation environments is higher, so that the test cost is higher. For some newly developed software, whether the reported link is correct or not needs to be tested, and according to the current vehicle fault testing technology, more time is required to complete the test.
It can be seen how to improve the testing efficiency of internal faults is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the application aims to provide a method, a device and a system for testing internal faults of a vehicle, which can improve the testing efficiency of the internal faults.
In order to solve the above technical problems, an embodiment of the present application provides a method for testing a vehicle internal fault, which is applicable to an ECU, and the method includes:
acquiring target identification information and a target test state transmitted by terminal equipment; the target identification information and the target test state are information corresponding to any one of the internal faults;
analyzing a fault mapping function state table to obtain a mapping relation between internal faults and equipment fault state signals; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
based on the mapping relation, the target identification information and the target test state, controlling each device corresponding to the target identification information to operate according to a mode corresponding to the target test state, and reporting the corresponding functional state to the terminal device, so that the terminal device can judge that reporting links corresponding to the internal faults are normal under the condition that the terminal device detects that the functional state reported by the ECU is matched with the actual functional state triggered by the target identification information.
Optionally, based on the mapping relationship, the target identification information and the target test state, controlling each device corresponding to the target identification information to operate according to a mode corresponding to the target test state, and reporting the corresponding functional state to the terminal device includes:
determining a target internal fault and a target equipment fault state signal matched with the target identification information based on the mapping relation;
according to the target test state, adjusting the working state of the equipment represented by the fault state signal of the target equipment;
reporting the functional state corresponding to the equipment represented by the fault state signal of the target equipment to the terminal equipment.
Optionally, the test state includes a fault configuration state and a fault recovery state;
correspondingly, the adjusting the working state of the device represented by the fault state signal of the target device according to the target test state comprises:
under the condition that the target test state is a fault configuration state, configuring equipment represented by the fault state signal of the target equipment into a fault state;
and under the condition that the target test state is a fault recovery state, configuring the equipment represented by the fault state signal of the target equipment into a normal running state.
Optionally, the reporting, to the terminal device, the functional state corresponding to the device characterized by the fault state signal of the target device includes:
reporting a functional fault state corresponding to an equipment simulation fault state represented by the target equipment fault state signal to the terminal equipment under the condition that the target test state is a fault configuration state;
and reporting the normal function state of the equipment, which is represented by the fault state signal of the target equipment and is used for recovering normal operation, to the terminal equipment under the condition that the target test state is the fault recovery state.
The embodiment of the application also provides a device for testing the internal faults of the vehicle, which is suitable for the ECU, and comprises an acquisition unit, an analysis unit, a control unit and a reporting unit;
the acquisition unit is used for acquiring target identification information and target test states transmitted by the terminal equipment; the target identification information and the target test state are information corresponding to any one of the internal faults;
the analysis unit is used for analyzing the fault mapping function state table to obtain the mapping relation between the internal fault and the equipment fault state signals; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
The control unit is used for controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state;
the reporting unit is configured to report the corresponding functional state to the terminal device, so that the terminal device determines that the reporting link corresponding to each internal fault is normal when detecting that the functional state reported by the ECU matches with the actual functional state triggered by the target identification information.
Optionally, the control unit includes a query subunit and an adjustment subunit;
the query subunit is used for determining a target internal fault and a target equipment fault state signal matched with the target identification information based on the mapping relation;
the adjusting subunit is used for adjusting the working state of the equipment represented by the fault state signal of the target equipment according to the target test state;
correspondingly, the reporting unit is configured to report the functional state corresponding to the device represented by the fault state signal of the target device to the terminal device.
Optionally, the test state includes a fault configuration state and a fault recovery state;
Correspondingly, the adjusting subunit is configured to configure the device represented by the target device fault state signal into a fault state when the target test state is a fault configuration state; and under the condition that the target test state is a fault recovery state, configuring the equipment represented by the fault state signal of the target equipment into a normal running state.
Optionally, the reporting unit is configured to report, to the terminal device, a functional failure state corresponding to a device simulation failure state represented by the target device failure state signal when the target test state is a failure configuration state; and reporting the normal function state of the equipment, which is represented by the fault state signal of the target equipment and is used for recovering normal operation, to the terminal equipment under the condition that the target test state is the fault recovery state.
The embodiment of the application also provides a method for testing the internal faults of the vehicle, which is suitable for the terminal equipment and comprises the following steps:
analyzing a fault mapping function state table to obtain identification information of each internal fault; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
Transmitting target identification information and a target test state of a target internal fault to an ECU (electronic control Unit), so that the ECU can control each device corresponding to the target identification information to operate according to a mode corresponding to the target test state based on a mapping relation obtained by analyzing the fault mapping function state table and the received target identification information and the target test state, and report the corresponding function state to the terminal device; wherein the target internal fault is any one of the internal faults;
and under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU corresponding to each internal fault, judging that the reporting link corresponding to each internal fault is normal.
Optionally, the transmitting the target identification information of the target internal fault and the target test state to the ECU includes:
and traversing the identification information and the fault state of each internal fault, and transmitting the identification information and the test state corresponding to one internal fault to the ECU at a time.
Optionally, the test state corresponding to each internal fault in the initial state is a fault configuration state;
correspondingly, the transmitting the identification information and the test state corresponding to one internal fault to the ECU each time comprises the following steps:
Transmitting the identification information and the fault configuration state corresponding to the target internal fault to the ECU under the condition that the fault state corresponding to the target internal fault is the fault configuration state;
and after the functional fault state uploaded by the ECU is received, the fault state of the target internal fault is adjusted to be a fault recovery state, and the identification information corresponding to the target internal fault and the fault recovery state are transmitted to the ECU.
Optionally, when the functional state reported by the ECU corresponding to each internal fault matches with the actual functional state triggered by the identification information thereof, determining that the reporting link corresponding to each internal fault is normal includes:
reading a target equipment fault state signal with an effective identifier in data corresponding to a target internal fault in the fault mapping function state table;
detecting an actual functional state of the device corresponding to the fault state signal of the target device;
judging whether the functional state of each device corresponding to the target identification information reported by the ECU is consistent with the actual functional state;
and under the condition that the functional state of each device corresponding to the target identification information reported by the ECU is consistent with the actual functional state, determining that the reporting link corresponding to the target internal fault is normal, and ending the operation until the judgment of whether the reporting links corresponding to all internal faults are normal or the condition that the functional state of each device corresponding to the target identification information reported by the ECU is inconsistent with the actual functional state is completed.
Optionally, the method further comprises:
and under the condition that the functional state of each device corresponding to the target identification information reported by the ECU is inconsistent with the actual functional state, suspending the test flow and displaying the prompt information of reporting the abnormal link.
The embodiment of the application also provides a device for testing the internal faults of the vehicle, which is suitable for the terminal equipment and comprises an analysis unit, a transmission unit and a judging unit;
the analysis unit is used for analyzing the fault mapping function state table to obtain the identification information of each internal fault; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
the transmission unit is used for transmitting target identification information and a target test state of a target internal fault to the ECU, so that the ECU can control each device corresponding to the target identification information to operate according to a mode corresponding to the target test state based on the mapping relation obtained by analyzing the fault mapping function state table and the received target identification information and the target test state, and report the corresponding function state to the terminal device; wherein the target internal fault is any one of the internal faults;
And the judging unit is used for judging that the reporting link corresponding to each internal fault is normal under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU.
Optionally, the transmission unit is configured to traverse the identification information and the fault state of each internal fault, and transmit the identification information and the test state corresponding to one internal fault to the ECU at a time.
Optionally, the test state corresponding to each internal fault in the initial state is a fault configuration state;
correspondingly, the transmission unit is used for transmitting the identification information and the fault configuration state corresponding to the target internal fault to the ECU under the condition that the fault state corresponding to the target internal fault is the fault configuration state; and after the functional fault state uploaded by the ECU is received, the fault state of the target internal fault is adjusted to be a fault recovery state, and the identification information corresponding to the target internal fault and the fault recovery state are transmitted to the ECU.
Optionally, the judging unit includes a reading subunit, a detecting subunit, a judging subunit and a determining subunit;
The reading subunit is configured to read a target device fault status signal with an effective identifier in data corresponding to a target internal fault in the fault mapping function status table;
the detection subunit is used for detecting the actual functional state of the equipment corresponding to the fault state signal of the target equipment;
the judging subunit is used for judging whether the functional state of each device corresponding to the target identification information reported by the ECU is consistent with the actual functional state;
and the determining subunit is configured to determine that the reporting link corresponding to the target internal fault is normal when the functional state of each device corresponding to the target identification information reported by the ECU is consistent with the actual functional state, until the determination of whether the reporting links corresponding to all internal faults are normal or the situation that the functional state of each device corresponding to the target identification information reported by the ECU is inconsistent with the actual functional state is completed.
Optionally, the display unit is further included;
and the display unit is used for suspending the test flow and displaying the prompt information of reporting the abnormal link when the functional state of each device corresponding to the target identification information reported by the ECU is inconsistent with the actual functional state.
The embodiment of the application also provides a system for testing the internal faults of the vehicle, which comprises the following steps: a terminal device and an ECU;
the terminal equipment is used for analyzing the fault mapping function state table to acquire the identification information of each internal fault; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault; transmitting target identification information of the target internal fault and a target test state to the ECU; under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU corresponding to each internal fault, judging that the reporting link corresponding to each internal fault is normal;
the ECU is used for acquiring target identification information and target test states transmitted by the terminal equipment; the target identification information and the target test state are information corresponding to any one of the internal faults; analyzing a fault mapping function state table to obtain a mapping relation between internal faults and equipment fault state signals; and controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state, and reporting the corresponding functional state to the terminal device.
According to the technical scheme, the terminal equipment analyzes the fault mapping function state table to obtain the identification information of each internal fault; the fault mapping function state table records the equipment fault state signals corresponding to different internal faults, and each internal fault has unique identification information corresponding to the internal fault. One internal fault can be tested at a time, and the terminal device can transmit any internal fault, namely, target identification information and target test state of the target internal fault, to the ECU. The target identification information may be used to characterize the target internal fault, the target test state reflecting the currently required test phase. After the ECU acquires the target identification information and the target test state transmitted by the terminal equipment, analyzing a fault mapping function state table to acquire the mapping relation between the internal fault and the equipment fault state signals; and controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state, and reporting the corresponding functional state to the terminal device. Under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU, the terminal equipment can judge that the reporting link corresponding to each internal fault is normal. In the technical scheme, fault injection is carried out to the ECU through the terminal equipment, the ECU simulates an internal fault, and the functional state of each equipment during fault simulation is fed back to the terminal equipment. The terminal equipment can monitor the actual functional state of each equipment, and when the functional state fed back by the ECU is consistent with the functional state actually detected by the terminal equipment, the failure reporting link corresponding to the internal failure is indicated to be normal. The terminal equipment sequentially transmits the identification information and the test state to the ECU by traversing the fault mapping function state table, so that the test of all internal faults can be completed, and the coverage of fault test is improved. Compared with the mode of constructing a fault running environment to realize fault test in the traditional technology, the application realizes external fault injection through the terminal equipment, and the ECU triggers the internal link of the software and reports the fault, thereby improving the robustness of the software, greatly shortening the test time of the internal fault and improving the test efficiency of the internal fault.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is a signaling diagram of a method for testing a fault in a vehicle according to an embodiment of the present application;
fig. 2 is a flowchart of a method for identifying whether a reporting link is normal by a terminal device according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for simulating an internal failure of an ECU according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a test device for internal failure of a vehicle, which is suitable for an ECU according to the embodiment of the present application;
fig. 5 is a schematic structural diagram of a testing device for internal faults of a vehicle, which is suitable for a terminal device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a test system for internal faults of a vehicle according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
The terms "comprising" and "having" in the description of the application and the claims and in the above-mentioned figures, as well as any variations thereof that relate to "comprising" and "having", are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description.
Next, a method for testing a fault in a vehicle according to an embodiment of the present application will be described in detail. Fig. 1 is a signaling diagram of a method for testing a fault in a vehicle according to an embodiment of the present application, where the method includes:
s101: the terminal equipment analyzes the fault mapping function state table to obtain the identification information of each internal fault.
The terminal device may be a PC (Personal Computer ) or other intelligent device.
The fault mapping function state table records the equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault. For convenience of description, the unique identification information of each internal fault may be referred to as an ID of the internal fault.
The types of internal faults are various, and the fault devices corresponding to each internal fault are different. Different types of malfunctioning devices can exhibit their status via their corresponding indicator lights or the like. Therefore, in practical application, the indicator light signals corresponding to various devices can be used as fault state signals of the devices.
In the embodiment of the application, all internal faults can be used as column information of the fault mapping function state table, and the indicator lamps corresponding to all equipment fault states can be used as row information of the fault mapping function state table.
Common internal faults may include too low a vehicle KL30 voltage, too high a vehicle KL30 voltage, a 75% threshold alert for the rain range, a 50% threshold alert for the solar spot range, a 75% threshold alert for the fog range, a CAN bus shut down fault, a loss of communication with the engine control module, an abnormal accelerator pedal signal, etc. The indicator light corresponding to the common equipment fault state can comprise a front collision early warning work indicator light, a parallel auxiliary starting indicator light, a reversing lateral warning system starting indicator light, an intelligent cruising state indicator light, an adaptive cruising state indicator light and a lane auxiliary state indicator light.
In order to be able to identify the indicator lamps corresponding to different internal faults, a valid identifier may be set for each indicator lamp corresponding to an internal fault when constructing the fault mapping function state table, for example, a marking symbol "Y" may be used as the valid identifier. Table 1 below is a partial table taken from a fault mapping function status table according to an embodiment of the present application.
TABLE 1
Taking a row of information as an example, if "Y" is marked in the table 1, the fault state of the equipment needs to be reported; the absence of "Y" indicates that an internal fault is occurring, independent of the equipment fault condition.
In order to facilitate the system to automatically distinguish between different internal faults, its unique identification information may be set for each internal fault. In a specific implementation, different numbers may be employed as identification information for characterizing different internal faults.
In the embodiment of the application, in order to facilitate the acquisition of the fault mapping function state table by both the terminal equipment and the ECU, the fault mapping function state table can be stored in a storage space accessible by both the terminal equipment and the ECU.
The terminal device can obtain the identification information of each internal fault by analyzing the fault mapping function state table.
S102: the terminal device transmits the target identification information of the target internal fault and the target test state to the ECU.
The testing mode of each internal fault is similar, and in the actual testing process, the terminal equipment can traverse the identification information and the fault state of each internal fault and sequentially transmit the identification information and the testing state corresponding to each internal fault to the ECU.
Each time an internal fault test is performed, after the internal fault test is completed, the next internal fault test is performed, and so on until all internal fault tests are completed. In the test process, if the test fails, the fault reporting link of the internal fault is described as abnormal, and at the moment, the fault condition needs to be detected by manual intervention, and the test flow of the residual internal fault is not required to be executed.
In the embodiment of the present application, any one of the internal faults is described by taking an example as an introduction, and for convenience of distinction, any one of the internal faults may be referred to as a target internal fault. The identification information corresponding to the target internal fault is referred to as target identification information, and the test state corresponding to the target internal fault is referred to as target test state.
The target identification information may be used to characterize the target internal fault, the target test state reflecting the currently required test phase. For a target internal fault, the process from the fault state to the normal state needs to be tested, so the test stage can be divided into two stages, the first stage is a fault stage, and the second stage is a fault recovery stage, namely a normal operation stage. For the test state corresponding to the first stage to be a fault configuration state, the symbol "fail" may be used for indicating. The test state corresponding to the second stage is a fault recovery state, and can be represented by a symbol "pass". The operations that the ECU needs to perform at different stages are different, so that when a fault is injected, the terminal device can transmit the target identification information of the target internal fault and the target test state to the ECU.
S103: the ECU acquires target identification information and target test states transmitted by the terminal equipment.
The target identification information and the target test state are information corresponding to any one of the internal faults.
The ECU needs to interact with external equipment by means of CAN (Controller Area Network, control local area network) equipment, so in practical application, the terminal equipment CAN transmit target identification information and target test state to the CAN equipment, and the CAN equipment forwards the target identification information and the target test state to the ECU.
The test state corresponding to each internal fault in the initial state is a fault configuration state.
Under the condition that the fault state corresponding to the target internal fault is the fault configuration state, the terminal equipment can transmit the identification information corresponding to the target internal fault and the fault configuration state to the ECU; after receiving the functional failure state uploaded by the ECU, the terminal equipment adjusts the failure state of the target internal failure to be a failure recovery state, and then enters a second stage. In the second stage, the terminal device may transmit identification information corresponding to the target internal failure and the failure recovery state to the ECU.
S104: the ECU analyzes the fault mapping function state table to obtain the mapping relation between the internal fault and the equipment fault state signals.
The ECU can read the fault mapping function state table from a preset storage space, and can acquire the mapping relation between the internal fault and the equipment fault state signals by analyzing the fault mapping function state table.
S105: and the ECU controls each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state, and reports the corresponding functional state to the terminal device.
The ECU may acquire, based on the mapping relationship, which target internal fault corresponds to the target identification information, and a target equipment fault status signal corresponding to the target internal fault. Based on the target device fault status signal, it may be determined which devices need to be operated in a manner corresponding to the target test status.
The operation according to the mode corresponding to the target test state can be divided into two cases, wherein when the target test state is a fault configuration state, the corresponding mode is to configure the equipment represented by the fault state signal of the target equipment into a fault state; another case is that when the target test state is a fault recovery state, the corresponding manner is to configure the device characterized by the target device fault state signal to be in a normal operation state.
S106: and the terminal equipment judges that the reporting link corresponding to each internal fault is normal under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU.
The terminal equipment can monitor the actual functional state of each equipment, and when the functional state fed back by the ECU is consistent with the functional state actually detected by the terminal equipment, the failure reporting link corresponding to the internal failure is indicated to be normal.
The terminal equipment sequentially transmits the identification information and the test state to the ECU by traversing the fault mapping function state table, so that the test of all internal faults can be completed. Under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU, the reporting link corresponding to each internal fault can be judged to be normal.
According to the technical scheme, the terminal equipment analyzes the fault mapping function state table to obtain the identification information of each internal fault; the fault mapping function state table records the equipment fault state signals corresponding to different internal faults, and each internal fault has unique identification information corresponding to the internal fault. One internal fault can be tested at a time, and the terminal device can transmit any internal fault, namely, target identification information and target test state of the target internal fault, to the ECU. The target identification information may be used to characterize the target internal fault, the target test state reflecting the currently required test phase. After the ECU acquires the target identification information and the target test state transmitted by the terminal equipment, analyzing a fault mapping function state table to acquire the mapping relation between the internal fault and the equipment fault state signals; and controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state, and reporting the corresponding functional state to the terminal device. Under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU, the terminal equipment can judge that the reporting link corresponding to each internal fault is normal. In the technical scheme, fault injection is carried out to the ECU through the terminal equipment, the ECU simulates an internal fault, and the functional state of each equipment during fault simulation is fed back to the terminal equipment. The terminal equipment can monitor the actual functional state of each equipment, and when the functional state fed back by the ECU is consistent with the functional state actually detected by the terminal equipment, the failure reporting link corresponding to the internal failure is indicated to be normal. The terminal equipment sequentially transmits the identification information and the test state to the ECU by traversing the fault mapping function state table, so that the test of all internal faults can be completed, and the coverage of fault test is improved. Compared with the mode of constructing a fault running environment to realize fault test in the traditional technology, the application realizes external fault injection through the terminal equipment, and the ECU triggers the internal link of the software and reports the fault, thereby improving the robustness of the software, greatly shortening the test time of the internal fault and improving the test efficiency of the internal fault.
Fig. 2 is a flowchart of a method for identifying whether a reporting link is normal by a terminal device according to an embodiment of the present application, where the method includes:
s201: and reading a target equipment fault state signal with effective identification in data corresponding to the target internal fault in the fault mapping function state table.
In the embodiment of the application, each internal fault in the fault mapping function state table has corresponding row information, and the equipment fault state signal with effective identification is set in the row information, namely the target equipment fault state signal corresponding to the internal fault.
Therefore, in a specific implementation, the terminal device may read the target device fault status signal with the effective identifier in the data corresponding to the target internal fault in the fault mapping function status table.
For example, taking an internal fault with a 50% threshold value of a solar facula range as an example, in combination with table 1, it can be known that the indication lamp for representing the fault state of the equipment, which is provided with an effective identifier, corresponding to the internal fault, includes an intelligent cruise state indication lamp and an adaptive cruise state indication lamp. The target equipment fault state signals corresponding to the solar facula range 50% threshold alarm comprise intelligent cruise state indicator light signals and self-adaptive cruise state indicator light signals.
S202: and detecting the actual functional state of the device corresponding to the fault state signal of the target device.
The terminal device may detect an actual functional state of the device corresponding to the device failure state signal. In combination with the above example, the terminal device may detect the actual functional status of the smart cruise status indicator light and the adaptive cruise status indicator light.
In practical applications, the indicator light may represent the functional status by being on, off or in different colors. For example, the smart cruise status indicator light lights red to indicate that the smart cruise is in a fault state; the intelligent cruising state indicator light is bright green, and indicates that the intelligent cruising is in a normal running state; the intelligent cruising state indicator lights yellow to indicate that the intelligent cruising is in an alarm state.
S203: and judging whether the functional state of each device corresponding to the target identification information reported by the ECU is consistent with the actual functional state.
In the case where the functional state of each device corresponding to the target identification information reported by the ECU coincides with the actual functional state, S204 may be executed. When the functional status of each device corresponding to the target identification information reported by the ECU does not match the actual functional status, it is known to execute S205.
S204: and determining that the reporting link corresponding to the internal fault of the target is normal.
And under the condition that the functional state of each device corresponding to the target identification information reported by the ECU is consistent with the actual functional state, the reporting link corresponding to the target internal fault is normal.
S205: suspending the test flow and displaying the prompt information of reporting the link abnormality.
Under the condition that the functional state of each device corresponding to the target identification information reported by the ECU is inconsistent with the actual functional state, reporting link abnormality corresponding to the internal fault of the target is described, and at the moment, the terminal device can suspend the test flow and display the prompt information of reporting link abnormality, so that staff can intervene in time, and the problem of reporting link abnormality is solved.
The terminal device can acquire the functional state of each device uploaded by the ECU by injecting faults into the ECU. By comparing the detected actual functional state with the functional state uploaded by the ECU, whether the reported link is abnormal or not can be identified, the whole implementation process is simple and convenient, a complex running environment is not required to be deployed, and the internal fault testing efficiency is improved.
Fig. 3 is a flowchart of a method for simulating an internal fault by an ECU according to an embodiment of the present application, where the method includes:
S301: and determining a target internal fault and a target equipment fault state signal matched with the target identification information based on the mapping relation.
In practical applications, the internal fault handling software deployed in the ECU may generate c.h code from information contained in the fault mapping function state table, and import and generate the ECU executable file, thereby obtaining the mapping relationship.
After the ECU acquires the target identification information transmitted by the terminal device, the ECU may determine, based on the mapping relationship, a target internal fault and a target device fault status signal that are matched with the target identification information.
Assuming that the target identification information is 3, combining with the table 1, it can be inquired that the internal fault of the target matched with the target identification information is a solar facula range 50% threshold value alarm, and the matched target equipment fault state signals comprise an intelligent cruise state indicator light signal and an adaptive cruise state indicator light signal.
S302: and adjusting the working state of the equipment represented by the fault state signal of the target equipment according to the target test state.
The test states include a fault configuration state and a fault recovery state.
In the case where the target test state is a fault configuration state, the ECU may configure the device characterized by the target device fault state signal as a fault state.
In a specific implementation, when the ECU receives a request of an internal fault Fail sent by internal fault control software of the terminal equipment, fault processing software inside the ECU firstly shields all internal faults and independently configures an ID fault requested by the terminal equipment as the Fail.
In the case where the target test state is a failure recovery state, the ECU may configure the device characterized by the target device failure state signal to be in a normal operating state.
In a specific implementation, when the ECU receives a request of an internal fault Pass sent by internal fault control software of the terminal equipment, fault processing software inside the ECU firstly shields all internal faults and independently configures an ID fault requested by the terminal equipment as the Pass.
S303: and reporting the functional state corresponding to the equipment represented by the fault state signal of the target equipment to the terminal equipment.
And under the condition that the target test state is the fault configuration state, the ECU can report the functional fault state corresponding to the equipment simulation fault state represented by the target equipment fault state signal to the terminal equipment. And under the condition that the target test state is a fault recovery state, reporting the normal function state of the equipment which is represented by the fault state signal of the target equipment and is recovered to normal operation to the terminal equipment.
For an internal fault, the complete internal fault test procedure is the fail-to-pass test procedure.
Taking an internal fault as a 50% threshold value alarm of a solar facula range as an example, the identification information corresponding to the internal fault is 3. In practical application, the terminal device firstly sends a command of '3+fail' to the ECU, and the ECU can determine that the internal fault corresponding to '3' is a 50% threshold value alarm of a solar facula range by inquiring a fault mapping function state table after receiving the command, and the corresponding device fault state signals comprise an intelligent cruise state indicator lamp signal and an adaptive cruise state indicator lamp signal. Based on the fail command, the ECU can control the intelligent cruise status indicator light and the adaptive cruise status indicator light to enter a fault state through software, and upload the functional fault states of the two indicator lights to the terminal device. The terminal device can detect whether the two indicator lamps really enter a fault state, and if so, the test passing in the fail stage is indicated.
After the test in the fail stage is passed, the terminal equipment sends a 3+pass instruction to the ECU, and the ECU can determine that the internal fault corresponding to 3 is a 50% threshold value alarm of the solar facula range by inquiring a fault mapping function state table after receiving the instruction, and the corresponding equipment fault state signals comprise an intelligent cruise state indicator lamp signal and a self-adaptive cruise state indicator lamp signal. Based on the pass instruction, the ECU can control the intelligent cruise state indicator lamp and the adaptive cruise state indicator lamp to enter a normal state through software, and upload the normal function states of the two indicator lamps to the terminal equipment. The terminal device can detect whether the two indicator lamps are really restored to the normal state, and if so, the pass of the test in the pass stage is indicated. According to the test flow, the test of all internal faults can be completed.
In the embodiment of the application, the external fault injection is realized through the terminal equipment, and the ECU triggers the internal link of the software and reports the faults, so that the robustness of the software is improved, and the internal fault testing time is greatly shortened.
Fig. 4 is a schematic structural diagram of a test device for internal faults of a vehicle, which is suitable for an ECU and includes an acquisition unit 41, an analysis unit 42, a control unit 43 and a reporting unit 44;
an obtaining unit 41, configured to obtain target identification information and a target test state transmitted by a terminal device; the target identification information and the target test state are information corresponding to any one of the internal faults;
a parsing unit 42, configured to parse the fault mapping function status table to obtain a mapping relationship between the internal fault and the equipment fault status signal; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
a control unit 43, configured to control, based on the mapping relationship, the target identification information, and the target test state, each device corresponding to the target identification information to operate in a manner corresponding to the target test state;
And the reporting unit 44 is configured to report the corresponding functional state to the terminal device, so that the terminal device determines that the reporting link corresponding to each internal fault is normal when detecting that the functional state reported by the ECU matches with the actual functional state triggered by the target identification information.
Optionally, the control unit includes a query subunit and an adjustment subunit;
a query subunit, configured to determine, based on the mapping relationship, a target internal fault and a target device fault status signal that are matched by the target identification information;
the adjusting subunit is used for adjusting the working state of the equipment represented by the fault state signal of the target equipment according to the target test state;
correspondingly, the reporting unit is used for reporting the functional state corresponding to the equipment represented by the fault state signal of the target equipment to the terminal equipment.
Optionally, the test state includes a fault configuration state and a fault recovery state;
correspondingly, the adjusting subunit is used for configuring the equipment represented by the fault state signal of the target equipment into a fault state under the condition that the target test state is the fault configuration state; and under the condition that the target test state is a fault recovery state, configuring the equipment represented by the fault state signal of the target equipment into a normal running state.
Optionally, the reporting unit is configured to report, to the terminal device, a functional failure state corresponding to the device simulation failure state represented by the target device failure state signal when the target test state is a failure configuration state; and under the condition that the target test state is a fault recovery state, reporting the normal function state of the equipment which is represented by the fault state signal of the target equipment and is recovered to normal operation to the terminal equipment.
The description of the features of the embodiment corresponding to fig. 4 may be referred to the related description of the embodiment corresponding to fig. 1 to 3, and will not be repeated here.
According to the technical scheme, the ECU acquires the target identification information and the target test state transmitted by the terminal equipment; the target identification information and the target test state are information corresponding to any one of the internal faults. Analyzing a fault mapping function state table to obtain a mapping relation between internal faults and equipment fault state signals; and controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state, and reporting the corresponding functional state to the terminal device. The terminal equipment can monitor the actual functional state of each equipment, and when the functional state fed back by the ECU is consistent with the functional state actually detected by the terminal equipment, the failure reporting link corresponding to the internal failure is indicated to be normal. Under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU, the terminal equipment can judge that the reporting link corresponding to each internal fault is normal. Compared with the mode of constructing a fault running environment to realize fault test in the traditional technology, the application realizes external fault injection through the terminal equipment, and the ECU triggers the internal link of the software and reports the fault, thereby improving the robustness of the software, greatly shortening the test time of the internal fault and improving the test efficiency of the internal fault.
Fig. 5 is a schematic structural diagram of a testing device for a vehicle internal fault of a terminal device according to an embodiment of the present application, where the device includes an analyzing unit 51, a transmitting unit 52, and a determining unit 53;
a parsing unit 51, configured to parse the fault mapping function state table to obtain identification information of each internal fault; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
the transmission unit 52 is configured to transmit the target identification information and the target test state of the internal fault of the target to the ECU, so that the ECU controls each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation obtained by analyzing the fault mapping function state table and the received target identification information and target test state, and reports the corresponding function state to the terminal device; wherein the target internal fault is any one of the internal faults;
and the judging unit 53 is configured to judge that the reporting link corresponding to each internal fault is normal when the functional state reported by the ECU corresponding to each internal fault matches with the actual functional state triggered by the identification information thereof.
Optionally, the transmission unit is configured to traverse the identification information and the fault state of each internal fault, and transmit the identification information and the test state corresponding to one internal fault to the ECU at a time.
Optionally, the test state corresponding to each internal fault in the initial state is a fault configuration state;
correspondingly, the transmission unit is used for transmitting the identification information and the fault configuration state corresponding to the target internal fault to the ECU under the condition that the fault state corresponding to the target internal fault is the fault configuration state; and after the functional fault state uploaded by the ECU is received, the fault state of the target internal fault is adjusted to be a fault recovery state, and the identification information corresponding to the target internal fault and the fault recovery state are transmitted to the ECU.
Optionally, the determining unit includes a reading subunit, a detecting subunit, a judging subunit, and a determining subunit;
the reading subunit is used for reading a target equipment fault state signal with an effective identifier in data corresponding to the internal fault of the target in the fault mapping function state table;
the detection subunit is used for detecting the actual functional state of the equipment corresponding to the fault state signal of the target equipment;
the judging subunit is used for judging whether the functional state of each device corresponding to the target identification information reported by the ECU is consistent with the actual functional state;
And the determining subunit is used for determining that the reporting links corresponding to the internal faults of the targets are normal under the condition that the functional states of the devices corresponding to the target identification information reported by the ECU are consistent with the actual functional states, and ending the operation until the judgment of whether the reporting links corresponding to all the internal faults are normal or the condition that the functional states of the devices corresponding to the target identification information reported by the ECU are inconsistent with the actual functional states is completed.
Optionally, the display unit is further included;
and the display unit is used for suspending the test flow and displaying the prompt information of reporting the abnormal link under the condition that the functional state of each device corresponding to the target identification information reported by the ECU is inconsistent with the actual functional state.
The description of the features of the embodiment corresponding to fig. 5 may be referred to the related description of the embodiment corresponding to fig. 1 to 3, and will not be repeated here.
According to the technical scheme, the terminal equipment analyzes the fault mapping function state table to obtain the identification information of each internal fault; the fault mapping function state table records the equipment fault state signals corresponding to different internal faults, and each internal fault has unique identification information corresponding to the internal fault. The terminal equipment can transmit target identification information and target test state of any internal fault, namely target internal fault, to the ECU so that the ECU can analyze the fault mapping function state table after acquiring the target identification information and the target test state transmitted by the terminal equipment to acquire the mapping relation between the internal fault and the equipment fault state signal; and controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state, and reporting the corresponding functional state to the terminal device. Under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU, the terminal equipment can judge that the reporting link corresponding to each internal fault is normal. In the technical scheme, fault injection is carried out to the ECU through the terminal equipment, the ECU simulates an internal fault, and the functional state of each equipment during fault simulation is fed back to the terminal equipment. The terminal equipment can monitor the actual functional state of each equipment, and when the functional state fed back by the ECU is consistent with the functional state actually detected by the terminal equipment, the failure reporting link corresponding to the internal failure is indicated to be normal. The terminal equipment sequentially transmits the identification information and the test state to the ECU by traversing the fault mapping function state table, so that the test of all internal faults can be completed, and the coverage of fault test is improved. Compared with the mode of constructing a fault running environment to realize fault test in the traditional technology, the application realizes external fault injection through the terminal equipment, and the ECU triggers the internal link of the software and reports the fault, thereby improving the robustness of the software, greatly shortening the test time of the internal fault and improving the test efficiency of the internal fault.
Fig. 6 is a schematic structural diagram of a test system for internal faults of a vehicle according to an embodiment of the present application, a terminal device 61 and an ECU62;
a terminal device 61 for parsing the fault mapping function state table to obtain identification information of each internal fault; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault; transmitting target identification information of the target internal fault and the target test state to the ECU62; under the condition that the functional state reported by the ECU62 corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the functional state, judging that the reporting link corresponding to each internal fault is normal;
an ECU62 for acquiring target identification information and a target test state transmitted by the terminal device 61; the target identification information and the target test state are information corresponding to any one of the internal faults; analyzing a fault mapping function state table to obtain a mapping relation between internal faults and equipment fault state signals; based on the mapping relation, the target identification information and the target test state, each device corresponding to the target identification information is controlled to operate according to the mode corresponding to the target test state, and the corresponding functional state is reported to the terminal device 61.
In order to realize interaction between the ECU62 and the terminal device 61, it is necessary to use a CAN device because the ECU62 cannot directly communicate with an external device, and the CAN device is introduced in fig. 6.
The description of the features of the embodiment corresponding to fig. 6 may be referred to the related description of the embodiment corresponding to fig. 1 to 3, and will not be repeated here.
According to the technical scheme, the terminal equipment analyzes the fault mapping function state table to obtain the identification information of each internal fault; the fault mapping function state table records the equipment fault state signals corresponding to different internal faults, and each internal fault has unique identification information corresponding to the internal fault. One internal fault can be tested at a time, and the terminal device can transmit any internal fault, namely, target identification information and target test state of the target internal fault, to the ECU. The target identification information may be used to characterize the target internal fault, the target test state reflecting the currently required test phase. After the ECU acquires the target identification information and the target test state transmitted by the terminal equipment, analyzing a fault mapping function state table to acquire the mapping relation between the internal fault and the equipment fault state signals; and controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state, and reporting the corresponding functional state to the terminal device. Under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU, the terminal equipment can judge that the reporting link corresponding to each internal fault is normal. In the technical scheme, fault injection is carried out to the ECU through the terminal equipment, the ECU simulates an internal fault, and the functional state of each equipment during fault simulation is fed back to the terminal equipment. The terminal equipment can monitor the actual functional state of each equipment, and when the functional state fed back by the ECU is consistent with the functional state actually detected by the terminal equipment, the failure reporting link corresponding to the internal failure is indicated to be normal. The terminal equipment sequentially transmits the identification information and the test state to the ECU by traversing the fault mapping function state table, so that the test of all internal faults can be completed, and the coverage of fault test is improved. Compared with the mode of constructing a fault running environment to realize fault test in the traditional technology, the application realizes external fault injection through the terminal equipment, and the ECU triggers the internal link of the software and reports the fault, thereby improving the robustness of the software, greatly shortening the test time of the internal fault and improving the test efficiency of the internal fault.
The method, the device and the system for testing the internal faults of the vehicle, provided by the embodiment of the application, are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method, the device and the system for testing the internal faults of the vehicle are described in detail. The principles and embodiments of the present application have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present application and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.

Claims (12)

1. A method for testing a vehicle interior fault, adapted to an ECU, the method comprising:
acquiring target identification information and a target test state transmitted by terminal equipment; the target identification information and the target test state are information corresponding to any one of the internal faults;
analyzing a fault mapping function state table to obtain a mapping relation between internal faults and equipment fault state signals; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
Based on the mapping relation, the target identification information and the target test state, controlling each device corresponding to the target identification information to operate according to a mode corresponding to the target test state, and reporting the corresponding functional state to the terminal device, so that the terminal device can judge that reporting links corresponding to the internal faults are normal under the condition that the terminal device detects that the functional state reported by the ECU is matched with the actual functional state triggered by the target identification information.
2. The method for testing the internal failure of the vehicle according to claim 1, wherein controlling each device corresponding to the target identification information to operate in a manner corresponding to the target test state based on the mapping relation, the target identification information and the target test state, and reporting the corresponding functional state to the terminal device includes:
determining a target internal fault and a target equipment fault state signal matched with the target identification information based on the mapping relation;
according to the target test state, adjusting the working state of the equipment represented by the fault state signal of the target equipment;
reporting the functional state corresponding to the equipment represented by the fault state signal of the target equipment to the terminal equipment.
3. The method for testing for vehicle internal faults according to claim 2, wherein the test states include a fault configuration state and a fault recovery state;
correspondingly, the adjusting the working state of the device represented by the fault state signal of the target device according to the target test state comprises:
under the condition that the target test state is a fault configuration state, configuring equipment represented by the fault state signal of the target equipment into a fault state;
and under the condition that the target test state is a fault recovery state, configuring the equipment represented by the fault state signal of the target equipment into a normal running state.
4. The method for testing a vehicle interior fault according to claim 3, wherein reporting the functional state corresponding to the device characterized by the target device fault state signal to the terminal device includes:
reporting a functional fault state corresponding to an equipment simulation fault state represented by the target equipment fault state signal to the terminal equipment under the condition that the target test state is a fault configuration state;
and reporting the normal function state of the equipment, which is represented by the fault state signal of the target equipment and is used for recovering normal operation, to the terminal equipment under the condition that the target test state is the fault recovery state.
5. The device for testing the internal faults of the vehicle is characterized by being suitable for an ECU, and comprises an acquisition unit, an analysis unit, a control unit and a reporting unit;
the acquisition unit is used for acquiring target identification information and target test states transmitted by the terminal equipment; the target identification information and the target test state are information corresponding to any one of the internal faults;
the analysis unit is used for analyzing the fault mapping function state table to obtain the mapping relation between the internal fault and the equipment fault state signals; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
the control unit is used for controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state;
the reporting unit is configured to report the corresponding functional state to the terminal device, so that the terminal device determines that the reporting link corresponding to each internal fault is normal when detecting that the functional state reported by the ECU matches with the actual functional state triggered by the target identification information.
6. A method for testing a vehicle interior fault, adapted to a terminal device, the method comprising:
analyzing a fault mapping function state table to obtain identification information of each internal fault; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
transmitting target identification information and a target test state of a target internal fault to an ECU (electronic control Unit), so that the ECU can control each device corresponding to the target identification information to operate according to a mode corresponding to the target test state based on a mapping relation obtained by analyzing the fault mapping function state table and the received target identification information and the target test state, and report the corresponding function state to the terminal device; wherein the target internal fault is any one of the internal faults;
and under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU corresponding to each internal fault, judging that the reporting link corresponding to each internal fault is normal.
7. The method for testing a vehicle interior fault according to claim 6, wherein transmitting the target identification information and the target test status of the target interior fault to the ECU comprises:
and traversing the identification information and the fault state of each internal fault, and transmitting the identification information and the test state corresponding to one internal fault to the ECU at a time.
8. The method for testing an internal fault of a vehicle according to claim 7, wherein the test state corresponding to each internal fault in the initial state is a fault configuration state;
correspondingly, the transmitting the identification information and the test state corresponding to one internal fault to the ECU each time comprises the following steps:
transmitting the identification information and the fault configuration state corresponding to the target internal fault to the ECU under the condition that the fault state corresponding to the target internal fault is the fault configuration state;
and after the functional fault state uploaded by the ECU is received, the fault state of the target internal fault is adjusted to be a fault recovery state, and the identification information corresponding to the target internal fault and the fault recovery state are transmitted to the ECU.
9. The method for testing the internal faults of the vehicle according to claim 6, wherein in the case that the functional state reported by the ECU corresponding to each internal fault matches with the actual functional state triggered by the identification information thereof, determining that the reporting link corresponding to each internal fault is normal comprises:
Reading a target equipment fault state signal with an effective identifier in data corresponding to a target internal fault in the fault mapping function state table;
detecting an actual functional state of the device corresponding to the fault state signal of the target device;
judging whether the functional state of each device corresponding to the target identification information reported by the ECU is consistent with the actual functional state;
and under the condition that the functional state of each device corresponding to the target identification information reported by the ECU is consistent with the actual functional state, determining that the reporting link corresponding to the target internal fault is normal, and ending the operation until the judgment of whether the reporting links corresponding to all internal faults are normal or the condition that the functional state of each device corresponding to the target identification information reported by the ECU is inconsistent with the actual functional state is completed.
10. The method for testing for vehicle interior faults of claim 9, further comprising:
and under the condition that the functional state of each device corresponding to the target identification information reported by the ECU is inconsistent with the actual functional state, suspending the test flow and displaying the prompt information of reporting the abnormal link.
11. The device for testing the internal faults of the vehicle is characterized by being suitable for terminal equipment and comprising an analysis unit, a transmission unit and a judging unit;
the analysis unit is used for analyzing the fault mapping function state table to obtain the identification information of each internal fault; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault;
the transmission unit is used for transmitting target identification information and a target test state of a target internal fault to the ECU, so that the ECU can control each device corresponding to the target identification information to operate according to a mode corresponding to the target test state based on the mapping relation obtained by analyzing the fault mapping function state table and the received target identification information and the target test state, and report the corresponding function state to the terminal device; wherein the target internal fault is any one of the internal faults;
and the judging unit is used for judging that the reporting link corresponding to each internal fault is normal under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU.
12. A test system for vehicle interior failure, comprising: a terminal device and an ECU;
the terminal equipment is used for analyzing the fault mapping function state table to acquire the identification information of each internal fault; the fault mapping function state table records equipment fault state signals corresponding to different internal faults respectively, and each internal fault has unique identification information corresponding to the internal fault; transmitting target identification information of the target internal fault and a target test state to the ECU; under the condition that the functional state reported by the ECU corresponding to each internal fault is matched with the actual functional state triggered by the identification information of the ECU corresponding to each internal fault, judging that the reporting link corresponding to each internal fault is normal;
the ECU is used for acquiring target identification information and target test states transmitted by the terminal equipment; the target identification information and the target test state are information corresponding to any one of the internal faults; analyzing a fault mapping function state table to obtain a mapping relation between internal faults and equipment fault state signals; and controlling each device corresponding to the target identification information to operate according to the mode corresponding to the target test state based on the mapping relation, the target identification information and the target test state, and reporting the corresponding functional state to the terminal device.
CN202310699119.1A 2023-06-13 2023-06-13 Method, device and system for testing faults in vehicle Pending CN116578069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310699119.1A CN116578069A (en) 2023-06-13 2023-06-13 Method, device and system for testing faults in vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310699119.1A CN116578069A (en) 2023-06-13 2023-06-13 Method, device and system for testing faults in vehicle

Publications (1)

Publication Number Publication Date
CN116578069A true CN116578069A (en) 2023-08-11

Family

ID=87541411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310699119.1A Pending CN116578069A (en) 2023-06-13 2023-06-13 Method, device and system for testing faults in vehicle

Country Status (1)

Country Link
CN (1) CN116578069A (en)

Similar Documents

Publication Publication Date Title
US11544974B2 (en) Computer-readable storage medium, and fault detection method and apparatus
CN111634160B (en) Method for establishing communication connection with tire pressure monitoring system, device and electronic equipment thereof
CN102592414A (en) Test platform of driver active safety early warning system
CN106155042A (en) The method of testing of a kind of entire car controller troubleshooting and device
CN110609491B (en) Semi-physical simulation accident identification method and system for whole electric vehicle controller
CN111999073A (en) Safety detection method and system for vehicle information transmission
CN104655947A (en) Vehicle-mounted antenna fault diagnosis method, vehicle-mounted antenna fault diagnosis device, and vehicle-mounted antenna fault diagnosis system
KR20100066815A (en) Automated test device for remote terminal unit
JP2000324145A (en) Network diagnostic device, network diagnostic method and network system
CN112816228A (en) EOL detection method of EMS and EMS offline detection method
CN111141529B (en) Automatic test method for automobile instrument signals
CN103901339B (en) Carrier rocket three selects the detection device and method of two firing circuit single channel reliabilities
CN202832728U (en) Long-distance automobile exhaust emission detecting device and automobile
CN116578069A (en) Method, device and system for testing faults in vehicle
CN106370984B (en) Detection method based on electric wiring conducting automatic checkout system
CN219248063U (en) Domain controller testing arrangement
CN116844363A (en) Traffic signal lamp self-adaptive fault judging method
CN113691669B (en) Android mobile phone APP control vehicle full-process test analysis system and method
CN114153650A (en) Safety verification method and system for intelligent cabin display function
CN114148866B (en) Verification method, device and equipment of elevator door lock detection system and storage medium
CN114415637B (en) Consistency test method, device and system for CAN communication
CN116513277B (en) LKJ operation record data-based train control scene test method and system
CN114222413B (en) Fault self-checking method of lighting system and lighting system
CN114815786B (en) Test method and system for simulating alarm function triggering and electronic equipment
Wu et al. Research on Electrical and Mechanical Condition Monitoring System of the Special Vehicle

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