技术领域technical field
本发明涉及低轨卫星固态存储器的分文件读写设计。The invention relates to the read-write design of sub-files of the low-orbit satellite solid-state memory.
背景技术Background technique
低轨卫星数传分系统主要任务是对卫星有效载荷获取的多路数据进行格式化、存储和必要的数据处理,以确保数据的可靠传输和接收。近期,为满足战术应用需要,用户明确了提升整个系统快速反应能力的需求。某低轨卫星运行于高度约600km的倾斜轨道,存在连续多圈境内地面站不可见的情况,需要利用存储器实现记录和回放功能,因此存储器读写设计就成为了实现情报信息快速接收和处理的一个重要环节。如何完整记录数据并根据任务需要指定数据优先下传是存储器读写设计需要解决的问题。The main task of the low-orbit satellite data transmission subsystem is to format, store and perform necessary data processing on the multi-channel data acquired by the satellite payload, so as to ensure the reliable transmission and reception of data. Recently, in order to meet the needs of tactical applications, users have clarified the need to improve the rapid response capability of the entire system. A low-orbit satellite operates on an inclined orbit with an altitude of about 600km, and there are continuous multiple circles where the ground station is invisible. It needs to use the memory to realize the recording and playback functions. Therefore, the design of memory reading and writing has become the key to realize the rapid reception and processing of intelligence information. an important link. How to completely record the data and specify the data to be downloaded first according to the task needs is a problem that needs to be solved in the memory read and write design.
需要优先下传的数据一定是用户关心的数据,根据卫星任务特点,优先下传的需求有以下几种可能:The data that needs to be downloaded first must be the data that the user cares about. According to the characteristics of the satellite mission, there are several possibilities for the priority download:
(1)重点区域数据:卫星飞经某一个或某几个区域获取的数据;(1) Key area data: data acquired by satellites flying over a certain area or several areas;
(2)重要时段数据:卫星在某一个或某几个工作时间段获取的数据;(2) Important time period data: data acquired by satellites in a certain or several working hours;
(3)关键载荷数据:卫星多路载荷数据中的某一路或某几路载荷数据。(3) Key payload data: one or several channels of satellite payload data.
其中飞经重点区域可根据卫星轨道参数等效为特定的工作时间,因此重点区域数据和重要时段数据均可通过工作时间进行识别和划分,而关键载荷获取的数据只能通过不同标识进行识别和划分。Among them, flying through the key areas can be equivalent to specific working hours according to the satellite orbit parameters, so the key area data and important period data can be identified and divided by working time, and the data obtained by key loads can only be identified and identified by different labels. divided.
发明内容Contents of the invention
为了解决低轨卫星的指定数据优先下传问题,本发明提出了一种基于SDRAM星载存储器分文件读写设计方法,利用本发明可实现数据完整记录和快速回放。该设计方法具有存储空间利用率高、突发任务适应性好、兼容顺序下传、工程实现简单等优点。In order to solve the problem of priority downloading of designated data of low-orbit satellites, the present invention proposes a design method for reading and writing files based on SDRAM on-board memory. Using the present invention, complete data recording and fast playback can be realized. The design method has the advantages of high utilization rate of storage space, good adaptability to sudden tasks, compatible sequential downloading, and simple engineering implementation.
根据本发明的一个方面,提供一种基于SDRAM星载存储器分文件读写设计方法,包括存储器记录步骤、存储器回放步骤,其特征在于,写指针不受读指针约束,只有其与首个文件的首地址重叠时,即本次获取的载荷数据已存满存储器时,才会自动停止记录;读指针超过写指针时为读循环,仍重复回放。According to one aspect of the present invention, a kind of design method based on SDRAM on-board memory sub-file reading and writing is provided, comprising a memory recording step and a memory replaying step, characterized in that the write pointer is not restricted by the read pointer, only its connection with the first file When the first address overlaps, that is, when the load data acquired this time is fully stored in the memory, the recording will be automatically stopped; when the read pointer exceeds the write pointer, it is a read cycle, and the playback is still repeated.
优选地,在所述存储器记录步骤中,所有载荷数据混存。Preferably, in the memory recording step, all load data are stored together.
优选地,在所述存储器记录步骤中,根据需要设置记录文件总数为n,以写指令划分文件,若在第n次写操作之后仍有多次写操作,均记录为第n个文件;存储器控制软件中记录每个文件的起始地址,便于优先下传选择。Preferably, in the memory recording step, the total number of recorded files is set to n as required, and the files are divided by write instructions. If there are still multiple write operations after the n write operation, they are all recorded as the nth file; The starting address of each file is recorded in the control software, which is convenient for priority downloading selection.
优选地,在所述存储器记录步骤中,多次写操作的文件地址连续,实现全地址大循环使用。Preferably, in the step of recording the memory, the file addresses of multiple write operations are continuous, so as to realize the large recycling of all addresses.
优选地,在所述存储器记录步骤中,存储器存满后,显示写溢出,并自动停止记录。Preferably, in the memory recording step, after the memory is full, it will display write overflow and automatically stop recording.
优选地,所述存储器回放步骤包括存储器顺序回放步骤,其中,在所述存储器顺序回放步骤中,根据用户需要通过注数选择所有文件顺序下传;当所有文件均已读出即读循环后,将按照记录顺序重复读文件;直到收到读停指令才停止回放。Preferably, the memory playback step includes a memory sequential playback step, wherein, in the memory sequential playback step, according to the user's needs, all files are selected and downloaded sequentially through the number of notes; when all files have been read out and the read cycle is completed, The file will be read repeatedly in the order of recording; playback will not stop until a read stop command is received.
优选地,所述存储器回放步骤包括存储器优先回放步骤,其中,在所述存储器优先回放步骤中,根据用户需要通过注数选择指定文件优先下传,此后按照顺序将剩余文件读出;当所有文件均已读出即读循环后,将按照指定的优先顺序重复读文件;直到收到读停指令才停止回放。Preferably, the memory playback step includes a memory priority playback step, wherein, in the memory priority playback step, according to the needs of the user, the specified file is selected for priority downloading according to the number of notes, and then the remaining files are read out in order; when all files After all the files have been read out, the file will be read repeatedly according to the specified priority order; the playback will not stop until the read stop command is received.
本发明提出的分文件读写设计方法能够满足用户提出的重点区域或重要时段数据优先下传任务需求。从目前卫星研制的测试情况来看,该种设计方法合理、可靠。随着航天技术的快速发展,卫星在信息支援作战、支援救灾方面将发挥更为重要的作用。本发明将为未来低轨卫星星载存储器优先下传读写设计提供参考和依据。The file-by-file reading and writing design method proposed by the present invention can meet the user's priority data download task requirements in key areas or important periods. Judging from the current test situation of satellite development, this design method is reasonable and reliable. With the rapid development of aerospace technology, satellites will play a more important role in information support operations and disaster relief. The invention will provide reference and basis for the design of reading and writing in the future low-orbit satellite on-board memory with priority downloading.
附图说明Description of drawings
图1为根据本发明的存储器写(记录)原理示意图,其中,WP为写指针,RP为读指针。FIG. 1 is a schematic diagram of the principle of memory writing (recording) according to the present invention, wherein WP is a write pointer, and RP is a read pointer.
图2为根据本发明的存储器顺序读(回放)原理示意图,其中,WP为写指针,RP为读指针。FIG. 2 is a schematic diagram of the principle of sequential memory read (playback) according to the present invention, wherein WP is a write pointer, and RP is a read pointer.
图3为根据本发明的存储器优先读(回放)原理示意图,其中,WP为写指针;RP为读指针;以文件总数取16为例。3 is a schematic diagram of the principle of memory priority reading (playback) according to the present invention, wherein WP is a write pointer; RP is a read pointer; the total number of files is 16 as an example.
具体实施方式Detailed ways
1、存储器记录步骤,即存储器写步骤1. The memory recording step, that is, the memory writing step
由于卫星搭载了多种载荷,因此存储器应具备多种载荷数据同时记录的能力。由于低轨卫星存在多圈境内地面站不可见的情况,而载荷在境外期间存在多次工作的可能性,因此存储器应具备多次记录能力。由于用户提出的优先下传需求,因此存储器应具备不同时段记录数据区分能力。由于地面目标的不确定性,存在载荷数据过多而写溢出的可能性,因此存储器应具备写溢出后的处理能力。具体地,在所述存储器记录步骤中:Since the satellite carries a variety of payloads, the memory should have the ability to record multiple payload data at the same time. Since the low-orbit satellites have multiple circles of domestic ground stations that are invisible, and the payload may work multiple times while abroad, the memory should have the ability to record multiple times. Due to the user's priority download requirements, the memory should have the ability to distinguish recorded data in different periods. Due to the uncertainty of the ground target, there is a possibility of writing overflow due to too much load data, so the memory should have the processing capacity after writing overflow. Specifically, in the memory recording step:
(1)多种载荷数据的存储:考虑到用户并未针对不同载荷数据提出特殊的存储要求,设计为多种载荷数据混存。(1) Storage of multiple load data: Considering that the user does not put forward special storage requirements for different load data, it is designed to store multiple load data mixedly.
(2)多次任务的记录:为了简化读操作,确保读地址的连续性,设计多次写-写停-写操作中写指针地址连续、帧计数连续;同时,为了确保地面接收的帧同步,设计确保写入存储器的数据均为完整帧。(2) Recording of multiple tasks: In order to simplify the read operation and ensure the continuity of the read address, the write pointer address and the frame count in the multiple write-write stop-write operations are designed to be continuous; at the same time, in order to ensure the frame synchronization received by the ground , the design ensures that all data written to the memory is a complete frame.
(3)多次任务的区分:根据需要设置记录文件总数为n,以“写”指令划分文件,创建文件查找表,对应文件计数记录文件的起始地址和结束地址,若第n次“写”之后仍有多次“写”操作,均记录为第n个文件。(3) Differentiation of multiple tasks: set the total number of recorded files to n according to the needs, divide the files with the "write" command, create a file lookup table, and record the start address and end address of the file corresponding to the file count. If the nth "write" "After that, there are still multiple "write" operations, all of which are recorded as the nth file.
(4)写溢出的处理:考虑到用户并未对数据的优先等级提出特殊要求,认为存入存储器中的数据具有同等的重要性,设计为写指针到达存储器末地址后自动停止记录,以确保不覆盖之前写入且未读过的数据。(4) Handling of write overflow: Considering that the user has not put forward special requirements on the priority level of data, and considers that the data stored in the memory is of equal importance, it is designed to automatically stop recording after the write pointer reaches the end address of the memory to ensure Previously written and unread data is not overwritten.
2、存储器顺序回放步骤,即存储器顺序读步骤2. Memory sequential playback steps, that is, memory sequential read steps
由于在轨存在多次回放的可能性,因此存储器应具备多次回放连续的能力。由于数据连续性对于数传射频单机的可靠性存在影响,且在轨存在上次未回放完或回放错误的可能性,考虑到数据的时效性与应用价值,因此存储器应具备新记录数据的循环回放能力。由于存在优先下传的需求,顺序下传应与该需求兼容且实现原理一致。具体地,在所述存储器顺序回放步骤中:Because there is the possibility of multiple playbacks on the track, the memory should have the ability to play back multiple times continuously. Since data continuity has an impact on the reliability of the digital radio frequency stand-alone unit, and there is a possibility that the last replay may not be completed or the replay may be wrong. Considering the timeliness and application value of the data, the memory should have a loop for newly recorded data playback capability. Since there is a requirement for priority downloading, sequential downloading should be compatible with this requirement and the implementation principle should be consistent. Specifically, in the memory sequential playback step:
(1)多次任务的回放:在多次读-读停-读操作中,设计确保缓存中的数据完整输出,设计多次读-读停-读操作中读指针地址连续、数据帧计数连续;为了确保地面接收的帧同步,设计确保读出存储器的数据均为完整帧。(1) Playback of multiple tasks: In multiple read-read stop-read operations, the design ensures that the data in the cache is completely output, and the read pointer address and data frame count are continuous in multiple read-read stop-read operations. ; In order to ensure the frame synchronization received by the ground, the design ensures that the data read out of the memory are all complete frames.
(2)读循环:在回放完当次记录数据后,设计能够回到本次回放起始地址循环回放。(2) Reading cycle: after the current recorded data is played back, the design can return to the starting address of this playback for cyclic playback.
(3)不同下传方案兼容性:为实现顺序和优先下传的兼容性,设计通过注数设置下传顺序,每一比特对应一个文件的优先级。当比特位为“1”时,表明优先;当比特位为“0”时,表明不优先。因此,当注数为全“0”或全“1”时,代表各文件按记录顺序下传。(3) Compatibility of different downloading schemes: In order to achieve the compatibility of sequential and priority downloading, the design sets the downloading order through the number of notes, and each bit corresponds to the priority of a file. When the bit is "1", it indicates priority; when the bit is "0", it indicates no priority. Therefore, when the note number is all "0" or all "1", it means that each file is downloaded in the order of recording.
3、存储器优先回放步骤,即存储器优先读步骤3. Memory priority playback step, that is, memory priority read step
由于设计考虑了优先和顺序两种回放方式的兼容性,因此存储器优先读步骤设计和顺序读步骤基本一致,仅在使用中,可由用户根据需要设置对应优先下传的文件比特位为“1”。Because the design considers the compatibility of the priority and sequential playback methods, the design of the memory priority read step is basically the same as the sequential read step. Only in use, the user can set the bit of the corresponding priority download file to "1" as needed. .
根据图3中的示例,注数为“1010000100000000”,表明文件1、文件3、文件8优先下传。According to the example in Figure 3, the note number is "1010000100000000", indicating that file 1, file 3, and file 8 are downloaded first.
4、存储器读写约束4. Memory read and write constraints
根据上述设计可知,存储器的读写指针基本独立,两者的地址关系并无直接联系。读指针超过写指针时为读循环,将回到本次记录的首地址重复回放。写指针不受读指针约束,只有其与文件1(即首个文件)的首地址重叠时,即本次获取的载荷数据已存满存储器时,才会自动停止记录。According to the above design, it can be seen that the read and write pointers of the memory are basically independent, and the address relationship between the two is not directly related. When the read pointer exceeds the write pointer, it is a read cycle, and it will return to the first address of this record and repeat playback. The write pointer is not constrained by the read pointer, and only when it overlaps with the first address of file 1 (that is, the first file), that is, when the load data acquired this time is fully stored in the memory, the recording will automatically stop.
考虑到不同次任务产生的文件大小存在不确定性,为确保存储器空间的完整性和简化文件管理的复杂性,建议在轨使用时,在每次回放后清除文件地址,下次工作时仍从第一个文件开始记录首、末地址。Considering the uncertainty of the size of the files generated by different tasks, in order to ensure the integrity of the memory space and simplify the complexity of file management, it is recommended to clear the file address after each playback during on-track use, and keep the file address from The first file begins to record the first and last addresses.
显然,本领域的技术人员可以对本发明的基于SDRAM星载存储器分文件读写设计进行各种改动和变形而不脱离本发明的精神和范围。这样,倘若这些修改和变形属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变形在内。Apparently, those skilled in the art can make various changes and deformations to the SDRAM-based on-board memory sub-file reading and writing design of the present invention without departing from the spirit and scope of the present invention. In this way, if these modifications and variations fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210199764.9ACN102779016B (en) | 2012-06-18 | 2012-06-18 | Design method based on synchronous dynamic random access memory (SDRAM) satellite-bone storage subfile reading and writing |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210199764.9ACN102779016B (en) | 2012-06-18 | 2012-06-18 | Design method based on synchronous dynamic random access memory (SDRAM) satellite-bone storage subfile reading and writing |
| Publication Number | Publication Date |
|---|---|
| CN102779016A CN102779016A (en) | 2012-11-14 |
| CN102779016Btrue CN102779016B (en) | 2015-06-24 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210199764.9AExpired - Fee RelatedCN102779016B (en) | 2012-06-18 | 2012-06-18 | Design method based on synchronous dynamic random access memory (SDRAM) satellite-bone storage subfile reading and writing |
| Country | Link |
|---|---|
| CN (1) | CN102779016B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102831089B (en)* | 2012-08-09 | 2015-07-08 | 上海卫星工程研究所 | Reading and writing method based on SDRAM (Synchronous Dynamic Random Access Memory) solid-state memory |
| CN107045424B (en)* | 2016-10-31 | 2020-11-20 | 航天东方红卫星有限公司 | A method for time-division multiplexing management of small satellite solid-state memory to read and write files |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1540523A (en)* | 2003-10-30 | 2004-10-27 | 中兴通讯股份有限公司 | Quick method for reading/writing buffer in single task |
| CN102637148A (en)* | 2011-07-08 | 2012-08-15 | 中国科学院计算技术研究所 | DDR SDRAM (double data rate synchronous dynamic random-access memory) based stacked data caching device and method thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7519788B2 (en)* | 2004-06-04 | 2009-04-14 | Micron Technology, Inc. | System and method for an asynchronous data buffer having buffer write and read pointers |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1540523A (en)* | 2003-10-30 | 2004-10-27 | 中兴通讯股份有限公司 | Quick method for reading/writing buffer in single task |
| CN102637148A (en)* | 2011-07-08 | 2012-08-15 | 中国科学院计算技术研究所 | DDR SDRAM (double data rate synchronous dynamic random-access memory) based stacked data caching device and method thereof |
| Publication number | Publication date |
|---|---|
| CN102779016A (en) | 2012-11-14 |
| Publication | Publication Date | Title |
|---|---|---|
| CN104809075B (en) | A kind of solid state record device and method for accessing real-time parallel processing | |
| CN103080896B (en) | Always searched to reduce the time to tape-shaped medium's to access rearrangement | |
| US7136977B2 (en) | Backup acquisition method and disk array apparatus | |
| CN102156738B (en) | Method for processing data blocks, and data block storage equipment and system | |
| CN102682012A (en) | Method and device for reading and writing data in file system | |
| CN102253898B (en) | Memory management method and memory management device of image data | |
| CN105389376B (en) | Fragmentation-free multimedia data storage method and system based on continuous blocks | |
| CN105100716A (en) | Safe memory cell used for network video monitoring and system thereof | |
| CN106341485A (en) | Cloud storage method and device | |
| CN102779016B (en) | Design method based on synchronous dynamic random access memory (SDRAM) satellite-bone storage subfile reading and writing | |
| US20150331613A1 (en) | Media write operation | |
| CN105975401A (en) | Sequential writing and quick recovery system and method of vehicle-mounted disk | |
| US8190834B2 (en) | Process for contiguously streaming data from a content addressed storage system | |
| WO2024149222A1 (en) | Data processing method and apparatus, medium, device, and three-dimensional scanner | |
| CN120104588A (en) | A chip design text storage method and system | |
| US20090240877A1 (en) | Virtual tape device and method for controlling the same | |
| CN105868121B (en) | A kind of information processing method and electronic equipment | |
| CN108647278A (en) | A kind of file management method and system | |
| CN102081920A (en) | Method and device for controlling picture display | |
| CN105426125A (en) | Data storage method and apparatus | |
| CN102831089B (en) | Reading and writing method based on SDRAM (Synchronous Dynamic Random Access Memory) solid-state memory | |
| CN107273051B (en) | The reading/writing method and device of I/O data | |
| CN101526887B (en) | Method for writing data into hard disc, device and system thereof | |
| CN102662854B (en) | A kind of storage means based on the many hard disks of Large Copacity | |
| CN114489515A (en) | Data writing method based on stream storage |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20150624 |