Vehicle-mounted bus data record dynamic configuration system and method

By incorporating a configuration file generation module, a user configuration module, a hierarchical configuration management architecture, a configuration hot loading and execution module, and a protocol parsing and real-time processing module, the system solves the problem of adapting vehicle bus data recording devices to multiple vehicle models and multiple protocol scenarios, achieving fast and reliable data recording and system management.

CN121262301APending Publication Date: 2026-01-02CHINA NORTH VEHICLE RES INST
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511374493.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-25
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

Existing vehicle bus data recording devices suffer from poor protocol scalability, low dynamic adaptation efficiency, and high configuration complexity in multi-vehicle and multi-protocol scenarios, failing to meet the requirements for rapid response and cross-platform compatibility.

Method used

It adopts a configuration file generation module, a user configuration module, a layered configuration management architecture, a configuration hot loading and execution module, and a protocol parsing and real-time processing module to achieve no-code, dynamic, and standardized configuration management, and supports rapid adaptation and data recording for multiple vehicle models and protocols.

Benefits of technology

It significantly improves protocol adaptation efficiency, reduces the complexity of manual operation, ensures system continuity and reliability, and supports rapid adaptation and reliable data recording in multi-vehicle and multi-protocol scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121262301A_ABST
    Figure CN121262301A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle-mounted bus data record dynamic configuration system and method. The vehicle-mounted bus data record dynamic configuration system comprises a configuration file generation module, a user configuration module, a layered configuration management architecture, a configuration hot loading and execution module and a protocol analysis and real-time processing module. According to the method, the configuration framework and the intelligent tool chain are established, so that the requirement of no modification of core function codes during vehicle type / protocol switching is met, and the limitation that codes need to be recompiled during protocol updating and manual configuration is prone to errors in a traditional scheme is broken through; a core technology covers multi-protocol dynamic loading, structured configuration management, composite frame intelligent analysis and a configuration hot loading mechanism, rapid adaptation and data recording reliability under a multi-vehicle-type and multi-protocol scene can be achieved, and the cross-platform guarantee requirement is met.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicle-mounted electronic equipment, and particularly relates to a vehicle-mounted bus data recording dynamic configuration system and method based on configuration file generation and dynamic loading, and is particularly suitable for monitoring and cross-platform rapid adaptation of multi-source data of CAN, FlexRay and other heterogeneous bus protocols. BACKGROUND

[0002] In vehicle-mounted electronic equipment, bus data recording equipment is the core tool for fault diagnosis, performance analysis and collaborative support. With the increasing demand for cross-platform collaborative support, such equipment needs to adapt to multiple and heterogeneous bus protocols, and higher requirements are put forward for the cross-platform compatibility and protocol dynamic adaptation capability of the equipment. However, the existing technology has the following significant defects, which seriously restrict the rapid deployment and flexibility in the multi-vehicle and multi-protocol scenarios.

[0003] The existing scheme relies on embedded protocol processing code to realize bus data parsing and screening functions, resulting in poor protocol expandability and low dynamic adaptation efficiency. New or modified protocols need to be recompiled and burned into hardware, which is time-consuming and cannot meet the rapid response requirements of temporary switching of monitoring targets. The scattered protocol library management further increases the complexity of development and maintenance, making it difficult to adapt to multiple vehicles and multiple protocols. Protocol switching requires manual configuration file writing, vehicle ID definition, signal screening rules and storage strategies, which are prone to data missing or false triggering due to parameter errors.

[0004] In view of the problems of poor protocol expandability and low dynamic adaptation efficiency caused by the existing scheme relying on embedded protocol processing code, there is an urgent need for a vehicle-mounted bus data recording system that can realize codeless, dynamic and standardized configuration to solve the above problems of multi-vehicle, multi-protocol adaptation difficulty, low configuration efficiency and system maintenance complexity. SUMMARY

[0005] (I) Technical problems to be solved

[0006] The present application proposes a vehicle-mounted bus data recording dynamic configuration system and method to solve two core problems in the bus data recording system: one is the multi-vehicle protocol adaptation problem, as the CAN protocol of different vehicles differs significantly (such as ID, signal definition, composite frame structure, etc.), efficient dynamic configuration is needed to adapt to multiple vehicles; the other is the multi-parameter dynamic configuration problem, vehicle ID, CAN channel, baud rate, storage strategy and other parameters need to be adjusted flexibly to avoid frequent modification of core code due to parameter changes, thereby improving the system versatility and maintainability.

[0007] (II) Technical solutions

[0008] In order to solve the above technical problems, the application provides a kind of vehicle-mounted bus data record dynamic configuration system, which comprises configuration file generation module, user configuration module, hierarchical configuration management architecture, configuration hot loading and execution module and protocol analysis and real-time processing module;Wherein,

[0009] The configuration file generation module is used to analyze the input bus description file and generate a standardized configuration file containing protocol definition and signal filtering rules;

[0010] The user configuration module is used to provide a graphical interface for user input and modification of system operating parameters, and generate a system configuration file;

[0011] The hierarchical configuration management architecture is used to receive, transmit, verify and load standardized configuration files and system configuration files;

[0012] The configuration hot loading and execution module is used to dynamically load configuration files during system operation, and atomically update hardware controller parameters to make new configurations effective without interrupting system services;

[0013] The protocol analysis and real-time processing module is used to load and analyze standardized configuration files, and perform real-time analysis, calculation and storage of bus data according to the configuration.

[0014] Further, the configuration file generation module supports loading multiple types of DBC files and provides configuration templates for users to define message IDs, signal attributes, composite frame structures and data filtering rules to be recorded, and finally outputs a unified format configuration file.

[0015] Further, the hierarchical configuration management architecture includes a user interface layer, a configuration generation layer, a communication protocol layer and a bottom layer execution layer;The user interface layer is used to provide parameter configuration interface and generate configuration instruction;The configuration generation layer is used to generate or update structured configuration file according to instruction;The communication protocol layer is used to realize reliable transmission and verification of configuration data;The bottom layer execution layer is used to receive configuration data and execute dynamic reinitialization of hardware controller.

[0016] Further, the configuration hot loading and execution module includes dynamic writing unit, backup synchronization unit and atomic update unit;The dynamic writing unit is used to update configuration file through file operation interface and force data to disk;The backup synchronization unit is used to create a backup copy of the configuration file before updating, supporting fault rollback;The atomic update unit is used to call reinitialization function to update hardware controller parameters, ensuring the continuity of bus communication.

[0017] Further, the protocol analysis and real-time processing module comprises a file analysis unit and a data processing unit; the file analysis unit is configured to read a configuration file, count message quantity, distinguish frame types, extract signal and composite frame attributes, and dynamically allocate storage space to construct message-signal mapping relationship; the data processing unit is configured to verify received message ID, store data in a buffer according to configuration, and perform mean value, maximum value or minimum value calculation on analog signals, and perform state comparison and update on switch signals.

[0018] Further, the system configuration file adopts a structured format, and uniformly integrates vehicle identity information, communication parameters, storage strategies and algorithm configuration multi-dimensional parameters.

[0019] In addition, the application also proposes a bus data recording dynamic configuration method using the above vehicle-mounted bus data recording dynamic configuration system, the bus data recording dynamic configuration method comprising the following steps:

[0020] A standardized configuration file is generated by a configuration file generation tool based on a bus description file and user input;

[0021] System running parameters are set through a user configuration interface, and a system configuration file is generated;

[0022] The standardized configuration file and the system configuration file are transmitted to a vehicle-mounted recording device through a hierarchical architecture;

[0023] A hot loading module of the vehicle-mounted recording device dynamically loads the configuration file and reinitializes a hardware controller;

[0024] A protocol analysis module loads the standardized configuration file and initializes a protocol analysis context; during system running, bus data is processed in real time according to the loaded configuration.

[0025] Further, the hot loading step comprises dynamically writing a new configuration, creating a backup copy, forcibly writing data to disk, and atomically reinitializing the hardware controller.

[0026] Further, the real-time processing step comprises matching a received message ID, analyzing data, processing normal frames or composite frames according to frame types, and updating signal values according to configuration algorithms.

[0027] Further, the bus data recording dynamic configuration method supports CAN bus protocol and FlexRay bus protocol.

[0028] (Three) beneficial effects

[0029] This invention proposes a dynamic configuration system and method for vehicle bus data recording. The system includes a configuration file generation module, a user configuration module, a hierarchical configuration management architecture, a configuration hot-loading and execution module, and a protocol parsing and real-time processing module. By building a configuration framework and intelligent toolchain, this invention achieves the requirement of no modification to core functional code during vehicle model / protocol switching, overcoming the limitations of traditional solutions that require code recompilation for protocol updates and are prone to errors in manual configuration. The core technologies encompass multi-protocol dynamic loading, structured configuration management, intelligent parsing of composite frames, and a configuration hot-loading mechanism, enabling rapid adaptation and reliable data recording across multiple vehicle models and protocols, meeting cross-platform assurance requirements.

[0030] Compared with the prior art, the present invention has the following significant advantages:

[0031] 1. No-code dynamic configuration significantly improves protocol adaptation efficiency: Through configuration file generation tools and dynamic loading mechanisms, no-code adaptation of multiple vehicle models and protocols is achieved, greatly shortening protocol switching time and meeting the rapid response requirements for cross-platform assurance.

[0032] 2. Standardized configuration framework to reduce the complexity of manual operation: Provides a unified configuration file template to support the standardized configuration of core parameters such as vehicle ID, signal filtering rules, and storage strategy, avoiding parameter errors caused by manually writing configuration files.

[0033] 3. Dynamic loading and hot switching ensure system continuity: Based on the "four-layer three-core" architecture, the configuration file is dynamically loaded and hot-switched, and the atomic update of bus parameters is supported to ensure the continuity and reliability of data acquisition.

[0034] 4. Multi-dimensional parameter integration to improve configuration management efficiency: By integrating multi-dimensional core parameters such as vehicle identity information, communication parameters, and storage strategies through structured configuration files, efficient management of configuration data is achieved, reducing development and maintenance costs.

[0035] 5. Cross-platform compatibility, supporting unified adaptation of multiple vehicle models and protocols: Through a unified configuration framework and intelligent toolchain, it supports dynamic loading and rapid switching of multiple bus protocols such as CAN and FlexRay, significantly improving the universality and maintainability of the equipment in multiple vehicle models and multiple protocol scenarios. Attached Figure Description

[0036] Figure 1 This is a schematic diagram of the overall architecture of the system of the present invention;

[0037] Figure 2 Generate module workflow diagrams for configuration files;

[0038] Figure 3A schematic diagram of the user configuration module interface layout;

[0039] Figure 4 A schematic diagram of a dynamic architecture for intelligent configuration (four layers, three cores);

[0040] Figure 5 A schematic diagram of the core process of the dynamic configuration processing system;

[0041] Figure 6 This is a schematic diagram illustrating the configuration file management and CAN bus configuration process.

[0042] Figure 7 This is a diagram illustrating the .dbcd configuration file parsing and system initialization process;

[0043] Figure 8 This is a schematic diagram of the real-time data processing and storage process. Detailed Implementation

[0044] To make the objectives, contents, and advantages of the present invention clearer, the specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples.

[0045] This embodiment proposes a dynamic configuration system and method for vehicle bus data recording based on configuration file generation and dynamic loading. The hardware foundation of the system is a vehicle data recording device, which includes hardware modules such as a processor, memory, and CAN controller. The software runs on the device.

[0046] The overall architecture of the vehicle bus data recording dynamic configuration system is as follows: Figure 1 As shown, the system mainly includes a configuration file generation module, a user configuration module, a hierarchical configuration management architecture, a configuration hot-loading and execution module, and a protocol parsing and real-time processing module. The configuration file generation module parses the input bus description file and generates a standardized configuration file containing protocol definitions and signal filtering rules. The user configuration module provides a graphical interface for users to input and modify system operating parameters and generates a system configuration file. The hierarchical configuration management architecture receives, transmits, verifies, and loads the standardized configuration file and the system configuration file. The configuration hot-loading and execution module dynamically loads the configuration file during system runtime and atomically updates hardware controller parameters, making the new configuration effective without interrupting system services. The protocol parsing and real-time processing module loads and parses the standardized configuration file, and performs real-time parsing, calculation, and storage of bus data based on the configuration.

[0047] The workflow of the configuration file generation module is as follows: Figure 2As shown, the configuration file generation module simplifies the configuration process of bus data recording devices and solves the problem of multi-vehicle protocol adaptation. For different vehicle protocols, the module supports loading different types of DBC files, such as long-term data, battery data, and fault codes, and quickly generates standardized .dbcd configuration files through a user-friendly interface, defining the CANID, signal attributes, and composite frame structure to be recorded. The module provides configuration templates such as long-term data filtering tables, battery data filtering tables, and fault code filtering tables. Users can customize data filtering rules according to their needs and encapsulate these rules and protocol parameters into standardized configuration files. The configuration files generated by the module are dynamically loaded into the vehicle recording device, achieving code-free configuration updates and significantly improving system adaptation efficiency and maintainability.

[0048] The configuration file generation module has wide applications in bus data logging devices, especially excelling in cross-platform, multi-vehicle, and protocol adjustments. When adjusting the bus data to be monitored for a specific vehicle model, users can quickly generate a configuration file using the module, enabling real-time monitoring and recording of bus data without modifying the underlying code. The module supports dynamic loading of multiple protocols, allowing users to flexibly adjust monitoring strategies as needed, such as adding fault code monitoring or modifying data acquisition frequencies. This no-code, dynamic configuration method significantly improves rapid adaptation capabilities across multiple vehicle models and protocols, providing strong support for cross-platform assurance of electronic systems.

[0049] The user configuration module's interface layout is as follows: Figure 3 As shown, the interface clearly presents six core functional areas: system time configuration, ID / device identification, storage management, communication parameters, fault control, and periodic configuration. Visual separation and hierarchical division enhance information readability. Key parameters such as vehicle ID and storage space size are directly configured through input boxes with unit labels, while options like baud rate are accessed via drop-down menus, balancing input efficiency and accuracy. The time synchronization function includes a "Synchronize Current Computer Time" button, and storage partitions dynamically display capacity changes. The bottom of the interface provides a "Select All" checkbox and a fixed "OK / Cancel" button, supporting batch operations and reducing the cost of repetitive adjustments.

[0050] The layered configuration management architecture adopts a "four-layer, three-core" intelligent configuration dynamic architecture design. Through a collaborative mechanism of module decoupling, dynamic loading, and bidirectional verification, it achieves real-time dynamic management of bus configuration. Its core architecture is as follows: Figure 4 As shown in Table 1, the layers, functions, and corresponding process nodes of the layered configuration management architecture are shown in Table 1.

[0051] Table 1 Hierarchical Configuration Management Model

[0052]

[0053] The core process of the dynamic configuration processing system is as follows: Figure 5 As shown, the configuration file management and CAN bus configuration process is as follows: Figure 6 As shown.

[0054] This system employs a structured configuration management technology that integrates multiple parameters. Through a unified configuration file, it achieves efficient integration and unified management of core parameters across multiple dimensions, including vehicle identity information, communication parameters, storage strategies, and algorithm configurations. The configuration file uses a standardized format to organically integrate different categories of parameters, ensuring the logical coherence and storage consistency of various configuration data. This structured design not only achieves seamless integration of multi-dimensional parameters but also significantly improves the efficiency and reliability of configuration management through a unified file format and storage standards, providing a solid foundation for dynamic adaptation and real-time updates of the system.

[0055] This system implements a configuration hot-loading mechanism for high-reliability scenarios. Through a three-stage process of dynamic writing, backup synchronization, and real-time application, it ensures the continuity of system services during configuration updates. New configurations are directly updated in the structured configuration file (.car_id) via file operation interfaces (open / write / lseek), overwriting key fields such as vehicle ID, communication parameters, and storage policies. The `fsync` command is called to force disk writes to ensure the physical storage reliability of the data. Simultaneously, a backup copy (.cfg_dir_bak / car_id) is created using the system command `cp` to retain the most recent valid configuration version, supporting rapid rollback operations. During configuration updates, the system dynamically reinitializes the CAN controller by calling the `can_init` function, and maintains the CAN controller's runtime state using the `g_cf` global structure, ensuring continuous bus communication during parameter switching. Furthermore, the backup file mechanism automatically retains historical configuration versions and forces a flush to the storage buffer using the `system("sync")` command to prevent configuration corruption due to abnormal power outages, thus achieving seamless switching and fault isolation.

[0056] To address the issue of long-term CAN bus data storage, a hot-loading and execution module is configured to load the vehicle model protocol .dbcd configuration file generated by the configuration file generation module, thereby completing the parsing of CAN messages and signal attributes and system initialization. Figure 7As shown in the diagram. The specific process is as follows: First, the .dbcd configuration file is read, the protocol definition block in the file is identified, the number of all CAN message IDs is counted, ordinary frames and composite frames are distinguished, and key message parameters (such as start byte, byte length, number of composite frame subframes, and index value) are extracted. Then, the signal definition is parsed line by line, extracting attributes such as signal name, start bit, bit length, byte order (Intel / Motorola), and signal type (analog / switching). For composite frames, the subframe index signal and the corresponding subframe signal set are parsed. Based on the number of messages and signals, storage space is dynamically allocated, a message-signal mapping table is constructed, and independent storage areas are allocated for composite frame subframes, supporting multi-level signal nesting structures. Finally, a data structure that can be called by the real-time processing module is generated, entering the data reception and processing stage.

[0057] The received CAN data is processed and its status tracked through the protocol parsing and real-time processing module, such as... Figure 8 As shown, the process begins by verifying whether the received CAN message ID is defined in the .dbcd file. If a match is found, the data processing flow begins. Next, the CAN data is stored in a temporary buffer according to the protocol definition. For composite frames, the corresponding subframe is matched based on the index value and stored in the specified location. Then, the current data is compared with the previous data, and the final buffer is updated according to the configured algorithm (mean, maximum, minimum): for analog signals, the average, maximum, or minimum value is calculated; for digital signals, the value is directly compared and the status is updated. This process ensures real-time data processing and status tracking, providing an accurate data foundation for subsequent storage and analysis.

[0058] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. An on-board bus data logging dynamic configuration system, characterized in that, The vehicle-mounted bus data recording dynamic configuration system comprises a configuration file generation module, a user configuration module, a hierarchical configuration management architecture, a configuration hot loading and execution module and a protocol analysis and real-time processing module, wherein, The configuration file generation module is used for analyzing an input bus description file and generating a standardized configuration file containing protocol definition and signal screening rules; The user configuration module is used for providing a graphical interface for user to input and modify system operation parameters and generating a system configuration file; The hierarchical configuration management architecture is used for receiving, transmitting, verifying and loading the standardized configuration file and the system configuration file; The configuration hot loading and execution module is used for dynamically loading the configuration file during system operation and atomically updating hardware controller parameters to make the new configuration effective without interrupting system service; The protocol analysis and real-time processing module is used for loading and analyzing the standardized configuration file, and performing real-time analysis, calculation and storage on bus data according to the configuration.

2. The in-vehicle bus data logging dynamic configuration system of claim 1, wherein, The configuration file generation module supports loading multiple types of DBC files, provides configuration templates for users to define message IDs, signal attributes, composite frame structures and data screening rules to be recorded, and finally outputs a configuration file in a unified format.

3. The in-vehicle bus data logging dynamic configuration system of claim 1, wherein, The hierarchical configuration management architecture comprises a user interface layer, a configuration generation layer, a communication protocol layer and a bottom layer execution layer, wherein the user interface layer is used for providing a parameter configuration interface and generating configuration instructions; the configuration generation layer is used for generating or updating structured configuration files according to the instructions; the communication protocol layer is used for realizing reliable transmission and verification of configuration data; and the bottom layer execution layer is used for receiving configuration data and performing dynamic reinitialization of hardware controllers.

4. The in-vehicle bus data logging dynamic configuration system of claim 1, wherein, The configuration hot loading and execution module comprises a dynamic writing unit, a backup synchronization unit and an atomic update unit, wherein the dynamic writing unit is used for updating configuration files through a file operation interface and forcing data to be written to disk; the backup synchronization unit is used for creating a backup copy of the configuration file before updating to support fault rollback; and the atomic update unit is used for calling a reinitialization function to update hardware controller parameters to ensure the continuity of bus communication.

5. The in-vehicle bus data logging dynamic configuration system of claim 1, wherein, The protocol analysis and real-time processing module comprises a file analysis unit and a data processing unit, wherein the file analysis unit is used for reading configuration files, counting message numbers, distinguishing frame types, extracting signal and composite frame attributes, and dynamically allocating storage space to construct message-signal mapping relationship; and the data processing unit is used for verifying received message IDs, storing data into a buffer according to the configuration, and performing mean value, maximum value or minimum value calculation on analog signals and state comparison and update on switch signals.

6. The in-vehicle bus data logging dynamic configuration system of claim 1, wherein, The system configuration file adopts a structured format and uniformly integrates vehicle identity information, communication parameters, storage strategies and algorithm configuration multi-dimensional parameters.

7. A method for dynamic configuration of bus data recording using the dynamic configuration system for bus data recording according to any one of claims 1 to 6, characterized in that The bus data recording dynamic configuration method comprises the following steps: Generating a standardized configuration file based on a bus description file and user input through a configuration file generation tool; Setting system operation parameters through a user configuration interface and generating a system configuration file; The standardized configuration file and the system configuration file are transmitted to the vehicle recording device through a layered architecture; The hot loading module of the vehicle recording device dynamically loads the configuration file and reinitializes the hardware controller; The protocol analysis module loads the standardized configuration file and initializes the protocol analysis context; during system operation, the loaded configuration is used to perform real-time processing on the bus data.

8. The bus data logging dynamic configuration method of claim 7, wherein, The hot loading step includes dynamically writing a new configuration, creating a backup copy, forcing data to be written to disk, and atomically reinitializing the hardware controller.

9. The bus data logging dynamic configuration method of claim 7, wherein, The real-time processing step includes matching the received message ID, analyzing the data, processing normal frames or composite frames according to the frame type, and updating the signal value according to the configuration algorithm.

10. The bus data logging dynamic configuration method of claim 7, wherein, The bus data recording dynamic configuration method supports CAN bus protocol and FlexRay bus protocol.

Citation Information

Patent Citations

  • Implementation method for supporting various CAN devices and flexibly analyzing various CAN messages

    CN110445752A

  • Method and system for automatically analyzing CAN (Controller Area Network) bus data of intelligent networked automobile

    CN114519025A

  • Vehicle controller interaction platform based on dynamic configuration file

    CN120104211A

  • JDK8-based heterogeneous service large model dynamic adaptation and intelligent scheduling method and system

    CN120281824A

  • Intelligent news crawling system and method based on SpiderFlow

    CN120596725A