摘要
一方面,随着电控单元在汽车零部件中所占的比重日益增长和ISO26262汽车功能安全标准的推广,汽车厂商对汽车软件的可靠性和安全性要求越来越高。另一方面,利用Mathworks公司的Matlab/Simulink/Stateflow等工具进行基于模型的设计越来越普遍,但由于高昂的费用和测试平台的复杂性,使得大部分公司并没有充分重视测试环节。为了解决汽车厂商和供应商的矛盾,笔者提出了一种基于模型开发的测试自动化解决方案,该方案不但可以测试模型的正确性,还可以测试模型生成代码和模型的一致性,而且能在开发前期,就把模型生成的代码下载到目标板(只需要项目所用微控制器搭建的最小系统)或硬件仿真器中进行测试,测试完成后,自动生成测试报告,既保证了软件质量,轻松满足了客户需求,又可以提高开发效率、降低成本。
On the one hand,with the increasing proportion of electronic control units in auto parts,and the promotion of ISO26262 automotive functional safety standards,automobile manufacturers are increasingly demanding the reliability and safety of automotive software.On the other hand,the use of Mathworks company Matlab/Simulink/Stateflow and other tools for model-based design more and more common,but because of the high cost and complexity of the test platform,making most of the company did not pay enough attention to the test.In order to solve the contradiction between automobile manufacturers and suppliers,the author proposes a test automation solution based on model development.The scheme can not only test the correctness of the model,but also test the consistency of code generation and model.In the early days,the code generated by the model can be downloaded to the target board(only the smallest system built by the microcontroller used by the project)or the hardware emulator.After the test is completed,the test report is automatically generated,which ensures the quality of the software,meets customer needs,but also can improve development efficiency and reduce costs.
作者
李妙峰
Li Miaofeng(Takada(Shanghai)Automobile Safety System R&D Co.,Ltd.,Shanghai 201707,China)
出处
《信息与电脑》
2017年第6期53-55,共3页
Information & Computer
关键词
模型开发
自动化测试
模型在环
软件在环
处理器在环
model development
automated testing
model in the ring
software on the ring
processor in the loop