重庆理工大学学报(自然科学) ›› 2023, Vol. 37 ›› Issue (5): 12-18.

• 车辆工程 • 上一篇    下一篇

纯电动汽车驱动控制策略快速集成研究

沈峘 ,周福亮,毛建国,陈 伟,闫志伟   

  1. 南京航空航天大学 能源与动力学院,南京 21001
  • 出版日期:2023-06-21 发布日期:2023-06-21
  • 作者简介:沈峘,男,博士,讲师,主要从事智能汽车视觉感知/运动控制技术研究,Email:huan_shen@nuaa.edu.cn;通信作 者 陈伟,男,博士,教授,主要从事结构强度与振动、航空活塞发动机技术研究,Email:chenwei@nuaa.edu.com。

Research on rapid integration of drive control strategies for pure electric vehicles

  • Online:2023-06-21 Published:2023-06-21

摘要: 为解决汽车电控系统开发过程中应用层代码和底层驱动代码需要手动集成的问题, 以纯电动汽车控制器为研究对象,利用 Matlab/Simulink设计应用层控制策略,包括整车上下电、钥 匙信号解析、挡位管理、扭矩解析、扭矩仲裁。底层驱动利用 STM32MAT/Target工具包和 STM32Cubemx完成配置,配置好的底层驱动能以图形化的模块拖拽到 Simulink界面,从而实现与 应用层控制策略在同一平台上的搭建。利用 Simulink自动代码生成功能一键生成所有嵌入式 C 代码,并以 STM32F407ZGTE单片机为硬件平台,选取几种典型的驾驶工况进行实时算法验证。结 果表明:生成的代码在目标系统中运行良好,可按照设计逻辑运行。与手动集成方式相比,这种全 自动的开发方式减少了人工输入错误,提升了开发效率,加快了从设计到实现的速度。

关键词: 电控系统, 底层软件, 纯电动汽车, STM32Cubemx, 自动代码生成

Abstract: In order to solve the problem that application layer codes and underlying driver codes need to be manually integrated in the development process of the automotive electronic control system, this paper uses Matlab/Simulink to design application layer control strategies for pure electric vehicle controllers as the research objects, including vehicle power-on and power-off, key signal analysis, gear management, torque analysis and torque arbitration. The underlying driver is firstly configured by STM32-MAT/Target toolkit and STM32Cubemx, and then the configured underlying driver can be dragged into the Simulink interface as a graphical module so as to be built on the same platform as the application layer control strategies do. Finally, all the embedded C codes are generated with one key by using Simulink automatic code generation, and the STM32F407ZGTE micro-controller is used as the hardware platform to select several typical driving conditions for real-time algorithm verification. The results show that the generated codes work well in the target system and can run according to the designed logic. Compared with manual integration, this fully automated development method reduces manual input errors, improves development efficiency and speeds up the entire process from design to implementation.

中图分类号: 

  • U469.72