Configuration data storage method, device and equipment
A technology for configuring data and configuring storage, applied in the input/output process of data processing, electrical digital data processing, generation of response errors, etc., can solve problems affecting embedded system performance, frequent erasure of data, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0127] An embodiment of the present invention provides a flowchart of a method for configuring data storage, such as figure 1 shown, including:
[0128] Step S101, obtaining the configuration item data to be stored, and determining the expected occupied space of the configuration item data;
[0129] The above-mentioned configuration item data is obtained by encapsulating the configuration data to be stored into a preset format, and adding header data for operations such as verification and auxiliary storage to the above-mentioned configuration data during encapsulation.
[0130] The configuration item data obtained after encapsulation includes header data and configuration parameters, and the configuration parameters include configuration item identification and configuration data, wherein the configuration item identification is used to identify the name of the configuration data.
[0131] The above header data includes but not limited to hash value HASH and cyclic redundanc...
Embodiment approach 1
[0221] Embodiment 1: Set the bit corresponding to the space block to two bits, and determine the above three storage states through the value of the two bits;
[0222] For example, setting 00 corresponds to unstored data, 01 and 10 correspond to storing invalid data, and 11 corresponds to storing valid data;
[0223] For another example, set 00 to correspond to unstored data, 01 to store invalid data, 10 to store the non-start position of valid data, and 11 to store the start position of valid data.
Embodiment approach 2
[0224] Embodiment 2: set a bit corresponding to the space block, and use two values of the bit to map whether the space block stores data.
[0225] Then, when searching for data, the space block with data can be directly located, and whether the data is valid can be judged from the status bit in the space block with data.
[0226] For example, setting 0 corresponds to unstored data, and 1 corresponds to stored data;
[0227] Further, it is possible to map whether the space block stores valid data by setting the value of the bit.
[0228] For example, setting 0 corresponds to non-stored data and stored invalid data, and 1 corresponds to stored valid data;
[0229] Furthermore, the starting position of whether the space block stores valid data can be mapped by setting the value of the bit.
[0230] For example, setting 0 corresponds to the non-starting position of storing no data, storing invalid data and storing valid data, and setting 1 corresponds to the starting position o...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


