高级检索

基于CAN通信的控制器板卡程序升级方案设计

Design of Controller Board Program Upgrade Scheme Based on CAN CommunicationCHEN Jian, MIAO Xin, GU Shaopeng, LI Yanmin(National Key Laboratory of High-Speed Maglev Transportation Technology, CRRC Qingdao Sifang Co., Ltd., Qingdao, Shandong 266111, China)

  • 摘要: 为实现常导高速磁浮列车悬浮导向制动控制器板卡程序可靠升级,设计了bootloader程序和应用程序。该方案通过在应用程序中增加接收下载请求。然后将程序升级标志位写入flash中。待板卡再次上电之后,利用bootloader读取固定地址处的数据,如果该标志为程序升级则进入程序升级模式,通过bootloader与上位机的通信,将应用程序写入flash固定地址处,通信协议中增加握手机制,错误重传机制,校验机制。否则程序进入应用程序。采用该方案,能够取代传统的通过JTAG仿真接口对flash存储器进行应用程序的更新,这给嵌入式应用软件的更新维护升级带来很多方便,本文提出的基于CAN总线的应用程序更新方法,在数量众多的悬浮导向制动控制器板卡程序升级时,大大节省了人力物力,降低了嵌入式终端设备程序的升级维护成本。

     

    Abstract: To achieve reliable program upgrades for the suspension, guidance, and braking controller boards of normal-conducting high-speed maglev trains, a bootloader program and an application program were designed. This solution involves adding a download request reception function in the application program, followed by writing a program upgrade flag into the flash memory. Upon the next power-up, the bootloader reads the data at a fixed address. If the flag indicates a program upgrade, the system enters the upgrade mode. Through communication between the bootloader and the host computer, the application program is written to a fixed address in the flash memory. The communication protocol incorporates handshake mechanisms, error retransmission mechanisms, and verification mechanisms. Otherwise, the system proceeds to the application program. This scheme replaces the traditional method of updating the flash memory"s application program via the JTAG emulation interface, significantly simplifying the maintenance and upgrading of embedded application software. The proposed CAN bus-based application program update method greatly reduces labor and material costs when upgrading programs on numerous suspension, guidance, and braking controller boards, thereby lowering the upgrade and maintenance costs for embedded terminal device programs.

     

/

返回文章
返回