Weichai电力为内部高压共轨柴油发动机开发了ECU软件

挑战

建立生产引擎控制和嵌入式软件团队,建立内部开发能力,并在36个月内完成第一个生产计划

Use Model-Based Design to design, implement, and test control strategies and ECU software for a common-rail diesel engine while working with MathWorks consultants to develop the team’s software development skills and expertise

结果

  • Development time cut by 40%
  • 集成测试时间减少了一半
  • 60%的设计重复使用

“与我们使用手中编码的过去的经验相比,基于模型的设计使我们能够将劳动力成本降低30%,将测试成本降低20%,并提高生产率超过30%。我们在建立内部软件开发团队的同时完成了ECU开发。“

大陵李,潍柴力量
潍柴电力高压共轨柴油发动机。

Weichai Power is a global leader in heavy-duty engines. For many years, Weichai purchased engine control units (ECUs) and fuel systems for its diesel engines from suppliers. The company made a strategic plan to develop its own control strategy and ECU software for high-pressure common-rail diesel engines. The reasons for in-house development were to increase Weichai Power’s competitiveness and its ability to innovate by lowering costs, reusing core functionality, and enabling rapid development of engine control strategies based on customer requirements.

潍柴电力建立了一个控制策略和嵌入式软件团队,采用了基于模型的设计来开发共轨柴油ECU软件。

“基于模型的设计 - 具有其图形设计和自动代码生成 - 减少软件错误,提高了软件可维护性和重用,并降低了软件开发的难度,”潍柴电力电子控制部主任Daming Li表示。“基于模型的设计使我们能够在最短的时间内建立一个由发动机和控制专家组成的开发团队,并大大降低开发成本。”

挑战

While Weichai Power regularly conducts engine control research and prototyping, the company had not previously developed embedded controls and software for a large-scale, production ECU.

Weichai Power sought a methodology and development tools that are widely used in the automotive industry. At the same time, they wanted to reduce the learning curve associated with introducing new tools. They needed to recruit engineers and train them to develop and test ECU software for production before China’s National Emission Standard IV took effect.

Weichai Power adopted Model-Based Design with MATLAB®和模拟金宝app®设计和实施共轨柴油发动机ECU软件。他们建立了一个生产控制和软件团队,并在工具中培训了新工程师。该公司还与Mathworks Consulting合作,建立了目标的快速原型功能,使潍柴集团公司和客户能够合作。

Working from system requirements, Weichai Power engineers developed an engine controller model in Simulink and Stateflow®。它们使用StateFlow为发动机操作模式控制,轨道压力控制和诊断程序进行模型状态转换逻辑。

During model development, they used the Model Advisor in Simulink to check compliance with modeling standards adapted from MathWorks Automotive Advisory Board (MAAB) guidelines.

使用Simu金宝applink Requirement™Tem将文本要求链接到Simulink中的模型元素,实现了确保可追溯性的要求。

In Simulink, the team created a plant model of the vehicle, after-treatment systems, and engine, including fuel, torque, intake, and exhaust subsystems. To verify the control design, they ran closed-loop simulations of the control and plant models.

它们使用Simulink Design Verifier™创建金宝app了测试向量。与Simulink 金宝appCoverage™和Simulink Check™一起使用这些测试向量使团队能够在其模型中识别死亡逻辑并实现完整的模型覆盖范围。

使用固定点设计器™,工程师通过在仿真期间记录最小和最大数据值并应用用于缩放定点数据类型的定点设计器建议,将浮点模型转换为固定点。

After comparing the floating-point and fixed-point model simulation results to verify the conversion, the team generated C code from the control model using Embedded Coder®

在Simulink中工金宝app作,他们对ETAS上的PC和硬件循环测试执行了循环软件测试®PT-Labcar模拟器。

The team generated more than 340,000 effective lines of code for the production ECU with Embedded Coder. The generated code comprised 100% of the application software; 85% of the CAN application layer and diagnostic routines were also generated from models.

在MATLAB工作,该团队开发了车辆驱动循环软件,它们在初始生产ECU测试期间用于数据分析。

共轨柴油机ECU正在生产重型卡车,工程机械和发电设备上。潍柴电力计划重用ECU设计轻型柴油发动机。

结果

  • Development time cut by 40%。“我们在36个月内完成了从36个月的划痕的开发和核实,比我们计划的速度快40%,”李说。“通过MathWorks顾问的基于模型的设计和支持,我们的金宝app工程师的培训时间急剧下降。此外,使用嵌入式编码器生成Misra®- 来自我们的Simulink模型的替换代码显着缩金宝app短了实现质量软件所需的时间。“

  • 集成测试时间减少了一半。“Continuous testing via Simulink simulations throughout the development phase enabled us to detect 60–70% of bugs before integration testing,” Li says. “As a result, our integration testing time was reduced by about 50%.”

  • 60%的设计重复使用。“我们目前正在为压缩的天然气引擎开发ECU,我们从我们的初始项目中重复使用了大约60%的模型,”李说。“这种重用导致新ECU的开发时间减少了50%。”