CN112863008B - Fault recording method and device, storage medium and computer equipment - Google Patents

Fault recording method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN112863008B
CN112863008B CN202110286342.4A CN202110286342A CN112863008B CN 112863008 B CN112863008 B CN 112863008B CN 202110286342 A CN202110286342 A CN 202110286342A CN 112863008 B CN112863008 B CN 112863008B
Authority
CN
China
Prior art keywords
signal
fault
fault signal
box
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110286342.4A
Other languages
Chinese (zh)
Other versions
CN112863008A (en
Inventor
周林
唐如意
张瀚文
陈晓锟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Branch of DFSK Motor Co Ltd
Original Assignee
Chongqing Branch of DFSK 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 Chongqing Branch of DFSK Motor Co Ltd filed Critical Chongqing Branch of DFSK Motor Co Ltd
Priority to CN202110286342.4A priority Critical patent/CN112863008B/en
Publication of CN112863008A publication Critical patent/CN112863008A/en
Application granted granted Critical
Publication of CN112863008B publication Critical patent/CN112863008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0816Indicating performance data, e.g. occurrence of a malfunction
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Abstract

The embodiment of the invention provides a fault recording method, a fault recording device, a storage medium and computer equipment. Sending a function addressing signal to a set domain port through a controller local area network (Can) box according to a set time interval; receiving a current fault signal sent by a Can box by a set domain port in response to a functional addressing signal; judging whether the current fault signal is the same as the previous fault signal; and if the current fault signal is different from the previous fault signal, storing the previous fault signal. According to the technical scheme provided by the embodiment of the invention, the current fault signal Can be compared with the previous fault signal based on the Can box, and the previous fault signal is stored when the current fault signal is judged to be different from the previous fault signal, so that invalid fault records are reduced, and the fault recording efficiency is improved.

Description

Fault recording method and device, storage medium and computer equipment
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of vehicle technologies, and in particular, to a method and an apparatus for recording a fault, a storage medium, and a computer device.
[ background of the invention ]
With the maturity and gradual popularization of new energy technologies, the attention and the popularization rate of electric vehicles are higher and higher. Compared with the traditional automobile, the number of high-low voltage electric control elements of the electric automobile is increased, the electronic electric control technical requirements of key technologies such as power battery management, drive motor control and whole automobile control are increased, and the electric automobile needs to be tested and faults generated in the test are recorded.
In the related technology, data needs to be tested manually, and faults in the test are recorded, so that the number of manual operation steps is large, and the fault recording efficiency is reduced.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a method, an apparatus, a storage medium, and a computer device for fault recording, so as to improve the efficiency of fault recording.
In one aspect, an embodiment of the present invention provides a method for fault recording, including:
sending a function addressing signal to a set domain port through a controller local area network (Can) box according to a set time interval;
receiving a current fault signal sent by the Can box through the set domain port in response to the functional addressing signal;
judging whether the current fault signal is the same as the previous fault signal;
and if the current fault signal is different from the previous fault signal, storing the previous fault signal.
Optionally, the fault signal includes a controller code of a fault and a controller fault number, and the storing the previous fault signal includes:
inquiring the name of the failed controller corresponding to the code of the failed controller according to the stored corresponding relation between the code of the failed controller and the name of the failed controller;
naming the last fault signal according to the name of the fault controller and the number of the fault controllers to generate a named fault signal;
storing the named fault signal.
Optionally, before sending the function addressing signal to the set domain port through the controller local area network Can box according to the set time interval, the method includes:
judging whether a power supply starting signal and an engine running signal which are sent by the set domain port through the Can box are received;
if the power supply starting signal and the engine running signal which are sent by the set domain port through the Can box are judged to be received, sending a function addressing signal to the set domain port through the controller local area network Can box;
receiving a first fault signal sent by the set domain port through the Can box in response to the functional addressing signal;
the fault signal of the first one is stored.
Optionally, the method further comprises:
and if the current fault signal is judged to be the same as the previous fault signal, continuing to execute the step of sending a function addressing signal to a set domain port by the computer equipment through a controller area network (Can) box according to a set time interval.
Optionally, the method further comprises:
and if the power supply starting signal and the engine running signal which are sent by the set domain port through the Can box are not received, continuing to execute the step of judging whether the power supply starting signal and the engine running signal which are sent by the set domain port through the Can box are received.
Optionally, the setting the domain comprises: the vehicle automatic diagnosis system domain port, the vehicle body power domain port, the information domain port or the chassis domain port.
In another aspect, an embodiment of the present invention provides an apparatus for fault recording, including:
the sending module is used for sending a function addressing signal to a set domain port through a controller local area network (Can) box according to a set time interval;
a receiving module, configured to receive a current fault signal sent by the Can box through the set domain port in response to the functional addressing signal;
and the first judging module is used for judging whether the current fault signal is the same as the previous fault signal or not, and triggering the storage module to store the previous fault signal if the current fault signal is judged to be different from the previous fault signal.
Optionally, the storage module comprises:
the query submodule is used for querying the name of the fault controller corresponding to the code of the fault controller according to the stored corresponding relation between the code of the fault controller and the name of the fault controller;
the naming submodule is used for naming the last fault signal according to the name of the fault controller and the number of the fault controllers to generate a named fault signal;
and the storage submodule is used for storing the naming fault signal.
In another aspect, an embodiment of the present invention provides a storage medium, including: the storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the fault recording method.
In another aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, where the program instructions are loaded by the processor and executed to implement the steps of the above-mentioned fault recording method.
In the technical scheme of the fault recording method provided by the embodiment of the invention, a function addressing signal is sent to a set domain port through a controller local area network (Can) box according to a set time interval; receiving a current fault signal sent by a Can box by a set domain port in response to a functional addressing signal; judging whether the current fault signal is the same as the previous fault signal; and if the current fault signal is different from the previous fault signal, storing the previous fault signal. According to the technical scheme provided by the embodiment of the invention, the current fault signal Can be compared with the previous fault signal based on the Can box, and the previous fault signal is stored when the current fault signal is judged to be different from the previous fault signal, so that invalid fault records are reduced, and the fault recording efficiency is improved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a flowchart of a method for fault recording according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for fault logging provided by an embodiment of the present invention;
FIG. 3 is a flow chart of the last stored fault signal of FIG. 2;
fig. 4 is a schematic structural diagram of a fault recording apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and 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 invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
An embodiment of the present invention provides a method for recording a fault, and fig. 1 is a flowchart of the method for recording a fault according to the embodiment of the present invention, and as shown in fig. 1, the method includes:
and 102, sending a function addressing signal to a set domain port through a controller local area network (Can) box according to a set time interval.
In the embodiment of the present invention, each step is executed by a computer device, and the computer device is a computer, for example, the computer device is a test computer.
In the embodiment of the present invention, the setting time interval can be set according to actual conditions, for example, the setting time interval is 10 minutes.
In the embodiment of the present invention, the setting of the domain port includes: an On Board Diagnostics (OBD) domain port, a body power domain port, an information domain port, or a chassis domain port.
In this step, the computer device sends a function addressing signal to a Controller Area Network (Can) box according to a set time interval, and the Can box sends the function addressing signal to a set domain port, so that the set domain port reads fault signals of all online controllers in response to the function addressing signal. For example, the functional addressing signal is 190109& 190209.
And 104, receiving a current fault signal sent by the set domain port through the Can box in response to the function addressing signal.
And step 106, judging whether the current fault signal is the same as the previous fault signal.
In the embodiment of the invention, if the current fault signal is judged to be the same as the previous fault signal, the current fault signal is compared with the previous fault signal and no new fault is added; and if the current fault signal is judged to be different from the previous fault signal, the current fault signal is compared with the previous fault signal to indicate that a new fault exists.
And step 108, if the current fault signal is judged to be different from the previous fault signal, storing the previous fault signal.
In this step, the last failure signal is stored in the database. As an alternative, the fault signals for each online controller are stored separately in a database and the number of controller faults is flagged.
In the technical scheme provided by the embodiment of the invention, a function addressing signal is sent to a set domain port through a controller local area network Can box according to a set time interval; receiving a current fault signal sent by a Can box by a set domain port in response to a functional addressing signal; judging whether the current fault signal is the same as the previous fault signal; and if the current fault signal is different from the previous fault signal, storing the previous fault signal. According to the technical scheme provided by the embodiment of the invention, the current fault signal Can be compared with the previous fault signal based on the Can box, and the previous fault signal is stored when the current fault signal is judged to be different from the previous fault signal, so that invalid fault records are reduced, and the fault recording efficiency is improved.
An embodiment of the present invention provides another fault recording method, and fig. 2 is a flowchart of another fault recording method provided in the embodiment of the present invention, as shown in fig. 2, the method includes:
step 202, the computer device sends a function addressing signal to a set domain port through a controller local area network Can box according to a set time interval.
In the embodiment of the present invention, please refer to step 102 for a detailed description of step 202.
In the embodiment of the present invention, step 202 includes:
step S1, the computer equipment judges whether a power supply opening signal and an engine running signal which are sent by a Can box through a set domain port are received, if so, the step S2 is executed; if not, go to step S1.
In the embodiment of the invention, if the computer equipment judges that a power supply starting signal and an engine running signal which are sent by a set domain port through a Can box are received, the computer equipment indicates that the power supply of an automobile is started and an engine runs; and if the computer equipment judges that the power supply starting signal and the engine running signal sent by the Can box through the set domain port are not received, the computer equipment indicates that the power supply of the automobile is not started and the engine does not run.
In the step, the set domain port sends a power supply starting signal and an engine running signal to the Can box, and the Can box sends the power supply starting signal and the engine running signal to the computer equipment.
And step S2, the computer equipment sends a function addressing signal to the set domain port through the controller area network Can box.
In this step, the computer device sends a function addressing signal to the Can box, and the Can box sends the function addressing signal to the set domain port.
Step S3, the set domain port sends a first failure signal to the computer device via the Can box in response to the function addressing signal.
In this step, the domain port is set to send a first failure signal to the Can box in response to the functional addressing signal, and the Can box sends the first failure signal to the computer device.
In the embodiment of the invention, the fault signal is the fault signal of all the online controllers, for example, the fault signal is 190510& 190610.
In the embodiment of the invention, the fault signal comprises a controller code of the fault and the number of the faults of the controller.
Step S4, the computer device stores the first failure signal.
In this step, the computer device stores the first failure signal in a database. As an alternative, the computer device stores the controller code and the controller fault number of each online controller in the fault signal separately in the database, and queries the controller fault number corresponding to the controller code of each fault according to the correspondence between the stored controller code of the fault and the controller fault number, stores the controller fault number corresponding to the controller code of each fault in the fault signal, and marks the controller fault number corresponding to the stored controller code of each fault as the first fault number.
And step 204, setting the domain port to respond to the function addressing signal, and sending a current fault signal to the computer equipment through the Can box.
In this step, the set domain port sends a current fault signal to the Can box in response to the functional addressing signal, and the Can box sends the current fault signal to the computer device.
Step 206, the computer device judges whether the current fault signal is the same as the previous fault signal, if yes, step 202 is executed; if not, go to step 208.
In the embodiment of the present invention, please refer to step 106 for a detailed description of step 206.
Step 208, the computer device stores the last fault signal.
In the embodiment of the present invention, please refer to step 108 for the detailed description of step 208.
Fig. 3 is a flowchart of the previous storing of the fault signal in fig. 2, and as shown in fig. 3, step 208 includes:
step 2082, the computer device queries the failed controller name corresponding to the failed controller code according to the stored corresponding relationship between the failed controller code and the failed controller name.
In the embodiment of the invention, the corresponding relation between the failed controller code and the failed controller name is stored in the computer equipment, and the failed controller name corresponding to the failed controller code can be inquired according to the corresponding relation between the failed controller code and the failed controller name.
Step 2084, naming the last fault signal by the computer device according to the name of the faulty controller and the number of the faulty controllers, and generating a named fault signal.
In this step, the computer apparatus names the last failure signal as the name of the failed controller and the number of the failed controllers, and generates a named failure signal.
Step 2086, the computer device stores the named fault signal.
In this step, the computer device stores the named fault signal in a database. As an alternative, the computer device separately stores the controller code and the controller fault number of each online controller in the named fault signal in the database, queries the controller fault number corresponding to the controller code of each fault according to the corresponding relationship between the stored controller code and the controller fault number of the fault, stores the controller fault number corresponding to the controller code of each fault in the named fault signal, and marks the controller fault number corresponding to the stored controller code of each fault as the current fault number.
In the technical scheme provided by the embodiment of the invention, a function addressing signal is sent to a set domain port through a controller local area network Can box according to a set time interval; receiving a current fault signal sent by a Can box by a set domain port in response to a functional addressing signal; judging whether the current fault signal is the same as the previous fault signal; and if the current fault signal is different from the previous fault signal, storing the previous fault signal. According to the technical scheme provided by the embodiment of the invention, the current fault signal Can be compared with the previous fault signal based on the Can box, and the previous fault signal is stored when the current fault signal is judged to be different from the previous fault signal, so that invalid fault records are reduced, and the fault recording efficiency is improved.
In the technical scheme provided by the embodiment of the invention, based on the Can box, the screening of invalid data in the road test is reduced in the dynamic road test process of the real vehicle, and the test efficiency of the whole vehicle is improved. The road test system has the advantages of being convenient to use, complete in recording, capable of accurately positioning fault time, completely recording fault content and reducing dangerous behaviors such as repeated computer operation of road test engineers. The dynamic road test system can improve the severe dynamic road test environment of testers, can put attention on operation and experience, and really realizes automatic test application.
The embodiment of the invention provides a fault recording device. Fig. 4 is a schematic structural diagram of a fault recording apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes: the device comprises a sending module 11, a receiving module 12, a first judging module 13 and a storage module 14.
The sending module 11 is configured to send a function addressing signal to the set domain port through the controller area network Can box according to the set time interval.
The receiving module 12 is configured to receive a current fault signal sent by the Can box through the set domain port in response to the functional addressing signal.
The first determining module 13 is configured to determine whether the current fault signal is the same as the previous fault signal, and trigger the storage module 14 to store the previous fault signal if it is determined that the current fault signal is different from the previous fault signal.
In the embodiment of the present invention, the storage module 14 includes: a query submodule 141, a naming submodule 142 and a storage submodule 143.
The query submodule 141 is configured to query the failed controller name corresponding to the failed controller code according to the stored correspondence between the failed controller code and the failed controller name.
The naming sub-module 142 is used for naming the last fault signal according to the name of the controller with the fault and the number of the controller faults, and generating a named fault signal.
The storage submodule 143 is used to store a named fault signal.
In the embodiment of the present invention, the apparatus further includes: a second decision module 15.
The second judging module 15 is configured to judge whether a power on signal and an engine running signal sent by the set domain port through the Can box are received, and if it is judged that the power on signal and the engine running signal sent by the set domain port through the Can box are received, the triggering sending module 11 sends a function addressing signal to the set domain port through the controller area network Can box.
The receiving module 12 is further configured to receive a first failure signal sent by the Can box through the set domain port in response to the functional addressing signal.
The memory module 14 is also used to store the first failure signal.
In this embodiment of the present invention, if the first determining module 13 determines that the fault signal is the same as the last fault signal received, the triggering and sending module 11 continues to execute the step of sending, by the computer device, the function addressing signal to the set domain port through the controller area network Can box according to the set time interval.
In the embodiment of the present invention, if the second determining module 15 determines that the power on signal and the engine operating signal sent by the Can box through the set domain port are not received, the second determining module continues to perform the step of determining whether the power on signal and the engine operating signal sent by the Can box through the set domain port are received.
In the embodiment of the present invention, the setting of the domain port includes: the vehicle automatic diagnosis system domain port, the vehicle body power domain port, the information domain port or the chassis domain port.
In the technical scheme provided by the embodiment of the invention, a function addressing signal is sent to a set domain port through a controller local area network Can box according to a set time interval; receiving a current fault signal sent by a Can box by a set domain port in response to a functional addressing signal; judging whether the current fault signal is the same as the previous fault signal; and if the current fault signal is different from the previous fault signal, storing the previous fault signal. According to the technical scheme provided by the embodiment of the invention, the current fault signal Can be compared with the previous fault signal based on the Can box, and the previous fault signal is stored when the current fault signal is judged to be different from the previous fault signal, so that invalid fault records are reduced, and the fault recording efficiency is improved.
The device for fault recording provided by this embodiment may be used to implement the method for fault recording in fig. 1 and fig. 2, and for specific description, reference may be made to an embodiment of the method for fault recording described above, and a description will not be repeated here.
Embodiments of the present invention provide a storage medium, where the storage medium includes a stored program, where each step of an embodiment of a method for controlling a device on which the storage medium is located to perform the above fault recording is performed when the program runs, and for a specific description, reference may be made to an embodiment of the method for fault recording.
Embodiments of the present invention provide a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded by the processor and executed to implement the steps of the embodiments of the method for recording faults, and the specific description may refer to the embodiments of the method for recording faults.
Fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in fig. 5, the computer device 20 of this embodiment includes: the processor 21, the memory 22, and the computer program 23 stored in the memory 22 and capable of running on the processor 21, where the computer program 23 is executed by the processor 21 to implement the method applied to the fault record in the embodiment, and in order to avoid repetition, details are not repeated herein. Alternatively, the computer program is executed by the processor 21 to implement the functions of each model/unit in the apparatus for fault recording in the embodiment, which are not described herein again to avoid redundancy.
The computer device 20 includes, but is not limited to, a processor 21, a memory 22. Those skilled in the art will appreciate that fig. 5 is only an example of a computer device 20 and is not intended to limit the computer device 20 and that it may include more or less components than shown, or some components may be combined, or different components, e.g., the computer device may also include input output devices, network access devices, buses, etc.
The Processor 21 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 22 may be an internal storage unit of the computer device 20, such as a hard disk or a memory of the computer device 20. The memory 22 may also be an external storage device of the computer device 20, such as a plug-in hard disk provided on the computer device 20, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 22 may also include both internal storage units of the computer device 20 and external storage devices. The memory 22 is used for storing computer programs and other programs and data required by the computer device. The memory 22 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (9)

1. A method of fault logging, comprising:
sending a function addressing signal to a set domain port through a controller local area network (Can) box according to a set time interval;
receiving a current fault signal sent by the Can box through the set domain port in response to the functional addressing signal;
judging whether the current fault signal is the same as the previous fault signal;
if the current fault signal is different from the previous fault signal, storing the previous fault signal;
before sending the function addressing signal to the set domain port through the controller local area network Can box according to the set time interval, the method comprises the following steps:
judging whether a power supply starting signal and an engine running signal which are sent by the set domain port through the Can box are received;
if the power supply starting signal and the engine running signal which are sent by the set domain port through the Can box are judged to be received, sending a function addressing signal to the set domain port through the controller local area network Can box;
receiving a first fault signal sent by the set domain port through the Can box in response to the functional addressing signal;
the fault signal of the first one is stored.
2. The method of claim 1, wherein the fault signal includes a failed controller code and a controller failure number, and wherein storing the last fault signal comprises:
inquiring the name of the failed controller corresponding to the code of the failed controller according to the stored corresponding relation between the code of the failed controller and the name of the failed controller;
naming the last fault signal according to the name of the fault controller and the number of the fault controllers to generate a named fault signal;
storing the named fault signal.
3. The method of claim 1, further comprising:
and if the current fault signal is judged to be the same as the previous fault signal, continuously executing the step of sending the function addressing signal to the set domain port through the controller local area network Can box according to the set time interval.
4. The method of claim 1, further comprising:
and if the power supply starting signal and the engine running signal which are sent by the set domain port through the Can box are not received, continuing to execute the step of judging whether the power supply starting signal and the engine running signal which are sent by the set domain port through the Can box are received.
5. The method of any one of claims 1 to 4, wherein said setting a domain comprises: the vehicle automatic diagnosis system domain port, the vehicle body power domain port, the information domain port or the chassis domain port.
6. An apparatus for fault recording, comprising:
the sending module is used for sending a function addressing signal to a set domain port through a controller local area network (Can) box according to a set time interval;
a receiving module, configured to receive a current fault signal sent by the Can box through the set domain port in response to the functional addressing signal;
the first judging module is used for judging whether the current fault signal is the same as the previous fault signal or not, and if the current fault signal is judged to be different from the previous fault signal, the first judging module triggers the storage module to store the previous fault signal;
the second judging module is used for judging whether a power supply starting signal and an engine running signal which are sent by the set domain port through the Can box are received or not, and if the power supply starting signal and the engine running signal which are sent by the set domain port through the Can box are judged to be received, the sending module is triggered to send a function addressing signal to the set domain port through the controller area network Can box;
the receiving module is also used for receiving a first fault signal sent by the Can box through the set domain port in response to the functional addressing signal;
the storage module is also used for storing the first fault signal.
7. The apparatus of claim 6, wherein the storage module comprises:
the query submodule is used for querying the name of the fault controller corresponding to the code of the fault controller according to the stored corresponding relation between the code of the fault controller and the name of the fault controller;
the naming submodule is used for naming the last fault signal according to the name of the fault controller and the number of the fault controllers to generate a named fault signal;
and the storage submodule is used for storing the naming fault signal.
8. A storage medium, comprising: the storage medium includes a stored program, wherein the apparatus in which the storage medium is located is controlled to execute the method of fault logging according to any one of claims 1 to 5 when the program runs.
9. A computer device comprising a memory for storing information including program instructions and a processor for controlling the execution of the program instructions, characterized in that the program instructions are loaded and executed by the processor to implement the steps of the method of fault logging according to any one of claims 1 to 5.
CN202110286342.4A 2021-03-17 2021-03-17 Fault recording method and device, storage medium and computer equipment Active CN112863008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110286342.4A CN112863008B (en) 2021-03-17 2021-03-17 Fault recording method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110286342.4A CN112863008B (en) 2021-03-17 2021-03-17 Fault recording method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN112863008A CN112863008A (en) 2021-05-28
CN112863008B true CN112863008B (en) 2022-04-22

Family

ID=75995059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110286342.4A Active CN112863008B (en) 2021-03-17 2021-03-17 Fault recording method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN112863008B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176262A (en) * 2020-01-20 2020-05-19 东风小康汽车有限公司重庆分公司 Vehicle fault detection method and system
CN211826336U (en) * 2019-11-17 2020-10-30 深圳市嘉立创科技发展有限公司 Automatic PCB detection platform system

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3631994A1 (en) * 1986-09-20 1988-03-31 Mannesmann Kienzle Gmbh DEVICE FOR A VEHICLE INFORMATION DEVICE
JP2006321424A (en) * 2005-05-20 2006-11-30 Yazaki Corp Drive recorder
CN101419729A (en) * 2007-10-22 2009-04-29 株洲南车时代电气股份有限公司 Data recording method and device for vehicular apparatus
CA2823072C (en) * 2011-01-03 2019-03-05 650340 N.B. Ltd. Systems and methods for extraction and telemetry of vehicle operational data from an internal automotive network
CN104268958B (en) * 2014-08-27 2017-03-29 中车南京浦镇车辆有限公司 Event recording method and equipment based on central control unit
US9478080B2 (en) * 2014-11-20 2016-10-25 Clear View Technology Solutions, Inc. Method and system for providing condition reports for vehicles
FR3044502B1 (en) * 2015-11-26 2018-01-05 Psa Automobiles Sa. METHOD AND TERMINAL FOR CONTROLLING THE ESTABLISHMENT OF AN ACCIDENT REPORT OF A VEHICLE
CN106696868A (en) * 2017-01-17 2017-05-24 北京汽车股份有限公司 Fault recording method, device and automobile control system
US10810806B2 (en) * 2017-03-13 2020-10-20 Renovo Motors, Inc. Systems and methods for processing vehicle sensor data
GB2563242B (en) * 2017-06-07 2020-01-29 Ge Aviat Systems Ltd A method and system for enabling component monitoring redundancy in a digital network of intelligent sensing devices
CN107272649A (en) * 2017-07-05 2017-10-20 东南(福建)汽车工业有限公司 Malfunction remote diagnosis system and method
US20210001721A1 (en) * 2018-03-02 2021-01-07 Volvo Truck Corporation Device, method, and program for tire failure detection, and computer-readable recording medium recording tire failure detection program
KR102103148B1 (en) * 2018-03-14 2020-04-22 (주)아이티공간 Predictive maintenance method of driving device
CN109064582A (en) * 2018-07-04 2018-12-21 北京车和家信息技术有限公司 CAN date storage method, device, server and vehicle
CN109830002A (en) * 2019-01-23 2019-05-31 征辕科技(宁波)有限公司 Event data record method, apparatus of driving a vehicle and event data recorder
KR20200139059A (en) * 2019-06-03 2020-12-11 현대자동차주식회사 Controller diagnostic device and method thereof
CN110838191A (en) * 2019-09-30 2020-02-25 中车永济电机有限公司 Novel method for downloading event and fault data of diesel locomotive
CN111815803A (en) * 2020-06-19 2020-10-23 安徽安凯汽车股份有限公司 New energy automobile fault storage system and detection method
CN111966518A (en) * 2020-08-05 2020-11-20 广州汽车集团股份有限公司 Fault data recording method, system, automobile and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN211826336U (en) * 2019-11-17 2020-10-30 深圳市嘉立创科技发展有限公司 Automatic PCB detection platform system
CN111176262A (en) * 2020-01-20 2020-05-19 东风小康汽车有限公司重庆分公司 Vehicle fault detection method and system

Also Published As

Publication number Publication date
CN112863008A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN102262404B (en) End-of-line configuration system and configuration method for finished vehicle
WO2019109915A1 (en) Vehicle trouble diagnosis method, vehicle trouble diagnosis apparatus and electronic device
JP2014203314A (en) ECU simulation device
CN109507981B (en) Vehicle testing method and device and machine-readable storage medium
CN108255152B (en) vehicle diagnosis method, diagnosis box and computer readable storage medium
CN110244691B (en) Automobile diagnosis method, device and system
CN113608518B (en) Data generation method, device, terminal equipment and medium
CN108536122B (en) Hybrid electric vehicle diagnostic system and method
CN112863008B (en) Fault recording method and device, storage medium and computer equipment
CN113406944A (en) Vehicle diagnosis method, apparatus, device and computer readable storage medium
CN115080104A (en) Method and system for automatically configuring COM (component object model) code in Autosar
CN111553491A (en) Vehicle maintenance record generation method and related device
CN207529222U (en) A kind of fault diagnosis system
CN114115170B (en) Method and device for determining vehicle configuration module and after-sale diagnostic instrument
CN112509176B (en) Fault repair method and device based on vehicle data
CN115495363A (en) Software testing method, electronic equipment and readable storage medium
CN114879647A (en) ECU fault code test system, electronic controller and car
WO2018233891A1 (en) Graphical user interface tool for configuring a vehicle's intrusion detection system
CN112260919A (en) Vehicle-mounted CAN network diagnosis system-level automatic testing device and system
CN114371683B (en) Diagnostic function verification method, system, storage medium and device for diagnostic apparatus
CN116136685B (en) Communication control system and method suitable for high-speed CAN and low-speed CAN
Foran et al. An intelligent diagnostic system for distributed, multi-ECU automotive control systems
CN114407812B (en) Diagnostic database determination method, device, electronic equipment and storage medium
US20230162540A1 (en) Method, Device, Computer Program and Computer-Readable Storage Medium for Generating a Graph Database for Determining a Part to be Checked of a Mechatronic System
CN113820964A (en) Vehicle electronic control unit simulation system and simulation method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant