CN114137932A - Vehicle diagnosis method, vehicle control unit, vehicle and readable storage medium - Google Patents

Vehicle diagnosis method, vehicle control unit, vehicle and readable storage medium Download PDF

Info

Publication number
CN114137932A
CN114137932A CN202111336502.8A CN202111336502A CN114137932A CN 114137932 A CN114137932 A CN 114137932A CN 202111336502 A CN202111336502 A CN 202111336502A CN 114137932 A CN114137932 A CN 114137932A
Authority
CN
China
Prior art keywords
vehicle
fault
preset
information
fault code
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
CN202111336502.8A
Other languages
Chinese (zh)
Inventor
黎伟
邵杰
钟日敏
张巧
杨一琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SAIC GM Wuling Automobile Co Ltd
Original Assignee
SAIC GM Wuling Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SAIC GM Wuling Automobile Co Ltd filed Critical SAIC GM Wuling Automobile Co Ltd
Priority to CN202111336502.8A priority Critical patent/CN114137932A/en
Publication of CN114137932A publication Critical patent/CN114137932A/en
Pending legal-status Critical Current

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/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

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 invention discloses a vehicle diagnosis method, which comprises the following steps: acquiring vehicle state information of a vehicle; judging whether the vehicle has a fault or not based on preset fault code setting conditions according to the vehicle state information; if the vehicle has a fault, recording a fault code corresponding to the fault, executing a preset processing operation corresponding to the fault code, and freezing a data frame at the moment when the fault occurs. The invention also discloses a vehicle control unit, a vehicle and a computer readable storage medium. The invention improves the accuracy of the vehicle diagnosis result.

Description

Vehicle diagnosis method, vehicle control unit, vehicle and readable storage medium
Technical Field
The invention relates to the technical field of vehicle diagnosis, in particular to a vehicle diagnosis method, a vehicle control unit, a vehicle and a computer-readable storage medium.
Background
Along with the continuous development of the automobile industry, the automobile brings more convenience for people's traveling, in order to improve the safety of the vehicle, the working state of the vehicle needs to be monitored, and the vehicle is subjected to fault diagnosis in real time, so that potential dangers existing in the vehicle are analyzed and processed, and a maintenance worker is helped to find a fault source in time during vehicle maintenance, and timely and effective maintenance is carried out. At present, when the electric automobile breaks down, different controllers record fault codes and freeze corresponding data frames. However, compared with the conventional automobile, the types and the number of controllers of the whole electric automobile system are greatly increased, the situations of faults are more complicated and changeable, the diagnosis complexity is correspondingly increased, and the problems that the stored fault codes and the frozen data frames are redundant and incomplete repeatedly and are lost even in a special scene exist, so that the accuracy of the diagnosis result is low.
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 vehicle diagnosis method, and aims to solve the technical problem that the accuracy of a diagnosis result is low.
To achieve the above object, the present invention provides a vehicle diagnostic method including:
acquiring vehicle state information of a vehicle;
judging whether the vehicle has a fault or not based on preset fault code setting conditions according to the vehicle state information;
if the vehicle has a fault, recording a fault code corresponding to the fault, executing a preset processing operation corresponding to the fault code, and freezing a data frame at the moment when the fault occurs.
Preferably, the vehicle state information includes message information on the vehicle CAN network, and the step of determining whether the vehicle has a fault based on a preset fault code setting condition according to the vehicle state information includes:
judging whether fault information meeting preset fault code setting conditions exists in the message information or not according to preset fault code setting conditions;
and if the fault information meeting the preset fault code setting condition exists, judging that the vehicle has a fault.
Preferably, the step of determining whether the message information contains the fault information meeting the preset fault code setting condition according to the preset fault code setting condition further includes:
judging whether the message information is lost or invalid;
and if the message information is lost or invalid, judging that the vehicle has a fault.
Preferably, the step of determining whether the message information is lost or invalid includes:
judging whether the message information is received within a preset message loss duration or not;
if the message information is not received within the message loss duration, judging that the message information is lost;
if the message information is received within the message loss duration, judging whether the content of the message information is complete;
and if the message information is not complete, judging that the message information is invalid.
Preferably, the vehicle state information further includes hard-line information, and the step of determining whether the vehicle has a fault based on a preset fault code setting condition according to the vehicle state information further includes:
judging whether the hard wire of the vehicle is short-circuited or open-circuited according to the hard wire information;
if short circuit or open circuit occurs, it is determined that the vehicle has a failure.
Preferably, the step of recording a fault code corresponding to the fault, executing a handling operation corresponding to the fault, and freezing a data frame at the time of the fault occurrence, if the vehicle has the fault, includes:
when a preset fault recovery condition is met, storing the fault code and the corresponding data frame into a preset memory;
and/or the presence of a gas in the gas,
and clearing the fault codes meeting preset fault code clearing conditions in the preset memory and the corresponding data frames.
Preferably, when the preset fault recovery condition is met, the step of storing the fault code and the corresponding data frame into a preset memory includes:
setting the fault code to a corresponding priority;
when a preset fault recovery condition is met, the step of storing the fault code and the corresponding data frame into a preset memory comprises the following steps:
and when the used storage space of the preset storage exceeds a preset storage threshold, executing clearing operation according to the fault codes in the preset storage and the priority of the corresponding data frames.
In addition, to achieve the above object, the present invention also provides a vehicle control unit, including: memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the vehicle diagnostic method as described in any one of the above.
In addition, in order to achieve the above object, the present invention further provides a vehicle including the vehicle control unit as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a vehicle diagnostic program which, when executed by a processor, implements the steps of the vehicle diagnostic method as recited in any one of the above.
According to the vehicle diagnosis method provided by the invention, the vehicle controller acquires the vehicle state information of the vehicle through monitoring the CAN network message information and the hard line information of the vehicle. Then, the vehicle control unit judges the vehicle state information based on preset fault code setting conditions, so that whether the vehicle breaks down or not is determined. And when the vehicle state information contains fault information meeting the preset fault code setting condition, indicating that the vehicle has a fault. And finally, if the vehicle has a fault, recording a fault code corresponding to the fault, executing preset processing operation corresponding to the fault code (for example, lighting a corresponding fault lamp), and freezing a data frame (including information such as time, mileage, vehicle speed, voltage, motor rotating speed, SOC) at the moment of the fault occurrence. According to the invention, the vehicle state information is obtained through the vehicle control unit, and then the vehicle state information is diagnosed based on the preset fault code setting condition to determine whether a fault occurs, so that the accuracy of vehicle fault diagnosis is improved, and further, when the vehicle fails, the fault code is recorded, the preset processing operation is executed, and the corresponding data frame is frozen, so that the integrity and the accuracy of diagnosis data are ensured, and the accuracy of a vehicle diagnosis result is improved.
Drawings
FIG. 1 is a schematic flow chart diagram of a first embodiment of a vehicle diagnostic method of the present invention;
FIG. 2 is a schematic flow chart diagram of a second embodiment of a vehicle diagnostic method of the present invention;
FIG. 3 is a schematic flow chart diagram of a third embodiment of a vehicle diagnostic method of the present invention;
fig. 4 is a schematic structural diagram of a vehicle control unit in a hardware operating environment according to an embodiment 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, a first embodiment of the invention provides a vehicle diagnostic method including the steps of:
step S100, obtaining vehicle state information of the vehicle;
specifically, in the running process of the electric vehicle, a Controller Area Network (CAN) bus Network continuously transmits various message information between Electronic Control Units (ECUs), and the vehicle Controller also receives and transmits the message information. The message information comprises the working state information of different ECUs of the vehicle. Under a preset operation condition, the vehicle controller may obtain the vehicle state information of the vehicle by monitoring the message information and the hard-wire information of the vehicle controller and an ECU (e.g., a transmission, an air conditioner, a pedal, etc.) connected with the vehicle controller through a hard-wire. Based on the UDS (Unified Diagnostic Services) standard specification, the vehicle controller presets the values of the fault codes, the operation conditions, the fault detection period, the fault code setting conditions, the operation when the fault codes occur, the fault recovery conditions, the fault code clearing conditions and other Diagnostic service information in the bottom logic, so as to ensure the complete operation of the fault codes. For example, the host vehicle starts to acquire the vehicle state information of the host vehicle after the communication is activated for 1s or after the power is turned on for 1s (i.e., the operating condition).
Step S200, judging whether the vehicle has a fault or not based on preset fault code setting conditions according to the vehicle state information;
specifically, the vehicle control unit judges the vehicle state information based on the preset fault code setting condition, and when fault information meeting the preset fault code setting condition exists in the vehicle state information, it indicates that the vehicle has a fault. If the fault information meeting the preset fault code setting condition does not exist, the state that the vehicle runs normally is indicated, and the vehicle state of the vehicle is continuously monitored. The vehicle control unit detects according to a set fault detection period, wherein the set fault detection period can be a time period (such as 5s, 10s or 15 s) or a mileage period (such as 1km, 3km, 5km and the like). For example, the vehicle detects the vehicle state information every 5s, and determines whether fault information meeting preset fault code setting conditions exists in the vehicle state information. Likewise, in order to improve the detection accuracy, the fault detection period may be set to zero, that is, the vehicle control unit may detect the vehicle state information in real time. The vehicle state information is integrated by the vehicle controller to judge, and the diagnosis has higher accuracy compared with the single sensor state information.
Step S300, if the vehicle has a fault, recording a fault code corresponding to the fault, executing a preset processing operation corresponding to the fault code, and freezing a data frame at the moment of the fault.
Specifically, if the vehicle has a fault, a corresponding fault code may be generated according to the preset fault code setting condition and the value of the preset fault code, and the fault code may be recorded. Meanwhile, executing preset processing operations corresponding to the fault codes, such as lighting corresponding fault lamps, playing corresponding prompt tones and the like. And the data frame when the accident occurs is frozen, so that the vehicle state information at the moment of the failure occurrence is stored, and the accuracy and the integrity of the diagnostic data are ensured.
In this embodiment, the vehicle controller obtains vehicle state information of the vehicle by monitoring the message information and the hard-wire information of the vehicle CAN network. Then, the vehicle control unit judges the vehicle state information based on preset fault code setting conditions, so that whether the vehicle breaks down or not is determined. And when the vehicle state information contains fault information meeting the preset fault code setting condition, indicating that the vehicle has a fault. And finally, if the vehicle has a fault, recording a fault code corresponding to the fault, executing preset processing operation corresponding to the fault code (for example, lighting a corresponding fault lamp), and freezing a data frame (including information such as time, mileage, vehicle speed, voltage, motor rotating speed, SOC) at the moment of the fault occurrence. In the embodiment, the vehicle state information is obtained through the vehicle control unit, the vehicle state information is diagnosed based on the preset fault code setting condition, whether a fault occurs is determined, the accuracy of vehicle fault diagnosis is improved, and further, when the vehicle fails, the fault code is recorded, the preset processing operation is executed, and the corresponding data frame is frozen, so that the integrity and the accuracy of diagnosis data are ensured, and the accuracy of a vehicle diagnosis result is improved.
Further, referring to fig. 2, a second embodiment of the present invention provides a vehicle diagnosis method, based on the embodiment shown in fig. 1, where the vehicle state information includes message information on the vehicle CAN network, and the step S200 includes the following steps:
step S210, judging whether fault information meeting preset fault code setting conditions exists in the message information according to preset fault code setting conditions;
in step S220, if there is the fault information meeting the preset fault code setting condition, it is determined that the vehicle has a fault.
Specifically, the whole vehicle controller presets diagnostic service information such as a value of a fault code, an operation condition, a fault detection period, a fault code setting condition, an operation when the fault code occurs, a fault recovery condition, a fault code clearing condition and the like in the bottom logic. The vehicle control unit can obtain working state information of devices such as a battery, a motor and a charger of the vehicle according to the message information, and then judges the working state information based on preset fault code setting conditions to know whether fault information meeting the preset fault code setting conditions exists in the message information. And if the fault information meeting the preset fault code setting condition exists, judging that the vehicle has a fault. Further, a single sensor monitoring the operating status information of a corresponding component may be difficult to visually indicate that the component is malfunctioning. In this embodiment, the vehicle controller may obtain the working state information of the parts corresponding to the monitoring of each sensor of the vehicle from the message information, and thus, in combination with the working state information monitored by each sensor, the working state information of the parts may be further logically determined to determine whether the parts have a fault, thereby improving the accuracy of determining the working state of each device of the vehicle.
Still further, in another embodiment, the following steps are included before step S210:
step S211, judging whether the message information is lost or invalid;
step S212, if the message information is lost or invalid, it is determined that the vehicle has a failure.
Specifically, in the transmission process of the CAN network, the message information may be lost, or the message information may be invalid due to loss of a part of data frames in the acquired message information. Therefore, in order to ensure that the acquired message information is complete and accurate, whether the message information is lost or invalid is judged, if the message information is lost or invalid, it is judged that the vehicle has a fault, step S300 is executed, that is, a fault code corresponding to the message information loss or invalidity is recorded, corresponding preset processing operation is executed, a data frame at the moment when the message information is lost or invalid is frozen, and the fault code and the message information are in one-to-one correspondence. If the message information is not lost or invalid, step S210 is executed.
Still further, in another embodiment, the step S211 further includes:
step a1, judging whether to receive the message information within a preset message loss duration;
step a2, if the message information is not received within the message loss duration, determining that the message information is lost;
a3, if the message information is received within the message loss duration, judging whether the content of the message information is complete;
step a4, if not, determining that the message information is invalid.
Specifically, the reasons for the occurrence of the message information loss or the invalid condition can be generally classified into three categories: the vehicle environment, the CAN network load and an ECU (Electronic Control Unit) node are failed. Firstly, the whole vehicle environment, the whole vehicle voltage and the electromagnetic environment have great influence on the transmission of CAN bus messages. The normal working voltage of the ECU is generally 9-16V, and the automobile storage battery keeps stable voltage output of about 12V for a long time under the condition that an engine is started. However, in the case of a motor vehicle without engine start, the battery has no energy input, while the electrical consumers may be operating properly. Under the working condition that the automobile runs for a long time, the output voltage of the storage battery is not enough to maintain the ECU to work, so that the message loss condition occurs. And pure electric vehicles have more high-voltage components to be installed on the car than traditional car, lead to whole car electromagnetic environment to be more complicated. For example, when a DC/AC inverter, a DC/DC charger, etc. are working, a great amount of electromagnetic interference is generated, and the ECU is often a sensitive unit of electromagnetic interference, which causes an abnormality in some communication nodes of the ECU. The specific reflection is that the communication node cannot receive information, some unit data frames are lost, and a large number of fault frames caused by receiving errors on the whole vehicle bus further cause the whole vehicle communication fault. Secondly, the load of the CAN network and the increase of the loaded ECU on the electric and hybrid vehicles lead to higher and higher load rate of the CAN network and larger message transmission delay, and when the delay of the message received by the receiving unit is too large, the message loses timeliness, namely the message is invalid. In addition, the short circuit and the open circuit of the CAN bus CAN _ H (high speed CAN signal line) and CAN _ L (low speed CAN signal line) CAN also cause the message loss. And thirdly, the ECU nodes are in failure, and each ECU of the vehicle is a node in the CAN network of the whole vehicle. The reasons for message loss caused by node failure mainly include software failure and hardware failure. Software failures, i.e., transmission protocols or software programs, are flawed or conflicting, thereby causing communication to be disrupted or inoperable. Hardware faults generally cause the vehicle-mounted network system to be incapable of working normally due to faults of communication chips or integrated circuits. Therefore, it is also necessary to monitor whether the message information transmission is faulty.
By presetting the message loss duration. Judging whether the message information is received within the message loss duration or not, and if the message information is not received within the message loss duration, judging that the message information is lost; if the message information is received within the message loss duration, further judging whether the content of the message information is complete; if the message information is not complete, judging that the message information is invalid; and if the message information is complete, judging that the message information is not lost and the message information is effective. And then, when the message information is lost or invalid, judging that the vehicle has a fault. And recording the corresponding fault code, executing the preset processing operation corresponding to the fault code, freezing the data frame at the fault occurrence moment, and carrying out one-to-one correspondence on the fault code and the message information. In the embodiment, the accuracy of detecting the ECU message loss fault is improved, the CAN bus state is favorably monitored, and the performance of the whole vehicle is improved.
Still further, in another embodiment, the vehicle state information further includes hard-wired information, and the step S200 further includes the steps of:
step S230, judging whether the hard wire of the vehicle is short-circuited or open-circuited according to the hard wire information;
in step S230, if a short circuit or an open circuit occurs, it is determined that the vehicle has a failure.
Specifically, the vehicle state information further includes a hard-wired signal between the vehicle control unit and an ECU (such as a transmission, an air conditioner, a pedal, and the like) connected thereto through a hard-wired line. The vehicle control unit can detect hard wire information between the ECU (such as a gearbox, an air conditioner, a pedal and the like) connected with the vehicle control unit through a hard wire, and judge whether a signal acquired by the hard wire is within a preset short-circuit voltage range or a preset open-circuit voltage range; if the short-circuit voltage or the open-circuit voltage is within the preset short-circuit voltage range or the preset open-circuit voltage range, judging that the corresponding hard wire in the vehicle is short-circuited or open-circuited; if short circuit or open circuit occurs, it is determined that the vehicle has a failure. If the short-circuit voltage is not within the preset short-circuit voltage range or the preset open-circuit voltage range, judging that the corresponding hard wire in the vehicle is not short-circuited or open-circuited; and if the short circuit or the open circuit does not occur, judging that the vehicle does not have a fault. Therefore, the connection state information between the vehicle controller and other ECUs connected with the vehicle controller through the hard wire is obtained more quickly, and whether the vehicle has a fault or not is determined according to the connection state information. For example, the vehicle control unit detects the state of the PIN (PIN) of the vehicle control unit, determines whether the hard wire corresponding to the vehicle is open or short-circuited, and determines that the vehicle is in failure if the hard wire is short-circuited or open-circuited.
Referring to fig. 3, a third embodiment of the present invention provides a vehicle diagnostic method, based on the above embodiment shown in fig. 1, further comprising the following steps after step S300:
step S310, when a preset fault recovery condition is met, storing the fault code and the corresponding data frame into a preset memory;
step S300 is followed by:
step S320, clearing the fault code and the corresponding data frame in the preset memory, which meet the preset fault code clearing condition.
Specifically, the whole vehicle controller presets diagnostic service information such as a value of a fault code, an operation condition, a fault detection period, a fault code setting condition, an operation when the fault code occurs, a fault recovery condition, a fault code clearing condition and the like in the bottom logic. And when a preset fault recovery condition is met, storing the fault code and the corresponding data frame into a preset memory. For example, when the temperature of the vehicle battery pack is too high, a fault code of the battery pack with the too high temperature is recorded, and a data frame of the fault is frozen. And after the processing, when the temperature is reduced to a safe range, storing the recorded fault code and the frozen data frame as historical fault information into a preset memory. Thereby, the historical failure information can be read as reference information in later maintenance. In addition, according to a preset fault code clearing condition, clearing operation is carried out on historical fault information (namely fault codes and corresponding data frames) in the preset memory. For example, in a preset ignition cycle, if the fault does not occur again, the historical fault information corresponding to the fault in the preset memory is cleared, so that the purpose of saving the storage space of the preset memory is achieved.
In another embodiment, step S310 is preceded by the steps of:
step S311, setting the fault code to a corresponding priority;
step S310 is followed by:
step S322, when the used storage space of the preset memory exceeds a preset storage threshold, executing a clearing operation according to the fault code in the preset memory and the priority of the corresponding data frame.
Specifically, all the fault codes are preset with corresponding priorities according to the severity of the corresponding fault, that is, the higher the severity of the fault is, the higher the priority is. And then when the used storage space of the preset memory exceeds a preset storage threshold (such as 90%, 95%, 98% and the like), executing clearing operation according to the fault codes in the preset memory and the priority of the corresponding data frames. For example, when the used storage space of the preset storage exceeds the preset storage threshold of 95%, a part of fault codes and corresponding data frames are deleted according to the sequence from low priority to high priority, the fault codes and the corresponding data frames may be cleared until the used storage space is lower than the preset storage threshold, or the fault codes and the corresponding data frames may be cleared until the used storage space is lower than a preset clearing threshold (e.g., 60%, 70%, 80%, etc.), where the preset clearing threshold is smaller than the preset storage threshold. In the embodiment, the priority is set for the fault codes, so that the fault codes with higher priority (i.e. higher fault severity) and the corresponding data frames can be reserved when the storage space of the preset memory is cleared, and the integrity and accuracy of the fault diagnosis data with higher priority are ensured.
As shown in fig. 4, fig. 4 is a schematic structural diagram of a vehicle control unit in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 4, the vehicle control unit may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic 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 vehicle control unit configuration shown in fig. 1 does not constitute a limitation of the vehicle control unit, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 4, a memory 1005, which is one type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a vehicle diagnostic application.
In the terminal shown in fig. 4, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the vehicle diagnostic application stored in the memory 1005 and perform the following operations:
acquiring vehicle state information of a vehicle;
judging whether the vehicle has a fault or not based on preset fault code setting conditions according to the vehicle state information;
if the vehicle has a fault, recording a fault code corresponding to the fault, executing a preset processing operation corresponding to the fault code, and freezing a data frame at the moment when the fault occurs.
Further, the vehicle status information includes message information on the own-vehicle CAN network, and the processor 1001 may call a vehicle diagnosis application program stored in the memory 1005, and further perform the following operations:
judging whether fault information meeting preset fault code setting conditions exists in the message information or not according to preset fault code setting conditions;
and if the fault information meeting the preset fault code setting condition exists, judging that the vehicle has a fault.
Further, the processor 1001 may invoke a vehicle diagnostic application stored in the memory 1005, and also perform the following operations:
judging whether the message information is lost or invalid;
and if the message information is lost or invalid, judging that the vehicle has a fault.
Further, the processor 1001 may invoke a vehicle diagnostic application stored in the memory 1005, and also perform the following operations:
judging whether the message information is received within a preset message loss duration or not;
if the message information is not received within the message loss duration, judging that the message information is lost;
if the message information is received within the message loss duration, judging whether the content of the message information is complete;
and if the message information is not complete, judging that the message information is invalid.
Further, the vehicle state information also includes hard-wired information, and the processor 1001 may call a vehicle diagnostic application stored in the memory 1005, and also perform the following operations:
judging whether the hard wire of the vehicle is short-circuited or open-circuited according to the hard wire information;
if short circuit or open circuit occurs, it is determined that the vehicle has a failure.
Further, the processor 1001 may invoke a vehicle diagnostic application stored in the memory 1005, and also perform the following operations:
when a preset fault recovery condition is met, storing the fault code and the corresponding data frame into a preset memory;
and clearing the fault codes meeting preset fault code clearing conditions in the preset memory and the corresponding data frames.
Further, the processor 1001 may invoke a vehicle diagnostic application stored in the memory 1005, and also perform the following operations:
setting the fault code to a corresponding priority;
and when the used storage space of the preset storage exceeds a preset storage threshold, executing clearing operation according to the fault codes in the preset storage and the priority of the corresponding data frames.
In addition, the embodiment of the present invention further provides a vehicle, where the vehicle may be any pure electric vehicle including the vehicle control unit, so as to implement the operations in the vehicle diagnosis method provided in the embodiment, and a person skilled in the art may know that the vehicle further includes other devices that may be used to implement the embodiment, such as a driving device for driving the vehicle to move forward, a communication device for implementing a CAN network, a display device for reminding a user of a vehicle fault, and the like, and specific devices and specific steps are not described herein in detail.
In addition, an embodiment of the present invention further provides a computer storage medium, where a computer program is stored on the computer storage medium, and when the computer program is executed by a processor, the computer program implements the operations in the vehicle diagnosis method provided in the foregoing embodiment, and specific steps are not described in detail herein.
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.
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 solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, 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 (10)

1. A vehicle diagnostic method characterized by comprising:
acquiring vehicle state information of a vehicle;
judging whether the vehicle has a fault or not based on preset fault code setting conditions according to the vehicle state information;
if the vehicle has a fault, recording a fault code corresponding to the fault, executing a preset processing operation corresponding to the fault code, and freezing a data frame at the moment when the fault occurs.
2. The vehicle diagnosis method according to claim 1, wherein the vehicle status information includes message information on a vehicle CAN network, and the step of determining whether the vehicle has a fault based on a preset fault code setting condition according to the vehicle status information includes:
judging whether fault information meeting preset fault code setting conditions exists in the message information or not according to preset fault code setting conditions;
and if the fault information meeting the preset fault code setting condition exists, judging that the vehicle has a fault.
3. The vehicle diagnostic method according to claim 2, wherein the step of determining whether there is any fault information in the message information that meets the preset fault code setting condition according to a preset fault code setting condition further comprises:
judging whether the message information is lost or invalid;
and if the message information is lost or invalid, judging that the vehicle has a fault.
4. The vehicle diagnostic method according to claim 3, wherein the step of determining whether the message information is lost or invalid comprises:
judging whether the message information is received within a preset message loss duration or not;
if the message information is not received within the message loss duration, judging that the message information is lost;
if the message information is received within the message loss duration, judging whether the content of the message information is complete;
and if the message information is not complete, judging that the message information is invalid.
5. The vehicle diagnostic method according to claim 1, wherein the vehicle state information further includes hard-line information, and the step of determining whether the own vehicle is out of order based on a preset failure code setting condition according to the vehicle state information further includes:
judging whether the hard wire of the vehicle is short-circuited or open-circuited according to the hard wire information;
if short circuit or open circuit occurs, it is determined that the vehicle has a failure.
6. The vehicle diagnostic method according to claim 1, wherein the step of recording a fault code corresponding to the fault, performing a handling operation corresponding to the fault, and freezing a data frame at the time of occurrence of the fault, if the host vehicle has a fault, comprises:
when a preset fault recovery condition is met, storing the fault code and the corresponding data frame into a preset memory;
and/or the presence of a gas in the gas,
and clearing the fault codes meeting preset fault code clearing conditions in the preset memory and the corresponding data frames.
7. The vehicle diagnostic method according to claim 6, wherein the step of storing the fault code and the corresponding data frame in a preset memory when a preset fault recovery condition is satisfied is preceded by:
setting the fault code to a corresponding priority;
when a preset fault recovery condition is met, the step of storing the fault code and the corresponding data frame into a preset memory comprises the following steps:
and when the used storage space of the preset storage exceeds a preset storage threshold, executing clearing operation according to the fault codes in the preset storage and the priority of the corresponding data frames.
8. A vehicle control unit, characterized in that, vehicle control unit includes: memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when being executed by the processor, carries out the steps of the vehicle diagnostic method as claimed in one of claims 1 to 7.
9. A vehicle characterized in that it comprises a vehicle control unit according to claim 8.
10. A computer-readable storage medium, characterized in that a vehicle diagnostic program is stored thereon, which when executed by a processor implements the steps of the vehicle diagnostic method according to any one of claims 1 to 7.
CN202111336502.8A 2021-11-11 2021-11-11 Vehicle diagnosis method, vehicle control unit, vehicle and readable storage medium Pending CN114137932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111336502.8A CN114137932A (en) 2021-11-11 2021-11-11 Vehicle diagnosis method, vehicle control unit, vehicle and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111336502.8A CN114137932A (en) 2021-11-11 2021-11-11 Vehicle diagnosis method, vehicle control unit, vehicle and readable storage medium

Publications (1)

Publication Number Publication Date
CN114137932A true CN114137932A (en) 2022-03-04

Family

ID=80392813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111336502.8A Pending CN114137932A (en) 2021-11-11 2021-11-11 Vehicle diagnosis method, vehicle control unit, vehicle and readable storage medium

Country Status (1)

Country Link
CN (1) CN114137932A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114643948A (en) * 2022-03-31 2022-06-21 奇瑞商用车(安徽)有限公司 Finished automobile fault level diagnosis method for pure electric automobile
CN114826818A (en) * 2022-05-23 2022-07-29 北斗星通智联科技有限责任公司 CAN message data processing method and device
CN114913627A (en) * 2022-05-20 2022-08-16 上汽通用五菱汽车股份有限公司 Fault data storage method and device, vehicle and computer readable storage medium
CN115309135A (en) * 2022-07-18 2022-11-08 中国第一汽车股份有限公司 Vehicle fault determination method and device, storage medium, processor and vehicle
CN115761933A (en) * 2022-11-03 2023-03-07 成都赛力斯科技有限公司 Automobile fault recovery method and device, computer equipment and storage medium
CN117111590A (en) * 2023-10-24 2023-11-24 盛瑞传动股份有限公司 Routine control method, device, equipment, medium and vehicle
WO2024017072A1 (en) * 2022-07-18 2024-01-25 中国第一汽车股份有限公司 Vehicle fault information processing method and device, storage medium, and processor
CN117572852A (en) * 2024-01-16 2024-02-20 中国第一汽车股份有限公司 Vehicle component fault analysis method, device, equipment, medium and product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544453A (en) * 2016-06-28 2018-01-05 长城汽车股份有限公司 Control method, control device and the vehicle of vehicle
CN110825072A (en) * 2019-11-29 2020-02-21 安徽江淮汽车集团股份有限公司 Automobile fault diagnosis method, equipment, storage medium and device
CN111694341A (en) * 2020-06-05 2020-09-22 中国第一汽车股份有限公司 Fault data storage method and device, vehicle-mounted equipment and storage medium
CN112326070A (en) * 2020-11-02 2021-02-05 安徽江淮汽车集团股份有限公司 Temperature sensor fault diagnosis method and device, electronic equipment and storage medium
CN112485019A (en) * 2020-11-24 2021-03-12 海马汽车有限公司 Vehicle fault diagnosis method and device, vehicle and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544453A (en) * 2016-06-28 2018-01-05 长城汽车股份有限公司 Control method, control device and the vehicle of vehicle
CN110825072A (en) * 2019-11-29 2020-02-21 安徽江淮汽车集团股份有限公司 Automobile fault diagnosis method, equipment, storage medium and device
CN111694341A (en) * 2020-06-05 2020-09-22 中国第一汽车股份有限公司 Fault data storage method and device, vehicle-mounted equipment and storage medium
CN112326070A (en) * 2020-11-02 2021-02-05 安徽江淮汽车集团股份有限公司 Temperature sensor fault diagnosis method and device, electronic equipment and storage medium
CN112485019A (en) * 2020-11-24 2021-03-12 海马汽车有限公司 Vehicle fault diagnosis method and device, vehicle and storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114643948B (en) * 2022-03-31 2024-04-12 奇瑞商用车(安徽)有限公司 Whole vehicle fault level diagnosis method for pure electric vehicle
CN114643948A (en) * 2022-03-31 2022-06-21 奇瑞商用车(安徽)有限公司 Finished automobile fault level diagnosis method for pure electric automobile
CN114913627A (en) * 2022-05-20 2022-08-16 上汽通用五菱汽车股份有限公司 Fault data storage method and device, vehicle and computer readable storage medium
CN114826818A (en) * 2022-05-23 2022-07-29 北斗星通智联科技有限责任公司 CAN message data processing method and device
CN114826818B (en) * 2022-05-23 2024-05-28 北斗星通智联科技有限责任公司 CAN message data processing method and device
CN115309135A (en) * 2022-07-18 2022-11-08 中国第一汽车股份有限公司 Vehicle fault determination method and device, storage medium, processor and vehicle
WO2024017072A1 (en) * 2022-07-18 2024-01-25 中国第一汽车股份有限公司 Vehicle fault information processing method and device, storage medium, and processor
CN115761933B (en) * 2022-11-03 2024-05-24 成都赛力斯科技有限公司 Automobile fault recovery method, device, computer equipment and storage medium
CN115761933A (en) * 2022-11-03 2023-03-07 成都赛力斯科技有限公司 Automobile fault recovery method and device, computer equipment and storage medium
CN117111590B (en) * 2023-10-24 2024-01-02 盛瑞传动股份有限公司 Routine control method, device, equipment, medium and vehicle
CN117111590A (en) * 2023-10-24 2023-11-24 盛瑞传动股份有限公司 Routine control method, device, equipment, medium and vehicle
CN117572852A (en) * 2024-01-16 2024-02-20 中国第一汽车股份有限公司 Vehicle component fault analysis method, device, equipment, medium and product
CN117572852B (en) * 2024-01-16 2024-05-24 中国第一汽车股份有限公司 Vehicle component fault analysis method, device, equipment, medium and product

Similar Documents

Publication Publication Date Title
CN114137932A (en) Vehicle diagnosis method, vehicle control unit, vehicle and readable storage medium
CN101850723B (en) Fault detecting and processing method for current sensor of motor control unit of electric automobile
US20150224881A1 (en) Device, vehicle, method and computer program for deactivating high-voltage components of a vehcile
CN107472029B (en) High-voltage fault detection method for vehicle and vehicle
KR101593571B1 (en) Black box apparatus for diagnosing error of electronic control unit for vehicle and control method thereof
CN105620459A (en) Electric vehicle brake pedal diagnosing method and device
US10839619B2 (en) Electronic control unit and method for connection authentication
CN106610481A (en) Apparatus and method of diagnosing current sensor of eco-friendly vehicle
CN112525553A (en) Vehicle fault remote diagnosis method and related equipment
CN114454774B (en) Battery pack thermal runaway early warning system and method
CN113961386A (en) Automatic management method for software version of whole vehicle
CN110466450B (en) Automobile safety detection system
CN111993891B (en) Electric vehicle data storage device and control method and monitoring system thereof
CN116533757A (en) Voltage fault judging method and device, storage medium, controller and vehicle
CN114415646B (en) Remote vehicle diagnosis method, system and terminal equipment based on DoIP protocol
CN103358914B (en) Direct current transducer for vehicle is diagnosed
CN115384536A (en) Evaluation method, device, equipment and medium for driving assistance system controller
CN116685488A (en) State monitoring for service battery of vehicle with electric power assembly
CN220323516U (en) Fault early warning system and vehicle
CN112248813B (en) Fault prompting system and method and electric automobile
CN113847122B (en) GPF regeneration control method and device for automobile and computer storage medium
CN215552994U (en) Vehicle control device and vehicle
CN112113777B (en) Slope signal disabling method, slope signal disabling device and vehicle
CN116737516B (en) Method for early warning of vehicle gauge chip
CN114659802B (en) Vehicle running performance test method and device, vehicle 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