CAN data storage and retrieval system of commercial vehicle
By designing the CAN data storage and retrieval system for commercial vehicles, using preprocessing, compression, encryption and data management technologies, the problems of large storage space, low security and difficulty in analysis in the CAN data storage method of commercial vehicles are solved, and efficient and secure data storage and rapid analysis capabilities are achieved.
Patent Information
- Application Number
- CN202411880435.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-11
AI Technical Summary
The CAN data storage method of commercial vehicles has problems such as large storage space, low data security, and inability to analyze vehicle problems in a timely manner.
A CAN data storage and retrieval system for commercial vehicles is designed, including data acquisition and preprocessing module, data compression and encryption module, data storage management module, data retrieval and extraction module and data decryption and decompression module. Through preprocessing, compression, encryption and data management, efficient utilization of storage space and secure storage of data are achieved.
It significantly reduces the storage space occupied by CAN data, improves storage efficiency and data security, supports data playback on CAN OE or BUSMASTER tools, simulates the data status of the real vehicle, and facilitates problem analysis and positioning.
Smart Images

Figure CN119807142A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a CAN data storage and retrieval system for a commercial vehicle, belonging to the technical field of commercial vehicle electronics. Background Art
[0002] With the development of intelligent and networked commercial vehicles, CAN bus, as an important communication method within the vehicle, carries a large amount of vehicle operation data, and its data storage importance is becoming increasingly prominent.
[0003] However, the operating environment of commercial vehicles is complex and changeable, with large amounts of data and a wide variety of types. The traditional CAN data storage method has the following problems:
[0004] 1. Traditional storage methods often directly save raw data, lack of data preprocessing, compression and encryption, resulting in large storage space occupation and low data security;
[0005] 2. The traditional CAN data storage format does not support data playback on CAN OE or BUSMASTER, and it is impossible to analyze vehicle problems in a timely manner.
[0006] Therefore, it is particularly important to develop an efficient and secure CAN data storage system suitable for commercial vehicles. Summary of the invention
[0007] The purpose of the present invention is to solve the problems of large storage space occupation, low data security and inability to timely analyze vehicle problems in the commercial vehicle CAN data storage and retrieval system, and to provide a commercial vehicle CAN data storage and retrieval system.
[0008] The CAN data storage and retrieval system for commercial vehicles of the present invention comprises: a data acquisition and preprocessing module, a data compression and encryption module, a data storage management module, a data retrieval and extraction module and a data decryption and decompression module; specifically:
[0009] Data acquisition and preprocessing module, used to collect data on the CAN bus in real time and preprocess the data;
[0010] The data compression and encryption module is used to compress the data files preprocessed by the data acquisition and preprocessing module using the DEFLATE algorithm, and to encrypt the compressed data files using the DES encryption algorithm;
[0011] The data storage management module is used to store the files compressed and encrypted by the data compression and encryption module in chronological order, and, when the disk usage rate exceeds 80%, to overwrite and replace the data files stored in the original location in chronological order;
[0012] The data retrieval and extraction module is used to retrieve and extract data files in the data storage management module according to requirements;
[0013] The data decryption and decompression module is used to decrypt and decompress data files so that the decrypted and decompressed files can be directly played back through the CAN OE or BUSMASTEER tool.
[0014] Preferably,
[0015] Preferably, the real-time data collection on the CAN bus specifically includes: body controller signals, vehicle controller signals and sensor signals.
[0016] Preferably, the preprocessing of data specifically includes:
[0017] Verify data integrity;
[0018] Convert the data to ASC format.
[0019] Preferably, the data format specifically includes: timestamp, CAN channel number, frame ID, sending frame direction, receiving frame direction and CAN data.
[0020] Preferably, compressing the data file preprocessed by the data acquisition and preprocessing module specifically includes: compressing the data file at a medium level.
[0021] Preferably, the data storage management module stores the files compressed and encrypted by the data compression and encryption module in chronological order, specifically including:
[0022] The data files are stored in hours.
[0023] Or, store the data file based on IG ON / OFF as the judgment standard.
[0024] Advantages of the present invention: The preprocessing and compression technology proposed in the present invention can significantly reduce the storage space occupied by CAN data and improve storage efficiency. By regularly checking the disk space, the disk utilization rate is improved. By decrypting the decompressed CAN data file, it supports playback on tools such as CAN OE or BUSMASTER, simulating the actual vehicle data status, and facilitating the analysis and location of problems. Through data storage management, fast data retrieval is achieved and data extraction efficiency is improved. The encryption algorithm and storage mechanism are adopted to ensure the security and reliability of stored data. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a structural schematic diagram of the CAN data storage and retrieval system for commercial vehicles of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0028] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.
[0029] Embodiment 1:
[0030] Combine the following Figure 1 The CAN data storage and retrieval system for a commercial vehicle described in this embodiment includes: a data acquisition and preprocessing module, a data compression and encryption module, a data storage management module, a data retrieval and extraction module, and a data decryption and decompression module; specifically:
[0031] Data acquisition and preprocessing module, used to collect data on the CAN bus in real time and preprocess the data;
[0032] The data compression and encryption module is used to compress the data files preprocessed by the data acquisition and preprocessing module using the DEFLATE algorithm, and to encrypt the compressed data files using the DES encryption algorithm;
[0033] The data storage management module is used to store the files compressed and encrypted by the data compression and encryption module in chronological order, and, when the disk usage rate exceeds 80%, to overwrite and replace the data files stored in the original location in chronological order;
[0034] The data retrieval and extraction module is used to retrieve and extract data files in the data storage management module according to requirements;
[0035] The data decryption and decompression module is used to decrypt and decompress data files so that the decrypted and decompressed files can be directly played back through the CAN OE or BUSMASTEER tool.
[0036] Furthermore, the real-time data collection on the CAN bus specifically includes: body controller signals, vehicle controller signals and sensor signals.
[0037] Furthermore, the data is preprocessed, specifically including:
[0038] Verify data integrity;
[0039] Convert the data to ASC format.
[0040] Furthermore, the data format specifically includes: timestamp, CAN channel number, frame ID, sending frame direction, receiving frame direction and CAN data.
[0041] Furthermore, compressing the data file preprocessed by the data acquisition and preprocessing module specifically includes: compressing the data file at a medium level.
[0042] Furthermore, the data storage management module stores the files compressed and encrypted by the data compression and encryption module in chronological order, specifically including:
[0043] The data files are stored in hours.
[0044] Or, store the data file based on IG ON / OFF as the judgment standard.
[0045] In this invention, a CAN data storage system based on commercial vehicles is proposed. By preprocessing, compressing, encrypting and managing CAN data, efficient use of storage space and safe storage of data are achieved. When a problem occurs in the vehicle, the data of the corresponding time node can be retrieved in time for analysis. The specific technical process and scheme are as follows:
[0046] Monitor the data on the CAN bus in real time, and collect data in time when there is data uploaded on the bus, including various body controller signals, vehicle controller signals, sensor signals, etc. Then pre-process the collected CAN data, first check the integrity of the data, and then convert the CAN data format according to the ASC data format. The data format includes timestamp, CAN channel number, frame ID, frame direction (send or receive), CAN data, etc.
[0047] The DEFLATE algorithm in the lossless compression method is used to compress the preprocessed CAN data file to reduce the storage space occupied by the data. According to the application requirements for CAN data storage in commercial vehicles, the present invention selects a medium compression level to balance the compression rate and decompression speed.
[0048] The DES encryption algorithm is used to encrypt the compressed data files because of its efficiency, simplicity, wide applicability and security to ensure the security of data storage.
[0049] Usually, when a problem occurs on a commercial vehicle, the time point of the problem can be accurately located through the log file, so it is more convenient to extract data according to the time point. The compressed and encrypted CAN data files are stored in chronological order. In order to solve the problem that the data file is too large and it takes too long to extract the file, the present invention generates a compressed and encrypted data file in units of hours or with IG ON / OFF as the judgment standard.
[0050] If the vehicle is continuously powered on, a compressed and encrypted CAN data file (for example, 2024-10-22-11-42-32.asc.tar.gz-enc data file) is generated every hour. If the vehicle is powered on for less than one hour, a compressed and encrypted data file (for example, 2024-10-12-09-26-59.asc.tar.gz-enc data file) is generated from IG ON to IG OFF. This storage method makes it easier to extract data files when a problem occurs with the vehicle.
[0051] Supports regular deletion of useless data to free up storage space. Supports regular detection of disk usage of CAN data storage. When the disk usage exceeds 80%, iterates the CAN data files in chronological order. The present invention can save space and maximize the use of space without affecting the use of other functions.
[0052] Provides efficient data retrieval and extraction tools that can quickly retrieve CAN data files stored on the vehicle and extract data files as needed.
[0053] Provides efficient data decryption and decompression tools. Data files processed by this tool can be directly played back through CANOE or BUSMASTEER tools, making it easier to analyze and locate real vehicle problems.
[0054] It has the following advantages:
[0055] Improve storage efficiency: Through preprocessing and compression technology, the storage space occupied by CAN data is significantly reduced, and storage efficiency is improved. By regularly checking the disk space, the disk utilization rate is improved.
[0056] Improve problem analysis efficiency: By decrypting the decompressed CAN data files, it supports playback on tools such as CAN OE or BUSMASTER, simulating the actual vehicle data status, and facilitating problem analysis and location.
[0057] Reduce storage costs: Reduce storage space requirements and reduce storage device procurement and maintenance costs.
[0058] Improve data retrieval efficiency: Through data storage management, rapid data retrieval can be achieved and data extraction efficiency can be improved.
[0059] Improve data security: Encryption algorithms and storage mechanisms are used to ensure the security and reliability of stored data.
[0060] In the present invention, a CAN data storage system based on commercial vehicles is proposed to achieve efficient and secure storage of CAN data. Through technical means such as preprocessing, compression encryption and data management, efficient and secure storage and rapid retrieval of CAN data are achieved. This technology not only improves storage efficiency and utilization, reduces storage costs and data security risks, but also provides a better way for vehicle companies to analyze real vehicle problems, and provides strong support for the intelligent and networked development of commercial vehicles.
[0061] Although the present invention is described herein with reference to specific embodiments, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. It should therefore be understood that many modifications may be made to the exemplary embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the various dependent claims and features described herein may be combined in a manner different from that described in the original claims. It should also be understood that features described in conjunction with individual embodiments may be used in other described embodiments.
Claims
1. A CAN data storage and retrieval system for commercial vehicles, characterized in that: It includes: Data acquisition and preprocessing module, data compression and encryption module, data storage management module, data retrieval and extraction module and data decryption and decompression module; Specifically: Data acquisition and preprocessing module, used to collect data on the CAN bus in real time and preprocess the data; The data compression and encryption module is used to compress the data files preprocessed by the data acquisition and preprocessing module using the DEFLATE algorithm, and to encrypt the compressed data files using the DES encryption algorithm; The data storage management module is used to store the files compressed and encrypted by the data compression and encryption module in chronological order, and, when the disk usage rate exceeds 80%, to overwrite and replace the data files stored in the original location in chronological order; The data retrieval and extraction module is used to retrieve and extract data files in the data storage management module according to requirements; The data decryption and decompression module is used to decrypt and decompress data files so that the decrypted and decompressed files can be directly played back through the CAN OE or BUSMASTEER tool.
2. A CAN data storage and retrieval system for commercial vehicles according to claim 1, characterized in that: The real-time data collection on the CAN bus specifically includes: body controller signals, vehicle controller signals and sensor signals.
3. A CAN data storage and retrieval system for commercial vehicles according to claim 1, characterized in that: The data preprocessing specifically includes: Verify data integrity; Convert the data to ASC format.
4. A CAN data storage and retrieval system for commercial vehicles according to claim 3, characterized in that: The data format specifically includes: timestamp, CAN channel number, frame ID, sending frame direction, receiving frame direction and CAN data.
5. The CAN data storage and retrieval system for commercial vehicles according to claim 1, characterized in that: The compressing the data file preprocessed by the data acquisition and preprocessing module specifically includes: compressing the data file at a medium level.
6. A CAN data storage and retrieval system for commercial vehicles according to claim 1, characterized in that: The data storage management module stores the files compressed and encrypted by the data compression and encryption module in chronological order, specifically including: The data files are stored in hours. Or, store the data file based on IG ON / OFF as the judgment standard.