本文设计了一种适合资源紧凑型嵌入式设备的固件升级策略,使用文件差分和LZO压缩算法生成升级包,将嵌入式设备存储空间划分为BootLoader区域和应用程序区域,并在BootLoader中实现解压缩及解差分,以完成应用程序的升级。最终在STM32平台上进行实验,结果表明在升级过程中,在减少数据传输量的同时还降低了嵌入式设备的内存使用率。
Abstract
In the paper,a firmware update strategy suitable for resource compact embedded devices is designed,which uses file difference and LZO compression algorithm to generate update packages,divides the storage space into BootLoader areas and application areas,realizes decompression and differential solution in BootLoader,accomplishes update of application.Finally,the experiment results on STM32 platform show that this update strategy can reduce the amount of data transmission and reduce the memory utilization of embedded devices.
关键词
嵌入式设备 /
LZO /
文件差分
Key words
embedded device /
LZO /
file difference
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 张玢,孟开元,田泽.嵌入式系统定义探讨[J].单片机与嵌入式系统应用,2011,11(1):6-8.
[2] 李权,鄢萍,贺晓辉.高可靠性的嵌入式软件现场更新方法[J].计算机应用,2010,30(8):2228-2231.
[3] 阙凡博.基于stm32的程序远程升级设计[J].仪器仪表用户,2013,1(5):90-92.
[4] 方兵兵.基于STM32的嵌入式软件远程升级研究[D].宁波:宁波大学,2017.
[5] Percival C.Naive Differences of Executable Code[J].FreeBSD Portsnap-What (it is),Why (it was written),and.,2003.
[6] 李刚.基于NB-loT的校园寝室智能锁控制系统设计与实现[D].杭州:浙江理工大学,2020.
[7] 李玉爽,刘东明,朱爱玲.基于LZO算法的嵌入式高速无线数据采集系统[J].电子测量技术,2011,34(7):67-70.
[8] 王松,房利国,韩炼冰,等.一种快速解压的无损压缩算法[J].通信技术,2020,53(5):1121-1126.
[9] 包晓安,李刚,文艺霏,等.基于压缩和差分算法的嵌入式平台远程更新设计与分析[J].浙江理工大学学报(自然科学版),2020,43(4):535-541.
基金
*浙江省科技厅中央引导地方科技发展基金项目(2021ZY1026)。