摘要
针对传统的数管软件测试环境硬件设备依赖性强、地检设备多、监视点分散和软件内部状态跟踪困难等问题,设计和构建了基于QEMU模拟器的数管软件虚拟测试环境;该环境基于动态二进制翻译技术模拟星载处理器,实现在异构平台下运行星载数管软件,同时增加指令跟踪记录功能,帮助软件异常问题定位;融合外围设备驱动和终端应用功能,对数据流进行仿真,并采用统一的格式集中管理数据,进行分层处理和实时差异比对,以日志形式记录数据变化,实现对系统状态的单窗口监视;在高分四号卫星等型号的应用表明,文章设计的虚拟测试环境能够模拟数管软件运行环境,提供更多的调试手段,使软件测试工作提前,促进了软硬件协同开发,提高了星载软件的开发测试效率。
A QEMU-based virtual test platform for OBDH software was proposed to deal with the problems of traditional test environment,including hardware dependence,too many types of equipment,monitoring point dispersion and lack of software internal watching.The virtual cpu based on dynamic binary translation was emulated to run onboard software in heterogeneous platform,and the machine codes were recorded to help software debug;combined with the chip driver and application,the device was simulated to offer the information flow transmission,and the system log was record in order to achieve a single window monitoring by hierarchical processing and real-time difference comparing in unified format.The virtual environment was used in GF-4 project,the result showed that it can emulate the running environment of onboard software,provide more debugging means and simulate the system data stream,software test can be carried out before the hardware is put into production,so that the software and hardware can be coordinated developed,and the efficiency can be improved.
作者
韦涌泉
张红军
董振辉
朱剑冰
Wei Yongquan;Zhang Hongjun;Dong Zhenhui;Zhu Jianbing(Beijing Institute of Spacecraft System Engineering,Beijing 100094,China)
出处
《计算机测量与控制》
2018年第4期66-69,共4页
Computer Measurement &Control
关键词
软件测试
星载软件
模拟器
测试环境
software test
onboard software
emulator
test environment