Internet of Things terminal upgrading system and method based on differential packet algorithm

Through differential package algorithm and OTA technology, an upgrade strategy for IoT terminals is generated, which solves the problems of low efficiency and high failure risk of IoT terminal upgrades, and achieves efficient and accurate IoT terminal upgrades.

CN120302278APending Publication Date: 2025-07-11GUANGZHOU KETENG INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510734586.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-04
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

In the prior art, the upgrade method of IoT terminals is inefficient and difficult to meet the needs of smart grids for efficient and precise management, and the equipment may easily become bricked after the upgrade failure.

Method used

Differential package algorithm is used to generate differential files of IoT terminals, analyze abnormal environment data, generate upgrade strategies, and batch upgrade IoT terminals through OTA technology to avoid mutually exclusive effects of functions and optimize the upgrade sequence.

Benefits of technology

It improves the upgrade efficiency and accuracy of IoT terminals, reduces the risk of upgrade failure, and realizes efficient management of smart grids.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120302278A_ABST
    Figure CN120302278A_ABST
Patent Text Reader

Abstract

The invention discloses an internet-of-things terminal upgrading system and method based on a differential packet algorithm, and relates to the technical field of internet-of-things terminal upgrading, and the method comprises the steps: S10, generating a to-be-upgraded version of an internet-of-things terminal about an upgrading object; s20, obtaining an abnormal difference file corresponding to each marking function and corresponding abnormal environment data when the terminal of the Internet of Things upgrades each marking function; s30, generating an upgrading strategy of each function of the Internet of Things terminal; and S40, carrying out upgrading operation on the Internet of Things terminal. According to the method, the functions of the Internet of Things terminal are upgraded by adopting a synchronous upgrading or independent upgrading method, the upgrading efficiency of the system on the Internet of Things terminal is improved, the mutual exclusion influence between the functions is considered, the upgrading method of the Internet of Things terminal is reselected after the marked function upgrading fails, and the upgrading efficiency of the system on the Internet of Things terminal is improved. The Internet of Things terminal is prevented from being changed, and the upgrading effect of the system on the Internet of Things terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things (IoT) terminal upgrades, and particularly to an IoT terminal upgrade system and method based on a differential packet algorithm. Background Art

[0002] As the running time increases, various problems will emerge during the use of IoT terminals. Technicians need to maintain or upgrade them, but the characteristics of the terminal devices being gradually miniaturized and widely distributed in space make it inconvenient to disassemble.

[0003] Currently, relying on the method of manually upgrading devices one by one, in the face of the large-scale demand for a large number of device accesses, obvious lag and limitations have emerged, and it is difficult to support the actual requirements of the smart grid for efficient and precise management. Currently, the method of upgrading functions one by one is usually used to achieve device upgrades, which increases the upgrade time of the devices, or the method of synchronously upgrading functions is used to perform upgrade operations on the devices, without considering the mutually exclusive effects between functions. In addition, after the device upgrade fails, the same upgrade method is often used to achieve the re-upgrade of the device, which will cause the device to become "bricked". Summary of the Invention

[0004] The purpose of the present invention is to provide an IoT terminal upgrade system and method based on a differential packet algorithm to solve the problems raised in the prior art.

[0005] To achieve the above purpose, the present invention provides the following technical solution: An IoT terminal upgrade method based on a differential packet algorithm, the method comprising: S10: Generate a differential file of the IoT terminal for the upgrade object according to the upgrade object of the IoT terminal. The upgrade object includes firmware, applications, and algorithms. Perform a differential reduction operation on the differential file and the current version of the IoT terminal for the upgrade object to generate a version to be upgraded of the IoT terminal for the upgrade object; By determining the upgrade object of the IoT terminal, it is possible to ensure that the version updates and tracking of different objects do not interfere with each other; S20: Flash the version to be upgraded of the IoT terminal for the upgrade object to complete the upgrade of the IoT terminal, control the upgraded IoT terminal to start running, mark the upgrade functions that the upgraded IoT terminal cannot implement, and obtain the abnormal differential files corresponding to each marked function, as well as the abnormal environment data corresponding to the IoT terminal when upgrading each marked function; S30: According to the abnormal environment data, screen out the associated marked functions of each marked function and generate an upgrade strategy for each function of the IoT terminal; S40: Determine the optimal upgrade order of each function of the IoT terminal according to the upgrade time and upgrade strategy of each function of the IoT terminal. Based on the determination result, perform an upgrade operation on the IoT terminal.

[0006] Further, the S20 includes: S201: The abnormal differential file refers to a differential package obtained by extracting differences between the to-be-upgraded version of each marked function and the target upgraded version of each marked function using a differential algorithm; S202: Number each abnormal differential file, and the numbering result is: i = 1, 2, …, m; m represents the total number of abnormal differential files, and the change of the marked function is the same as the number corresponding to the abnormal differential file corresponding to the marked function; For the marked function i that cannot be implemented alone, store the number i in the set M to obtain the first marked function set M; If the marked function i can be implemented alone and cannot be implemented when other marked functions are superimposed, and the superimposed interval time of the function is d, when the marked function i cannot be implemented, take the number p of the most recently superimposed marked function and the number i as a group of numbers, and the specific format is: i p , take i p and store it in the set N to obtain the second marked function set N, where p = 1, 2, …, m and p < i; S203: Obtain the implementation environment data of each marked function corresponding to the numbers stored in the first marked function set M to obtain the first implementation environment data of each marked function, and use the first implementation environment data in the first implementation environment data of the marked function i that is inconsistent with the standard implementation environment data of the marked function i as the abnormal environment data i of the marked function i. The implementation environment data includes the storage space size W occupied when the function is implemented, the implementation logic L of the function, and the abnormal degree C of data migration; The calculation method of the data migration degree is: obtain the abnormal differential data i corresponding to the abnormal differential file i, and identify the abnormal data i in the abnormal differential data i; The abnormal data i includes duplicate data existing in the to-be-upgraded data of the marked function i, missing data of the to-be-upgraded data of the marked function i compared with the target upgraded data of the marked function i, and data that is inconsistent in comparison between the to-be-upgraded data of the marked function i and the target upgraded data of the marked function i; Calculate the ratio between the total amount of the abnormal data i and the total amount of the target upgraded data to obtain the data migration degree of the marked function i; For the number i stored in the second marked function set pObtain the implementation environment data when the corresponding marking function i and marking function p are executed together to obtain the second implementation environment data. Integrate the second implementation environment data that is inconsistent with the standard implementation environment data of marking function i in the second implementation environment data and the second implementation environment data that is inconsistent with the standard implementation environment data of marking number p in the second implementation environment data to obtain the abnormal environment data ip when marking function i and marking function p are executed together; The abnormal environment data ip includes the storage space size W occupied by marking function i when marking function i and marking function p are executed together i 、the implementation logic L of marking function i i 、the implementation logic L of marking function p p and the data migration degree C corresponding to the implementation of marking function i i . Analyze the upgrade impact situation between functions through the environment data corresponding to the successful and failed upgrades of the functions, which is conducive to improving the upgrade efficiency of the functions and avoiding secondary upgrade failures caused by upgrading according to the same upgrade method. The data stored in the abnormal environment data can reflect the reasons for the upgrade failures of each marking function of the Internet of Things terminal.

[0007] Further, the S30 includes: S301: Determine whether there is an opposite logic between the implementation logic L stored in the abnormal environment data ip i and the implementation logic L p . If so, regard marking function p as the reverse associated marking function of marking function i; if not, execute step S302; S302: Obtain the standard implementation environment data when marking function i is implemented. The standard implementation environment data includes the storage space size W´ occupied by marking function i and the data migration abnormal degree C´ corresponding to the implementation of marking function i, C´ = 0. Calculate the difference w i between W i and W´ i . If w ip < 0, then let R i = 1 - exp(w i ); if w ip > 0, then let R i = exp(-w ip ), where R represents the influence coefficient of marking function p on marking function i; ip Taking R i as the base and C´ - C ip as the exponent, construct an exponential function to calculate the correlation coefficient U of marking function p on marking function i; ip If Uip then the marking function p is taken as the forward associated marking function of the marking function i; If U ip < R ip then the marking function p is taken as the reverse associated marking function of the marking function i; S303: Generate an upgrade strategy for each function of the IoT terminal.

[0008] Furthermore, the specific method for the S303 to generate an upgrade strategy for each function of the IoT terminal is as follows: If the marking function i has a reverse associated marking function, the IoT terminal upgrades the marking function i alone; If the marking function i has a forward associated marking function, the IoT terminal can synchronously upgrade the marking function i and the forward associated marking function of the marking function i; The IoT terminal upgrades the marking functions corresponding to each number stored in the first marking function set M separately; The IoT terminal upgrades the unmarked functions using the separate upgrade method or the synchronous upgrade method. According to the generated upgrade strategy, the OTA technology can be used to batch upgrade the same type of IoT terminals. The OTA technology is a technology for remotely upgrading devices through a wireless network.

[0009] According to the generated IoT terminal upgrade strategy, it is beneficial to improve the upgrade rate of the IoT terminal, and when the upgrade of a certain marking function fails, the reason for the upgrade failure of the marking function can be accurately analyzed based on the forward associated marking function or the reverse associated marking function of the marking function.

[0010] Furthermore, the S40 includes: S401: Obtain the upgrade time T of the upgrade function j of the IoT terminal j , when the upgrade function j of the IoT terminal can only be upgraded using the separate upgrade method, determine the upgrade order of the upgrade function j of the IoT terminal in descending order of the storage space occupied during operation. j = 1, 2,..., n represents the numbers corresponding to each upgrade function of the IoT terminal, and n represents the total number of upgrade functions; S402: When the upgrade function j of the IoT terminal can be upgraded using the synchronous upgrade method and the upgrade function j of the IoT terminal has a forward associated marking function, collect the storage space size W j occupied when the upgrade function j of the IoT terminal and the forward associated marking function of the upgrade function j of the IoT terminal are executed together. According to W q -W j determine the upgrade order of the upgrade function j of the IoT terminal and the forward associated marking function of the upgrade function j of the IoT terminal; If 0 < W q -W j <f, then after the upgrade of the IoT terminal upgrade function q, the IoT terminal upgrade function j and the positive association marking function of the IoT terminal upgrade function j can be upgraded. Otherwise, after the upgrade of the IoT terminal upgrade function q, the IoT terminal upgrade function j and the positive association marking function of the IoT terminal upgrade function j cannot be upgraded. W q represents the remaining storage space size of the IoT terminal when the IoT terminal upgrade function q is upgraded. f represents the error value. Based on this method, it is possible to avoid the upgrade failure of the two upgrade functions due to insufficient storage space at the upgrade intersection; S403: When the IoT terminal upgrade function j can be upgraded by both the synchronous upgrade method and the individual upgrade method, take the IoT terminal upgrade function j as the positive association marking function of a randomly selected marking function with a positive association marking function, and determine the upgrade order of the IoT terminal upgrade function j according to the operation in step S402; S404: According to the upgrade order of each upgrade function of the IoT terminal determined in steps S401 to S403, and the upgrade time of each upgrade function of the IoT terminal, use the summation method to determine the upgrade time of the IoT terminal, and perform the upgrade operation on the IoT terminal according to the upgrade order corresponding to the shortest upgrade time.

[0011] An IoT terminal upgrade system based on the differential package algorithm, the system includes a differential reduction module, an abnormal environment data acquisition module, an upgrade policy generation module, and an IoT terminal upgrade module; The differential reduction module is used to generate a to-be-upgraded version of the IoT terminal for the upgrade object; The abnormal environment data acquisition module is used to acquire the abnormal differential files corresponding to each marking function, and the abnormal environment data corresponding to the IoT terminal when upgrading each marking function; The upgrade policy generation module is used to generate upgrade policies for each function of the IoT terminal; The IoT terminal upgrade module is used to perform the upgrade operation on the IoT terminal.

[0012] Furthermore, the differential reduction module includes a differential file generation unit and a differential reduction unit; The differential file generation unit generates a differential file of the IoT terminal for the upgrade object according to the upgrade object of the IoT terminal; The differential reduction unit performs a differential reduction operation on the differential file and the current version of the IoT terminal for the upgrade object to generate a to-be-upgraded version of the IoT terminal for the upgrade object.

[0013] Further, the abnormal environment data acquisition module includes an abnormal difference file acquisition unit, a function marking unit, a marked function set analysis unit, and an abnormal environment data acquisition unit; The abnormal difference file acquisition unit uses a difference algorithm to extract differences between the to-be-upgraded versions of each marked function and the target upgraded versions of each marked function to obtain an abnormal difference file; The function marking unit marks the upgrade functions that cannot be implemented by the IoT terminal after the upgrade of the IoT terminal; The marked function set analysis unit obtains a first marked function set and a second marked function set according to whether there are additional conditions when the marked function cannot be implemented; The abnormal environment data acquisition unit obtains abnormal environment data through a comparative analysis method.

[0014] Further, the upgrade strategy generation module includes a judgment unit, a correlation coefficient calculation unit, and an upgrade strategy generation unit; The judgment unit judges whether there is a reverse logic between the two implementation logics stored in the abnormal environment data, and analyzes whether there is a reverse associated marked function for the marked function i according to the judgment result; When there is no reverse associated marked function for the marked function i, the correlation coefficient calculation unit calculates the correlation coefficient between the marked function i and the marked function p according to the standard implementation environment data when the marked function a is implemented, and determines the association type between the marked function i and the marked function p according to the calculation result; The upgrade strategy generation unit generates an upgrade strategy for the IoT terminal according to the situation where there is an associated marked function for the marked function, the situation where the marked function is implemented alone, and the situation where the IoT function is marked.

[0015] Further, the IoT terminal upgrade module collects the upgrade times of each function of the IoT terminal, determines the optimal upgrade order of each function of the IoT terminal in combination with the upgrade strategies of each function of the IoT terminal, and performs an upgrade operation on the IoT terminal based on the determined result.

[0016] Compared with the prior art, the beneficial effects of the present invention are: 1. According to the generated upgrade strategies for each function of the IoT terminal, the present invention uses the OTA technology to batch upgrade the same type of IoT terminals. Compared with the method of relying on manual one-by-one device upgrade, it realizes efficient and precise management of the smart grid.

[0017] 2. By analyzing the logical differences and correlation coefficients between two marking functions, the present invention analyzes the associated marking functions of the marking functions, determines the association types of the associated marking functions, and based on this, uses the method of synchronous upgrade or separate upgrade to perform upgrade operations on each function of the Internet of Things terminal. Compared with the method of upgrading functions one by one, the upgrade efficiency of the system for the Internet of Things terminal is improved, and the mutually exclusive effects existing between functions are taken into account.

[0018] 3. After the upgrade of the Internet of Things terminal fails, the present invention analyzes the reasons for the upgrade failure of the marking function according to the abnormal environment parameters of the marking function, and based on the analysis results, reselects the upgrade method of the Internet of Things terminal, avoiding the Internet of Things terminal from becoming a brick, and improving the upgrade effect of the system for the Internet of Things terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of the working process of an Internet of Things terminal upgrade method based on the differential package algorithm of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0020] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0021] As Figure 1 shown, the present invention provides a technical solution for an Internet of Things terminal upgrade system and method based on the differential package algorithm. An Internet of Things terminal upgrade method based on the differential package algorithm, the method includes: S10: According to the upgrade object of the Internet of Things terminal, generate a differential file of the Internet of Things terminal with respect to the upgrade object. The differential file refers to a differential package obtained by using the differential algorithm to extract the differences between the target version of the Internet of Things terminal with respect to the upgrade object and the current version of the Internet of Things terminal with respect to the upgrade object. The upgrade object includes firmware, applications, and algorithms. Perform a differential reduction operation on the differential file and the current version of the Internet of Things terminal with respect to the upgrade object to generate a version to be upgraded of the Internet of Things terminal with respect to the upgrade object. The Internet of Things terminal includes intelligent terminals and networked information collection terminals S20: Flash the version to be upgraded of the Internet of Things terminal with respect to the upgrade object to complete the upgrade of the Internet of Things terminal, control the upgraded Internet of Things terminal to start running, mark the upgrade functions that cannot be realized by the upgraded Internet of Things terminal, and obtain the abnormal differential files corresponding to each marking function, as well as the abnormal environment data corresponding to the Internet of Things terminal when upgrading each marking function; S20 includes: S201: The abnormal differential file refers to the differential package obtained by extracting the differences between the to-be-upgraded version of each marked function and the target upgraded version of each marked function using the differential algorithm; S202: Number each abnormal differential file, and the numbering result is: i = 1, 2, …, m; m represents the total number of abnormal differential files, and the change of the marked function is the same as the number corresponding to the abnormal differential file corresponding to the marked function; For the marked function i that cannot be implemented alone, store the number i in the set M to obtain the first marked function set M; If the marked function i can be implemented alone and cannot be implemented when other marked functions are superimposed, where other marked functions refer to marked functions other than the marked function i, the superposition interval time of the functions is d. When the marked function i cannot be implemented, use the number p of the most recently superimposed marked function and the number i as a group of numbers, and the specific format is: i p , and store i p in the set N to obtain the second marked function set N, where p = 1, 2, …, m and p < i; it is assumed that the network is always in a stable state when the marked function is implemented; S203: Obtain the implementation environment data of the marked functions corresponding to the numbers stored in the first marked function set M to obtain the first implementation environment data of each marked function. Use the first implementation environment data in the first implementation environment data of the marked function i that is inconsistent with the standard implementation environment data of the marked function i as the abnormal environment data i of the marked function i. The implementation environment data includes the storage space size W occupied when the function is implemented, the implementation logic L of the function, and the data migration anomaly degree C; the standard implementation environment data refers to the environment data corresponding to when the marked function can be implemented; The calculation method of the data migration degree is: obtain the abnormal differential data i corresponding to the abnormal differential file i, and identify the abnormal data i in the abnormal differential data i; The abnormal data i includes duplicate data existing in the to-be-upgraded data of the marked function i, missing data of the to-be-upgraded data of the marked function i compared with the target upgraded data of the marked function i, and data that is inconsistent in comparison between the to-be-upgraded data of the marked function i and the target upgraded data of the marked function i; the to-be-upgraded data of the marked function i refers to the data corresponding to the to-be-upgraded version of the marked function i, and the target upgraded data of the marked function i refers to the data corresponding to the target upgraded version of the marked function i; Calculate the ratio between the total amount of the abnormal data i and the total amount of the target upgraded data to obtain the data migration degree of the marked function i; For the number i stored in the second marked function set pObtain the implementation environment data when the corresponding marking function i and marking function p are executed together to obtain the second implementation environment data. Integrate the second implementation environment data that is inconsistent with the standard implementation environment data of marking function i and the second implementation environment data that is inconsistent with the standard implementation environment data of marking number p in the second implementation environment data to obtain the abnormal environment data ip when marking function i and marking function p are executed together; The abnormal environment data ip includes the storage space size W occupied by marking function i when marking function i and marking function p are executed together i and the implementation logic L of marking function i i and the implementation logic L of marking function p p and the data migration degree C corresponding to the implementation of marking function i i ; S30: According to the abnormal environment data, screen out the associated marking functions of each marking function and generate an upgrade strategy for each function of the Internet of Things terminal; S30 includes: S301: Determine whether there is an opposite logic between the implementation logic L stored in the abnormal environment data ip i and the implementation logic L p . The opposite logic means that the two functions are logically mutually exclusive. If so, regard marking function p as the reverse associated marking function of marking function i. If not, execute step S302; S302: Obtain the standard implementation environment data when marking function i is implemented. The standard implementation environment data includes the storage space size W' occupied by marking function i and the abnormal degree of data migration C' corresponding to the implementation of marking function i, C' = 0. Calculate the difference w i between W i and W'. If w i < 0, then let R ip = 1 - exp(w i ), if w i > 0, then let R ip = exp(-w i ), where R ip represents the influence coefficient of marking function p on marking function i, and exp() represents the exponential function with e as the base and e = 2.73; Construct an exponential function with R ip as the base and C' - C i as the exponent to calculate the correlation coefficient U ip of marking function p on marking function i; If U ip = R ip, then the marking function p is taken as the forward associated marking function of the marking function i; If U ip <R ip , then the marking function p is taken as the reverse associated marking function of the marking function i; S303: Generate the upgrade strategy for each function of the Internet of Things terminal. The specific method is as follows: If the marking function i has a reverse associated marking function, then the Internet of Things terminal upgrades the marking function i alone; If the marking function i has a forward associated marking function, then the Internet of Things terminal can synchronously upgrade the marking function i and the forward associated marking function of the marking function i; The Internet of Things terminal upgrades the marking functions corresponding to each number stored in the first marking function set M alone; The Internet of Things terminal upgrades the unmarked functions by using the single upgrade method or the synchronous upgrade method; S40: Determine the optimal upgrade order for each function of the Internet of Things terminal according to the upgrade time and upgrade strategy of each function of the Internet of Things terminal. Based on the determination result, perform the upgrade operation on the Internet of Things terminal; S40 includes: S401: Obtain the upgrade time T of the upgrade function j of the Internet of Things terminal j , when the upgrade function j of the Internet of Things terminal can only be upgraded by using the single upgrade method, determine the upgrade order of the upgrade function j of the Internet of Things terminal in the order from largest to smallest according to the storage space size occupied by the upgrade function j of the Internet of Things terminal during operation. j = 1, 2,..., n represents the numbers corresponding to each upgrade function of the Internet of Things terminal, and n represents the total number of upgrade functions; S402: When the upgrade function j of the Internet of Things terminal can be upgraded by using the synchronous upgrade method and the upgrade function j of the Internet of Things terminal has a forward associated marking function, collect the storage space size W occupied by the upgrade function j of the Internet of Things terminal and the forward associated marking function of the upgrade function j of the Internet of Things terminal when they are executed together j , and determine the upgrade order of the upgrade function j of the Internet of Things terminal and the forward associated marking function of the upgrade function j of the Internet of Things terminal according to W q -W j ; If 0 < W q -W j <f, then the upgrade function j of the Internet of Things terminal and the forward associated marking function of the upgrade function j of the Internet of Things terminal can be upgraded after the upgrade function q of the Internet of Things terminal is upgraded. Otherwise, the upgrade function j of the Internet of Things terminal and the forward associated marking function of the upgrade function j of the Internet of Things terminal cannot be upgraded after the upgrade function q of the Internet of Things terminal is upgraded. W qIt represents the remaining storage space size of the Internet of Things (IoT) terminal when the IoT terminal upgrade function q is being upgraded, and f represents the error value. There may be multiple upgrade sequences for the IoT terminal upgrade function j in this step. S403: When the IoT terminal upgrade function j can be upgraded using both the synchronous upgrade method and the individual upgrade method, the IoT terminal upgrade function j is taken as the positive correlation marking function of a randomly selected marking function with a positive correlation marking function, and the upgrade sequence of the IoT terminal upgrade function j is determined according to the operations in step S402. S404: Based on the upgrade sequences of each IoT terminal upgrade function determined in steps S401 to S403, and the upgrade times of each IoT terminal upgrade function, the upgrade time of the IoT terminal is determined using the summation method, and the IoT terminal is upgraded according to the upgrade sequence corresponding to the shortest upgrade time.

[0022] An IoT terminal upgrade system based on the differential package algorithm, the system includes a differential reduction module, an abnormal environment data acquisition module, an upgrade strategy generation module, and an IoT terminal upgrade module; The differential reduction module is used to generate the to-be-upgraded version of the IoT terminal regarding the upgrade object. The differential reduction module includes a differential file generation unit and a differential reduction unit; The differential file generation unit generates a differential file of the IoT terminal regarding the upgrade object according to the upgrade object of the IoT terminal. The differential reduction unit performs a differential reduction operation on the differential file and the current version of the IoT terminal regarding the upgrade object to generate the to-be-upgraded version of the IoT terminal regarding the upgrade object. The abnormal environment data acquisition module is used to acquire the abnormal differential files corresponding to each marking function, and the abnormal environment data corresponding to the IoT terminal when upgrading each marking function; The abnormal environment data acquisition module includes an abnormal differential file acquisition unit, a function marking unit, a marking function set analysis unit, and an abnormal environment data acquisition unit; The abnormal differential file acquisition unit uses the differential algorithm to perform difference extraction on the to-be-upgraded version of each marking function and the target upgrade version of each marking function to obtain the abnormal differential file; The function marking unit marks the upgrade functions that the IoT terminal cannot implement after the IoT terminal is upgraded; The marking function set analysis unit obtains the first marking function set and the second marking function set according to whether there are additional conditions when the marking function cannot be implemented, where the additional condition indicates that the reason for the marking function not being able to be implemented is the superposition of other marking functions; The abnormal environment data acquisition unit obtains the abnormal environment data through a comparative analysis method; The upgrade strategy generation module is used to generate upgrade strategies for each function of the IoT terminal; The upgrade strategy generation module includes a judgment unit, a correlation coefficient calculation unit, and an upgrade strategy generation unit; The judgment unit judges whether there is an opposite logic between the two implementation logics stored in the abnormal environment data, and based on the judgment result, analyzes whether the marked function i has a reverse associated marked function; When the marked function i does not have a reverse associated marked function, the correlation coefficient calculation unit calculates the correlation coefficient between the marked function i and the marked function p according to the standard implementation environment data when the marked function a is implemented, and determines the association type between the marked function i and the marked function p according to the calculation result. The association types include positive association and reverse association; The upgrade strategy generation unit generates an upgrade strategy for the IoT terminal according to the situation where the marked function has an associated marked function, the situation where the marked function is implemented alone, and the situation where the IoT function is marked; The IoT terminal upgrade module is used to perform upgrade operations on the IoT terminal; The IoT terminal upgrade module collects the upgrade times of each function of the IoT terminal, determines the optimal upgrade order of each function of the IoT terminal in combination with the upgrade strategies of each function of the IoT terminal, and performs upgrade operations on the IoT terminal based on the determined result.

[0023] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and without departing from the spirit or basic characteristics of the present invention, the present invention can be implemented in other specific forms. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of the present invention is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be included in the present invention. Any reference signs in the claims should not be regarded as limiting the claimed rights.

Claims

1. An Internet of Things terminal upgrade method based on the differential packet algorithm, characterized in that: The method includes: S10: Generate a differential file of the IoT terminal for the upgrade object according to the upgrade object of the IoT terminal. The upgrade object includes firmware, applications, and algorithms. Perform a differential reduction operation on the differential file and the current version of the IoT terminal for the upgrade object to generate a to-be-upgraded version of the IoT terminal for the upgrade object; S20: Flash the to-be-upgraded version of the IoT terminal for the upgrade object to complete the upgrade of the IoT terminal. Control the upgraded IoT terminal to start running. Mark the upgrade functions that cannot be implemented by the upgraded IoT terminal, and obtain the abnormal differential files corresponding to each marked function, as well as the abnormal environment data corresponding to the IoT terminal when upgrading each marked function; S30: According to the abnormal environment data, screen out the associated marked functions of each marked function and generate an upgrade strategy for each function of the IoT terminal; S40: Determine the optimal upgrade order of each function of the IoT terminal according to the upgrade time and upgrade strategy of each function of the IoT terminal. Based on the determination result, perform an upgrade operation on the IoT terminal.

2. The Internet of Things terminal upgrade method based on the differential packet algorithm according to claim 1, wherein: The S20 includes: S201: The abnormal differential file refers to a differential package obtained by performing a difference extraction on the to-be-upgraded version of each marked function and the target upgrade version of each marked function using a differential algorithm; S202: Number each abnormal differential file. The numbering result is: i = 1, 2, …, m; m represents the total number of abnormal differential files. The change of the marked function is the same as the number corresponding to the abnormal differential file corresponding to the marked function; For the marked function i that cannot be implemented alone, store the number i in the set M to obtain the first set of marked functions M; If the marking function i can be implemented independently and cannot be implemented when other marking functions are superimposed, the superimposition interval time of the functions is d. When the marking function i cannot be implemented, the numbers p and i of the most recently superimposed marking function are taken as a group of numbers, and the specific format is: i p , take i p and store it in the set N to obtain the second marking function set N, where p = 1, 2, …, m and p < i; S203: Obtain the implementation environment data of each marked function corresponding to the numbers stored in the first set of marked functions M to obtain the first implementation environment data of each marked function. Use the first implementation environment data in the first implementation environment data of the marked function i that is inconsistent with the standard implementation environment data of the marked function i as the abnormal environment data i of the marked function i. The implementation environment data includes the storage space size W occupied when the function is implemented, the implementation logic L of the function, and the degree of data migration anomaly C; The calculation method of the data migration degree is: obtain the abnormal differential data i corresponding to the abnormal differential file i and identify the abnormal data i in the abnormal differential data i; The abnormal data i includes duplicate data existing in the to-be-upgraded data of the marked function i, missing data of the to-be-upgraded data of the marked function i compared with the target upgrade data of the marked function i, and data that is inconsistent in comparison between the to-be-upgraded data of the marked function i and the target upgrade data of the marked function i; Calculate the ratio between the total amount of abnormal data i and the total amount of target upgrade data to obtain the data migration degree of the marked function i; For the number i stored in the second marker function set p Obtain the implementation environment data when the corresponding marker functions i and p are executed together to obtain the second implementation environment data. Integrate the second implementation environment data that is inconsistent with the standard implementation environment data of marker function i in the second implementation environment data and the second implementation environment data that is inconsistent with the standard implementation environment data of marker number p in the second implementation environment data to obtain the abnormal environment data ip when marker functions i and p are executed together; The abnormal environment data ip includes the storage space size W occupied by the marking function i when the marking functions i and p are executed together i , the implementation logic L of the marking function i i , the implementation logic L of the marking function p p and the corresponding data migration degree C when the marking function i is implemented i .

3. The Internet of Things terminal upgrade method based on the differential packet algorithm according to claim 2, wherein: The S30 includes: S301: Determine whether there is a reverse logic between the implementation logic L stored in the abnormal environment data ip. If there is, use the marking function p as the reverse associated marking function of the marking function i. If not, execute step S302; i and the implementation logic L p If there is, use the marking function p as the reverse associated marking function of the marking function i. If not, execute step S302; S302: Obtain the standard implementation environment data when the marking function i is implemented. The standard implementation environment data includes the storage space size W' occupied by the marking function i and the corresponding data migration anomaly degree C' when the marking function i is implemented. C' = 0. Calculate the difference w between W i and W'. i If w i < 0, then let R ip = 1 - exp(w i ). If w i > 0, then let R ip = exp(-w i ). Here, R ip represents the influence coefficient of the marking function p on the marking function i; Taking R ip as the base and C´-C i as the exponent, construct an exponential function to calculate the correlation coefficient U ip of the marking function p with respect to the marking function i; If U ip =R ip , then the marking function p is taken as the positive associated marking function of the marking function i; If U ip <R ip , then the marking function p is taken as the reverse associated marking function of the marking function i; S303: Generate an upgrade strategy for each function of the IoT terminal.

4. The Internet of Things terminal upgrade method based on the differential packet algorithm according to claim 3, wherein: The specific method for the S303 to generate an upgrade strategy for each function of the IoT terminal is: If the marked function i has a reverse associated marked function, the IoT terminal upgrades the marked function i alone; If there is a positive associated marking function for the marking function i, the IoT terminal can synchronously upgrade the marking function i and the positive associated marking function of the marking function i; The IoT terminal upgrades the marking functions corresponding to each number stored in the first marking function set M separately; The IoT terminal upgrades the unmarked functions by using the separate upgrade method or the synchronous upgrade method.

5. The Internet of Things terminal upgrade method based on the differential packet algorithm according to claim 4, characterized in that: The S40 includes: S401: Obtain the upgrade time T of the upgrade function j of the IoT terminal j , when the upgrade function j of the IoT terminal can only be upgraded by the separate upgrade method, determine the upgrade order of the upgrade function j of the IoT terminal in the order from largest to smallest according to the storage space size occupied by the upgrade function j of the IoT terminal during operation, where j = 1, 2, …, n represents the numbers corresponding to the upgrade functions of the IoT terminal, and n represents the total number of upgrade functions; S402: When the IoT terminal upgrade function j can be upgraded using the synchronous upgrade method and there is a positive correlation marking function for the IoT terminal upgrade function j, collect the storage space size W occupied when the IoT terminal upgrade function j and the positive correlation marking function of the IoT terminal upgrade function j are executed together. Determine the upgrade order of the IoT terminal upgrade function j and the positive correlation marking function of the IoT terminal upgrade function j according to W j for collection, according to W q -W j to determine the upgrade order of the IoT terminal upgrade function j and the positive correlation marking function of the IoT terminal upgrade function j; If 0 < W q -W j < f, then the IoT terminal upgrade function j and the positive correlation marking function of the IoT terminal upgrade function j can be upgraded after the IoT terminal upgrade function q is upgraded. Conversely, the IoT terminal upgrade function j and the positive correlation marking function of the IoT terminal upgrade function j cannot be upgraded after the IoT terminal upgrade function q is upgraded. W q represents the remaining storage space size of the IoT terminal when the IoT terminal upgrade function q is upgraded, and f represents the error value; S403: When the IoT terminal upgrade function j can be upgraded by both the synchronous upgrade method and the separate upgrade method, take the IoT terminal upgrade function j as the positive associated marking function of a randomly selected marking function with a positive associated marking function, and determine the upgrade order of the IoT terminal upgrade function j according to the operation in step S402; S404: According to the upgrade order of each upgrade function of the IoT terminal determined in steps S401 to S403, and the upgrade time of each upgrade function of the IoT terminal, use the summation method to determine the upgrade time of the IoT terminal, and perform the upgrade operation on the IoT terminal according to the upgrade order corresponding to the shortest upgrade time.

6. An Internet of Things terminal upgrade system based on the differential packet algorithm for implementing the Internet of Things terminal upgrade method based on the differential packet algorithm according to any one of claims 1-5, characterized in that: The system includes a differential reduction module, an abnormal environment data acquisition module, an upgrade policy generation module, and an IoT terminal upgrade module; The differential reduction module is used to generate the to-be-upgraded version of the IoT terminal for the upgrade object; The abnormal environment data acquisition module is used to acquire the abnormal differential file corresponding to each marking function, and the abnormal environment data corresponding to the IoT terminal when upgrading each marking function; The upgrade policy generation module is used to generate the upgrade policies for each function of the IoT terminal; The IoT terminal upgrade module is used to perform the upgrade operation on the IoT terminal.

7. The Internet of Things terminal upgrade system and method based on the differential packet algorithm according to claim 6, characterized in that: The differential reduction module includes a differential file generation unit and a differential reduction unit; The differential file generation unit generates a differential file of the IoT terminal for the upgrade object according to the upgrade object of the IoT terminal; The differential reduction unit performs differential reduction operation on the differential file and the current version of the IoT terminal for the upgrade object to generate the to-be-upgraded version of the IoT terminal for the upgrade object.

8. The Internet of Things terminal upgrade system based on the differential packet algorithm according to claim 7, characterized in that: The abnormal environment data acquisition module includes an abnormal differential file acquisition unit, a function marking unit, a marking function set analysis unit, and an abnormal environment data acquisition unit; The abnormal differential file acquisition unit uses the differential algorithm to extract the differences between the to-be-upgraded version of each marking function and the target upgrade version of each marking function to obtain the abnormal differential file; The function marking unit marks the upgrade functions that the IoT terminal cannot implement after the IoT terminal is upgraded; The marking function set analysis unit obtains the first marking function set and the second marking function set according to whether there are additional conditions when the marking function cannot be implemented; The abnormal environment data acquisition unit obtains the abnormal environment data through the comparative analysis method.

9. The Internet of Things terminal upgrade system based on the differential packet algorithm according to claim 8, characterized in that: The upgrade policy generation module includes a judgment unit, a correlation coefficient calculation unit, and an upgrade policy generation unit; The judgment unit judges whether there is an opposite logic between the two implementation logics stored in the abnormal environment data, and analyzes whether there is a reverse associated marking function for the marking function i according to the judgment result; When the reverse association marking function does not exist for the association coefficient calculation unit, the association coefficient between the marking function i and the marking function p is calculated according to the standard implementation environment data when the marking function a is implemented, and the association type between the marking function i and the marking function p is determined according to the calculation result; The upgrade strategy generation unit generates an upgrade strategy for the IoT terminal according to the situation where there is an associated marking function for the marking function, the situation where the marking function is implemented separately, and the situation where the IoT function is marked.

10. The Internet of Things terminal upgrade system based on the differential packet algorithm according to claim 9, characterized in that: The IoT terminal upgrade module collects the upgrade time of each function of the IoT terminal, determines the optimal upgrade order of each function of the IoT terminal in combination with the upgrade strategy of each function of the IoT terminal, and based on the determination result, performs an upgrade operation on the IoT terminal.