APP下载

基于总线数据及Simulink热管理软件测试方法

2025-08-10许锦盛张岳黎家业钟灵贵

汽车电器 2025年7期
关键词:总线建模电池

中图分类号:U463.6 文献标识码:A 文章编号:1003-8639(2025)07-0178-0:

TestMethod Based on Bus Data and Simulink Thermal Management Software

Xu Jinsheng,Zhang Yue,Li Jiaye,Zhong Linggui

(AutomotiveEngineering Research Institute,Guangzhou AutomobileGroupCo.,Ltd.,Guangzhou510ooo,China)

【Abstract】Against the backdrop of the developmentof new energyandinteligent connectedvehicles,the importanceof software testing andfault locationof thevehicle thermal management system has become prominent.The article focuses onsoftware unit verificationand integration testing,and proposesa test scheme modeled bythe MBD method based onCAN bus datainthe Simulink environment.Byconstructinga test system including bus tools,CAN communicationconversion,etc.,the upper computer is realized to simulateandaccess thereal vehicle CAN data for white-box testing.Intheverificationofthehuman-computer interactionmodule,thismethodrealizesthe functional integrationanddebugging withtheaidof thebuspaneltol.Intheinvestigationofrealvehiclefaults,thetraditional compilationstepwasomitted,reducingtheproblem troubleshotingtimefrom 2hours to50minutes,effectivelyimproving the efficiency and quality of software iteration.

【Key words】 thermal management software;CAN bus;MBD method;software testing;white-box verification;faultlocation

0 引言

随着新能源汽车的普及,整车热管理系统的功能需求日益复杂。其除了需要满足乘员舱冷热管理,还需肩负起电池系统热管理的需求,在整车中的作用俞发重要。同时,在智能网联汽车的发展背景下,热管理系统的控制功能和逻辑大幅增加,如何对热管理软件进行系统测试,以及在软件出现问题后快速高效地定位具体原因,成为亟待解决的重要问题。

目前,乘用车主机厂软件开发普遍采用V字开发流程。整个流程为:系统需求分析 $$ 系统架构设计 $$ 软件需求分析 $$ 软件架构设计 $$ 软件详细设计和单元构建 $$ 软件单元验证 $$ 软件集成和集成测试$$ 软件合格性测试 $$ 系统集成和系统合格性测试。综合以往研究可知,在软件测试领域,行业内众多专家已在软件合格性测试以及系统集成与合格性测试中提出了大量优秀解决方案。例如,在HIL机柜中通过Simulink建模并结合Python脚本,可实现测试的自动化,降低测试成本;利用状态机搭建测试流程,通过离散输入量,能减少测试数量并增加测试覆盖率等。

基于上述研究现状,本文将重点从软件单元验证和集成测试的角度,探索提升开发效率的方法。采用基于模型的设计(Model-BasedDesign,MBD)进行软件建模,同时利用CAN总线输入建立测试模型,这样无需依赖控制器和调试器等硬件环境,通过上位机仿真连接实车CAN总线数据,即可进行软件白盒仿真检验,当出现问题时,也能快速定位软件内部原因并迭代修复。……

登录APP查看全文

猜你喜欢

总线建模电池
我国化学建模能力实证研究的现状分析
电池
借助模型,发散思维
汽车通信数据的采集及解析方法研究
基于等效电路模型的SOC估算方法研究
AI数学建模思想在初中数学中的应用
基于域控制器的网关及车身控制功能开发
航空动力电池的未来发展方向
平台无关模型可视化建模的研究与实现