基于WiFi的STM32固件远程升级系统

陈以安, 李鹏, 车慢行

集成电路与嵌入式系统 ›› 2022, Vol. 22 ›› Issue (7) : 46-50.

PDF(1134 KB)
PDF(1134 KB)
集成电路与嵌入式系统 ›› 2022, Vol. 22 ›› Issue (7) : 46-50.
新器件新技术

基于WiFi的STM32固件远程升级系统

  • 陈以安, 李鹏, 车慢行
作者信息 +

STM32 Firmware Remote Upgrade System Based on WiFi

  • Chen Yian, Li Peng, Che Manxing
Author information +
文章历史 +

摘要

针对嵌入式设备投入实际应用后需对应用程序算法改进、BUG修补的问题,为了提高软件更新的简便性、降低维护难度,设计了一种基于WiFi的自动远程升级系统。在该系统中,以STM32F4为核心控制器,对其内部Flash存储空间进行有效分配,设计IAP功能,利用WiFi模块接入网络使用TCP协议传输数据,STM32F4接收到远程服务器信息后进行分析,排除各种异常情况,将完全正确的应用程序写入Flash,实现嵌入式软件的远程升级。本文给出了具体的系统设计、程序流程及部分核心代码,实验验证了系统的可行性,可为嵌入式智能设备的功能完善提供参考。

Abstract

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.

关键词

WiFi / STM32F4 / IAP / 远程升级

Key words

WiFi / STM32F4 / IAP / remote program upgrade

引用本文

导出引用
陈以安, 李鹏, 车慢行. 基于WiFi的STM32固件远程升级系统[J]. 集成电路与嵌入式系统. 2022, 22(7): 46-50
Chen Yian, Li Peng, Che Manxing. STM32 Firmware Remote Upgrade System Based on WiFi[J]. Integrated Circuits and Embedded Systems. 2022, 22(7): 46-50
中图分类号: TP393.1   

参考文献

[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.

PDF(1134 KB)

Accesses

Citation

Detail

段落导航
相关文章

/