A method, system, and device for log tracking based on a time-series database.

By using a log tracking method based on a time-series database, the log data is structured and synchronized to the time-series database, solving the problems of large log file size and long export time. This enables efficient log analysis and anomaly localization, and improves the data processing capabilities of the vehicle system.

CN119011381BActive Publication Date: 2025-11-14CHINA FAW CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410983019.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2025-11-14
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Existing logging solutions result in huge log file sizes, consume a lot of memory, take a long time to export and remotely upload, and record only limited information, making it impossible to achieve hierarchical filtering and on-demand processing, making it difficult to locate problems and resulting in low efficiency.

Method used

A log tracking method based on time-series databases is adopted to structure log data and synchronize it to the time-series database. Through the vehicle system, tracking system, vehicle platform application and adaptation layer, the structured processing and aggregation analysis of logs are realized, and the cloud RPC call requests are responded to for filtering and uploading.

Benefits of technology

It greatly compresses log volume, reduces storage space usage, reduces export and remote upload time, improves analysis efficiency, and enables rapid location and anomaly analysis of any single data point on the data link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011381B_ABST
    Figure CN119011381B_ABST
Patent Text Reader

Abstract

A log tracking method, system, and device based on a time-series database, relating to the computer field, includes an in-vehicle infotainment system, a tracking system, an in-vehicle platform application, and an adaptation layer. One end of the in-vehicle infotainment system connects to the adaptation layer to acquire tracking logs from the in-vehicle platform application; the other end connects to the tracking system via a Some IP / CAN bus, forwarding low-level control signals uploaded via the Some IP / CAN bus to the tracking system. The tracking system receives the forwarded low-level control signals from the in-vehicle infotainment system, performs structured processing, and associates them with the tracking logs to obtain a structured low-level signal sequence, which is then synchronously recorded in the in-vehicle infotainment system for aggregation analysis. Simultaneously, it responds to RPC call requests from the cloud, queries the entire data chain through a database query interface, filters out the target data points corresponding to the RPC call requests, and uploads them to the cloud. This solution can aggregate and analyze any single data point on the data chain, quickly locating problem points, avoiding layer-by-layer processing during log analysis, and improving analysis efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and specifically to a log tracking method, system, and device based on a time-series database. Background Technology

[0002] With the popularization of automotive intelligence, the applications and functions of in-vehicle infotainment systems are gradually increasing and becoming more sophisticated. During the development and debugging process, the data recorded by the in-vehicle infotainment system has become more complex, and the log volume has also become larger.

[0003] Existing logging solutions all print logs to files and then further organize, overwrite, and compress them based on timestamps and information sources. This results in problems such as huge individual log file sizes, large memory consumption, long export and remote upload times, and limited log information.

[0004] This approach only provides timestamp information, which cannot achieve hierarchical filtering and on-demand processing of log records. Furthermore, analyzing logs requires filtering out a large number of invalid logs, making it difficult to pinpoint key issues and resulting in low efficiency. Summary of the Invention

[0005] Therefore, it is necessary to provide a log tracking method, system, and device based on a time-series database to address the aforementioned technical issues, structuring log data and synchronizing it to the time-series database. Structured data can be analyzed independently according to the module in which the anomaly occurred; simultaneously, it significantly compresses log volume, reduces storage space usage, and lowers the time required for exporting and remotely uploading logs.

[0006] In a first aspect, the present invention provides a log tracking system based on a time-series database, the system comprising: a vehicle infotainment system, a tracking system, a vehicle infotainment platform application, and an adaptation layer;

[0007] The vehicle system is connected to the adaptation layer at one end to obtain the data entry logs of the vehicle platform application; the other end is connected to the data entry system via the Some IP / CAN bus to forward the underlying control signals uploaded by the Some IP / CAN bus to the data entry system.

[0008] The aforementioned data tracking system receives low-level control signals forwarded by the vehicle infotainment system, performs structured processing on these signals, associates and maps them with the data tracking logs, and synchronously records the structured low-level signal sequences obtained from the association and mapping in the vehicle infotainment system for aggregation and analysis. Simultaneously, it responds to RPC call requests from the cloud, queries the entire link record of the vehicle infotainment platform application-adaptation layer-Some IP / CAN bus through the database query interface, filters and obtains the target point data corresponding to the RPC call request, and uploads it to the cloud.

[0009] Optionally, the in-vehicle platform applications include parking AVM, Bluetooth phone, instrument panel, navigation, air conditioning and seat applications, driving recorder, and vehicle settings;

[0010] The vehicle infotainment platform application is used to define data link nodes; the vehicle infotainment platform application has pre-set business tracking points to record key business information of the vehicle infotainment platform application.

[0011] The in-vehicle infotainment platform applications include:

[0012] The acquisition module is used to respond to instructions triggered by the CSC operating system kernel mode, receive application operation requests from the user terminal, and determine the corresponding business tracking points based on the vehicle platform application and business requirements requested by the user terminal.

[0013] The response module is used to call the adaptation layer based on a predefined communication protocol to record and transmit the instrument cluster logs of the vehicle platform application.

[0014] The adaptation layer includes at least one vehicle API, which includes a vehicle API uplink interface and a vehicle API downlink interface.

[0015] The vehicle API uplink interface is used to receive calls from the vehicle infotainment platform application and automatically record the instrumentation logs of the vehicle infotainment platform application during the call to the vehicle API.

[0016] The vehicle API downlink interface is used to upload the recorded data entry logs to the vehicle infotainment system.

[0017] Optionally, the vehicle system is equipped with a time-series database; the time-series database includes a storage module and an analysis module;

[0018] The storage module is used to store the tracking logs uploaded by the adaptation layer, as well as the structured underlying signal sequence synchronized by the tracking system.

[0019] The analysis module is used to perform aggregate analysis on the structured underlying signal sequence, identify abnormal information based on the database preprocessing logic pre-written in the tracking system, and intercept abnormal information or report it to the cloud for processing when an abnormality occurs.

[0020] The database preprocessing logic is a pre-set signal verification trigger script used to identify abnormal information such as invalid / missing / jumping structured underlying signal sequences or crashes / ANRs and memory warnings in CSC applications.

[0021] Optionally, the timing database also includes a low-level signal dataset for storing low-level control signals uploaded by Some IP / CAN bus;

[0022] The underlying signal dataset is equipped with triggers to verify whether the underlying control signal sending / reporting / query verification functions are normal.

[0023] Optionally, the vehicle infotainment system includes:

[0024] The asynchronous task registration module is used to add asynchronous tasks in the data tracking system, perform asynchronous task initialization, and obtain the registered vehicle control attribute information. The asynchronous task initialization is the registration of vehicle controls before the execution of the vehicle platform application. The vehicle control registration includes vehicle API registration, Some IP / CAN bus registration, and vehicle platform application registration.

[0025] The initialization module is used to initialize triggers when the vehicle system is turned on, using the UTC time of the vehicle system startup as the timestamp of the time series database, and to initialize the cloud log service.

[0026] The caching module is used to store the event logs uploaded by the adaptation layer in the time series database.

[0027] The HAL layer is driven to forward the underlying control signals uploaded by Some IP / CAN bus and to call the instrumentation system to write them.

[0028] Optionally, the data embedding system includes:

[0029] The structured processing module is used to classify the underlying control signals that drive the HAL layer to forward according to the vehicle control, map the classification results into data carrying category labels, and compress the underlying control signals after they have been verified by the trigger.

[0030] The association mapping module is used to associate and map the underlying control signals output by the structured processing module with the event logs, generate a structured underlying signal sequence, and synchronize it to the time series database for aggregation analysis according to the timestamp of the time series database.

[0031] The query module is used to respond to RPC call requests from the cloud, query the entire link record of the vehicle platform application-adaptation layer-Some IP / CAN bus through the database query interface, filter to obtain the target point data corresponding to the RPC call request, and upload it to the cloud.

[0032] Optionally, the cloud includes a remote control module and an acquisition module;

[0033] The remote control module is used to remotely control the data collection system and send RPC call requests based on the encrypted RPC protocol.

[0034] The acquisition module is used to acquire target point data based on timeline distribution on the data link.

[0035] Secondly, the present invention provides a log tracking method based on a time-series database, the method comprising:

[0036] Acquire low-level control signals uploaded via the SomeIP / CAN bus;

[0037] The underlying control signals are associated and mapped with the vehicle platform application data entry logs pre-stored in the time-series database to generate a structured underlying signal sequence, which is synchronously recorded in the time-series database for aggregation and analysis. When an anomaly occurs, the abnormal information is intercepted or reported to the cloud for processing according to the database preprocessing logic.

[0038] In response to the RPC call request from the cloud, the system queries the entire link record of the vehicle platform application-adaptation layer-Some IP / CAN bus through the database query interface, filters and obtains the target point data corresponding to the RPC call request, and uploads it to the cloud.

[0039] Thirdly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the second aspect.

[0040] Fourthly, the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the method described in the second aspect.

[0041] Compared with the closest existing technology, the present invention has the following advantages:

[0042] This invention proposes a log tracking method, system, and device based on a time-series database, comprising an in-vehicle infotainment system, a tracking system, an in-vehicle platform application, and an adaptation layer. The in-vehicle infotainment system connects to the adaptation layer on one end to acquire tracking logs from the in-vehicle platform application. On the other end, it connects to the tracking system via a Some IP / CAN bus, forwarding low-level control signals uploaded via the Some IP / CAN bus to the tracking system. The tracking system receives the forwarded low-level control signals from the in-vehicle infotainment system, performs structured processing on these signals, and associates them with the tracking logs to obtain a structured low-level signal sequence, which is then synchronously recorded in the in-vehicle infotainment system for aggregation and analysis. Simultaneously, it responds to RPC call requests from the cloud, queries the entire data chain through a database query interface, filters the target data points corresponding to the RPC call requests, and uploads them to the cloud. This solution, through structured data, allows for aggregation and analysis of any single data point on the data chain, quickly locating problem points. Independent analysis of in-vehicle controls where anomalies occur avoids layer-by-layer log processing, improving analysis efficiency.

[0043] Simultaneously, the log data is structured and synchronized to the time-series database, greatly compressing the log volume, reducing storage space usage, and lowering the time required for exporting and remotely uploading logs.

[0044] By sampling the time-series database, massive amounts of data containing user habits and vehicle signals are synchronized to the cloud to create a digital twin of the vehicle, providing effective data support for user experience and demand analysis, as well as new model development. Attached Figure Description

[0045] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn to scale.

[0046] Figure 1 This is a log tracking system architecture diagram based on a time-series database provided in this embodiment of the invention;

[0047] Figure 2 This is a flowchart illustrating the log tracking method based on a time-series database provided in this embodiment of the invention.

[0048] Figure 3 This is a flowchart of the embedding system provided in this embodiment of the invention;

[0049] Figure 4 This is an internal structure diagram of the electronic device provided in the embodiments of the present invention. Detailed Implementation

[0050] The embodiments of the technical solution of the present invention will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of the present invention and are therefore merely examples, and should not be construed as limiting the scope of protection of the present invention.

[0051] It should be noted that, unless otherwise stated, the technical or scientific terms used in this application should have the ordinary meaning as understood by one of ordinary skill in the art to which this invention pertains.

[0052] To address the aforementioned problems, this invention provides a log tracking method, system, and device based on a time-series database. Specifically, the log tracking system of this embodiment runs in the operating system kernel mode of the CSC module, and includes: a vehicle infotainment system, a tracking system, a vehicle infotainment platform application, and an adaptation layer;

[0053] like Figure 1 As shown, one end of the vehicle system is connected to the adaptation layer to obtain the event logs of the vehicle platform application; specifically, it includes event logs of key application business.

[0054] The other end connects to the data acquisition system via a Some IP / CAN bus, forwarding the underlying control signals uploaded via the Some IP / CAN bus to the data acquisition system. The underlying control signals uploaded via the Some IP / CAN bus originate from the vehicle controller (VDC); the output of the vehicle controller (VDC) is connected to the Some IP / CAN bus to achieve data acquisition from the cockpit controller, driving conditions, and chassis instruments.

[0055] In the above embodiments, the data tracking system is used to receive the underlying control signals forwarded by the vehicle system, perform structured processing on the underlying control signals and associate them with the data tracking logs, and synchronously record the structured underlying signal sequence obtained by the association mapping in the vehicle system for aggregation analysis; at the same time, it responds to RPC call requests from the cloud, queries the full-link records of the vehicle platform application-adaptation layer-Some IP / CAN bus through the database query interface, filters and obtains the target point data corresponding to the RPC call request, and uploads it to the cloud.

[0056] In the above embodiments, the vehicle platform applications include parking AVM, Bluetooth phone, instrument panel, navigation, air conditioning and seat applications, driving recorder and vehicle settings;

[0057] The vehicle infotainment platform application is used to define data link nodes; the vehicle infotainment platform application has pre-set business tracking points used to record key business information of the vehicle infotainment platform application.

[0058] In the above embodiments, the vehicle-mounted platform application includes:

[0059] The acquisition module is used to respond to instructions triggered by the CSC operating system kernel mode, receive application operation requests from the user terminal, and determine the corresponding business tracking points based on the vehicle platform application and business requirements requested by the user terminal.

[0060] The response module is used to call the adaptation layer based on a predefined communication protocol to record and transmit the instrument cluster logs of the vehicle platform application.

[0061] In the above embodiments, the adaptation layer includes at least one vehicle API, and the vehicle API includes a vehicle API uplink interface and a vehicle API downlink interface;

[0062] The vehicle API uplink interface is used to receive calls from the vehicle infotainment platform application and automatically record the instrumentation logs of the vehicle infotainment platform application during the call to the vehicle API.

[0063] The vehicle API downlink interface is used to upload the recorded data entry logs to the vehicle infotainment system.

[0064] In the above embodiments, the vehicle system is equipped with a time-series database; the time-series database includes a storage module and an analysis module;

[0065] The storage module is used to store the tracking logs uploaded by the adaptation layer, as well as the structured underlying signal sequence synchronized by the tracking system.

[0066] The analysis module is used to perform aggregate analysis on the structured underlying signal sequence, identify abnormal information based on the database preprocessing logic pre-written in the tracking system, and intercept abnormal information or report it to the cloud for processing when an abnormality occurs.

[0067] The database preprocessing logic is a pre-set signal verification trigger script used to identify abnormal information such as invalid / missing / jumping structured underlying signal sequences or crashes / ANRs and memory warnings in CSC applications.

[0068] In addition, the timing database also includes a low-level signal dataset, which is used to store the low-level control signals uploaded by Some IP / CAN bus;

[0069] The underlying signal dataset is equipped with triggers to verify the normal operation of the underlying control signal transmission / reporting / query verification functions. By setting triggers on the underlying signal dataset, it is possible to locate and capture real-time abnormal information when signal loss / failure / abruptness occurs, and handle the abnormality or report it to the cloud according to predetermined logic. This enables a monitoring and alarm mechanism for early location, analysis, interception, and handling of signal anomalies at the HAL layer.

[0070] In the above embodiments, the vehicle system includes: an asynchronous task registration module, used to add asynchronous tasks in the data tracking system, perform asynchronous task initialization, and obtain the registered vehicle control attribute information; wherein, the asynchronous task initialization is the vehicle control registration before the vehicle platform application is executed; the vehicle control registration includes vehicle API registration, Some IP / CAN bus registration, and vehicle platform application registration;

[0071] The initialization module is used to initialize triggers when the vehicle system is turned on, using the UTC time of the vehicle system startup as the timestamp of the time series database, and to initialize the cloud log service.

[0072] The caching module is used to store the event logs uploaded by the adaptation layer in the time series database.

[0073] The HAL layer is driven to forward the underlying control signals uploaded by Some IP / CAN bus and to call the instrumentation system to write them.

[0074] In the above embodiments, the embedding system includes:

[0075] The structured processing module is used to classify the underlying control signals that drive the HAL layer to forward according to the vehicle control, map the classification results into data carrying category labels, and compress the underlying control signals after they have been verified by the trigger.

[0076] The association mapping module is used to associate and map the underlying control signals output by the structured processing module with the event logs, generate a structured underlying signal sequence, and synchronize it to the time series database for aggregation analysis according to the timestamp of the time series database.

[0077] The query module is used to respond to RPC call requests from the cloud, query the entire link record of the vehicle platform application-adaptation layer-Some IP / CAN bus through the database query interface, filter to obtain the target point data corresponding to the RPC call request, and upload it to the cloud.

[0078] The cloud platform is equipped with a cloud log service, which includes a remote control module and an acquisition module.

[0079] The remote control module is used to remotely control the data tracking system and issue RPC call requests based on the encrypted RPC protocol; the acquisition module is used to acquire target point data based on the timeline distribution on the data link.

[0080] Based on the same inventive concept, this application also provides a log tracking method based on a time-series database, corresponding to a log tracking system based on a time-series database. The solution provided by this method is similar to the implementation scheme described in the above system. Therefore, the specific limitations in one or more embodiments of the log tracking method based on a time-series database provided below can be found in the limitations of the log tracking system based on a time-series database described above, and will not be repeated here.

[0081] In one embodiment, such as Figure 2 As shown in the figure, this application provides a log tracking method based on a time-series database. Specifically, it includes the following steps:

[0082] S101 acquires the underlying control signals uploaded from the SomeIP / CAN bus;

[0083] S102 associates and maps the underlying control signals with the vehicle platform application data entry logs pre-stored in the time-series database to generate a structured underlying signal sequence, which is then synchronously recorded in the time-series database for aggregation and analysis. When an anomaly occurs, the abnormal information is intercepted or reported to the cloud for processing according to the database preprocessing logic.

[0084] S103 responds to the RPC call request from the cloud, queries the entire link record of the vehicle platform application-adaptation layer-Some IP / CAN bus through the database query interface, filters and obtains the target point data corresponding to the RPC call request, and uploads it to the cloud.

[0085] Optionally, the present invention also proposes specific functional embodiments of a log tracking system based on a time-series database:

[0086] The existing vehicle infotainment system architecture is divided from top to bottom into: the CSC module, which integrates vehicle platform applications, adaptation layer, and vehicle system, and the VDC module, which integrates SomeIP protocol, CAN bus, ICC, and MCU.

[0087] In one embodiment, the log tracking system based on a time-series database proposed in this invention runs in the system kernel mode of the CSC application;

[0088] The vehicle infotainment system is responsible for reading and writing to the database, distributing embedded information, and forwarding signals. The time-series database used is InfluxDB, combined with... Figure 1 The details are as follows:

[0089] 1. The vehicle-mounted platform application defines the nodes of the entire process. Key information is recorded in advance in critical business through bytecode instrumentation or pre-set points, and mapped to the Measurement-Point table in the time-series database, and the points are called to write the information.

[0090] 2. The adaptation layer maps the vehicle API downlink interface to Point-Field-Tag data items and calls the event tracking system to write them;

[0091] 3. The vehicle-mounted data tracking system directly operates the time-series database, unifying the vehicle-mounted application-adaptation layer record information into Measurement-Points-Field-Tag-TimeStamp data items and writing them into the time-series database;

[0092] 4. VDC-SomeIP / CAN signals are classified according to the domain of the vehicle control and mapped to Point-Field-Tag data items. The vehicle system HAL layer forwards the data to the data entry system for writing, and records it as Point-Field-Tag-TimeStamp data items.

[0093] 5. The event tracking system sets triggers in the timing database to verify that the VDC signal is invalid / missing / jumping, and that the CSC application crashes / ANR / memory warnings.

[0094] 6. Through the remote debugging interface, the encrypted protocol RPC is used to remotely execute the Query-Tag query of the data collection system and filter the full-link records of the vehicle platform application-adaptation layer-SomeIP / CAN.

[0095] 7. When the VDC-SomeIP / CAN signal becomes invalid / lost / jumps, or when the CSC application crashes / ANRs and memory warnings occur, the database preprocessing logic is triggered to query the Point-Tag-TimeStamp data item and upload it to the cloud via HTTPS for log analysis.

[0096] In one embodiment, the log tracking implementation process based on a time-series database provides an interface for logging to the upper-layer vehicle infotainment application. Simultaneously, the interface and parameters are automatically recorded during vehicle API calls. Lower-level signals are forwarded to the tracking system via the HAL layer. The system categorizes the lower-level signals according to vehicle infotainment controls, verifies the normality of signal delivery / reporting / query functions, compresses the signals, and stores them in a time-series log database along with associated upper-layer application business tracking logs. Figure 3 The specific process is as follows:

[0097] 1. Initialize the data tracking system: The vehicle system powers on, initializes database triggers, synchronizes UTC time to the database TimeStemp, and initializes the cloud log service;

[0098] 2. Register the whole vehicle API in the data tracking system, and use the Measurement-Point-Field-Tag for data tracking on the platform.

[0099] 3. Register the Point-Field of SomeIP / CAN signals in the embedded system;

[0100] 4. The user operates the vehicle infotainment platform application, calling the data tracking system to write data;

[0101] 5. VDC signal reporting / sending is forwarded through the vehicle's HAL system and written by calling the data entry system;

[0102] 6. The tracking point write trigger logic queries the Point-Field-Tag-TimeStemp data item of the current link and uploads it to the cloud;

[0103] 7. The event tracking system detects RPC calls to the cloud, queries the Point-Tag-TimeStemp data item, and uploads it to the cloud;

[0104] 8. Offline local export: The event tracking system exports the log Database-Measurement to a file.

[0105] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0106] Based on the same inventive concept, this application also provides an adaptive business data compliance risk assessment system for implementing the adaptive business data compliance risk assessment method described above. The solution provided by this system is similar to the implementation scheme described in the above method; therefore, the specific limitations of one or more adaptive business data compliance risk assessment embodiments provided below can be found in the limitations of the adaptive business data compliance risk assessment method described above, and will not be repeated here.

[0107] Meanwhile, this application also proposes a computer-readable storage medium and an electronic device. In one embodiment, the computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of any one of steps S101 to S103 of the method.

[0108] In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The electronic device includes a processor, memory, communication interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements the method described in any one of steps S101 to S103. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the device's casing, or an external keyboard, touchpad, or mouse.

[0109] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0110] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0111] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric memory (FRAM), phase-change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational and non-relational databases. Non-relational databases can include blockchain-based distributed databases, etc., and are not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited thereto.

[0112] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0113] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A log tracking system based on a time-series database, characterized in that, The system includes: vehicle infotainment system, data tracking system, vehicle infotainment platform application, and adaptation layer; The vehicle system is connected to the adaptation layer at one end to obtain the data entry logs of the vehicle platform application; the other end is connected to the data entry system via the Some IP / CAN bus to forward the underlying control signals uploaded by the Some IP / CAN bus to the data entry system. The aforementioned data tracking system receives low-level control signals forwarded by the vehicle infotainment system, performs structured processing on these signals, associates and maps them with the data tracking logs, and synchronously records the structured low-level signal sequences obtained from the association and mapping in the vehicle infotainment system for aggregation and analysis. Simultaneously, it responds to RPC call requests from the cloud, queries the entire link record of the vehicle infotainment platform application-adaptation layer-Some IP / CAN bus through the database query interface, filters and obtains the target point data corresponding to the RPC call request, and uploads it to the cloud.

2. The system as described in claim 1, characterized in that, The in-vehicle platform applications include parking AVM, Bluetooth phone, instrument panel, navigation, air conditioning and seat applications, driving recorder and vehicle settings; The vehicle infotainment platform application is used to define data link nodes; The vehicle infotainment platform application has pre-installed business tracking points for recording key business information of the vehicle infotainment platform application; The in-vehicle infotainment platform applications include: The acquisition module is used to respond to instructions triggered by the CSC operating system kernel mode, receive application operation requests from the user terminal, and determine the corresponding business tracking points based on the vehicle platform application and business requirements requested by the user terminal. The response module is used to call the adaptation layer based on a predefined communication protocol to record and transmit the instrument cluster logs of the vehicle platform application. The adaptation layer includes at least one vehicle API, which includes a vehicle API uplink interface and a vehicle API downlink interface. The vehicle API uplink interface is used to receive calls from the vehicle infotainment platform application and automatically record the instrumentation logs of the vehicle infotainment platform application during the call to the vehicle API. The vehicle API downlink interface is used to upload the recorded data entry logs to the vehicle infotainment system.

3. The system as described in claim 1, characterized in that, The vehicle infotainment system is equipped with a time-series database; the time-series database includes a storage module and an analysis module. The storage module is used to store the tracking logs uploaded by the adaptation layer, as well as the structured underlying signal sequence synchronized by the tracking system. The analysis module is used to perform aggregate analysis on the structured underlying signal sequence and identify abnormal information based on the database preprocessing logic pre-written by the data tracking system. When an anomaly occurs, the anomaly information is intercepted according to the database preprocessing logic or reported to the cloud for processing. The database preprocessing logic is a pre-set signal verification trigger script used to identify abnormal information such as invalid / missing / jumping structured underlying signal sequences or crashes / ANRs and memory warnings in CSC applications.

4. The system as described in claim 3, characterized in that, The timing database also includes a low-level signal dataset for storing low-level control signals uploaded by Some IP / CAN bus; The underlying signal dataset is equipped with triggers to verify whether the underlying control signal sending / reporting / query verification functions are normal.

5. The system as described in claim 4, characterized in that, The vehicle infotainment system includes: The asynchronous task registration module is used to add asynchronous tasks in the data tracking system, perform asynchronous task initialization, and obtain the registered vehicle control attribute information. The asynchronous task initialization is the registration of vehicle controls before the execution of the vehicle platform application. The vehicle control registration includes vehicle API registration, Some IP / CAN bus registration, and vehicle platform application registration. The initialization module is used to initialize triggers when the vehicle system is turned on, using the UTC time of the vehicle system startup as the timestamp of the time series database, and to initialize the cloud log service. The caching module is used to store the event logs uploaded by the adaptation layer in the time series database. The HAL layer is driven to forward the underlying control signals uploaded by Some IP / CAN bus and to call the instrumentation system to write them.

6. The system as described in claim 5, characterized in that, The embedded point system includes: The structured processing module is used to classify the underlying control signals that drive the HAL layer to forward according to the vehicle control, map the classification results into data carrying category labels, and compress the underlying control signals after they have been verified by the trigger. The association mapping module is used to associate and map the underlying control signals output by the structured processing module with the event logs, generate a structured underlying signal sequence, and synchronize it to the time series database for aggregation analysis according to the timestamp of the time series database. The query module is used to respond to RPC call requests from the cloud, query the entire link record of the vehicle platform application-adaptation layer-Some IP / CAN bus through the database query interface, filter to obtain the target point data corresponding to the RPC call request, and upload it to the cloud.

7. The system as described in claim 6, characterized in that, The cloud platform includes a remote control module and an acquisition module; The remote control module is used to remotely control the data collection system and send RPC call requests based on the encrypted RPC protocol. The acquisition module is used to acquire target point data based on timeline distribution on the data link.

8. A log tracking method based on a time-series database, characterized in that, The method includes: Acquire low-level control signals uploaded via the SomeIP / CAN bus; The underlying control signals are associated and mapped with the vehicle platform application data entry logs pre-stored in the time-series database to generate a structured underlying signal sequence, which is synchronously recorded in the time-series database for aggregation and analysis. When an anomaly occurs, the abnormal information is intercepted or reported to the cloud for processing according to the database preprocessing logic. In response to the RPC call request from the cloud, the system queries the entire link record of the vehicle platform application-adaptation layer-SomeIP / CAN bus through the database query interface, filters and obtains the target point data corresponding to the RPC call request, and uploads it to the cloud.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method described in claim 8.

10. An electronic device, comprising a memory and a processor, characterized in that, The memory stores a computer program, which, when executed by the processor, causes the processor to perform the steps of the method as described in claim 8.

Citation Information

Patent Citations

  • Point burying method and device applied to in-vehicle infotainment system, vehicle and storage medium

    CN114661607A

  • Webpage burying point reporting method and device, electronic equipment and storage medium

    CN117891693A