Automobile log management method and device, equipment and storage medium

By sending a registration request to the server and obtaining the log information configuration, the car logs are collected, encrypted and stored in real time, and circular storage management is adopted to solve the problem of dispersed and inconsistent log information in car log management and realize the unified management and control of the car logs. Real-time monitoring improves operation and maintenance efficiency and security.

CN118643513AInactive Publication Date: 2024-09-13VOYAH AUTOMOBILE TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410808134.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing vehicle log management methods have scattered and non-uniform formats and contents of log information, resulting in complex data integration and analysis, lack of real-time monitoring and early warning mechanisms, and difficulty in solving vehicle faults in a timely manner.

Method used

By sending a registration request to the server, including the vehicle identification code, the log information configuration is obtained, the log information is collected and encrypted and stored in real time, and circular storage management is adopted to ensure that the data transmission is structured and secure.

Benefits of technology

It achieves unified management of the logs of each electronic control unit on the vehicle end, improves vehicle operation and maintenance efficiency and safety, and supports data-driven analysis and decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643513A
    Figure CN118643513A
Patent Text Reader

Abstract

The invention discloses an automobile log management method, device and equipment and a storage medium, and relates to the technical field of automobile electronic control and data management.The automobile log management method comprises the steps that a registration request is sent to a server, and the registration request comprises a vehicle identification code; sending log information configuration after the server verifies the vehicle identification code; according to the log information configuration, collecting log information of a system and applications thereof through slave nodes; transmitting the log information to a master node in a preset format, and deleting the log information collected by the slave node after the transmission is completed; and performing encrypted storage and cyclic storage management on the log information through the main node. Through effective data acquisition, transmission, storage and management measures, unified management of the logs of the electronic control units at the vehicle end is realized, the efficiency and safety of vehicle operation and maintenance are improved, and data-driven analysis and decision are supported at the same time.
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 electronic control and data management, and in particular to an automobile log management method, device, equipment and storage medium. Background Art

[0002] With the continuous improvement of automobile intelligence and electrification, a large number of electronic control units (ECUs) are integrated into vehicles. These units are responsible for different functional modules, such as engine control, safety system, infotainment system, etc. In order to ensure the normal operation and effective maintenance of each system, the operating status of these control units must be monitored and recorded in real time. By recording and analyzing these log information, the automobile log management method can help quickly locate and solve problems and improve the safety and reliability of the vehicle.

[0003] At present, automobile log management mainly relies on independent logging and storage of each ECU. Each ECU usually has an independent log file to record its operating status, error code, event information, etc. These log information are read when needed through diagnostic tools or service interfaces and subsequently analyzed. In addition, some high-end vehicles are also equipped with central data loggers to centrally store some important ECU log information for comprehensive analysis.

[0004] There are many problems with existing log management methods: decentralization. Since each ECU records logs independently, log information is scattered in multiple units, making data integration and analysis complex and time-consuming; consistency and standardization. The log formats and contents of different ECUs are not uniform, which increases the difficulty of reading and parsing, and it is difficult to form a standardized analysis process; storage and transmission. The decentralized log storage method makes data transmission and centralized storage difficult, especially when a vehicle fails. The process of obtaining all relevant log information may delay the resolution of the problem; real-time. Existing methods mostly rely on post-log reading for analysis, lacking real-time monitoring and early warning mechanisms, and may miss the opportunity for timely intervention. Therefore, how to uniformly manage the logs of various electronic control units on the vehicle side has become an urgent problem to be solved.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The purpose of this application is to provide a vehicle log management method, device, equipment and storage medium, aiming to solve the technical problem of how to uniformly manage the logs of various electronic control units on the vehicle side.

[0007] To achieve the above purpose, the present application proposes a vehicle log management method, the method comprising:

[0008] Sending a registration request to a server, wherein the registration request includes a vehicle identification code, so that the server verifies the vehicle identification code and then sends a log information configuration;

[0009] According to the log information configuration, log information of the system and its applications is collected from the nodes;

[0010] Transmitting the log information to the master node in a preset format, and deleting the log information collected by the slave node after the transmission is completed;

[0011] The log information is encrypted and stored and managed in a circular manner through the master node.

[0012] In one embodiment, the step of collecting the log information of the system and its applications from the nodes according to the log information configuration includes:

[0013] Collect the initial log information of the system and its applications through the preset log collection tool in the slave node;

[0014] According to the log information configuration, a naming rule, a timestamp rule, and a log category rule are obtained;

[0015] Adding a timestamp to the initial log information according to the timestamp rule;

[0016] Classifying the initial log information according to the log category rule;

[0017] The log file containing the initial log information is named according to the naming rule to obtain the log information.

[0018] In one embodiment, the step of performing cyclic storage management on the log information includes:

[0019] When the storage space allocated to the electronic control unit is insufficient, obtaining the timestamp of the historical log information;

[0020] Arrange the historical log information in chronological order according to the timestamp;

[0021] When new log information is stored, the new log information overwrites the oldest log information.

[0022] In one embodiment, after the step of encrypting and storing the log information and managing the log information in a circular manner by the master node, the method further includes:

[0023] When receiving the log information extraction instruction from the server, uploading the log information stored by the master node to the server, so that the server stores and analyzes the log information according to the log information configuration;

[0024] After the transmission is completed, the log information stored in the master node is deleted;

[0025] When the transmission fails, record the reason for the transmission failure and transmit again;

[0026] When the transmission fails and the number of transmissions exceeds a preset number, all reasons for the transmission failure and warning information are sent to the server.

[0027] In one embodiment, after the step of collecting the log information of the system and its applications from the nodes according to the log information configuration, the method further includes:

[0028] Obtaining log keywords and log level configuration according to the log information configuration;

[0029] The log information is graded according to the log keyword and the log level configuration.

[0030] In one embodiment, before the step of collecting the log information of the system and its applications from the nodes according to the log information configuration, the step further includes:

[0031] Get vehicle status information;

[0032] The collection frequency and data granularity of the log information are adjusted according to the vehicle status information.

[0033] In one embodiment, the step of adjusting the collection frequency and data granularity of the log information according to the vehicle status information includes:

[0034] Assessing the degree of risk of driving behavior based on the vehicle status information;

[0035] When the driving behavior risk level is high, increasing the frequency of collecting the log information and the data granularity;

[0036] When the risk level of the driving behavior is low risk, the collection frequency and data granularity of the log information are reduced.

[0037] In addition, to achieve the above purpose, the present application also proposes a vehicle log management device, the device comprising:

[0038] A registration module, used to send a registration request to a server, wherein the registration request includes a vehicle identification code, so that the server verifies the vehicle identification code and then sends a log information configuration;

[0039] A collection module, configured to collect the log information of the system and its applications from the nodes according to the log information configuration;

[0040] A transmission module, used to transmit the log information to the master node in a preset format, and delete the log information collected by the slave node after the transmission is completed;

[0041] The storage management module is used to perform encrypted storage and circular storage management on the log information through the master node.

[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a car log management device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the car log management method as described above.

[0043] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the automobile log management method described above are implemented.

[0044] One or more technical solutions proposed in this application have at least the following technical effects:

[0045] By sending a registration request to a server, the registration request includes a vehicle identification code, so that the server verifies the vehicle identification code and then sends a log information configuration; according to the log information configuration, the log information of the system and its application is collected by the slave node; the log information is transmitted to the master node in a preset format, and the log information collected by the slave node is deleted after the transmission is completed; the log information is encrypted and stored and cyclically stored and managed by the master node. This application sends a registration request to the server, including its unique vehicle identification code. After receiving the request, the server verifies the validity of the VIN and sends the log information configuration to the vehicle according to the preset configuration, ensuring that only authorized vehicles can register and obtain configuration information through the identification code, enhancing the security and authentication mechanism of the system, and effectively controlling the access rights of the system; according to the configuration information, the slave node starts to collect the log information of the vehicle system and its applications, collects and records the vehicle operation status, fault code, event information and other data in real time, and provides necessary data support for subsequent analysis, diagnosis and maintenance; the collected log information is transmitted to the master node in a preset format. After the transmission is completed, the log information on the slave node is automatically deleted, ensuring the structuring and standardization of data transmission, and effectively managing the storage space of the slave node, avoiding data redundancy and invalid storage; the master node encrypts and stores the received log information, and adopts a circular storage management strategy, that is, when the storage space is insufficient, the oldest log information is overwritten, protecting the security and confidentiality of the log information, and preventing unauthorized access and data leakage. At the same time, through circular storage management, the effective use of storage space is ensured, and the latest vehicle status and operation events are continuously recorded. In summary, this application realizes unified management of the logs of various electronic control units on the vehicle side through effective data collection, transmission, storage and management measures, improves the efficiency and safety of vehicle operation and maintenance, and supports data-driven analysis and decision-making. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0047] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0048] Figure 1 A flowchart of the first embodiment of the vehicle log management method of the present application is provided;

[0049] Figure 2A flow chart of the second embodiment of the vehicle log management method of the present application;

[0050] Figure 3 This is a schematic diagram of the module structure of the automobile log management device according to an embodiment of the present application;

[0051] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the automobile log management method in the embodiment of the present application.

[0052] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0055] At present, automobile log management relies on each ECU to record and store logs independently. Each ECU has its own log file to record the operating status and error information. There are several major problems with this method: log information is scattered in multiple ECUs, making data integration and analysis complex and time-consuming; the log format and content of different ECUs are not unified, which increases the difficulty of reading and parsing; the decentralized storage method makes data transmission and centralized storage difficult, especially when a vehicle fails, obtaining all relevant log information may delay the resolution of the problem; existing methods mostly rely on post-log reading for analysis, lack of real-time monitoring and early warning mechanisms, and may miss the opportunity for timely intervention.

[0056] The main solution of the embodiment of the present application is: by sending a registration request to the server, including its unique vehicle identification code, the server verifies the validity of the VIN after receiving the request, and sends the log information configuration to the vehicle according to the preset configuration, ensuring that only authorized vehicles can register and obtain configuration information through the identification code, enhancing the security and authentication mechanism of the system, and effectively controlling the access rights of the system; according to the configuration information, the slave node starts to collect the log information of the vehicle system and its application, collects and records the vehicle operation status, fault code, event information and other data in real time, and provides the necessary data support for subsequent analysis, diagnosis and maintenance; the collected log information is transmitted to the master node in a preset format, and after the transmission is completed, the log information on the slave node is automatically deleted, ensuring the structuring and standardization of data transmission, and effectively managing the storage space of the slave node, avoiding data redundancy and invalid storage; the received log information is encrypted and stored by the master node, and a circular storage management strategy is adopted, that is, when the storage space is insufficient, the oldest log information is overwritten, protecting the security and confidentiality of the log information, and preventing unauthorized access and data leakage. At the same time, through the circular storage management, the effective use of storage space is ensured, and the latest vehicle status and operation events are continuously recorded. In summary, this application realizes unified management of the logs of various electronic control units on the vehicle side through effective data collection, transmission, storage and management measures, improves the efficiency and safety of vehicle operation and maintenance, and supports data-driven analysis and decision-making.

[0057] It should be noted that the execution subject of the embodiment of the present application may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a vehicle-mounted system, etc. The following takes the vehicle-mounted system as an example to illustrate this embodiment and the following embodiments.

[0058] Based on this, the embodiment of the present application provides a method for managing a vehicle log. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the automobile log management method of the present application.

[0059] In this embodiment, the vehicle log management method includes steps S10 to S40:

[0060] Step S10, sending a registration request to a server, wherein the registration request includes a vehicle identification code, so that the server verifies the vehicle identification code and then sends a log information configuration;

[0061] It should be noted that a registration request refers to a request sent to a server to register a vehicle, which usually contains information such as the vehicle identification number (VIN), owner or user information, vehicle information (including brand, model, year of production, color, engine number, etc.), certification and safety information, software and hardware version information, request timestamp, etc., so that the server can identify and verify the legitimacy and identity of the vehicle. The vehicle identification number is a unique code that uniquely identifies each vehicle. It is similar to the "identity card" of the vehicle and includes information about the vehicle manufacturer, model, year of production, etc. The log information configuration is a configuration file or instruction sent by the server to the vehicle after verifying the vehicle identification number, which specifies how to record and store log information. This may include details such as which data needs to be recorded, the frequency and format of logging, etc.

[0062] It can be understood that first, the vehicle sends a registration request containing the vehicle identification number (VIN) to the server. This request is intended to register the vehicle and ensure the uniqueness and legitimacy of its identity. After receiving the request, the server will verify the vehicle identification number to verify its authenticity and validity. After the verification is passed, the server will send a set of log information configuration files or instructions back to the vehicle based on the specific needs and configuration of the vehicle. This log information configuration will specify in detail how to record, store and transmit the vehicle's log information, thereby ensuring the standardization and effectiveness of vehicle log management.

[0063] Step S20, collecting the log information of the system and its applications from the nodes according to the log information configuration;

[0064] It should be noted that slave nodes are functional modules deployed on gateways, on-board intelligent terminals (Telematics Box, TBOX) and other controllers, which are used to collect log information of the devices they are connected to or responsible for, and transmit this log information to the master node; log information refers to the data collected from the slave nodes, including the operating status, event records, error codes, performance indicators, etc. of the on-board system and its applications. This information is used to monitor, diagnose and analyze the operation of the vehicle.

[0065] It is understood that detailed log information generated by the system and its applications is collected through various slave nodes in the vehicle network according to the pre-defined log information configuration. These log information include but are not limited to the operating status of various vehicle components, sensor data, control unit activity records, fault diagnosis information and other important events. The slave node is responsible for collecting and storing this data in real time and sending it to the master node or server through the communication channel for further analysis, remote monitoring and fault diagnosis. This process is critical to maintaining vehicle performance, improving driving safety and optimizing vehicle operating efficiency.

[0066] As an example, according to the log information configuration, the step of collecting log information of the system and its applications from the nodes includes: collecting the initial log information of the system and its applications from the nodes by using a preset log collection tool in the nodes; obtaining a naming rule, a timestamp rule, and a log category rule according to the log information configuration; adding a timestamp to the initial log information according to the timestamp rule; classifying the initial log information according to the log category rule; and naming the log file containing the initial log information according to the naming rule to obtain log information.

[0067] The preset log collection tool refers to the software or tool that is pre-set or installed in the slave node, which is used to automatically collect the log information generated by the system and its applications, such as Syslog, ELK Stack, Splunk, Graylog, Fluentd, etc.; the initial log information is the original log data generated by the system and its applications, including various operating states, event records, error codes, etc.; the naming rule refers to the way of naming log files according to predefined rules. These rules include information such as date time, vehicle identification code, event type, etc., for subsequent management and retrieval; the timestamp rule refers to adding a timestamp to the initial log information according to the rules defined in the configuration. The timestamp usually includes the date and time to mark the exact time when the event occurred; the log category rule refers to classifying or grouping the initial log information according to the rules defined in the configuration, which helps to organize and manage a large amount of log data for subsequent analysis and processing. First, use the preset log collection tool, such as Syslog or ELK Stack, to collect the initial log information generated by the system and its applications from each slave node (such as gateway, TBOX and other controllers) in the vehicle system. These log information includes the system's operating status, event records, error codes, etc. Secondly, according to the pre-set log information configuration, determine the applicable naming rules, timestamp rules, and log category rules. The naming rules specify how to name the files storing logs, usually including the date, time, and other identifiers. The timestamp rules ensure that each log is marked with accurate time information, which is convenient for subsequent analysis and sorting. The log category rules help to classify log information according to different types or sources, such as system components or event types. Subsequently, according to the timestamp rules, add time stamps to the collected initial log information to ensure that each log accurately reflects the time point when the event occurred. Next, classify the initial log information according to the log category rules. This step helps to organize and manage large amounts of log data, making it easier to understand and analyze. Finally, the log files containing the initial log information are named according to the set naming rules. In this way, a structured collection of log information is formed, which provides a basis for subsequent remote monitoring, fault diagnosis, and performance analysis.

[0068] As an example, according to the log information configuration, after the step of collecting log information of the system and its applications from the nodes, it also includes: obtaining log keywords and log level configuration according to the log information configuration; and grading the log information according to the log keywords and the log level configuration.

[0069] Log keywords refer to keywords or phrases defined in the log information configuration, which are used to identify and recognize specific types of log records. Keywords are usually associated with certain important events, specific conditions, or specific system components to help quickly retrieve and filter related log information; log level configuration refers to the settings of different levels or importance defined according to the log information configuration. Common log levels include but are not limited to: DEBUG, INFO, WARN, ERROR, and CRITICAL. The log level configuration specifies when to log and what types of events or situations to log. First, according to the preset log information configuration, determine the log keywords and log level configuration. Log keywords refer to predefined words or phrases used to identify log records of specific events, conditions, or system components. Log level configuration includes defining settings of different levels (such as DEBUG, INFO, WARN, ERROR, CRITICAL) to reflect the importance and urgency of log records. Secondly, according to the set log keywords and log level configuration, the collected log information is graded. This process ensures that each log is accurately classified and recorded according to its keywords and levels for subsequent retrieval, analysis and problem diagnosis. This structured and hierarchical log management method helps improve the efficiency of system monitoring and effectively respond to and resolve possible problems and incidents.

[0070] As an example, according to the log information configuration, before the step of collecting log information of the system and its applications from the node, it also includes: obtaining vehicle status information; adjusting the collection frequency and data granularity of the log information according to the vehicle status information.

[0071] Vehicle status information refers to the current operating state or behavior mode of the vehicle, such as normal driving, sudden acceleration, sudden braking, speeding, long-term idling, parking, etc. This information can be obtained through sensors or control units on the vehicle and used to analyze the vehicle's operating status and driving behavior; the acquisition frequency refers to the rate or time interval of collecting vehicle log information from the node, which determines how often the system obtains log information updates. A higher acquisition frequency means more frequent data collection, while a lower acquisition frequency means fewer data points; data granularity refers to the detailed information or amount of data contained in each data point. A higher data granularity means more detailed and specific data, such as more frequent sampling rates or more sensor information, while a lower data granularity means less detailed information or coarser data sampling. First, the vehicle's status information needs to be obtained. This information can cover data from multiple aspects such as the vehicle's speed, acceleration, steering status, engine load, fuel consumption, and vehicle location. It is key to obtain this status information through sensors or vehicle control units because they directly reflect the vehicle's current operating status and driving behavior. Next, according to the acquired vehicle status information, the acquisition frequency and data granularity of the log information are adjusted. The collection frequency refers to the frequency of how often log data updates are obtained, which depends on whether the vehicle status needs to be monitored in real time or the data needs to be recorded periodically. Data granularity determines the level of detail of each data point, including the sampling rate and the level of detail of the data content. For example, high-frequency and fine-grained data collection can provide more detailed and accurate analysis, but may also increase the cost of data processing and storage. These adjustments can be made based on specific monitoring needs and system performance optimization goals to ensure that the collection and analysis of log information can best meet the actual operating conditions and support subsequent driving behavior analysis, fault diagnosis and vehicle performance optimization.

[0072] As an example, the step of adjusting the collection frequency and data granularity of the log information according to the vehicle status information includes: evaluating the risk level of the driving behavior according to the vehicle status information; when the risk level of the driving behavior is high risk, increasing the collection frequency and data granularity of the log information; when the risk level of the driving behavior is low risk, reducing the collection frequency and data granularity of the log information.

[0073] The driving behavior risk level refers to the safety and risk level of driving operations evaluated based on vehicle status information. This includes the driver's operating behavior, such as sudden acceleration, sudden braking, speeding, long-term idling, etc., as well as the vehicle's operating status, such as stability, fuel consumption rate and other factors. The evaluation of the driving behavior risk level is intended to identify potential safety issues or driving risks so as to dynamically adjust the frequency and data granularity of log information collection, thereby more effectively supporting real-time monitoring, safety management and driving behavior analysis. First, the risk level of driving behavior is analyzed by evaluating vehicle status information. If the evaluation results show that the driving behavior is high-risk, the system will automatically increase the frequency and data granularity of log information collection to record driving events and vehicle status changes in more detail. On the contrary, if the evaluation results show that the driving behavior risk is low, the system will correspondingly reduce the frequency and data granularity of log information collection to save resources and reduce irrelevant data collection. This dynamic adjustment can effectively optimize data management and analysis while supporting the monitoring and management of vehicle operation safety and efficiency.

[0074] Step S30, transmitting the log information to the master node in a preset format, and deleting the log information collected by the slave node after the transmission is completed;

[0075] It should be noted that the preset format refers to a pre-defined standard or specification, which is a structured format for transmitting and storing log information, including the log data field, encoding method, timestamp format, event type identifier, etc. The use of the preset format can ensure that the transmitted log information can be correctly parsed and processed on the master node. For example, {"timestamp":"2024-06-19T10:30:00Z","node_id":"gateway_1","log_level":"INFO","message":"Vehicle started","details":{"speed":0,"location":{"latitude":37.7749,"longitude":-122.4194},"driver_id":"12345"}}, in this example, the preset format includes the following fields: timestamp: the timestamp when the log event occurs; node_id: identifies the node that records the log information (such as the gateway); log_level: the level of the log (INFO, WARN, ERROR, etc.); message: a brief description of the log event; details: additional detailed information, such as vehicle speed, location information (longitude and latitude), driver ID, etc. The use of this preset format ensures that when the master node receives the log data, it can easily parse and process each field, thereby achieving effective log management and analysis. The master node refers to the central control node in the log management system, which is responsible for receiving, storing, processing and analyzing the log information collected from each slave node. In this embodiment, the master node is deployed on the intelligent cockpit controller (IVI) and other central data processing units to centrally manage the log data of various vehicle systems and support functions such as fault diagnosis, performance monitoring and analysis.

[0076] It can be understood that first, the log information collected from each slave node is transmitted to the master node in a preset structured format. This ensures that the logs can be consistent and parsable during the transmission process. Once the transmission is completed, the system automatically deletes the log information collected from each slave node to ensure data security and effective use of storage space. This approach not only helps to centrally manage and analyze the operation logs of the vehicle system, but also effectively manage data storage and confidentiality.

[0077] Step S40: encrypting and storing the log information and managing the log information in a circular manner through the master node.

[0078] It should be noted that encrypted storage refers to the encryption of log information transmitted to the master node during storage to ensure the security and confidentiality of the data. Encryption can adopt various encryption algorithms and key management strategies to ensure that only authorized systems or users can decrypt and access the stored log data, and prevent the data from being stolen or tampered with by unauthorized visitors; circular storage management refers to the way of managing and storing log information on the master node, usually by circular overwriting or rolling log files, that is, when the storage space reaches the preset limit, the old log data will be overwritten by the new log data to ensure the effective use of storage space and the continuity of system operation. This method can prevent the storage space from being filled up, while retaining the latest and most important log information for subsequent analysis and query.

[0079] It can be understood that, firstly, through the encrypted storage mechanism, the master node encrypts the log data transmitted to it, which ensures the confidentiality of the data during storage and prevents unauthorized access to sensitive information. Encryption usually involves the use of secure encryption algorithms and key management strategies to ensure the security of data. Secondly, the master node adopts a circular storage management strategy to effectively manage the storage space of log information. Circular storage management usually adopts overwriting the oldest log data to accommodate new log records to ensure that the storage space is fully utilized and maintain the system's ability to continuously record the operating status. This strategy enables the master node to continuously receive and process log information while retaining sufficient historical data for subsequent analysis, troubleshooting, and security audits.

[0080] As an example, the steps of performing cyclic storage management on the log information include: when the storage space allocated to the electronic control unit is insufficient, obtaining the timestamp of the historical log information; arranging the historical log information in chronological order according to the timestamp; when storing new log information, overwriting the oldest log information with the new log information.

[0081] Historical log information refers to old log data previously stored in the electronic control unit (ECU) or other storage devices. These log data contain previously recorded system operating status, event records, error information, etc., and are records of vehicle operation and system operation in the past period of time. When the storage space of the electronic control unit (ECU) is close to full, the system first retrieves the timestamp of the stored log information, that is, the time when each log information is recorded. Then, according to these timestamps, the historical log information is arranged in chronological order to ensure that the oldest log information is at the front. When new log information needs to be stored, the system will overwrite the oldest historical log information, that is, the log data that enters the storage first. This cyclic replacement strategy effectively manages storage space, ensuring that the system can continuously record the latest vehicle status and operation events, while retaining certain historical records for subsequent analysis and auditing needs. This management method allows the system to maintain data integrity and real-time monitoring capabilities during operation while avoiding the problem of storage space being occupied by old data.

[0082] The present embodiment provides a method for managing automobile logs, which includes sending a registration request to a server, wherein the registration request includes a vehicle identification code, so that the server verifies the vehicle identification code and then sends a log information configuration; according to the log information configuration, the log information of the system and its applications is collected by a slave node; the log information is transmitted to a master node in a preset format, and the log information collected by the slave node is deleted after the transmission is completed; and the log information is encrypted and stored and cyclically stored and managed by the master node. This embodiment sends a registration request to the server, including its unique vehicle identification code. After receiving the request, the server verifies the validity of the VIN and sends the log information configuration to the vehicle according to the preset configuration, ensuring that only authorized vehicles can register and obtain configuration information through the identification code, enhancing the security and authentication mechanism of the system, and effectively controlling the access rights of the system; according to the configuration information, the slave node starts to collect the log information of the vehicle system and its applications, collects and records the vehicle operation status, fault code, event information and other data in real time, and provides necessary data support for subsequent analysis, diagnosis and maintenance; the collected log information is transmitted to the master node in a preset format, and after the transmission is completed, the log information on the slave node is automatically deleted, ensuring the structuring and standardization of data transmission, and effectively managing the storage space of the slave node, avoiding data redundancy and invalid storage; the master node encrypts and stores the received log information, and adopts a circular storage management strategy, that is, when the storage space is insufficient, the oldest log information is overwritten, protecting the security and confidentiality of the log information, and preventing unauthorized access and data leakage. At the same time, through the circular storage management, the effective use of storage space is ensured, and the latest vehicle status and operation events are continuously recorded. In summary, this embodiment realizes unified management of the logs of various electronic control units on the vehicle side through effective data collection, transmission, storage and management measures, improves the efficiency and safety of vehicle operation and maintenance, and supports data-driven analysis and decision-making.

[0083] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , Figure 2 This is a flow chart of the second embodiment of the automobile log management method of the present application. After step S40, the automobile log management method further includes steps S41 to S44:

[0084] Step S41, when receiving the log information extraction instruction of the server, uploading the log information stored by the master node to the server, so that the server stores and analyzes the log information according to the log information configuration;

[0085] It should be noted that log information extraction instructions refer to commands or requests sent from the server to the master node, which are used to request the master node to upload the log information stored on it to the server. These instructions include specific query conditions or time ranges so that the server can further store, analyze and process the log information according to the pre-set log information configuration.

[0086] It is understandable that when the master node receives a log information extraction instruction from the server, it will first filter out the data that meets the requirements from the log information stored in itself according to the query conditions or time range in the instruction. Then, the master node uploads the filtered log information to the server through a secure data transmission protocol. After the upload is completed, the server stores and analyzes the received log information according to the pre-set log information configuration. This process ensures that the server can obtain the latest vehicle operation data in a timely manner, and perform troubleshooting, performance evaluation or other decision support tasks by analyzing this data. This method not only improves the real-time and availability of data, but also strengthens the entire system's ability to monitor and manage vehicle status.

[0087] Step S42, deleting the log information stored in the master node after the transmission is completed;

[0088] It is understandable that after the master node successfully transmits the log information to the server, the system automatically or through instructions deletes the log information stored on the master node. The purpose of this is to ensure the security and privacy of the data, while effectively managing the storage space and avoiding unnecessary data redundancy. This operation ensures that the data stored in the master node will not be retained after the log information is transmitted, and also helps to improve the overall performance and efficiency of the system.

[0089] Step S43, when the transmission fails, record the reason for the transmission failure and transmit again;

[0090] It is understandable that during the transmission of log information, there may be a variety of reasons for transmission failure, such as unstable network connection, server-side failure, packet loss or damage, transmission protocol errors, etc. These problems may cause some or all log information to fail to be successfully transmitted to the target server. When a transmission failure occurs, the system will record the specific failure reason, such as network timeout, server connection rejection, etc. In order to ensure the integrity and reliability of the data, the system will take the following measures to transmit again: (1) Retry mechanism: The system will automatically or manually retry the transmission of failed log information according to the preset retry strategy. The frequency and number of retries can be set according to the specific situation to maximize the chance of successful transmission. (2) Error handling and logging: After each transmission failure, the system will record detailed information about the failure event, including timestamp, failure reason, and number of retries. These records help system administrators or technical support teams to troubleshoot and solve problems. (3) Notification and monitoring: The system may notify relevant personnel of the transmission failure through an alarm or notification mechanism so that they can intervene and deal with the problem in a timely manner. At the same time, real-time monitoring of the transmission process is also an important means to ensure that problems are discovered and solved in a timely manner. For example, if a transmission fails due to a network interruption, the system will record the failure reason for the transmission attempt, and then try the transmission again after a period of time according to the preset strategy. If it still fails after multiple retries, the system may automatically switch to the backup network or notify the administrator for manual processing. Through a reasonable retry strategy, detailed error records and timely notification mechanism, the system can effectively deal with various failures in log information transmission, ensuring data reliability and stable system operation.

[0091] Step S44, when the transmission fails and the number of transmissions exceeds a preset number, all reasons for the transmission failure and warning information are sent to the server.

[0092] It should be noted that the preset number of times refers to the maximum number of transmission failure retries allowed set in advance by the system, which is 3 times in this embodiment; the warning information refers to the notification or warning automatically generated by the system when the number of transmission failures exceeds the preset number, which includes the specific reasons for the transmission failure and possible problem descriptions.

[0093] It is understandable that when the log information transmission fails and the number of retries reaches the preset maximum number, the system will send all specific reasons for the transmission failure and related warning information to the server, such as transmission timeout warning, connection failure warning, packet loss warning, data corruption or integrity check failure warning, etc. This information includes the error code during the transmission process, the timestamp of the failure, and the description of possible network or server problems, so that the server can conduct further analysis and troubleshooting to ensure the integrity of the data and the stability of the transmission process.

[0094] When receiving the log information extraction instruction from the server, this embodiment uploads the log information stored in the master node to the server, so that the server stores and analyzes the log information according to the log information configuration; after the transmission is completed, the log information stored in the master node is deleted; when the transmission fails, the reason for the transmission failure is recorded and transmitted again; when the transmission fails and the number of transmissions exceeds the preset number of times, all reasons for the transmission failure and warning information are sent to the server. When the master node receives the log information extraction instruction from the server, the present embodiment will upload the log information stored on the master node to the server according to the instruction, and the server will store and analyze the log information according to the preset log information configuration, ensuring that the server can obtain and process the vehicle operation data in time, and support subsequent fault diagnosis, performance analysis and other tasks; after successfully transmitting the log information to the server, the present embodiment deletes the log information stored on it through the master node, ensuring timely cleaning after data transmission, effectively managing storage space, and reducing data redundancy and security risks; if a failure occurs during the transmission process, the system will record the specific cause of the failure and automatically or manually retransmit it, ensuring the integrity and reliability of the data transmission, and completing the data transmission task to the greatest extent even under the influence of network or technical problems; when the number of transmission failures exceeds the preset number, the system will send all the reasons for the transmission failure and related warning information to the server, which includes the details of the failure and possible solution suggestions, which is helpful for further problem analysis and troubleshooting on the server side, and optimizing the efficiency and stability of the log information management system. In summary, the present embodiment improves the efficiency of vehicle operation and maintenance and log management through effective data processing and fault handling mechanisms, while ensuring the security and reliability of data.

[0095] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the automobile log management method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0096] This application also provides a car log management device, please refer to Figure 3 , the automobile log management device comprises:

[0097] A registration module 10, used to send a registration request to a server, wherein the registration request includes a vehicle identification code, so that the server verifies the vehicle identification code and then sends a log information configuration;

[0098] A collection module 20, configured to collect the log information of the system and its applications from the nodes according to the log information configuration;

[0099] The transmission module 30 is used to transmit the log information to the master node in a preset format, and delete the log information collected by the slave node after the transmission is completed;

[0100] The storage management module 40 is used to perform encrypted storage and circular storage management on the log information through the master node.

[0101] The automobile log management device provided by the present application adopts the automobile log management method in the above embodiment, which can solve the technical problem of how to uniformly manage the logs of various electronic control units on the vehicle side. Compared with the prior art, the beneficial effects of the automobile log management device provided by the present application are the same as the beneficial effects of the automobile log management method provided by the above embodiment, and the other technical features in the automobile log management device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0102] The present application provides an automobile log management device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the automobile log management method in the above-mentioned embodiment 1.

[0103] Reference below Figure 4 , which shows a schematic diagram of the structure of a car log management device suitable for implementing the embodiment of the present application. The car log management device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The automobile log management device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0104] like Figure 4As shown, the automobile log management device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the automobile log management device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the automobile log management device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an automobile log management device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0105] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0106] The automobile log management device provided by the present application adopts the automobile log management method in the above embodiment, which can solve the technical problem of how to uniformly manage the logs of various electronic control units on the vehicle side. Compared with the prior art, the beneficial effects of the automobile log management device provided by the present application are the same as the beneficial effects of the automobile log management method provided by the above embodiment, and the other technical features in the automobile log management device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0107] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0108] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which 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.

[0109] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the automobile log management method in the above-mentioned embodiment.

[0110] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: 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 may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0111] The computer-readable storage medium may be included in the automobile log management device; or may exist independently without being assembled into the automobile log management device.

[0112] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the automobile log management device, the automobile log management device: sends a registration request to a server, the registration request includes a vehicle identification code, so that the server verifies the vehicle identification code and then sends a log information configuration; collects log information of the system and its applications through a slave node according to the log information configuration; transmits the log information to a master node in a preset format, and deletes the log information collected by the slave node after the transmission is completed; and encrypts and stores the log information and performs cyclic storage management through the master node.

[0113] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0114] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0115] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0116] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned automobile log management method, and can solve the technical problem of how to uniformly manage the logs of various electronic control units on the vehicle side. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the automobile log management method provided by the above-mentioned embodiment, and will not be repeated here.

[0117] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle log management method when executed by a processor.

[0118] The computer program product provided by the present application can solve the technical problem of how to uniformly manage the logs of various electronic control units on the vehicle side. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the automobile log management method provided by the above embodiment, which will not be repeated here.

[0119] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for managing automobile logs, characterized in that: The method comprises: Sending a registration request to a server, wherein the registration request includes a vehicle identification code, so that the server verifies the vehicle identification code and then sends a log information configuration; According to the log information configuration, log information of the system and its applications is collected from the nodes; Transmitting the log information to the master node in a preset format, and deleting the log information collected by the slave node after the transmission is completed; The log information is encrypted and stored and managed in a circular manner through the master node.

2. The method according to claim 1, characterized in that The step of collecting the log information of the system and its applications from the nodes according to the log information configuration includes: Collect the initial log information of the system and its applications through the preset log collection tool in the slave node; According to the log information configuration, a naming rule, a timestamp rule, and a log category rule are obtained; Adding a timestamp to the initial log information according to the timestamp rule; Classifying the initial log information according to the log category rule; The log file containing the initial log information is named according to the naming rule to obtain the log information.

3. The method according to claim 1, characterized in that The step of performing cyclic storage management on the log information comprises: When the storage space allocated to the electronic control unit is insufficient, obtaining the timestamp of the historical log information; Arrange the historical log information in chronological order according to the timestamp; When new log information is stored, the new log information overwrites the oldest log information.

4. The method according to claim 1, characterized in that After the step of encrypting and storing the log information and managing the cyclic storage by the master node, the method further includes: When receiving the log information extraction instruction from the server, uploading the log information stored by the master node to the server, so that the server stores and analyzes the log information according to the log information configuration; After the transmission is completed, the log information stored in the master node is deleted; When the transmission fails, record the reason for the transmission failure and transmit again; When the transmission fails and the number of transmissions exceeds a preset number, all reasons for the transmission failure and warning information are sent to the server.

5. The method according to claim 1, characterized in that After the step of collecting the log information of the system and its applications from the nodes according to the log information configuration, the method further includes: Obtaining log keywords and log level configuration according to the log information configuration; The log information is graded according to the log keyword and the log level configuration.

6. The method according to claim 1, characterized in that Before the step of collecting the log information of the system and its applications from the nodes according to the log information configuration, the method further includes: Get vehicle status information; The collection frequency and data granularity of the log information are adjusted according to the vehicle status information.

7. The method according to claim 6, characterized in that The step of adjusting the collection frequency and data granularity of the log information according to the vehicle status information comprises: Assessing the degree of risk of driving behavior based on the vehicle status information; When the driving behavior risk level is high, increasing the frequency of collecting the log information and the data granularity; When the risk level of the driving behavior is low risk, the collection frequency and data granularity of the log information are reduced.

8. A vehicle log management device, characterized in that: The device comprises: A registration module, used to send a registration request to a server, wherein the registration request includes a vehicle identification code, so that the server verifies the vehicle identification code and then sends a log information configuration; A collection module, configured to collect the log information of the system and its applications from the nodes according to the log information configuration; A transmission module, used to transmit the log information to the master node in a preset format, and delete the log information collected by the slave node after the transmission is completed; The storage management module is used to perform encrypted storage and circular storage management on the log information through the master node.

9. A vehicle log management device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the automobile log management method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the automobile log management method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Vehicle upgrading method, device and equipment and storage medium

    CN113791802A

  • Vehicle-mounted vehicle-cloud integrated log acquisition and analysis method, vehicle and cloud server

    CN115333800A

  • Log protection method and system for vehicle instrument system

    CN116775592A

  • Log acquisition method and device, electronic equipment and storage medium

    CN117119007A

  • Vehicle end log collection method, device and system, vehicle end and storage medium

    CN117896727A