Aiming at the problem of application algorithm improvement and BUG patching after embedded devices are put into practical application,in order to improve the ease of software update and reduce the difficulty of maintenance as much as possible,a WiFi-based automatic remote upgrade system is proposed.In this system,STM32F4 is used as the core controller to effectively allocate its internal Flash storage space,design the IAP function,use the WiFi module to access the network and use the TCP protocol to transmit data. After the STM32F4 receives the remote server information,it analyzes and excludes each in this abnormal situation,the completely correct application program is written into Flash to realize the remote upgrade of the embedded software.This article gives the specific system design,program flow and part of the core code.The experiment verifies that the proposed system has good feasibility and can provide a reference for the functional improvement of embedded smart devices.
Key words
WiFi /
STM32F4 /
IAP /
remote program upgrade
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
References
[1] 贺翔,陈崇森.基于WiFi的车载终端远程软件升级方法[J].单片机与嵌入式系统应用,2014(5):1-4.
[2] 朱孟江,聂云杰.嵌入式终端 IAP 断点续传的研究与实现[J].单片机与嵌入式系统应用,2014(1):7-9.
[3] 蒋存波,焦阳.基于STM32处理器的WSN 节点固件在线系统升级方法[J].计算机应用与软件,2016,33(5):222-225.
[4] 韩兆渊,王晓东,黄国勇.基于IAP 的北斗终端程序远程升级技术的研究[J].计算机与数字工程,2017,45(5):844-848.
[5] 黄彦勃,鲁兴举,郭鸿武.基于多次加载方案的嵌入式飞控软件在线升级方法[J].无线电工程,2016,46(12):73-77.
[6] 郭帅,李军伟,高松.多节点软件触发式Bootloader 设计与实现[J].现代电子技术,2017,40(18):35-39.
[7] 吴瑞娜,张建奇,梁喜军.基于 STM32的GPRS 远程在线升级系统设计与实现[J].自动化技术与应用,2015,34(12):34-37.
[8] 于亚运,宋建成,田慕琴,等.基于 IAP 的支架控制系统程序在线升级方案[J].工矿自动化,2016,42(2):12-15.
[9] 雷卫延,敖振浪,周钦强.基于STM32的在应用编程(IAP)开发[J].电子测量技术,2015,35(5):62-66.
[10] 周振奇.单片机IAP在应用软件升级的方法研究[J].电子技术,2015,7(2):21-23.
[11] 张岩松,葛俊锋,叶林,等.基于STM32 的程序远程升级设计与实现[J].电子设计工程,2016,24(1):131-134.
[12] 曹欲晓,韩冬,徐金宝.一种基于 CPUID 和 AES算法的STM32 固件升级方案[J].电子技术应用,2015,41(3):28-30.
[13] 杭万里,张荣.嵌入式设备远程升级方案设计[J].电子设计工程,2018(14):167-171.