A log information compression method based on specific function codes

By adding specific function code configuration to the vehicle networking platform, and compressing log information according to the correspondence between the specific function code and the data domain configuration items, the problem of inflexible local compression of log information in the existing technology is solved, and the appropriate compression of redundant logs and ease of operation are achieved.

CN116633768BActive Publication Date: 2026-04-24ZHENGZHOU JIACHEN ELECTRIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHENGZHOU JIACHEN ELECTRIC CO LTD
Filing Date
2023-05-09
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing technologies for local compression of log information in vehicle networking platforms are not flexible enough, are cumbersome to operate, and make it difficult to effectively process redundant log information according to actual needs.

Method used

By adding specific function code configurations, maintaining the correspondence between specific function codes and data field configuration items, reading configuration information based on specific function codes to compress and encode local log information, and using the differences between encoding identifier bits and data field configuration items to determine the encoding string, flexible compression of local log information is achieved.

Benefits of technology

The system enables appropriate compression of redundant log information corresponding to specific function codes on the vehicle networking platform, simplifying operation and improving the flexibility and practicality of log information processing.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The application discloses a log information compression method based on a specific function code, and comprises the following steps: step 1, adding a specific function code configuration; step 2, reading the specific function code configuration; step 3, locally compressing and encoding corresponding log information according to the specific function code configuration; and step 4, determining whether to adopt the locally compressed and encoded log information after compression and encoding according to the specific function code configuration. Through the specific function code configuration, the vehicle networking platform can appropriately compress locally log information which may exist redundancy corresponding to the specific function code, and the method is flexible, practical and easy to operate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle networking technology, and specifically to a method for compressing log information based on a specific function code. Background Technology

[0002] In recent years, with economic development, the connected vehicle industry has grown rapidly. To facilitate troubleshooting, connected vehicle platforms record log information in log files. Due to the large volume of logs generated daily, this consumes significant storage space. Based on the characteristics of connected vehicle platform log information, this study analyzes which specific function codes correspond to locally compressed log information. Then, it appropriately compresses and encodes the redundant log information corresponding to these specific function codes. While some commonly used log compression methods in existing technologies can compress the overall connected vehicle platform log information, they are not flexible enough for localized compression, are cumbersome, and cannot effectively compress and encode redundant log information according to actual needs.

[0003] Therefore, providing a log information compression method based on specific function codes that can flexibly handle partially redundant logs has become a problem worthy of research. Summary of the Invention

[0004] The purpose of this invention is to provide a log information compression method based on specific function codes that can flexibly handle partially redundant logs.

[0005] The objective of this invention is achieved as follows:

[0006] A log information compression method based on a specific function code includes the following steps:

[0007] Step 1: Add specific function code configuration to maintain the correspondence between specific function codes and data field configuration items related to local log information of specific function codes;

[0008] Step 2: Read the configuration of the specific function code. Where it is necessary to compress and encode the local log information corresponding to the specific function code, read the configuration information corresponding to the specific function code from the corresponding configuration file according to the specific function code. When performing local compression and encoding of the log information corresponding to the specific function code, find the corresponding data field configuration item according to the specific function code.

[0009] Step 3: Perform local compression encoding on the corresponding log information according to the specific function code configuration. Determine the encoding flag value based on whether the log data field information corresponding to the data field configuration item (i.e., the log data field information corresponding to the data field configuration item that is not the first data field configuration item) is the same as the log data field information corresponding to the previous data field configuration item. If the log data field information corresponding to the data field configuration item that is not the first data field configuration item is the same as the log data field information corresponding to the previous data field configuration item, set it to 0; if the log data field information corresponding to the data field configuration item that is not the first data field configuration item is different from the log data field information corresponding to the previous data field configuration item, set it to 1. The encoding flag value corresponding to the first data field configuration item is 1. When the encoding flag value is 1, the encoding string expands the log data field information corresponding to the corresponding data field configuration item. The encoding flag bits are arranged in the order corresponding to the data field configuration items to form the encoding flag; append the encoding flag to the end of the encoding string.

[0010] Step 4: Determine whether to use the local log information after compression encoding according to the specific function code configuration; if the length of the local log information corresponding to the specific function code after encoding is shorter than the length of the local log information string before encoding, then the local log information corresponding to the specific function code is replaced with the encoded information, that is, the length of the local log information corresponding to the specific function code is shortened; otherwise, the local log information corresponding to the specific function code is still the local log information before encoding.

[0011] The specific operation of step 1 is as follows: determine the specific function code that needs to add local log information, add the data field configuration item corresponding to the specific function code in the corresponding configuration file, the data block length corresponding to the specific function code is fixed, the data block is composed of data fields, and the data field configuration item includes data type and data size.

[0012] In step 4, if the length of the encoded local log information corresponding to the specific function code is shorter than the length of the string of the local log information corresponding to the specific function code before encoding, then the local log information corresponding to the specific function code is replaced by the encoded local log information; otherwise, the local log information corresponding to the specific function code is still the local log information before encoding.

[0013] The beneficial effects of this invention are: by configuring specific function codes, the vehicle networking platform can appropriately compress potentially redundant local log information corresponding to specific function codes, making it flexible, practical, and easy to operate. Implementation

[0014] The present invention will be further described below with reference to the embodiments.

[0015] A method for compressing log information based on specific function codes includes the following steps: Step 1: Add specific function code configuration to maintain the correspondence between specific function codes and data field configuration items related to local log information. Specifically, the specific function codes for which local log information needs to be added are determined, and the corresponding data field configuration item is added to the relevant configuration file. The data block length corresponding to the specific function code is fixed, and the data block consists of data fields. The data field configuration item includes data type and data size. Since the vehicle networking platform may need to record new local log information corresponding to new specific function codes due to changes in business requirements, a new specific function code configuration needs to be introduced.

[0016] Step 2: Read the specific function code configuration. Where local log information corresponding to a specific function code needs to be compressed and encoded, read the configuration information corresponding to the specific function code from the corresponding configuration file according to the specific function code. When performing local compression and encoding of the log information corresponding to the specific function code, find the corresponding data field configuration item according to the specific function code.

[0017] Step 3: Perform local compression encoding on the corresponding log information according to the specific function code configuration. Determine the encoding flag value based on whether the log data field information corresponding to the data field configuration item (i.e., the log data field information corresponding to the data field configuration item that is not the first data field configuration item) is the same as the log data field information corresponding to the previous data field configuration item. If the log data field information corresponding to the data field configuration item that is not the first data field configuration item is the same as the log data field information corresponding to the previous data field configuration item, set it to 0; if the log data field information corresponding to the data field configuration item that is not the first data field configuration item is different from the log data field information corresponding to the previous data field configuration item, set it to 1. The encoding flag value corresponding to the first data field configuration item is 1. When the encoding flag value is 1, the encoding string expands the log data field information corresponding to the corresponding data field configuration item. The encoding flag bits are arranged in the order corresponding to the data field configuration items to form the encoding flag; append the encoding flag to the end of the encoding string.

[0018] Step 4: Determine whether to use the local log information compressed and encoded according to the specific function code configuration. If the length of the encoded local log information corresponding to the specific function code is shorter than the length of the original local log information string, then the local log information corresponding to the specific function code is replaced with the encoded information, i.e., the length of the local log information corresponding to the specific function code is shortened; otherwise, the local log information corresponding to the specific function code will still use the original local log information.

[0019] This invention, through the configuration of specific function codes, allows the vehicle network platform to appropriately compress potentially redundant local log information corresponding to specific function codes, enabling flexible processing, strong practicality, and easy operation.

Claims

1. A log information compression method based on specific function codes, characterized in that: The steps include: Step 1: Add specific function code configuration to maintain the correspondence between specific function codes and data field configuration items related to local log information of specific function codes; Step 2: Read the specific function code configuration. Where it is necessary to compress and encode the local log information corresponding to the specific function code, read the configuration information corresponding to the specific function code from the corresponding configuration file according to the specific function code. When performing local compression and encoding of the log information corresponding to the specific function code, find the corresponding data field configuration item according to the specific function code. Step 3: Perform local compression encoding on the corresponding log information according to the specific function code configuration. Determine the encoding flag value based on whether the log data field information corresponding to the data field configuration item (i.e., the log data field information corresponding to the data field configuration item that is not the first data field configuration item) is the same as the log data field information corresponding to the previous data field configuration item. If the log data field information corresponding to the data field configuration item that is not the first data field configuration item is the same as the log data field information corresponding to the previous data field configuration item, set it to 0; if the log data field information corresponding to the data field configuration item that is not the first data field configuration item is different from the log data field information corresponding to the previous data field configuration item, set it to 1. The encoding flag value corresponding to the first data field configuration item is 1. When the encoding flag value is 1, the encoding string expands the log data field information corresponding to the corresponding data field configuration item. The encoding flag bits are arranged in the order corresponding to the data field configuration items to form the encoding flag; append the encoding flag to the end of the encoding string. Step 4: Determine whether to use the local log information after compression encoding according to the specific function code configuration; if the length of the local log information corresponding to the specific function code after encoding is shorter than the length of the local log information string before encoding, then the local log information corresponding to the specific function code is replaced with the encoded information, that is, the length of the local log information corresponding to the specific function code is shortened; otherwise, the local log information corresponding to the specific function code will still use the local log information before encoding.

2. The log information compression method based on specific function codes according to claim 1, characterized in that: The specific operation of step 1 is as follows: determine the specific function code that needs to add local log information, add the data field configuration item corresponding to the specific function code in the corresponding configuration file, the data block length corresponding to the specific function code is fixed, the data block is composed of data fields, and the data field configuration item includes data type and data size.

3. The log information compression method based on specific function codes according to claim 1, characterized in that: In step 4, if the length of the encoded local log information corresponding to the specific function code is shorter than the length of the string of the local log information corresponding to the specific function code before encoding, then the local log information corresponding to the specific function code is replaced by the encoded local log information; otherwise, the local log information corresponding to the specific function code is still the local log information before encoding.

Citation Information

Patent Citations

  • Data query method and device

    CN113297269A

  • Vehicle monitoring method, specific character pattern recognition device, and vehicle monitoring system

    CN1808516A