In-vehicle infotainment log recording method and system, and vehicle

By processing, classifying and real-time statistics of log information during the logging process, the problem of difficulty in dynamic statistics during the logging process in the prior art is solved, and more efficient and accurate log statistics are achieved, meeting complex business needs.

WO2025123746A1PCT designated stage expired Publication Date: 2025-06-19CHINA FAW CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/112985
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-13
Filing Date
2024-08-19
Publication Date
2025-06-19

AI Technical Summary

Technical Problem

In the prior art, logging methods are difficult to perform dynamic statistics during logging, resulting in insufficient log analysis and low storage efficiency, which cannot meet complex business needs.

Method used

By responding to log output requests during the log recording process, processing and generating log information, classifying log information based on defined log rules, and real-time statistics of classified log information based on defined statistical rules to generate statistical results.

Benefits of technology

It realizes dynamic statistics related information during the logging process, improves statistics accuracy and efficiency, reduces the workload of later statistics, and allows statistics of various indicators to be more accurately counted.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024112985_19062025_PF_FP_ABST
    Figure CN2024112985_19062025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are an in-vehicle infotainment log recording method and system, an electronic device, a storage medium, and a vehicle. The method comprises: in response to a log output request, processing a log to generate log information; classifying the log information on the basis of defined log rules; on the basis of defined statistical rules, performing real-time statistics on the classified log information to generate a statistical result; and analyzing and storing the statistical result, and outputting the log. Dynamic statistics about related information can be performed during log recording, so that the workload of later-stage statistics is reduced; accurate statistics can be performed on various indexes, so that misjudgment caused by post hoc analysis does not exist; and the accuracy and the statistical efficiency are significantly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Vehicle log recording method, system and vehicle Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a vehicle log recording method, system, electronic equipment, storage medium and vehicle. Background Art

[0002] Logging systems are essential tools for development. They are crucial for in-vehicle systems, providing crucial data for reproducing and locating issues and analyzing system performance. This is especially true for systems where developers cannot readily debug (e.g., during road tests or when users are driving, where online debugging is unavailable, a common scenario).

[0003] The contradiction encountered in actual development is: limited storage space and the need to save as many logs as possible. Each module in the system continuously outputs log content, and the log files continue to grow over time. A common strategy is to allocate a certain amount of storage space and overwrite the oldest log file when the storage space limit is exceeded. This means that the total log file size is fixed. For example:

[0004] If the log output is excessive and too fast, the log file storage time will be shorter. For example, if the log storage space is 500MB and the log output is 100MB per minute, only 5 minutes of logs can be saved; if the log output is 10MB per minute, 50 minutes of logs can be saved.

[0005] If the log coverage period is short, it is not conducive to analyzing and locating the problem. When a problem is discovered, log analysis may reveal that the relevant logs may have been overwritten.

[0006] There is a certain degree of competition between different applications when it comes to log output. For example, suppose there are only two applications in the system, A and B. Application A outputs 90MB of logs per minute, and application B outputs 10MB of logs per minute. In all log files, application A occupies the majority of the space. Application B, which outputs logs slowly but requires long-term logging due to its complex business, cannot meet this requirement, and its output logs will be overwritten by application A.

[0007] To address these issues, log analysis and optimization are necessary. We need to determine which modules or applications are outputting excessive or excessive logs too quickly, whether these logs are necessary, and whether optimization is possible. Alternatively, from an architectural design perspective, we can standardize and constrain the logs of each module to ensure they do not exceed output requirements. Based on the analysis results, we can optimize and adjust the logs to improve storage efficiency and the effectiveness of the log content.

[0008] In the prior art, log optimization is based on quantitative analysis, and logs are usually analyzed post-analyzed. For example, the patent document with publication number CN115373963A discloses a log statistics method, device and server, which obtains a list of log records in a log warehouse within a preset time period, extracts user identifiers in the log records, and groups the log records in the log record list based on the user identifier to generate multiple log groups; for each log record in the log group, generates work description information corresponding to the user identifier based on the work information; summarizes the work description information to generate a description of the work content of the user identifier within the time period.

[0009] However, this approach has multiple problems:

[0010] Specialized analysis is required. Due to the large volume of logs, scripts and other tools need to be written. This is a considerable amount of work.

[0011] Log content is close to semi-structured data, with non-standard content format and many details that need to be processed. The processing process is complex, time-consuming, and prone to errors.

[0012] Due to the above-mentioned format parsing and other problems, omissions and incorrect counting are inevitable, resulting in inaccurate statistical results.

[0013] Summary of the Invention

[0014] In order to solve the technical problem that the log recording method in the prior art cannot perform dynamic statistics during the log recording process, the present invention provides a vehicle log recording method, system, electronic equipment, storage medium and vehicle.

[0015] To achieve the purpose of the present invention, a vehicle log recording method is provided, comprising:

[0016] In response to a log output request, processing the log to generate log information;

[0017] Classifying the log information based on defined log rules;

[0018] Based on the defined statistical rules, real-time statistics are performed on the classified log information to generate statistical results;

[0019] Analyze and save the statistical results, and output the log.

[0020] In some specific embodiments, in response to a log output request, the log is processed to generate log information, specifically including:

[0021] In response to a log output request, sending the log;

[0022] Formatting the sent log to generate log information;

[0023] The sent log is received by the log service and formatted by the log service.

[0024] In some specific embodiments, the log information is classified based on defined log rules, specifically including:

[0025] The defined log rules include:

[0026] Time rules, process number rules, thread number rules, log level rules, log tag rules, and log body rules;

[0027] The log information is classified and divided based on the defined log rules.

[0028] In some specific embodiments, based on defined statistical rules, real-time statistics are performed on the classified log information to generate statistical results, which specifically include:

[0029] The defined statistical rules include:

[0030] Define statistical time intervals, risk conditions, and abnormal conditions;

[0031] Based on the defined statistical rules, the log information is counted in real time to generate statistical results;

[0032] The statistical results are stored independently and can be viewed in real time.

[0033] In some specific embodiments, based on defined statistical rules, real-time statistics are performed on the classified log information to generate statistical results, which further includes:

[0034] Based on the time rule, determining a statistical time interval;

[0035] Based on the time interval shown, count the log volume of the log tag according to the log tag rule;

[0036] According to the process number rule and the thread number rule, count the number of bytes of each process ID and each thread ID;

[0037] According to the log level rules, statistics are collected on log indicators related to system stability;

[0038] According to the log body rules, correlation statistics are performed on related applications.

[0039] In some specific embodiments, analyzing and saving the statistical results and outputting the logs specifically include:

[0040] Conduct multi-dimensional analysis and evaluation on the statistical results and save them;

[0041] Output the log.

[0042] Based on the same concept, the present invention also provides a vehicle log recording system, comprising:

[0043] a log information generating module configured to process the log and generate log information in response to a log output request;

[0044] a log information classification module configured to classify the log information based on defined log rules;

[0045] A log information statistics module is configured to perform real-time statistics on the classified log information based on defined statistical rules and generate statistical results;

[0046] The log information recording module is configured to analyze and save the statistical results and output the log.

[0047] Based on the same concept, the present invention also provides an electronic device, including: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned vehicle log recording method.

[0048] Based on the same concept, the present invention also provides a computer-readable storage medium storing a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the above-mentioned vehicle log recording method.

[0049] Based on the same concept, the present invention also provides a vehicle, which is provided with the vehicle log recording system as described above.

[0050] Compared with the prior art, the present invention has the following beneficial effects:

[0051] The present invention discloses a vehicle log recording method, system, electronic device, storage medium and vehicle. Dynamic statistics of relevant information during the log recording process can be more accurate and efficient. A statistical function is added to the log recording service to reduce the workload of later statistics. Statistics are performed in the log service with higher accuracy. Various indicators can be counted very accurately because the various attributes of the log record are clear in the source code, and there is no possibility of misjudgment in subsequent analysis. It is more efficient. For example, if statistics are performed on a certain time interval, if the analysis is performed afterwards, it may be necessary to process multiple files, handle missing log content and other problems. Performing relevant statistics in the log service will not encounter such problems, and the statistical efficiency is higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] FIG1 is a flow chart of a vehicle log recording method according to some specific embodiments of the present invention;

[0053] FIG2 is a flow chart of a vehicle log recording method according to the present invention in some applications;

[0054] FIG3 is a flow chart of a vehicle log recording method according to the present invention in other applications;

[0055] FIG4 is a schematic structural diagram of a vehicle log recording system in some specific embodiments of the present invention;

[0056] FIG5 is a schematic structural diagram of an electronic device according to some specific embodiments of the present invention. DETAILED DESCRIPTION

[0057] To make the objectives, technical solutions, and advantages of this application more clear, this application will be further described in detail below with reference to the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.

[0058] The terms used in the examples of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a," "the," and "the" used in the examples of this application and the appended claims are also intended to include plural forms, and unless the context clearly indicates otherwise, "a plurality" generally includes at least two.

[0059] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0060] It should be understood that although the terms first, second, third, etc. may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.

[0061] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.

[0062] It should also be noted that the terms "include," "comprises," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a product or device comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such product or device. In the absence of further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the product or device comprising the element.

[0063] It should be noted in particular that any symbols and / or numbers in the specification that are not marked in the accompanying drawings are not drawing marks.

[0064] 1 , a vehicle log recording method includes:

[0065] S101, in response to a log output request, processing the log to generate log information;

[0066] Specifically, in this step, the log is processed according to the log output request to generate log information;

[0067] It is understandable that in this step, the log to be output can be monitored according to the log output request, so that when the log is output, the output log is processed to generate log information.

[0068] In some of these applications, in response to a log output request, the log is processed to generate log information, specifically including sending the log in response to the log output request; formatting the sent log to generate log information; wherein the sent log is received by a log service and formatted by the log service.

[0069] It can be understood that in this application, the log service receives the output log according to the log output request, formats the output log, and generates log information. By adding the log service to the log output path, the output log can be received in real time and formatted, laying the foundation for subsequent log statistics.

[0070] S102, classifying the log information based on defined log rules;

[0071] Specifically, in this step, log rules are first defined, and log information is classified according to the defined log rules;

[0072] It is understandable that the log rules can be flexibly set according to the commonality, individuality and functionality of the logs, with the purpose of distinguishing different types of information contained in the logs.

[0073] In some applications, the log information is classified based on defined log rules, specifically, the defined log rules include time rules, process number rules, thread number rules, log level rules, log tag rules and log body rules; based on the defined log rules, the log information is classified and divided.

[0074] It can be understood that in this application, the defined log rules include time rules, process number rules, thread number rules, log level rules, log tag rules and log body rules. The time rule is the time attribute of the log, the process number rule and thread number rule are the naming rules of the process number and thread number, that is, the process number and thread number. The log level rule is the alarm rule, that is, it is set according to the error priority that affects the security or stability of the system. The log tag rule is a marking rule for easy search, and the log body rule is the log message body after the tag. According to the defined log rules, the log information is classified and divided, so that the log information is clear and convenient for subsequent log statistics.

[0075] S103, performing real-time statistics on the classified log information based on defined statistical rules to generate statistical results;

[0076] Specifically, in this step, firstly, statistical rules are defined, and then the classified log information is statistically analyzed in real time according to the defined statistical rules to generate statistical results;

[0077] It is understandable that, in this step, those skilled in the art may define statistical rules according to required statistical information, and then perform real-time statistics on the classified log information according to the defined statistical rules to generate statistical results.

[0078] In some of these applications, based on defined statistical rules, the classified log information is subjected to real-time statistics to generate statistical results, specifically including the defined statistical rules for defining statistical time intervals, risk conditions, and abnormal conditions; based on the defined statistical rules, the log information is subjected to real-time statistics to generate statistical results; wherein, the statistical results are independently stored and can be viewed in real time.

[0079] It can be understood that in this application, statistical rules are defined as time intervals, risk conditions, and abnormal conditions, which can be understood as the time intervals that need to be counted, the conditions for possible risks that need to be counted, and the conditions for possible abnormalities that may affect the system. According to the defined statistical rules, log information can be counted in real time, and statistical results can be generated. The statistical results are stored independently and can be viewed in real time, so that problems can be discovered in time.

[0080] In other applications, based on the defined statistical rules, the classified log information is counted in real time to generate statistical results, which also includes determining the statistical time interval based on the time rule; based on the time interval shown, counting the log volume of the log tag according to the log tag rule; counting the number of bytes of each process ID and each thread ID according to the process number rule and the thread number rule; counting the log indicators related to system stability according to the log level rule; and performing correlation statistics on related applications according to the log body rule.

[0081] It can be understood that in this application, the statistical time interval is determined according to the defined time rules, that is, the required statistical time period or time node is set according to the statistical needs. After the time interval that needs to be counted is determined, the log volume of the log tag is counted according to the log tag rule, that is, the corresponding count is increased by one each time it appears, and the total number of tags is also equal to the number of log lines containing this tag. According to the process number rule and the thread number rule, the number of bytes of each process ID and each thread ID is counted, that is, the total number and quantity of log lines generated. According to the log level rule, the log indicators related to the system stability are counted, and the alarm threshold can be set. When the log indicators related to the system stability appear, an alarm prompt is issued. According to the log subject rule, the relevant applications are associated with the statistics, that is, the client subject that sends the log is associated.

[0082] S104: Analyze and save the statistical results, and output the log.

[0083] Specifically, in this step, the statistical results are analyzed and saved, and the logs are output;

[0084] It is understandable that in this step, the statistical results can be analyzed as needed, and the analysis process is performed by the log service, the statistical results after analysis are saved, and the log is output.

[0085] In some of the applications, the statistical results are analyzed and saved, and the log is output, which specifically includes performing multi-dimensional analysis and evaluation on the statistical results and saving the results; and outputting the log.

[0086] It is understood that in this application, those skilled in the art can conduct multi-dimensional and multi-level analysis and evaluation of the statistical results according to actual needs, save the evaluation and statistical results, and output the log. Through the above steps, relevant information can be dynamically counted during the logging process, reducing the workload of later statistics, and can be very accurately counted for various indicators, eliminating the possibility of misjudgment in subsequent analysis, significantly improving accuracy and statistical efficiency.

[0087] The following describes an embodiment of a vehicle log recording method of the present invention in some applications with reference to FIG2 and FIG3 , as shown in FIG2 and FIG3 :

[0088] When the log service receives a log output request from an application, it formats the data and outputs it to a log file.

[0089] During the processing, the log service process can collect statistics on the required data.

[0090] The statistical results will be output to a file and saved. You can also use commands in the command line terminal window to view dynamic statistical information in real time.

[0091] The specific statistical methods and statistical indicators are explained below.

[0092] Log content

[0093] The following is a brief description of the content and format of each log line:

[0094] 2023-07-04 05:10:39.293469 715 937W ActivityManager:Start proc com.abc.settings for service{VehicleSettingService}

[0095] The meaning of each field:

[0096] Time: 2023-07-04 05:10:39.293469

[0097] Process ID: 715

[0098] Thread number: 937

[0099] Log level: W (Warning, may also include: Debug, Info, Error, etc.)

[0100] Log Tag: ActivityManager, which is a tag name set by the log output module to facilitate searching in the log.

[0101] Log message body: The part after the tag is the log message body, which is the content output by the log output party as needed.

[0102] Log Service data statistics include:

[0103] Log Tag Statistics:

[0104] The total number of occurrences of each tag. For example, in the above example, ActivityManager is counted, and the corresponding count increases by 1 each time it occurs. The total number of tags is also equal to the number of log lines containing this tag.

[0105] The log volume (bytes) containing this tag, and the total log volume output using this tag.

[0106] By counting the above indicators within a time interval, such as an hour, you can see whether the log output is stable or volatile, and further analyze the reasons.

[0107] Process and thread statistics

[0108] Count the total number of log lines and bytes generated by each process ID (unique).

[0109] Count the total number of log lines and bytes generated by each thread ID (unique).

[0110] The above indicators are calculated for the time interval.

[0111] Log level statistics

[0112] Statistics of metrics at certain log levels, such as Warning and Error levels, may indicate risks or system errors, which are related to application and system stability indicators and require special attention.

[0113] Output total function of each level log.

[0114] Number of log lines counted by time interval.

[0115] You can set alarm thresholds. For example, if 10 error logs are recorded per hour, a risk warning message will be recorded in the log to alert R&D personnel.

[0116] Overall statistics by time

[0117] Regardless of application modules or tags, statistics are collected on the overall log output speed, for example, the number of output lines per minute and the log volume (bytes).

[0118] Perform segmented statistics by time interval to check whether the output speed changes or is abnormal.

[0119] Abnormal situation statistics

[0120] Count application exceptions, process crashes, and restarts. When a count exceeds a certain threshold, a risk warning is printed in the log to attract the attention of developers.

[0121] You can also configure it to perform statistical analysis on specified keywords and focus on user-defined statistical practices.

[0122] Based on the above statistical indicators, some conclusions may be drawn:

[0123] Based on the log speed, you can estimate how long the logs can be stored in a given log storage space.

[0124] Determine whether the overall log output volume is reasonable. If it is too fast, what proportion needs to be optimized?

[0125] You can use log tags or process statistical indicators to filter out modules or application processes whose logs exceed the limit and require targeted optimization or streamlining.

[0126] Through further analysis based on actual needs, we can draw more conclusions, and then evaluate the log content from different levels and dimensions, providing targeted guidance for log design and optimization.

[0127] The data statistics function is built into the log service, eliminating the need for additional log processing and increasing analysis workload.

[0128] For the method steps disclosed in the above embodiments, for the purpose of simple description, the method steps are expressed as a series of action combinations. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0129] As shown in FIG4 , the present invention further provides a vehicle log recording system, which is characterized by comprising:

[0130] The log information generating module 201 is configured to process the log and generate log information in response to a log output request;

[0131] The log information classification module 202 is configured to classify the log information based on defined log rules;

[0132] The log information statistics module 203 is configured to perform real-time statistics on the classified log information based on defined statistical rules and generate statistical results;

[0133] The log information recording module 204 is configured to analyze and save the statistical results and output the log.

[0134] Specifically, the vehicle log recording system provided in this embodiment includes a log information generation module 201, a log information classification module 202, a log information statistics module 203 and a log information recording module 204. The log information generation module 201 is configured to process the log and generate log information in response to a log output request; the log information classification module 202 is configured to classify the log information based on defined log rules; the log information statistics module 203 is configured to perform real-time statistics on the classified log information based on defined statistical rules and generate statistical results; the log information recording module 204 is configured to analyze and save the statistical results and output the log.

[0135] It is worth noting that although only some basic functional modules are disclosed in the embodiment of the present invention, it does not mean that the composition of the present system is limited to the above basic functional modules. On the contrary, what this embodiment wants to express is that on the basis of the above basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with the existing technology to form an infinite number of embodiments or technical solutions. In other words, this system is open rather than closed. Just because this embodiment only discloses individual basic functional modules, it cannot be considered that the scope of protection of the claims of the present invention is limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above devices are described in terms of functions, which are divided into various units and modules. Of course, when implementing the present invention, the functions of each unit and module can be implemented in the same or one or more software and / or hardware.

[0136] As shown in Figure 5, the present invention also provides an electronic device, including: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the vehicle log recording method.

[0137] Figure 5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. As shown in Figure 5, the electronic device provided by an embodiment of the present invention includes: one or more processors 710 and a storage device 720. The electronic device may have one or more processors 710, with Figure 5 using one processor 710 as an example. The storage device 720 is used to store one or more programs. These one or more programs are executed by the one or more processors 710, enabling the one or more processors 710 to implement the vehicle log recording method described in any of the embodiments of the present invention.

[0138] The electronic device may further include an input device 730 and an output device 740 .

[0139] The processor 710 , storage device 720 , input device 730 and output device 740 in the electronic device may be connected via a bus or other means. FIG5 takes the bus connection as an example.

[0140] The storage device 720 in the electronic device serves as a computer-readable storage medium and can be used to store one or more programs. These programs can be software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the vehicle-based log recording method provided in the embodiments of the present invention. The processor 710 executes the software programs, instructions, and modules stored in the storage device 720 to execute various functional applications and data processing of the electronic device, thereby implementing the vehicle-based log recording method in the aforementioned method embodiment.

[0141] The storage device 720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the electronic device, etc. In addition, the storage device 720 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 720 may further include a memory remotely located relative to the processor 710, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0142] The input device 730 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 740 may include a display device such as a display screen.

[0143] Furthermore, when one or more programs included in the electronic device are executed by the one or more processors 710, the programs perform the following operations:

[0144] In response to a log output request, processing the log to generate log information;

[0145] Classifying the log information based on defined log rules;

[0146] Based on the defined statistical rules, real-time statistics are performed on the classified log information to generate statistical results;

[0147] Analyze and save the statistical results, and output the log.

[0148] The present invention also provides a computer-readable storage medium storing a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the vehicle log recording method.

[0149] Specifically, the computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in combination with an instruction execution system, device or device.

[0150] The present invention also provides a vehicle, which is provided with the above-mentioned vehicle log recording system.

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A vehicle log recording method, characterized in that: include: In response to a log output request, processing the log to generate log information; Classifying the log information based on defined log rules; Based on the defined statistical rules, real-time statistics are performed on the classified log information to generate statistical results; Analyze and save the statistical results, and output the log.

2. The vehicle log recording method according to claim 1, characterized in that: In response to the log output request, the log is processed to generate log information, specifically including: In response to a log output request, sending the log; Formatting the sent log to generate log information; The sent log is received by the log service and formatted by the log service.

3. The vehicle log recording method according to claim 1, characterized in that: Based on the defined log rules, the log information is classified, specifically including: The defined log rules include: Time rules, process number rules, thread number rules, log level rules, log tag rules and log body rules; Based on the defined log rules, the log information is classified and divided.

4. The vehicle log recording method according to claim 3, characterized in that: Based on the defined statistical rules, real-time statistics are performed on the classified log information to generate statistical results, including: The defined statistical rules include: Define statistical time intervals, risk conditions, and abnormal conditions; Based on the defined statistical rules, the log information is counted in real time to generate statistical results; The statistical results are stored independently and can be viewed in real time.

5. The vehicle log recording method according to claim 3, characterized in that: Based on the defined statistical rules, real-time statistics are performed on the classified log information to generate statistical results, which also includes: Based on the time rule, determine the statistical time interval; Based on the indicated time interval, count the log volume of the log tag according to the log tag rule; According to the process number rule and the thread number rule, count the number of bytes of each process ID and each thread ID; According to the log level rules, log indicators related to system stability are counted; According to the log body rule, correlation statistics are performed on related applications.

6. The vehicle log recording method according to claim 1, characterized in that: Analyze and save the statistical results and output the log, specifically including: Conduct multi-dimensional analysis and evaluation on the statistical results, and save them; The log is output.

7. A vehicle log recording system, characterized in that: include: A log information generating module, configured to process the log and generate log information in response to a log output request; A log information classification module, configured to classify the log information based on defined log rules; A log information statistics module is configured to perform real-time statistics on the classified log information based on defined statistical rules and generate statistical results; The log information recording module is configured to analyze and save the statistical results and output the log.

8. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: It stores a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the method described in any one of claims 1 to 6.

10. A vehicle, characterized in that: The vehicle is provided with the vehicle log recording system as claimed in claim 7.

Citation Information

Patent Citations

  • Log analysis method and equipment and computer readable storage medium

    CN107391746A

  • Locomotive log file transmission method and device, storage medium and electronic equipment

    CN115580608A

  • In-vehicle infotainment log recording method, in-vehicle infotainment log recording system and vehicle

    CN117931489A

  • Log analyzing method, execution apparatus for the same, and recording medium for recording process program thereof

    US20050021701A1