CN108237994A - 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
CN108237994A
CN108237994A CN201810135399.2A CN201810135399A CN108237994A CN 108237994 A CN108237994 A CN 108237994A CN 201810135399 A CN201810135399 A CN 201810135399A CN 108237994 A CN108237994 A CN 108237994A
Authority
CN
China
Prior art keywords
log information
control unit
target control
vehicle
information
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.)
Granted
Application number
CN201810135399.2A
Other languages
Chinese (zh)
Other versions
CN108237994B (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 Co Wheels Technology Co Ltd
Original Assignee
Beijing CHJ 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 Information Technology Co Ltd filed Critical Beijing CHJ 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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Mechanical Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Embodiment of the disclosure provides a kind of log information processing method, log information processing unit and micro-control unit MCU.This method includes:At the MCU of vehicle, log information is obtained;Log information is sent to the target control unit of vehicle;Wherein, target control unit includes central processing unit or system level chip SOC.In embodiment of the disclosure, by target control unit to the offline storage of the log information of MCU, in the case where accidental sex chromosome mosaicism occurs in MCU, the log information that maintenance personal can store according to target control unit analyzes the defects of occurring with positioning vehicle and exception.

Description

Log information processing method, log information processing unit and micro-control unit MCU
Technical field
Embodiment of the disclosure is related to Vehicle Engineering technical field more particularly to a kind of log information processing method, daily record Information process unit and MCU.
Background technology
At present, the micro-control unit (Microcontroller Unit, MCU) set in vehicle (such as electric vehicle) is used In the responsible processing operation higher to real-time and stability requirement.It will be appreciated by persons skilled in the art that MCU is working Log information can be generated in the process, these log informations can be used for that maintenance personal's analysis and positioning vehicle is helped to run The defects of occurring in journey and exception.
However, under normal circumstances, MCU has small-sized real time operating system and nonvolatile storage space is very small, alternatively, MCU does not have operating system, and therefore, although MCU can generate log information, it does not have storage log information Ability, in this way, in the case where accidental sex chromosome mosaicism occurs in MCU, maintenance personal can not analyze and fixed according to the log information of MCU The defects of position vehicle occurs and exception.
Invention content
In a first aspect, embodiment of the disclosure provides a kind of log information processing method, the method includes:
At the micro-control unit MCU of vehicle,
Obtain log information;
The log information is sent to the target control unit of the vehicle;Wherein, the target control unit includes Central processing unit or system level chip SOC.
In some embodiments, after the acquisition log information, the method further includes:
Obtain the relevant Vehicular system running state information of the log information;
The target control unit that the log information is sent to the vehicle, including:
The Vehicular system running state information is sent to the target control list of the vehicle together with the log information Member.
In some embodiments, after the acquisition log information, the method further includes:
The log information is encrypted respectively and digital signature is handled, to obtain the day of encrypted processing Will information and the log information of digitally signed processing;
The target control unit that the log information is sent to the vehicle, including:
The log information of encrypted processing is sent to together with the log information of digitally signed processing described The target control unit of vehicle.
In some embodiments, the log information includes log information attribute, and the log information attribute includes information Menace level and/or information category.
Second aspect, embodiment of the disclosure provide a kind of log information processing method, the method includes:
At the target control unit of vehicle,
Receive the log information that the micro-control unit MCU of the vehicle is sent;Wherein, during the target control unit includes Central processor or system level chip SOC;
The log information that receives is stored to journal file.
In some embodiments, the quantity of the journal file is at least two;
The log information that receives of storing to journal file, including:
According to the log information attribute of the log information received, it is literary to corresponding daily record to store the log information received Part;Wherein, the log information attribute includes information menace level and/or information category, the different daily record of log information attribute Information is stored in different journal files.
In some embodiments, the log information that the micro-control unit MCU for receiving the vehicle is sent, including:
Receive log information and the relevant Vehicular system operating status letter of the log information that the MCU of the vehicle is sent Breath;
The log information that receives of storing to journal file, including:
The log information received and Vehicular system running state information are stored to journal file.
In some embodiments, the log information that the target control unit receives includes the first data and the second number According to first data are encrypted to obtain by the MCU log informations for obtaining itself, and second data are by institute It states the log information that MCU obtains itself and is digitally signed processing and obtain;
After the log information to journal file that the storage receives, the method further includes:
In the case where meeting preset condition, the first data in the log information of storage are decrypted, are obtained Corresponding log information;
The second data in the log information of acquisition and the log information of storage carry out sign test processing;
In sign test success, the log information of acquisition is exported;
When sign test fails, the log information of acquisition is deleted.
In some embodiments, it is described in the case where meeting preset condition, to the first number in the log information of storage According to being decrypted, including:
Cloud server transmission is being received, during to the acquisition instruction of the log information of storage, the daily record of storage is being believed The first data in breath are decrypted;
The log information that the output obtains, including:
The log information obtained is sent to cloud server;
After the corresponding log information of acquisition, the method further includes:
When sign test fails, sign test failure prompt message is sent to the cloud server.
The third aspect, embodiment of the disclosure provide a kind of log information processing unit, including:
First acquisition module, at the micro-control unit MCU of vehicle, obtaining log information;
Sending module, at the micro-control unit MCU of vehicle, the log information to be sent to the mesh of the vehicle Mark control unit;Wherein, the target control unit includes central processing unit or system level chip SOC.
Fourth aspect, embodiment of the disclosure provide a kind of log information processing unit, including:
Receiving module, at the target control unit of vehicle, receiving the micro-control unit MCU of vehicle transmissions Log information;Wherein, the target control unit includes central processing unit or system level chip SOC;
Memory module, at the target control unit of vehicle, storing the log information received to journal file.
5th aspect, embodiment of the disclosure provide a kind of micro-control unit MCU, including:Processor and memory;It is described Computer instruction is stored in memory;The processor is coupled with the memory, is stored for performing in the memory Computer instruction;The computer instruction is performing the method that above-mentioned first aspect provides.
6th aspect, embodiment of the disclosure provide a kind of target control unit, and the target control unit includes center Processor or system level chip SOC;Further include memory;The central processing unit or the SOC and the memory coupling It closes, for performing the computer instruction stored in the memory;The computer instruction carries to perform above-mentioned second aspect The method of confession.
7th aspect, embodiment of the disclosure provide a kind of vehicle, the micro-control unit provided including the above-mentioned 5th aspect The target control unit that MCU and above-mentioned 6th aspect provide;Wherein, the MCU and target control unit electrical connection.
Description of the drawings
It, below will be in embodiment of the disclosure description in order to illustrate more clearly of the technical solution of embodiment of the disclosure Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the disclosure Example is applied, it for those of ordinary skill in the art, without having to pay creative labor, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is the flow chart for the first log information processing method that embodiment of the disclosure provides;
Fig. 2 is the flow chart for second of log information processing method that embodiment of the disclosure provides;
Fig. 3 is one of structure diagram of the first log information processing unit that embodiment of the disclosure provides;
Fig. 4 is the second structural representation for the first log information processing unit that embodiment of the disclosure provides;
Fig. 5 is the third structural representation for the first log information processing unit that embodiment of the disclosure provides;
Fig. 6 is one of structure diagram of second of log information processing unit that embodiment of the disclosure provides;
Fig. 7 is the second structural representation for second of log information processing unit that embodiment of the disclosure provides;
Fig. 8 is the third structural representation for second of log information processing unit that embodiment of the disclosure provides;
Fig. 9 is the structure diagram for the vehicle that embodiment of the disclosure provides;
Figure 10 is the flow chart for the third log information processing method that embodiment of the disclosure provides.
Specific embodiment
Below in conjunction with the attached drawing in embodiment of the disclosure, the technical solution in embodiment of the disclosure is carried out clear Chu is fully described by, it is clear that described embodiment is disclosure part of the embodiment, instead of all the embodiments.It is based on Embodiment in the disclosure, those of ordinary skill in the art are acquired every other without creative efforts Embodiment belongs to the range of disclosure protection.
Embodiment of the disclosure provides a kind of log information processing method, log information processing unit, MCU, target control Unit and vehicle processed.
Referring to Fig. 1, the flow chart for the log information processing method that embodiment of the disclosure provides is shown in figure.Such as Fig. 1 Shown, in the MCU sides of vehicle, this method comprises the following steps:
Step 101, log information is obtained.
Wherein, the life of stl status description information, stl status description information can be included in the log information that MCU is obtained Into time and the relevant module of stl status description information and program point.Stl status description information can include power supply electricity Some in pressure condition information, random access memory (Random-Access Memory, RAM) occupancy rate information, vehicle switchs Status information, controller LAN (Controller Area Network, CAN) communications status information or local interconnection Network (Local Interconnect Network, LIN) communications status information etc..Specifically, supply voltage status information Can be supply voltage it is too low, CAN communication status information can be electronic control unit (Electronic Control Unit, ECU CAN communication) loses failure.
Step 102, log information is sent to the target control unit of vehicle;Wherein, target control unit includes center Processor (Central Processing Unit, CPU) or system level chip (System on a Chip, SOC).
Since target control unit includes CPU or SOC, target control unit can be responsible for handling user interface (User Interface, UI) interactive operation, also, UART Universal Asynchronous Receiver Transmitter can be passed through between MCU and target control unit (Universal Asynchronous Receiver/Transmitte, UART) or high-speed synchronous serial port (Serial Peripheral Interface, SPI) etc. carry out information exchange.It in this way, can be by acquisition by UART or SPI, MCU Log information is successfully transmitted to target control unit, in addition, MCU and target control unit can also be mutually in step working condition.
It should be noted that in the case where getting log information, log information that MCU will can be got in real time It is sent to target control unit.Certainly, in the case where getting log information, MCU can also be temporarily to target control list Member sends the log information got, but first caches the log information got;The log information of certain time to be cached or The log information of person's caching reaches certain capacity size (such as 20M), and all log informations of caching are sent to by MCU together again Target control unit.
It is understood that on target control unit (i.e. CPU or SOC) generally have linux, QNX, android or Person other meet portable operating system interface (Portable Operating System Interface, POSIX) standard Operating system.In this way, target control unit has more complicated operating system, the non-volatile memories of target control unit are empty Between it is larger, target control unit can store various system datas and user data, therefore, target control unit with document form Ability with storage log information.
In view of this, in embodiment of the disclosure, day can be equipped in the nonvolatile storage space of target control unit Will file, receive MCU transmission log information after, target control unit may store the received log information to it is non-easily Journal file in the property lost memory space, the log information received is stored with document form, so as to fulfill MCU's The offline storage of log information.
In embodiment of the disclosure, the log information of acquisition can be sent to the target control list of vehicle by the MCU of vehicle Member so that the target control unit of vehicle may store the received log information to journal file.And then it can realize MCU's The offline storage of log information.In this way, even if accidental sex chromosome mosaicism occurs in MCU, maintenance personal can also be according to target control unit Journal file in the log information that stores analyze the defects of occurring with positioning vehicle and exception.As it can be seen that pass through target control For unit to the offline storage of the log information of MCU, embodiment of the disclosure is preferably solved there is accidental sex chromosome mosaicism in MCU In the case of, the defects of maintenance personal can not analyze according to the log information of MCU and positioning vehicle occur and it is abnormal the problem of.
In some embodiments, log information includes log information attribute, and log information attribute includes information menace level And/or information category.
Assuming that log information attribute only include information menace level, information menace level can be mainly divided into FATAL, Five grades of ERROR, WARN, INFO and DEBUG;Wherein, following table 1 is specifically shown in the description of each grade.
Serial number Grade Description
1 FATAL Point out that each grave error event will lead to exiting for application program
2 ERROR It points out although error event to occur, but still do not influence continuing to run with for system.
3 WARN Show the situation that will appear latent fault
4 INFO Show that message highlights the operational process of application program on coarse grain level.
5 DEBUG It is very helpful to debugging utility to point out fine granularity message event.
Table 1
In this case, journal file there are five being set in the nonvolatile storage space of target control unit, respectively It is journal file 1, journal file 2, journal file 3, journal file 4 and journal file 5.Wherein, the file name of journal file 1 In can include FATAL, it is corresponding with this information menace levels of FATAL to characterize journal file 1;The filename of journal file 2 It can include ERROR in title, it is corresponding with this information menace levels of ERROR to characterize journal file 2;The file of journal file 3 It can include WARN in title, it is corresponding with this information menace levels of WARN to characterize journal file 3;The file of journal file 4 It can include INFO in title, it is corresponding with this information menace levels of INFO to characterize journal file 4;The file of journal file 5 It can include DEBUG in title, it is corresponding with this information menace levels of DEBUG to characterize journal file 5.
In the log information for receiving MCU transmissions, target control unit can be according to the letter of the log information received Menace level is ceased, is stored in log information to the journal file corresponding with the information menace level of the log information received, So that the different log information of information menace level is stored in different journal files.Specifically, if the daily record letter received The information menace level of breath is ERROR, and target control unit can store the day that the log information includes ERROR to file name In will file 2;If the information menace level of the log information received is DEBUG, target control unit can store the daily record Information is included to file name in the journal file 5 of DEBUG.
Assuming that log information attribute only includes information category, information category can be mainly divided into operation classification and communication classification Two classifications.In general, included daily record description information is the daily record of supply voltage status information, RAM occupancy rate informations Information category in information is operation classification;Included daily record description information is CAN communication status information or LIN communication shapes Information category in the log information of state information is traffic category.
In this case, it can be set in the nonvolatile storage space of target control unit there are two journal file, point It is not journal file 6 and journal file 7.Wherein, operation classification can be included in the file name of journal file 6, to characterize day Will file 6 is corresponding with operation this information category of classification;It can include communication classification in the file name of journal file 7, with table It is corresponding with communication this information category of classification to levy journal file 7.
In the log information for receiving MCU transmissions, target control unit can be according to the letter of the log information received Classification is ceased, is stored in log information to the journal file corresponding with the information category of the log information received, so that information The different log information of classification is stored in different journal files.Specifically, if the information category of the log information received To communicate classification, target control unit can store the log information to file name and include in the other journal file 7 of communication class.
It should be pointed out that the file name of each journal file is in addition to including the daily records such as information menace level, information category Information attribute, can also including date created etc. other informations.
In embodiment of the disclosure, target control unit can according to the log information attribute of the log information received, The log information received is stored into corresponding journal file, so that the different log information of log information attribute is stored in not It is quick with maintenance personal in journal file, can be facilitated subsequently to be carried out to the log information with particular log information attribute in this way It searches.For example, in the case where maintenance personal has found that the traveling total kilometrage that vehicle is shown is reset to 0, due to such case It is more serious failure, at this moment, maintenance personal can send look-up command to vehicle, with control targe control unit in daily record The log information for the situation that record has traveling total kilometrage to be reset to zero is searched in file 1.The day is found in target control unit After will information, which can be supplied to maintenance personal by target control unit, in this way, maintenance personal can be by the day Will Information locating generates the reason of situation.
It should be pointed out that each journal file generally has preset capacity size, when the log information in journal file Total amount when reaching preset capacity size, target control unit can close this document folder, and re-create a new file It presss from both sides to store corresponding log information.
In some embodiments, after obtaining log information, this method further includes:
Obtain the relevant Vehicular system running state information of log information.
Log information is sent to the target control unit of vehicle, including:
Vehicular system running state information is sent to the target control unit of vehicle together with log information.
In embodiment of the disclosure, the log information that MCU is obtained can include information menace level, and MCU can obtained The information menace level of log information when belonging to default menace level, obtain the relevant Vehicular system operation shape of the log information State information.Specifically, default menace level can be FATAL.
When it is implemented, if the information menace level in the log information that MCU is obtained is FATAL, since FATAL is corresponded to Description be " pointing out that each grave error event will lead to exiting for application program ", it is believed that the log information recording There is more serious error event, the error event is very big for the normal operation influence of vehicle, and therefore, MCU can be obtained The relevant Vehicular system running state information of the log information.
Assuming that the CAN communication that the stl status description information in the log information is certain ECU loses failure, the log information In information menace level for FATAL, at this moment, MCU can obtain Vehicular system operating status letter relevant with CAN communication state Breath.Specifically, the Vehicular system running state information that MCU is obtained can include power-on time information, and (such as system is the last The temporal information powered on), mileage travelled information (such as traveling total kilometrage information), driving speed information, gear information, steering wheel At least one of in corner information.Later, MCU can send the Vehicular system running state information of acquisition together with log information To the target control unit of vehicle, target control unit may store the received log information and Vehicular system operating status letter It ceases to journal file.
In this way, in the case where there is accidental sex chromosome mosaicism in MCU, due in the journal file of target control unit in addition to daily record It is also stored with including power-on time information, mileage travelled information, driving speed information, gear information, steering wheel angle outside information The Vehicular system running state information of at least one in information, these information can further assist maintenance personal to carry out defect And anomaly analysis, so as to further improve the effect of defect and anomaly analysis.
In some embodiments, after obtaining log information, this method further includes:
Log information is encrypted respectively and digital signature processing, with obtain the log information of encrypted processing and The log information of digitally signed processing;
Log information is sent to the target control unit of vehicle, including:
The log information of encrypted processing is sent to the target control of vehicle together with the log information of digitally signed processing Unit processed.
Wherein, the Encryption Algorithm used when the log information of acquisition is encrypted in MCU can be that eap-message digest is calculated Method the 5th edition (MD5), Advanced Encryption Standard (Advanced Encryption Standard, AES) or RSA are (a kind of non-right Claim Encryption Algorithm) etc..
In embodiment of the disclosure, what MCU was sent to target control unit is the log information of encrypted processing and through number The log information of word signature processing, that is to say, that MCU transmits log information, such energy with ciphertext form to target control unit Enough transmission securities for preferably ensureing log information.In addition, the day of digitally signed processing that target control unit receives Will information can be used for subsequently carrying out completeness check to log information.
To sum up, in embodiment of the disclosure, by target control unit to the offline storage of the log information of MCU, in MCU In the case of there is accidental sex chromosome mosaicism, maintenance personal can be analyzed according to the log information that target control unit stores and positioning vehicle The defects of occurring and exception.
Referring to Fig. 2, the flow chart for the log information processing method that embodiment of the disclosure provides is shown in figure.Such as Fig. 2 Shown, at the target control unit of vehicle, this method comprises the following steps:
Step 201, the log information that the MCU of vehicle is sent is received;Wherein, target control unit includes CPU or SOC;
Step 202, the log information that receives is stored to journal file.
In embodiment of the disclosure, the target control unit of vehicle can receive the log information of MCU transmissions, and be stored as Journal file, to realize the offline storage of the log information of MCU.In this way, even if there is accidental sex chromosome mosaicism, maintenance personal in MCU Can the defects of occurring with positioning vehicle and different be analyzed according to the log information stored in the journal file of target control unit Often.As it can be seen that by target control unit to the offline storage of the log information of MCU, embodiment of the disclosure preferably solves In the case where accidental sex chromosome mosaicism occurs in MCU, maintenance personal can not analyze what is occurred with positioning vehicle according to the log information of MCU The problem of defect and exception.
In some embodiments, the quantity of journal file is at least two;
The log information that receives is stored to journal file, including:
According to the log information attribute of the log information received, it is literary to corresponding daily record to store the log information received Part;Wherein, log information attribute includes information menace level and/or information category, the different log information of log information attribute It is stored in different journal files.
In embodiment of the disclosure, since the different log information of log information attribute is stored in not by target control unit In same journal file, maintenance personal can be facilitated subsequently to be carried out to the log information with particular log information attribute so fast Quick checking is looked for.
In some embodiments, the log information that the MCU of vehicle is sent is received, including:
Receive log information and the relevant Vehicular system running state information of the log information that the MCU of vehicle is sent;
The log information that receives is stored to journal file, including:
The log information received and Vehicular system running state information are stored to journal file.
In embodiment of the disclosure, log information is not only stored in journal file, it is relevant to be also stored with log information Vehicular system running state information, the Vehicular system running state information can further assist maintenance personal to carry out defect and different Often analysis, so as to further improve the effect of defect and anomaly analysis.
In some embodiments, the log information that target control unit receives includes the first data and the second data, the One data are encrypted to obtain by the MCU log informations for obtaining itself, the daily record that the second data obtain itself by MCU Information is digitally signed processing and obtains;
After storing the log information to journal file received, this method further includes:
In the case where meeting preset condition, the first data in the log information of storage are decrypted, are obtained Corresponding log information.
Wherein, target control unit is decrypted the first data the decipherment algorithm that uses and needs to obtain the with MCU Encryption Algorithm used in one data has correspondence, to ensure the successful decryption of the first data.
The second data in the log information of acquisition and the log information of storage carry out sign test processing;
In sign test success, the log information of acquisition is exported;
When sign test fails, the log information of acquisition is deleted.
In embodiment of the disclosure, the first data are decrypted in target control unit, to obtain corresponding day After will information, target control unit can be digitally signed processing to the log information of acquisition, to obtain third data.It connects Get off, target control unit can compare both the third data of acquisition and the second data in the log information stored It is right.
If determining that the two is identical through comparing, target control unit can determine sign test success, that is, decrypt the day of acquisition The completeness check of will information passes through, at this point, target control unit can directly export the log information of acquisition.Occur in MCU In the case of accidental sex chromosome mosaicism, log information analysis and positioning vehicle that maintenance personal can export according to target control unit go out The defects of existing and exception.
If determining that the two differs by comparison, target control unit can determine that sign test fails, i.e. decryption obtains The completeness check of log information do not pass through, at this point, target control unit can directly delete the daily record letter of decrypted acquisition Breath, to avoid these log informations to the occupancy of memory space.
In some embodiments, in the case where meeting preset condition, to the first data in the log information of storage into Row decryption processing, including:
Cloud server transmission is being received, during to the acquisition instruction of the log information of storage, the daily record of storage is being believed The first data in breath are decrypted;
Specifically, the target control unit of vehicle can pass through Ethernet or universal serial bus (Universal Serial Bus, USB) receive the acquisition instruction that cloud server is sent.
The log information obtained is exported, including:
The log information obtained is sent to cloud server.
After the second data in the log information of acquisition and the log information of storage carry out sign test processing, this method It further includes:
When sign test fails, sign test failure prompt message is sent to cloud server.
Specifically, target control unit can send the daily record obtained to cloud server by Ethernet or USB and believe Breath and sign test failure prompt message.
In embodiment of the disclosure, if the defects of maintenance personal occurs there are remote analysis and positioning vehicle and abnormal need It asks, maintenance personal can send by cloud server to target control unit the acquisition instruction to the log information of storage. In the case of receiving the acquisition instruction, target control unit judgement preset condition meets, at this point, target control unit is solved Close processing and sign test processing.
Successful in sign test, target control unit sends the log information obtained, high in the clouds clothes to cloud server Business device can show the log information received.In this way, the log information that maintenance personal can show according to cloud server is remote The defects of journey is analyzed and positioning vehicle occurs and exception.
In the case of sign test failure, target control unit sends sign test failure prompt message, high in the clouds to cloud server Server can export the sign test received failure prompt message by forms such as voice, words.In this way, maintenance personal is according to cloud The sign test failure prompt message of end server output is that would know that the situation of sign test failure, and maintenance personal can take other in time Treatment measures.
It is relevant general in the log information processing method performed at target control unit that embodiment of the disclosure provides The associated description for being referred to the log information processing method to being performed at MCU is read, details are not described herein.
To sum up, in embodiment of the disclosure, by target control unit to the offline storage of the log information of MCU, in MCU In the case of there is accidental sex chromosome mosaicism, maintenance personal can be analyzed according to the log information that target control unit stores and positioning vehicle The defects of occurring and exception.
Referring to Fig. 3, the structural representation for the log information processing unit 300 that embodiment of the disclosure provides is shown in figure Figure.As shown in figure 3, log information processing unit 300 includes:
First acquisition module 301, at the MCU of vehicle, obtaining log information;
Sending module 302, at the MCU of vehicle, log information to be sent to the target control unit of vehicle;Its In, target control unit includes CPU or SOC.
In some embodiments, as shown in figure 4, log information processing unit 300 further includes:
Second acquisition module 311, for after log information is obtained, obtaining the relevant Vehicular system operation of log information Status information;
Sending module 302, is specifically used for:
Vehicular system running state information is sent to the target control unit of vehicle together with log information.
In some embodiments, as shown in figure 5, log information processing unit 300 further includes:
Processing module 321, for after log information is obtained, log information being encrypted respectively and number label Name processing, to obtain the log information of the log information of encrypted processing and digitally signed processing;
Sending module 302, is specifically used for:
The log information of encrypted processing is sent to the target control of vehicle together with the log information of digitally signed processing Unit processed.
In some embodiments, log information includes log information attribute, and log information attribute includes information menace level And/or information category.
The log information processing unit 300 that embodiment of the disclosure provides, can be performing any of the above-described embodiment The log information processing method performed at MCU of description.Related notion and specific embodiment in the embodiment of the present disclosure The associated description in the log information processing method performed at MCU of any of the above-described embodiment description can be referred to, herein It repeats no more.
To sum up, in embodiment of the disclosure, by target control unit to the offline storage of the log information of MCU, in MCU In the case of there is accidental sex chromosome mosaicism, maintenance personal can be analyzed according to the log information that target control unit stores and positioning vehicle The defects of occurring and exception.
Referring to Fig. 6, the structural representation for the log information processing unit 600 that embodiment of the disclosure provides is shown in figure Figure.As shown in fig. 6, log information processing unit 600 includes:
Receiving module 601, at the target control unit of vehicle, receiving the log information of the MCU of vehicle transmissions;Its In, target control unit includes CPU or SOC;
Memory module 602, at the target control unit of vehicle, storing the log information received to daily record text Part.
In some embodiments, the quantity of journal file is at least two;
Memory module 602, is specifically used for:
According to the log information attribute of the log information received, it is literary to corresponding daily record to store the log information received Part;Wherein, log information attribute includes information menace level and/or information category, the different log information of log information attribute It is stored in different journal files.
In some embodiments, receiving module 601 are specifically used for:
Receive log information and the relevant Vehicular system running state information of the log information that the MCU of vehicle is sent;
Memory module 602, is specifically used for:
The log information received and Vehicular system running state information are stored to journal file.
In some embodiments, the log information that target control unit receives includes the first data and the second data, the One data are encrypted to obtain by the MCU log informations for obtaining itself, the daily record that the second data obtain itself by MCU Information is digitally signed processing and obtains;
As shown in fig. 7, log information processing unit 600 further includes:
Module 611 is obtained, for after the log information to journal file received is stored, meeting preset condition In the case of, the first data in the log information of storage are decrypted, obtain corresponding log information;
Sign test module 612 is tested for the second data in the log information according to acquisition and the log information of storage Label processing;
Output module 613, in sign test success, exporting the log information of acquisition;
Removing module 614, for when sign test fails, deleting the log information of acquisition.
In some embodiments, module 611 is obtained, is specifically used for:
Cloud server transmission is being received, during to the acquisition instruction of the log information of storage, the daily record of storage is being believed The first data in breath are decrypted;
Output module 613, is specifically used for:
The log information obtained is sent to cloud server;
As shown in figure 8, log information processing unit 600, further includes:
Sending module 621 carries out for the second data in the log information according to acquisition and the log information of storage After sign test processing, when sign test fails, sign test failure prompt message is sent to cloud server.
The log information processing unit 600 that embodiment of the disclosure provides, can be performing any of the above-described embodiment The log information processing method performed at target control unit of description.Related notion and tool in embodiment of the disclosure Body embodiment can refer to the log information processing side performed at target control unit of any of the above-described embodiment description Associated description in method, details are not described herein.
To sum up, in embodiment of the disclosure, by target control unit to the offline storage of the log information of MCU, in MCU In the case of there is accidental sex chromosome mosaicism, maintenance personal can be analyzed according to the log information that target control unit stores and positioning vehicle The defects of occurring and exception.
Embodiment of the disclosure also provides a kind of MCU, including processor and memory;Computer is stored in memory to refer to It enables;Processor is coupled with memory, for performing the computer instruction stored in memory;Computer instruction is above-mentioned to perform The log information processing method performed at MCU of any one embodiment description.Related notion in embodiment of the disclosure with And specific embodiment can be referred in the log information processing method performed at MCU of any of the above-described embodiment description Associated description, details are not described herein.
In embodiment of the disclosure, by target control unit to the offline storage of the log information of MCU, occur in MCU In the case of accidental sex chromosome mosaicism, log information analysis and positioning vehicle that maintenance personal can store according to target control unit go out The defects of existing and exception.
Embodiment of the disclosure also provides a kind of target control unit, and target control unit includes CPU or SOC;Also wrap Include memory;CPU or SOC are coupled with memory, for performing the computer instruction stored in memory;Computer instruction is used To perform the log information processing method performed at target control unit of any of the above-described embodiment description.The reality of the disclosure Apply related notion in example and specific embodiment can refer to the description of any of the above-described embodiment in target control unit Locate the associated description in the log information processing method performed, details are not described herein.
In embodiment of the disclosure, by target control unit to the offline storage of the log information of MCU, occur in MCU In the case of accidental sex chromosome mosaicism, log information analysis and positioning vehicle that maintenance personal can store according to target control unit go out The defects of existing and exception.
Referring to Fig. 9, the structure diagram for the vehicle 900 that embodiment of the disclosure provides is shown in figure.As shown in figure 9, Vehicle 900 includes the target control unit that the MCU (assuming that it is MCU901) of above-described embodiment offer and above-described embodiment provide (assuming that it is MCU902);Wherein, MCU901 and target control unit 902 are electrically connected.Correlation in embodiment of the disclosure is general Thought and specific embodiment can refer to the log information processing method performed at MCU of any of the above-described embodiment description And the associated description in the log information processing method performed at target control unit, details are not described herein.
In embodiment of the disclosure, by target control unit 902 to the offline storage of the log information of MCU901, In the case that accidental sex chromosome mosaicism occurs in MCU901, maintenance personal can divide according to the log information that target control unit 902 stores The defects of analysis and positioning vehicle occur and exception.
Referring to Figure 10, the flow chart for the log information processing method that embodiment of the disclosure provides is shown in figure.Such as figure Shown in 10, this method comprises the following steps:
Step 1001, at the MCU of vehicle, log information is obtained;
Step 1002, at the MCU of vehicle, log information is sent to the target control unit of vehicle;Wherein, target control Unit processed includes CPU or SOC.
Step 1003, at the target control unit of vehicle, the log information that the MCU of vehicle is sent is received;
Step 1004, at the target control unit of vehicle, the log information that receives is stored to journal file.
In some embodiments, after obtaining log information, this method further includes:
At the MCU of vehicle, the relevant Vehicular system running state information of log information is obtained;
Log information is sent to the target control unit of vehicle, including:
Vehicular system running state information is sent to the target control unit of vehicle together with log information;
The log information that the MCU of vehicle is sent is received, including:
Receive log information and the relevant Vehicular system running state information of the log information that the MCU of vehicle is sent;
The log information that receives is stored to journal file, including:
The log information received and Vehicular system running state information are stored to journal file.
In some embodiments, after obtaining log information, this method further includes:
At the MCU of vehicle, log information is encrypted respectively and digital signature is handled, to obtain encrypted place The log information of reason and the log information of digitally signed processing;
Log information is sent to the target control unit of vehicle, including:
The log information of encrypted processing is sent to the target control of vehicle together with the log information of digitally signed processing Unit processed;
The log information that target control unit receives includes the first data and the second data, and the first data are by MCU to certainly The log information that body obtains is encrypted to obtain, and the second data carry out digital label by MCU to the log information itself obtained Name processing obtains;
After storing the log information to journal file received, this method further includes:
At the target control unit of vehicle,
In the case where meeting preset condition, the first data in the log information of storage are decrypted, are obtained Corresponding log information;
The second data in the log information of acquisition and the log information of storage carry out sign test processing;
In sign test success, the log information of acquisition is exported;
When sign test fails, the log information of acquisition is deleted.
In some embodiments, in the case where meeting preset condition, to the first data in the log information of storage into Row decryption processing, including:
Cloud server transmission is being received, during to the acquisition instruction of the log information of storage, the daily record of storage is being believed The first data in breath are decrypted;
The log information obtained is exported, including:
The log information obtained is sent to cloud server;
After the second data in the log information of acquisition and the log information of storage carry out sign test processing, this method It further includes:
When sign test fails, sign test failure prompt message is sent to cloud server.
In some embodiments, log information includes log information attribute, and log information attribute includes information menace level And/or information category;The quantity of journal file is at least two;
The log information that receives is stored to journal file, including:
According to the log information attribute of the log information received, it is literary to corresponding daily record to store the log information received Part;Wherein, log information attribute includes information menace level and/or information category, the different log information of log information attribute It is stored in different journal files.
Related notion and specific embodiment in embodiment of the disclosure can be retouched with reference to any of the above-described embodiment In the log information processing method performed at MCU stated and the log information processing method performed at target control unit Associated description, details are not described herein.
In embodiment of the disclosure, by target control unit to the offline storage of the log information of MCU, occur in MCU In the case of accidental sex chromosome mosaicism, log information analysis and positioning vehicle that maintenance personal can store according to target control unit go out The defects of existing and exception.
Embodiment of the disclosure also provides a kind of log information processing system, which includes above-mentioned Log information processing unit 300 and above-mentioned log information processing unit 600.Related notion in embodiment of the disclosure with And specific embodiment can refer to any of the above-described embodiment description MCU at execution log information processing method and Associated description in the log information processing method performed at target control unit, details are not described herein.
In embodiment of the disclosure, by target control unit to the offline storage of the log information of MCU, occur in MCU In the case of accidental sex chromosome mosaicism, log information analysis and positioning vehicle that maintenance personal can store according to target control unit go out The defects of existing and exception.
The specific embodiment of the above, the only disclosure, but the protection domain of the disclosure is not limited thereto, it is any In the technical scope that those familiar with the art discloses in the disclosure, change or replacement can be readily occurred in, should all be contained It covers within the protection domain of the disclosure.Therefore, the protection domain of the disclosure should be subject to the protection scope in claims.

Claims (14)

1. a kind of log information processing method, which is characterized in that the method includes:
At the micro-control unit MCU of vehicle,
Obtain log information;
The log information is sent to the target control unit of the vehicle;Wherein, the target control unit includes center Processor or system level chip SOC.
2. according to the method described in claim 1, it is characterized in that, after the acquisition log information, the method further includes:
Obtain the relevant Vehicular system running state information of the log information;
The target control unit that the log information is sent to the vehicle, including:
The Vehicular system running state information is sent to the target control unit of the vehicle together with the log information.
3. according to the method described in claim 1, it is characterized in that, after the acquisition log information, the method further includes:
The log information is encrypted respectively and digital signature is handled, to obtain the daily record of encrypted processing letter Breath and the log information of digitally signed processing;
The target control unit that the log information is sent to the vehicle, including:
The log information of the log information of encrypted processing together with digitally signed processing is sent to the vehicle Target control unit.
4. according to the method for any one of claims 1 to 3, which is characterized in that the log information includes log information attribute, The log information attribute includes information menace level and/or information category.
5. a kind of log information processing method, which is characterized in that the method includes:
At the target control unit of vehicle,
Receive the log information that the micro-control unit MCU of the vehicle is sent;Wherein, the target control unit includes centre Manage device or system level chip SOC;
The log information that receives is stored to journal file.
6. according to the method described in claim 5, it is characterized in that, the quantity of the journal file is at least two;
The log information that receives of storing to journal file, including:
According to the log information attribute of the log information received, the log information that receives is stored to corresponding journal file;Its In, the log information attribute includes information menace level and/or information category, and the different log information of log information attribute is deposited Storage is in different journal files.
7. according to the method described in claim 5, it is characterized in that, the micro-control unit MCU for receiving the vehicle is sent Log information, including:
Receive log information and the relevant Vehicular system running state information of the log information that the MCU of the vehicle is sent;
The log information that receives of storing to journal file, including:
The log information received and Vehicular system running state information are stored to journal file.
8. according to the method described in claim 5, it is characterized in that, the log information that the target control unit receives includes First data and the second data, first data are encrypted to obtain by the MCU log informations for obtaining itself, Second data are digitally signed processing by the MCU log informations obtained to itself and obtain;
After the log information to journal file that the storage receives, the method further includes:
In the case where meeting preset condition, the first data in the log information of storage are decrypted, are obtained corresponding Log information;
The second data in the log information of acquisition and the log information of storage carry out sign test processing;
In sign test success, the log information of acquisition is exported;
When sign test fails, the log information of acquisition is deleted.
9. according to the method described in claim 8, it is characterized in that, described in the case where meeting preset condition, to storage The first data in log information are decrypted, including:
Cloud server transmission is being received, during to the acquisition instruction of the log information of storage, in the log information of storage The first data be decrypted;
The log information that the output obtains, including:
The log information obtained is sent to cloud server;
After the second data in the log information according to acquisition and the log information of storage carry out sign test processing, the side Method further includes:
When sign test fails, sign test failure prompt message is sent to the cloud server.
10. a kind of log information processing unit, which is characterized in that including:
First acquisition module, at the micro-control unit MCU of vehicle, obtaining log information;
Sending module, at the micro-control unit MCU of vehicle, the log information to be sent to the target control of the vehicle Unit processed;Wherein, the target control unit includes central processing unit or system level chip SOC.
11. a kind of log information processing unit, which is characterized in that including:
Receiving module, at the target control unit of vehicle, receiving the daily record of the micro-control unit MCU of vehicle transmissions Information;Wherein, the target control unit includes central processing unit or system level chip SOC;
Memory module, at the target control unit of vehicle, storing the log information received to journal file.
12. a kind of micro-control unit MCU, which is characterized in that including:Processor and memory;Meter is stored in the memory Calculation machine instructs;The processor is coupled with the memory, for performing the computer instruction stored in the memory;It is described Computer instruction is performing method according to any one of claims 1 to 4.
13. a kind of target control unit, which is characterized in that the target control unit includes central processing unit or system-level core Piece SOC;Further include memory;The central processing unit or the SOC are coupled with the memory, for performing the storage The computer instruction stored in device;The computer instruction is performing the method as described in any one of claim 5 to 9.
14. a kind of vehicle, which is characterized in that including micro-control unit MCU as claimed in claim 12 and such as claim 13 The target control unit;Wherein, the MCU and target control unit electrical connection.
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 true CN108237994A (en) 2018-07-03
CN108237994B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102019201953A1 (en) * 2019-02-14 2020-08-20 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
CN115242841A (en) * 2022-07-22 2022-10-25 蔚来汽车科技(安徽)有限公司 Vehicle operation log processing system and method
CN115277780A (en) * 2022-07-30 2022-11-01 重庆长安汽车股份有限公司 Vehicle-end log obtaining method and device, electronic equipment and computer-readable storage medium
CN115426279A (en) * 2022-08-31 2022-12-02 东风电驱动系统有限公司 Equipment operation information acquisition system and acquisition method
CN115442224A (en) * 2022-05-05 2022-12-06 北京罗克维尔斯科技有限公司 MCU log processing method and device and vehicle
CN116701335A (en) * 2023-05-17 2023-09-05 中国第一汽车股份有限公司 Cross-system log data processing method for vehicle-mounted cabin domain controller

Citations (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
CN103543399A (en) * 2013-10-31 2014-01-29 哈尔滨工业大学 Car CAN bus module fully-automatic detection system and method based on PCI board card
KR101584322B1 (en) * 2014-07-23 2016-01-13 티에스 주식회사 System for driving vehicle having hermetically sealed battery pack based on air cooling type

Patent Citations (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
CN103543399A (en) * 2013-10-31 2014-01-29 哈尔滨工业大学 Car CAN bus module fully-automatic detection system and method based on PCI board card
KR101584322B1 (en) * 2014-07-23 2016-01-13 티에스 주식회사 System for driving vehicle having hermetically sealed battery pack based on air cooling type

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102019201953A1 (en) * 2019-02-14 2020-08-20 Audi Ag Method and detection device for detecting an intervention in a motor vehicle and motor vehicle with a detection device
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
CN115277780A (en) * 2022-07-30 2022-11-01 重庆长安汽车股份有限公司 Vehicle-end log obtaining method and device, electronic equipment and computer-readable storage medium
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
CN116701335A (en) * 2023-05-17 2023-09-05 中国第一汽车股份有限公司 Cross-system log data processing method for vehicle-mounted cabin domain controller

Also Published As

Publication number Publication date
CN108237994B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN108237994A (en) Log information processing method, log information processing unit and micro-control unit MCU
CN111694841B (en) Order identification generation method, device, server and storage medium
CN104914849A (en) Fault recording device and method
JP6585113B2 (en) Data storage device
CN103246280B (en) A kind of electric automobile diagnostic system
CN102737192B (en) A kind of trusted program operation file backup method stored based on cloud
CN104914815A (en) Processor monitoring method, device and system
CN115002062B (en) Message processing method, device, equipment and readable storage medium
CN110949173A (en) Charging method and device
CN117033421A (en) Vehicle fault analysis method, device, equipment, medium and product
CN108205482B (en) File mount restoration methods
CN110223417B (en) Electric vehicle information recording method and device, handheld device and storage medium
CN116545709A (en) Sensitive data tracing method, device and equipment
CN109278678A (en) Vehicle trouble judges system
CN101913296A (en) Printing system, control method thereof, information recorder
CN104683172A (en) Data acquisition and analysis monitoring system
CN104516953B (en) A kind of black box subsystem for power dispatching automation magnanimity message
CN108876963A (en) A kind of storage method, device, microprocessor and the storage medium of automobile log
US11815870B2 (en) Carrying out calculation methods with a control unit of a transportation vehicle
CN101976472B (en) Vehicle-mounted data recorder
CN203365649U (en) Lithium battery monitoring system with fault diagnosis device
CN116151994A (en) Structured data computing method, computing engine, device and readable storage medium
CN109246737B (en) Cloud mobile phone automatic recovery method and system
CN102571723A (en) Data transmission method and system approved by third party
CN113392079B (en) Distributed storage cluster log storage optimization method, system and terminal

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