一种改进差分算法的远程升级系统设计
Design of a Remote Upgrade System with Improved Differential Algorithm
罗楚江 1滕宪斌 1王明峰 1李聚保1
作者信息
摘要
为实现对轮机模拟器控制板卡的固件升级,针对整包升级传输文件大和原始Bsdiff算法占用内存大的问题,设计了一种节约内存的改进Bsdiff算法,并采用了即时写入即时释放和分段多次读写的方式,设置了固定内存空间,完成差分升级.搭建了云服务器,采用HTTP协议,实现了固件程序的自动升级.最终通过实验验证了基于改进差分算法的轮机模拟器控制板卡自动升级方案的可行性,可实现控制板卡的批量自动升级.
Abstract
In order to realize the firmware upgrade of the marine engine simulator control board,a memory-saving im-proved Bsdiff algorithm is designed to solve the problems of large whole-package upgrade transmission files and large memory occupied by the original Bsdiff algorithm,and adopted instant writing and instant release and partitioning.By read-ing and writing segments multiple times,a fixed memory space is set to complete differential upgrades.A cloud server is built,using the HTTP protocol to realize automatic upgrade of the firmware program.Finally,the feasibility of the automatic upgrade scheme of the marine engine simulator control board based on the improved differential algorithm is verified through experiments,which can realize batch automatic upgrade of the control board.
关键词
差分升级/改进型Bsdiff算法/远程自动升级/轮机模拟器Key words
differential upgrade/improved Bsdiff algorithm/remote automatic upgrade/marine engine simulator引用本文复制引用
基金项目
广州市教学成果培育项目(2021)(J20220203)
广州市教学质量与教学改革工程项目(2023)(J230026)
出版年
2024