CN110825072B - Automobile fault diagnosis method, equipment, storage medium and device - Google Patents

Automobile fault diagnosis method, equipment, storage medium and device Download PDF

Info

Publication number
CN110825072B
CN110825072B CN201911210512.XA CN201911210512A CN110825072B CN 110825072 B CN110825072 B CN 110825072B CN 201911210512 A CN201911210512 A CN 201911210512A CN 110825072 B CN110825072 B CN 110825072B
Authority
CN
China
Prior art keywords
fault
state
communication
preset
vehicle
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.)
Active
Application number
CN201911210512.XA
Other languages
Chinese (zh)
Other versions
CN110825072A (en
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.)
Anhui Jianghuai Automobile Group Corp
Original Assignee
Anhui Jianghuai Automobile Group Corp
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 Anhui Jianghuai Automobile Group Corp filed Critical Anhui Jianghuai Automobile Group Corp
Priority to CN201911210512.XA priority Critical patent/CN110825072B/en
Publication of CN110825072A publication Critical patent/CN110825072A/en
Application granted granted Critical
Publication of CN110825072B publication Critical patent/CN110825072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method, a device, a storage medium and a device for diagnosing automobile faults, wherein the method comprises the following steps: detecting the state of a communication message at intervals of a preset time period, judging whether a communication fault exists according to the state of the communication message, if the communication fault exists, acquiring a fault index value, searching a fault code and a timestamp corresponding to the fault index value in a preset storage area, and sending the fault code and the timestamp to a preset client so that the preset client can carry out automobile fault diagnosis according to the fault code and the timestamp; according to the invention, the fault index value is obtained when the communication fault occurs, and the fault code and the timestamp are searched according to the fault index value, so that the automobile fault diagnosis is more reasonable, and the user experience is improved.

Description

Automobile fault diagnosis method, equipment, storage medium and device
Technical Field
The invention relates to the technical field of automobile detection, in particular to an automobile fault diagnosis method, equipment, a storage medium and a device.
Background
At present, the conventional communication fault detection process is as follows: an Electronic Control Unit (ECU) bottom layer protocol Unit acquires a communication message from a Controller Area Network (CAN) bus, an ECU upper layer application module monitors the acquired message periodically, when it is monitored that the communication message is lost, a timer module is started to start counting, the period is generally 10 times of the message sending period within a specified time, when a frame of message is 50ms and a defined time threshold is 500ms, and no valid message is continuously received, a fault code is recorded to a storage Unit. Therefore, how to accurately locate the fault message is an urgent technical problem to be solved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, equipment, a storage medium and a device for diagnosing automobile faults, and aims to solve the technical problem of accurately positioning fault messages in the prior art.
In order to achieve the above object, the present invention provides an automobile fault diagnosis method, which includes the following steps:
detecting the state of a communication message every a preset time period, and judging whether a communication fault exists according to the state of the communication message;
if a communication fault exists, acquiring a fault index value, and searching a fault code and a time stamp corresponding to the fault index value in a preset storage area;
and sending the fault code and the timestamp to a preset client so that the preset client can carry out automobile fault diagnosis according to the fault code and the timestamp.
Preferably, the method for diagnosing the vehicle fault further includes the steps of detecting the state of the communication message every preset time period, and determining whether a communication fault exists according to the state of the communication message, before the communication fault exists:
acquiring the power supply state, the ignition key state, the power indication message and the vehicle power state of an Electronic Control Unit (ECU);
and judging whether to start a communication fault diagnosis function according to the state of the ECU power supply, the state of the ignition key, the power indication message and the state of the vehicle power supply.
If yes, starting a communication fault diagnosis function, executing the steps of detecting the state of the communication message every other preset time period, and judging whether a communication fault exists according to the state of the communication message.
Preferably, the determining whether to start the communication fault diagnosis function according to the power supply state of the ECU, the ignition key state, the power indication message, and the vehicle power state includes:
determining the state of an ECU local working power supply according to the state of the ECU power supply and the state of the ignition key, and judging whether the ECU local working state is an effective state;
if so, carrying out validity judgment on the power indication message to obtain a judgment result;
if the judgment result is valid, determining the vehicle power supply state according to the vehicle power supply information;
and judging whether the vehicle power state is a preset power state or not, and determining whether a communication fault diagnosis function is started or not according to a judgment result.
Preferably, the detecting the communication packet state every preset time period and determining whether a communication fault exists according to the communication packet state includes:
detecting whether the communication message is lost every a preset time period, and determining the state of the communication message according to the detection result;
and judging whether a communication fault exists according to the state of the communication message.
Preferably, the preset storage area includes: a first storage area;
if the communication fault exists, acquiring a fault index value, and searching a fault code and a time stamp corresponding to the fault index value in a preset storage area, wherein the automobile fault diagnosis method further comprises the following steps:
when the communication message is lost, acquiring a current fault code and a target timestamp of the previous frame of communication message, and setting a fault index value;
establishing a corresponding relation among the fault index value, the fault code and the target timestamp, and establishing a preset mapping relation table according to the corresponding relation;
when the communication message is lost, timing is started, and a timing time interval is obtained;
judging whether the timing time interval is greater than a set time interval or not;
if the timing time interval is greater than the set time interval, extracting a sample time interval from the set time interval, and judging whether the communication message is lost in the sample time interval;
and if so, storing the preset mapping relation table into a first storage area.
Preferably, the preset storage area includes: a second storage area;
after judging whether the timing time period is greater than the set time period, the automobile fault diagnosis method further comprises the following steps:
and if the timing time interval is less than or equal to the set time interval, storing the preset mapping relation table into a second storage area.
Preferably, if the timing period is greater than a set period, extracting a sample period from the set period, and determining whether the sample period is lost, the method further includes:
and if the communication message is not lost, storing the preset mapping relation table into the second storage area.
In addition, in order to achieve the above object, the present invention also provides a vehicle fault diagnosis device, which includes a memory, a processor, and a vehicle fault diagnosis program stored in the memory and operable on the processor, wherein the vehicle fault diagnosis program is configured to implement the steps of the vehicle fault diagnosis method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a vehicle fault diagnosis program stored thereon, wherein the vehicle fault diagnosis program, when executed by a processor, implements the steps of the vehicle fault diagnosis method as described above.
In addition, to achieve the above object, the present invention also provides an automobile fault diagnosis apparatus including: the judging module and the searching module send the module;
the judging module is used for detecting the state of the communication message every other preset time period and judging whether a communication fault exists according to the state of the communication message;
the searching module is used for acquiring a fault index value if a communication fault exists, and searching a fault code and a time stamp corresponding to the fault index value in a preset storage area;
and the sending module is used for sending the fault code and the timestamp to a preset client so that the preset client can carry out automobile fault diagnosis according to the fault code and the timestamp.
Detecting the state of a communication message at intervals of a preset time period, judging whether a communication fault exists according to the state of the communication message, if the communication fault exists, acquiring a fault index value, searching a fault code and a timestamp corresponding to the fault index value in a preset storage area, and sending the fault code and the timestamp to a preset client so that the preset client carries out automobile fault diagnosis according to the fault code and the timestamp; according to the invention, the fault index value is obtained when the communication fault occurs, and the fault code and the timestamp are searched according to the fault index value, so that the automobile fault diagnosis is more reasonable, and the user experience is improved.
Drawings
FIG. 1 is a schematic structural diagram of a vehicle fault diagnosis device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a vehicle fault diagnosis method according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the method for diagnosing vehicle failure according to the present invention;
FIG. 4 is a schematic flow chart of a third embodiment of the method for diagnosing vehicle failure according to the present invention;
fig. 5 is a block diagram showing the configuration of the first embodiment of the vehicle failure diagnosis apparatus of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an automobile fault diagnosis device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the vehicle fault diagnosis apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the vehicle failure diagnosis apparatus, and may include more or less components than those shown, or combine some components, or a different arrangement of components.
As shown in fig. 1, a memory 1005, identified as one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a vehicle failure diagnosis program.
In the vehicle fault diagnosis device shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting user equipment; the vehicle fault diagnosis device calls a vehicle fault diagnosis program stored in the memory 1005 through the processor 1001 and executes the vehicle fault diagnosis method provided by the embodiment of the invention.
Based on the hardware structure, the embodiment of the automobile fault diagnosis method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the vehicle fault diagnosis method of the present invention, and the first embodiment of the vehicle fault diagnosis method of the present invention is provided.
In a first embodiment, the vehicle fault diagnosis method includes the steps of:
step S10: and detecting the state of the communication message every a preset time period, and judging whether a communication fault exists according to the state of the communication message.
It should be understood that the execution subject of the present embodiment is the vehicle failure diagnosis device, wherein the vehicle failure diagnosis device may be an Electronic device such as an Electronic Control Unit (ECU) mounted on a target vehicle.
The preset time period may be 50ms, or may be set by a factory when the factory leaves the factory, the detection of the communication message state may be to detect whether the communication message is lost, and the communication message state may be determined according to the detection result, and may be classified into a lost state and a lost state.
Step S20: and if the communication fault exists, acquiring a fault index value, and searching a fault code and a time stamp corresponding to the fault index value in a preset storage area.
It can be understood that the fault index value may be a corresponding fault index value set according to a fault code and a timestamp, the preset storage area may be an external Electrically Erasable Programmable Read Only Memory (EEPROM), a Random Access Memory (RAM), or the like, and the fault code and the timestamp corresponding to the fault index value searched in the preset storage area may be stored in different storage areas according to different types of the fault code.
Step S30: and sending the fault code and the timestamp to a preset client so that the preset client can carry out automobile fault diagnosis according to the fault code and the timestamp.
It should be noted that the preset client may be a client that a user or a manufacturer sends the fault code and the timestamp to the preset client, and the preset client may send the fault code and the timestamp with different values according to different fault types.
In the first embodiment, a communication message state is detected every a preset time period, whether a communication fault exists is judged according to the communication message state, if the communication fault exists, a fault index value is obtained, a fault code and a timestamp corresponding to the fault index value are searched in a preset storage area, and the fault code and the timestamp are sent to a preset client, so that the preset client performs automobile fault diagnosis according to the fault code and the timestamp; according to the embodiment, the fault index value is acquired when the communication fault occurs, and the fault code and the timestamp are searched according to the fault index value, so that the automobile fault diagnosis is more reasonable, and the user experience is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of the method for diagnosing the vehicle fault according to the present invention, and the second embodiment of the method for diagnosing the vehicle fault according to the present invention is proposed based on the first embodiment shown in fig. 2.
In the second embodiment, the step S10 is preceded by:
step S01: the method comprises the steps of obtaining the state of a power supply source of an electronic control unit ECU, the state of an ignition key, a power source indication message and the state of a vehicle power source.
It can be understood that the ECU power supply state may be a normal power state or an IGN power state, the ignition key state may be an ON gear state, the power indication message may be a valid state, and the vehicle power state may be a power OFF mode, an ACC mode, an ON mode, a start-up process, a post-start-up operating mode, or the like.
Step S02: and judging whether to start a communication fault diagnosis function according to the state of the ECU power supply, the state of the ignition key, the power indication message and the state of the vehicle power supply.
It should be understood that the communication fault diagnosis function may be turned ON when the ECU power supply state is the IGN power state, the ignition key state is the ON range, the power indication message is the valid state, and the vehicle power state is the ON mode or the after-start operation mode.
Step S03: if yes, starting a communication fault diagnosis function, executing the steps of detecting the state of the communication message every other preset time period, and judging whether a communication fault exists according to the state of the communication message.
In the second embodiment, the step S10 includes:
step S101: and detecting whether the communication message is lost every a preset time period, and determining the state of the communication message according to the detection result.
It can be understood that the preset time period may be 50ms, or may be set by a manufacturer when leaving a factory, the detection of the communication packet state may be to detect whether the communication packet is lost, the communication packet state may be determined according to the detection result, and the communication packet state may be classified into a lost state and a lost state.
Step S102: and judging whether a communication fault exists according to the state of the communication message.
It should be noted that, if the communication state is lost, it may be determined that there is a communication failure.
In a second embodiment, an Electronic Control Unit (ECU) power supply state, an ignition key state, a power indication message and a vehicle power state are obtained, whether a communication fault diagnosis function is started or not is judged according to the ECU power supply state, the ignition key state, the power indication message and the vehicle power state, if so, the communication fault diagnosis function is started, the steps of detecting the communication message state every preset time period and judging whether a communication fault exists or not according to the communication message state are executed, whether the communication message is lost or not is detected every preset time period, the communication message state is determined according to the detection result, whether the communication fault exists or not is judged according to the communication message state, if the communication fault exists, a fault index value is obtained, and a fault code and a timestamp corresponding to the fault index value are searched in a preset storage area, sending the fault code and the timestamp to a preset client so that the preset client can carry out automobile fault diagnosis according to the fault code and the timestamp; according to the embodiment, whether the communication fault diagnosis function is started or not is judged by detecting the state of the power supply of the ECU, the state of the ignition key, the power indication message and the state of the vehicle power supply, so that the problem of fault code false alarm caused by power mode difference or starting process can be avoided, and the user experience is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of the method for diagnosing a vehicle fault according to the present invention, and the third embodiment of the method for diagnosing a vehicle fault according to the present invention is proposed based on the first embodiment shown in fig. 2.
In the third embodiment, before the step S20, the method further includes:
step S201: and when the communication message is lost, acquiring the current fault code and the target timestamp of the previous frame of communication message, and setting a fault index value.
It should be noted that, when a communication packet is lost, a target timestamp of a previous frame of communication packet may be requested from the underlying protocol unit, a fault code is obtained, and a fault index value is set.
Step S202: establishing a corresponding relation among the fault index value, the fault code and the target timestamp, and establishing a preset mapping relation table according to the corresponding relation;
step S203: when the communication message is lost, timing is started, and a timing time interval is obtained;
it should be understood that when a communication message is lost, a failure confirmation timer is started and a timely period is obtained.
Step S204: judging whether the timing time interval is greater than a set time interval or not;
it should be noted that, it is determined whether the failure confirmation timer counts to a set time period and the message loss is still monitored.
Step S205: if the timing time interval is greater than the set time interval, extracting a sample time interval from the set time interval, and judging whether the communication message is lost in the sample time interval;
it can be understood that whether the communication fault is lost in a window in a set time period is further detected, and if the communication fault is lost, a communication fault effective flag bit is set.
Step S206: and if so, storing the preset mapping relation table into a first storage area.
It should be noted that the preset mapping relation table is written into an external EEPROM or an on-chip FLASH, so as to ensure that the FLASH memory cannot be erased after power is turned off.
Further, after the step S204, the method further includes:
and if the timing time interval is less than or equal to the set time interval, storing the preset mapping relation table into a second storage area.
It should be noted that, if the timing period is less than or equal to the set period, the preset mapping table is written to a fixed area allocated to the internal random access memory RAM, where the fixed area allocated to the memory RAM may be a fixed-size storage area allocated to the RAM by the ECU after power-on, and is used to temporarily store the sporadic communication fault codes and the time stamps, and in the fixed storage area, 16 pieces of fault code and time stamp information can be stored, more than 16 pieces of information are stored, and the newly added information automatically covers the fault information stored first.
Further, after the step S205, the method further includes:
and if the communication message is not lost, storing the preset mapping relation table into the second storage area.
In the third embodiment, the step S02 includes:
step S021: and determining the state of an ECU local working power supply according to the state of the ECU power supply and the state of the ignition key, and judging whether the ECU local working state is an effective state.
The ECU power supply state may be a normal power state or an IGN power state, and the ignition key state may be an ON range, and if the ECU power supply state is the IGN power state and the ignition key state is the ON range, the ECU local operation state is the valid state.
Step S022: if yes, the validity of the power indication message is judged, and a judgment result is obtained.
It should be noted that, the power status indication message on the bus is determined to be valid, and the message is generally sent by the vehicle body controller.
Step S023: and if the judgment result is valid, determining the vehicle power supply state according to the vehicle power supply information.
It should be appreciated that the communication diagnostic fault detection function is enabled when detecting information of the vehicle power state while in the ON mode or the run-after-start mode.
Step S024: and judging whether the vehicle power state is a preset power state or not, and determining whether a communication fault diagnosis function is started or not according to a judgment result.
It should be noted that, the information of the vehicle power state is detected, and when the vehicle is in the ON mode or the operation mode after starting, the communication diagnosis fault detection function is started.
In a third embodiment, an ECU power supply state, an ignition key state, a power indication message and a vehicle power state are obtained, an ECU local operating power state is determined according to the ECU power supply state and the ignition key state, and whether the ECU local operating state is a valid state is judged, if yes, validity judgment is performed on the power indication message to obtain a judgment result, if yes, the vehicle power state is determined according to the vehicle power information, whether the vehicle power state is a preset power state is judged, whether a communication fault diagnosis function is turned on according to the judgment result, if yes, the communication fault diagnosis function is turned on, the communication message state is detected every preset time period, and whether a communication fault exists is judged according to the communication message state, detecting the state of a communication message at intervals of a preset time period, judging whether a communication fault exists according to the state of the communication message, when the communication message is lost, acquiring a current fault code and a target timestamp of a previous frame of communication message, setting a fault index value, establishing a corresponding relation among the fault index value, the fault code and the target timestamp, establishing a preset mapping relation table according to the corresponding relation, when the communication message is lost, starting timing, acquiring a timing period, judging whether the timing period is greater than a set period, if the timing period is greater than the set period, extracting a sample period from the set period, judging whether the communication message is lost in the sample period, if so, storing the preset mapping relation table in a first storage area, and if so, acquiring the fault index value, searching a fault code and a time stamp corresponding to the fault index value in a preset storage area, and sending the fault code and the time stamp to a preset client so that the preset client can carry out automobile fault diagnosis according to the fault code and the time stamp; in the embodiment, whether the timing time period is greater than the set time period or not and whether the communication message is lost or not in the sample time period are judged, so that the faults can be classified and stored, the confirmed faults are arranged in a non-erasing area, and accidental faults are arranged in a fixed area of the RAM, so that the user experience is improved.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a vehicle fault diagnosis program, and the vehicle fault diagnosis program, when executed by a processor, implements the steps of the vehicle fault diagnosis method described above.
In addition, referring to fig. 5, an embodiment of the present invention further provides an automobile fault diagnosis apparatus, where the automobile fault diagnosis apparatus includes: the device comprises a judging module 10, a searching module 20 and a sending module 30; (ii) a
The judging module 10 is configured to detect a communication packet state every preset time period, and judge whether a communication fault exists according to the communication packet state.
It should be understood that the execution subject of the present embodiment is the vehicle failure diagnosis device, wherein the vehicle failure diagnosis device may be an Electronic device such as an Electronic Control Unit (ECU) mounted on a target vehicle.
The preset time period may be 50ms, or may be set by a factory when the factory leaves the factory, the detection of the communication message state may be to detect whether the communication message is lost, and the communication message state may be determined according to the detection result, and may be classified into a lost state and a lost state.
The searching module 20 is configured to, if there is a communication fault, obtain a fault index value, and search a preset storage area for a fault code and a timestamp corresponding to the fault index value.
It can be understood that the fault index value may be a corresponding fault index value set according to a fault code and a timestamp, the preset storage area may be an external Electrically Erasable Programmable Read Only Memory (EEPROM), a Random Access Memory (RAM), or the like, and the fault code and the timestamp corresponding to the fault index value searched in the preset storage area may be stored in different storage areas according to different types of the fault code.
The sending module 30 is configured to send the fault code and the timestamp to a preset client, so that the preset client performs vehicle fault diagnosis according to the fault code and the timestamp.
It should be noted that the preset client may be a client that a user or a manufacturer sends the fault code and the timestamp to the preset client, and the preset client may send the fault code and the timestamp with different values according to different fault types.
In this embodiment, a communication message state is detected every a preset time period, whether a communication fault exists is judged according to the communication message state, if the communication fault exists, a fault index value is obtained, a fault code and a timestamp corresponding to the fault index value are searched in a preset storage area, and the fault code and the timestamp are sent to a preset client, so that the preset client performs automobile fault diagnosis according to the fault code and the timestamp; according to the embodiment, the fault index value is acquired when the communication fault occurs, and the fault code and the timestamp are searched according to the fault index value, so that the automobile fault diagnosis is more reasonable, and the user experience is improved.
In one embodiment, the vehicle failure diagnosis apparatus further includes: starting a judgment module;
the starting judging module is used for acquiring the power supply state, the ignition key state, the power indication message and the vehicle power state of an Electronic Control Unit (ECU), judging whether to start the communication fault diagnosis function according to the ECU power supply state, the ignition key state, the power indication message and the vehicle power state, if so, starting the communication fault diagnosis function, detecting the communication message state at preset time intervals, and judging whether a communication fault exists according to the communication message state;
in an embodiment, the start determining module is further configured to determine a local operating power state of the ECU according to the power supply state of the ECU and the state of the ignition key, and determine whether the local operating state of the ECU is an effective state, if so, perform validity determination on the power indication message to obtain a determination result, and if so, determine a vehicle power state according to the vehicle power information, determine whether the vehicle power state is a preset power state, and determine whether to start a communication fault diagnosis function according to the determination result;
in an embodiment, the determining module is further configured to detect whether the communication packet is lost every preset time period, determine a communication packet state according to a detection result, and determine whether a communication fault exists according to the communication packet state;
in one embodiment, the vehicle failure diagnosis apparatus further includes: a storage module;
the storage module is used for acquiring a current fault code and a target timestamp of a previous frame of communication message when the communication message is lost, setting a fault index value, establishing a corresponding relation among the fault index value, the fault code and the target timestamp, establishing a preset mapping relation table according to the corresponding relation, starting timing when the communication message is lost, acquiring a timing period, judging whether the timing period is greater than a set period, if so, extracting a sample period from the set period, judging whether the communication message is lost in the sample period, and if so, storing the preset mapping relation table in a first storage area;
in an embodiment, the storage module is further configured to store the preset mapping relationship table into a second storage area if the timing period is less than or equal to the set period;
in an embodiment, the storage module is further configured to store the preset mapping relationship table into the second storage area if the communication packet is not lost.
Other embodiments or specific implementation manners of the vehicle fault diagnosis device of the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A vehicle fault diagnosis method is characterized by comprising the following steps:
detecting the state of a communication message every a preset time period, and judging whether a communication fault exists according to the state of the communication message;
when the communication message is lost, acquiring a current fault code and a target timestamp of the previous frame of communication message, and setting a fault index value;
establishing a corresponding relation among the fault index value, the fault code and the target timestamp, and establishing a preset mapping relation table according to the corresponding relation;
when the communication message is lost, timing is started, and a timing time interval is obtained;
judging whether the timing time interval is greater than a set time interval or not;
if the timing time interval is greater than the set time interval, extracting a sample time interval from the set time interval, and judging whether the communication message is lost in the sample time interval;
if yes, storing the preset mapping relation table into a first storage area;
if the communication fault exists, acquiring a fault index value, and searching a fault code and a time stamp corresponding to the fault index value in a preset storage area, wherein the preset storage area comprises: a first storage area;
and sending the fault code and the timestamp to a preset client so that the preset client can carry out automobile fault diagnosis according to the fault code and the timestamp.
2. The vehicle fault diagnosis method according to claim 1, wherein before the step of detecting the status of the communication packet at predetermined time intervals and determining whether the communication fault exists according to the status of the communication packet, the vehicle fault diagnosis method further comprises:
acquiring the power supply state, the ignition key state, the power indication message and the vehicle power state of an Electronic Control Unit (ECU);
judging whether to start a communication fault diagnosis function according to the state of the ECU power supply, the state of the ignition key, the power indication message and the state of the vehicle power supply;
if yes, starting a communication fault diagnosis function, executing the steps of detecting the state of the communication message every other preset time period, and judging whether a communication fault exists according to the state of the communication message.
3. The method for diagnosing vehicle failure according to claim 2, wherein the step of determining whether to start the communication failure diagnosis function according to the state of the power supply of the ECU, the state of the ignition key, the power indication message, and the state of the vehicle power supply specifically includes:
determining the state of an ECU local working power supply according to the state of the ECU power supply and the state of the ignition key, and judging whether the ECU local working state is an effective state;
if so, carrying out validity judgment on the power indication message to obtain a judgment result;
if the judgment result is valid, determining the vehicle power supply state according to the vehicle power supply information;
and judging whether the vehicle power state is a preset power state or not, and determining whether a communication fault diagnosis function is started or not according to a judgment result.
4. The method according to claim 2, wherein the step of detecting the status of the communication packet at predetermined time intervals and determining whether the communication fault exists according to the status of the communication packet specifically comprises:
detecting whether the communication message is lost every a preset time period, and determining the state of the communication message according to the detection result;
and judging whether a communication fault exists according to the state of the communication message.
5. The vehicle fault diagnosis method according to claim 1, wherein the preset storage area includes: a second storage area;
after the step of determining whether the timing period is greater than the set period, the method for diagnosing a vehicle failure further includes:
and if the timing time interval is less than or equal to the set time interval, storing the preset mapping relation table into a second storage area.
6. The method according to claim 5, wherein after the steps of extracting the sample time period from the set time period and determining whether the sample time period is lost if the timing time period is greater than the set time period, the method further comprises:
and if the communication message is not lost, storing the preset mapping relation table into the second storage area.
7. An automobile failure diagnosis apparatus characterized by comprising: a memory, a processor and a vehicle fault diagnosis program stored on the memory and operable on the processor, the vehicle fault diagnosis program, when executed by the processor, implementing the steps of the vehicle fault diagnosis method according to any one of claims 1 to 6.
8. A storage medium, characterized in that a vehicle failure diagnosis program is stored thereon, which when executed by a processor implements the steps of the vehicle failure diagnosis method according to any one of claims 1 to 6.
9. A vehicle failure diagnosis device characterized by comprising: the device comprises a judging module, a storage module, a searching module and a sending module;
the judging module is used for detecting the state of the communication message every other preset time period and judging whether a communication fault exists according to the state of the communication message;
the searching module is used for acquiring a fault index value if a communication fault exists, and searching a fault code and a time stamp corresponding to the fault index value in a preset storage area;
the storage module is used for acquiring a current fault code and a target timestamp of a previous frame of communication message when the communication message is lost, setting a fault index value, establishing a corresponding relation among the fault index value, the fault code and the target timestamp, establishing a preset mapping relation table according to the corresponding relation, starting timing when the communication message is lost, acquiring a timing period, judging whether the timing period is greater than a set period, if so, extracting a sample period from the set period, judging whether the communication message is lost in the sample period, and if so, storing the preset mapping relation table in a first storage area;
and the sending module is used for sending the fault code and the timestamp to a preset client so that the preset client can carry out automobile fault diagnosis according to the fault code and the timestamp.
CN201911210512.XA 2019-11-29 2019-11-29 Automobile fault diagnosis method, equipment, storage medium and device Active CN110825072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911210512.XA CN110825072B (en) 2019-11-29 2019-11-29 Automobile fault diagnosis method, equipment, storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911210512.XA CN110825072B (en) 2019-11-29 2019-11-29 Automobile fault diagnosis method, equipment, storage medium and device

Publications (2)

Publication Number Publication Date
CN110825072A CN110825072A (en) 2020-02-21
CN110825072B true CN110825072B (en) 2020-08-28

Family

ID=69542347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911210512.XA Active CN110825072B (en) 2019-11-29 2019-11-29 Automobile fault diagnosis method, equipment, storage medium and device

Country Status (1)

Country Link
CN (1) CN110825072B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112339683B (en) * 2020-10-13 2022-01-21 广州汽车集团股份有限公司 Method, system and storage medium for vehicle power distribution
CN113703426A (en) * 2021-08-30 2021-11-26 上汽通用五菱汽车股份有限公司 Vehicle fault remote diagnosis method, system and storage medium
CN114137932A (en) * 2021-11-11 2022-03-04 上汽通用五菱汽车股份有限公司 Vehicle diagnosis method, vehicle control unit, vehicle and readable storage medium
CN114252719A (en) * 2021-12-20 2022-03-29 南京懂玫驱动技术有限公司 Fault detection method, device and system for electric power-assisted bicycle
CN117434927B (en) * 2023-12-20 2024-04-02 中汽研(天津)汽车工程研究院有限公司 Cloud diagnosis system and device for detecting fault state of electronic controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009152922A (en) * 2007-12-21 2009-07-09 Honda Motor Co Ltd Data communication device for remote diagnostic system for vehicle
CN106557082A (en) * 2015-09-26 2017-04-05 广州汽车集团股份有限公司 DTC detection and recording method and the vehicle electrically controlling unit of vehicle electrically controlling unit

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4677876B2 (en) * 2005-10-11 2011-04-27 株式会社デンソー Vehicle diagnostic device
CN201274017Y (en) * 2008-04-07 2009-07-15 鲁东大学 Multipurpose automobile remote detecting and monitoring apparatus
CN105988456A (en) * 2015-01-30 2016-10-05 上海汽车集团股份有限公司 Vehicle fault remote diagnosis method, vehicle fault remote diagnosis device and vehicle fault remote diagnosis system
CN105607629A (en) * 2016-03-18 2016-05-25 北京智驾互联信息服务有限公司 Vehicle fault prompting method, apparatus and system
JP2018157288A (en) * 2017-03-16 2018-10-04 本田技研工業株式会社 Communication system
CN110347560B (en) * 2019-07-19 2022-04-26 深圳前海微众银行股份有限公司 Method, device, system, equipment and medium for prompting abnormity of big data product

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009152922A (en) * 2007-12-21 2009-07-09 Honda Motor Co Ltd Data communication device for remote diagnostic system for vehicle
CN106557082A (en) * 2015-09-26 2017-04-05 广州汽车集团股份有限公司 DTC detection and recording method and the vehicle electrically controlling unit of vehicle electrically controlling unit

Also Published As

Publication number Publication date
CN110825072A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN110825072B (en) Automobile fault diagnosis method, equipment, storage medium and device
CN103377094B (en) Method for monitoring abnormality and device
CN102663288B (en) Virus killing method and device thereof
CN112153070B (en) Abnormality detection method, device, storage medium and apparatus for vehicle-mounted CAN bus
CN108427393B (en) Method and apparatus for detecting battery depletion
CN110806894A (en) Automobile part software version management method, equipment, storage medium and device
CN107705576B (en) Vehicle fake plate detection method, server and storage medium
US10678954B2 (en) Cybersecurity vulnerability prioritization and remediation
CN110825073A (en) Engine remote calibration system and method
CN110868500B (en) Call communication method, device, computer equipment and storage medium
US10011225B2 (en) System and method for detecting at least one replacement component of a device
CN110995823B (en) Vehicle-mounted terminal offline processing method, device, storage medium and device
CN109978492B (en) Vehicle return monitoring method, device, system, computer equipment and storage medium
CN112268696B (en) Clutch detection method, device, storage medium and device
CN114756406A (en) Processing method and device for application program crash and electronic equipment
CN107708064B (en) Method and system for positioning mobile phone by vehicle-mounted equipment
CN107205241B (en) Wireless communication detection method and equipment thereof
CN111861097B (en) Information processing method and device
CN110435669B (en) Vehicle fault prompt information processing method and device and terminal
CN112507087A (en) Terminal equipment identification method, equipment, storage medium and device
CN104298924A (en) Method and device for ensuring system safety and terminal
CN110908871A (en) Data management method, device, equipment and storage medium based on vehicle control unit
CN112486573B (en) Data processing method, data processing equipment and storage medium of monitoring system
CN109660503B (en) Method, device, equipment and medium for analyzing abnormal use behavior of user terminal
CN113569158A (en) Crowd delineation task state display method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant