箭载飞控软件系统最差情况执行时间测试研究
2016-05-19姚佳瑜
姚佳瑜



摘要:为了更加准确地完成嵌入式箭载计算机飞行控制软件系统最差情况执行时间的自动化测试工作,根据软件的高实时性特点,结合静态分析和动态测量的优点,提出了基于RapiTime测试工具及应用RTBx硬件的测试解决方案,构建了嵌入式箭载计算机飞行控制软件系统最差情况执行时间的测试过程,并将测试结果与其他方法进行比较,通过实验验证了所提方法的有效性,为提升软件的性能及可靠性提供依据。
关键词:嵌入式软件测试;系统最差情况执行时间;软件插桩;动态测试;基于测量的时间分析方法
中图分类号:TP302 文献标识码:A 文章编号:1009-3044(2016)07-0087-03
Investigation on the Testing of Worst-Case Execution Time of the Rocket Flight-Control Software
YAO Jia-yu
(Shanghai Aerospace Electronic Technology Institute, Shanghai 201109, China)
Abstract: To accomplish the automatic test of the system's worst-case execution time, according to the real time performance of the flight control software based on embedded system, a test solution based on RapiTime testing tool and application RTBx hardware is proposed. The test procedure of the worst-case execution time of the software system for the flight control software system is constructed. The result provides the basis for improving the performance and reliability of the software.
Key words: testing of embedded system; worst-case execution time; software plug-in; dynamic testing; the analytical method based on measured execution time
嵌入式箭载计算机飞行控制软件(以下简称飞行控制软件)作为火箭控制系统中的核心组成部分,是一个复杂的软件。由于其高实时性要求,就要求其在规定时间内(毫秒级)完成任务处理,要求系统严格按照一定的时序进行处理。这就要求对此软件中关键模块进行系统最差情况执行时间的测试。
1 飞行控制软件系统最差情况执行时间测试的需求与困难
在实时系统中,确保系统执行时间的正确性是非常重要的。实时系统执行时间的要求相对于非实时系统来说有明显的不同:非实时系统的时限是柔性灵活的,可以容忍偶然的超时错误,超时造成的后果并不严重,仅仅是轻微地降低了系统的吞吐量;而实时系统有刚性的、不可改变的时间限制,它不允许任何超出时限的错误,超时错误会带来损害甚至导致系统失败、或者导致系统不能实现它的预期目标[1]。……
