Function upgrading method, device and system applied to Internet of Things and electronic equipment

By independently upgrading the algorithm logic package in IoT devices, the problems of high resource consumption and long download time during IoT device function upgrades are solved, achieving efficient function upgrades and resource sharing.

CN121300833APending Publication Date: 2026-01-09HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511367448.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-23
Publication Date
2026-01-09

AI Technical Summary

Technical Problem

When upgrading the functions of IoT devices, different algorithm logics are packaged into a whole package for upgrading, which results in large resource consumption and long download time, and different functions cannot share algorithm logic resources.

Method used

By obtaining upgrade information for the functions to be upgraded from the algorithm platform, detecting the existing algorithm logic of the device, identifying the target algorithm upgrade package identifier, and downloading and upgrading the corresponding algorithm package if the device's remaining resources allow, the entire package upgrade is avoided.

Benefits of technology

It solves the problems of high resource consumption and long download time when upgrading the functions of IoT devices, and realizes efficient and independent upgrade of algorithm logic, reducing duplicate downloads and resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121300833A_ABST
    Figure CN121300833A_ABST
Patent Text Reader

Abstract

The invention provides a function upgrading method, device and system applied to the Internet of Things and electronic equipment. According to the method and the device, the upgrading information related to the to-be-upgraded function is obtained from the algorithm platform, and the target algorithm upgrading package identifier required to be used during function upgrading is determined from the plurality of algorithm upgrading package identifiers carried in the upgrading information, so that the target algorithm upgrading package is upgraded under the condition of determining that the residual resources in the Internet of Things equipment can accommodate the target algorithm upgrading package; and downloading the corresponding target algorithm upgrade package to perform function upgrade on the Internet of Things equipment. According to the method, the technical concept that different algorithm logics related to functions are uniformly packaged into a whole package and upgrading is carried out in a whole package mode is broken through, the algorithm functions are associated with the multiple algorithm logics, only the algorithm package corresponding to the algorithm logic needing to be upgraded needs to be independently upgraded during upgrading, and the upgrading efficiency is improved. The problems that the equipment end side occupies a large amount of resources and the downloading time is long when the function of the Internet of Things equipment is upgraded are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of the Internet of Things (IoT), and in particular to methods, devices, systems and electronic devices for functional upgrades applied to the IoT. Background Technology

[0002] In real-world scenarios, the functions (such as algorithm functions) of some IoT devices, such as cameras, are generally upgraded via OTA (Over-the-Air Technology). In practice, each function of an IoT device (such as an algorithm function) typically contains multiple different algorithmic logics (also called algorithm modules). Currently, when upgrading the functions of IoT devices, the different algorithmic logics involved in that function are packaged into a single package and upgraded as a whole.

[0003] However, when upgrading the functions of IoT devices, the method of packaging the different algorithm logics involved in the function into a whole package for upgrading often results in problems such as large resource consumption on the device side and long download time. Summary of the Invention

[0004] In view of this, this application provides a method, apparatus, system and electronic device for upgrading functions in the Internet of Things (IoT), so as to avoid packaging different algorithm logics involved in the function into a whole package for upgrading when upgrading IoT devices.

[0005] The technical solution provided in this application is as follows:

[0006] According to an embodiment of the first aspect of this application, a method for upgrading functionality in the Internet of Things (IoT) is provided. This method is applied to an IoT device and includes:

[0007] The algorithm platform obtains upgrade information related to the function to be upgraded of the IoT device; the upgrade information includes at least multiple algorithm upgrade package identifiers associated with the function to be upgraded, and resource usage information of the algorithm upgrade package corresponding to each algorithm upgrade package identifier; each algorithm upgrade package represents the corresponding algorithm logic, and different algorithm upgrade packages represent different algorithm logics;

[0008] The system detects whether the existing algorithm logic of the IoT device contains the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded. Based on the detection result, it determines the target algorithm upgrade package identifier to be used during the function upgrade from multiple algorithm upgrade package identifiers associated with the function to be upgraded. Specifically, if the detection result indicates that the existing algorithm logic of the IoT device contains the algorithm logic represented by an algorithm upgrade package associated with the function to be upgraded, and the algorithm upgrade package is not the latest upgrade package, then it is determined that the identifier of the algorithm upgrade package is not the target algorithm upgrade package identifier.

[0009] Detect whether the remaining resources in the IoT device support the resource usage information corresponding to the target algorithm upgrade package identifier. If so, download the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier; upgrade the function based on the target algorithm upgrade package.

[0010] According to an embodiment of the second aspect of this application, a function upgrade device for the Internet of Things (IoT) is provided. The device is applied to IoT devices and includes:

[0011] The obtaining unit is used to obtain upgrade information related to the function to be upgraded of the IoT device from the algorithm platform; the upgrade information includes at least multiple algorithm upgrade package identifiers associated with the function to be upgraded, and resource usage information of the algorithm upgrade package corresponding to each algorithm upgrade package identifier; each algorithm upgrade package represents the corresponding algorithm logic, and different algorithm upgrade packages represent different algorithm logics;

[0012] The determining unit is configured to detect whether the existing algorithm logic of the IoT device contains the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded, and to determine the target algorithm upgrade package identifier to be used during the function upgrade from multiple algorithm upgrade package identifiers associated with the function to be upgraded based on the detection result; wherein, when the detection result indicates that the existing algorithm logic of the IoT device contains the algorithm logic represented by an algorithm upgrade package associated with the function to be upgraded, and the algorithm upgrade package is not the latest upgrade package, then it is determined that the identifier of the algorithm upgrade package is not the target algorithm upgrade package identifier;

[0013] The upgrade unit is used to detect whether the remaining resources in the IoT device support the resource usage information corresponding to the target algorithm upgrade package identifier. If so, it downloads the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier and upgrades the function based on the target algorithm upgrade package.

[0014] According to an embodiment of a third aspect of this application, an electronic device is provided, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; the processor is configured to execute the machine-executable instructions to implement the method described in the first aspect.

[0015] According to an embodiment of the fourth aspect of this application, a function upgrade system for the Internet of Things is provided, comprising:

[0016] The service device is a central management device located locally or a remote cloud server. The service device is used as an algorithm platform to provide upgrade information related to the functions of IoT devices that need to be upgraded.

[0017] The IoT device is used to perform the method described in the first aspect.

[0018] As can be seen from the above technical solution, this application obtains upgrade information related to the function to be upgraded from the algorithm platform, and determines the target algorithm upgrade package identifier to be used during the function upgrade from multiple algorithm upgrade package identifiers carried in the upgrade information. If it is determined that the remaining resources in the IoT device can accommodate the target algorithm upgrade package, the corresponding target algorithm upgrade package is downloaded, and the IoT device is upgraded based on the target algorithm upgrade package. This application breaks away from the related technical concept of packaging different algorithm logics involved in the function into a single package for upgrade. Instead, it associates the algorithm function with multiple algorithm logics. During the upgrade, only the algorithm package corresponding to the algorithm logic to be upgraded needs to be upgraded independently, without packaging different algorithm logics into a single package for upgrade. This solves the problems of different algorithm logics not being able to share resources, large resource consumption on the device side, and long download time during IoT device function upgrades. Attached Figure Description

[0019] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the principles of this application.

[0020] Figure 1 This is a schematic diagram illustrating the functional upgrade of IoT devices in the related technologies provided in the embodiments of this application;

[0021] Figure 2 A flowchart illustrating a method for upgrading functions applied to the Internet of Things, as provided in an embodiment of this application.

[0022] Figure 3 This is a schematic diagram illustrating the functional sub-package upgrade of an IoT device provided in an embodiment of this application;

[0023] Figure 4 This is an interactive schematic diagram of the IoT device function upgrade method provided in the embodiments of this application;

[0024] Figure 5 This is a schematic diagram of the structure of an IoT device provided in an embodiment of this application;

[0025] Figure 6 A structural diagram of a functional upgrade device for the Internet of Things provided in this application embodiment;

[0026] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0027] Figure 8 This is a schematic diagram of a functional upgrade system applied to the Internet of Things, provided as an embodiment of this application. Detailed Implementation

[0028] To enable those skilled in the art to better understand the technical solutions provided in the embodiments of this application, and to make the above-mentioned objectives, features and advantages of the embodiments of this application more apparent and understandable, the technical solutions in the embodiments of this application will be further described in detail below with reference to the accompanying drawings.

[0029] IoT devices typically use OTA (Over-the-Air Technology) for upgrades in scenarios such as security vulnerability patching, performance optimization, feature iteration, and hardware adaptation.

[0030] OTA (Over-The-Air) technology is a technology that uses wireless communication networks (such as Wi-Fi, cellular networks, etc.) to remotely update the software or firmware of IoT devices. Upgrades can be completed without a physical connection to the device, and the update package can be pushed directly from the server to the terminal device.

[0031] The following is based on Figure 1 This paper describes methods for upgrading the functionality of IoT devices in related technologies.

[0032] Please refer to Figure 1 , Figure 1 A schematic diagram illustrating the functional upgrade of IoT devices in the related technologies provided in the embodiments of this application.

[0033] like Figure 1 As shown, in the related technologies, the functions of IoT devices in the algorithm marketplace (also known as the algorithm platform) are implemented by combining multiple algorithm logics (also known as algorithm modules). For example, function 1 is implemented by combining algorithm logic A, algorithm logic B, and algorithm logic C.

[0034] In this embodiment, the IoT device can be a smart home device such as a smart camera, smart door lock, or smart doorbell. Taking a smart camera as an example, the algorithm marketplace can include function 1 (such as human tracking algorithm function) and function 2 (such as vehicle tracking algorithm function). Function 1 is implemented by a combination of algorithm logic A (such as human detection algorithm logic), algorithm logic B (such as human-vehicle ReID algorithm logic), and algorithm logic C (such as human-vehicle tracking algorithm logic); function 2 is implemented by a combination of algorithm logic B, algorithm logic C, and algorithm logic D (such as vehicle detection algorithm logic).

[0035] In related technologies, the function upgrade method for camera devices is the whole package upgrade method. When upgrading a function, the different algorithm logics involved in the function are packaged into a whole package and upgraded in the whole package way. That is, the algorithm package corresponding to the function is deleted from the camera device and the algorithm upgrade package obtained from the algorithm store is downloaded again.

[0036] However, when upgrading the functions of IoT devices, the method of packaging the different algorithm logic involved in the function into a whole package for upgrading often causes problems such as different functions not being able to share algorithm logic resources, large resource consumption on the device side, and long download time.

[0037] For example, following the whole-package upgrade method in related technologies, even if the upgrade for function 1 only requires upgrading a single algorithm logic (such as algorithm logic B) within algorithm package 1, it is still necessary to delete all algorithm logics included in the entire algorithm package 1 (i.e., algorithm logic A, algorithm logic B, and algorithm logic C) and then download the algorithm upgrade package again for the upgrade. It is evident that this approach consumes significant resources in IoT devices during function upgrades and takes a long time to download the upgrade package.

[0038] Furthermore, in the example above, Function 1 and Function 2 actually share the same algorithm logic, namely Algorithm Logic B and Algorithm Logic C. According to the whole package upgrade scheme in related technologies, when upgrading Function 1 and Function 2, the corresponding algorithm upgrade package for Function 1 (including Algorithm Logic A, Algorithm Logic B, and Algorithm Logic C) and the corresponding algorithm upgrade package for Function 2 (including Algorithm Logic B, Algorithm Logic C, and Algorithm Logic D) must be downloaded separately. This will cause Algorithm Logic B and Algorithm Logic C to be downloaded repeatedly. Since Function 1 and Function 2 cannot reuse the same algorithm logic, it further increases the resource consumption in IoT devices.

[0039] Based on this, this application proposes a function upgrade method for the Internet of Things (IoT) to avoid packaging different algorithm logics involved in the function into a single package for upgrade when upgrading IoT devices.

[0040] Please refer to Figure 2 , Figure 2 A flowchart illustrating a method for upgrading functions applied to the Internet of Things, as provided in an embodiment of this application.

[0041] In this embodiment, the method can be applied to IoT devices as described above, such as smart cameras, smart locks, smart doorbells and other smart home devices, and this application does not impose any limitations on this.

[0042] like Figure 2 As shown, the method may include the following steps:

[0043] Step 201: Obtain upgrade information related to the functions to be upgraded in the IoT device from the algorithm platform.

[0044] In this embodiment, when the function upgrade trigger condition is met, the algorithm platform will send upgrade information related to the function to be upgraded to the corresponding IoT device. The algorithm platform here can be a server with a cloud-based algorithm marketplace deployed, etc., and this application does not impose any limitations on it.

[0045] It should be noted that the functional upgrade method for the Internet of Things proposed in this application can upgrade various functions such as operating system, firmware, application, security policy, configuration file, network connection, and algorithm function. The following description takes the algorithm function as an example. The upgrade methods for other functions can be implemented in a similar way, and will not be elaborated here.

[0046] As an example, the aforementioned algorithm function upgrade triggering condition may be determined when the R&D personnel release the algorithm upgrade package for the function to be upgraded in the algorithm platform after completing the security vulnerability repair or software function iteration for any function (for example, when the R&D personnel release a high-risk vulnerability repair upgrade package or a function iteration upgrade package in the algorithm platform, the algorithm platform can directly push the algorithm upgrade package to the IoT devices that have subscribed to the function); or when the user of the IoT device requests the corresponding algorithm upgrade package from the algorithm platform through the IoT device when subscribing to additional functions, the algorithm function upgrade triggering condition may be determined to be met (for example, when the user pays for advanced functions and requests to obtain the algorithm upgrade package corresponding to the function); or when the server pushes the latest algorithm upgrade package to the IoT devices according to a pre-set cycle to remind the users of the IoT devices to update the algorithm function (for example, pushing the latest algorithm upgrade package once a week), and this application does not limit this.

[0047] Unlike the whole package upgrade scheme in related technologies, in this embodiment, although the algorithm function is still associated with multiple algorithm logics, it is not necessary to package multiple algorithm logics into a whole package for upgrade during the upgrade process. Instead, each algorithm logic is packaged into a separate algorithm package. That is, each algorithm upgrade package represents the corresponding algorithm logic, and different algorithm upgrade packages represent different algorithm logics. Upgrades can be performed on individual algorithm packages.

[0048] In this embodiment, an algorithm logic (which can be referred to as business algorithm logic) is added to each function. The business algorithm logic is used to combine and call other algorithm logics (which can be referred to as functional algorithm logic) included in the function to implement the function.

[0049] In this embodiment, different functional algorithm logics can be called by different business algorithm logics. In this way, different functions can call the same functional algorithm logic through the business algorithm logic corresponding to the function, so that different functions can share the same functional algorithm logic, without storing multiple identical functional algorithm logics in the IoT device.

[0050] Since the algorithm platform stores multiple algorithm upgrade packages associated with each function, the corresponding functions to be upgraded in IoT devices are implemented through N+1 associated algorithm upgrade packages; N is greater than or equal to 1; among them, the N+1 algorithm upgrade packages include N algorithm logic packages and one business algorithm package. The algorithm logic represented by the algorithm logic package (i.e., the aforementioned functional algorithm logic) is used to implement part of the functions, and the algorithm logic represented by the business algorithm package (i.e., the aforementioned business algorithm logic) is used to combine and call the algorithm logic represented by the N algorithm logic packages to achieve the complete function; any algorithm logic package can be called by multiple business algorithm packages.

[0051] When an upgrade is needed for a specific function in an IoT device (i.e., when the algorithm platform meets the function upgrade trigger conditions), it sends upgrade information related to the function to be upgraded to the IoT device.

[0052] The upgrade information may include the identifiers of multiple algorithm upgrade packages associated with the function to be upgraded, as well as the resource usage information of the algorithm upgrade package corresponding to each algorithm upgrade package identifier.

[0053] In this embodiment, the identifiers of the multiple algorithm upgrade packages associated with the function to be upgraded are the identifiers of multiple algorithm upgrade packages among N+1 algorithm upgrade packages.

[0054] As an example, the multiple algorithm upgrade package identifiers associated with the function to be upgraded can be all the algorithm upgrade package identifiers associated with the function to be upgraded. This ensures that the format of the algorithm upgrade package identifiers sent each time is the same, which facilitates the management of the sent information and makes it easier for IoT devices to identify them.

[0055] As an example, the identifiers of the multiple algorithm upgrade packages associated with the function to be upgraded can also be the identifiers of the algorithm upgrade packages that need to be upgraded among the algorithm upgrade packages associated with the function to be upgraded. In this way, only the identifiers of the updated algorithm upgrade packages can be sent to reduce the amount of data transmission.

[0056] In this embodiment, the resource usage information of the algorithm upgrade package records the size of each algorithm upgrade package, which may specifically include the flash size, memory size, and storage model-specific space size of each algorithm upgrade package.

[0057] It should be noted that the upgrade information mentioned above does not include the upgrade packages themselves, but only the identifiers of the upgrade packages and the resource usage information of each upgrade package. The resource usage information and the upgrade package identifiers can be saved in JSON format and correspond to the functions.

[0058] This concludes the description of step 201. We will now proceed to step 202.

[0059] Step 202: Detect whether there is an algorithm logic represented by an algorithm upgrade package associated with the function to be upgraded in the existing algorithm logic of the IoT device. Based on the detection results, determine the target algorithm upgrade package identifier to be used when upgrading the function from multiple algorithm upgrade package identifiers associated with the function to be upgraded.

[0060] Specifically, if the detection result indicates that the existing algorithm logic of the IoT device contains an algorithm logic represented by an algorithm upgrade package that is associated with a function to be upgraded, and this algorithm upgrade package is not the latest upgrade package, then it is determined that the identifier of this algorithm upgrade package is not the identifier of the target algorithm upgrade package.

[0061] In this embodiment, after obtaining the upgrade information related to the function to be upgraded, it is possible to detect whether there is an algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded in the existing algorithm logic of the IoT device.

[0062] Specifically, methods for detecting whether there is an algorithm logic represented by an algorithm upgrade package associated with a function to be upgraded in the existing algorithm logic of an IoT device may include:

[0063] The algorithm upgrade package identifier associated with the function to be upgraded is compared with the identifier corresponding to the existing algorithm logic of the IoT device. If the identifier corresponding to the existing algorithm logic of the IoT device contains the algorithm upgrade package identifier associated with the function to be upgraded, then it is determined that the existing algorithm logic of the IoT device contains the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded. If the identifier corresponding to the existing algorithm logic of the IoT device does not contain the algorithm upgrade package identifier associated with the function to be upgraded, then it is determined that the existing algorithm logic of the IoT device does not contain the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded.

[0064] Furthermore, based on the detection results, the target algorithm upgrade package identifier that needs to be used during the function upgrade can be determined from multiple algorithm upgrade package identifiers associated with the function to be upgraded.

[0065] Specifically, if the detection result indicates that the existing algorithm logic of the IoT device does not contain the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded, then the identifier of the algorithm upgrade package is determined as the target algorithm upgrade package identifier.

[0066] It is easy to understand that if the algorithm logic represented by the algorithm upgrade package is not present in the existing algorithm logic of the IoT device, it means that the algorithm logic represented by the algorithm upgrade package is the newly added algorithm logic in the function, and the original IoT device did not store the algorithm logic. In this case, the algorithm upgrade package identifier can be directly identified as the target algorithm upgrade package identifier, and the target algorithm upgrade package is the algorithm upgrade package that needs to be downloaded.

[0067] If the detection result indicates that the existing algorithm logic of the IoT device contains an algorithm logic represented by an algorithm upgrade package that is related to a function that needs to be upgraded, then it is necessary to further determine whether the algorithm upgrade package is the latest upgrade package.

[0068] If so, identify the identifier of the algorithm upgrade package as the target algorithm upgrade package identifier;

[0069] If not, then it is determined that the identifier of the algorithm upgrade package is not the identifier of the target algorithm upgrade package.

[0070] In this embodiment, if the detection result indicates that the existing algorithm logic of the IoT device contains an algorithm logic represented by an algorithm upgrade package that is associated with a function to be upgraded, it means that the IoT device currently contains such algorithm logic. At this time, it is necessary to further determine which version is newer, the version of the algorithm logic in the IoT device or the version of the algorithm logic represented by the algorithm upgrade package.

[0071] If the algorithm upgrade package is the latest upgrade package, meaning the algorithm logic represented by the upgrade package is a newer version, then the algorithm logic needs to be upgraded. In this case, the identifier of the algorithm upgrade package can be determined as the target algorithm upgrade package identifier. If the algorithm upgrade package is not the latest upgrade package, meaning the algorithm logic currently existing in the IoT device is a newer version, then the algorithm logic does not need to be upgraded. In this case, the identifier of the algorithm upgrade package can be determined as not the target algorithm upgrade package identifier.

[0072] The upgrade information also includes the version number of the algorithm logic represented by each algorithm upgrade package identifier. Specific methods for determining whether an algorithm upgrade package is the latest upgrade package may include:

[0073] If the version number of the algorithm logic represented by the algorithm upgrade package is higher than the version number of the algorithm logic represented by the existing algorithm upgrade package on the IoT device, then the algorithm upgrade package is determined to be the latest upgrade package; otherwise, the algorithm upgrade package is determined not to be the latest upgrade package.

[0074] In this embodiment, the version number of the existing algorithm logic of the IoT device can be compared with the version number of the algorithm logic represented by the algorithm upgrade package to determine whether the algorithm upgrade package is the latest upgrade package.

[0075] The reason why the version number of the algorithm logic represented by the algorithm upgrade package is not higher than the version number of the algorithm logic represented by the current algorithm upgrade package in the IoT device may be that the algorithm logic represented by the algorithm upgrade package has been upgraded in another function upgrade that includes the algorithm logic, and the upgraded version of the algorithm logic was higher in the other function upgrade.

[0076] It should be noted that the algorithm logic of each function in this embodiment has backward compatibility, that is, the functions that can be implemented by the algorithm logic of the lower version can also be implemented by the algorithm logic of the higher version.

[0077] This concludes the description of step 202. We will now proceed to step 203.

[0078] Step 203: Detect whether the remaining resources in the IoT device support the resource usage information corresponding to the target algorithm upgrade package identifier. If so, download the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier; upgrade the function based on the target algorithm upgrade package.

[0079] In this embodiment, after determining the target algorithm upgrade package identifier, it is possible to further detect whether the remaining resources in the IoT device support the resource occupancy information corresponding to the target algorithm upgrade package identifier, that is, to detect whether the remaining space in the IoT device can accommodate the target algorithm upgrade package.

[0080] Specifically, the resource usage space of the target algorithm upgrade package can be determined based on the resource usage information of the target algorithm upgrade package; as an example, the resource usage space of the target algorithm upgrade package may include at least one of the flash size, memory size, and storage model-specific space size of the target algorithm upgrade package.

[0081] In this embodiment, if multiple target algorithm upgrade package identifiers are identified, it is necessary to detect whether the remaining resources in the IoT device support the sum of the resource occupancy information corresponding to all target algorithm upgrade package identifiers, that is, to determine whether the IoT device can accommodate all target algorithm upgrade packages.

[0082] If the free resource space in the IoT device is greater than or equal to the resource space occupied by the target algorithm upgrade package, it indicates that the remaining space in the IoT device can accommodate the target algorithm upgrade package.

[0083] It should be noted that since the resource footprint of the target algorithm upgrade package may include at least one of the flash size, memory size, and storage model-specific space size of the target algorithm upgrade package, the free resource space in the IoT device needs to be compared with the resource footprint of the target algorithm upgrade package in each of the above aspects.

[0084] For example, if the resource space occupied by the target algorithm upgrade package includes the flash size and memory size of the target algorithm upgrade package, then it is necessary to compare the flash size of the target algorithm upgrade package with the flash size of the free resource space in the IoT device, and compare the memory size of the target algorithm upgrade package with the memory size of the free resource space in the IoT device.

[0085] As an example, the free resource space in the IoT device can be the storage space in the IoT device that currently does not store data.

[0086] As an example, when upgrading a certain algorithm logic, the existing algorithm logic in the IoT device becomes ineffective, and the algorithm logic can be deleted. Therefore, the idle resource space in the IoT device can also refer to the storage space of the IoT device after the algorithm logic corresponding to the target algorithm upgrade package is deleted.

[0087] After determining that the algorithm upgrade package is the latest upgrade package, and when determining the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier to download, the method further includes: deleting the algorithm logic corresponding to the algorithm upgrade package currently existing on the IoT device.

[0088] If the free resource space in the IoT device is greater than or equal to the resource space occupied by the target algorithm upgrade package, it indicates that the free resource space in the IoT device can accommodate the target algorithm upgrade package. Therefore, the target algorithm upgrade package can be downloaded and the upgrade performed according to it. The specific methods for downloading and upgrading the target algorithm upgrade package will be detailed below and will not be repeated here.

[0089] If it is detected that the remaining resources in the IoT device do not support the resource usage information corresponding to the target algorithm upgrade package identifier, that is, the free resource space in the IoT device is less than the resource usage space of the target algorithm upgrade package (even after deleting the algorithm logic corresponding to the target algorithm upgrade package that is already in the IoT device), then the existing algorithm logic of other functions that are related to the IoT device but not related to the function to be upgraded can be deleted to release resources. Here, "other functions" refers to functions that have not been running within the set time period before the current moment.

[0090] In this embodiment, if the free resource space in the IoT device is less than the resource space occupied by the target algorithm upgrade package, it means that the remaining space after deleting the algorithm logic corresponding to the existing target algorithm upgrade package in the IoT device is still insufficient to accommodate the target algorithm upgrade package. In this case, it is advisable to delete some algorithm logic that is not currently in use in the IoT device and is not related to the current function (referred to as the algorithm logic to be deleted).

[0091] As an example, algorithm logic can be deleted according to the length of time it has been unused, for example, the algorithm logic with the longest unused time so far can be deleted first.

[0092] It should be noted that all algorithm logic to be deleted can be deleted at once, and then the free resource space can be compared with the resource space occupied by the target algorithm upgrade package. Alternatively, after deleting one or more algorithm logics to be deleted, the free resource space can be compared with the resource space occupied by the target algorithm upgrade package. If the free resource space is not less than the resource space occupied by the target algorithm upgrade package, the deletion of the algorithm logic to be deleted can be stopped.

[0093] If, after deleting all the algorithm logic to be deleted, the free resource space is still less than the resource space occupied by the target algorithm upgrade package, it indicates that the remaining space of the IoT device is insufficient to accommodate the target algorithm upgrade package. In this case, the target algorithm upgrade package will not be able to be downloaded from the server, and a corresponding insufficient space prompt message can be returned for visual display.

[0094] In this embodiment, if it is determined that the remaining space of the IoT device can accommodate the target algorithm upgrade package, then the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier is downloaded.

[0095] Specifically, the upgrade information also includes the download address of the algorithm upgrade package corresponding to each algorithm upgrade package identifier; and the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier, including:

[0096] Determine the download address of the target algorithm upgrade package based on the target algorithm upgrade package identifier;

[0097] Download the target algorithm upgrade package from the algorithm platform based on the download address of the target algorithm upgrade package.

[0098] In this embodiment, the upgrade of the function is completed after the target algorithm upgrade package is downloaded to the IoT device.

[0099] This completes the description of step 203.

[0100] This concludes the discussion on... Figure 2 The description.

[0101] This application obtains upgrade information related to the function to be upgraded from the algorithm platform, and determines the target algorithm upgrade package identifier required for the function upgrade from multiple algorithm upgrade package identifiers carried in the upgrade information. If it is determined that the remaining resources in the IoT device can accommodate the target algorithm upgrade package, the corresponding target algorithm upgrade package is downloaded, and the IoT device is upgraded based on the target algorithm upgrade package. This application breaks away from the related technical concept of packaging different algorithm logics involved in the function into a single package for upgrade. Instead, it associates algorithm functions with multiple algorithm logics. During upgrade, only the algorithm package corresponding to the algorithm logic to be upgraded needs to be upgraded independently, eliminating the need to package different algorithm logics into a single package for upgrade. This solves the problems of different algorithm logics not being able to share resources, large resource consumption on the device side, and long download times during IoT device function upgrades.

[0102] The following is combined Figure 3 , Figure 4 as well as Figure 5 This application provides an overall description of the functional upgrade method for the Internet of Things proposed in this application.

[0103] Please refer to Figure 3 , Figure 3 This is a schematic diagram illustrating the functional sub-package upgrade of an IoT device provided in an embodiment of this application.

[0104] like Figure 3 As shown, in the algorithm marketplace (algorithm platform), each function can be associated with multiple different algorithm logics. Each algorithm logic is packaged into an algorithm upgrade package, instead of packaging all algorithm logics into a single algorithm upgrade package as in related technologies.

[0105] Taking a smart camera as an example, the algorithm marketplace includes function 1 (human tracking) and algorithm function 2 (vehicle tracking). Function 1 (human tracking) consists of business algorithm package 1 (human tracking business), algorithm logic package A (human detection), algorithm logic package B (human-vehicle ReID), and algorithm logic package C (human-vehicle tracking). The core function of business algorithm package 1 is to combine the functions of algorithm logic packages A, B, and C to achieve the human tracking function. Function 2 (vehicle tracking) consists of business algorithm package 2 (vehicle tracking business), algorithm logic package B (human-vehicle ReID), algorithm logic package C (human-vehicle tracking), and algorithm logic package D (vehicle detection). The core function of business algorithm package 2 is to combine the functions of algorithm logic packages B, C, and D to achieve the vehicle tracking function.

[0106] As can be seen, a single function consists of N+1 algorithm packages, where N is the number of algorithm modules included in the current function. For example, function 1 consists of 4 algorithm upgrade packages, including 3 algorithm logic packages (algorithm logic package A, algorithm logic package B, and algorithm logic package C) and 1 business algorithm package (business algorithm package 1). Business algorithm package 1 is used to combine and call algorithm logic packages A, B, and C to implement the business logic of function 1. In this way, the same algorithm logic package can be called by different business algorithm packages. For example, algorithm logic packages B and C can be called by both business algorithm package 1 and business algorithm package 2, and can be applied to different functions simultaneously.

[0107] This concludes the discussion on... Figure 3 The description.

[0108] Please refer to Figure 4 , Figure 4 This is an interactive schematic diagram of the IoT device function upgrade method provided in the embodiments of this application.

[0109] like Figure 4 As shown, the algorithm marketplace (algorithm platform) first sends the upgrade information, which includes the identifiers of multiple algorithm upgrade packages associated with the functions to be upgraded and resource usage information, to the device (IoT device) in the form of a JSON file.

[0110] The device parses the JSON file and, according to... Figure 2 The proposed method identifies the target algorithm upgrade package to be downloaded and obtains the corresponding download link. Then, the corresponding algorithm upgrade package is downloaded from the algorithm marketplace based on the download link.

[0111] The following is combined Figure 5 The execution flow on the IoT device side is described.

[0112] Please refer to Figure 5 , Figure 5 This is a schematic diagram of the structure of an Internet of Things (IoT) device provided in an embodiment of this application.

[0113] like Figure 5 As shown, an IoT device may include a monitoring module, a resource management module, a decision-making module, and an execution module.

[0114] Specifically, the monitoring module can be used to monitor the status of IoT devices and the activation of algorithms. The status of IoT devices can include information such as whether the device is operating normally, whether the network is working properly, the number of cameras, and whether gimbal tracking is enabled.

[0115] The resource management module is used to collect statistics on available flash memory, memory size, and dedicated storage space for the storage model on the device.

[0116] The decision module is used to determine which local algorithm logic needs to be deleted and which target algorithm upgrade package needs to be downloaded.

[0117] In this embodiment, the algorithm upgrade package can be successfully downloaded if the following conditions are met:

[0118] (1) The algorithm logic represented by the target algorithm upgrade package does not exist on the device, or the version number of the algorithm logic corresponding to the target algorithm upgrade package on the device is lower than the version number of the algorithm logic represented by the target algorithm upgrade package.

[0119] (2) The total resources of the target algorithm package in the whole function shall not exceed the local spare resources of the device (the spare resources are the available resources after deleting the algorithm logic to be deleted and the algorithm logic corresponding to the target algorithm upgrade package). The resource usage information includes flash size, memory size, storage model dedicated space size, etc.

[0120] Among them, the algorithm logic to be deleted should be the algorithm logic whose related functions are not enabled or running (that is, the algorithm logic to be deleted cannot be the algorithm logic related to the function that is currently being upgraded, nor can it be the algorithm logic related to the function that is currently running).

[0121] As an example, when deleting algorithm logic, the algorithm logic can be sorted according to the duration of its inactivity. The longer the algorithm logic has been inactive, the more likely it will be deleted.

[0122] If all non-running algorithm logic is deleted, and the available resources on the device are still insufficient to meet the resource requirements of the target algorithm upgrade package to be downloaded, then the current algorithm function cannot be upgraded. In this case, a prompt message indicating that the upgrade cannot be completed can be generated and displayed visually on the IoT device.

[0123] The execution module is used to delete local algorithm logic and download new algorithm upgrade packages. Based on the information from the decision module, the execution module deletes the local algorithm logic that needs to be deleted, and requests the download link of the new algorithm upgrade package from the algorithm platform. The algorithm platform sends a compressed package of the new algorithm upgrade package, which the execution module downloads and verifies for integrity.

[0124] This concludes the discussion on... Figure 5 The description.

[0125] Please refer to Figure 6 , Figure 6 This is a structural diagram of a functional upgrade device for the Internet of Things (IoT) proposed in an embodiment of this application. The device is applied to IoT devices. Figure 6As shown, the device may include an acquisition unit 601, a determination unit 602, and an upgrade unit 603. Specifically, the device includes:

[0126] The obtaining unit 601 is used to obtain algorithm function upgrade information issued by the server. The algorithm function upgrade information includes the algorithm function that needs to be upgraded, the association between the algorithm function and each algorithm upgrade package, and the resource usage information of each algorithm upgrade package. Any algorithm function is associated with multiple algorithm upgrade packages, and multiple algorithm upgrade packages are used to implement the complete algorithm function.

[0127] The obtaining unit 601 is used to obtain upgrade information related to the function to be upgraded of the IoT device from the algorithm platform; the upgrade information includes at least multiple algorithm upgrade package identifiers associated with the function to be upgraded, and resource usage information of the algorithm upgrade package corresponding to each algorithm upgrade package identifier; each algorithm upgrade package represents the corresponding algorithm logic, and different algorithm upgrade packages represent different algorithm logics.

[0128] The determining unit 602 is used to detect whether there is an algorithm logic represented by an algorithm upgrade package associated with a function to be upgraded in the existing algorithm logic of the IoT device, and to determine the target algorithm upgrade package identifier to be used during the function upgrade from multiple algorithm upgrade package identifiers associated with the function to be upgraded based on the detection result; wherein, when the detection result indicates that there is an algorithm logic represented by an algorithm upgrade package associated with a function to be upgraded in the existing algorithm logic of the IoT device, and the algorithm upgrade package is not the latest upgrade package, then it is determined that the identifier of the algorithm upgrade package is not the target algorithm upgrade package identifier;

[0129] The upgrade unit 603 is used to detect whether the remaining resources in the IoT device support the resource usage information corresponding to the target algorithm upgrade package identifier. If so, it downloads the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier and upgrades the function based on the target algorithm upgrade package.

[0130] Optionally, the functions to be upgraded in the IoT device are implemented through N+1 associated algorithm upgrade packages; N is greater than or equal to 1; wherein, the N+1 algorithm upgrade packages include N algorithm logic packages and one business algorithm package. The algorithm logic represented by the algorithm logic package is used to implement part of the functions, and the algorithm logic represented by the business algorithm package is used to combine and call the algorithm logic represented by the N algorithm logic packages to achieve the complete functions; any algorithm logic package is allowed to be called by multiple business algorithm packages.

[0131] The identifiers of multiple algorithm upgrade packages associated with the function to be upgraded are the identifiers of multiple algorithm upgrade packages among N+1 algorithm upgrade packages;

[0132] And / or, the determining unit 602 is specifically used for:

[0133] If the detection result indicates that there is an algorithm logic represented by an algorithm upgrade package that is associated with a function to be upgraded in the current algorithm logic of the IoT device, then it is determined whether the algorithm upgrade package is the latest upgrade package.

[0134] If so, identify the identifier of the algorithm upgrade package as the target algorithm upgrade package identifier;

[0135] If the detection result indicates that the existing algorithm logic of the IoT device does not contain the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded, then the identifier of the algorithm upgrade package is determined as the target algorithm upgrade package identifier.

[0136] And / or, the upgrade information also includes the version number of the algorithm logic represented by the algorithm upgrade package corresponding to each algorithm upgrade package identifier; the determining unit 602 is specifically used for:

[0137] If the version number of the algorithm logic represented by the algorithm upgrade package is higher than the version number of the algorithm logic represented by the existing algorithm upgrade package on the IoT device, then the algorithm upgrade package is determined to be the latest upgrade package; otherwise, the algorithm upgrade package is determined not to be the latest upgrade package.

[0138] And / or, after determining that the algorithm upgrade package is the latest upgrade package, and when determining the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier, the upgrade unit 603 is further configured to:

[0139] Delete the algorithm logic corresponding to the existing algorithm upgrade package in the IoT device;

[0140] And / or, upgrade unit 603 is also used for:

[0141] If the remaining resources in the IoT device do not support the resource usage information corresponding to the target algorithm upgrade package identifier, then delete the existing algorithm logic of the IoT device that is related to other functions but not related to the function to be upgraded, in order to release resources.

[0142] Other functions refer to functions that were not activated during the set time period prior to the current moment.

[0143] And / or, the upgrade information also includes the download address of the algorithm upgrade package corresponding to each algorithm upgrade package identifier; the upgrade unit 603 is specifically used for:

[0144] Determine the download address of the target algorithm upgrade package based on the target algorithm upgrade package identifier;

[0145] Download the target algorithm upgrade package from the algorithm platform based on the download address of the target algorithm upgrade package.

[0146] This concludes the process. Figure 6 Description of a functional upgrade device applied to the Internet of Things.

[0147] This application also provides embodiments that... Figure 6 Hardware structure description of the illustrated device. This hardware structure is... Figure 7 The structure in the illustrated electronic device. Please refer to [link / reference]. Figure 7 , Figure 7 This is a structural diagram of an electronic device provided in an embodiment of this application. Figure 7 As shown, the hardware structure may include: a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.

[0148] Based on the same concept as the above method, this application also provides a machine-readable storage medium storing a plurality of computer instructions, which, when executed by a processor, can implement the method disclosed in the above examples of this application.

[0149] For example, the aforementioned machine-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, etc. For instance, machine-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.

[0150] Please refer to Figure 8 , Figure 8 This is a schematic diagram of a functional upgrade system for the Internet of Things provided in this embodiment.

[0151] like Figure 8 As shown, the system may include:

[0152] Service devices, which are either central management devices located locally or remote cloud servers, are used as algorithm platforms to provide upgrade information related to the functions of IoT devices that need to be upgraded.

[0153] Internet of Things (IoT) devices are used to perform tasks such as Figure 2 The described method for upgrading functions applied to the Internet of Things.

[0154] In this embodiment, the service device can be a virtual server based on a public cloud, such as a cloud server provided by a cloud service provider, or a central management device deployed locally, such as an enterprise-level server or other physical device. This application does not impose any restrictions on this.

[0155] In this embodiment, the IoT device can be an IoT device that has a need for functional upgrades, such as smart home devices, vehicle systems, industrial robots, smart wearable devices, and other IoT terminals. This application does not limit this.

[0156] It should be noted that the number of IoT devices managed by the same service device can be multiple (e.g., Figure 8 In a network of IoT devices (IoT devices 1, 2, ..., n), the service device can provide upgrade information related to the functions to be upgraded to multiple IoT devices. Each IoT device can then upgrade according to... Figure 2 The described method for upgrading functions applied to the Internet of Things upgrades the functions to be upgraded; the specific upgrade process will not be elaborated here.

[0157] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for upgrading functions applied to the Internet of Things, characterized in that, This method is applied to Internet of Things (IoT) devices, and includes: The algorithm platform obtains upgrade information related to the function to be upgraded of the IoT device; the upgrade information includes at least multiple algorithm upgrade package identifiers associated with the function to be upgraded, and resource usage information of the algorithm upgrade package corresponding to each algorithm upgrade package identifier; each algorithm upgrade package represents the corresponding algorithm logic, and different algorithm upgrade packages represent different algorithm logics; The system detects whether the existing algorithm logic of the IoT device contains the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded. Based on the detection result, it determines the target algorithm upgrade package identifier to be used during the function upgrade from multiple algorithm upgrade package identifiers associated with the function to be upgraded. Specifically, if the detection result indicates that the existing algorithm logic of the IoT device contains the algorithm logic represented by an algorithm upgrade package associated with the function to be upgraded, and the algorithm upgrade package is not the latest upgrade package, then it is determined that the identifier of the algorithm upgrade package is not the target algorithm upgrade package identifier. Detect whether the remaining resources in the IoT device support the resource usage information corresponding to the target algorithm upgrade package identifier. If so, download the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier; upgrade the function based on the target algorithm upgrade package.

2. The method according to claim 1, characterized in that, The functions to be upgraded in the IoT device are implemented through N+1 associated algorithm upgrade packages; N is greater than or equal to 1; wherein, the N+1 algorithm upgrade packages include N algorithm logic packages and one business algorithm package, the algorithm logic represented by the algorithm logic package is used to implement part of the functions, and the algorithm logic represented by the business algorithm package is used to combine and call the algorithm logic represented by the N algorithm logic packages to achieve the complete functions; any algorithm logic package is allowed to be called by multiple business algorithm packages; The identifiers of the multiple algorithm upgrade packages associated with the function to be upgraded are the identifiers of multiple algorithm upgrade packages among the N+1 algorithm upgrade packages.

3. The method according to claim 1, characterized in that, Based on the detection results, the target algorithm upgrade package identifier required for the function upgrade is determined from multiple algorithm upgrade package identifiers associated with the function to be upgraded, including: If the detection result indicates that the existing algorithm logic of the IoT device contains the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded, then it is determined whether the algorithm upgrade package is the latest upgrade package. If so, identify the identifier of the algorithm upgrade package as the target algorithm upgrade package identifier; If the detection result indicates that the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded does not exist in the existing algorithm logic of the IoT device, then the identifier of the algorithm upgrade package is determined as the target algorithm upgrade package identifier.

4. The method according to claim 3, characterized in that, The upgrade information also includes the version number of the algorithm logic represented by the algorithm upgrade package corresponding to each algorithm upgrade package identifier; the step of determining whether the algorithm upgrade package is the latest upgrade package includes: If the version number of the algorithm logic represented by the algorithm upgrade package is higher than the version number of the algorithm logic represented by the existing algorithm upgrade package in the IoT device, then the algorithm upgrade package is determined to be the latest upgrade package; otherwise, the algorithm upgrade package is determined not to be the latest upgrade package.

5. The method according to claim 1, characterized in that, After determining that the algorithm upgrade package is the latest upgrade package, and when determining the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier, the method further includes: Delete the algorithm logic corresponding to the existing algorithm upgrade package in the IoT device.

6. The method according to claim 1, characterized in that, The method further includes: If the remaining resources in the IoT device do not support the resource usage information corresponding to the target algorithm upgrade package identifier, then delete the existing algorithm logic of the IoT device that is associated with other functions but not associated with the function to be upgraded, in order to release resources; The other functions refer to functions that were not activated during the set time period prior to the current moment.

7. The method according to claim 1, characterized in that, The upgrade information also includes the download address of the algorithm upgrade package corresponding to each algorithm upgrade package identifier; downloading the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier includes: Based on the target algorithm upgrade package identifier, determine the download address of the target algorithm upgrade package; Download the target algorithm upgrade package from the algorithm platform based on the download address of the target algorithm upgrade package.

8. A functional upgrade device for the Internet of Things, characterized in that, This device is used in Internet of Things (IoT) devices and includes: The obtaining unit is used to obtain upgrade information related to the function to be upgraded of the IoT device from the algorithm platform; the upgrade information includes at least multiple algorithm upgrade package identifiers associated with the function to be upgraded, and resource usage information of the algorithm upgrade package corresponding to each algorithm upgrade package identifier; each algorithm upgrade package represents the corresponding algorithm logic, and different algorithm upgrade packages represent different algorithm logics; The determining unit is configured to detect whether the existing algorithm logic of the IoT device contains the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded, and to determine the target algorithm upgrade package identifier to be used during the function upgrade from multiple algorithm upgrade package identifiers associated with the function to be upgraded based on the detection result; wherein, when the detection result indicates that the existing algorithm logic of the IoT device contains the algorithm logic represented by an algorithm upgrade package associated with the function to be upgraded, and the algorithm upgrade package is not the latest upgrade package, then it is determined that the identifier of the algorithm upgrade package is not the target algorithm upgrade package identifier; The upgrade unit is used to detect whether the remaining resources in the IoT device support the resource usage information corresponding to the target algorithm upgrade package identifier. If so, it downloads the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier and upgrades the function based on the target algorithm upgrade package.

9. The apparatus according to claim 8, characterized in that, The functions to be upgraded in the IoT device are implemented through N+1 associated algorithm upgrade packages; N is greater than or equal to 1; wherein, the N+1 algorithm upgrade packages include N algorithm logic packages and one business algorithm package, the algorithm logic represented by the algorithm logic package is used to implement part of the functions, and the algorithm logic represented by the business algorithm package is used to combine and call the algorithm logic represented by the N algorithm logic packages to achieve the complete functions; any algorithm logic package is allowed to be called by multiple business algorithm packages; The identifiers of the multiple algorithm upgrade packages associated with the function to be upgraded are the identifiers of multiple algorithm upgrade packages among the N+1 algorithm upgrade packages; And / or, the determining unit is specifically used for: If the detection result indicates that the existing algorithm logic of the IoT device contains the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded, then it is determined whether the algorithm upgrade package is the latest upgrade package. If so, identify the identifier of the algorithm upgrade package as the target algorithm upgrade package identifier; If the detection result indicates that the algorithm logic represented by the algorithm upgrade package associated with the function to be upgraded does not exist in the existing algorithm logic of the IoT device, then the identifier of the algorithm upgrade package is determined as the target algorithm upgrade package identifier; And / or, the upgrade information further includes the version number of the algorithm logic represented by the algorithm upgrade package corresponding to each algorithm upgrade package identifier; the determining unit is specifically used for: If the version number of the algorithm logic represented by the algorithm upgrade package is higher than the version number of the algorithm logic represented by the existing algorithm upgrade package in the IoT device, then the algorithm upgrade package is determined to be the latest upgrade package; otherwise, the algorithm upgrade package is determined not to be the latest upgrade package. And / or, after determining that the algorithm upgrade package is the latest upgrade package, and when determining the target algorithm upgrade package corresponding to the target algorithm upgrade package identifier, the upgrade unit is further configured to: Delete the algorithm logic corresponding to the existing algorithm upgrade package in the IoT device; And / or, the upgrade unit is further configured to: If the remaining resources in the IoT device do not support the resource usage information corresponding to the target algorithm upgrade package identifier, then delete the existing algorithm logic of the IoT device that is associated with other functions but not associated with the function to be upgraded, in order to release resources; The other functions refer to functions that were not activated during the set time period prior to the current moment; And / or, the upgrade information also includes the download address of the algorithm upgrade package corresponding to each algorithm upgrade package identifier; the upgrade unit is specifically used for: Based on the target algorithm upgrade package identifier, determine the download address of the target algorithm upgrade package; Download the target algorithm upgrade package from the algorithm platform based on the download address of the target algorithm upgrade package.

10. An electronic device, characterized in that, include: A processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor; The processor is configured to execute machine-executable instructions to implement the method according to any one of claims 1 to 7.

11. A functional upgrade system for the Internet of Things, characterized in that, include: The service device is a central management device located locally or a remote cloud server. The service device is used as an algorithm platform to provide upgrade information related to the functions of IoT devices that need to be upgraded. The Internet of Things device is used to perform the method as described in any one of claims 1 to 7.