摘要
近年来,随着智能制造和物联网的快速发展,终端设备的软件更新越来越频繁。针对传统JTAG调试器更新技术的成本高、传输距离短、不利于终端软件频繁更新等缺点,提出了一种基于串行通信技术的嵌入式终端程序更新技术。将终端程序在物理上分为BootLoader程序和User程序两个部分。在BootLoader中加入串行通信驱动和更新User的处理逻辑,从而达到更新终端程序的目的。为保证更新的稳定性和可靠性,在BootLoader中增加了多次握手、失败重传、数据校验等技术。实验结果表明,本技术相较于传统更新技术具有更新成功率高、可靠性强、过程可控的优点,为终端软件的远程故障解决和功能更新提供了一种实际且有效的方法,可应用于智能家居、智能工业、智慧城市等领域中。
In recent years,with the rapid development of intelligent manufacturing and Intemet of things(IoT),terminal software updates more and more frequently.In order to overcome the disadvantages of traditional JTAG debugger,such as high cost,short transmission distance and unfavorable update of terminal software,an embedded terminal software update technology based on serial communication technology was presented.This method divided the terminal program into BootLoader and User in physics.The serial communication driver and processing logic of updating User were added to BootLoader to update the terminal program.To ensure the stability and reliability of the update,several techniques have been added to the BootLoader,such as handshake,failed retransmission and data validation.The experimental results show that this technology has the advantages of high update success rate,high reliability and controllable process compared with traditional update technology,and can be applied to smart home,smart industry,smart city,and other projects.It will provide the theoretical basis and technical support for the further development of the IoT.
引文
[1]曹煦.迎接“万物互联”时代:当5G遇上智能终端、物联网[J].中国经济周刊,2016(27):68-70.
[2]IEEE Computer Society.IEEE Standard Test Access Port and Boundary-Scan Architecture:IEEE 1149.1[S].1990.
[3]王宜怀,王林.MC68HC908GP32 MCU的Flash存储器在线编程技术[J].微电子学与计算机,2002,19(7):15-19.
[4]NXP.KL36 Sub-Family Reference Manual[EB/OL].(2013-07-29)[2018-08-15].https://www.nxp.com/docs/en/reference-manual/KL36P121 M48SF4 RM.pdf.
[5]王宜怀,朱仕浪,郭芸.嵌人式技术基础与实践[M].4版.北京:清华大学出版社,2017:100-103.
[6]汪晶晶,苏建徽,孙佩石.基于串口通信的DSP应用程序在线升级方法[J].微型机与应用,2013,32(12):15-17.
[7]张园,万众.MSP430单片机串口的程序升级方法[J].单片机与嵌入式系统应用,2011(10):23-24.
[8]罗秋凤,叶慧,李勇,等.DSP28335嵌入式系统的SCI在线编程方法实现[J].河北科技大学学报,2013,34(4):318-324.
[9]李龙光,刘振威,乔海强,等.基于CAN总线的STM32F107程序在线升级[J].测控技术,2018,37(9):156-158.
[10]蔡伯峰,蒋建武,王宜怀.ARM Cortex-MO+机器码文件分析方法[J].现代电子技术,2017,40(14):44-48.
[11]赵洁琳,雷勇.计算机网络通信安全中数据加密技术的应用[J].电子技术与软件工程,2018(2):226-226.
[12]常晓明,潘卫华,王建东.CRC校验及其软件实现[J].电子技术应用,1995(6):14.