Method for playing back satellite-borne solid-state memory according to time index
By using a combination of time-indexed playback method, file index table, and milestone information table in the spaceborne solid-state memory, the problem of low data index efficiency in the existing technology is solved, and fast and accurate indexing of massive data and important data are achieved. Prioritized downloading improves functional fault tolerance.
Patent Information
- Application Number
- CN202410499870.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-24
- Publication Date
- 2024-08-23
AI Technical Summary
The existing data indexing method of satellite-borne solid-state memory cannot achieve fast and accurate retrieval of massive data, resulting in low data transmission efficiency and poor operability, and cannot meet the priority downloading requirements of important data.
The time-indexed playback method is used to pre-sort the recorded storage files in the onboard solid-state memory, and a file sequence that can be played back by time is formed through the file index table and milestone information table, and is maintained using satellite time broadcast and local millisecond timer Local time ensures the legality and accuracy of file recording time and enables accurate playback by cluster.
It achieves fast and accurate indexing of satellite-borne solid-state memory data, improves the file indexing efficiency of massive data, meets the priority downloading requirements of important data, simplifies the interpretation logic of time-based playback, and improves functional fault tolerance.
Smart Images

Figure CN118535086A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of satellite measurement and control communication, and in particular relates to a method for replaying a satellite-borne solid-state memory according to time index. Background Art
[0002] The onboard solid-state memory is one of the important devices of the satellite data transmission subsystem. Its function is to record the payload data and platform data generated by the satellite in orbit, and play it back to the ground at the same time or later when appropriate, directly or after being transferred via a relay satellite.
[0003] With the continuous development of aerospace technology and the expansion of user needs, the performance of payloads and satellite platforms has been continuously improved, and the amount of data generated has also increased exponentially; on the other hand, with the increase in the number of spacecraft in orbit, ground receiving resources are becoming increasingly scarce, and the contradiction between data storage and downlink is becoming increasingly prominent. This requires the onboard solid-state storage to have fast and accurate data retrieval capabilities, so that the required key information can be found instantly and accurately for playback, saving precious data transmission resources.
[0004] At present, the commonly used data indexing methods for onboard solid-state storage are indexing by file number or by storage address. The disadvantage of indexing by file number is that it cannot achieve accurate indexing, and can only index the entire file, which cannot improve transmission efficiency; the disadvantage of indexing by storage address is that it is not user-friendly, the mapping relationship between the data required by the user and the actual storage address is complex, and the operability is poor. Summary of the invention
[0005] The technical problem solved by the present invention is: to overcome the shortcomings of the prior art and provide a method for time-indexed playback of a satellite-borne solid-state storage device, so as to realize indexed playback of stored files according to recording time, realize fast, accurate and reliable indexing of massive data, and meet the use requirements of prioritizing the download of important data.
[0006] The technical solution of the present invention is: a method for replaying a spaceborne solid-state storage according to a time index, comprising the following steps:
[0007] Pre-sorting the stored files recorded in the onboard solid-state storage;
[0008] Check the legality of the received time-based playback instructions;
[0009] After passing the inspection, the pre-sorted stored files are retrieved according to the playback start time and playback end time specified in the time playback instruction to form a sequence of files to be played back; the sequence of files to be played back consists of the first playback file, or the first playback file and the last playback file, or the first playback file, the intermediate playback file sequence and the last playback file, wherein the intermediate playback file sequence consists of one or more files;
[0010] The sequence of files to be played back is played back, wherein the first playback file and the last playback file are played back by cluster search, and the sequence of intermediate playback files is played back in sequence according to the file start time.
[0011] Furthermore, the recording process of the storage files recorded in the onboard solid-state storage adopts a cluster cache method, that is, when the onboard solid-state storage starts to record a storage file, the cached data is written into the storage array every time a cluster is full, and the current local time is used to mark the cluster data; the above process is repeated until the storage file recording is completed.
[0012] Furthermore, the stored files recorded in the onboard solid-state storage are pre-sorted using a file index table and a milestone information table; the file index table includes the file number, file start time, file end time, previous file number and file size of the stored file, and the milestone information table includes the first file number, the last file number and the remaining capacity; starting from the last file number, according to the previous file number in the file index table, the pre-sorting is completed by working backwards in sequence until the first file number ends.
[0013] Furthermore, the file index table and the milestone information table are both maintained in the recording process of storing files, including the following steps:
[0014] When starting a storage file record, use the current local time to assign the file start time in the file index table of the storage file; check whether the remaining capacity in the milestone information table is full; if so, assign the first file sequence number and the last file sequence number in the milestone information table with the file sequence number of the storage file; if not, do not perform the assignment operation;
[0015] In the process of recording the storage file, when each cluster of cache data is written into the storage array, the file size in the file index table and the remaining capacity in the milestone information table are updated simultaneously;
[0016] After the storage file record is completed, check whether the current storage file is an empty file; if so, clear the file index table of the storage file; if not, use the time stamp of the last cluster of data of the storage file to assign the file end time in the file index table of the storage file, and use the last file sequence number in the milestone information table to assign the previous file sequence number in the file index table of the storage file; check whether the file start time of the current storage file is later than the file end time of the current last file; if so, update the last file sequence number in the milestone information table to the file sequence number of the storage file; if not, the current storage file time is illegal, no update is performed, and the storage file is not pre-sorted.
[0017] Furthermore, the local time is maintained by the satellite time broadcast provided by the satellite navigation receiver and forwarded by the data transmission lower computer in coordination with the millisecond timer inside the solid-state memory. The millisecond timer is used to generate the local time, and the satellite time broadcast is used to calibrate the local time.
[0018] Furthermore, the local time is divided into a local second value and a local millisecond value, which are maintained in the millisecond timer interrupt and the star time broadcast interrupt; each time the millisecond timer interrupt runs once, the local millisecond value is increased by 1; when the local millisecond value accumulates to 999, the local millisecond value is cleared, and the local second value is increased by 1 at the same time; each time a star time broadcast arrives, the millisecond moment in the star time broadcast is first assigned to the local millisecond value, and then the whole second moment in the star time broadcast is compared with the local second value. If they are different, the local second value is kept unchanged and the whole second moment in the current star time broadcast is latched; after the whole second moment of the next package of star time broadcast arrives, it is compared with the local second value. If they are the same, it is considered that the whole second moment in the previous package of star time broadcast is wrong, and the local time is still maintained unchanged. If they are different, it is compared with the whole second moment in the latched previous package of star time broadcast. If the values are continuous, it is considered that the local second value is wrong, and the whole second moment in the current star time broadcast is used to assign the local second value.
[0019] Furthermore, the passing criteria for checking the legality of the received time-based playback instruction are:
[0020]
[0021] Among them, t s,1 is the file start time of the first file after pre-sorting, t e,M is the end time of the last file after pre-sorting, M is the number of stored files after pre-sorting, M≥2, T s The playback start time specified in the time playback instruction, T e The playback end time.
[0022] Furthermore, the specific steps of forming the sequence of files to be played back include:
[0023] S1. Get the first playback file and the last playback file: Play the playback start time T specified in the time playback instruction s , playback end time T e The file start time t of each pre-sorted stored file s,m , file end time t e,m Compare one by one, m is a positive integer ranging from 1 to M; if the following condition (1) is met, then the file number N of the stored file is recorded i , and as the first playback file in the sequence of files to be played back; if the following condition (2) is met, the file number N of the stored file is recorded j , and used as the last playback file in the sequence of files to be played back;
[0024]
[0025]
[0026] S2, check the legality of the first playback file and the last playback file: determine whether j is greater than or equal to i, if not, the process ends; if yes, further determine whether i is equal to j, if not, execute step S3; if yes, set the intermediate playback file sequence and the last playback file to empty;
[0027] S3. Obtaining an intermediate playback file sequence: determining whether j is equal to i+1; if so, setting the intermediate playback file sequence to empty; if not, placing the file numbers of the storage files whose pre-sorted positions are greater than i and less than j into the intermediate playback file sequence.
[0028] Furthermore, the cluster-based retrieval is used for playback, and judgment is made based on the playback start time and playback end time specified in the time playback instruction and the time stamp of each cluster of data in the first playback file or the last playback file in the sequence of files to be played back, to determine whether to play back cluster by cluster of data.
[0029] Further, the specific steps of replaying the sequence of files to be replayed include:
[0030] S1. Retrieve and play back the first playback file by cluster: First, determine the first cluster of data to be played back in the first playback file, and set the playback start time specified by the time playback instruction as T. s The time stamp tt of each cluster of data in the first playback file q Compare one by one, the value range of q is 1~Q, Q is the number of data clusters in the first playback file, when tt q ≥T s , replay the cluster data; check whether the intermediate playback file sequence and the final playback file are both empty; if so, the playback end time specified in the time playback instruction is T e The time stamp tt of each subsequent cluster of data q Compare one by one, when tt is satisfied q ≤T e When tt is not satisfied, the cluster data is replayed and the judgment is repeated until tt is not satisfied. q ≤T e , end playback; if not, directly play back to the last cluster of data in the first playback file;
[0031] S2, playback of the intermediate playback file sequence according to the file start time: check whether the intermediate playback file sequence is empty; if so, execute step S3; if not, playback each stored file in sequence according to the file start time of the intermediate playback file sequence;
[0032] S3, search and play the last playback file by cluster: check whether the last playback file is empty; if so, the process ends; if not, the playback end time T specified in the time playback instruction is set. e The time stamp of each cluster of data in the last playback file tt p Compare one by one, the value range of p is 1~P, P is the number of data clusters in the last playback file, when tt p ≤T e When tt is not satisfied, the cluster data is replayed and the judgment is repeated until tt is not satisfied. p ≤T e , end the playback.
[0033] The advantages of the present invention compared with the prior art are:
[0034] 1) The present invention realizes accurate time marking of the data of the files stored in the onboard solid-state memory by cluster, realizes the playback of the stored files by cluster, improves the playback accuracy, and meets the use requirements of prioritizing the download of important data;
[0035] 2) The present invention designs a file index table and a milestone information table for solid-state storage to record history maintenance. Through the first file and last file information in the milestone information table and the previous file sequence number information in each file index table, a file sequence that can be played back in time can be quickly formed, which greatly improves the file indexing efficiency of massive data;
[0036] 3) The present invention adopts the coordination of star time broadcast and local millisecond timer to realize the millisecond-level maintenance of local time of solid-state memory, and designs a star time latch judgment mechanism, so that the time stamp information is incremented during the recording process, ensuring the legitimacy of the recorded time in the file; designs a milestone information table end file information maintenance mechanism, so that the time stamp information of the new recorded file is later than the end time of the last file, ensuring the legitimacy of the recorded time between files; by ensuring the legitimacy of the recorded time within and between files, the judgment logic of time playback is simplified, and the functional fault tolerance is improved;
[0037] 4) The present invention designs the time-based playback instruction legality criterion, the first playback file criterion, the last playback file criterion, and the cluster data playback criterion to ensure that the data is correctly indexed. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a flow chart of the method of the present invention;
[0039] Figure 2 This is a flow chart of the data recording process of the onboard solid-state memory of the present invention;
[0040] Figure 3 This is a schematic diagram of obtaining the local time of the onboard solid-state storage of the present invention;
[0041] Figure 4This is a flow chart of local time maintenance of the onboard solid-state storage of the present invention. DETAILED DESCRIPTION
[0042] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0043] The onboard solid-state memory is one of the important devices of the satellite data transmission subsystem. Its function is to record the payload data and platform data generated by the satellite in orbit, and to play them back at the same time or later. The present invention designs a method for playing back the onboard solid-state memory by time index, which can index and play back the data stored in the onboard solid-state memory by recording time, so as to achieve the purpose of accurate data indexing and improving playback efficiency.
[0044] The method for replaying the onboard solid-state storage according to time index shown in this embodiment mainly includes the following steps: Figure 1 As shown:
[0045] (1) Pre-sort the stored files recorded in the onboard solid-state storage
[0046] Step ①: After receiving the playback instruction by time, the solid-state memory starts the playback process by time index;
[0047] In a possible implementation, the playback instruction by time should specify the playback start time T s , playback end time T e , or these two values can be obtained through operation.
[0048] Furthermore, the playback instruction by time may consist of 9 bytes, the definition and example of which are as follows:
[0049]
[0050] Step 2: Pre-sort the stored files that can be played back by time
[0051] In the present invention, the storage files in the onboard solid-state storage are recorded in a cluster cache manner, that is, when the onboard solid-state storage starts to record a storage file, each time the cached data is full of a cluster, the cached data is written into the storage array, and the cluster data is time-stamped with the current local time; the above process is repeated until the storage file recording is completed.
[0052] In one possible implementation, the stored files recorded in the onboard solid-state storage are pre-sorted by designing a file index table and a milestone information table, that is, starting from the last file number, and counting backwards in sequence according to the previous file number in the file index table until the first file number ends, the pre-sorting is completed, thereby quickly forming a file sequence that can be played back in time and improving indexing efficiency.
[0053] Specifically, each storage file has a corresponding file index table, including information such as file number, file start time, file end time, previous file number and file size. Among them, the file number is the name given to the file by the user, and can be any unoccupied value within the permitted range; the file start time is the local time when the "start recording" instruction is executed when the solid-state memory records the storage file; the file end time is the local time when the storage file recording is completed; the previous file number is the valid file number generated by the solid-state memory last time before the current file is recorded; the file size is the storage capacity occupied by the current file. The milestone information table is used for the record history maintenance of the solid-state memory, including information such as the first file number, the last file number, and the remaining capacity.
[0054] In a possible implementation, the file index table and the milestone information table are maintained during the recording process of storing files, such as Figure 2 As shown, the specific steps include:
[0055] When starting a storage file record, when the solid-state storage receives a "start recording" instruction, the solid-state storage starts the recording process, extracts the file number specified in the instruction, and uses the current local time to assign a value to the file start time in the file index table of the storage file; checks whether the remaining capacity in the milestone information table is full capacity, if so, assigns the first file number and the last file number in the milestone information table with the file number of the storage file, if not, does not perform the assignment operation;
[0056] During the recording process of the storage file, the solid-state memory writes the received data into the cache. When the cache data is full of one cluster, the cache data is written into the storage array, and the current local time is used to mark the cluster data. At the same time, the file size in the file index table and the remaining capacity in the milestone information table are updated. The above process is repeated until the remaining capacity is 0 or the "recording stop" instruction is received.
[0057] After the storage file recording is completed, that is, when the "recording stop" instruction is received, check whether the storage file is an empty file, that is, whether the file size is 0. If so, clear the file index table information of the storage file. If not, use the time stamp of the last cluster of data of the storage file to assign the file end time in the file index table of the storage file, and use the last file sequence number in the milestone information table to assign the previous file sequence number in the file index table of the storage file; check whether the file start time of the storage file is later than the file end time of the current last file. If so, update the last file sequence number in the milestone information table to the file sequence number of the storage file. If not, the storage file time is illegal, cannot be played back by time, and will not be updated, and the storage file will not be pre-sorted.
[0058] In a possible implementation, the amount of data in one cluster is 192 MB.
[0059] In a possible implementation, the local time is maintained by the satellite time broadcast provided by the satellite navigation receiver and forwarded by the data transmission lower computer in conjunction with the millisecond timer inside the solid-state memory. Figure 3 As shown, the data transmission lower computer receives the star time broadcast by the satellite navigation receiver through the CAN bus, and forwards it to the millisecond timer inside the solid-state memory through the RS485 bus inside the data transmission subsystem for local time calibration. The millisecond timer inside the solid-state memory is used to generate local time.
[0060] Specifically, the local time maintenance process is as follows: Figure 4 As shown: the local time is divided into local seconds and local milliseconds, which are maintained in the millisecond timer interrupt and the star time broadcast interrupt; each time the millisecond timer interrupt runs, the local millisecond value is increased by 1; when the local millisecond value accumulates to 999, the local millisecond value is cleared, and the local second value is increased by 1; each time the star time broadcast arrives, the millisecond moment in the star time broadcast is first assigned to the local millisecond value, and then the whole second moment S in the star time broadcast is assigned to the local millisecond value. n Compare with the local second value. If they are different, keep the local second value unchanged and latch the whole second in this package of star time broadcast. When the whole second of the next package of star time broadcast arrives, compare with the local second value. If they are the same, it is considered that the whole second in the previous package of star time broadcast is wrong, and the local time is kept unchanged. If they are different, compare with the whole second in the latched previous package of star time broadcast. If the values are continuous, it is considered that the local second value is wrong, and the whole second in the current star time broadcast is used to assign the local second value. The n in the figure is used to assist in distinguishing the packets of star time broadcast.
[0061] (2) Check the legitimacy of the received time-based playback instructions
[0062] Step 3: Check the legitimacy of the received playback instruction by time. The passing criteria are:
[0063]
[0064] Among them, t s,1 is the file start time of the first file after pre-sorting, t e,M is the end time of the last file after pre-sorting, M is the number of stored files after pre-sorting, M≥2, T s The playback start time specified in the time playback instruction, T e The playback end time.
[0065] If the instruction legality check passes, execute step ④, otherwise the process ends.
[0066] (3) After passing the inspection, the pre-sorted storage files are retrieved according to the playback start time and playback end time specified in the time playback instruction to form a sequence of files to be played back.
[0067] The file sequence to be played back consists of at most a first playback file, a middle playback file sequence and a last playback file, wherein the first playback file and the last playback file are at most one file each, and the middle playback file sequence may consist of one or more files.
[0068] Step ④: Get the first playback file and the last playback file: Play the playback start time T specified in the time playback instruction s , playback end time T e The file start time t of each pre-sorted stored file s,m , file end time t e,M Compare one by one, m is a positive integer ranging from 1 to M; if the following condition (1) is met, then the file number N of the stored file is recorded i , and as the first playback file in the sequence of files to be played back; if the following condition (2) is met, the file number N of the stored file is recorded j , and used as the last playback file in the sequence of files to be played back;
[0069]
[0070]
[0071] Step ⑤: Check the legality of the first playback file and the last playback file: determine whether j is greater than or equal to i, if not, the process ends; if yes, further determine whether i is equal to j, if not, execute step ⑥; if yes, set the intermediate playback file sequence and the last playback file to empty;
[0072] Step ⑥: Get the intermediate playback file sequence: determine whether j is equal to i+1; if so, set the intermediate playback file sequence to empty; if not, put the file numbers of the storage files whose pre-sorted positions are greater than i and less than j into the intermediate playback file sequence.
[0073] (4) Play back the sequence of files to be played back, where the first and last files to be played back are played back by cluster search, and the intermediate files to be played back are played back in sequence according to the start time of the files.
[0074] Step 7: Retrieve and play the first playback file by cluster: First determine the first cluster of data to be played back in the first playback file, and set the playback start time specified by the time playback instruction as T s The time stamp tt of each cluster of data in the first playback file q Compare one by one, the value range of q is 1~Q, Q is the number of data clusters in the first playback file, when tt q≥T s , replay the cluster data; check whether the intermediate playback file sequence and the final playback file are both empty; if so, the playback end time specified in the time playback instruction is T e The time stamp tt of each subsequent cluster of data q Compare one by one, when tt is satisfied q ≤T e When tt is not satisfied, the cluster data is replayed and the judgment is repeated until tt is not satisfied. q ≤T e , end playback; if not, directly play back to the last cluster of data in the first playback file;
[0075] Step ⑧: Play back the intermediate playback file sequence according to the file start time: Check whether the intermediate playback file sequence is empty. If so, execute step ⑨. If not, play back each stored file in sequence according to the file start time of the intermediate playback file sequence.
[0076] Step 9: Retrieve the last playback file by cluster: Check whether the last playback file is empty; if so, the process ends; if not, the playback end time T specified in the time playback instruction is set. e The time stamp of each cluster of data in the last playback file tt p Compare one by one, the value range of p is 1~P, P is the number of data clusters in the last playback file, when tt p ≤T e When tt is not satisfied, the cluster data is replayed and the judgment is repeated until tt is not satisfied. p ≤T e , end the playback.
[0077] It is to be understood that the present invention is described by way of embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and embodiments that can fall within the scope of the claims of this application all fall within the scope protected by the present invention.
[0078] The contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.
Claims
1. A method for replaying a spaceborne solid-state storage according to time index, characterized in that: The steps include: Pre-sorting the stored files recorded in the onboard solid-state storage; Check the legality of the received time-based playback instructions; After passing the inspection, the pre-sorted stored files are retrieved according to the playback start time and playback end time specified in the time playback instruction to form a sequence of files to be played back; the sequence of files to be played back consists of the first playback file, or the first playback file and the last playback file, or the first playback file, the intermediate playback file sequence and the last playback file, wherein the intermediate playback file sequence consists of one or more files; The sequence of files to be played back is played back, wherein the first played back file and the last played back file are played back by cluster search, and the sequence of intermediate played back files is played back in sequence according to the file start time.
2. The method for replaying a spaceborne solid-state storage according to time index according to claim 1, characterized in that: The recording process of the stored files recorded in the onboard solid-state storage adopts the cluster-based caching method, that is, when the onboard solid-state storage starts to record a stored file, the cached data is written into the storage array every time a cluster is full, and the current local time is used to mark the cluster data; Repeat the above process until the storage file record is completed.
3. The method for replaying a satellite-borne solid-state storage according to time index according to claim 2, characterized in that: The stored files recorded in the onboard solid-state storage are pre-sorted using a file index table and a milestone information table; the file index table includes the file serial number, file start time, file end time, previous file serial number and file size of the stored file, and the milestone information table includes the first file serial number, the last file serial number and the remaining capacity; starting from the last file serial number, according to the previous file serial number in the file index table, the pre-sorting is completed by working backwards in sequence until the first file serial number ends.
4. The method for replaying a satellite-borne solid-state storage according to time index according to claim 3, characterized in that: The file index table and the milestone information table are both maintained during the recording process of storing files, including the following steps: When starting a storage file record, use the current local time to assign the file start time in the file index table of the storage file; check whether the remaining capacity in the milestone information table is full; if so, assign the first file sequence number and the last file sequence number in the milestone information table with the file sequence number of the storage file; if not, do not perform the assignment operation; In the process of recording the storage file, when each cluster of cache data is written into the storage array, the file size in the file index table and the remaining capacity in the milestone information table are updated simultaneously; After the storage file record is completed, check whether the current storage file is an empty file; if so, clear the file index table of the storage file; if not, use the time stamp of the last cluster of data of the storage file to assign the file end time in the file index table of the storage file, and use the last file sequence number in the milestone information table to assign the previous file sequence number in the file index table of the storage file; check whether the file start time of the current storage file is later than the file end time of the current last file; if so, update the last file sequence number in the milestone information table to the file sequence number of the storage file; if not, the current storage file time is illegal, no update is performed, and the storage file is not pre-sorted.
5. A method for replaying a spaceborne solid-state storage according to time index according to any one of claims 2 to 4, characterized in that: The local time is maintained by the satellite time broadcast provided by the satellite navigation receiver and forwarded by the data transmission lower computer in conjunction with the millisecond timer inside the solid-state memory. The millisecond timer is used to generate the local time, and the satellite time broadcast is used to calibrate the local time.
6. The method for replaying a satellite-borne solid-state storage according to time index according to claim 5, characterized in that: The local time is divided into local second value and local millisecond value, which are maintained in millisecond timer interrupt and star time broadcast interrupt; each time the millisecond timer interrupt runs once, the local millisecond value is increased by 1; when the local millisecond value accumulates to 999, the local millisecond value is cleared, and the local second value is increased by 1 at the same time; each time a star time broadcast arrives, the millisecond moment in the star time broadcast is first assigned to the local millisecond value, and then the whole second moment in the star time broadcast is compared with the local second value. If they are different, the local second value is kept unchanged and the whole second moment in the current star time broadcast is latched; after the whole second moment of the next package of star time broadcast arrives, it is compared with the local second value. If they are the same, it is considered that the whole second moment in the previous package of star time broadcast is wrong, and the local time is still maintained unchanged. If they are different, it is compared with the whole second moment in the latched previous package of star time broadcast. If the values are continuous, it is considered that the local second value is wrong, and the whole second moment in the current star time broadcast is used to assign the local second value.
7. A method for replaying a spaceborne solid-state storage according to time index according to any one of claims 2 to 4, characterized in that: The pass criteria for checking the legality of the received time-based playback instruction are: Among them, t s,1 is the file start time of the first file after pre-sorting, t e,M is the end time of the last file after pre-sorting, M is the number of stored files after pre-sorting, M≥2, T s The playback start time specified in the time playback instruction, T e The playback end time.
8. The method for replaying a satellite-borne solid-state storage according to time index according to claim 7, characterized in that: The specific steps of forming the sequence of files to be played back include: S1. Get the first playback file and the last playback file: Play the playback start time T specified in the time playback instruction s , playback end time T e The file start time t of each pre-sorted stored file s,m , file end time t e,m Compare one by one, m is a positive integer ranging from 1 to M; if the following condition (1) is met, then the file number N of the stored file is recorded i , and as the first playback file in the sequence of files to be played back; if the following condition (2) is met, the file number N of the stored file is recorded j , and used as the last playback file in the sequence of files to be played back; S2, check the legality of the first playback file and the last playback file: determine whether j is greater than or equal to i, if not, the process ends; if yes, further determine whether i is equal to j, if not, execute step S3; if yes, set the intermediate playback file sequence and the last playback file to empty; S3. Obtaining an intermediate playback file sequence: determining whether j is equal to i+1; if so, setting the intermediate playback file sequence to empty; if not, placing the file numbers of the storage files whose pre-sorted positions are greater than i and less than j into the intermediate playback file sequence.
9. A method for replaying a spaceborne solid-state storage according to time index according to any one of claims 2 to 4, characterized in that: The cluster-based retrieval is used for playback, and the playback start time and playback end time specified in the time playback instruction are judged against the time stamp of each cluster of data in the first playback file or the last playback file in the sequence of files to be played back, and whether to play back is determined cluster by cluster of data.
10. The method for replaying a satellite-borne solid-state storage according to time index according to claim 9, characterized in that: The specific steps of replaying the sequence of files to be replayed include: S1. Retrieve and play back the first playback file by cluster: First, determine the first cluster of data to be played back in the first playback file, and set the playback start time specified by the time playback instruction as T. s The time stamp tt of each cluster of data in the first playback file q Compare one by one, the value range of q is 1~Q, Q is the number of data clusters in the first playback file, when tt q ≤T s , replay the data of this cluster; check whether the intermediate playback file sequence and the final playback file are both empty; if so, replay the end time of playback specified in the time playback instruction as T and the time stamp of each subsequent cluster of data as tt q Compare one by one, when tt is satisfied q ≤T e When tt is not satisfied, the cluster data is replayed and the judgment is repeated until tt is not satisfied. q ≤T e , end playback; if not, directly play back to the last cluster of data in the first playback file; S2, playback of the intermediate playback file sequence according to the file start time: check whether the intermediate playback file sequence is empty; if so, execute step S3; if not, playback each stored file in sequence according to the file start time of the intermediate playback file sequence; S3, search and play the last playback file by cluster: check whether the last playback file is empty; if so, the process ends; if not, the playback end time T specified in the time playback instruction is set. e The time stamp of each cluster of data in the last playback file tt p Compare one by one, the value range of p is 1~P, P is the number of data clusters in the last playback file, when tt p ≤T e When tt is not satisfied, the cluster data is replayed and the judgment is repeated until tt is not satisfied. p ≤T e , end the playback.
Citation Information
Cited By
Database load file playback method, medium, product and equipment
CN121070977A
