CN104571945A - 一种在吊舱中实现大容量数据记录的方法 - Google Patents

一种在吊舱中实现大容量数据记录的方法 Download PDF

Info

Publication number
CN104571945A
CN104571945A CN201410691789.XA CN201410691789A CN104571945A CN 104571945 A CN104571945 A CN 104571945A CN 201410691789 A CN201410691789 A CN 201410691789A CN 104571945 A CN104571945 A CN 104571945A
Authority
CN
China
Prior art keywords
data
function
speed
buffer circle
pod
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410691789.XA
Other languages
English (en)
Other versions
CN104571945B (zh
Inventor
李国丰
余伏章
陈国平
袁广玉
汪高峰
严菡
王利祥
余奎
徐琳
胡亚昌
张俊
陈亮
谢前进
周龙
徐历春
万兴祥
江涛
谢晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Hongdu Aviation Industry Group Co Ltd
Original Assignee
Jiangxi Hongdu Aviation Industry Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangxi Hongdu Aviation Industry Group Co Ltd filed Critical Jiangxi Hongdu Aviation Industry Group Co Ltd
Priority to CN201410691789.XA priority Critical patent/CN104571945B/zh
Publication of CN104571945A publication Critical patent/CN104571945A/zh
Application granted granted Critical
Publication of CN104571945B publication Critical patent/CN104571945B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

本发明涉及一种在吊舱中实现大容量数据记录的方法,适用于在吊舱实时嵌入式环境下实现大容量数据记录。在该方法中设置了一个操作系统支持的环形缓冲区;在初始化的时候调用库函数为每路高速数据建立一个环形缓冲区;接着在主工作线程中,通过查询、搬移数据函数每个周期去查询高速RS422接口的寄存器状态,存贮寄存器半满将数据导入到环形缓冲区;周期查询环形缓冲区的数据情况,当其状态满足2K,就在主工作线程中调用写电子盘函数,将数据写入到电子盘。

Description

一种在吊舱中实现大容量数据记录的方法
技术领域
本发明涉及一种在吊舱中实现大容量数据记录的方法,适用于在吊舱实时嵌入式环境下实现大容量数据记录。
背景技术
嵌入式系统是随着计算机技术、微处理器技术、电子技术、通信技术、集成电路技术的发展而发展起来的,越来越广泛地运用在各种场合,包括汽车、航天、航空、军事装备等领域。同时,随着技术的发展,flash电子盘的使用也比较广泛,先前只是一般环境中使用,慢慢地也在实时嵌入式环境中使用。目前,飞机上一般都是采用在专门的机载设备中利用电子盘进行数据记录。在机载吊舱上,由于吊舱的实时性要求很高,如果既要完成本身的飞行任务,又要实时记录通讯数据,当数据量较大时,特别是既要记录通讯数据,又要记录图像数据时,原来的方法无法满足实时性要求。所以,目前其他吊舱上都没有进行大容量数据记录。
发明内容
为了解决大容量数据记录的实时性要求,本发明目的在于提供一种吊舱中实现大容量数据记录的方法。
综合各种因素考虑,首先排除利用操作系统提供的文件系统进行数据记录,改为直接访问电子盘的物理地址进行读写,而且使用汇编语言进行读写函数的编写,这是因为利用文件系统需要进行一系列的处理,比如逻辑地址与物理地址的映射转换,这样的时间开销大,在目前的硬件环境是不可能保证系统任务的执行时间。同时,为了满足系统多次加电记录不覆盖数据的要求,将电子盘的物理地址从使用上分成几个等同的分区,每次上电记录到不同的分区上。
为了实现上述目的,本发明采用如下技术方案:
一种在吊舱中实现大容量数据记录的方法,
A)、在该方法中设置了一个操作系统支持的环形缓冲区;
B)、在初始化的时候调用库函数为每路高速数据建立一个环形缓冲区;
C)、接着在主工作线程中,通过查询、搬移数据函数每个周期去查询高速RS422接口的寄存器状态,存贮寄存器半满将数据导入到环形缓冲区;
D)、周期查询环形缓冲区的数据情况,当其状态满足2K,就在主工作线程中调用写电子盘函数,将数据写入到电子盘。
所述环形缓冲区的大小为20K。
本发明的有益效果:
本发明通过直接访问电子盘的物理地址进行读写,使用汇编语言进行读写函数的编写,增加一个操作系统支持的环形缓冲区等方法,发明一种在实时嵌入式环境下实现大容量数据记录的方法,具有实时性高、数据记录准确等特性。
附图说明
图1为本发明的电子盘记录流程图;
图2为本发明程序控制流程图。
具体实施方式
下面结合附图对本发明进行详细描述:
本方案应用的吊舱系统是某型武器系统的一部分,主要功能是实现各个系统之间的传输以及数据记录。该系统包含四个具有各自功能的子系统。其中,中控机是其核心,控制管理系统内部各个子系统之间有序的协调工作,实现GJB289A、低速RS422和高速RS422等硬件接口的工作,并在工作过程中记录这些数据。
中控机主要配置参数如下:
CPU:选用Intel MG80486DX  25~33MHz;
存贮器:配置了Flash存贮器、SRAM存贮器和EEPROM存贮器;
MBI接口:用来实现GJB289A数据总线通信输出,单通道、双余度;
422接口:用来实现低速422接口数据的通信,4路,速率可以通过软件设置,在该系统使用的速率为115.2K;
高速422接口:用来实现高速422接口数据的通信,2路,传输速率不小于530K;
电子盘:用来记录各种数据,容量1G,采用Flash芯片,内置了升温电路。
如图2,该方案在吊舱中实现大容量数据记录的方法:
A)、在该方法中设置了一个操作系统支持的环形缓冲区;
B)、在初始化的时候调用库函数为每路高速数据建立一个环形缓冲区;
C)、接着在主工作线程中,通过查询、搬移数据函数每个周期去查询高速RS422接口的寄存器状态,存贮寄存器半满将数据导入到环形缓冲区;
D)、周期查询环形缓冲区的数据情况,当其状态满足2K,就在主工作线程中调用写电子盘函数,将数据写入到电子盘。
所述环形缓冲区的大小为20K,比如,ppRngBufA=rngCreate(1024*20)。
附图2为程序流程图,在进行设计的时候,需要着重考虑将高速数据记录到电子盘的设计。由于该运行平台为单CPU系统,需要完成逻辑计算、RS422传输、高速数据传输和记录。RS422的传输速率为115.2K,需要传输的字节数为60几个,大约花在这方面的时间为5.874ms;25ms周期任务和40ms的周期任务的逻辑计算等功能的运行时间大约4到5ms,因此用到两路高速数据采集、记录到电子盘的时间不能超过7ms,否则就不能满足系统设计的要求,也可能会影响任务的实时性。
经过试验和使用的测试验证以及完善修改,能满足该系统的要求,能保证系统的实时性。

Claims (2)

1.一种在吊舱中实现大容量数据记录的方法,其特征在于:
A)、在该方法中设置了一个操作系统支持的环形缓冲区;
B)、在初始化的时候调用库函数为每路高速数据建立一个环形缓冲区;
C)、接着在主工作线程中,通过查询、搬移数据函数每个周期去查询高速RS422接口的寄存器状态,存贮寄存器半满将数据导入到环形缓冲区;
D)、周期查询环形缓冲区的数据情况,当其状态满足2K,就在主工作线程中调用写电子盘函数,将数据写入到电子盘。
2.根据权利要求1所述的在吊舱中实现大容量数据记录的方法,其特征在于:所述环形缓冲区的大小为20K。
CN201410691789.XA 2014-11-27 2014-11-27 一种在吊舱中实现大容量数据记录的方法 Active CN104571945B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410691789.XA CN104571945B (zh) 2014-11-27 2014-11-27 一种在吊舱中实现大容量数据记录的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410691789.XA CN104571945B (zh) 2014-11-27 2014-11-27 一种在吊舱中实现大容量数据记录的方法

Publications (2)

Publication Number Publication Date
CN104571945A true CN104571945A (zh) 2015-04-29
CN104571945B CN104571945B (zh) 2017-12-01

Family

ID=53088130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410691789.XA Active CN104571945B (zh) 2014-11-27 2014-11-27 一种在吊舱中实现大容量数据记录的方法

Country Status (1)

Country Link
CN (1) CN104571945B (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348995A (zh) * 2020-11-10 2021-02-09 天津津航计算技术研究所 一种基于上电次数的数据记录器
CN112348994A (zh) * 2020-11-10 2021-02-09 天津津航计算技术研究所 一种基于上电次数的数据记录方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1128890A (zh) * 1994-07-27 1996-08-14 索尼公司 带盖的盒式磁带结构
CN101076163A (zh) * 2006-12-18 2007-11-21 浙江华立通信集团有限公司 Td-scdma/3g/4g终端的dsp固件系统
CN102848050A (zh) * 2011-06-29 2013-01-02 株式会社大亨 电弧焊监视装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1128890A (zh) * 1994-07-27 1996-08-14 索尼公司 带盖的盒式磁带结构
CN101076163A (zh) * 2006-12-18 2007-11-21 浙江华立通信集团有限公司 Td-scdma/3g/4g终端的dsp固件系统
CN102848050A (zh) * 2011-06-29 2013-01-02 株式会社大亨 电弧焊监视装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348995A (zh) * 2020-11-10 2021-02-09 天津津航计算技术研究所 一种基于上电次数的数据记录器
CN112348994A (zh) * 2020-11-10 2021-02-09 天津津航计算技术研究所 一种基于上电次数的数据记录方法

Also Published As

Publication number Publication date
CN104571945B (zh) 2017-12-01

Similar Documents

Publication Publication Date Title
US20200241999A1 (en) Performance monitoring for short-lived functions
CN104461964B (zh) 一种存储装置
US9032156B2 (en) Memory access monitor
US20100262740A1 (en) Multiple command queues having separate interrupts
CN103425612B (zh) 低功耗的皮卫星星载计算机系统
US20150363116A1 (en) Memory controller power management based on latency
CN104317770A (zh) 用于众核处理系统的数据存储结构及数据访问方法
CN106489132A (zh) 读写数据的方法、装置、存储设备和计算机系统
CN104932933A (zh) 一种获取自旋锁的方法及装置
US20160239278A1 (en) Generating a schedule of instructions based on a processor memory tree
EP3846036A1 (en) Matrix storage method, matrix access method, apparatus and electronic device
CN104102549A (zh) 一种实现多线程互斥操作的方法、装置和芯片
CN104991874B (zh) 一种基于scst的多控制器存储设备alua配置方法
CN104459781A (zh) 三维叠前地震数据的随机噪声衰减方法
CN104571945A (zh) 一种在吊舱中实现大容量数据记录的方法
CN104216834A (zh) 一种内存访问的方法、缓冲调度器和内存模块
CN103514140A (zh) 用于实现可重构系统中配置信息多发射的重构控制器
CN111562883B (zh) 固态硬盘的缓存管理系统、方法、装置
CN104050189B (zh) 页面共享处理方法及装置
CN105353982B (zh) 一种基于循环数组的数据访问处理方法及装置
CN105488047A (zh) 元数据读写方法和装置
US8966133B2 (en) Determining a mapping mode for a DMA data transfer
CN109144760B (zh) 用于获取内存状态的方法、装置、系统及介质
CN105205017A (zh) 一种基于pcie ssd的存储控制器
CN109324982B (zh) 一种数据处理方法以及数据处理装置

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant