Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to analyze the OTA host computer in the UDP protocol stack

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to analyze the OTA host computer in the UDP protocol stack, the content is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Some people ask why OTA uses a ready-made protocol stack and why it is necessary to write its own protocol stack. What are the benefits? The answers are as follows:

Because the off-the-shelf protocol stack is relatively large, and the OTA function does not need so many protocol stack functions. In the current era of the Internet of things, many devices are MCU + WIFI. In some cases, you may have to upgrade MCU and WIFI. Most of the upgrade methods, such as the following figure, PC or server, send the upgrade package to MCU, and then MCU forwards the upgrade package to WIFI. This is a waste of resources to upgrade the WIFI module, and it also requires more flash on the MCU. This is an irrational thing to do. There's really nothing wrong with upgrading MCU in this way. The mini UDP protocol stack written by myself is essentially placed on the wifi module. The OTA packet is sent out through the established protocol, and the mini UDP protocol stack of the WIFI module intercepts the OTA packet of the established protocol, and then upgrades it. As shown in the figure below, in this form, MCU does not have to participate in the upgrade of WIFI. It can be said that WIFI can be upgraded unwittingly, and MCU has no consciousness at all. This upgrade method is fast and stable. Through the above description, in general, it is to simplify the OTA function of the wifi module. Reduce the burden of MCU. Upper computer

Mini UDP OTA Tool this is a very crude software, written in Python. Here I would like to complain that it is really difficult for Python to write to the host computer. I have written about the host computer in several languages, and Python is the most painful.

This software supports serial upgrades of one-click batch devices. A batch of equipment can also be upgraded with one click according to the version number. You can specify a device on a network card device to upgrade.

Software description:

OTA firmware path selection. Device selection for OTA is required. Network card selection. The OTA process is displayed. OTA progress bar. Scan the equipment. One-click upgrade button. Practical demonstration

Through the silent upgrade of WIFI, MCU has no awareness at all, and WIFI completes the firmware upgrade. This scheme is much more efficient than forwarding upgrade, does not affect the performance of MCU, and will only affect the network speed in the process of upgrade.

Statement

The code of this host computer contains some protocol things, which cannot be exposed to the public.

The above content is how to analyze the OTA host computer in the UDP protocol stack. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report