CN111781917A - Fault data processing method, domain controller and automobile - Google Patents
Fault data processing method, domain controller and automobile Download PDFInfo
- Publication number
- CN111781917A CN111781917A CN202010629938.5A CN202010629938A CN111781917A CN 111781917 A CN111781917 A CN 111781917A CN 202010629938 A CN202010629938 A CN 202010629938A CN 111781917 A CN111781917 A CN 111781917A
- Authority
- CN
- China
- Prior art keywords
- data
- fault
- microprocessor
- domain controller
- module
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0218—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
- G05B23/0221—Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a fault data processing method, which is executed by a domain controller and comprises the following steps: collecting communication bus data of a vehicle in real time; caching the collected communication bus data for a preset time; carrying out fault diagnosis on the self-body in real time; and when the self fault is diagnosed, storing the currently cached communication bus data as fault data into a local memory. The invention also discloses a domain controller and an automobile for executing the fault data processing method. By implementing the embodiment of the invention, the data in a certain time before the fault occurs and the data after the fault occurs can be effectively stored, and the comprehensiveness and the accuracy of recording the fault data are improved.
Description
Technical Field
The invention relates to the technical field of data processing, in particular to a fault data processing method, a domain controller and an automobile.
Background
The vehicle-mounted diagnosis system is an important part used for monitoring the running condition of the vehicle controller at any time in the vehicle integrated control system, once the vehicle-mounted diagnosis system finds that the vehicle runs abnormally, a fault warning is sent out, fault scene data are stored in the memory, and maintenance personnel can read related fault information through a standard diagnosis instrument and a diagnosis interface, so that the type and the reason of the vehicle fault are diagnosed and analyzed.
However, in the process of implementing the invention, the inventor finds that the prior art has at least the following problems: the existing fault scene data is generally stored in the form of snapshot data, and it is considered that a conventional vehicle controller generally uses a RAM (random access memory) and a ROM (read only memory) with fixed lengths to store a fixed amount of fault information, the stored data amount is limited, only data at the moment of fault occurrence can be stored, and it is difficult to completely store a scene a period of time before the fault occurrence, so that maintenance personnel cannot effectively analyze and process the fault, and cannot timely troubleshoot the reason of the fault occurrence.
Disclosure of Invention
The embodiment of the invention aims to provide a fault data processing method, a domain controller and an automobile, which can effectively store data in a certain time before a fault occurs and data after the fault occurs, and improve the comprehensiveness and accuracy of fault data recording.
In order to achieve the above object, an embodiment of the present invention provides a fault data processing method, executed by a domain controller, where the fault data processing method includes:
collecting communication bus data of a vehicle in real time;
caching the collected communication bus data for a preset time;
carrying out fault diagnosis on the self-body in real time;
and when the self fault is diagnosed, storing the currently cached communication bus data as fault data into a local memory.
As an improvement of the above scheme, the fault data processing method further includes:
and when a data playback request is received, performing data playback on the fault data in the local memory.
As an improvement of the above scheme, the domain controller comprises a microcontroller and a microprocessor; the communication bus data comprises control data collected by the microcontroller;
the caching of preset duration of the communication bus data to be collected specifically includes:
and the microprocessor receives the control data sent by the microcontroller and caches the control data for a preset time length.
As an improvement of the above, the communication bus data further includes analysis data collected by the microprocessor;
the caching of preset duration is carried out on the collected communication bus data, and the method specifically further comprises the following steps:
and the microprocessor caches the acquired analysis data for a preset time.
As an improvement of the above scheme, when a fault is diagnosed, the method for storing the currently cached communication bus data as fault data in the local memory specifically includes:
when the microcontroller diagnoses that the self has a fault, generating a first fault code and sending the first fault code to the microprocessor;
and when receiving the first fault code, the microprocessor stores the currently cached control data as fault data in a local memory.
As an improvement of the above scheme, the fault data processing method further includes:
when the microprocessor diagnoses that the self is in fault, generating a second fault code;
and after the microprocessor generates the second fault code, storing the current cached analysis data as fault data in a local memory.
As an improvement of the above scheme, the data playback of the fault data in the local memory when receiving the data playback request specifically includes:
when the microprocessor receives the data playback request, reading the control data and the analysis data in the local memory;
and the microprocessor plays back the read analysis data and sends the read control data to the microcontroller so that the microcontroller plays back the control data.
An embodiment of the present invention further provides a domain controller, including:
the data processing module is used for acquiring communication bus data of the vehicle in real time;
the fault diagnosis module is used for carrying out fault diagnosis on the domain controller in real time;
the data caching module is used for caching the acquired communication bus data for a preset time; and when the fault diagnosis module diagnoses that the domain controller has a fault, storing the currently cached communication bus data as fault data in a local memory.
As an improvement of the above, the domain controller further includes:
and the data playback module is used for sending the fault data in the local memory to the data processing module when a data playback request is received, so that the data processing module can perform data playback on the fault data.
As an improvement of the above scheme, the domain controller comprises a microcontroller and a microprocessor;
the data processing module comprises a first data processing unit and is used for acquiring control data of the vehicle in real time; wherein the communication bus data comprises the control data; the first data processing unit is arranged in the microcontroller;
the data caching module is specifically configured to receive the control data sent by the first data processing module, and cache the control data for a preset duration; the data cache module is arranged in the microprocessor.
As an improvement of the above scheme, the data processing module comprises a second data processing unit for acquiring the analysis data of the vehicle in real time; wherein the communication bus data further comprises the analysis data; the second data processing unit is arranged in the microprocessor;
the data caching module is specifically further configured to receive the analysis data sent by the second data processing unit, and cache the analysis data for a preset duration.
As an improvement of the above scheme, the fault diagnosis module includes a first fault diagnosis unit, configured to perform fault diagnosis on the microcontroller in real time; when the microcontroller is diagnosed to have a fault, generating a first fault code, and sending the first fault code to the data cache module; the first fault diagnosis unit is arranged in the microcontroller;
the data caching module is specifically configured to store the currently cached control data as fault data in a local memory when the first fault code is received.
As an improvement of the above scheme, the fault diagnosis module further includes a second fault diagnosis unit, configured to perform fault diagnosis on the microprocessor in real time; when the microprocessor is diagnosed to have a fault, generating a second fault code and sending the second fault code to the data cache module; the second fault diagnosis module is arranged in the microprocessor;
the data caching module is specifically configured to store the currently cached analysis data as fault data in a local memory when the second fault code is received.
As an improvement of the above scheme, the data playback module is specifically configured to read the control data and the analysis data in the local memory when receiving the data playback request;
and sending the read control data to the first data processing unit to cause the first data processing unit to play back the control data, and sending the read analysis data to the second data processing unit to cause the second data processing unit to play back the analysis data; wherein, the data playback module is arranged in the microprocessor.
An embodiment of the present invention further provides an automobile, including the domain controller according to any one of the above items.
Compared with the prior art, the fault data processing method, the domain controller and the automobile disclosed by the invention have the advantages that the communication bus data of the automobile are collected in real time, and the collected communication bus data are cached for preset duration; and carrying out fault diagnosis on the self-body in real time, and storing the currently cached communication bus data serving as fault data into a local memory when the self-body is diagnosed to have a fault. The domain controller has the advantages that the strong storage capacity of the domain controller is utilized to store the fault data of the domain controller, the communication data before and after the fault occurs can be effectively stored, the domain controller has wider data sources and data acquisition time range, the problem that the communication data before the fault occurs is difficult to be completely stored in the prior art is solved, the comprehensiveness and accuracy of recording the fault data are improved, maintenance personnel can be effectively assisted to analyze and process the fault, and the reason for generating the fault is timely checked.
Drawings
Fig. 1 is a schematic flowchart illustrating steps of a fault data processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another fault data processing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a domain controller according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of another domain controller according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a preferred domain controller according to a fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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.
Fig. 1 is a schematic flowchart illustrating steps of a fault data processing method according to an embodiment of the present invention. The fault data processing method provided in the first embodiment of the present invention specifically includes steps S11 to S14:
s11, collecting communication bus data of the vehicle in real time;
s12, caching the collected communication bus data for a preset time;
s13, carrying out fault diagnosis on the self-body in real time;
and S14, when the self-diagnosis is failed, storing the currently cached communication bus data into a local memory as failure data.
In the embodiment of the invention, the fault data processing method is executed by the domain controller, and is suitable for all automobile electrical architectures taking the domain controller as a main node, such as an automatic driving domain controller, an automobile body electronic domain controller, an auxiliary driving domain controller and the like.
In the actual operation process, the domain controller collects the communication bus data of the vehicle in real time according to the functional requirements of the domain controller so as to realize the corresponding automobile function. In a normal operation mode, the domain controller caches the collected communication bus data for a preset time length, and when the cached communication bus data exceeds the preset time length, the new communication bus data covers and updates the original data, so that the domain controller is ensured to always store the communication bus data with the preset time length before the current time. Meanwhile, the domain controller detects whether the function requirements configured by the domain controller operate normally in real time according to the operation condition of the domain controller so as to diagnose whether the domain controller has a fault. When any one of the function configurations of the domain controller is diagnosed to have a fault, the domain controller sends out a fault warning, and stores the currently cached communication bus data as fault data in a local memory, so that the communication bus data in a certain time before the fault occurs and the communication bus data after the fault occurs are stored in the local memory of the domain controller, and a maintenance worker can conveniently acquire the fault data stored in the local memory to perform fault analysis.
Taking the function that the domain controller is configured to realize face recognition as an example, the domain controller collects communication bus data such as image and video shot by the camera in real time and caches the data for a preset time length. Meanwhile, a fault diagnosis module is arranged in the domain controller to detect whether the face recognition function of the domain controller normally operates. When the face recognition function is in fault due to the fact that a camera of a vehicle is in abnormal function or the fact that circuit logic in the domain controller is abnormal, namely the domain controller diagnoses that the domain controller is in fault, the communication bus data cached at present are stored to a local memory as fault data. The maintenance personnel can perform fault analysis by acquiring fault data stored in the local memory, for example, the reason that the face recognition function is abnormal is analyzed to be that a camera of the vehicle is in fault, or an internal circuit of the domain controller is in fault.
It can be understood that the above scenario is only an example, and in practical applications, the domain controller may perform corresponding data acquisition and fault diagnosis according to other pre-configured functional requirements, which do not affect the beneficial effects obtained by the present invention.
It should be noted that the communication bus data is communication data generated by interconnection of system modules between and inside each domain controller, and may be CAN bus data or ethernet data.
It should be noted that the preset time period may be set according to an actual situation, for example, the preset time period is set to 30s, and may also be adjusted according to different functional requirements of the domain controller and an operation situation of the vehicle, which is not specifically limited herein.
It should be noted that the local memory refers to a nonvolatile memory, such as a flash memory, in the domain controller, so as to implement permanent storage of the failure data.
By adopting the technical means of the embodiment of the invention, the fault data of the domain controller is stored by utilizing the strong storage capacity of the domain controller, the communication data before and after the fault occurs can be effectively stored, the data source and the data acquisition time span are wider, the problem that the communication data in a period of time before the fault occurs is difficult to be completely stored in the prior art is solved, the comprehensiveness and the accuracy of recording the fault data are improved, maintenance personnel are effectively assisted to analyze and process the fault, and the reason for generating the fault is timely checked.
As a preferred embodiment, the domain controller includes a microcontroller and a microprocessor; the communication bus data includes control data collected by the microcontroller and also includes analysis data collected by the microprocessor.
In order to meet the requirement of the domain controller for realizing related functions, the domain controller is provided with a Micro Controller Unit (MCU) and a Micro Processing Unit (MPU) so as to acquire and process different data. The microcontroller collects control data in the communication bus data of the vehicle in real time according to the functional requirements of the microcontroller; the microcontroller collects analysis data in the communication bus data of the vehicle in real time according to the functional requirements of the microcontroller.
Then, step S12 in this embodiment of the present invention specifically includes:
s121, the microprocessor receives the control data sent by the microcontroller and caches the control data for a preset time length;
and S122, the microprocessor caches the acquired analysis data for a preset time.
In the embodiment of the invention, a microcontroller and a microprocessor are arranged in the domain controller to realize corresponding automobile functions, and the microprocessor receives control data acquired by the microcontroller for caching and caches analysis data acquired by the microprocessor by utilizing sufficient storage space of the microprocessor.
Furthermore, in order to facilitate the detection of the operation condition of the domain controller, the microcontroller and the microprocessor diagnose the fault of the domain controller in real time, and judge whether the domain controller has the fault, so that the storage of fault data is further completed.
Then, step S14 in this embodiment of the present invention specifically includes:
s141, when the microcontroller diagnoses that the microcontroller has a fault, generating a first fault code, and sending the first fault code to the microprocessor; and when receiving the first fault code, the microprocessor stores the currently cached control data as fault data in a local memory.
S142, generating a second fault code when the microprocessor diagnoses that the microprocessor has a fault; and after the microprocessor generates the second fault code, storing the current cached analysis data as fault data in a local memory.
In the embodiment of the invention, the microcontroller and the microprocessor respectively carry out fault diagnosis on the microcontroller and the microprocessor, and when any one of the microcontroller and the microprocessor has a fault, a corresponding fault code is generated to trigger the microprocessor to store corresponding fault data into a local nonvolatile memory, such as a flash memory. The fault data are stored by utilizing the powerful storage space of the microprocessor, the problem that the data volume stored by using the RAM and the ROM with fixed lengths in the traditional vehicle controller is limited is effectively solved, and the large data volume of the Ethernet architecture can be stored.
In one embodiment, an automatic driving area controller is taken as an example, in a normal operation mode, a microprocessor in the automatic driving area controller acquires video, images and distance signals from nodes such as a camera and a radar in real time, and a microcontroller acquires finished automobile data from other nodes in real time and sends the finished automobile data to the microprocessor. And the microprocessor caches the received data signals for a preset time length. Meanwhile, the microprocessor and the microcontroller carry out fault diagnosis on themselves in real time, when any end has a fault, for example, the microprocessor cannot analyze and process the acquired video, image and distance signals, the microprocessor generates a corresponding fault code to trigger the microprocessor to store the currently cached video, image and distance signals into a local memory, so that fault data in the local memory can be conveniently read subsequently, and fault analysis and diagnosis are carried out.
In another embodiment, taking a body area controller as an example, the microcontroller in the body area controller is used for implementing a control function of a conventional body part, such as controlling the opening or closing of a vehicle door, and the microprocessor is used for implementing the recognition of whether the vehicle is an owner through a human face recognition algorithm. And under a normal operation mode, the microcontroller acquires data of the vehicle body part controller or the sensor in real time and sends the data to the microprocessor. The microprocessor collects image data shot by a camera outside the vehicle door in real time and caches the received data signals for preset time. And meanwhile, the microcontroller and the microprocessor carry out fault diagnosis on the microprocessor in real time, and when the face recognition function of the microprocessor breaks down, the microprocessor generates a corresponding fault code to trigger the microprocessor to store the currently cached image data into a local memory. And when the door opening function of the microcontroller fails due to the failure of the face recognition function, namely the door cannot be automatically unlocked, the microcontroller also generates a corresponding fault code to trigger the microprocessor to store the currently cached vehicle body control data into the local memory so as to facilitate subsequent reading of fault data in the local memory for fault analysis and diagnosis.
It can be understood that the specific domain controller and the function implementation thereof related in the foregoing scenario are only examples, and in practical applications, domain controllers with different functions may be set according to actual requirements, and the foregoing fault data processing method is executed, which does not affect the beneficial effects obtained by the present invention.
Fig. 2 is a schematic flow chart illustrating steps of another fault data processing method according to a second embodiment of the present invention. The fault data processing method of the second embodiment of the invention includes steps S21 to S25:
and S21, collecting the communication bus data of the vehicle in real time.
And S22, caching the acquired communication bus data for a preset time.
And S23, performing fault diagnosis on the self-body in real time.
And S24, when the self-diagnosis is failed, storing the currently cached communication bus data into a local memory as failure data.
And S25, when a data playback request is received, performing data playback on the fault data in the local memory.
In the embodiment of the present invention, in order to facilitate analysis and processing of the fault data, the domain controller is further configured to receive a data playback request, and perform data playback on the fault data stored in the local memory when receiving the data playback request.
Specifically, the fault diagnosis engineer may transmit a data playback request to the domain controller according to a requirement of fault diagnosis, and perform diagnosis analysis according to fault data played back by the domain controller. Or, a data playback trigger may be externally connected to the domain controller, and a data playback request may be sent to the domain controller through the data playback trigger to trigger the domain controller to playback the fault data, without affecting the beneficial effects obtained by the present invention.
By adopting the technical means of the embodiment of the invention, the domain controller can carry out data playback on the stored fault data and carry out field restoration on the fault scene, so that the fault scene is visually displayed to a fault diagnosis engineer, the efficiency and the objectivity of fault diagnosis analysis are improved, the problem that the traditional vehicle controller does not have the scene playback function is solved, and the fault diagnosis result is effectively prevented from being incomplete and accurate due to the fact that the fault diagnosis engineer analyzes and judges the fault condition by means of imagination and experience.
As a preferred implementation manner, in order to facilitate playback of a fault scenario by using the fault data, step S5 in this embodiment of the present invention specifically includes:
s51, when the microprocessor receives the data playback request, reading the control data and the analysis data in the local memory;
and S52, the microprocessor performs data playback on the read analysis data and sends the read control data to the microcontroller so that the microcontroller performs data playback on the control data.
In an embodiment of the invention, the microprocessor is configured to perform the receiving of a data playback request. And when the data playback request is received, performing playback of control data in the microcontroller, performing playback of analysis data in the microprocessor, and completely restoring the operation scenes of the microcontroller and/or the microprocessor before and after the fault occurs.
Taking the vehicle body domain controller in the above embodiment as an example, the diagnostic engineer may transmit a data playback request to the microprocessor through a udis service based on the DOIP, so as to trigger the microprocessor to read image data and vehicle body control data in the local memory, playback the read image data, and send the read vehicle body control data to the microcontroller for playback, thereby completely and comprehensively restoring an operation scene before and after a fault occurs, and facilitating the diagnostic engineer to perform fault diagnosis and analysis.
In order to solve the same technical problem, an embodiment of the present invention further provides a domain controller. Fig. 3 is a schematic structural diagram of a domain controller according to a third embodiment of the present invention. The domain controller 30 provided by the third embodiment of the present invention includes a data processing module 31, a fault diagnosis module 32, and a data cache module 33;
the data processing module 31 is used for acquiring communication bus data of the vehicle in real time;
the fault diagnosis module 32 is configured to perform fault diagnosis on the domain controller 30 in real time;
the data caching module 33 is configured to cache the acquired communication bus data for a preset duration; and when the fault diagnosis module 32 diagnoses that the domain controller has a fault, storing the currently cached communication bus data as fault data in a local memory.
In the embodiment of the invention, the domain controller is suitable for all automobile electrical architectures taking the domain controller as a main node, and can be an automatic driving domain controller, an automobile body electronic domain controller, an auxiliary driving domain controller and the like.
In the actual operation process, according to the functional requirements of the domain controller, the data processing module 31 acquires the communication bus data of the vehicle in real time and sends the data to the data cache module 33. In a normal operation mode, the data caching module 33 caches the collected communication bus data for a preset time duration, and when the cached communication bus data exceeds the preset time duration, the new communication bus data updates the original data in a covering manner, so that the domain controller is ensured to always store the communication bus data with the preset time duration before the current time. Meanwhile, the fault diagnosis module 32 detects the operation condition of the domain controller 30 in real time, and determines whether a fault occurs. When any fault is diagnosed, a fault warning is sent out, so that the data caching module 33 stores the currently cached communication bus data as fault data in a local memory, and thus the communication bus data in a certain time before the fault occurs and the communication bus data after the fault occurs are stored in the local memory of the domain controller, which is convenient for maintenance personnel to obtain the fault data stored in the local memory for fault analysis.
It should be noted that the communication bus data is communication data generated by interconnection of system modules between and inside each domain controller, and may be CAN bus data, ethernet data, or the like.
It should be noted that the preset time period may be set according to an actual situation, for example, the preset time period is set to 30s, and may also be adjusted according to different functional requirements of the domain controller and an operation situation of the vehicle, which is not specifically limited herein.
It should be noted that the local memory refers to a nonvolatile memory, such as a flash memory, in the domain controller, so as to implement permanent storage of the failure data.
By adopting the technical means of the embodiment of the invention, the fault data of the domain controller is stored by utilizing the strong storage capacity of the domain controller, the communication data before and after the fault occurs can be effectively stored, the data source and the data acquisition time span are wider, the problem that the communication data in a period of time before the fault occurs is difficult to be completely stored in the prior art is solved, the comprehensiveness and the accuracy of recording the fault data are improved, maintenance personnel are effectively assisted to analyze and process the fault, and the reason for generating the fault is timely checked.
As a preferred implementation manner, refer to fig. 4, which is a schematic structural diagram of another domain controller provided in the fourth embodiment of the present invention. On the basis of the domain controller of the third embodiment, the domain controller 40 of the fourth embodiment of the present invention includes a data processing module 41, a fault diagnosis module 42, a data caching module 43, and a data playback module 44.
The working principle and the beneficial effect of the data processing module 41, the fault diagnosis module 42 and the data cache module 43 are the same as those of the data processing module 31, the fault diagnosis module 32 and the data cache module 33 described in the third embodiment, which are not described herein again.
The data playback module 44 is configured to send the fault data in the local memory to the data processing module 41 when a data playback request is received, so that the data processing module 41 performs data playback on the fault data.
Specifically, the fault diagnosis engineer may transmit a data playback request to the data playback module 44 according to the requirement of fault diagnosis, so that the data playback module 44 reads fault data in the local memory and sends the fault data to the data processing module 41, so as to perform diagnosis analysis according to the fault data played back by the data processing module 41. Or, a data playback trigger may be externally connected to the domain controller, and a data playback request is sent to the data playback module 44 through the data playback trigger to trigger the data playback module 44 to read the fault data and send the fault data to the data processing module 41, so that the playback of the fault data is realized, without affecting the beneficial effects obtained by the present invention.
By adopting the technical means of the embodiment of the invention, the domain controller can carry out data playback on the stored fault data and carry out field restoration on the fault scene, so that the fault scene is visually displayed to a fault diagnosis engineer, the efficiency and the objectivity of fault diagnosis analysis are improved, the problem that the traditional vehicle controller does not have the scene playback function is solved, and the fault diagnosis result is effectively prevented from being incomplete and accurate due to the fact that the fault diagnosis engineer analyzes and judges the fault condition by means of imagination and experience.
As a preferred implementation manner, refer to fig. 5, which is a schematic structural diagram of a preferred domain controller provided in the fifth embodiment of the present invention. On the basis of the fourth embodiment, the domain controller 50 provided in the fifth embodiment of the present invention includes a microcontroller 51 and a microprocessor 52. The data processing module comprises a first data processing unit 511 and a second data processing unit 521, wherein the first data processing unit 511 is arranged in the microcontroller 51, and the second data processing unit 521 is arranged in the microprocessor 52. The data buffer module 523 is disposed in the microprocessor 52.
Specifically, the first data processing unit 511 is configured to collect control data of the vehicle in real time; wherein the communication bus data comprises the control data. The second data processing unit 521 is used for acquiring analysis data of the vehicle in real time; wherein the communication bus data further comprises the analysis data.
The data caching module 523 is specifically configured to receive the control data sent by the first data processing module 511, and cache the control data for a preset duration; and receiving the analysis data sent by the second data processing unit 521, and buffering the analysis data for a preset duration.
In this embodiment of the present invention, the data cache module 523 may be a cache memory in the microprocessor 52. The domain controller is internally provided with a microcontroller and a microprocessor to realize corresponding automobile functions, and utilizes the sufficient storage space of the microprocessor to receive control data acquired by the microcontroller for caching and to cache analysis data acquired by the microprocessor.
Furthermore, in order to facilitate the detection of the operation condition of the domain controller, the microcontroller and the microprocessor diagnose the fault of the domain controller in real time, and judge whether the domain controller has the fault, so that the storage of fault data is further completed.
Specifically, the fault diagnosis module includes a first fault diagnosis unit 512 and a second fault diagnosis unit 522. The first fault diagnosis unit 512 is arranged in the microcontroller 51; the second fault diagnosis module 522 is provided in the microprocessor 52.
The first fault diagnosis unit 512 is configured to perform fault diagnosis on the microcontroller 51 in real time; when the microcontroller 51 is diagnosed to have a fault, a first fault code is generated, and the first fault code is sent to the data cache module 523; when receiving the first fault code, the data caching module 523 stores the currently cached control data as fault data in a local memory, for example, a flash memory of the microprocessor 51.
The second fault diagnosis unit 522 is configured to perform fault diagnosis on the microprocessor 52 in real time; when the microprocessor 52 is diagnosed to have a fault, a second fault code is generated, and the second fault code is sent to the data cache module 523; when receiving the second fault code, the data caching module 523 stores the currently cached analysis data as fault data in a local memory, for example, a flash memory of the microprocessor 51.
In the embodiment of the invention, the microcontroller and the microprocessor respectively carry out fault diagnosis on the microcontroller and the microprocessor, and when any one of the microcontroller and the microprocessor has a fault, a corresponding fault code is generated to trigger the microprocessor to store corresponding fault data. The fault data are stored by utilizing the powerful storage space of the microprocessor, the problem that the data volume stored by using the RAM and the ROM with fixed lengths in the traditional vehicle controller is limited is effectively solved, and the large data volume of the Ethernet architecture can be stored.
In a preferred embodiment, the domain controller 50 further includes a data playback module 524, and the data playback module 524 is disposed in the microprocessor 52.
The data playback module 524 is specifically configured to, when the data playback request is received, read the control data and the analysis data in the local memory; and transmitting the read control data to the first data processing unit 511 to cause the first data processing unit 511 to play back the control data, and transmitting the read analysis data to the second data processing unit 521 to cause the second data processing unit 521 to play back the analysis data.
In an embodiment of the present invention, the data playback module 524 is configured in the microprocessor 52 to receive a data playback request. When the data playback request is received, the playback of the control data is performed in the microcontroller 51, the playback of the analysis data is performed in the microprocessor 52, and the operation scenes of the microcontroller and/or the microprocessor before and after the occurrence of the fault are completely and comprehensively restored.
In an embodiment, taking an automatic driving area controller as an example, in a normal operation mode, the second data processing unit 521 of the microprocessor 52 in the automatic driving area controller collects video, images and distance signals from a camera, a radar and other nodes in real time, and sends the signals to the data caching module 523 through an IPC service. The first data processing unit 511 of the microcontroller 51 collects the entire vehicle data from other nodes in real time, and sends the entire vehicle data to the data cache module 523 of the microprocessor through the SOMEIP service. The data caching module 523 caches the received data signal for a preset duration. Meanwhile, the first fault diagnosis unit 512 performs fault diagnosis on the microcontroller 51 in real time, and the second fault diagnosis unit 522 performs fault diagnosis on the microprocessor 52 in real time. When a fault is detected, for example, the microprocessor 52 cannot analyze and process the acquired video, image and distance signals, the second fault diagnosis unit 522 generates a corresponding fault code, and sends the fault code to the data cache module 523 through the IPC service, so as to trigger the data cache module 523 to store the currently cached video, image and distance signals in the local memory. The diagnosis engineer may transmit a data playback request to the data playback module 524 of the microprocessor 52 through a DOIP-based UDS service, so as to trigger the data playback module 524 to read fault data such as videos, images, distance signals and the like in a local memory through an AP API interface, and send the fault data to the second data processing unit 521 for playback through an IPC API, thereby completely and comprehensively restoring an operation scene before and after a fault occurs, and facilitating the diagnosis engineer to perform fault diagnosis and analysis.
In another embodiment, taking a body area controller as an example, the microcontroller 51 in the body area controller is used to implement a control function of a conventional body part, such as controlling the opening or closing of a vehicle door, and the microprocessor 52 is used to implement recognition of whether the vehicle is an owner through a human face recognition algorithm. In the normal operation mode, the first data processing unit 511 in the microcontroller 51 collects data of the vehicle body component controller or the sensor in real time, and sends the data to the data cache module 523 in the microprocessor 52. The second data processing unit 521 of the microprocessor 52 collects image data shot by a camera outside the door in real time and sends the image data to the data caching module 523, and the data caching module 523 caches the received data signal for a preset time duration. Meanwhile, the first fault diagnosis unit 512 performs fault diagnosis on the microcontroller 51 in real time, and the second fault diagnosis unit 522 performs fault diagnosis on the microprocessor 52 in real time. When the face recognition function of the microprocessor 52 fails, the second fault diagnosis unit 522 generates a corresponding fault code, and sends the fault code to the data cache module 523 through the IPC service, so as to trigger the data cache module 523 to store the currently cached image data in the local memory. When the door opening function of the microcontroller 51 fails due to the failure of the face recognition function, that is, the door cannot be automatically unlocked, the first fault diagnosis unit 512 also generates a corresponding first fault code, and sends the corresponding first fault code to the data cache module 523 through the SOMEIP service, so as to trigger the data cache module 523 to store the currently cached vehicle body control data in the local memory. The diagnosis engineer may transmit a data playback request to the data playback module 524 of the microprocessor 52 through a DOIP-based UDS service, so as to trigger the data playback module 524 to read image data and vehicle body control data in a local memory through an AP API interface, send the read image data to the second data processing unit 521 through an IPC API for playback, and send the read vehicle body control data in the local memory to the first data processing unit 511 through an AP SOMEIP for playback, thereby completely and comprehensively restoring an operation scene before and after a fault occurs, and facilitating the diagnosis engineer to perform fault diagnosis and analysis.
It can be understood that the specific domain controller and the function implementation thereof related in the foregoing scenario are only examples, and in practical applications, domain controllers with different functions may be set according to actual requirements, without affecting the beneficial effects obtained by the present invention.
In order to solve the same technical problem, a sixth embodiment of the present invention further provides an automobile including the domain controller according to any one of the third to fifth embodiments.
It should be noted that the automobile provided in the embodiment of the present invention includes all the structural components of the domain controller provided in any one of the three to five embodiments, and the working principles and beneficial effects of the two components are in one-to-one correspondence, so that detailed description is omitted.
According to the automobile provided by the sixth embodiment of the invention, the communication bus data of the automobile is collected in real time through the domain controller, and the collected communication bus data is cached for the preset duration; and carrying out fault diagnosis on the self-body in real time, and storing the currently cached communication bus data serving as fault data into a local memory when the self-body is diagnosed to have a fault. The domain controller has the advantages that the strong storage capacity of the domain controller is utilized to store the fault data of the domain controller, the communication data before and after the fault occurs can be effectively stored, the domain controller has wider data sources and data acquisition time range, the problem that the communication data before the fault occurs is difficult to be completely stored in the prior art is solved, the comprehensiveness and accuracy of recording the fault data are improved, maintenance personnel are effectively assisted to analyze and process the fault, and the reason for generating the fault is timely checked.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (15)
1. A fault data processing method, performed by a domain controller, the fault data processing method comprising:
collecting communication bus data of a vehicle in real time;
caching the collected communication bus data for a preset time;
carrying out fault diagnosis on the self-body in real time;
and when the self fault is diagnosed, storing the currently cached communication bus data as fault data into a local memory.
2. The fault data processing method according to claim 1, wherein the fault data processing method further comprises:
and when a data playback request is received, performing data playback on the fault data in the local memory.
3. The fault data processing method according to claim 2, wherein the domain controller includes a microcontroller and a microprocessor; the communication bus data comprises control data collected by the microcontroller;
the caching of preset duration of the communication bus data to be collected specifically includes:
and the microprocessor receives the control data sent by the microcontroller and caches the control data for a preset time length.
4. The fault data processing method according to claim 3, wherein the communication bus data further includes analysis data collected by the microprocessor;
the caching of preset duration is carried out on the collected communication bus data, and the method specifically further comprises the following steps:
and the microprocessor caches the acquired analysis data for a preset time.
5. The method according to claim 4, wherein when a failure is diagnosed, the step of storing the currently cached communication bus data as the failure data in a local memory includes:
when the microcontroller diagnoses that the self has a fault, generating a first fault code and sending the first fault code to the microprocessor;
and when receiving the first fault code, the microprocessor stores the currently cached control data as fault data in a local memory.
6. The fault data processing method according to claim 5, wherein the fault data processing method further comprises:
when the microprocessor diagnoses that the self is in fault, generating a second fault code;
and after the microprocessor generates the second fault code, storing the current cached analysis data as fault data in a local memory.
7. The method for processing fault data according to claim 6, wherein the data replaying the fault data in the local memory when receiving a data replaying request specifically includes:
when the microprocessor receives the data playback request, reading the control data and the analysis data in the local memory;
and the microprocessor plays back the read analysis data and sends the read control data to the microcontroller so that the microcontroller plays back the control data.
8. A domain controller, comprising:
the data processing module is used for acquiring communication bus data of the vehicle in real time;
the fault diagnosis module is used for carrying out fault diagnosis on the domain controller in real time;
the data caching module is used for caching the acquired communication bus data for a preset time; and when the fault diagnosis module diagnoses that the domain controller has a fault, storing the currently cached communication bus data as fault data in a local memory.
9. The domain controller of claim 8, wherein the domain controller further comprises:
and the data playback module is used for sending the fault data in the local memory to the data processing module when a data playback request is received, so that the data processing module can perform data playback on the fault data.
10. The domain controller of claim 9, wherein the domain controller comprises a microcontroller and a microprocessor;
the data processing module comprises a first data processing unit and is used for acquiring control data of the vehicle in real time; wherein the communication bus data comprises the control data; the first data processing unit is arranged in the microcontroller;
the data caching module is specifically configured to receive the control data sent by the first data processing module, and cache the control data for a preset duration; the data cache module is arranged in the microprocessor.
11. The domain controller of claim 10, wherein the data processing module includes a second data processing unit for collecting analysis data of the vehicle in real time; wherein the communication bus data further comprises the analysis data; the second data processing unit is arranged in the microprocessor;
the data caching module is specifically further configured to receive the analysis data sent by the second data processing unit, and cache the analysis data for a preset duration.
12. The domain controller of claim 11, wherein the fault diagnosis module includes a first fault diagnosis unit for performing fault diagnosis on the microcontroller in real time; when the microcontroller is diagnosed to have a fault, generating a first fault code, and sending the first fault code to the data cache module; the first fault diagnosis unit is arranged in the microcontroller;
the data caching module is specifically configured to store the currently cached control data as fault data in a local memory when the first fault code is received.
13. The domain controller of claim 12, wherein the fault diagnosis module further comprises a second fault diagnosis unit for performing fault diagnosis on the microprocessor in real time; when the microprocessor is diagnosed to have a fault, generating a second fault code and sending the second fault code to the data cache module; the second fault diagnosis module is arranged in the microprocessor;
the data caching module is specifically configured to store the currently cached analysis data as fault data in a local memory when the second fault code is received.
14. The domain controller of claim 13, wherein the data playback module is specifically configured to, upon receiving the data playback request, read the control data and the analysis data in the local memory;
and sending the read control data to the first data processing unit to cause the first data processing unit to play back the control data, and sending the read analysis data to the second data processing unit to cause the second data processing unit to play back the analysis data; wherein, the data playback module is arranged in the microprocessor.
15. A car, characterized in that it comprises a domain controller according to any of claims 8-14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010629938.5A CN111781917A (en) | 2020-07-03 | 2020-07-03 | Fault data processing method, domain controller and automobile |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010629938.5A CN111781917A (en) | 2020-07-03 | 2020-07-03 | Fault data processing method, domain controller and automobile |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111781917A true CN111781917A (en) | 2020-10-16 |
Family
ID=72759234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010629938.5A Pending CN111781917A (en) | 2020-07-03 | 2020-07-03 | Fault data processing method, domain controller and automobile |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111781917A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112859814A (en) * | 2021-01-19 | 2021-05-28 | 英博超算(南京)科技有限公司 | DoIP diagnostic system of heterogeneous platform |
CN113176771A (en) * | 2021-04-16 | 2021-07-27 | 重庆长安新能源汽车科技有限公司 | Method for monitoring running state of vehicle domain controller |
CN113778946A (en) * | 2021-09-15 | 2021-12-10 | 上海威迈斯新能源有限公司 | Fault snapshot system |
CN114489500A (en) * | 2022-01-18 | 2022-05-13 | 上汽通用五菱汽车股份有限公司 | Fault data processing method, system, equipment and computer readable storage medium |
CN114978875A (en) * | 2021-02-23 | 2022-08-30 | 广州汽车集团股份有限公司 | Vehicle-mounted node management method and device and storage medium |
CN116430835A (en) * | 2023-06-13 | 2023-07-14 | 力高(山东)新能源技术股份有限公司 | Fault storage and analysis method of Cortex-M microcontroller |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202939460U (en) * | 2012-09-03 | 2013-05-15 | 同济汽车设计研究院有限公司 | Vehicle-mounted data acquisition terminal and vehicle information acquisition system |
CN103529761A (en) * | 2013-01-18 | 2014-01-22 | 武汉英泰斯特电子技术有限公司 | New energy vehicle fault data acquisition method and device |
CN109995628A (en) * | 2018-01-03 | 2019-07-09 | 联合汽车电子有限公司 | Automobile-used domain controller |
CN110223417A (en) * | 2019-06-13 | 2019-09-10 | 北京牛电信息技术有限责任公司 | Electric vehicle information recording method, device, handheld device and storage medium |
-
2020
- 2020-07-03 CN CN202010629938.5A patent/CN111781917A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202939460U (en) * | 2012-09-03 | 2013-05-15 | 同济汽车设计研究院有限公司 | Vehicle-mounted data acquisition terminal and vehicle information acquisition system |
CN103529761A (en) * | 2013-01-18 | 2014-01-22 | 武汉英泰斯特电子技术有限公司 | New energy vehicle fault data acquisition method and device |
CN109995628A (en) * | 2018-01-03 | 2019-07-09 | 联合汽车电子有限公司 | Automobile-used domain controller |
CN110223417A (en) * | 2019-06-13 | 2019-09-10 | 北京牛电信息技术有限责任公司 | Electric vehicle information recording method, device, handheld device and storage medium |
Non-Patent Citations (1)
Title |
---|
舟杨: "《最新宝马汽车电控系统维修精华与经典实例》", 31 December 2016, 辽宁科学技术出版社 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112859814A (en) * | 2021-01-19 | 2021-05-28 | 英博超算(南京)科技有限公司 | DoIP diagnostic system of heterogeneous platform |
CN114978875A (en) * | 2021-02-23 | 2022-08-30 | 广州汽车集团股份有限公司 | Vehicle-mounted node management method and device and storage medium |
CN113176771A (en) * | 2021-04-16 | 2021-07-27 | 重庆长安新能源汽车科技有限公司 | Method for monitoring running state of vehicle domain controller |
CN113778946A (en) * | 2021-09-15 | 2021-12-10 | 上海威迈斯新能源有限公司 | Fault snapshot system |
CN114489500A (en) * | 2022-01-18 | 2022-05-13 | 上汽通用五菱汽车股份有限公司 | Fault data processing method, system, equipment and computer readable storage medium |
CN116430835A (en) * | 2023-06-13 | 2023-07-14 | 力高(山东)新能源技术股份有限公司 | Fault storage and analysis method of Cortex-M microcontroller |
CN116430835B (en) * | 2023-06-13 | 2023-09-15 | 力高(山东)新能源技术股份有限公司 | Fault storage and analysis method of Cortex-M microcontroller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111781917A (en) | Fault data processing method, domain controller and automobile | |
CN110300285B (en) | Panoramic video acquisition method and system based on unmanned platform | |
US10049282B2 (en) | Train interior monitoring method and train interior monitoring system | |
US8126606B2 (en) | Automobile detection and control gateway interface and method thereof | |
CN103219030B (en) | Method for synchronous acquisition and playback of vehicle-mounted video and bus data | |
CN101777199B (en) | Automobile traveling recording device based on video and recording method thereof | |
CN111966518B (en) | Fault data recording method, system, automobile and storage medium | |
KR20100073893A (en) | Black box for a car, method and system for manegenet traffic accident using the same | |
CN112068536A (en) | Universal self-adaptive vehicle remote diagnosis method, device and system | |
CN114839949A (en) | Vehicle fault online diagnosis method and system | |
CN111813590A (en) | Method and device for diagnosing abnormal reset of main control module and main control module | |
CN106527118A (en) | Railway vehicle electric control loop monitoring device and method based on redundant structure | |
CN112147980B (en) | Vehicle controller testing method and device and testing equipment | |
CN110797047A (en) | Real-time monitoring device, system and method for vehicle running abnormal sound | |
US20040169745A1 (en) | Method and device for recognizing or displaying image defects in image recording systems | |
CN113984403A (en) | Autobox end real-time parking test bed and parking test method | |
CN114328622A (en) | Data anomaly capture real-time processing method and system for large data flow type calculation | |
CN108399757A (en) | A kind of battery truck security monitoring tamper resistant method | |
CN116909255A (en) | Fault diagnosis system and method for intelligent driving system and vehicle | |
CN115457677B (en) | Vehicle data acquisition method and system | |
CN116824737A (en) | Multi-sensor fusion monitoring system and method in sentry mode | |
CN115273271B (en) | System and method for collecting vehicle data based on vehicle entertainment host | |
KR102448790B1 (en) | Failure diagnosis and speed response camera automatic control device | |
CN114148312B (en) | Single signal brake switch state diagnosis method and system | |
CN215526451U (en) | Vehicle-mounted camera hardware diagnosis device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201016 |