CN108237994B - Log information processing method, log information processing unit and Micro Control Unit (MCU) - Google Patents

Log information processing method, log information processing unit and Micro Control Unit (MCU) Download PDF

Info

Publication number
CN108237994B
CN108237994B CN201810135399.2A CN201810135399A CN108237994B CN 108237994 B CN108237994 B CN 108237994B CN 201810135399 A CN201810135399 A CN 201810135399A CN 108237994 B CN108237994 B CN 108237994B
Authority
CN
China
Prior art keywords
log information
information
log
control unit
mcu
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
CN201810135399.2A
Other languages
Chinese (zh)
Other versions
CN108237994A (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.)
Beijing Rockwell Technology Co Ltd
Original Assignee
Beijing CHJ Automotive Information Technology 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 Beijing CHJ Automotive Information Technology Co Ltd filed Critical Beijing CHJ Automotive Information Technology Co Ltd
Priority to CN201810135399.2A priority Critical patent/CN108237994B/en
Publication of CN108237994A publication Critical patent/CN108237994A/en
Application granted granted Critical
Publication of CN108237994B publication Critical patent/CN108237994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • B60R16/0231Circuits relating to the driving or the functioning of the vehicle
    • B60R16/0232Circuits relating to the driving or the functioning of the vehicle for measuring vehicle parameters and indicating critical, abnormal or dangerous conditions
    • B60R16/0234Circuits relating to the driving or the functioning of the vehicle for measuring vehicle parameters and indicating critical, abnormal or dangerous conditions related to maintenance or repairing of vehicles

Abstract

The embodiment of the disclosure provides a log information processing method, a log information processing unit and a Micro Control Unit (MCU). The method comprises the following steps: acquiring log information at an MCU of a vehicle; transmitting the log information to a target control unit of the vehicle; wherein the target control unit comprises a central processing unit or a system on chip SOC. In the embodiment of the disclosure, by storing the log information of the MCU offline by the target control unit, under the condition that the MCU has accidental problems, maintenance personnel can analyze and position the defects and the abnormalities of the vehicle according to the log information stored by the target control unit.

Description

Log information processing method, log information processing unit and Micro Control Unit (MCU)
Technical Field
The embodiment of the disclosure relates to the technical field of vehicle engineering, in particular to a log information processing method, a log information processing unit and an MCU.
Background
Currently, a Micro Controller Unit (MCU) provided in a vehicle (e.g., an electric vehicle) is used to take charge of processing operations that have high requirements for real-time performance and stability. As will be appreciated by those skilled in the art, the MCU is capable of generating log information during operation, which may be used to assist maintenance personnel in analyzing and locating defects and anomalies that occur during operation of the vehicle.
However, in general, the MCU has a small real-time operating system and a very small non-volatile storage space, or the MCU does not have an operating system at all, and thus the MCU does not have a capability of storing log information although it can generate log information, so that a serviceman cannot analyze and locate defects and abnormalities occurring in the vehicle according to the log information of the MCU in the case of an occasional problem occurring in the MCU.
Disclosure of Invention
In a first aspect, an embodiment of the present disclosure provides a log information processing method, where the method includes:
at the micro control unit MCU of the vehicle,
acquiring log information;
transmitting the log information to a target control unit of the vehicle; wherein the target control unit comprises a central processing unit or a system on chip SOC.
In some embodiments, after the obtaining the log information, the method further comprises:
acquiring vehicle system running state information related to the log information;
the sending the log information to a target control unit of the vehicle includes:
and transmitting the vehicle system running state information together with the log information to a target control unit of the vehicle.
In some embodiments, after the obtaining the log information, the method further comprises:
respectively carrying out encryption processing and digital signature processing on the log information to obtain the log information subjected to the encryption processing and the log information subjected to the digital signature processing;
the sending the log information to a target control unit of the vehicle includes:
transmitting the log information subjected to the encryption processing together with the log information subjected to the digital signature processing to a target control unit of the vehicle.
In some embodiments, the log information includes log information attributes including an information severity level and/or an information category.
In a second aspect, an embodiment of the present disclosure provides a log information processing method, including:
at the target control unit of the vehicle,
receiving log information sent by a Micro Control Unit (MCU) of the vehicle; wherein the target control unit comprises a central processing unit or a system on chip SOC;
and storing the received log information to a log file.
In some embodiments, the number of log files is at least two;
the storing the received log information to a log file includes:
storing the received log information to a corresponding log file according to the log information attribute of the received log information; the log information attributes comprise information severity levels and/or information categories, and log information with different log information attributes is stored in different log files.
In some embodiments, the receiving log information sent by a Micro Control Unit (MCU) of the vehicle includes:
receiving log information sent by an MCU of the vehicle and vehicle system running state information related to the log information;
the storing the received log information to a log file includes:
and storing the received log information and the vehicle system running state information into a log file.
In some embodiments, the log information received by the target control unit includes first data and second data, the first data is obtained by encrypting the log information obtained by the MCU, and the second data is obtained by performing digital signature processing on the log information obtained by the MCU;
after storing the received log information into the log file, the method further includes:
under the condition that a preset condition is met, decrypting first data in the stored log information to obtain corresponding log information;
performing signature verification processing according to the obtained log information and second data in the stored log information;
when the signature verification is successful, outputting the obtained log information;
and when the signature verification fails, deleting the obtained log information.
In some embodiments, the decrypting the first data in the stored log information if the preset condition is met includes:
when an acquisition instruction of the stored log information sent by the cloud server is received, decrypting first data in the stored log information;
the outputting the obtained log information comprises:
sending the obtained log information to a cloud server;
after obtaining the corresponding log information, the method further includes:
and when the signature verification fails, sending signature verification failure prompt information to the cloud server.
In a third aspect, an embodiment of the present disclosure provides a log information processing unit, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring log information at a Micro Control Unit (MCU) of a vehicle;
the sending module is used for sending the log information to a target control unit of the vehicle at a Micro Control Unit (MCU) of the vehicle; wherein the target control unit comprises a central processing unit or a system on chip SOC.
In a fourth aspect, an embodiment of the present disclosure provides a log information processing unit including:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving log information sent by a Micro Control Unit (MCU) of a vehicle at a target control unit of the vehicle; wherein the target control unit comprises a central processing unit or a system on chip SOC;
a storage module for storing the received log information to a log file at a target control unit of the vehicle.
In a fifth aspect, an embodiment of the present disclosure provides a MCU, including: a processor and a memory; the memory having stored therein computer instructions; the processor is coupled with the memory for executing computer instructions stored in the memory; the computer instructions are configured to perform the method provided by the first aspect.
In a sixth aspect, embodiments of the present disclosure provide a target control unit, including a central processing unit or a system on chip SOC; also includes a memory; the central processor or the SOC is coupled with the memory for executing computer instructions stored in the memory; the computer instructions are used for executing the method provided by the second aspect.
In a seventh aspect, an embodiment of the present disclosure provides a vehicle, including the MCU provided in the fifth aspect and the target control unit provided in the sixth aspect; the MCU is electrically connected with the target control unit.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments of the present disclosure will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, 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 first log information processing method provided by an embodiment of the present disclosure;
fig. 2 is a flowchart of a second log information processing method provided by an embodiment of the present disclosure;
fig. 3 is one of schematic structural diagrams of a first log information processing unit provided by an embodiment of the present disclosure;
fig. 4 is a second schematic structural diagram of a first log information processing unit according to an embodiment of the disclosure;
fig. 5 is a third schematic structural diagram of a first log information processing unit provided in an embodiment of the present disclosure;
fig. 6 is one of schematic structural diagrams of a second log information processing unit provided by an embodiment of the present disclosure;
fig. 7 is a second schematic structural diagram of a second log information processing unit provided in the embodiment of the present disclosure;
fig. 8 is a third schematic structural diagram of a second log information processing unit provided in the embodiment of the present disclosure;
FIG. 9 is a schematic structural diagram of a vehicle provided by an embodiment of the present disclosure;
fig. 10 is a flowchart of a third log information processing method provided by an embodiment of the present disclosure.
Detailed Description
Technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The embodiment of the disclosure provides a log information processing method, a log information processing unit, an MCU, a target control unit and a vehicle.
Referring to fig. 1, a flowchart of a log information processing method provided by an embodiment of the present disclosure is shown. As shown in fig. 1, on the MCU side of the vehicle, the method comprises the steps of:
step 101, obtaining log information.
The log information acquired by the MCU may include log state description information, generation time of the log state description information, and a module and a program position related to the log state description information. The log status description information may include power supply voltage status information, Random-Access Memory (RAM) occupancy information, status information of a switch in the vehicle, Controller Area Network (CAN) communication status information or Local Interconnect Network (LIN) communication status information, and the like. Specifically, the power supply voltage status information may be that the power supply voltage is too low, and the CAN communication status information may be a CAN communication loss fault of an Electronic Control Unit (ECU).
Step 102, sending the log information to a target control unit of the vehicle; the target control Unit includes a Central Processing Unit (CPU) or a System on a Chip (SOC).
Since the target control unit includes a CPU or an SOC, the target control unit may be responsible for handling User Interface (UI) interaction operations, and the MCU and the target control unit may perform information interaction through a Universal Asynchronous Receiver/transmitter (UART) or a high-speed synchronous serial Interface (SPI) or the like. Therefore, the MCU can successfully send the acquired log information to the target control unit through the UART or the SPI, and in addition, the MCU and the target control unit can also mutually synchronize the working state.
It should be noted that, in the case of acquiring log information, the MCU may transmit the acquired log information to the target control unit in real time. Of course, in the case of acquiring the log information, the MCU may also temporarily not send the acquired log information to the target control unit, but buffer the acquired log information first; when the log information to be cached for a certain time or the cached log information reaches a certain capacity (for example, 20M), the MCU sends all the cached log information to the target control unit.
It is understood that the target control unit (i.e. CPU or SOC) generally has linux, QNX, android or other Operating systems conforming to the Portable Operating System Interface (POSIX) standard. In this way, the target control unit has a more complex operating system, the nonvolatile storage space of the target control unit is larger, and the target control unit can store various system data and user data in the form of files, and thus, the target control unit has the capability of storing log information.
In view of this, in the embodiment of the present disclosure, a log file may be disposed in the nonvolatile storage space of the target control unit, and after receiving the log information sent by the MCU, the target control unit may store the received log information in the log file in the nonvolatile storage space, so as to store the received log information in a file form, thereby implementing offline storage of the log information of the MCU.
In the embodiment of the disclosure, the MCU of the vehicle may transmit the acquired log information to the target control unit of the vehicle, so that the target control unit of the vehicle may store the received log information in a log file. And further, the off-line storage of the log information of the MCU can be realized. Thus, even if the MCU has accidental problems, the maintenance personnel can analyze and locate the defects and the abnormalities of the vehicle according to the log information stored in the log file of the target control unit. Therefore, through the off-line storage of the log information of the MCU by the target control unit, the embodiment of the disclosure better solves the problem that maintenance personnel cannot analyze and position the defects and the abnormalities of the vehicle according to the log information of the MCU under the condition that the MCU has accidental problems.
In some embodiments, the log information includes log information attributes including an information severity level and/or an information category.
Assuming that the log information attribute only comprises an information severity grade, the information severity grade can be mainly divided into five grades of FATAL, ERROR, WARN, INFO and DEBUG; the description of each grade is specifically set forth in table 1 below.
Serial number Grade Description of the invention
1 FATAL Indicating that each serious error event will result in the exit of the application
2 ERROR Indicating that the error event occurred but did not affect the continued operation of the system.
3 WARN Indicating that a potential error condition may occur
4 INFO Indicating that the message emphasizes the running process of the application at a coarse level of granularity.
5 DEBUG Pointing out fine-grained information events is very helpful to debugging applications.
TABLE 1
In this case, five log files, log file 1, log file 2, log file 3, log file 4, and log file 5, may be provided in the nonvolatile storage space of the target control unit. Wherein, the file name of the log file 1 may include FATAL to represent that the log file 1 corresponds to the information severity level of FATAL; ERROR can be included in the file name of log file 2 to indicate that log file 2 corresponds to the information severity level of ERROR; WARN can be included in the file name of the log file 3 to represent that the log file 3 corresponds to the severity level of WARN information; the file name of the log file 4 may include INFO to indicate that the log file 4 corresponds to the information severity level of INFO; the log file 5 may include a DEBUG in the file name to indicate that the log file 5 corresponds to a level of severity of information such as DEBUG.
When receiving the log information sent by the MCU, the target control unit may store the received log information into a log file corresponding to the information severity level of the log information according to the information severity level of the received log information, so that log information with different information severity levels is stored in different log files. Specifically, if the information severity level of the received log information is ERROR, the target control unit may store the log information into the log file 2 whose file name includes ERROR; if the received log information has a information severity level of DEBUG, the target control unit may store the log information in the log file 5 having a file name including DEBUG.
Assuming that the log information attribute only includes the information category, the information category can be mainly divided into two categories, namely an operation category and a communication category. Generally speaking, the information category in the log information including the log description information as power supply voltage state information and RAM occupancy rate information is an operation category; the information type in the log information of which the included log description information is CAN communication state information or LIN communication state information is a communication type.
In this case, two log files, log file 6 and log file 7, respectively, may be provided in the nonvolatile storage space of the target control unit. The file name of the log file 6 may include an operation category, so as to represent that the log file 6 corresponds to the information category of the operation category; the file name of the log file 7 may include a communication category to indicate that the log file 7 corresponds to an information category of the communication category.
When receiving the log information sent by the MCU, the target control unit may store the received log information into a log file corresponding to the information type of the log information according to the information type of the received log information, so that log information of different information types is stored in different log files. Specifically, if the information type of the received log information is the communication type, the target control unit may store the log information in the log file 7 whose file name includes the communication type.
It should be noted that the file name of each log file may include other information such as creation date in addition to log information attributes such as information severity level and information category.
In the embodiment of the disclosure, the target control unit may store the received log information into a corresponding log file according to the log information attribute of the received log information, so that the log information with different log information attributes is stored in different log files, which may facilitate a maintenance worker to quickly search the log information with a specific log information attribute subsequently. For example, when the maintenance person finds that the total mileage displayed by the vehicle is reset to 0, since this is a serious fault, the maintenance person may send a search instruction to the vehicle to control the target control unit to search the log file 1 for log information in which the total mileage reset is zero. After the target control unit finds the log information, the target control unit can provide the log information to a maintenance person, so that the maintenance person can locate the reason for the situation by means of the log information.
It should be noted that each log file generally has a preset capacity size, and when the total amount of log information in the log file reaches the preset capacity size, the target control unit may close the folder and create a new folder to store the corresponding log information.
In some embodiments, after obtaining the log information, the method further comprises:
and acquiring the running state information of the vehicle system related to the log information.
Transmitting the log information to a target control unit of the vehicle, including:
and transmitting the running state information of the vehicle system together with the log information to a target control unit of the vehicle.
In the embodiment of the disclosure, the log information acquired by the MCU may include an information severity level, and the MCU may acquire the vehicle system operating state information related to the log information when the information severity level of the acquired log information belongs to a preset severity level. Specifically, the preset severity level may be FATAL.
In specific implementation, if the severity level of the information in the log information acquired by the MCU is false, because the description corresponding to false indicates that each serious error event will cause exit of the application program, it can be considered that the log information records a more serious error event, and the error event has a very large influence on normal operation of the vehicle, so the MCU can acquire the vehicle system operation state information related to the log information.
If the log state description information in the log information is a CAN communication loss fault of a certain ECU, and the information severity level in the log information is FATAL, the MCU CAN acquire the vehicle system running state information related to the CAN communication state. Specifically, the vehicle system operation state information acquired by the MCU may include at least one of power-on time information (e.g., time information of last power-on of the system), mileage information (e.g., total mileage information), driving speed information, gear information, and steering wheel angle information. Then, the MCU may transmit the acquired vehicle system operation state information together with the log information to a target control unit of the vehicle, and the target control unit may store the received log information and the vehicle system operation state information into a log file.
Therefore, under the condition that the MCU has accidental problems, the log file of the target control unit also stores the vehicle system running state information comprising at least one item of power-on time information, driving mileage information, driving speed information, gear information and steering wheel angle information besides the log information, and the information can further assist maintenance personnel to carry out defect and abnormity analysis, so that the effect of defect and abnormity analysis is further improved.
In some embodiments, after obtaining the log information, the method further comprises:
respectively carrying out encryption processing and digital signature processing on the log information to obtain encrypted log information and digitally signed log information;
transmitting the log information to a target control unit of the vehicle, including:
the encrypted log information is transmitted to a target control unit of the vehicle together with the digitally signed log information.
The Encryption algorithm used by the MCU for encrypting the acquired log information may be a fifth version of message digest algorithm (MD5), Advanced Encryption Standard (AES), RSA (an asymmetric Encryption algorithm), or the like.
In the embodiment of the disclosure, the MCU sends the encrypted log information and the digitally signed log information to the target control unit, that is, the MCU transmits the log information to the target control unit in a ciphertext form, so that the transmission security of the log information can be better ensured. In addition, the digitally signed log information received by the target control unit may be used for integrity checking of the log information at a later time.
In summary, in the embodiment of the disclosure, by offline storing the log information of the MCU by the target control unit, when the MCU has an occasional problem, the maintenance personnel can analyze and locate the defect and abnormality of the vehicle according to the log information stored by the target control unit.
Referring to fig. 2, a flowchart of a log information processing method provided by an embodiment of the present disclosure is shown. As shown in fig. 2, at a target control unit of a vehicle, the method comprises the steps of:
step 201, receiving log information sent by an MCU of a vehicle; wherein the target control unit comprises a CPU or an SOC;
step 202, storing the received log information to a log file.
In the embodiment of the disclosure, the target control unit of the vehicle may receive the log information sent by the MCU and store the log information as a log file, so as to implement offline storage of the log information of the MCU. Thus, even if the MCU has accidental problems, the maintenance personnel can analyze and locate the defects and the abnormalities of the vehicle according to the log information stored in the log file of the target control unit. Therefore, through the off-line storage of the log information of the MCU by the target control unit, the embodiment of the disclosure better solves the problem that maintenance personnel cannot analyze and position the defects and the abnormalities of the vehicle according to the log information of the MCU under the condition that the MCU has accidental problems.
In some embodiments, the number of log files is at least two;
storing the received log information to a log file, comprising:
storing the received log information to a corresponding log file according to the log information attribute of the received log information; the log information attributes comprise information severity levels and/or information categories, and log information with different log information attributes is stored in different log files.
In the embodiment of the disclosure, the target control unit stores the log information with different log information attributes in different log files, so that the maintenance personnel can conveniently and quickly search the log information with specific log information attributes in the follow-up process.
In some embodiments, receiving log information transmitted by the MCU of the vehicle includes:
receiving log information sent by an MCU of a vehicle and vehicle system running state information related to the log information;
storing the received log information to a log file, comprising:
and storing the received log information and the vehicle system running state information into a log file.
In the embodiment of the disclosure, the log file not only stores log information, but also stores vehicle system running state information related to the log information, and the vehicle system running state information can further assist maintenance personnel to perform defect and abnormality analysis, so that the effect of defect and abnormality analysis is further improved.
In some embodiments, the log information received by the target control unit includes first data and second data, the first data is obtained by the MCU encrypting the log information obtained by the target control unit, and the second data is obtained by the MCU digitally signing the log information obtained by the target control unit;
after storing the received log information to the log file, the method further comprises:
and under the condition that a preset condition is met, decrypting the first data in the stored log information to obtain corresponding log information.
The decryption algorithm used by the target control unit for decrypting the first data needs to have a correspondence with the encryption algorithm used by the MCU for obtaining the first data, so as to ensure the successful decryption of the first data.
Performing signature verification processing according to the obtained log information and second data in the stored log information;
when the signature verification is successful, outputting the obtained log information;
and when the signature verification fails, deleting the obtained log information.
In an embodiment of the present disclosure, after the target control unit performs decryption processing on the first data to obtain corresponding log information, the target control unit may perform digital signature processing on the obtained log information to obtain third data. Next, the target control unit may compare the obtained third data with both the second data in the stored log information.
If the two are the same through comparison, the target control unit can determine that the signature verification is successful, namely the integrity of the log information obtained through decryption passes, and at the moment, the target control unit can directly output the obtained log information. Under the condition that the MCU has accidental problems, maintenance personnel can analyze and position the defects and the abnormalities of the vehicle according to the log information output by the target control unit.
If the comparison result shows that the log information and the verification result are different, the target control unit can determine that the signature verification fails, namely the integrity of the log information obtained by decryption does not pass, and at the moment, the target control unit can directly delete the log information obtained by decryption so as to avoid the occupation of the log information on the storage space.
In some embodiments, in the case that a preset condition is satisfied, performing decryption processing on first data in the stored log information includes:
when an acquisition instruction of the stored log information sent by the cloud server is received, decrypting first data in the stored log information;
specifically, the target control unit of the vehicle may receive the acquisition instruction sent by the cloud server through an ethernet or a Universal Serial Bus (USB).
Outputting the obtained log information, including:
and sending the obtained log information to a cloud server.
After the signature verification processing is performed according to the obtained log information and the second data in the stored log information, the method further comprises the following steps:
and when the signature verification fails, sending prompt information of the signature verification failure to the cloud server.
Specifically, the target control unit may send the obtained log information and the signature verification failure prompt information to the cloud server through an ethernet or a USB.
In the embodiment of the disclosure, if the maintenance personnel have the requirements of remotely analyzing and positioning defects and abnormalities of the vehicle, the maintenance personnel can send the stored log information acquisition instruction to the target control unit through the cloud server. In the case where the acquisition instruction is received, the target control unit determines that a preset condition is satisfied, and at this time, the target control unit performs decryption processing and signature verification processing.
And under the condition of successful signature verification, the target control unit sends the obtained log information to the cloud server, and the cloud server can display the received log information. Therefore, the maintenance personnel can remotely analyze and position the defects and the abnormalities of the vehicle according to the log information displayed by the cloud server.
And under the condition of label checking failure, the target control unit sends label checking failure prompt information to the cloud server, and the cloud server can output the received label checking failure prompt information in the forms of voice, characters and the like. Therefore, the maintenance personnel can know the condition of label checking failure according to the label checking failure prompt information output by the cloud server, and can take other processing measures in time.
In the log information processing method executed at the target control unit according to the embodiments of the present disclosure, the related concepts may refer to the related description of the log information processing method executed at the MCU, and are not described herein again.
In summary, in the embodiment of the disclosure, by offline storing the log information of the MCU by the target control unit, when the MCU has an occasional problem, the maintenance personnel can analyze and locate the defect and abnormality of the vehicle according to the log information stored by the target control unit.
Referring to fig. 3, a schematic structural diagram of a log information processing unit 300 provided by an embodiment of the disclosure is shown. As shown in fig. 3, the log information processing unit 300 includes:
a first obtaining module 301, configured to obtain log information at an MCU of a vehicle;
a transmitting module 302, configured to transmit the log information to a target control unit of the vehicle at an MCU of the vehicle; wherein the target control unit comprises a CPU or SOC.
In some embodiments, as shown in fig. 4, the log information processing unit 300 further includes:
the second obtaining module 311 is configured to obtain vehicle system running state information related to the log information after obtaining the log information;
the sending module 302 is specifically configured to:
and transmitting the running state information of the vehicle system together with the log information to a target control unit of the vehicle.
In some embodiments, as shown in fig. 5, the log information processing unit 300 further includes:
a processing module 321, configured to perform encryption processing and digital signature processing on the log information after obtaining the log information, so as to obtain encrypted log information and digitally signed log information;
the sending module 302 is specifically configured to:
the encrypted log information is transmitted to a target control unit of the vehicle together with the digitally signed log information.
In some embodiments, the log information includes log information attributes including an information severity level and/or an information category.
The log information processing unit 300 provided by the embodiment of the present disclosure may be configured to execute the log information processing method executed at the MCU described in any one of the above embodiments. The related concepts and specific implementations in the embodiments of the present disclosure may refer to the related descriptions in the log information processing method executed at the MCU described in any of the above embodiments, and are not described herein again.
In summary, in the embodiment of the disclosure, by offline storing the log information of the MCU by the target control unit, when the MCU has an occasional problem, the maintenance personnel can analyze and locate the defect and abnormality of the vehicle according to the log information stored by the target control unit.
Referring to fig. 6, a schematic structural diagram of a log information processing unit 600 provided by an embodiment of the present disclosure is shown. As shown in fig. 6, the log information processing unit 600 includes:
a receiving module 601, configured to receive, at a target control unit of a vehicle, log information sent by an MCU of the vehicle; wherein the target control unit comprises a CPU or an SOC;
a storage module 602 for storing the received log information to a log file at a target control unit of the vehicle.
In some embodiments, the number of log files is at least two;
the storage module 602 is specifically configured to:
storing the received log information to a corresponding log file according to the log information attribute of the received log information; the log information attributes comprise information severity levels and/or information categories, and log information with different log information attributes is stored in different log files.
In some embodiments, the receiving module 601 is specifically configured to:
receiving log information sent by an MCU of a vehicle and vehicle system running state information related to the log information;
the storage module 602 is specifically configured to:
and storing the received log information and the vehicle system running state information into a log file.
In some embodiments, the log information received by the target control unit includes first data and second data, the first data is obtained by the MCU encrypting the log information obtained by the target control unit, and the second data is obtained by the MCU digitally signing the log information obtained by the target control unit;
as shown in fig. 7, the log information processing unit 600 further includes:
an obtaining module 611, configured to, after storing the received log information in the log file, perform decryption processing on first data in the stored log information under a condition that a preset condition is met, to obtain corresponding log information;
the signature verification module 612 is configured to perform signature verification processing according to the obtained log information and second data in the stored log information;
an output module 613, configured to output the obtained log information when the signature verification is successful;
and a deleting module 614, configured to delete the obtained log information when the signature verification fails.
In some embodiments, the obtaining module 611 is specifically configured to:
when an acquisition instruction of the stored log information sent by the cloud server is received, decrypting first data in the stored log information;
the output module 613 is specifically configured to:
sending the obtained log information to a cloud server;
as shown in fig. 8, the log information processing unit 600 further includes:
the sending module 621 is configured to send a prompt message indicating that the signature verification fails to the cloud server when the signature verification fails after performing signature verification processing according to the obtained log information and the second data in the stored log information.
The log information processing unit 600 provided by the embodiment of the present disclosure may be configured to execute the log information processing method executed at the target control unit described in any one of the above embodiments. The related concepts and specific implementations in the embodiments of the present disclosure may refer to the related descriptions in the log information processing method executed at the target control unit described in any one of the above embodiments, and are not described herein again.
In summary, in the embodiment of the disclosure, by offline storing the log information of the MCU by the target control unit, when the MCU has an occasional problem, the maintenance personnel can analyze and locate the defect and abnormality of the vehicle according to the log information stored by the target control unit.
The embodiment of the present disclosure further provides an MCU, including a processor and a memory; the memory has stored therein computer instructions; a processor coupled to the memory for executing computer instructions stored in the memory; the computer instructions are used for executing the log information processing method executed at the MCU described in any one of the above embodiments. The related concepts and specific implementations in the embodiments of the present disclosure may refer to the related descriptions in the log information processing method executed at the MCU described in any of the above embodiments, and are not described herein again.
In the embodiment of the disclosure, by storing the log information of the MCU offline by the target control unit, under the condition that the MCU has accidental problems, maintenance personnel can analyze and position the defects and the abnormalities of the vehicle according to the log information stored by the target control unit.
The embodiment of the present disclosure further provides a target control unit, which includes a CPU or an SOC; also includes a memory; the CPU or SOC is coupled with the memory and is used for executing computer instructions stored in the memory; the computer instructions are used for executing the log information processing method executed at the target control unit described in any one of the above embodiments. The related concepts and specific implementations in the embodiments of the present disclosure may refer to the related descriptions in the log information processing method executed at the target control unit described in any one of the above embodiments, and are not described herein again.
In the embodiment of the disclosure, by storing the log information of the MCU offline by the target control unit, under the condition that the MCU has accidental problems, maintenance personnel can analyze and position the defects and the abnormalities of the vehicle according to the log information stored by the target control unit.
Referring to fig. 9, a schematic structural diagram of a vehicle 900 provided by an embodiment of the disclosure is shown. As shown in fig. 9, a vehicle 900 includes the MCU provided in the above embodiment (assumed to be the MCU901) and the target control unit provided in the above embodiment (assumed to be the MCU 902); the MCU901 and the target control unit 902 are electrically connected. The related concepts and specific implementations in the embodiments of the present disclosure may refer to the related descriptions in the log information processing method executed at the MCU and the log information processing method executed at the target control unit described in any of the above embodiments, and are not described herein again.
In the embodiment of the disclosure, by storing the log information of the MCU901 by the target control unit 902 offline, when the MCU901 has an occasional problem, a maintenance worker can analyze and locate the defect and abnormality of the vehicle according to the log information stored by the target control unit 902.
Referring to fig. 10, a flowchart of a log information processing method provided by an embodiment of the present disclosure is shown. As shown in fig. 10, the method includes the steps of:
step 1001, acquiring log information at an MCU of a vehicle;
step 1002, at an MCU of a vehicle, transmitting log information to a target control unit of the vehicle; wherein the target control unit comprises a CPU or SOC.
Step 1003, receiving log information sent by the MCU of the vehicle at a target control unit of the vehicle;
at step 1004, the received log information is stored to a log file at the target control unit of the vehicle.
In some embodiments, after obtaining the log information, the method further comprises:
acquiring vehicle system running state information related to the log information at an MCU of the vehicle;
transmitting the log information to a target control unit of the vehicle, including:
the running state information of the vehicle system and the log information are sent to a target control unit of the vehicle;
receiving log information sent by an MCU of a vehicle, comprising:
receiving log information sent by an MCU of a vehicle and vehicle system running state information related to the log information;
storing the received log information to a log file, comprising:
and storing the received log information and the vehicle system running state information into a log file.
In some embodiments, after obtaining the log information, the method further comprises:
at the MCU of the vehicle, respectively carrying out encryption processing and digital signature processing on the log information to obtain encrypted log information and digitally signed log information;
transmitting the log information to a target control unit of the vehicle, including:
transmitting the encrypted log information together with the digitally signed log information to a target control unit of the vehicle;
the target control unit receives log information which comprises first data and second data, the first data is obtained by encrypting the log information acquired by the MCU, and the second data is obtained by carrying out digital signature processing on the log information acquired by the MCU;
after storing the received log information to the log file, the method further comprises:
at the target control unit of the vehicle,
under the condition that a preset condition is met, decrypting first data in the stored log information to obtain corresponding log information;
performing signature verification processing according to the obtained log information and second data in the stored log information;
when the signature verification is successful, outputting the obtained log information;
and when the signature verification fails, deleting the obtained log information.
In some embodiments, in the case that a preset condition is satisfied, performing decryption processing on first data in the stored log information includes:
when an acquisition instruction of the stored log information sent by the cloud server is received, decrypting first data in the stored log information;
outputting the obtained log information, including:
sending the obtained log information to a cloud server;
after the signature verification processing is performed according to the obtained log information and the second data in the stored log information, the method further comprises the following steps:
and when the signature verification fails, sending prompt information of the signature verification failure to the cloud server.
In some embodiments, the log information includes log information attributes, the log information attributes including an information severity level and/or an information category; the number of the log files is at least two;
storing the received log information to a log file, comprising:
storing the received log information to a corresponding log file according to the log information attribute of the received log information; the log information attributes comprise information severity levels and/or information categories, and log information with different log information attributes is stored in different log files.
The related concepts and specific implementations in the embodiments of the present disclosure may refer to the related descriptions in the log information processing method executed at the MCU and the log information processing method executed at the target control unit described in any of the above embodiments, and are not described herein again.
In the embodiment of the disclosure, by storing the log information of the MCU offline by the target control unit, under the condition that the MCU has accidental problems, maintenance personnel can analyze and position the defects and the abnormalities of the vehicle according to the log information stored by the target control unit.
Embodiments of the present disclosure also provide a log information processing system, which includes the log information processing unit 300 described above and the log information processing unit 600 described above. The related concepts and specific implementations in the embodiments of the present disclosure may refer to the related descriptions in the log information processing method executed at the MCU and the log information processing method executed at the target control unit described in any of the above embodiments, and are not described herein again.
In the embodiment of the disclosure, by storing the log information of the MCU offline by the target control unit, under the condition that the MCU has accidental problems, maintenance personnel can analyze and position the defects and the abnormalities of the vehicle according to the log information stored by the target control unit.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (14)

1. A method for processing log information, the method comprising:
at the micro control unit MCU of the vehicle,
acquiring log information; the log information is generated by the MCU, the log information comprises log state description information, generation time of the log state description information, modules related to the log state description information and program positions, and the log state description information comprises power supply voltage state information, random access memory occupancy rate information, controller area network communication state information or local internet communication state information;
transmitting the log information to a target control unit of the vehicle; wherein the target control unit comprises a central processing unit or a system on chip SOC.
2. The method of claim 1, wherein after obtaining the log information, the method further comprises:
acquiring vehicle system running state information related to the log information;
the sending the log information to a target control unit of the vehicle includes:
and transmitting the vehicle system running state information together with the log information to a target control unit of the vehicle.
3. The method of claim 1, wherein after obtaining the log information, the method further comprises:
respectively carrying out encryption processing and digital signature processing on the log information to obtain the log information subjected to the encryption processing and the log information subjected to the digital signature processing;
the sending the log information to a target control unit of the vehicle includes:
transmitting the log information subjected to the encryption processing together with the log information subjected to the digital signature processing to a target control unit of the vehicle.
4. A method according to any one of claims 1 to 3, wherein the log information comprises log information attributes comprising information severity level and/or information category.
5. A method for processing log information, the method comprising:
at the target control unit of the vehicle,
receiving log information sent by a Micro Control Unit (MCU) of the vehicle; the target control unit comprises a central processing unit or a System On Chip (SOC), the log information is generated by the MCU, the log information comprises log state description information, generation time of the log state description information, modules related to the log state description information and program positions, and the log state description information comprises power supply voltage state information, random access memory occupancy rate information, controller area network communication state information or local internet communication state information;
and storing the received log information to a log file.
6. The method of claim 5, wherein the number of log files is at least two;
the storing the received log information to a log file includes:
storing the received log information to a corresponding log file according to the log information attribute of the received log information; the log information attributes comprise information severity levels and/or information categories, and log information with different log information attributes is stored in different log files.
7. The method according to claim 5, wherein the receiving log information transmitted by a Micro Control Unit (MCU) of the vehicle comprises:
receiving log information sent by an MCU of the vehicle and vehicle system running state information related to the log information;
the storing the received log information to a log file includes:
and storing the received log information and the vehicle system running state information into a log file.
8. The method according to claim 5, wherein the log information received by the target control unit includes first data and second data, the first data is obtained by the MCU through encryption processing of the log information obtained by the MCU, and the second data is obtained by the MCU through digital signature processing of the log information obtained by the MCU;
after storing the received log information into the log file, the method further includes:
under the condition that a preset condition is met, decrypting first data in the stored log information to obtain corresponding log information;
performing signature verification processing according to the obtained log information and second data in the stored log information;
when the signature verification is successful, outputting the obtained log information;
and when the signature verification fails, deleting the obtained log information.
9. The method according to claim 8, wherein the decrypting the first data in the stored log information if the preset condition is met comprises:
when an acquisition instruction of the stored log information sent by the cloud server is received, decrypting first data in the stored log information;
the outputting the obtained log information comprises:
sending the obtained log information to a cloud server;
after the signature verification processing is performed according to the obtained log information and the second data in the stored log information, the method further includes:
and when the signature verification fails, sending signature verification failure prompt information to the cloud server.
10. A log information processing unit characterized by comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring log information at a Micro Control Unit (MCU) of a vehicle; the log information is generated by the MCU, the log information comprises log state description information, generation time of the log state description information, modules related to the log state description information and program positions, and the log state description information comprises power supply voltage state information, random access memory occupancy rate information, controller area network communication state information or local internet communication state information;
the sending module is used for sending the log information to a target control unit of the vehicle at a Micro Control Unit (MCU) of the vehicle; wherein the target control unit comprises a central processing unit or a system on chip SOC.
11. A log information processing unit characterized by comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving log information sent by a Micro Control Unit (MCU) of a vehicle at a target control unit of the vehicle; the target control unit comprises a central processing unit or a System On Chip (SOC), the log information is generated by the MCU, the log information comprises log state description information, generation time of the log state description information, modules related to the log state description information and program positions, and the log state description information comprises power supply voltage state information, random access memory occupancy rate information, controller area network communication state information or local internet communication state information;
a storage module for storing the received log information to a log file at a target control unit of the vehicle.
12. An MCU, comprising: a processor and a memory; the memory having stored therein computer instructions; the processor is coupled with the memory for executing computer instructions stored in the memory; the computer instructions are to perform the method of any of claims 1 to 4.
13. A target control unit, characterized in that the target control unit comprises a central processing unit or a system on chip SOC; also includes a memory; the central processor or the SOC is coupled with the memory for executing computer instructions stored in the memory; the computer instructions are to perform the method of any of claims 5 to 9.
14. A vehicle, characterized by comprising a micro control unit MCU according to claim 12 and a target control unit MCU according to claim 13; the MCU is electrically connected with the target control unit.
CN201810135399.2A 2018-02-09 2018-02-09 Log information processing method, log information processing unit and Micro Control Unit (MCU) Active CN108237994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810135399.2A CN108237994B (en) 2018-02-09 2018-02-09 Log information processing method, log information processing unit and Micro Control Unit (MCU)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810135399.2A CN108237994B (en) 2018-02-09 2018-02-09 Log information processing method, log information processing unit and Micro Control Unit (MCU)

Publications (2)

Publication Number Publication Date
CN108237994A CN108237994A (en) 2018-07-03
CN108237994B true CN108237994B (en) 2020-02-14

Family

ID=62699849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810135399.2A Active CN108237994B (en) 2018-02-09 2018-02-09 Log information processing method, log information processing unit and Micro Control Unit (MCU)

Country Status (1)

Country Link
CN (1) CN108237994B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102019201953B4 (en) * 2019-02-14 2021-01-28 Audi Ag Method and detection device for detecting an intervention in a motor vehicle and motor vehicle with a detection device
CN112485571A (en) * 2020-11-24 2021-03-12 上汽通用五菱汽车股份有限公司 Calibration method, calibration system, target electrical appliance and storage medium
CN115442224A (en) * 2022-05-05 2022-12-06 北京罗克维尔斯科技有限公司 MCU log processing method and device and vehicle
CN115242841A (en) * 2022-07-22 2022-10-25 蔚来汽车科技(安徽)有限公司 Vehicle operation log processing system and method
CN115277780B (en) * 2022-07-30 2023-11-14 重庆长安汽车股份有限公司 Method and device for acquiring vehicle-end log, electronic equipment and storage medium
CN115426279A (en) * 2022-08-31 2022-12-02 东风电驱动系统有限公司 Equipment operation information acquisition system and acquisition method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103489301A (en) * 2013-09-25 2014-01-01 东风汽车公司 Vehicle running information acquisition system and method using dual-processor architecture
CN103543399B (en) * 2013-10-31 2016-03-30 哈尔滨工业大学 A kind of automobile CAN-bus module automatic detection system of Based PC I board and method
KR101584322B1 (en) * 2014-07-23 2016-01-13 티에스 주식회사 System for driving vehicle having hermetically sealed battery pack based on air cooling type

Also Published As

Publication number Publication date
CN108237994A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
CN108237994B (en) Log information processing method, log information processing unit and Micro Control Unit (MCU)
CN109508295B (en) Block chain consensus algorithm testing method and device, calculating device and storage medium
CN111368326A (en) Vehicle data processing method and device, electronic equipment and storage medium
CN111211929A (en) Fault positioning method, fault positioning device, control equipment and intelligent equipment
CN112652089A (en) Diagnostic method, vehicle, system, and storage medium
US20180276321A1 (en) Method and apparatus for testing design of satellite wiring harness and signal processing units
CN113570479B (en) Block chain transmission method, system and storage medium for real estate transaction data
EP2933726A1 (en) Apparatus, system and method for application log data processing
CN111277651B (en) Remote bidding method and system
CN107193249A (en) Program development servicing unit and program development householder method
CN116743619B (en) Network service testing method, device, equipment and storage medium
CN110838940B (en) Underground cable inspection task configuration method and device
US11665165B2 (en) Whitelist generator, whitelist evaluator, whitelist generator/evaluator, whitelist generation method, whitelist evaluation method, and whitelist generation/evaluation method
Vyas et al. A strategy and framework for analysis of operational data of automotive radars for development of active safety systems
CN112615845B (en) Edge credible device of energy Internet and big data processing method
CN114844772A (en) Management method and system based on Zabbix monitoring platform
Lee et al. Collecting big data from automotive ECUs beyond the CAN bandwidth for fault visualization
CN112051826A (en) Automobile fault detection method and system
CN109246215A (en) For obtaining the method and terminal of the fault data of relay in electric system
CN107480030A (en) A kind of clustered deploy(ment) method and system being managed collectively to node
CN117707112A (en) Fault diagnosis method, system, equipment and storage medium
CN117608894A (en) Log storage method and device, computer equipment and storage medium
CN117692498A (en) Configuration method and device of energy storage system and energy storage system
CN116382644A (en) Application construction method and device, computer equipment and storage medium
CN117851263A (en) Function test method, device, electronic equipment and computer storage medium

Legal Events

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

Effective date of registration: 20211125

Address after: Room 103, building 1, yard 4, Hengxing Road, Gaoliying Town, Shunyi District, Beijing

Patentee after: Beijing Rockwell Technology Co.,Ltd.

Address before: Room 801, 8 / F, building 3, No.10 courtyard, Wangjing street, Chaoyang District, Beijing 100102

Patentee before: BEIJING CHJ AUTOMOTIVE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right