摘 要:嵌入式产品投入市场后,由于需求的改进或者应用程序BUG 的修补,仍需要对产品上的应用程序进行维护、更新,但工程师到现场更新应用程序比较麻烦,嵌入式软件的远程在线升级功能可以使工程师不用亲临现场,直接将编译好的程序通过网络传输给产品,产品上的无线模块接收到应用软件程序包之后自动保存到程序区,由此实现应用程序的远程更新。本课题重点 研究和实现了STM32 的应用程序远程升级功能模块的方案,主控板通过无线模块与服务器端连接,当主控板运行应用程序时,服务器端可以查看主控板当前的应用软件状态,并向主控板发送升级请求,主控板接受请求后自动进入引导升级程序,接收来自服务器端的应用程序包,完成应用程序的更新。
关键词:远程升级;网络传输;固件更新
中图分类号:TP368.1;TN929.532 文献标识码:A 文章编号:2096-4706(2019)23-0055-03
STM32 Firmware Remote Upgrade System Based on GPRS
NIU Junhao,ZHANG Shaozhuang,FENG Yikai,QIN Xiaomei,MENG Yuanjian
(Guilin University of Electronic Technology,Guilin 541004,China)
Abstract:After the embedded product is put into the market,due to the improvement of the requirement or the repair of the application program BUG,the application program on the product needs to be maintained and updated. But it’s hard for engineers to update the application on site,the remote on-line upgrade function of the embedded software can enable the engineer to transmit the compiled program directly to the product through the network without being on-site,and the wireless module on the product is automatically saved to the program area after the application software package is received,thereby realizing the remote update of the application program. This project focuses on the research and implementation of the STM32 application remote upgrade function module. The main control board is connected with the server end through the wireless module,and when the main control board runs the application program,the server side can view the current application software state of the main control board,and sends an upgrade request to the main control board,the master control board automatically enters the boot upgrade program after receiving the request,receives the application package from the server side,and finishes the update of the application program.
Keywords:remote upgrade;network transmission;firmware update
基金项目:大学生创新创业训练计划项目:基于GPRS 的STM32 固件远程升级系统(项目编号:201810595021)。
参考文献:
[1] 曾自怡,李靖沙.GPRS 通信技术在五凌电力水情测报系统中的应用 [J]. 水电站机电技术,2019,42(9):29-31.
[2] 郑欢欢,钱宇坤. 基于GPRS 的远程抄表系统的设计 [J].工业计量,2019,29(4):23-26.
[3] 李坊玉.STM32 ST-LINK Utility 应用功能及使用方法(三) [N]. 电子报,2019-09-15(007).
[4] 刘定良,陈文科. 基于GPRS 和PLC 的大学校园配电网远程监控系统设计 [J]. 智库时代,2018(47):163-164.
[5] 谢世春,陈露,李继扬. 大数据时代下计算机网络信息安全问题 [J]. 电子技术与软件工程,2019(19):178-179.
作者简介:牛军浩(1981-),男,汉族,河南林州人,就职于测控技术与仪器系,主任,高级实验师,工学硕士,研究方向:智能仪器、自动测试总线。