Folding storage strategy for data recorder
By adopting a 1/2 folding storage strategy in the data recorder, the effective amount of data written in a single time is solved, and the data storage accuracy and reliability are improved.
Patent Information
- Application Number
- CN202411822182.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-05-16
AI Technical Summary
During missile flight testing, the data recorder is prone to power outage when it is subjected to huge overload shocks, resulting in incomplete storage of data and affecting the test results.
Using the 1/2 folding storage strategy, the 1/2 folding data is reduced to 1/2 of the original page, and the written data is processed according to certain rules, and the data is written to the designated page of the memory, and the write operation is no longer performed in the subsequent way, realizing the 1/2 folding process of the data.
It reduces the amount of data loss when the device is powered off, ensures data integrity and reliability, and improves storage accuracy and reliability.
Smart Images

Figure CN120010761A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of data storage of missile-borne recorders, and in particular relates to a folding storage strategy for data recorders. Background Art
[0002] During the flight test, it is necessary to install various sensors on the missile to test various state parameters of the missile during flight, and collect and store the signals output by these sensors. The missile-borne data recorder is a device that collects and stores important dynamic parameters and state information of the missile in real time during the missile flight test. After the data recorder is recovered, the stored data can be transmitted to a specific host computer for analysis and processing. The designer will evaluate the state of the missile in flight based on the analysis results to check whether the various indicators of the missile meet the design requirements, provide a reference basis for finding possible faults, and further modify and improve its functions. Especially when the system fails and performs troubleshooting and zeroing, the data of the missile-borne data recorder can provide sufficient and reliable analysis basis. Therefore, the reliability and accuracy of data storage play an important role in the entire test process. During the missile flight test, the recording equipment will be subjected to huge overload shocks, which will affect its internal circuits, cause the equipment to lose power, and affect the recording and storage of data.
[0003] Page write operations are widely used for writing memory data. When operating the memory, the storage space is divided into pages of equal size. Different pages have different addresses, and the page to perform the operation is selected according to the address. When writing data, the traditional storage strategy will cause the single write page to be too large. When the device suddenly loses power, it will cause the memory to lose too much data in the last time, resulting in incomplete stored data and affecting the test results. In order to reduce the amount of data lost by the storage device at the moment of power failure and ensure the accuracy and reliability of the stored data, it is necessary to select a reasonable storage strategy. When writing data, you can increase the number of times you write data and reduce the amount of effective single write data, thereby reducing the amount of data lost when the device loses power and improving the accuracy and reliability of storage.
[0004] The data acquisition rate requirement of the missile-borne data recorder is not high, generally tens of KB / s or hundreds of KB / s, while the write rate of the memory chip can reach several MB / s or tens of MB / s. The rate at which data is written to the memory chip is greater than the data acquisition rate, which provides a huge operating space for data folding storage. Summary of the invention
[0005] In view of this, the present invention proposes a data recorder folding storage strategy. In the present invention, the data acquisition rate is 214KB / s, and the write rate of the selected memory chip is not less than 20MB / s. The data write rate is much greater than the data acquisition rate. Based on this, the present invention is based on a data storage strategy of 1 / 2 folding storage, which reduces the valid data written in a single time to 1 / 2 of the original page. When the present invention writes data into the memory, the written data is processed according to a certain rule, and the processed data is written into the specified page of the memory as valid data. No subsequent write operation is performed on the page, thereby realizing 1 / 2 folding processing of the data.
[0006] The technical solution of the present invention is:
[0007] A folding storage strategy for a data recorder writes data to the i+1th page and the i+2th page respectively, and the valid data written in a single time is reduced to 1 / 2 of the original page. The valid data of the i+1th page and the valid data of the i+2th page are written to the ith page in sequence, and i starts from 1 until the memory is full.
[0008] Furthermore, the method of writing data to the i+1th page and the i+2th page is to repeatedly store the valid data in the front and back parts of the current page.
[0009] Furthermore, in the initial state, the storage contents of pages 1 and 2 are the same.
[0010] Furthermore, the valid data of the i+1th page and the valid data of the i+2th page are sequentially written into the ith page through a data shift operation, and the original data of the i+1th page and the i+2th page are retained, waiting for the next operation.
[0011] Furthermore, the data writing rate is greater than the data acquisition rate.
[0012] Beneficial Effects
[0013] 1. The present invention reduces the amount of data effectively written at a single time, ensuring that when the device suddenly loses power during the next data writing, the amount of data written last time will not be lost, thereby reducing the amount of data lost when the device loses power and ensuring the integrity of the data during the data storage process.
[0014] 2. The data writing rate of the present invention is much higher than the data acquisition rate, which reduces the maximum amount of data loss during storage and performs folded storage on the data.
[0015] 3. The present invention improves the accuracy and reliability of storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flow chart of the method of the present invention; DETAILED DESCRIPTION
[0017] The technical solution of the present invention is:
[0018] 1) In the initial state, a single data write operation is performed first, and a single page of data is written into the storage chip;
[0019] 2) After a single page of data is written, the next page of data is written again;
[0020] 3) After the two data writings are completed, the next data shift operation is performed to shift the written data to one page, and the blank page writing operation is not performed at this time;
[0021] 4) After the shift operation, continue writing to the blank page, repeating steps 1, 2, and 3 until the memory is full.
[0022] When writing data, data is written twice first. When writing data for the next time, no new data is written. The data written twice before is stored, thereby realizing 1 / 2 folded storage of data and reducing the effective single data to 1 / 2 of the original page. Taking a single page of 2KB data as an example, when the memory data is lost, the data of the last write operation is not written into the memory, resulting in data loss. Since the effective data in each write operation is half of the original page, the maximum loss is 1KB; the data acquisition rate is 214KB / s, and the duration is T=(1 / 214)s, which is about 4.7ms.
[0023] The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
[0024] Please refer to Figure 1 , Figure 1 The operation flow chart of folding storage of the present invention is shown.
[0025] 1) First write: write the first frame of data to page 1 and page 2;
[0026] 2) Second writing: write the second frame data to page 3;
[0027] 3) The third write: write the data of page 2 and page 3 into page 1;
[0028] 4) The fourth write: write the third frame data to page 3;
[0029] 5) Fifth writing: writing the fourth frame data into page 4;
[0030] 6) Sixth write: write the data of page 3 and page 4 to page 2;
[0031] 7) According to this rule, the data is written, as shown in the following data storage strategy process table for 1 / 2 folded storage.
[0032]
[0033]
[0034] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention and are not intended to limit it. The technical solution of the present invention may be referred to for modification or equivalent replacement. In addition, given that the storage data writing rate is much higher than the actual acquisition data rate, if the maximum possible amount of lost data needs to be further compressed, the folding resolution may be further improved.
Claims
1. A data recorder folding storage strategy, characterized in that: Write data to page i+1 and page i+2 respectively. The valid data written in a single time is reduced to 1 / 2 of the original page. Write the valid data of page i+1 and page i+2 into page i in sequence, starting from i 1, until the memory is full.
2. A data recorder folding storage strategy according to claim 1, characterized in that: The method of writing data to the i+1th page and the i+2th page is to repeatedly store the valid data in the front and back parts of the current page.
3. A data recorder folding storage strategy according to claim 1, characterized in that: In the initial state, the storage contents of pages 1 and 2 are the same.
4. A data recorder folding storage strategy according to claim 1, characterized in that: The valid data of the i+1th page and the valid data of the i+2th page are sequentially written into the ith page through the data shift operation, and the original data of the i+1th page and the i+2th page are retained, waiting for the next operation.
5. A data recorder folding storage strategy according to any one of claims 1 to 4, characterized in that: The data writing rate is greater than the data acquisition rate.