In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1.1 introduction to OTA upgrad
With the increasing development of the Internet of things, OTA upgrade has gradually become a rigid demand for Internet of things devices. at present, there are many kinds of Internet of things devices, but they do not provide a unified OTA upgrade scheme. for the growing development of Internet of things devices, developers urgently need a cloud-based integrated OTA upgrade scheme to meet the rapid iterative product development cycle and reduce the cost of product development and deployment. At the same time, in view of the low power consumption and traffic-saving scenario of the Internet of things, AliOS Things launched the upgrade "sharp weapon" of the Internet of things devices: differential + security upgrade of integrated cloud, which can quickly repair software vulnerabilities, update the system, and solve the pain point problems of difficult user development and deployment, high after-sales maintenance cost, large download traffic and insecure upgrade.
1.2 OTA upgrade Software Architecture
AliOS Things OTA uses the cloud integrated software architecture as shown in the figure. The user interface includes upgrade service management and other interfaces designed on the cloud server to provide users with upgrade services with rich features through the cooperation between the device end and the cloud front end.
Cdn.com/d441af7380d416ba52aef6ae6044c6f050d9b1a4.png ">
1.2 Rich features
AliOS Things OTA provides cloud-integrated upgrade services, which can not only provide users with more secure and reliable basic upgrade services, such as ping-pong double backup partition upgrade, secure download channel, firmware integrity verification, breakpoint continuation, power outage protection, but also provide users with a wealth of advanced upgrade services, such as differential incremental upgrade, digital signature verification security upgrade.
1. Safe and reliable upgrade mode of double backup
By providing cloud-integrated dual backup partition upgrades, AliOS Things OTA ensures that the upgraded device does not fail to boot under any circumstances as a result of the upgrade process. As shown in the following figure, the ping-pong double backup upgrade method is used, together with the device-side bootstrap program to support the automatic rollback of the old firmware when the upgrade fails, making the whole upgrade process more secure and reliable.
2. Differential upgrade scheme of cloud integration
AliOS Things OTA provides a cloud-integrated differential upgrade service, which integrates time-consuming and computational differential package generation tools into the cloud background server cluster to generate. The status information during the upgrade process is displayed through the cloud web or mobile interface, which greatly simplifies the operation process of the device end of the Internet of things. At the same time, the status information of the upgrade process, such as progress bars and error codes, can be displayed in the cloud in real time. Maximize the user experience. The incremental package generated by differential is only less than 5% of the original package, and it is especially suitable for networking devices with low power consumption and low traffic. It is believed that the differential upgrade scheme of AliOS Things cloud integration will become an indispensable upgrade "weapon" for equipment upgrading in the field of the Internet of things. The differential upgrade process of cloud integration is shown in the afternoon:
By using the optimized and efficient compression algorithm, the maximum compression ratio can be achieved in the case of minimum memory usage, and it can run stably on platforms with very small memory resources, such as Lexin 8266 chip, the average compression ratio of bin files is about 5%. In the case of minor changes to the version code, the incremental package size of 1m original compressed bin files is only 4332 bytes after compression by our differential algorithm. It is almost negligible and can save upgrade traffic to the maximum extent.
3. Secure digital signature verification (RSA)
As shown in the following figure, AliOS Things OTA provides cloud-integrated security upgrade service, directly interfacing with Ali Cloud security server KPM, completing key and certificate management, data signature, issuing public key to device, and firmware signature verification on device. The whole process is provided through cloud integration, and integrated development and operation are very simple. The security upgrade of cloud integration is shown in the following figure:
1.4 easy to get started with AliOS Things upgrade service
1. Install the integrated compilation tool and download the source code according to the AliOS Things wiki documentation in Chapter 1.1
AliOS Things OTA Cloud-to-end uses document links: https://github.com/alibaba/AliOS-Things/wiki/OTA-Tutorial
2. Compiling AliOS Things OTA Linux host Demo program
Aos make clean
Aos make otaapp@linuxhost
3. Run the OTA Demo program under Linuxhost to ensure that PC is connected to the Internet properly and get the IP address.
. / otaapp@linuxhost.elf
4. Create a product from the cloud, obtain the product information pk,dn,ds, ps, and execute the command line to run
OTA_APP "a16UKrlKekO"gateway_test01"AT2XFOPOIbJaKfXsKeaEhabJ8TLhMQYp"RDluqbn3LQazrdqM"
As shown in the figure above, the corresponding ota device pk,dn registers the OTA service successfully (make sure that the device information PK,DN, etc.) is correct:
5. Select the verification firmware through the cloud interface, and click OK to see the start of the OTA upgrade on the device:
When the upgrade is complete, the file will be written to the file name alinkapp@linuxhost.elf in the current directory under Linux host.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.