CN115284879A - Vehicle fault recording method, storage medium, electronic device and device - Google Patents

Vehicle fault recording method, storage medium, electronic device and device Download PDF

Info

Publication number
CN115284879A
CN115284879A CN202210910264.5A CN202210910264A CN115284879A CN 115284879 A CN115284879 A CN 115284879A CN 202210910264 A CN202210910264 A CN 202210910264A CN 115284879 A CN115284879 A CN 115284879A
Authority
CN
China
Prior art keywords
fault
vehicle
vcu
code
recording
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
CN202210910264.5A
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.)
Dongfeng Huashen Motor Co Ltd
Original Assignee
Dongfeng Huashen Motor 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 Dongfeng Huashen Motor Co Ltd filed Critical Dongfeng Huashen Motor Co Ltd
Priority to CN202210910264.5A priority Critical patent/CN115284879A/en
Publication of CN115284879A publication Critical patent/CN115284879A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L3/00Electric devices on electrically-propelled vehicles for safety purposes; Monitoring operating variables, e.g. speed, deceleration or energy consumption
    • B60L3/0023Detecting, eliminating, remedying or compensating for drive train abnormalities, e.g. failures within the drive train
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L3/00Electric devices on electrically-propelled vehicles for safety purposes; Monitoring operating variables, e.g. speed, deceleration or energy consumption
    • B60L3/12Recording operating variables ; Monitoring of operating variables

Landscapes

  • Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Sustainable Energy (AREA)
  • Power Engineering (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a vehicle fault recording method, a storage medium, electronic equipment and a device, which relate to the technical field of new energy vehicle management, and the method comprises the following steps: creating a plurality of fault record variables for storing fault codes; according to the time sequence of the vehicle faults, corresponding fault code records are sequentially stored into corresponding fault record variables; periodically reporting faults based on fault record variables for fault analysis; wherein the fault record variables are arranged in order. This application utilizes the fault record variable of predetermineeing, after new energy automobile breaks down, convenient and fast takes notes, need not the specific agreement standard of adaptation, reduces development cost, makes things convenient for maintainer later stage inquiry.

Description

Vehicle fault recording method, storage medium, electronic device and device
Technical Field
The application relates to the technical field of new energy vehicle management, in particular to a vehicle fault recording method, a storage medium, electronic equipment and a device.
Background
In the technical field of the existing new energy vehicle management, because the development time of the new energy vehicle industry is short, more related standards are not made in the new energy vehicle industry, such as fault names, fault types and related storage of traditional fuel vehicles, the identified standards cannot be completely applicable to new energy vehicles, and each vehicle enterprise is basically in a self-defined form in the aspects of new energy vehicle fault definition, identification and storage. The conventional method adopted at present is that each controller on the new energy automobile stores a defined fault code in the controller according to a UDS standard, when a vehicle has a related fault, the fault is stored, then the upper computer inquires the fault according to the UDS standard, and after the fault is repaired, the upper computer clears the fault
The drawbacks of this conventional approach are: the bottom layer development of the controller needs to completely comply with the UDS protocol standard, the development difficulty is high, the research and development cost is increased, the technical requirements on after-sales personnel are high, and the basic principle of UDS fault diagnosis needs to be understood.
Therefore, a vehicle fault recording technology is provided to meet the fault management requirement of the new energy vehicle.
Disclosure of Invention
The application provides a vehicle fault recording method, a storage medium, electronic equipment and a device, and after a new energy automobile breaks down, the recording is conveniently and quickly carried out by utilizing a preset fault recording variable, the adaptation of a specific protocol standard is not needed, the development cost is reduced, and the later-stage query of a maintainer is facilitated.
In a first aspect, the present application provides a vehicle fault recording method, comprising the steps of:
creating a plurality of fault record variables for storing fault codes;
according to the time sequence of vehicle faults, corresponding fault code records are sequentially stored into corresponding fault record variables;
periodically reporting faults based on the fault record variables for fault analysis; wherein,
the fault record variables are arranged in order.
According to the method, a specific algorithm is configured in application layer software of a VCU, the current faults of the vehicle are recorded in real time, and the latest 4 fault codes are stored;
after the vehicle is powered off, 4 fault codes are stored in an EEPROM of the controller, the 4 faults are read from the EEPROM after the vehicle is powered on next time, and the faults are sent to a bus through periodic messages for a vehicle maintenance worker to maintain the vehicle;
by means of the preset fault recording variable, after the new energy automobile breaks down, the new energy automobile can be recorded conveniently and quickly without adapting to a specific protocol standard, development cost is reduced, and later-stage query by maintenance personnel is facilitated.
Further, the step of sequentially storing the corresponding fault code records into the corresponding fault record variables according to the time sequence of the vehicle faults includes the following steps:
after the vehicle is powered on, a controller on the vehicle sends out a fault code obtained by self detection;
and the vehicle VCU sequentially stores the corresponding fault code records into corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults and the fault codes obtained by self detection and the fault codes sent by the controller.
Further, the step of sequentially storing the corresponding fault code records into the corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults includes the following steps:
when a first fault code is obtained, storing the first fault code into the first fault record variable;
and when a second fault code is obtained, storing the first fault code into the second sorted fault record variable, and storing the second fault code into the first sorted fault record variable.
Further, the step of sequentially storing the corresponding fault code records into the corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults includes the following steps:
when all the fault record variables store the fault codes, if the next fault code is obtained, recording the fault code as the latest fault code;
clearing the fault codes of the fault recording variables arranged at the last bit, and sequentially storing the fault codes in other fault recording variables into the previous fault recording variable;
and storing the latest fault code into the first-ranked fault record variable.
Further, based on the fault record variable, reporting the fault periodically for fault analysis, including the following steps:
periodically generating corresponding fault messages based on the fault record variables;
and sending the fault message for fault analysis.
In a second aspect, the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the vehicle fault recording method of the first aspect.
In a third aspect, the present application provides an electronic device, including a memory and a processor, where the memory stores thereon a computer program running on the processor, and the electronic device is characterized in that: the processor, when executing the computer program, implements the vehicle fault recording method of the first aspect.
In a fourth aspect, the present application provides a vehicle fault logging device, the device comprising:
the variable creating module is used for creating a plurality of fault record variables for storing fault codes;
the fault recording module is used for sequentially storing the corresponding fault code records into the corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults;
the fault reporting module is used for periodically reporting faults based on the fault record variables so as to carry out fault analysis; wherein,
the fault record variables are arranged in order.
According to the method, a specific algorithm is configured in application layer software of a VCU, the current faults of the vehicle are recorded in real time, and the latest 4 fault codes are stored;
after the vehicle is powered off, 4 fault codes are stored in an EEPROM of the controller, the 4 faults are read from the EEPROM after the vehicle is powered on next time, and the faults are sent to a bus through periodic messages for a vehicle maintenance worker to maintain the vehicle;
by means of the preset fault recording variable, after the new energy automobile breaks down, the new energy automobile can be recorded conveniently and quickly without adapting to a specific protocol standard, development cost is reduced, and later-stage query by maintenance personnel is facilitated.
Further, the fault recording module is also used for receiving a fault code which is obtained by the self detection sent by a controller on the vehicle after the vehicle is powered on;
the fault recording module is also used for receiving fault codes obtained by the self detection of the vehicle VCU and the fault codes sent by the controller, and sequentially storing the corresponding fault code records into corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults.
Further, the fault recording module is further configured to store the first fault code into the first sorted fault recording variable when the first fault code is obtained;
and the fault recording module is also used for storing the first fault code into the second sorted fault recording variable and storing the second fault code into the first sorted fault recording variable when the second fault code is obtained.
The technical scheme who provides this application brings beneficial effect includes:
according to the method and the device, the preset fault recording variable is utilized, after the new energy automobile breaks down, the new energy automobile can be conveniently and quickly recorded, the specific protocol standard does not need to be adapted, the development cost is reduced, and later-stage query of maintenance personnel is facilitated.
Drawings
Interpretation of terms:
and (2) UDS: unified Diagnostic Services;
VCU: vehicle Control Unit, vehicle Control Unit;
an EEPROM: electrically Erasable Programmable Read Only Memory (EEPROM).
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of steps of a vehicle fault recording method provided in an embodiment of the present application;
FIG. 2 is a logic diagram of a vehicle fault recording method provided in an embodiment of the present application;
fig. 3 is a block diagram of a vehicle failure recording apparatus provided in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a vehicle fault recording method, a storage medium, an electronic device and a device, a preset fault recording variable is utilized, after a new energy automobile breaks down, recording is conveniently and quickly carried out, a specific protocol standard does not need to be adapted, the development cost is reduced, and later-stage query of maintenance personnel is facilitated.
In order to achieve the technical effects, the general idea of the application is as follows:
a vehicle fault recording method, the method comprising the steps of:
s1, creating a plurality of fault record variables for storing fault codes;
s2, sequentially storing the corresponding fault code records into corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults;
s3, periodically reporting faults based on fault record variables for fault analysis; wherein,
the fault log variables are arranged in order.
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In a first aspect, referring to fig. 1 to 2, an embodiment of the present application provides a vehicle fault recording method, including the following steps:
s1, creating a plurality of fault record variables for storing fault codes;
s2, sequentially storing the corresponding fault code records into corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults;
s3, periodically reporting faults based on fault record variables for fault analysis; wherein,
the fault log variables are arranged in order.
According to the embodiment of the application, a specific algorithm is configured in application layer software of a VCU, the current faults of the vehicle are recorded in real time, and the latest 4 fault codes are stored;
after the vehicle is powered off, 4 fault codes are stored in an EEPROM of the controller, the 4 faults are read from the EEPROM after the vehicle is powered on next time, and the faults are sent to a bus through periodic messages for a vehicle maintenance worker to maintain the vehicle;
by means of the preset fault recording variable, after the new energy automobile breaks down, the new energy automobile can be recorded conveniently and quickly without adapting to a specific protocol standard, development cost is reduced, and later-stage query by maintenance personnel is facilitated.
Specifically, the step of sequentially storing the corresponding fault code records into the corresponding fault record variables according to the time sequence of the vehicle faults includes the following steps:
after the vehicle is powered on, a controller on the vehicle sends out a fault code obtained by self detection;
and the vehicle VCU sequentially stores the corresponding fault code records into corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults and the fault codes obtained by self detection and the fault codes sent by the controller.
Specifically, the step of sequentially storing the corresponding fault code records into the corresponding fault record variables according to the time sequence of the vehicle faults includes the following steps:
when a first fault code is obtained, storing the first fault code into the first sorted fault record variable;
and when a second fault code is obtained, storing the first fault code into the second sorted fault record variable, and storing the second fault code into the first sorted fault record variable.
Specifically, the step of sequentially storing the corresponding fault code records into the corresponding fault record variables according to the time sequence of occurrence of the vehicle fault includes the following steps:
when all the fault record variables store the fault codes, if the next fault code is obtained, recording the next fault code as the latest fault code;
clearing the fault codes of the fault recording variables arranged at the last bit, and sequentially storing the fault codes in other fault recording variables into the previous fault recording variable;
and storing the latest fault code into the first-ranked fault record variable.
Specifically, the method for periodically reporting the fault based on the fault record variable for fault analysis includes the following steps:
periodically generating corresponding fault messages based on the fault record variables;
and sending the fault message for fault analysis.
Based on the technical scheme of the embodiment of the application, a specific implementation process is provided, which specifically comprises the following steps:
in the first step, 4 unsigned 16-bit integer data are defined in application layer software of a VCU, and are respectively defined as VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT and VCU _ DTC4_ WT, and an initial value is assigned to be 0, so that 4 fault codes are stored.
Secondly, after the vehicle is powered on, each controller sends out a respective detected fault code according to a determined communication protocol, the VCU can also detect the fault code of the VCU in real time and collect the fault codes sent out by other controllers, and sends out each current fault of the whole vehicle in turn through the VCU according to the determined communication protocol, and a fault variable sent out by the VCU is VCU _ m _ err _ DTC;
when all controllers of the whole vehicle have no fault, the values of VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT and VCU _ DTC4_ WT are the values of the last time step.
Thirdly, when the whole vehicle has a fault and the fault is different from the fault of the last time step, the fault code is transmitted to the instrument through the VCU _ m _ err _ DTC;
the value of VCU _ DTC3_ WT is also assigned to VCU _ DTC4_ WT,
the value of VCU _ DTC2_ WT is assigned to VCU _ DTC3_ WT,
the value of VCU _ DTC1_ WT is assigned to VCU _ DTC2_ WT,
the new fault code is assigned to VCU _ DTC1_ WT.
When new faults occur continuously, the value is circularly assigned according to the mode, 4 faults which occur newly are stored in VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT and VCU _ DTC4_ WT at the moment,
when all vehicle faults disappear, the 4 fault variables are stored with the 4 faults which are newly generated, and when the faults occur again, the recording process of the fault codes is repeated.
The fourth step, the 4 fault codes, i.e., VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT, VCU _ DTC4_ WT,
filling a frame message VCU _ ERR _ MSG _ CURRENT, wherein the frame message is exactly 8 bytes, each fault code occupies 2 bytes, and is sent out on a bus through a cycle message for checking the CURRENT fault or the fault once occurred before the power failure of the VCU.
Fifthly, defining 4 16-bit unsigned integer data in the bottom layer software of the VCU for storing the power-off data of the VCU, and naming VCU _ DTC1, VCU _ DTC2, VCU _ DTC3 and VCU _ DTC4 respectively;
in each task scheduling cycle of the VCU software, the value of VCU _ DTC1_ WT is assigned to VCU _ DTC1,
the value of VCU _ DTC2_ WT is given to VCU _ DTC2,
the value of VCU _ DTC3_ WT is given to VCU _ DTC3,
the value of VCU _ DTC4_ WT is given to VCU _ DTC4,
after the VCU is powered off and is in sleep, the VCU _ DTC1, the VCU _ DTC2, the VCU _ DTC3 and the VCU _ DTC4 are stored in the EEPROM for reading the last fault code after the VCU is powered on next time.
Sixthly, defining 4 16-bit unsigned integer data in bottom software of the VCU for reading fault information in the EEPROM after the VCU is electrified, wherein the data are named as VCU _ DTC1_ RD, VCU _ DTC2_ RD, VCU _ DTC3_ RD and VCU _ DTC4_ RD respectively;
in the process of power-on initialization of the VCU, data of VCU _ DTC1, VCU _ DTC2, VCU _ DTC3 and VCU _ DTC4 in the EEPROM are read out and assigned to VCU _ DTC1_ RD, VCU _ DTC2_ RD, VCU _ DTC3_ RD and VCU _ DTC4_ RD respectively, a period message VCU _ ERR _ MSG _ HISTORY is defined, the read 4 fault codes are filled into the frame message, the frame message is exactly 8 bytes, each fault code occupies 2 bytes, the latest 4 faults occurring before the last power-off of the VCU are continuously sent to the bus after the VCU is powered on, and the reason can be quickly checked and analyzed in the mode for the faults of flash messages or the faults which are not checked in time.
Seventhly, if no fault occurs in the period of time after the vehicle is powered on until the vehicle is powered off, the values of VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT and VCU _ DTC4_ WT are reset to 0, namely that no fault code is recorded, the fault code in the EEPROM is replaced by 0 after the VCU is powered off and is powered on again, and the values are found to be 0 by inquiring VCU _ ERR _ MSG _ HISTORY, which indicates that no fault occurs in the last driving.
Compared with the technical scheme, when the fault query is carried out on the new energy vehicle, the current fault query and the historical fault query can be realized by utilizing a UDS mode, a VCU is required to develop bottom layer software according to the UDS standard, a special upper computer is required to collect fault information, and the historical fault needs to be manually cleared;
based on the technical scheme, a quick and simple method is provided for vehicle enterprise developers and after-sales service personnel to quickly inquire the current vehicle faults and the historical faults, particularly the faults reported in a flashing mode, and the method is simple and applicable and low in operation difficulty.
In a second aspect, the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the vehicle fault recording method of the first aspect.
In a third aspect, the present application provides an electronic device, including a memory and a processor, where the memory stores thereon a computer program running on the processor, and the electronic device is characterized in that: the processor, when executing the computer program, implements the vehicle fault recording method mentioned in the first aspect.
In a fourth aspect, referring to fig. 3, the present application provides a vehicle fault recording apparatus, comprising:
a variable creating module for creating a plurality of fault record variables for storing fault codes;
the fault recording module is used for sequentially storing the corresponding fault code records into the corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults;
the fault reporting module is used for periodically reporting faults based on the fault record variables so as to carry out fault analysis; wherein,
the fault record variables are arranged in order.
According to the embodiment of the application, a specific algorithm is configured in application layer software of a VCU, the current faults of the vehicle are recorded in real time, and the latest 4 fault codes are stored;
after the vehicle is powered off, 4 fault codes are stored in an EEPROM of the controller, the 4 faults are read from the EEPROM after the vehicle is powered on next time, and the faults are sent to a bus through periodic messages for a vehicle maintenance worker to maintain the vehicle;
by means of the preset fault recording variable, after the new energy automobile breaks down, the new energy automobile can be recorded conveniently and quickly without adapting to a specific protocol standard, development cost is reduced, and later-stage query by maintenance personnel is facilitated.
Further, the fault recording module is also used for receiving a fault code obtained by self detection sent by a controller on the vehicle after the vehicle is powered on;
the fault recording module is also used for receiving fault codes obtained by the self detection of the vehicle VCU and the fault codes sent by the controller, and sequentially storing the corresponding fault code records into corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults.
Further, the fault recording module is further configured to store the first fault code into the first sorted fault recording variable when the first fault code is obtained;
and the fault recording module is also used for storing the first fault code into the second sorted fault recording variable and storing the second fault code into the first sorted fault recording variable when the second fault code is obtained.
Further, the fault recording module is further configured to, when all the fault recording variables store the fault code, if a next fault code is obtained, record the next fault code as a latest fault code;
the fault recording module is further configured to clear the fault codes of the fault recording variables arranged at the last bit, and sequentially store the fault codes of other fault recording variables into a previous fault recording variable;
the fault recording module is further used for storing the latest fault code into the first-ranked fault recording variable.
Further, the fault reporting module is further configured to periodically generate a corresponding fault message based on the fault record variable;
and the fault reporting module is also used for sending the fault message for fault analysis.
Based on the technical scheme of the embodiment of the application, a specific implementation process is provided, which specifically comprises the following steps:
in the first step, 4 unsigned 16-bit integer data are defined in application layer software of a VCU, and are respectively defined as VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT and VCU _ DTC4_ WT, and an initial value is assigned to be 0, so that 4 fault codes are stored.
Secondly, after the vehicle is powered on, each controller sends out a respective detected fault code according to a determined communication protocol, the VCU can also detect the fault code of the VCU in real time and collect the fault codes sent out by other controllers, and sends out each current fault of the whole vehicle in turn through the VCU according to the determined communication protocol, and a fault variable sent out by the VCU is VCU _ m _ err _ DTC;
when all controllers of the whole vehicle have no fault, the values of VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT and VCU _ DTC4_ WT are the values of the last time step.
Thirdly, when the whole vehicle has a fault and the fault is different from the fault of the last time step, the fault code is transmitted to the instrument through the VCU _ m _ err _ DTC;
the value of VCU _ DTC3_ WT is also assigned to VCU _ DTC4_ WT,
the value of VCU _ DTC2_ WT is assigned to VCU _ DTC3_ WT,
the value of VCU _ DTC1_ WT is assigned to VCU _ DTC2_ WT,
the new fault code is assigned to VCU _ DTC1_ WT.
When new faults occur continuously, the value is circularly assigned according to the mode, 4 faults which occur newly are stored in VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT and VCU _ DTC4_ WT at the moment,
when all vehicle faults disappear, the 4 fault variables are stored with the 4 faults which are newly generated, and when the faults occur again, the recording process of the fault codes is repeated.
The fourth step, the 4 fault codes, i.e., VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT, VCU _ DTC4_ WT,
filling a frame message VCU _ ERR _ MSG _ CURRENT, wherein the frame message is exactly 8 bytes, each fault code occupies 2 bytes, and is sent out on a bus through a cycle message for checking the CURRENT fault or the fault once occurred before the power failure of the VCU.
Fifthly, defining 4 16-bit unsigned integer data in the bottom layer software of the VCU for storing the power-off data of the VCU, and naming VCU _ DTC1, VCU _ DTC2, VCU _ DTC3 and VCU _ DTC4 respectively;
in each task scheduling cycle of the VCU software, the value of VCU _ DTC1_ WT is assigned to VCU _ DTC1,
the value of VCU _ DTC2_ WT is assigned to VCU _ DTC2,
the value of VCU _ DTC3_ WT is given to VCU _ DTC3,
the value of VCU _ DTC4_ WT is assigned to VCU _ DTC4,
after the VCU is powered off and is in sleep, the VCU _ DTC1, the VCU _ DTC2, the VCU _ DTC3 and the VCU _ DTC4 are stored in the EEPROM for reading the last fault code after the VCU is powered on next time.
Sixthly, defining 4 16-bit unsigned integer data in bottom software of the VCU for reading fault information in the EEPROM after the VCU is electrified, wherein the data are named as VCU _ DTC1_ RD, VCU _ DTC2_ RD, VCU _ DTC3_ RD and VCU _ DTC4_ RD respectively;
in the process of power-on initialization of the VCU, data of VCU _ DTC1, VCU _ DTC2, VCU _ DTC3 and VCU _ DTC4 in the EEPROM are read out and assigned to VCU _ DTC1_ RD, VCU _ DTC2_ RD, VCU _ DTC3_ RD and VCU _ DTC4_ RD respectively, a period message VCU _ ERR _ MSG _ HISTORY is defined, the read 4 fault codes are filled into the frame message, the frame message is exactly 8 bytes, each fault code occupies 2 bytes, the latest 4 faults occurring before the last power failure of the VCU are continuously sent to the bus after the VCU is powered on, and the reasons can be quickly checked and analyzed in the mode for the faults of the flash report or the faults which are not checked in time.
Seventhly, if no fault occurs in the period of time after the vehicle is powered on until the vehicle is powered off, the values of VCU _ DTC1_ WT, VCU _ DTC2_ WT, VCU _ DTC3_ WT and VCU _ DTC4_ WT are reset to 0, namely that no fault code is recorded, the fault code in the EEPROM is replaced by 0 after the VCU is powered off and is powered on again, and the values are found to be 0 by inquiring VCU _ ERR _ MSG _ HISTORY, which indicates that no fault occurs in the last driving.
Compared with the technical scheme, when the fault query is carried out on the new energy vehicle, the current fault query and the historical fault query can be realized by utilizing a UDS mode, a VCU is required to develop bottom layer software according to the UDS standard, a special upper computer is required to collect fault information, and the historical fault needs to be manually cleared;
based on the technical scheme, a quick and simple method is provided for vehicle enterprise developers and after-sales service personnel to quickly inquire the current vehicle faults and historical faults, particularly the flash reporting faults.
The vehicle failure recording device according to the embodiment of the present invention is similar to the vehicle failure recording method in principle, in terms of technical problems, technical means, and technical effects.
It is noted that, in the present application, relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present application and are presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A vehicle fault recording method, characterized in that the method comprises the steps of:
creating a plurality of fault record variables for storing fault codes;
according to the time sequence of the vehicle faults, corresponding fault code records are sequentially stored into corresponding fault record variables;
periodically reporting faults based on the fault record variables for fault analysis; wherein,
the fault record variables are arranged in order.
2. The vehicle fault recording method according to claim 1, wherein said sequentially storing corresponding fault code records into corresponding fault record variables according to a time sequence of occurrence of vehicle faults comprises the steps of:
after the vehicle is powered on, a controller on the vehicle sends out a fault code obtained by self detection;
and the vehicle VCU sequentially stores the corresponding fault code records into corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults and the fault codes obtained by self detection and the fault codes sent by the controller.
3. The vehicle fault recording method according to claim 1, wherein said sequentially storing corresponding fault code records into corresponding fault record variables according to a time sequence of occurrence of vehicle faults comprises the steps of:
when a first fault code is obtained, storing the first fault code into the first sorted fault record variable;
and when a second fault code is obtained, storing the first fault code into the second sorted fault record variable, and storing the second fault code into the first sorted fault record variable.
4. The vehicle fault recording method according to claim 1, wherein said sequentially storing corresponding fault code records into corresponding fault record variables according to a time sequence of occurrence of vehicle faults comprises the steps of:
when all the fault record variables store the fault codes, if the next fault code is obtained, recording the fault code as the latest fault code;
clearing the fault codes of the fault recording variables arranged at the last bit, and sequentially storing the fault codes in other fault recording variables into the previous fault recording variable;
and storing the latest fault code into the first-ranked fault record variable.
5. The vehicle fault recording method according to claim 1, wherein periodically reporting faults for fault analysis based on the fault recording variables comprises the steps of:
periodically generating corresponding fault messages based on the fault record variables;
and sending the fault message for fault analysis.
6. A storage medium having a computer program stored thereon, characterized in that: the computer program, when executed by a processor, implements the method of any of claims 1 to 5.
7. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that runs on the processor, characterized in that: the processor, when executing the computer program, implements the method of any of claims 1 to 5.
8. A vehicle fault recording apparatus, characterized in that the apparatus comprises:
a variable creating module for creating a plurality of fault record variables for storing fault codes;
the fault recording module is used for sequentially storing the corresponding fault code records into the corresponding fault record variables according to the time sequence of the occurrence of the vehicle faults;
the fault reporting module is used for periodically reporting faults based on the fault record variables so as to carry out fault analysis; wherein,
the fault record variables are arranged in order.
9. The vehicle fault recording device according to claim 8, characterized in that:
the fault recording module is also used for receiving a fault code which is obtained by self detection sent by a controller on the vehicle after the vehicle is powered on;
the fault recording module is also used for receiving fault codes obtained by the detection of a vehicle VCU and the fault codes sent by the controller, and sequentially storing the corresponding fault code records into corresponding fault recording variables according to the time sequence of the vehicle faults.
10. The vehicle fault recording device according to claim 8, characterized in that:
the fault recording module is further used for storing the first fault code into the first sorted fault recording variable when the first fault code is obtained;
and the fault recording module is also used for storing the first fault code into the second sorted fault recording variable and storing the second fault code into the first sorted fault recording variable when the second fault code is obtained.
CN202210910264.5A 2022-07-29 2022-07-29 Vehicle fault recording method, storage medium, electronic device and device Pending CN115284879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210910264.5A CN115284879A (en) 2022-07-29 2022-07-29 Vehicle fault recording method, storage medium, electronic device and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210910264.5A CN115284879A (en) 2022-07-29 2022-07-29 Vehicle fault recording method, storage medium, electronic device and device

Publications (1)

Publication Number Publication Date
CN115284879A true CN115284879A (en) 2022-11-04

Family

ID=83825680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210910264.5A Pending CN115284879A (en) 2022-07-29 2022-07-29 Vehicle fault recording method, storage medium, electronic device and device

Country Status (1)

Country Link
CN (1) CN115284879A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118295375A (en) * 2024-06-03 2024-07-05 中国第一汽车股份有限公司 Vehicle communication fault diagnosis method, device and vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003285700A (en) * 2002-03-28 2003-10-07 Mitsubishi Fuso Truck & Bus Corp Failure-diagnosing device for vehicle
CN110933090A (en) * 2019-12-03 2020-03-27 山东爱德邦智能科技有限公司 Fault monitoring method and device for electric vehicle and related components
CN113110371A (en) * 2021-03-16 2021-07-13 佛山市飞驰汽车科技有限公司 Vehicle fault code storage and transmission system and method
CN113609085A (en) * 2021-08-18 2021-11-05 希尔塔(苏州)信息技术有限公司 Automobile data rapid storage method
CN113721588A (en) * 2021-08-26 2021-11-30 东风悦享科技有限公司 Vehicle remote fault diagnosis method and device based on V2X

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003285700A (en) * 2002-03-28 2003-10-07 Mitsubishi Fuso Truck & Bus Corp Failure-diagnosing device for vehicle
CN110933090A (en) * 2019-12-03 2020-03-27 山东爱德邦智能科技有限公司 Fault monitoring method and device for electric vehicle and related components
CN113110371A (en) * 2021-03-16 2021-07-13 佛山市飞驰汽车科技有限公司 Vehicle fault code storage and transmission system and method
CN113609085A (en) * 2021-08-18 2021-11-05 希尔塔(苏州)信息技术有限公司 Automobile data rapid storage method
CN113721588A (en) * 2021-08-26 2021-11-30 东风悦享科技有限公司 Vehicle remote fault diagnosis method and device based on V2X

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨正宏: "数据结构", vol. 1, 30 June 2001, 中国铁道出版社, pages: 102 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118295375A (en) * 2024-06-03 2024-07-05 中国第一汽车股份有限公司 Vehicle communication fault diagnosis method, device and vehicle

Similar Documents

Publication Publication Date Title
JP5746420B2 (en) Collaborative multi-agent vehicle fault diagnosis system and related methods
CN106533527B (en) Reconfigurable satellite telemetering on-orbit monitoring and quantitative management system and implementation method thereof
CN103163842B (en) Automation equipment long distance control system and method
CN111444067A (en) Rule engine-based configuration system monitoring method, device and equipment
WO2002093380A1 (en) System, method and computer product for performing automated predictive reliability
CN113724437B (en) Unattended alarm method and system for unattended selling cabinet
CN103425122A (en) Fault management method for new energy vehicle controller
CN112801317B (en) Information processing method and device based on block chain
CN115284879A (en) Vehicle fault recording method, storage medium, electronic device and device
CN110137520A (en) A kind of battery management system slave addresses calibration system and method
CN113242147A (en) Automatic operation and maintenance deployment method, device, equipment and storage medium in multi-cloud environment
CN111831628A (en) System operation and maintenance monitoring method and device, electronic equipment and storage medium
CN109410013B (en) Vehicle-mounted equipment based VIN (vehicle identification number) identification matching alarm method and system
CN102023917A (en) Computer system and monitoring device for computer system
CN113472881B (en) Statistical method and device for online terminal equipment
CN112572227B (en) Information management method and system for electric vehicle battery and readable storage medium
CN117472032A (en) Vehicle fault information processing method, device and system
CN105467970A (en) Vehicle driving safety management system
CN110955443A (en) Method, device, equipment and medium for updating cluster crontab in batch
CN113380065B (en) Vehicle management method, system, device, electronic equipment and storage medium
CN113485734A (en) Automatic vehicle configuration flashing method
CN114683847B (en) Abnormality recognition method and system for vehicle battery, electronic device and medium
CN112863008B (en) Fault recording method and device, storage medium and computer equipment
CN114662014B (en) Method and device for checking vehicle abnormal movement
CN113128966B (en) Power communication equipment management system

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