Online upgrade of embedded system based on TCP communication protocol

With the rapid development of electronic technology, communication technology and computer technology, embedded systems have been widely used in various fields. The requirements for system functions, performance and scale of embedded devices are increasing in various industries. Developers must be able to target The customer's needs timely maintenance and upgrade of the system to extend the system's life cycle and improve system performance. At present, the remote upgrade methods mainly include: a complete upgrade of the system using the structural design of Boot plus dual Loader, and a remote update system of the ARM software based on the Trivial File Transfer Protocol (TFTP) protocol. The author studies the remote online upgrade technology of embedded system software based on LM3S6965 microcontroller, and proposes a successfully verified online upgrade implementation method, which reduces the maintenance cost of embedded devices and improves the working efficiency of the device. Very important practical significance.

1 embedded system function and online upgrade principle

1.1 Features of the embedded system

The operation of the embedded system is mainly divided into working mode and upgrade mode, wherein the working mode is the default mode, the working mode refers to the normal working state of the device, and the embedded system completes the corresponding monitoring and control tasks according to a predetermined program, and through the internet, GPRS, etc. The monitoring management center reports the monitoring parameters. The upgrade mode means that the embedded is in an upgrade state, including the program code sent by the receiving server, and the firmware code in the flash area.

1.2 Principle of remote online upgrade

The entire upgrade system is mainly composed of a server and a remote terminal, wherein the remote terminal includes an embedded control chip and a Modem module based on the ARM core. The two are connected by RS232 bus, and the server communicates with the remote terminal through the Internet. The system structure is shown in Figure 1.

As the active initiator of the software upgrade task, the server first sends an upgrade command to the embedded system. After the hardware is started, the embedded system first executes the bootloader to perform a series of initialization operations, and selects to execute the upgrade control program, and waits for the server to receive the upgrade command. After confirming the upgrade response of the embedded system, the upgrade program code is sent. Before sending the upgrade program code, the server splits the code into multiple data units of fixed length, and each data unit is composed of core data packets (data The package content includes the packet header flag, the command header, the packet sequence, the data unit, the CRC check code, the data packet tail flag, the total number of packets, etc., and the embedded system will return a confirmation message every time a data packet is received, if the data If the packet verification is correct, the old program is erased and the new program is copied in the specified FLASH area, thereby achieving the online upgrade of the embedded system software of the remote terminal. The online upgrade implementation process is shown in Figure 2.

Online upgrade of embedded system based on TCP communication protocol

Medical Atomization

The utility model relates to a medical atomization treatment and humidifying device belonging to the technical field of medical equipment and household appliances.


Professional Medical Atomization manufacturer is located in China, including Medical Vape,Dose Control Vape Pen,Supersonic Wave Vape, etc.2-2

Medical Atomization,Medical Vape,Dose Control Vape Pen,Supersonic Wave Vape

Shenzhen MASON VAP Technology Co., Ltd. , https://www.cbdvapefactory.com

Posted on