Font Size: a A A

Research On Remote Upgrade Of Embedded Software Based On STM32

Posted on:2018-07-14Degree:MasterType:Thesis
Country:ChinaCandidate:B B FangFull Text:PDF
GTID:2348330536486044Subject:Engineering
Abstract/Summary:PDF Full Text Request
Embedded devices are widely used in industrial manufacturing,health care,smart home and other fields nowadays.In the face of diverse needs and possible software vulnerabilities,equipment manufacturers need to constantly update the product's firmware.The traditional scheme of embedded software upgrade generally uses the whole package to upgrade the device.Although the structure is simple and easy to implement,but the transmission of whole packet reduces network bandwidth and has the risk of security.In order to solve the above problems,this paper studies a remote incremental upgrade scheme for embedded devices and applies them to STM32 platform.This paper firstly introduces the related theories of embedded software remote upgrade in the second chapter,including application programming technology and incremental upgrade technology.In the third chapter,this paper studys the difference algorithm between bsdiff and rsync file.Through the comparison of efficiency and compression performance,the bsdiff file difference algorithm is finally selected.Due to the limited resources of the embedded device,the bsdiff algorithm is further optimized,so that the incremental scheme based on the algorithm can be realized on the embedded device.In the fourth chapter,the embedded software remote upgrade system based on STM32F103 chip is designed with the above improved algorithm as the core.Among them,the TFTP simple file transfer protocol based on UDP protocol is implemented by C code,which can solve the problem of the incremental file transfer between the server and the client.In order to steadily upgrade the new firmware,the bootloader is designed.Finally,with the "power-down protection" mechanism,system failure when the equipment suddenly power down in the process of upgrade.In order to make the user upgrade the device remotely through the human-computer interaction interface,the embedded Web server and the Web page are designed in the fifth chapter.The user can perform network configuration and system upgrade operations on the device by the Web at any terminal with a Web browser.Finally,in sixth chapter,the experimental environment of embedded remote upgrade system is built,and the whole upgrade system is tested and verified.
Keywords/Search Tags:Remote Upgrade, STM32, Difference Algorithm, Embedded system
PDF Full Text Request
Related items