摘 要: 统一诊断协议UDS是诊断服务的标准化规范,控制器ECU是电子控制单元。针对车载ECU在使用过程 中,传统的控制器ECU应用软件升级方案比较烦琐,需要将ECU拆卸下来在进行升级。本文以MPC5634M单片机作为 控制器,基于UDS协议设计了一种ECU应用软件在线升级方案。Bootloader是ECU上电后首先运行的软件程序,CAN 是一种串行通信。在CodeWarrior集成开发环境下,进行MPC5634M单片机Bootloader底层驱动开发,在VS平台下进行 上位机设计,通过周立功USB转CAN,实现上位机和下位机CAN通信,并对ECU在线升级功能进行验证。实验结果表 明:此设计通过CAN总线能稳定可靠的进行ECU在线系统升级,解决了传统控制器ECU拆卸下来在进行应用程序升级 的烦琐问题,达到了应用软件升级方便的设计需求。 |
关键词: MPC5634M;UDS协议;在线升级 |
中图分类号: TP311.52
文献标识码: A
|
|
Design of Online Updating System for Controllers based on Uni ed Diagnostic Protocol |
MA Hongwei, WU Changshui
|
( School of Mechanical and Automotive Engineering, Shanghai University of Engineering Science, Shanghai 201620, China)
1007224517@qq.com; wuchangshui@sues.edu.cn
|
Abstract: The uni ed diagnostic protocol (UDS) is the standard speci cation for diagnostic services, and the controller ECU is the electronic control unit. The current updating scheme for the traditional controller ECU (Electronic Control Unit) application is so complicated that it should be dismantled for updating. In order to solve the above problem, a new scheme for online updating the ECU application is designed based on UDS protocol, using MPC5634M single-chip microcomputer as the controller. Bootloader is the first software program to run after ECU is powered on, and CAN (Controller Area Network) is a kind of serial communication. Under the CodeWarrior integrated development environment, the MPC5634M single-chip Bootloader bottom-layer driver development is carried out, and the host computer is designed on the Visual Studio platform. Through transferring Zhou Ligong USB to CAN (i.e, a product provided by Zhou Ligong Company), the communications between the host computer and the slave computer CAN is realized, and the ECU online updating function is veri ed. The results of the experiment show that this newly-designed scheme enables the ECU online system to update stably through the CAN bus, which meets the design requirements of convenient application updating and solve the problem of the existing scheme. |
Keywords: MPC5634M; UDS protocol; online updating |