欢迎访问《汽车安全与节能学报》,

汽车安全与节能学报 ›› 2023, Vol. 14 ›› Issue (3): 329-337.DOI: 10.3969/j.issn.1674-8484.2023.03.008

• 智能驾驶与智慧交通 • 上一篇    下一篇

基于改进Bsdiff算法的车载诊断系统远程升级系统

钱枫(), 易齐(), 祝能(), 王洁   

  1. 武汉科技大学,武汉 430000,中国
  • 收稿日期:2022-11-11 修回日期:2023-03-30 出版日期:2023-06-30 发布日期:2023-06-30
  • 通讯作者: *祝能,讲师。E-mail:znqc@wust.edu.cn
  • 作者简介:钱枫(1983—),男(汉),湖北,副教授。E-mail:feng.qian@wust.edu.cn
    易齐(1999—),男(汉),湖北,硕士研究生。E-mail:1820762465@qq.com
  • 基金资助:
    湖北省自然科学基金青年项目(2022CFB730)

Remote upgrade system for the on-board diagnostic system based on an improved Bsdiff algorithm

QIAN Feng(), YI Qi(), ZHU Neng(), WANG Jie   

  1. Wuhan University of Science and Technology, Wuhan 430000, China
  • Received:2022-11-11 Revised:2023-03-30 Online:2023-06-30 Published:2023-06-30

摘要:

设计了一种基于改进Bsdiff算法的车载诊断(OBD)系统远程升级系统,以便在OBD终端远程升级时,缩短耗时,减低功耗,固件升级稳定,操作简便,降低成本。该系统优化了Bsdiff算法生成差分文件时差分区域存在冗余零值的问题,并采用多线程机制,来提高带宽利用率;采用动态调整闪存分区的方式,对闪存分区进行了优化设计。通过搭建的测试环境,进行全量升级和差分升级对比测试。结果表明:相较于全量远程升级方式,该系统在文件大小性能指标上提升了81.2%,在文件编译耗时性能指标上提升了62.5%。从而,本系统提高了闪存空间的利用率,减少了固件更新所需时间。

关键词: 汽车主动安全, 车载诊断(OBD)系统, 远程升级, Bsdiff算法, 闪存分区, 固件更新

Abstract:

A remote upgrade system was designed for On-board Diagnostic (OBD) System based on an improved Bsdiff algorithm to shorten time consumption, minimize power consumption and stable firmware upgrade with easier operation and less cost in the OBD terminal remote upgrade. The system optimized redundant zero values in the differential region when the Bsdiff algorithm generated differential files. Bandwidth utilization was enhanced by adopting a multi-threading mechanism. The design of flash memory partitioning was optimized by adjusting flash memory partitioning in a dynamic manner. Comparison tests were conducted between full upgrade and differential upgrade in a built test environment. The results show that the system rises of 81.2% in the file size performance metrics with rising of 62.5% in the file compilation time consumption performance metrics, compared to the full remote upgrade approach. Therefore, this system improves the flash space utilization with reducing the time required for firmware updates.

Key words: automotive active safety, on-board diagnostics (OBD), remote upgrade, Bsdiff algorithm, flash memory partition, firmware update

中图分类号: