Vehicle log processing method and device

By installing a log file parsing unit and a main controller in the vehicle, transferring the target log file to the cloud and issuing alarm information, it solves the problem of difficult to efficiently obtain vehicle log files in the existing technology, and realizes efficient and accurate log file acquisition .

CN119479106APending Publication Date: 2025-02-18SAIC MOTOR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411619461.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently obtain vehicle log files that need attention from a large number of log files generated during vehicle operation.

Method used

By installing a log file analysis unit in the vehicle, the log files generated by multiple subcontrollers are parsed, the target log files of the target risk level are determined, and the target data is transmitted to the cloud through the main controller, and the alarm information is transferred through the log alarm unit Send to the mobile terminal.

Benefits of technology

It realizes efficient acquisition of vehicle log files that need attention from a large number of log files generated during vehicle operation, and improves the efficiency and accuracy of log files acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119479106A_ABST
    Figure CN119479106A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle log processing method and device, and relates to the technical field of automobile software engineering. Comprising the steps of analyzing a plurality of log files generated by a plurality of sub-controllers in a vehicle through a log file analysis unit installed in the vehicle, and determining a target log file of a target risk level; and transmitting the target data to a cloud through a log file transmission unit installed in a main controller of the vehicle so as to send alarm information corresponding to the target data to a mobile terminal through a log alarm unit in the cloud. Thus, after receiving the alarm information, a user using the mobile terminal can efficiently obtain the target data corresponding to the alarm information, that is, the target log file and the information of the controller generating the target log file can be efficiently obtained, and the target log file can be efficiently obtained from a large number of log files generated in the vehicle running process. And the target of the log file of the vehicle needing to be concerned is efficiently obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of automobile software engineering, and in particular to a vehicle log processing method and device. Background Art

[0002] The log files generated by the vehicle's controller are electronic documents that record detailed information such as various states, operating instructions, fault information, sensor data, and system responses of the vehicle control system during operation. These logs are essential for diagnosing vehicle problems, monitoring vehicle performance, optimizing control strategies, and ensuring driving safety. The vehicle's log files provide technicians with important clues for analyzing and troubleshooting abnormal vehicle behavior.

[0003] Therefore, efficiently obtaining the log files of vehicles that need attention from the large number of log files generated during vehicle operation has become one of the technical problems that need to be urgently solved in the field of automotive software engineering technology. Summary of the invention

[0004] Based on the above problems, the present application provides a vehicle log processing method for efficiently acquiring log files of vehicles that need attention from a large number of log files generated during vehicle operation.

[0005] The embodiments of the present application disclose the following technical solutions:

[0006] The present application provides a vehicle log processing method, the method comprising:

[0007] Parsing a plurality of log files generated by a plurality of sub-controllers in the vehicle by a log file parsing unit installed in the vehicle to determine a target log file of a target risk level;

[0008] The target data is transmitted to the cloud through the log file transmission unit installed in the main controller of the vehicle, so that the alarm information corresponding to the target data is sent to the mobile terminal through the log alarm unit in the cloud; the target data includes the target log file and the information of the sub-controller that generates the target log file.

[0009] In an optional implementation, the log file parsing unit installed in the vehicle parses multiple log files generated by multiple sub-controllers in the vehicle to determine a target log file of a target risk level, including:

[0010] Parsing a plurality of log files generated by a plurality of sub-controllers in the vehicle by a log file parsing unit installed in the vehicle to determine a keyword of each of the log files;

[0011] The target log file is determined by a risk level management unit installed in the main controller based on the keywords of each log file and a log level risk list; the log level risk list is used to indicate the correspondence between the keywords of the log file and the risk level.

[0012] In an optional implementation, the method for generating the log level risk list includes:

[0013] The log level risk list is generated through the risk level management unit.

[0014] In an optional implementation, the log file parsing unit installed in the vehicle parses multiple log files generated by multiple sub-controllers in the vehicle to determine the keywords of each log file, including:

[0015] The log file generated by each sub-controller of the vehicle is parsed by a log file parsing unit installed in the sub-controller to determine a keyword of each log file.

[0016] In an optional implementation, the log file parsing unit installed in the vehicle parses multiple log files generated by multiple sub-controllers in the vehicle to determine the keywords of each log file, including:

[0017] A log file parsing unit installed in the main controller of the vehicle is used to parse multiple log files generated by multiple sub-controllers in the vehicle to determine keywords of each log file.

[0018] In an optional implementation, the method further includes:

[0019] After the newly added controller is powered on, the information of the newly added controller is registered with the main controller of the vehicle through a log registration service unit installed in a sub-controller of the vehicle; the newly added controller is a sub-controller newly added to the vehicle.

[0020] A second aspect of the present application discloses a vehicle log processing method, the method comprising:

[0021] Determine query information of the log file to be queried through a log configuration management unit and a target log list installed in the cloud; the target log list is a list including the names of the log files generated by the sub-controller of the target vehicle;

[0022] The query information of the log file to be queried is sent to the vehicle through the log file transmission unit installed in the cloud, so that the target log file to be queried is transmitted to the cloud through the log file parsing unit, the log file compression unit and the log file transmission unit installed in the vehicle.

[0023] In an optional implementation, the method for obtaining the target log list includes:

[0024] The target log list is sent to the cloud through a log transmission unit in a sub-controller and a log transmission unit in a main controller installed in the target vehicle.

[0025] A third aspect of the present application discloses a vehicle log processing device, the device comprising:

[0026] a target log file determination module, configured to parse a plurality of log files generated by a plurality of sub-controllers in the vehicle through a log file parsing unit installed in the vehicle, and determine a target log file of a target risk level;

[0027] The target log file alarm module is used to transmit the target data to the cloud through the log file transmission unit installed in the main controller of the vehicle, so that the alarm information corresponding to the target data can be sent to the mobile terminal through the log alarm unit in the cloud; the target data includes the target log file and the information of the sub-controller that generates the target log file.

[0028] A fourth aspect of the present application discloses a vehicle log processing device, the device comprising:

[0029] A module for determining log files to be queried, used to determine query information of log files to be queried through a log configuration management unit and a target log list installed in the cloud; the target log list is a list including the names of log files generated by a sub-controller of a target vehicle;

[0030] The module for acquiring the log file to be queried is used to send the query information of the log file to be queried to the vehicle through the log file transmission unit installed in the cloud, so as to transmit the target log file to be queried to the cloud through the log file parsing unit, the log file compression unit and the log file transmission unit installed in the vehicle.

[0031] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any implementation of the first aspect and the second aspect.

[0032] A sixth aspect of the present application provides an electronic device, including:

[0033] a memory having a computer program stored thereon;

[0034] A processor is used to execute the computer program in the memory to implement the steps of the method introduced in any implementation of the first aspect and the second aspect.

[0035] Compared with the prior art, this application has the following beneficial effects:

[0036] The present application discloses a vehicle log processing method, including: parsing multiple log files generated by multiple sub-controllers in the vehicle through a log file parsing unit installed in the vehicle to determine a target log file of a target risk level; transmitting the target data to the cloud through a log file transmission unit installed in the main controller of the vehicle, so that the alarm information corresponding to the target data is sent to the mobile terminal through the log alarm unit in the cloud. In this way, after receiving the alarm information, the user using the mobile terminal can efficiently obtain the target data corresponding to the alarm information, that is, the target log file and the information of the controller that generates the target log file can be efficiently obtained, achieving the goal of efficiently obtaining the log file of the vehicle that needs attention from the large number of log files generated during the operation of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0038] Figure 1 A schematic diagram of a vehicle network topology diagram is provided for an embodiment of the present application;

[0039] Figure 2 A flow chart of a vehicle log processing method provided in an embodiment of the present application;

[0040] Figure 3 An interaction diagram of a log upload registration service provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of a vehicle network provided in an embodiment of the present application;

[0042] Figure 5 A flowchart of another vehicle log processing method provided in an embodiment of the present application;

[0043] Figure 6A schematic diagram of the structure of a vehicle log processing device provided in an embodiment of the present application;

[0044] Figure 7 A schematic diagram of the structure of another vehicle log processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The log files generated by the vehicle controller are electronic documents that record detailed information such as various states, operating instructions, fault information, sensor data, and system responses of the vehicle control system during operation. These logs are essential for diagnosing vehicle problems, monitoring vehicle performance, optimizing control strategies, and ensuring driving safety. The vehicle log files provide important clues for technicians to analyze and troubleshoot abnormal vehicle behavior. Therefore, how to efficiently obtain the log files of vehicles that need attention from the large number of log files generated during vehicle operation has become one of the technical problems that need to be solved in the field of automotive software engineering technology.

[0046] The present application discloses a vehicle log processing method, including: parsing multiple log files generated by multiple sub-controllers in the vehicle through a log file parsing unit installed in the vehicle to determine a target log file of a target risk level; transmitting the target data to the cloud through a log file transmission unit installed in the main controller of the vehicle, so that the alarm information corresponding to the target data is sent to the mobile terminal through the log alarm unit in the cloud. In this way, after receiving the alarm information, the user using the mobile terminal can efficiently obtain the target data corresponding to the alarm information, that is, the target log file and the information of the controller that generates the target log file can be efficiently obtained, achieving the goal of efficiently obtaining the log file of the vehicle that needs attention from the large number of log files generated during the operation of the vehicle.

[0047] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] Figure 1 A schematic diagram of a vehicle network topology diagram is provided for an embodiment of the present application. Figure 1 As shown, the vehicle network topology diagram disclosed in this application includes: the vehicle side (also called vehicle) and the cloud side. The vehicle side can be subdivided into the vehicle's sub-controller and main controller, where the main controller is also called mater; the cloud side can be divided into the storage side (also called cloud) and the visualization side (also called pc).

[0049] It is understandable that there are multiple sub-control units in a vehicle, including but not limited to: brake controller, air conditioning controller, body controller, airbag controller, body stability controller, auxiliary driving controller, transmitter controller and transmission controller, etc. There is a master controller, i.e., the central controller, in the vehicle. A sub-controller in the vehicle can generate multiple log files.

[0050] Combination Figure 1 As shown, a file directory generation unit, a log file compression unit, a log registration service unit, a log file transmission unit, and a log file parsing unit may be installed in the sub-controller on the vehicle side.

[0051] A log file transmission unit, a log file parsing unit and a risk level management unit may be installed in the main controller on the vehicle side.

[0052] The cloud in the cloud, i.e. the storage end, can be installed with a log configuration management unit, a log alarm unit and a log file transmission unit. The PC in the cloud, i.e. the display interface, can be installed with a log selection unit, an alarm information viewing unit and a log download unit.

[0053] Combination Figure 1 The functions of each unit shown are as follows:

[0054] The file directory generating unit is used to obtain all log file directories in the corresponding sub-controller as a log list.

[0055] The log file compression unit is used to compress and package the log files to be uploaded to reduce the size of the transmission data packet.

[0056] The log registration service unit is used to register the information of the newly added controller into the main controller.

[0057] The log file parsing unit is used to parse the log file and determine the keywords in the log file.

[0058] The log file transfer unit transfers files based on a clear communication protocol between the ends.

[0059] The risk level management unit is used to generate a log level risk list; and determine the risk level of the log file based on the log level risk list and the keywords of the log file.

[0060] The log alarm unit is used to transmit the alarm information corresponding to the target data to the mobile terminal after receiving the target data (the target log file and the information of the sub-controller generating the target log file).

[0061] The log configuration management unit is used to set the type and risk level of the log file to be queried.

[0062] The log selection unit is used to select the log file to be uploaded through the log directory displayed on the PC.

[0063] The alarm information viewing unit is used to view the content of the alarm information.

[0064] The log download unit is used to download log files from the cloud to the PC and open the log files for viewing.

[0065] It should be noted that the following examples of this application will be described in detail. Figure 1 How can the various units work together to efficiently obtain the log files required by technicians in different usage scenarios.

[0066] Embodiment 1:

[0067] With the development of Internet of Vehicles technology, technicians or users can determine the cause of vehicle failure by analyzing the log files of the vehicle's neutron controller. However, vehicle failures are more likely to occur when users are using the vehicle. When users report a vehicle failure, the vehicle failure has often occurred for some time. When the vehicle is started and connected to the network, the log file that caused the vehicle failure may have been overwritten by the latest log file; or, because the log file is not captured in the first place, even if the log file still exists, the efficiency of finding it is very low.

[0068] To solve the above problems, the present application discloses a vehicle log processing method. Figure 2 A flow chart of a vehicle log processing method provided in an embodiment of the present application. Figure 1 and Figure 2 , the log processing method disclosed in this application is described in detail.

[0069] Combination Figure 2 As shown, the vehicle log processing method disclosed in this application includes:

[0070] S201, parsing a plurality of log files generated by a plurality of sub-controllers in the vehicle through a log file parsing unit installed in the vehicle to determine a target log file of a target risk level.

[0071] S201 includes the following two steps:

[0072] The first step: a log file parsing unit installed in the vehicle can be used to parse multiple log files generated by multiple sub-controllers in the vehicle to determine keywords for each log file.

[0073] The log file parsing unit may be installed in a sub-controller or in a main controller. The installation location of the log file parsing unit is not limited in this application.

[0074] If the log file parsing unit is installed in a sub-controller, the log file generated by the sub-controller can be parsed by the log file parsing unit installed in each sub-controller of the vehicle to determine the keywords of each log file.

[0075] If the log file parsing unit is installed in the main controller, multiple log files generated by multiple sub-controllers in the vehicle can be parsed by the log file parsing unit installed in the main controller of the vehicle to determine the keywords of each log file.

[0076] Among them, the keywords in this application include but are not limited to "error" and "warning".

[0077] In the second step, the target log file is determined based on the keyword of each log file and the log level risk list through the risk level management unit installed in the main controller.

[0078] The log level risk list in this application is used to indicate the corresponding relationship between the keywords of the log file and the risk level. Those skilled in the art can preset the corresponding relationship between the keywords of the log file and the risk level in the risk management unit through the control interface.

[0079] For example, the log files in the vehicle system can be classified into different levels in advance, such as "error" and "warning". "Error" indicates a serious error and it is recommended to fix it immediately; "warning" represents a general error and it is recommended to fix it, but it will not cause serious problems if it is not fixed.

[0080] Furthermore, different response mechanisms are set for log files of different risk levels. For example, when an "error" is found, an alarm message is sent to the PC immediately to inform the staff; when a "warning" is found, no action is taken.

[0081] In summary, the log level risk list is expressed as follows: "error" indicates a level 1 risk or a high risk, and an alarm message is sent to the PC immediately; "warning" indicates a level 2 risk or a low risk, and no action is taken.

[0082] S202, transmitting the target data to the cloud through the log file transmission unit installed in the main controller of the vehicle, so that the alarm information corresponding to the target data is sent to the mobile terminal through the log alarm unit in the cloud.

[0083] Specifically, after determining the target log file of the target risk level, the target data can be transmitted to the target log file transmission unit installed in the main controller of the vehicle. Figure 1 of the cloud.

[0084] After receiving the target log file, the cloud in the cloud sends the high-precision information corresponding to the target data to the mobile terminal, i.e., the PC, through the log alarm unit in the cloud.

[0085] Among them, the target file in this application includes the target log file and the information of the sub-controller that generates the target log file.

[0086] It is understandable that after receiving the alarm information, the user of the mobile terminal can view the content of the alarm information through the alarm information viewing unit of the PC end; and download the target log file through the log downloading unit of the PC end.

[0087] In this way, after receiving the alarm information, the user using the mobile terminal can efficiently obtain the target data corresponding to the alarm information, that is, can efficiently obtain the target log file and the information of the controller that generates the target log file, thereby achieving the goal of efficiently obtaining the log files of the vehicle that needs attention from the large number of log files generated during the operation of the vehicle.

[0088] Embodiment 2:

[0089] With the development of vehicle networking technology, vehicle fault analysis can be solved remotely. For example, when a vehicle fault occurs, the technician can capture the vehicle's log files that may be related to the vehicle fault and determine the cause of the vehicle fault by analyzing the log files.

[0090] However, there is an obvious problem in this scenario, that is, the log upload function is used after the vehicle system is developed. If a new controller is needed in the vehicle to upload log files, the function of the vehicle system needs to be redeveloped.

[0091] For example, vehicle A supports the function of uploading log files for intelligent driving. Now a trailer module needs to be added to vehicle A, but the trailer module is very prone to failure and log files need to be captured frequently. At this time, it is necessary to modify the log upload function on the vehicle A's onboard system so that vehicle A supports the log file upload function of the trailer module to ensure that the log files corresponding to the trailer module can be successfully uploaded to the cloud.

[0092] To solve this problem, in this application, a log registration service unit is installed in the sub-controller of the vehicle. In this application, the sub-controller newly added to the vehicle is regarded as a newly added controller. When the newly added controller is powered on, the information of the newly added controller is registered with the main controller of the vehicle through the log registration service unit installed in the sub-controller of the vehicle.

[0093] Figure 3 An interactive diagram of a log upload registration service provided in an embodiment of the present application. Figure 3 As shown, the process of log upload registration service in this application is as follows:

[0094] When a new sub-controller, i.e. a newly added controller, is powered on, the log registration service unit installed on the newly added controller will check whether the flag for log upload of the newly added controller is true ( Figure 3 If the flag is true, the log registration service unit installed on the newly added controller will register the sub-controller information to the main controller. During the registration process, the controllers inside the vehicle use a standard communication protocol; the sub-controller registration information includes but is not limited to: the name and address of the sub-controller.

[0095] When the main controller receives the registration information, the main controller will add the information of the newly added controller to the list of controllers that support log upload, and then the main controller will return the addition result to the newly added controller.

[0096] If the returned result indicates that the registration is successful, the log registration service unit installed on the newly added controller will change the flag of the newly added controller's log upload to true; if the returned result indicates that the registration fails, the retry mechanism is started ( Figure 3 If the process succeeds, set Flag to true; if it fails, try again).

[0097] The reset mechanism includes the number of resets and the time interval between retries, which can be predefined. The relevant contents of the reset mechanism are not described in detail in this application.

[0098] To sum up, as long as the log registration service unit is installed in the newly added sub-controller of the vehicle, the dynamic expansion of the vehicle log upload function can be achieved, that is, the control information of the newly added controller can be efficiently and conveniently registered to the main controller to ensure that the log file corresponding to the newly added controller can be successfully uploaded to the cloud, which solves the disadvantages of the traditional solution that it requires changes to the vehicle's existing on-board system, which is cumbersome and labor-intensive.

[0099] Embodiment three:

[0100] In the field of automotive software engineering technology, in addition to the dynamic early warning of log files with target risk levels and the dynamic expansion of the vehicle log upload function mentioned in the aforementioned embodiments, there is also a situation where technicians or users need to efficiently obtain specific log files in a specific vehicle connected to the cloud.

[0101] Figure 4 A schematic diagram of a vehicle network provided in an embodiment of the present application. Figure 4 As shown, multiple vehicles such as vehicle 1 and vehicle 2 are connected to the cloud; multiple PC users such as PC user 1 and PC user 2 are also connected to the cloud. Figure 4 The Master in the figure is the main controller in the aforementioned embodiment; controller 1 and controller 2, etc. are the sub-controllers mentioned in the aforementioned embodiment.

[0102] In the traditional solution, the process of uploading the log files generated by the vehicle's sub-controller is: Figure 4 The PC user in the example selects a car that is currently connected to the cloud, such as vehicle 1, through the cloud; further selects the controller of the car that needs to upload log files, such as controller 1; the PC user terminal presents a list of all log files of controller 1; the user selects the specific log file that needs to be uploaded; controller 1 sends the corresponding log file to the cloud through the Master, and the cloud sends it to the PC terminal; the PC terminal can view the specific log file. As can be seen from the above content, the traditional solution cannot efficiently view the log files of a specific type or a specific risk level of controller 1 of vehicle 1.

[0103] To solve the above problems, another vehicle log processing method is disclosed in the present application. Figure 5 A flowchart of another vehicle log processing method provided in an embodiment of the present application. Figure 1 and Figure 5 , another vehicle log processing method disclosed in this application is described in detail.

[0104] Combination Figure 5 As shown, another vehicle log processing method disclosed in the present application includes:

[0105] S501, determining query information of the log file to be queried through the log configuration management unit and the target log list installed in the cloud.

[0106] The target log list in this application is a list of log file names generated by the sub-controller of the target vehicle. For example, the target log list can be Figure 4 The directory of log files in controller 1 of vehicle 1.

[0107] Exemplarily, the target log list in the controller 1 of the vehicle 1 can be transmitted to the cloud through the log file transmission unit installed in the controller 1 and the log file transmission unit installed in the main controller; in this way, the PC can read the target log list received in the cloud.

[0108] In an optional implementation, the log file to be queried is determined to be:

[0109] When the PC displays the target log list, the user of the PC can select which log files in the target log list need to be obtained through the log selection unit integrated in the PC.

[0110] For example, the log file list includes the names of 10 log files. The user can select the names of the log files to be viewed through the log selection unit integrated in the PC, which are log file 1, log file 3, log file 5 and log file 7.

[0111] At the same time, users can further set the risk level of log files to be queried through the log configuration management unit integrated in the cloud. For example, you can set the high-risk level log files corresponding to "error" to be queried.

[0112] Through the above two steps, it is determined that the query information of the log file to be queried is: querying the information of the log files with corresponding high risk levels in log file 1, log file 3, log file 5 and log file 7.

[0113] It can be understood that, through the operation in S501, the user presets the log files of a specific controller and / or a specific risk level that need to be obtained from a large number of files.

[0114] S502, sending the query information of the log file to be queried to the vehicle through the log file transmission unit installed in the cloud, so that the target log file to be queried is transmitted to the cloud through the log file parsing unit, log file compression unit and log file transmission unit installed in the vehicle.

[0115] After determining the query information of the log file to be queried, the query information of the log file to be queried can be transmitted to the main controller of the vehicle through the log file transmission unit installed in the cloud; and then the query information of the log file to be queried can be transmitted to the sub-controller through the log file transmission unit in the main controller of the vehicle.

[0116] After receiving the query information of the log file to be queried, the sub-controller will first obtain several log files checked in the target log list, that is, first obtain log file 1, log file 3, log file 5 and log file 7; then parse log file 1, log file 3, log file 5 and log file 7 through the log file parsing unit integrated in the vehicle, and determine the log files with high risk levels from log file 1, log file 3, log file 5 and log file 7 as the log files to be queried; then compress the above-mentioned log files to be queried through the file compression unit in the sub-controller, and transmit them to the cloud through the log file transmission unit in the sub-controller and the log file transmission unit in the main controller for users to preview and download.

[0117] In this way, through another vehicle log processing method disclosed in this application, log files of a specific risk level type in a specific sub-controller in a target vehicle can be efficiently obtained from a large number of log files.

[0118] Based on the vehicle log processing method disclosed in the aforementioned embodiment, the present application also discloses a vehicle log processing device. Figure 6 A schematic diagram of the structure of a vehicle log processing device provided in an embodiment of the present application. Figure 6 As shown, the vehicle log processing device 600 disclosed in the present application includes:

[0119] A target log file determination module 601 is used to parse multiple log files generated by multiple sub-controllers in the vehicle through a log file parsing unit installed in the vehicle to determine a target log file of a target risk level;

[0120] The target log file alarm module 602 is used to transmit the target data to the cloud through the log file transmission unit installed in the main controller of the vehicle, so that the alarm information corresponding to the target data can be sent to the mobile terminal through the log alarm unit in the cloud; the target data includes the target log file and the information of the sub-controller that generates the target log file.

[0121] In an optional implementation, the target log file determination module 601 includes:

[0122] a keyword determination unit, configured to parse a plurality of log files generated by a plurality of sub-controllers in the vehicle through a log file parsing unit installed in the vehicle, and determine a keyword for each of the log files;

[0123] The target log file determination unit is used to determine the target log file based on the keywords of each log file and the log level risk list through the risk level management unit installed in the main controller; the log level risk list is used to indicate the correspondence between the keywords of the log file and the risk level.

[0124] In an optional implementation, the keyword determination unit includes:

[0125] The first keyword determination subunit is used to parse the log file generated by each sub-controller of the vehicle through a log file parsing unit installed in the sub-controller, and determine the keyword of each log file.

[0126] In an optional implementation, the keyword determination unit includes:

[0127] The second keyword determination subunit is used to parse multiple log files generated by multiple sub-controllers in the vehicle through a log file parsing unit installed in the main controller of the vehicle to determine the keyword of each log file.

[0128] In an optional implementation, the vehicle log processing device 600 further includes:

[0129] The risk level list generating unit is used to generate the log level risk list through the risk level management unit.

[0130] In an optional implementation, the vehicle log processing device 600 further includes:

[0131] The information registration module is used to register the information of the newly added controller with the main controller of the vehicle through a log registration service unit installed in the sub-controller of the vehicle after the newly added controller is powered on; the newly added controller is a sub-controller newly added to the vehicle.

[0132] Based on another vehicle log processing method disclosed in the aforementioned embodiment, another vehicle log processing device is also disclosed in the present application. Figure 7 A schematic diagram of the structure of another vehicle log processing device provided in an embodiment of the present application. Figure 7 As shown, another vehicle log processing device 700 disclosed in the present application includes:

[0133] The to-be-queried log file determination module 701 is used to determine the query information of the to-be-queried log file through the log configuration management unit and the target log list installed in the cloud; the target log list is a list including the names of the log files generated by the sub-controller of the target vehicle;

[0134] The log file to be queried acquisition module 702 is used to send the query information of the log file to be queried to the vehicle through the log file transmission unit installed in the cloud, so that the target log file to be queried is transmitted to the cloud through the log file parsing unit, log file compression unit and log file transmission unit installed in the vehicle.

[0135] In an optional implementation, another vehicle log processing device 700 further includes:

[0136] The target log list acquisition unit is used to send the target log list to the cloud through the log transmission unit in the sub-controller installed in the target vehicle and the log transmission unit in the main controller.

[0137] Based on the vehicle log processing method and device provided in the aforementioned embodiments, the present application also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements some or all of the steps in the vehicle log processing method mentioned above.

[0138] Based on the vehicle log processing method and device provided in the above embodiments, the present application further provides an electronic device, including:

[0139] a memory having a computer program stored thereon;

[0140] The processor is used to execute the computer program in the memory to implement part or all of the steps in the vehicle log processing method provided in the above embodiment.

[0141] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely schematic, in which the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0142] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A vehicle log processing method, characterized in that: The method comprises: Parsing a plurality of log files generated by a plurality of sub-controllers in the vehicle by a log file parsing unit installed in the vehicle to determine a target log file of a target risk level; The target data is transmitted to the cloud through the log file transmission unit installed in the main controller of the vehicle, so that the alarm information corresponding to the target data is sent to the mobile terminal through the log alarm unit in the cloud; the target data includes the target log file and the information of the sub-controller that generates the target log file.

2. The method according to claim 1, characterized in that The log file parsing unit installed in the vehicle parses multiple log files generated by multiple sub-controllers in the vehicle to determine a target log file of a target risk level, including: Parsing a plurality of log files generated by a plurality of sub-controllers in the vehicle by a log file parsing unit installed in the vehicle to determine a keyword of each of the log files; The target log file is determined by a risk level management unit installed in the main controller based on the keywords of each log file and a log level risk list; the log level risk list is used to indicate the correspondence between the keywords of the log file and the risk level.

3. The method according to claim 2, characterized in that The method for generating the log level risk list includes: The log level risk list is generated through the risk level management unit.

4. The method according to claim 2, characterized in that: The log file parsing unit installed in the vehicle parses a plurality of log files generated by a plurality of sub-controllers in the vehicle to determine a keyword of each of the log files, including: The log file generated by each sub-controller of the vehicle is parsed by a log file parsing unit installed in the sub-controller to determine a keyword of each log file.

5. The method according to claim 2, characterized in that: The log file parsing unit installed in the vehicle parses a plurality of log files generated by a plurality of sub-controllers in the vehicle to determine a keyword of each of the log files, including: A log file parsing unit installed in the main controller of the vehicle is used to parse multiple log files generated by multiple sub-controllers in the vehicle to determine keywords of each log file.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: After the newly added controller is powered on, the information of the newly added controller is registered with the main controller of the vehicle through a log registration service unit installed in a sub-controller of the vehicle; the newly added controller is a sub-controller newly added to the vehicle.

7. A vehicle log processing method, characterized in that: The method comprises: Determine query information of the log file to be queried through a log configuration management unit and a target log list installed in the cloud; the target log list is a list including the names of the log files generated by the sub-controller of the target vehicle; The query information of the log file to be queried is sent to the vehicle through the log file transmission unit installed in the cloud, so that the target log file to be queried is transmitted to the cloud through the log file parsing unit, the log file compression unit and the log file transmission unit installed in the vehicle.

8. The method according to claim 7, characterized in that The method for obtaining the target log list includes: The target log list is sent to the cloud through a log transmission unit in a sub-controller and a log transmission unit in a main controller installed in the target vehicle.

9. A vehicle log processing device, characterized in that: The device comprises: a target log file determination module, configured to parse a plurality of log files generated by a plurality of sub-controllers in the vehicle through a log file parsing unit installed in the vehicle, and determine a target log file of a target risk level; The target log file alarm module is used to transmit the target data to the cloud through the log file transmission unit installed in the main controller of the vehicle, so that the alarm information corresponding to the target data can be sent to the mobile terminal through the log alarm unit in the cloud; the target data includes the target log file and the information of the sub-controller that generates the target log file.

10. A vehicle log processing device, characterized in that: The device comprises: A module for determining log files to be queried, used to determine query information of log files to be queried through a log configuration management unit and a target log list installed in the cloud; the target log list is a list including the names of log files generated by a sub-controller of a target vehicle; The module for acquiring the log file to be queried is used to send the query information of the log file to be queried to the vehicle through the log file transmission unit installed in the cloud, so as to transmit the target log file to be queried to the cloud through the log file parsing unit, the log file compression unit and the log file transmission unit installed in the vehicle.