Method, device, equipment, medium and product for online software upgrade of smart devices

By caching the upgrade packages and control strategies of smart devices in the data acquisition gateway, efficient, intelligent and orderly online upgrades of devices under the data acquisition gateway are achieved, solving the problem of upgrade management of diversified devices, reducing dependence on external networks, and improving upgrade efficiency and intelligence.

CN119376763BActive Publication Date: 2025-09-26GUANGDONG KEREAD ELECTRIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411448359.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-09-26
Estimated Expiration
2044-10-17

AI Technical Summary

Technical Problem

How to efficiently, intelligently and orderly complete the online software upgrade of smart devices under the data acquisition gateway, especially when the device types are diverse and the software logic is frequently adjusted, the existing technology makes it difficult to achieve efficient upgrade management.

Method used

The cloud platform stores the software upgrade packages and upgrade control policies corresponding to the smart device categories in the cache area of ​​the data acquisition gateway. The data acquisition gateway performs online upgrades based on the cached policies and packages, including the upgrade package validity flag, model information, software size, version number, MD5 encoding, and allowed upgrade period, to achieve one-to-many internal upgrade management.

Benefits of technology

It reduces dependence on external networks, improves upgrade efficiency and intelligence, ensures orderly upgrades, saves time and network traffic, adapts to the working characteristics of different devices, and realizes efficient and intelligent online software upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376763B_ABST
    Figure CN119376763B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, device, medium and product for online software upgrade of smart devices, and relates to the technical field of smart devices. The method comprises: a cloud platform stores software upgrade packages and upgrade control strategies corresponding to smart device categories in a software upgrade package cache area corresponding to the smart device categories in a data acquisition gateway; the data acquisition gateway comprises multiple software upgrade package cache areas, and the software upgrade package cache areas correspond one-to-one to smart device categories; the software upgrade packages corresponding to the smart device categories comprise upgrade packages for each software to be upgraded in all smart devices to be upgraded corresponding to the smart device categories; the data acquisition gateway uses the software upgrade packages corresponding to the smart device categories according to the upgrade control strategies corresponding to the smart device categories to perform online upgrades on each software to be upgraded in all smart devices to be upgraded corresponding to the smart device categories. The present application can efficiently, intelligently and orderly complete the online software upgrade of smart devices under the jurisdiction of the gateway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart devices, and in particular to a method, apparatus, device, medium, and product for online software upgrade of smart devices. Background Art

[0002] As the data source of the IoT cloud platform, the data acquisition gateway is responsible for data collection, aggregation, filtering and processing of various local smart devices, as well as forwarding commands issued by the cloud platform and other data service functions. It is one of the important data sub-nodes of the IoT cloud platform.

[0003] In actual application, the data acquisition gateway controls various types of intelligent devices. As the application continues to deepen, software defects and functional logic adjustments of the intelligent devices under the gateway often occur. How to efficiently, intelligently and orderly complete the online software upgrade of the intelligent devices under the gateway is a problem that needs to be faced and solved. Summary of the Invention

[0004] The purpose of this application is to provide a method, device, equipment, medium and product for online software upgrade of smart devices, which can efficiently, intelligently and orderly complete the online software upgrade of smart devices under the gateway.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides a method for online software upgrade of a smart device, comprising:

[0007] For any smart device category, the cloud platform stores the software upgrade package and upgrade control policy corresponding to the smart device category in the software upgrade package cache corresponding to the smart device category in the data acquisition gateway; the data acquisition gateway includes multiple software upgrade package caches, and the software upgrade package caches correspond to the smart device categories one by one; the software upgrade package corresponding to the smart device category includes the upgrade package of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category;

[0008] The data acquisition gateway uses the software upgrade package corresponding to the smart device category according to the upgrade control strategy corresponding to the smart device category to perform online upgrade on each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category.

[0009] Optionally, the upgrade control strategy includes: an upgrade package validity flag, upgrade device model information, upgrade software size, upgrade software version, upgrade software MD5 code, allowed upgrade period, and device upgrade completion flag of each smart device to be upgraded; the upgrade device model information corresponding to the smart device category includes the models of all smart devices to be upgraded corresponding to the smart device category; the upgrade software size corresponding to the smart device category includes the bytes occupied by the upgrade package of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category; the upgrade software version corresponding to the smart device category includes the current version number of each software to be upgraded in all smart devices to be upgraded; the upgrade software MD5 code corresponding to the smart device category includes the MD5 code of each software to be upgraded in all smart devices to be upgraded.

[0010] Optionally, the data acquisition gateway performs online upgrade of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category using the software upgrade package corresponding to the smart device category according to the upgrade control strategy corresponding to the smart device category, specifically including:

[0011] The data acquisition gateway determines whether the upgrade package valid flag in the upgrade control policy corresponding to the smart device category is valid;

[0012] If so, the data acquisition gateway performs the upgrade steps;

[0013] If not, the data acquisition gateway sets the upgrade package valid flag in the upgrade control policy corresponding to the smart device category to valid, and then performs the upgrade step;

[0014] The upgrade steps are:

[0015] Using the software upgrade package corresponding to the smart device category, according to the upgrade software size, upgrade software version, upgrade software MD5 code, allowed upgrade period, and upgrade device model information in the upgrade control policy corresponding to the smart device category, respectively upgrade each piece of software to be upgraded in each smart device to be upgraded corresponding to the smart device category, and set the device upgrade completion flag of the smart device to be upgraded after the upgrade is completed in the upgrade control policy corresponding to the smart device category to be completed;

[0016] When all the smart devices to be upgraded corresponding to the smart device category have completed upgrading, the upgrade package valid flag in the upgrade control policy corresponding to the smart device category is cleared.

[0017] Optionally, the data acquisition gateway includes 10 software upgrade package cache areas.

[0018] Optionally, the software upgrade package cache area includes an upgrade control information section and a software upgrade package section; the upgrade control information section is used to store the upgrade control policy; and the software upgrade package section is used to store the software upgrade package.

[0019] Optionally, based on the upgrade software size, upgrade software version, upgrade software MD5 code, allowed upgrade period, and upgrade device model information in the upgrade control policy corresponding to the smart device category, the software upgrade package corresponding to the smart device category is used to upgrade each software to be upgraded in each smart device to be upgraded corresponding to the smart device category, specifically including:

[0020] If the upgrade software version in the upgrade control policy corresponding to the smart device category is not a preset version, then, based on the size of the upgrade software, the upgrade software MD5 code and the upgrade package of each software to be upgraded in the target device corresponding to the smart device category are sent to the target device corresponding to the smart device category; the target device is the smart device to be upgraded corresponding to the upgrade device model information;

[0021] The target device corresponding to the smart device category upgrades the software to be upgraded in the target device corresponding to the smart device category using the upgrade package of each software to be upgraded in the target device corresponding to the smart device category within the allowed upgrade period in the upgrade control policy corresponding to the smart device category.

[0022] In a second aspect, the present application provides an online software upgrade device for a smart device, comprising:

[0023] A storage module is configured to store software upgrade packages and upgrade control policies corresponding to each smart device category in a data acquisition gateway in a software upgrade package cache corresponding to the smart device category on the cloud platform; the data acquisition gateway includes multiple software upgrade package caches, each corresponding to a smart device category; the software upgrade package corresponding to the smart device category includes an upgrade package for each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category;

[0024] The upgrade module is used for the data acquisition gateway to perform online upgrade of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category using the software upgrade package corresponding to the smart device category according to the upgrade control strategy corresponding to the smart device category.

[0025] In a third aspect, the present application provides a computer device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the online software upgrade method for the smart device described in any one of the above.

[0026] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for online software upgrade of any one of the above-mentioned smart devices.

[0027] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the software online upgrade method of any one of the above-mentioned smart devices.

[0028] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0029] The present application provides a method, apparatus, equipment, medium and product for online software upgrade of smart devices. The cloud platform stores the software upgrade packages and upgrade control policies corresponding to each smart device category in the software upgrade package cache area corresponding to the smart device category in the data acquisition gateway. The data acquisition gateway is then directly upgraded according to the cached software upgrade packages and upgrade control policies, thereby reducing dependence on the external network. Moreover, the cloud platform does not need to start the upgraded software of each smart device to be upgraded one by one, but only needs to set the software upgrade packages and upgrade control policies to the data acquisition gateway, thereby achieving efficient upgrades, and upgrading according to the upgrade control policies is more intelligent and orderly. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0031] Figure 1 A flowchart of a method for online software upgrade of a smart device provided in one embodiment of the present application;

[0032] Figure 2 A structural diagram of a data acquisition gateway provided in one embodiment of the present application;

[0033] Figure 3 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0035] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0036] In an exemplary embodiment, Figure 1 As shown, a method for online software upgrade of a smart device is provided, comprising the following steps:

[0037] In step 201, for any smart device category, the cloud platform stores the corresponding software upgrade package (i.e., the software code to be upgraded) and the upgrade control policy in the software upgrade package cache corresponding to the smart device category in the data acquisition gateway. The data acquisition gateway includes multiple software upgrade package caches, each corresponding to a smart device category. The software upgrade package corresponding to the smart device category includes the upgrade package for each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category. This process can adopt a breakpoint-resume method, that is, intermittently obtain software upgrade packages from the cloud platform, and then utilize the high reliability of the intranet to complete the upgrade in one go, reducing the requirements for network performance.

[0038] In step 202 , the data acquisition gateway uses the software upgrade package corresponding to the smart device category to perform online upgrade on each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category according to the upgrade control policy corresponding to the smart device category.

[0039] In another exemplary embodiment of the present application, the upgrade control strategy includes: an upgrade package validity flag, upgrade device model information (referring to the model of the device to be upgraded, which is mainly a descriptive information, indicating what type of model is to be upgraded, and the device to be upgraded can be found based on this during the upgrade), upgrade software size (the size of the upgrade software package, and the size can be used to determine how many bytes to transfer to the device to be upgraded), upgrade software version (used to verify the current software version of the device to be upgraded. If it is the latest version or the version matches, there is no need to perform the upgrade), upgrade software MD5 code (after the device to be upgraded receives the upgrade package, it calculates the MD5 code of the upgrade package, and then checks it according to the received MD5 code. If it is consistent, it means that the upgrade package is correct), allowed upgrade period (set by yourself, which can be set to after get off work or any time period when the device is idle) and device upgrade completion flag of each smart device to be upgraded. The upgrade device model information corresponding to the smart device category includes the models of all smart devices to be upgraded corresponding to the smart device category; the upgrade software size corresponding to the smart device category includes the bytes occupied by the upgrade package of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category; the upgrade software version corresponding to the smart device category includes the current version number of each software to be upgraded in all smart devices to be upgraded; the upgrade software MD5 code corresponding to the smart device category includes the MD5 code of each software to be upgraded in all smart devices to be upgraded.

[0040] In another exemplary embodiment of the present application, the data acquisition gateway uses the software upgrade package corresponding to the smart device category according to the upgrade control policy corresponding to the smart device category to perform online upgrades on all the software to be upgraded in all the smart devices to be upgraded corresponding to the smart device category, specifically including:

[0041] The data acquisition gateway determines whether the upgrade package validity flag in the upgrade control policy corresponding to the smart device category is valid.

[0042] If yes, the data acquisition gateway performs the upgrade steps.

[0043] If not, the data acquisition gateway sets the upgrade package valid flag in the upgrade control policy corresponding to the smart device category to valid, and then performs the upgrade step.

[0044] The upgrade steps are:

[0045] According to the upgrade software size, upgrade software version, upgrade software MD5 code, allowed upgrade period and upgrade device model information in the upgrade control policy corresponding to the smart device category, the software upgrade package corresponding to the smart device category is used to upgrade each software to be upgraded in each smart device to be upgraded corresponding to the smart device category, and the device upgrade completion flag of the smart device to be upgraded after the upgrade is completed in the upgrade control policy corresponding to the smart device category is set to completion.

[0046] When all the smart devices to be upgraded corresponding to the smart device category have completed upgrading, the upgrade package valid flag in the upgrade control policy corresponding to the smart device category is cleared.

[0047] In another exemplary embodiment of the present application, the data acquisition gateway is equipped with a large-capacity storage flash memory chip, and the storage area of ​​the storage flash memory chip is pre-divided into 10 software upgrade package cache areas.

[0048] In another exemplary embodiment of the present application, Figure 2 As shown, the software upgrade package cache area includes: an upgrade control information section and a software upgrade package section; the upgrade control information section is used to store the upgrade control policy; the software upgrade package section is used to store the software upgrade package.

[0049] In another exemplary embodiment of the present application, based on the upgrade software size, upgrade software version, upgrade software MD5 code, allowed upgrade period, and upgrade device model information in the upgrade control policy corresponding to the smart device category, the software upgrade package corresponding to the smart device category is used to upgrade each software to be upgraded in each smart device to be upgraded corresponding to the smart device category, specifically including:

[0050] If the upgrade software version in the upgrade control policy corresponding to the smart device category is not the preset version, the upgrade software MD5 code and the upgrade package of each software to be upgraded in the target device corresponding to the smart device category are sent to the target device corresponding to the smart device category according to the size of the upgrade software; the target device is the smart device to be upgraded corresponding to the upgrade device model information.

[0051] The target device corresponding to the smart device category upgrades the software to be upgraded in the target device corresponding to the smart device category using the upgrade package of each software to be upgraded in the target device corresponding to the smart device category within the allowed upgrade period in the upgrade control policy corresponding to the smart device category.

[0052] The entire upgrade process provided by the embodiment of the present application is as follows: the cloud platform first downloads the software upgrade package to the software upgrade package section, downloads the upgrade control policy to the upgrade control information section, and then sets the upgrade package valid flag to valid. After the data acquisition gateway determines that the upgrade package valid flag is valid, it upgrades the corresponding connected devices one by one according to the allowed upgrade period configuration and the upgrade device model information. After the upgrade of one device is completed, the corresponding device upgrade completion flag is set. After all upgrades are completed, the upgrade package valid flag is cleared to complete this round of upgrades.

[0053] This application has the following beneficial effects:

[0054] 1. The cloud platform does not need to start the upgraded software of each smart device one by one. It only needs to set the software upgrade package and upgrade control policy to the data acquisition gateway. The data acquisition gateway can complete the online upgrade of all access devices according to the upgrade control policy, saving time and achieving efficient upgrade. The gateway obtains and stores the upgrade package, and then upgrades the smart devices online, which can realize internal one-to-many upgrade management and save data traffic and bandwidth occupation for external communications. The stability and speed of the internal network are better than those of the external network, which can realize cache upgrade, reduce the impact and dependence on the external network, and ensure efficient upgrade.

[0055] 2. By storing the software upgrade packages and upgrade control strategies corresponding to each smart device category in the software upgrade package cache area corresponding to the smart device category in the data acquisition gateway, subsequent upgrades can be performed directly from the cache area, saving data traffic between the data acquisition gateway and the cloud platform.

[0056] 3. Set the upgrade period to after get off work, based on the working characteristics of the device to be upgraded. For example, during working hours, the gateway downloads and prepares the upgrade package, and during off-duty hours, the devices to be upgraded are upgraded online one by one without affecting the normal operation of the devices to be upgraded. At the same time, it can reduce the difficulty of server upgrade management, and the upgrade can be started at any convenient time. The specific upgrade is implemented by the data acquisition gateway according to the specific situation on site, ensuring intelligent upgrade.

[0057] 4. The upgrade package obtained from the server can be cached sporadically according to the network conditions. When ready, the online upgrade can be started at any time. The online upgrade is performed when the data acquisition gateway is idle according to the upgrade control strategy, which reduces the dependence on the network. It can be upgraded first and then according to the configuration measurement to ensure orderly upgrade.

[0058] Based on the same inventive concept, embodiments of the present application also provide an apparatus for online software upgrade of an intelligent device, for implementing the aforementioned method for online software upgrade of an intelligent device. The solution provided by this apparatus is similar to the solution described in the aforementioned method. Therefore, the specific limitations of the embodiments of the apparatus for online software upgrade of one or more intelligent devices provided below can be found in the aforementioned definition of the method for online software upgrade of an intelligent device, and will not be further elaborated here.

[0059] In an exemplary embodiment, a device for online software upgrade of a smart device is provided, comprising:

[0060] The storage module is used to store the software upgrade package and upgrade control strategy corresponding to any smart device category in the software upgrade package cache area corresponding to the smart device category in the data acquisition gateway by the cloud platform; the data acquisition gateway includes multiple software upgrade package cache areas, and the software upgrade package cache areas correspond to the smart device categories one by one; the software upgrade package corresponding to the smart device category includes the upgrade package of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category.

[0061] The upgrade module is used for the data acquisition gateway to perform online upgrade of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category using the software upgrade package corresponding to the smart device category according to the upgrade control strategy corresponding to the smart device category.

[0062] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store software online upgrade data of intelligent devices. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for online software upgrade of an intelligent device is implemented.

[0063] Those skilled in the art will understand that Figure 3The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application and does not constitute a limitation on the computer device to which the solution of the present application is applied. A specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement. In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the above-mentioned method embodiments when executing the computer program.

[0064] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the above-mentioned method embodiments when executed by a processor.

[0065] In an exemplary embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the above method embodiments are implemented.

[0066] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0067] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0068] The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may include, but are not limited to, general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic units, data processing logic units based on quantum computing, and the like.

[0069] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0070] This document uses specific examples to illustrate the principles and implementation methods of this application. The description of the above examples is only intended to help understand the method and core concept of this application. At the same time, for those skilled in the art, based on the concept of this application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for online software upgrade of an intelligent device, characterized in that: The method for online software upgrade of the smart device includes: For any smart device category, the cloud platform stores the software upgrade package and upgrade control policy corresponding to the smart device category in the software upgrade package cache area corresponding to the smart device category in the data acquisition gateway; the software upgrade package cache area includes an upgrade control information section and a software upgrade package section; the upgrade control information section is used to store the upgrade control policy; the software upgrade package section is used to store the software upgrade package; the data acquisition gateway includes 10 software upgrade package cache areas, and the software upgrade package cache areas correspond to smart device categories one by one; the software upgrade package corresponding to the smart device category includes the upgrade package of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category; the upgrade control policy includes: The upgrade package validity flag, upgrade device model information, upgrade software size, upgrade software version, upgrade software MD5 code, allowed upgrade period, and device upgrade completion flag for each smart device to be upgraded; the upgrade device model information corresponding to the smart device category includes the models of all smart devices to be upgraded corresponding to the smart device category; the upgrade software size corresponding to the smart device category includes the bytes occupied by the upgrade package of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category; the upgrade software version corresponding to the smart device category includes the current version number of each software to be upgraded in all smart devices to be upgraded; the upgrade software MD5 code corresponding to the smart device category includes the MD5 code of each software to be upgraded in all smart devices to be upgraded; The data acquisition gateway uses the software upgrade package corresponding to the smart device category according to the upgrade control strategy corresponding to the smart device category to perform online upgrades on all the software to be upgraded in all the smart devices to be upgraded corresponding to the smart device category, specifically including: The data acquisition gateway determines whether the upgrade package valid flag in the upgrade control policy corresponding to the smart device category is valid; If so, the data acquisition gateway performs the upgrade steps; If not, the data acquisition gateway sets the upgrade package valid flag in the upgrade control policy corresponding to the smart device category to valid, and then performs the upgrade step; The upgrade steps are: Using the software upgrade package corresponding to the smart device category, according to the upgrade software size, upgrade software version, upgrade software MD5 code, allowed upgrade period, and upgrade device model information in the upgrade control policy corresponding to the smart device category, respectively upgrade each piece of software to be upgraded in each smart device to be upgraded corresponding to the smart device category, and set the device upgrade completion flag of the smart device to be upgraded after the upgrade is completed in the upgrade control policy corresponding to the smart device category to be completed; When all the smart devices to be upgraded corresponding to the smart device category have completed upgrading, the upgrade package valid flag in the upgrade control policy corresponding to the smart device category is cleared.

2. The method for online software upgrade of a smart device according to claim 1, characterized in that: According to the upgrade software size, upgrade software version, upgrade software MD5 code, allowed upgrade period, and upgrade device model information in the upgrade control policy corresponding to the smart device category, using the software upgrade package corresponding to the smart device category, respectively upgrading each software to be upgraded in each smart device to be upgraded corresponding to the smart device category, specifically including: If the upgrade software version in the upgrade control policy corresponding to the smart device category is not a preset version, then, based on the size of the upgrade software, the upgrade software MD5 code and the upgrade package of each software to be upgraded in the target device corresponding to the smart device category are sent to the target device corresponding to the smart device category; the target device is the smart device to be upgraded corresponding to the upgrade device model information; The target device corresponding to the smart device category upgrades the software to be upgraded in the target device corresponding to the smart device category using the upgrade package of each software to be upgraded in the target device corresponding to the smart device category within the allowed upgrade period in the upgrade control policy corresponding to the smart device category.

3. A software online upgrade device for smart devices, characterized in that: Applicable to the software online upgrade method according to claim 1, the software online upgrade device comprises: A storage module is configured to store, by the cloud platform, the software upgrade package and upgrade control policy corresponding to any smart device category in a software upgrade package cache corresponding to the smart device category in the data acquisition gateway; the data acquisition gateway includes multiple software upgrade package caches, each corresponding to a smart device category; the software upgrade package corresponding to the smart device category includes an upgrade package for each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category; The upgrade module is used for the data acquisition gateway to perform online upgrade of each software to be upgraded in all smart devices to be upgraded corresponding to the smart device category using the software upgrade package corresponding to the smart device category according to the upgrade control strategy corresponding to the smart device category.

4. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for online software upgrade of an intelligent device according to any one of claims 1 to 2.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for online software upgrade of a smart device according to any one of claims 1 to 2 is implemented.

6. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for online software upgrade of a smart device according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Software upgrading control method and system, server and intelligent terminal equipment

    CN112328274A

  • Internet of Things cloud platform remote terminal upgrading system and method

    CN114416135A