吉林大学学报(信息科学版) ›› 2015, Vol. 33 ›› Issue (3): 286-291.

• 论文 • 上一篇    下一篇

无人机载数据记录仪软件的实时性分析与优化

高思远1,2, 王延东1, 张宏巍1   

  1. 1. 中国科学院 长春光学精密机械与物理研究所, 长春 130033; 2. 中国科学院大学, 北京 100039
  • 收稿日期:2014-07-10 出版日期:2015-05-23 发布日期:2015-07-25
  • 作者简介:高思远(1983—), 男, 吉林柳河人, 长春光学精密机械与物理研究所助理研究员, 主要从事嵌入式系统研究, (Tel)86-13504335439(E-mail)gaosiyuan2008@aliyun.com。
  • 基金资助:

    中国科学院知识创新工程国防科技创新重要方向基金资助项目(YYYJ-1122)

Analysis and Optimization of Real-Time Software in Data Recorder Based on UAV

GAO Siyuan1,2, WANG Yandong1, ZHANG Hongwei1   

  1. 1. Changchun Institute of Optics, Fine Mechanics and Physics, Chinese Academy of Sciences, Changchun 130033, China;2. University of Chinese Academy of Sciences, Beijing 100039, China
  • Received:2014-07-10 Online:2015-05-23 Published:2015-07-25

摘要:

为了给飞行安全、 维护管理以及训练提供重要数据保障, 设计了无人机载数据记录仪, 对该记录仪软件的实时性进行了研究。对影响数据记录仪软件实时性的因素进行分析, 根据所需记录数据的帧长度及中断频率得到数据记录仪对中断响应延时的要求; 利用软件设置GPO(General Purpose Output)翻转, 结合示波器测得存储单元在不同寻址方式下的响应时间延时; 再根据寻址响应延时及乒乓缓存深度关系得到最优记录模式。通过搭建测试平台对优化前后的数据记录仪软件进行测试。结果表明, 优化后的数据记录仪最短中断响应时间间隔为56 μs。该数据记录仪能实时记录所有中断源数据, 丢帧率为0, 满足无人机对数据记录仪的高实时性要求。

关键词: 数据记录仪, 中断响应延时, 实时性, 乒乓缓存

Abstract:

In order to provide important data protection for flight safety, flight maintenance and flight training, a data recorder is designed and its embedded software is investigated. First, analyze the key factors which influence the real-time data recorder software and figure out the interrupt response delay requirements according to the records of frame length data and the interrupt frequency. Then measure the interrupt response delay under different addressing modes by use of software GPO(General Purpose Output) and oscilloscope. Finally optimize the addressing recording mode according to the relationship between delay and ping-pong buffer depth. A platform is built to test the data recorder software. Experimental results indicate that the optimized software has shorter interrupt response time interval than non-optimized one. The shortest interval can reach 56 microseconds. The recorder can record all the interrupt source data with no missing data. It can satisfy the system requirements of real time and rapid speed.

Key words: data recorder, interrupt response delay, real time, ping-pong buffer

中图分类号: 

  • TP399