Device shadow-based device grayscale upgrade method, device, equipment and medium

Through the grayscale upgrade method based on the device shadow, combined with the real-time data collection and historical performance of the Internet of Things platform, a personalized upgrade strategy is generated, which solves the problem of lack of flexibility and pertinence of the grayscale upgrade method in the existing technology, and improves the efficiency of the IoT platform. Upgrade success rate and stability of networked systems.

CN118337624BActive Publication Date: 2024-09-13SHENZHEN GEMDALE BUILDING ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410757239.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-13
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

The existing grayscale upgrade method of IoT devices lacks flexibility and pertinence, and cannot comprehensively consider the multiple statuses and environmental parameters of the device, resulting in low efficiency or failure of the upgrade, especially when the device types and deployment environments are complex.

Method used

Adopt a grayscale upgrade method based on device shadow, filter multiple devices through a preset grayscale upgrade ratio, collect upgrade parameters in real time, generate an upgrade strategy, and perform upgrade control based on device shadow data to ensure the pertinence and efficiency of the upgrade process.

Benefits of technology

It improves the upgrade success rate, reduces the risk of failure due to random selection, ensures that important equipment is updated first, increases the stability and security of the network system, reduces manual intervention, and achieves more customized services and efficient data deal with.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118337624B
    Figure CN118337624B
Patent Text Reader

Abstract

The present application relates to the field of data processing technology, and discloses a device grayscale upgrade method, apparatus, equipment and medium based on device shadow. The method includes: upgrading multiple devices to be upgraded through an Internet of Things platform, collecting upgrade parameters during the device upgrade process to obtain an upgrade parameter set for each device to be upgraded; uploading the upgrade parameter set for each device to be upgraded to a cache system, updating the device shadow data of each device to be upgraded, and obtaining the target shadow data of each device to be upgraded; evaluating the upgrade index of the target shadow data of each device to be upgraded, and obtaining the upgrade index evaluation result; inputting the upgrade index evaluation result into the upgrade control strategy generation model for strategy analysis, obtaining the device upgrade processing strategy, and performing device upgrade control on each device to be upgraded according to the device upgrade processing strategy. The present application is used to improve the accuracy of device grayscale upgrade control based on device shadow.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a device grayscale upgrade method, apparatus, device and medium based on device shadow. Background Art

[0002] In the prior art, software or firmware upgrades for IoT devices usually adopt full updates or basic grayscale upgrade methods. Full updates push new versions to all devices at the same time, while grayscale upgrades allow for gradual releases of updates to a specific proportion of the device population. These methods are implemented through a server or IoT platform to ensure the latest and security of device functions. However, existing grayscale upgrade methods are usually inflexible and targeted, and are generally based on a simple proportion or random selection of devices for update without considering the specific status and environmental factors of the devices.

[0003] The main shortcoming of existing technologies is that they cannot comprehensively consider the various states and environmental parameters of devices to optimize upgrade strategies. For example, traditional grayscale upgrade methods often ignore factors such as the device's network environment, historical upgrade data, and user feedback, which may lead to inefficiency or upgrade failure during the upgrade process, especially when the device types and deployment environments are complex and changeable. Summary of the invention

[0004] The present application provides a device shadow-based device grayscale upgrade method, apparatus, device and medium, which are used to improve the accuracy of device shadow-based device grayscale upgrade control.

[0005] In a first aspect, the present application provides a device grayscale upgrade method based on device shadows, the device grayscale upgrade method based on device shadows comprising: screening multiple devices for upgrade based on a preset grayscale upgrade ratio to obtain multiple devices to be upgraded;

[0006] Upgrade multiple devices to be upgraded through the preset IoT platform, collect upgrade parameters in real time during the device upgrade process, and obtain the upgrade parameter set of each device to be upgraded;

[0007] Upload the upgrade parameter set of each device to be upgraded to a preset cache system, and update the device shadow data of each device to be upgraded respectively to obtain the target shadow data of each device to be upgraded;

[0008] Perform upgrade index evaluation on the target shadow data of each device to be upgraded to obtain the upgrade index evaluation result of each device to be upgraded;

[0009] The upgrade index evaluation result of each device to be upgraded is input into the preset upgrade control strategy generation model for strategy analysis to obtain the device upgrade processing strategy of each device to be upgraded, and the device upgrade control of each device to be upgraded is performed according to the device upgrade processing strategy of each device to be upgraded.

[0010] In combination with the first aspect, in a first implementation of the first aspect of the present application, before screening the multiple devices for upgrading based on the preset grayscale upgrade ratio, the method further includes:

[0011] Create device shadow data for each device on the IoT platform, where the device shadow data includes: device real-time status, device expected status, firmware version, and configuration parameters;

[0012] The device shadow data of each device is stored in a preset cache system, the target OTA upgrade package is collected, and the target OTA upgrade package is uploaded to the Internet of Things platform.

[0013] In combination with the first aspect, in a second implementation of the first aspect of the present application, the upgrading device screening is performed on multiple devices based on a preset grayscale upgrading ratio to obtain multiple devices to be upgraded, including:

[0014] Collect historical upgrade data for each device respectively to obtain historical upgrade data for each device, wherein the historical upgrade data includes: upgrade success rate, upgrade failure rate and user feedback data;

[0015] Collect network environment data of each device in real time to obtain network parameters of each device, wherein the network parameters include: bandwidth utilization and server load;

[0016] Calculate the upgrade status score of each device based on the historical upgrade data to obtain the upgrade status score of each device;

[0017] Sort the multiple devices according to the upgrade status score of each device to obtain first device sorting data;

[0018] Calculate the network status score of each device based on the network parameters to obtain the network status score of each device;

[0019] Sort the multiple devices according to the network status score of each device to obtain second device sorting data;

[0020] The first device sorting data and the second device sorting data are screened for overlapping devices according to a preset screening ratio to obtain a plurality of overlapping devices;

[0021] The multiple overlapping devices are screened for upgrade devices according to the grayscale upgrade ratio to obtain multiple devices to be upgraded.

[0022] In combination with the first aspect, in a third implementation of the first aspect of the present application, the device upgrade is performed on multiple devices to be upgraded through the Internet of Things platform, and upgrade parameters in the device upgrade process are collected in real time to obtain an upgrade parameter set for each device to be upgraded, including:

[0023] Send a target OTA upgrade package to each device to be upgraded through the Internet of Things platform, and upgrade multiple devices to be upgraded through the target OTA upgrade package;

[0024] Collect the upgrade progress of each device to be upgraded respectively to obtain the upgrade progress time series data of each device to be upgraded;

[0025] Collect memory usage data of each device to be upgraded respectively to obtain memory timing data of each device to be upgraded;

[0026] Collect processor load data for each device to be upgraded respectively to obtain load time series data for each device to be upgraded;

[0027] Perform upgrade event stream conversion on the upgrade progress time series data of each device to be upgraded, the memory time series data of each device to be upgraded, and the load time series data of each device to be upgraded, respectively, to obtain event stream data of each device to be upgraded;

[0028] The upgrade parameters of each device to be upgraded are extracted from the event stream data respectively to obtain an upgrade parameter set of each device to be upgraded.

[0029] In combination with the first aspect, in a fourth implementation of the first aspect of the present application, uploading the upgrade parameter set of each device to be upgraded to a preset cache system, and updating the device shadow data of each device to be upgraded respectively, to obtain the target shadow data of each device to be upgraded, includes:

[0030] Uploading the upgrade parameter set of each device to be upgraded to the cache system, and performing differential data extraction on the device shadow data of each device to be upgraded according to the upgrade parameter set of each device to be upgraded, to obtain a differential data set of each device to be upgraded;

[0031] Calculate the data hash value of each difference data set of each device to be upgraded to obtain the target hash value of each difference data set;

[0032] According to the target hash value of each difference data set, data of each device to be upgraded is encrypted to obtain encrypted difference data of each device to be upgraded;

[0033] The device shadow data of each device to be upgraded is updated respectively by using the encrypted difference data of each device to be upgraded to obtain the target shadow data of each device to be upgraded.

[0034] In combination with the first aspect, in a fifth implementation of the first aspect of the present application, the step of performing an upgrade index evaluation on the target shadow data of each device to be upgraded to obtain an upgrade index evaluation result of each device to be upgraded includes:

[0035] Performing upgrade status analysis on the target shadow data of each device to be upgraded to obtain upgrade status data of each device to be upgraded, wherein the upgrade status data includes success and failure;

[0036] Based on the upgrade status data of each device to be upgraded, respectively, a first score is calculated for the upgrade progress time series data of each device to be upgraded to obtain a first score for each device to be upgraded;

[0037] Calculate the memory usage score of each device to be upgraded respectively for the memory timing data to obtain a second score of each device to be upgraded;

[0038] Calculate the load score of each device to be upgraded respectively for the load time series data to obtain a third score of the device to be upgraded;

[0039] An upgrade index evaluation is performed on the first score of each device to be upgraded, the second score of each device to be upgraded, and the third score of each device to be upgraded, respectively, to obtain an upgrade index evaluation result of each device to be upgraded.

[0040] In combination with the first aspect, in a sixth implementation of the first aspect of the present application, the upgrade index evaluation result of each device to be upgraded is input into a preset upgrade control strategy generation model for strategy analysis to obtain a device upgrade processing strategy for each device to be upgraded, and device upgrade control is performed on each device to be upgraded according to the device upgrade processing strategy of each device to be upgraded, including:

[0041] Input the upgrade index evaluation result of each device to be upgraded into the preset upgrade control strategy generation model to extract the index feature, and obtain the index feature data of each device to be upgraded, wherein the index feature data includes: upgrade speed and upgrade success rate;

[0042] Performing matrix conversion on the upgrade speed of each device to be upgraded respectively to obtain a first characteristic matrix of each device to be upgraded;

[0043] Perform matrix conversion on the upgrade success rate of each device to be upgraded respectively to obtain a second characteristic matrix of each device to be upgraded;

[0044] Performing matrix weighted fusion on the first characteristic matrix of each device to be upgraded and the second characteristic matrix of each device to be upgraded to obtain a fusion matrix of each device to be upgraded;

[0045] According to the fusion matrix of each device to be upgraded, a strategy analysis is performed on each device to be upgraded to obtain a device upgrade processing strategy for each device to be upgraded, and according to the device upgrade processing strategy for each device to be upgraded, device upgrade control is performed on each device to be upgraded.

[0046] In a second aspect, the present application provides a device grayscale upgrade apparatus based on device shadow, and the device grayscale upgrade apparatus based on device shadow includes:

[0047] An acquisition module is used to screen multiple devices for upgrading based on a preset grayscale upgrade ratio to obtain multiple devices to be upgraded;

[0048] The upgrade module is used to upgrade multiple devices to be upgraded through a preset IoT platform, and collect upgrade parameters in real time during the device upgrade process to obtain an upgrade parameter set for each device to be upgraded;

[0049] The upload module is used to upload the upgrade parameter set of each device to be upgraded to a preset cache system, and to update the device shadow data of each device to be upgraded respectively to obtain the target shadow data of each device to be upgraded;

[0050] An evaluation module is used to evaluate the upgrade index of the target shadow data of each device to be upgraded, and obtain the upgrade index evaluation result of each device to be upgraded;

[0051] The control module is used to input the upgrade index evaluation result of each device to be upgraded into a preset upgrade control strategy generation model for strategy analysis, obtain the device upgrade processing strategy of each device to be upgraded, and perform device upgrade control on each device to be upgraded according to the device upgrade processing strategy of each device to be upgraded.

[0052] The third aspect of the present application provides a device grayscale upgrade device based on device shadow, comprising: a memory and at least one processor, wherein instructions are stored in the memory; the at least one processor calls the instructions in the memory so that the device grayscale upgrade device based on device shadow executes the above-mentioned device grayscale upgrade method based on device shadow.

[0053] A fourth aspect of the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, the computer executes the above-mentioned device grayscale upgrade method based on device shadow.

[0054] In the technical solution provided by the present application, by screening multiple devices based on a preset grayscale upgrade ratio, the devices to be upgraded are obtained, and the upgrade objects can be accurately selected according to the actual operating environment and historical performance of the devices, thereby improving the pertinence and efficiency of the upgrade process. This screening process not only reduces the risk of upgrade failure caused by random selection, but also ensures that important or sensitive devices can be updated first, increasing the stability and security of the entire network system. Secondly, the operation of upgrading the selected devices and collecting the upgrade parameters in real time through the Internet of Things platform enables instant feedback on the effect of each upgrade and a quick response to any problems that may arise during the upgrade process. This real-time data collection and analysis can significantly improve the speed of problem diagnosis and resolution and reduce the service interruption time caused by the upgrade. Furthermore, the process of uploading the upgrade parameter set to the preset cache system and updating the device shadow data further enhances the efficiency and accuracy of data processing. Through the real-time update of the device shadow, it can ensure that the synchronization of the device status and the Internet of Things platform is accurate and correct, providing reliable data support for subsequent upgrade decisions. In addition, the device shadow update mechanism in this method also supports the implementation of more complex upgrade algorithms, such as personalized upgrade strategies based on device performance and usage environment, thereby achieving more customized services. The entire upgrade process is highly automated, which greatly reduces the need for manual intervention, reduces human errors during the upgrade process, and ensures the continuity and consistency of the upgrade. This grayscale upgrade method based on device shadows makes comprehensive use of the real-time data and historical performance of the device. Through efficient data processing and intelligent strategy analysis, it significantly improves the upgrade success rate of the entire IoT system, reduces economic losses and brand reputation risks caused by upgrade failures, and ensures the user's service experience and the long-term operation stability of the device. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0056] Figure 1 This is a schematic diagram of an embodiment of a method for gray-scale upgrading a device based on a device shadow in an embodiment of the present application;

[0057] Figure 2 It is a schematic diagram of an embodiment of a device grayscale upgrade apparatus based on device shadow in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The embodiments of the present application provide a device grayscale upgrade method, apparatus, device and medium based on device shadow. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0059] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 In the embodiment of the present application, an embodiment of the device grayscale upgrade method based on device shadow includes:

[0060] Step S101: Screen multiple devices for upgrading based on a preset grayscale upgrade ratio to obtain multiple devices to be upgraded;

[0061] It is understandable that the execution subject of the present application can be a device grayscale upgrade device based on device shadow, or a terminal or a server, which is not limited here. The present application embodiment takes the server as the execution subject as an example for explanation.

[0062] Specifically, the corresponding device shadow data is created for each device on the IoT platform. These data are the digital twins of the device, including the real-time status, expected status, firmware version and configuration parameters of the device. The creation of device shadow data is intended to ensure that the current operating status and expected target status of each device can be accurately recorded and monitored. At the same time, the recording of firmware version and configuration parameters helps to perform compatibility and necessity analysis before performing upgrade operations. The device shadow data of each device is stored in a preset cache system to save a safe backup of the data and support subsequent fast access and processing. The IoT platform collects the target OTA (Over-The-Air) upgrade package. OTA is a method in remote wireless upgrade technology that allows new firmware versions to be sent directly to devices over the network without physical contact with the device. The target OTA upgrade package is uploaded to the IoT platform to ensure that all selected devices can receive the latest firmware and perform corresponding upgrades. After uploading, the platform screens the devices according to the preset grayscale upgrade ratio and selects the devices suitable for upgrade.

[0063] Collect historical upgrade data for each device, including upgrade success rate, upgrade failure rate and user feedback data. These data can provide information on the performance and stability of each device's past upgrades. At the same time, collect network environment data for each device in real time, including bandwidth utilization and server load. The key to collecting network parameters is to determine the feasibility and potential risks of upgrading the device in the current network environment, and to ensure the stability and efficiency of data transmission during the upgrade process. Analyze the historical upgrade data of each device and calculate the upgrade status score. This score reflects the overall performance and reliability of the device in the past upgrade operations. The higher the score, the better the upgrade history performance of the device. According to the obtained upgrade status score, sort multiple devices to obtain first device sorting data. The sorting helps to quickly identify the device with the best upgrade performance in history. Calculate the network status score for the network parameters of each device. The score reflects the advantages and limitations of the device in the current network environment. Similarly, sort multiple devices by the network status score of each device to form second device sorting data. Through the preset screening ratio, the first device sorting data and the second device sorting data are screened for overlapping devices to find devices that perform well in both upgrade status sorting and network status sorting. These devices are considered to be the most suitable candidates for upgrading. According to the set grayscale upgrade ratio, the final list of devices to be upgraded is screened from the overlapping devices, and the devices on the list will undergo actual upgrade operations.

[0064] Step S102: upgrading multiple devices to be upgraded through a preset Internet of Things platform, and collecting upgrade parameters in real time during the device upgrade process to obtain an upgrade parameter set for each device to be upgraded;

[0065] Specifically, the target OTA upgrade package is sent to multiple devices to be upgraded through the preset IoT platform. The OTA upgrade package ensures compatibility with the hardware and software configurations of various devices. The operation of sending the upgrade package not only involves the stability of the communication protocol, but also includes the encryption and secure transmission of the upgrade data to prevent the data from being intercepted or tampered with during the transmission process. The upgrade progress of each device to be upgraded is collected in real time. The timing data reflects each stage of the upgrade, from initialization, file download, installation to restart process. In order to comprehensively evaluate the performance of the device during the upgrade process, the timing data of the memory usage and the timing data of the processor load of each device are collected. The memory usage data reveals the storage resource consumption of the device during the upgrade process, while the processor load data shows the degree of occupancy of the device's processing power during the upgrade. By comprehensively analyzing the upgrade progress timing data, memory timing data and load timing data, this information is converted into specific event stream data. The generation of event stream data is to more intuitively represent the state changes and potential problem points of the device during the entire upgrade process, such as delays, memory overflow or processor overload that may occur during the upgrade process. Based on the event stream data, the upgrade parameters of the event stream data of each device to be upgraded are extracted to obtain the upgrade parameter set of each device. These parameter sets include key indicators such as upgrade time, peak memory usage, and maximum processor load.

[0066] Step S103: Upload the upgrade parameter set of each device to be upgraded to a preset cache system, and update the device shadow data of each device to be upgraded respectively to obtain the target shadow data of each device to be upgraded;

[0067] Specifically, the upgrade parameter set of each device to be upgraded is uploaded to the preset cache system to ensure the accessibility and redundancy of the data in the entire network. The upgrade parameter set contains all the key information generated by the device during the upgrade process, such as the upgrade time, memory and processor usage, etc. The difference data is extracted from the upgrade parameter set of each device. The difference data refers to the specific changes in the device status before and after the upgrade, such as the update of the firmware version, the adjustment of the configuration parameters, etc. By analyzing the difference data, the update content required for each device is identified to ensure that the device shadow data is synchronized with the actual device. In order to ensure the security and integrity of the difference data, the data hash value is calculated for each difference data set and the data is encrypted according to the target hash value obtained. The calculation of the hash value provides a verification mechanism for the data to confirm that the data has not been tampered with during transmission or processing. At the same time, the hash value itself is also a key parameter of the encryption process, which increases the data security. After the data encryption is completed, the device shadow data of each device to be upgraded is updated respectively through the encrypted difference data of each device to be upgraded. The corresponding fields in the device shadow are modified and added so that the data structure of the device shadow is completely consistent with the latest status of the device. In this way, the device shadow data of each device to be upgraded is updated to the target shadow data, thereby ensuring that the device shadow can accurately reflect the latest technical status and configuration information of the device.

[0068] Step S104: perform upgrade index evaluation on the target shadow data of each device to be upgraded to obtain an upgrade index evaluation result of each device to be upgraded;

[0069] Specifically, the target shadow data of each device to be upgraded is analyzed for upgrade status, including evaluating the success and failure of the device upgrade. The target shadow data provides a blueprint for the state that the device should achieve after the upgrade, including hardware configuration, software version, and system settings. Through status analysis, the upgrade status data of each device is obtained, which directly affects the future operating efficiency and stability of the device. Based on the upgrade status data, the upgrade progress timing data of each device is evaluated and a first score is calculated. The first score reflects the smoothness of the device upgrade progress, including the speed of the upgrade and any delays or interruptions in the process. The memory timing data of each device is analyzed to calculate a memory usage score, i.e., the second score. The second score is based on the peak and average levels of memory usage of the device during the upgrade process, and evaluates whether the device can maintain stability and response speed under different operating conditions. The third score is calculated based on the load timing data, and the score reflects the load of the device's processor during the upgrade process, including the CPU usage rate and the system's responsiveness. The first score of each device to be upgraded, the second score of each device to be upgraded, and the third score of each device to be upgraded are evaluated for upgrade indicators, respectively, to obtain the upgrade indicator evaluation results of each device to be upgraded. The evaluation results are the product of many considerations, not only taking into account the technical details of the upgrade process, but also covering the performance and reliability of the equipment in actual operation.

[0070] Step S105: input the upgrade index evaluation result of each device to be upgraded into a preset upgrade control strategy generation model for strategy analysis to obtain a device upgrade processing strategy for each device to be upgraded, and perform device upgrade control on each device to be upgraded according to the device upgrade processing strategy for each device to be upgraded.

[0071] Specifically, the upgrade index evaluation results of each device to be upgraded are input into the preset upgrade control strategy generation model for index feature extraction, so as to form a targeted upgrade strategy. The upgrade control strategy generation model extracts index feature data from the evaluation results of each device. These data mainly include upgrade speed and upgrade success rate. These two parameters are important indicators for evaluating upgrade efficiency and effect. The upgrade speed and success rate of each device are converted into the first characteristic matrix and the second characteristic matrix. The matrix data representation is helpful for subsequent data processing and analysis, so that complex data can be analyzed and understood more systematically through mathematical operations. In order to comprehensively consider the impact of multiple factors on the upgrade strategy, the first characteristic matrix and the second characteristic matrix of each device are weighted fused. Different weights are given to reflect the importance of different indicators in the upgrade decision. For example, if the upgrade success rate of a certain device is more critical, the corresponding matrix may be given a higher weight. The generation of the fusion matrix is ​​based on algorithm optimization and historical data analysis to ensure that the upgrade strategy of each device can reflect the actual needs and potential risks of individual devices to the maximum extent. According to the fusion matrix, the strategy analysis is carried out, and the fusion matrix of each device will directly affect the final device upgrade processing strategy. These policies cover everything from the upgrade schedule to specific technical execution details, including how to handle abnormal situations that may occur during the upgrade process. Each device is assigned a detailed upgrade control plan based on the results of its fusion matrix and policy analysis. By executing the upgrade control plan, it is ensured that each upgrade can be carried out efficiently and safely in a controlled environment. Through the above steps, the upgrade of each device is optimized based on real-time and historical data, and can be dynamically adjusted throughout the upgrade process, thereby improving the overall upgrade success rate and device operation efficiency.

[0072] In the embodiment of the present application, by presetting the grayscale upgrade ratio based on the importance, frequency of use and historical upgrade success rate of the device, multiple devices are screened to obtain the device to be upgraded, and the upgrade object can be accurately selected according to the actual operating environment and historical performance of the device, thereby improving the pertinence and efficiency of the upgrade process. This screening process not only reduces the risk of upgrade failure that may be caused by random selection, but also ensures that important or sensitive devices can be updated first, increasing the stability and security of the entire network system. Secondly, the operation of upgrading the selected device and collecting the upgrade parameters in real time through the Internet of Things platform enables the effect of each upgrade to be fed back instantly, and responds quickly to any problems that may arise during the upgrade process. This real-time data collection and analysis can significantly improve the speed of problem diagnosis and resolution, and reduce the service interruption time caused by the upgrade. Furthermore, the process of uploading the upgrade parameter set to the preset cache system and updating the device shadow data further enhances the efficiency and accuracy of data processing. Through the real-time update of the device shadow, it can ensure that the synchronization of the device status and the Internet of Things platform is accurate and correct, providing reliable data support for subsequent upgrade decisions. In addition, the device shadow update mechanism in this method also supports the implementation of more complex upgrade algorithms, such as personalized upgrade strategies based on device performance and usage environment, thereby achieving more customized services. The entire upgrade process has a high degree of automation, which greatly reduces the need for manual intervention, reduces human errors in the upgrade process, and ensures the continuity and consistency of the upgrade. This grayscale upgrade method based on device shadows makes comprehensive use of the real-time data and historical performance of the device. Through efficient data processing and intelligent strategy analysis, it significantly improves the upgrade success rate of the entire IoT system, reduces the economic losses and brand reputation risks caused by upgrade failures, and ensures the user's service experience and the long-term operation stability of the device.

[0073] In a specific embodiment, before executing step S101, the following steps may be specifically included:

[0074] (1) Create device shadow data for each device on the IoT platform, where the device shadow data includes: device real-time status, device expected status, firmware version, and configuration parameters;

[0075] (2) Store the device shadow data of each device in a preset cache system, collect the target OTA upgrade package, and upload the target OTA upgrade package to the IoT platform.

[0076] Specifically, a device shadow is a virtual device model that stores the current and expected state information of the device in the cloud, including firmware version and configuration parameters. By creating shadow data for each IoT device, the management system can seamlessly monitor and control physical devices, even when the device is not online. Define the structure and content of the shadow to ensure that it accurately reflects the actual situation of each device. It usually includes the real-time status of the device, such as its operating parameters, environmental data, power usage, etc., as well as the expected state of the device, which may include scheduled configuration changes or expected operation and maintenance activities. The firmware version information determines the scope and performance of the device's functions, while the configuration parameters define the device's operating mode and user-defined settings. The device shadow data of each device is stored in a pre-set cache system. The cache system provides high-speed data access capabilities, which can improve data processing efficiency and response speed. At the same time, the IoT platform needs to process the device's OTA (Over-The-Air Technology) upgrade package, which is a technology that allows remote updating of device firmware. Collecting the target OTA upgrade package is a multi-step process. First, determine the compatibility of the upgrade package with the device, which includes checking the firmware version and matching the configuration parameters. Encapsulate the contents of the upgrade package to ensure that all necessary update files and installation scripts are included, as well as verification mechanisms before and after the update. Upload the target OTA upgrade package to the IoT platform to ensure data security and integrity during the upload process. This usually involves the application of data encryption and security protocols, such as using the HTTPS protocol to protect privacy and integrity during data transmission. After the upgrade package is uploaded to the platform, it is distributed to specific target devices for automatic or manual upgrades.

[0077] In a specific embodiment, the process of executing step S101 may specifically include the following steps:

[0078] (1) Collect historical upgrade data for each device to obtain historical upgrade data for each device, where the historical upgrade data includes: upgrade success rate, upgrade failure rate, and user feedback data;

[0079] (2) Collect network environment data of each device in real time to obtain network parameters of each device, including bandwidth utilization and server load;

[0080] (3) Calculate the upgrade status score of each device based on its historical upgrade data to obtain the upgrade status score of each device;

[0081] (4) sorting the multiple devices according to the upgrade status score of each device to obtain first device sorting data;

[0082] (5) Calculate the network status score of each device based on the network parameters to obtain the network status score of each device;

[0083] (6) sorting the multiple devices according to the network status score of each device to obtain second device sorting data;

[0084] (7) Screening the first device sorting data and the second device sorting data for overlapping devices according to a preset screening ratio to obtain a plurality of overlapping devices;

[0085] (8) Screen multiple overlapping devices for upgrade based on the grayscale upgrade ratio to obtain multiple devices to be upgraded.

[0086] Specifically, historical upgrade data is collected for each device, including upgrade success rate, upgrade failure rate, and user feedback data. Historical upgrade data reflects the stability and problem frequency of the device in past upgrades, and user feedback can provide direct information about the device upgrade experience. Network environment data of each device is collected in real time, including parameters such as bandwidth utilization and server load. These network parameters are important indicators for evaluating the current online status and network performance of the device, and have a decisive influence on deciding when and how to upgrade the device. The historical upgrade data of each device is analyzed to calculate an upgrade status score. This score is based on the upgrade success rate, failure rate, and user feedback of the device, and the purpose is to quantify the historical upgrade performance of each device. All devices are sorted by the upgrade status score to generate the first device sorting data. Sorting helps identify those devices with good historical upgrade performance, and provides a screening basis for the selection of devices for grayscale upgrades. The network status score is calculated for the network parameters of each device, and this score reflects the current network environment quality of the device, including bandwidth utilization and server load. The obtained network status score is used to sort the devices to generate the second device sorting data. The purpose of sorting network status is to determine which devices are more suitable for upgrading under the current network conditions, because a good network status can significantly reduce the problems that may occur during the upgrade process. Through the preset screening ratio, the first device sorting data and the second device sorting data are screened for overlapping devices. Find out those devices that have excellent upgrade history performance and current network status to ensure that the selected devices have a high success rate and low risk during the upgrade process. Screen multiple overlapping devices for upgrade devices through the grayscale upgrade ratio to determine the final list of devices to be upgraded. The grayscale upgrade ratio is set according to the overall upgrade strategy and the established risk management plan, with the aim of gradually expanding the scope of the upgrade while controlling risks. The screening mechanism ensures the gradual execution and monitoring of the upgrade process, and can adjust subsequent upgrade plans based on feedback from the upgrade.

[0087] In a specific embodiment, the process of executing step S102 may specifically include the following steps:

[0088] (1) Send a target OTA upgrade package to each device to be upgraded through the IoT platform, and upgrade multiple devices to be upgraded through the target OTA upgrade package;

[0089] (2) Collecting the upgrade progress of each device to be upgraded respectively to obtain the upgrade progress time series data of each device to be upgraded;

[0090] (3) Collect memory usage data for each device to be upgraded and obtain memory timing data for each device to be upgraded;

[0091] (4) Collect processor load data for each device to be upgraded to obtain load timing data for each device to be upgraded;

[0092] (5) performing upgrade event stream conversion on the upgrade progress time series data of each device to be upgraded, the memory time series data of each device to be upgraded, and the load time series data of each device to be upgraded, respectively, to obtain event stream data of each device to be upgraded;

[0093] (6) Extract upgrade parameters from the event stream data of each device to be upgraded to obtain an upgrade parameter set for each device to be upgraded.

[0094] Specifically, the target OTA upgrade package is sent to each device to be upgraded through the IoT platform. OTA technology allows new software versions to be sent directly to devices through wireless networks. Before sending the upgrade package, the compatibility and current status of each device are verified to ensure that the sent upgrade package is suitable for the specific configuration of the device and the latest operating requirements. The upgrade progress is collected for each device to be upgraded, and the upgrade progress timing data of each device is collected in real time. The timing data records each stage from the start to the completion of the upgrade, such as downloading, installation, restarting, etc., so that the system can accurately understand the real-time status of the upgrade and promptly discover and solve possible problems. At the same time, the platform monitors the memory usage of each device to be upgraded. The collection of memory usage data provides key information about the resource consumption of the device during the upgrade process, including the peak utilization and average usage of memory. These data are important indicators for understanding the performance status of the device and its response to the upgrade, which helps to evaluate the impact of the upgrade on the performance of the device and ensure that the upgrade process does not cause device performance degradation or system instability. The processor load data is collected for each device to be upgraded. By collecting the processor load timing data of each device, it is evaluated whether the processing capacity of the device is sufficient during the upgrade. A high processor load may mean that the device is under great pressure during the upgrade, which may affect the efficiency and ultimate success rate of the upgrade. By monitoring this data, the upgrade strategy can be predicted and adjusted to reduce the burden on the device and optimize the upgrade process. The IoT platform converts the collected upgrade progress timing data, memory usage timing data, and processor load timing data into event streams. Converting the original timing data into a more intuitive and easy-to-analyze event stream format makes data analysis more efficient. Event stream data can reflect the specific behavior of the device during the upgrade process and any abnormal activities. By deeply analyzing the event stream data of each device, the IoT platform extracts key upgrade parameter sets. These parameter sets include key indicators such as upgrade time, number of successes and failures, and maximum load of memory and processor.

[0095] In a specific embodiment, the process of executing step S103 may specifically include the following steps:

[0096] (1) Uploading the upgrade parameter set of each device to be upgraded to the cache system, and performing differential data extraction on the device shadow data of each device to be upgraded according to the upgrade parameter set of each device to be upgraded, so as to obtain a differential data set of each device to be upgraded;

[0097] (2) Calculate the data hash value of each difference data set of each device to be upgraded to obtain the target hash value of each difference data set;

[0098] (3) According to the target hash value of each difference data set, encrypt the data of each device to be upgraded to obtain the encrypted difference data of each device to be upgraded;

[0099] (4) The device shadow data of each device to be upgraded is updated respectively using the encrypted difference data of each device to be upgraded to obtain the target shadow data of each device to be upgraded.

[0100] Specifically, the upgrade parameter set of each device to be upgraded is uploaded to the cache system. The cache system serves as a data transfer station, providing fast data access capabilities and ensuring the security and integrity of the data during the processing process. After the upload is completed, the data set that is different from the current shadow data of the device is extracted from the upgrade parameter set. The device shadow is a digital image of the device state, stored in the cloud, reflecting the expected state and actual state of the device. The difference data extraction process is to identify the changes in the device state during the upgrade process. These changes may include firmware version updates, configuration parameter adjustments, and performance indicator changes. The difference data is hashed. Hash value calculation is a common data integrity and security verification method. By performing a specific algorithm on the data content, a unique data fingerprint (hash value) is generated. The hash value is unique for each piece of data, and any slight data change will cause the hash value to change. Therefore, by comparing the changes before and after the data hash value, it is possible to effectively detect whether the data has been tampered with during transmission or processing. According to the target hash value of each difference data set, the data of each device to be upgraded is encrypted separately. According to the hash value of each differential data set, the data is encrypted using an encryption algorithm (such as AES, RSA, etc.) to ensure that only authorized systems or individuals can access and understand the data. The encrypted differential data is applied to the device shadow data of each device to be upgraded, and the shadow data is updated. Updating the device shadow data ensures that the device shadow can accurately reflect the latest status of the device. The device shadow acts as a bridge in the IoT platform, connecting physical devices and digital management systems. By ensuring the latest and accurate device shadow data, the status of the device can be remotely monitored and managed, and maintenance and optimization measures can be implemented without directly operating the physical device.

[0101] In a specific embodiment, the process of executing step S104 may specifically include the following steps:

[0102] (1) Analyze the upgrade status of the target shadow data of each device to be upgraded to obtain the upgrade status data of each device to be upgraded, wherein the upgrade status data includes success and failure;

[0103] (2) Based on the upgrade status data of each device to be upgraded, respectively calculate the first score of the upgrade progress time series data of each device to be upgraded to obtain the first score of each device to be upgraded;

[0104] (3) Calculating the memory usage score of each device to be upgraded based on the memory timing data to obtain a second score for each device to be upgraded;

[0105] (4) Calculating the load score of each device to be upgraded based on the load time series data to obtain a third score of the device to be upgraded;

[0106] (5) Performing upgrade index evaluation on the first score of each device to be upgraded, the second score of each device to be upgraded, and the third score of each device to be upgraded, respectively, to obtain an upgrade index evaluation result for each device to be upgraded.

[0107] Specifically, the target shadow data of each device to be upgraded is analyzed for upgrade status, and the upgrade status data of each device to be upgraded is obtained, including the records of upgrade success and failure. By monitoring and analyzing the device shadow data, various status changes during the device upgrade process are tracked in real time, so as to timely discover and solve problems that may arise during the upgrade process. The upgrade status data is analyzed, including calculating the first score of the upgrade progress time series data of each device to be upgraded. The upgrade progress time series data includes every detail record from the start to the completion of the upgrade, such as the time nodes and status of each stage such as upgrade preparation, download, installation, and restart. The time series data is scored to quantify the smoothness and efficiency of the upgrade process. The first score is a key indicator for evaluating the speed and smoothness of the upgrade execution. The memory time series data of each device to be upgraded is analyzed to calculate the memory usage score and obtain the second score. The memory time series data reflects the memory usage of the device during the upgrade process, including the peak and average memory usage. By evaluating the device's demand for memory and the high and low fluctuations in memory usage during the upgrade process, it is determined whether the device has resource overload or insufficient optimization problems during the upgrade. The load time series data of each device is analyzed, the load score is calculated, and the third score is obtained. The load time series data mainly records the utilization of the device's CPU and other processing resources during the upgrade process. A high load value may indicate that the upgrade task has a greater impact on the device performance, which may cause slow device response or other operating problems. The first score of each device to be upgraded, the second score of each device to be upgraded, and the third score of each device to be upgraded are evaluated for upgrade indicators, and the upgrade indicator evaluation results of each device to be upgraded are obtained, including the performance and reliability of the device in actual operation.

[0108] In a specific embodiment, the process of executing step S105 may specifically include the following steps:

[0109] (1) Inputting the upgrade index evaluation result of each device to be upgraded into a preset upgrade control strategy generation model to extract index features, thereby obtaining index feature data of each device to be upgraded, wherein the index feature data includes: upgrade speed and upgrade success rate;

[0110] (2) Performing matrix conversion on the upgrade speed of each device to be upgraded to obtain the first characteristic matrix of each device to be upgraded;

[0111] (3) Performing matrix transformation on the upgrade success rate of each device to be upgraded to obtain a second characteristic matrix of each device to be upgraded;

[0112] (4) performing matrix weighted fusion on the first characteristic matrix of each device to be upgraded and the second characteristic matrix of each device to be upgraded to obtain a fusion matrix of each device to be upgraded;

[0113] (5) Performing strategy analysis on each device to be upgraded according to the fusion matrix of each device to be upgraded, obtaining a device upgrade processing strategy for each device to be upgraded, and performing device upgrade control on each device to be upgraded according to the device upgrade processing strategy for each device to be upgraded.

[0114] Specifically, the upgrade index evaluation results of each device to be upgraded are input into the preset upgrade control strategy generation model for index feature extraction, and these data include upgrade speed and upgrade success rate. The upgrade speed index reflects the efficiency of device upgrade, including the length of time spent in each stage of the upgrade process; the upgrade success rate directly reflects the effectiveness of past upgrade activities, including the ratio of the number of successful installations of new firmware to the number of attempts. The upgrade speed and upgrade success rate of each device to be upgraded are matrix-converted to obtain the first characteristic matrix and the second characteristic matrix of each device to be upgraded. The purpose of matrix conversion is to format these indicator data into a structure that can be mathematically operated, so as to facilitate more complex data processing and analysis. The matrix stores data in a standardized form, which facilitates data fusion and analysis. The first characteristic matrix of each device to be upgraded and the second characteristic matrix of each device to be upgraded are matrix-weighted fused. Matrix weighted fusion synthesizes the data of upgrade speed and success rate into a comprehensive data representation through mathematical algorithms to obtain a fusion matrix. In this process, different matrices are given different weights according to their importance in the upgrade strategy. For example, if the upgrade success rate is considered more important than the speed, then the matrix of the success rate will obtain a higher weight in the fusion process. Through the generation of a fusion matrix, the upgrade data of each device is integrated into a comprehensive indicator to simplify the policy analysis and decision-making process. According to the fusion matrix of each device, the policy analysis is carried out to determine the device upgrade processing strategy that best suits each device. The strategy guides the upgrade behavior of the device based on the data in the fusion matrix, including deciding when and how to upgrade and how to handle various upgrade scenarios that may arise. According to the device upgrade processing strategy of each device, specific device upgrade control is carried out for each device to be upgraded. The control process is automatically executed to ensure that each device can receive the upgrade under the best conditions according to the predetermined strategy, thereby maximizing the success rate of the upgrade and optimizing the performance of the entire system.

[0115] The above describes the device grayscale upgrade method based on device shadow in the embodiment of the present application. The following describes the device grayscale upgrade apparatus based on device shadow in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of a device grayscale upgrade device based on device shadow includes:

[0116] The acquisition module 201 is used to screen multiple devices for upgrading based on a preset grayscale upgrade ratio to obtain multiple devices to be upgraded;

[0117] The upgrade module 202 is used to upgrade multiple devices to be upgraded through a preset Internet of Things platform, and collect upgrade parameters in real time during the device upgrade process to obtain an upgrade parameter set for each device to be upgraded;

[0118] The upload module 203 is used to upload the upgrade parameter set of each device to be upgraded to a preset cache system, and to update the device shadow data of each device to be upgraded respectively to obtain the target shadow data of each device to be upgraded;

[0119] An evaluation module 204 is used to evaluate the upgrade index of the target shadow data of each device to be upgraded, and obtain the upgrade index evaluation result of each device to be upgraded;

[0120] The control module 205 is used to input the upgrade index evaluation result of each device to be upgraded into a preset upgrade control strategy generation model for strategy analysis, obtain the device upgrade processing strategy of each device to be upgraded, and perform device upgrade control on each device to be upgraded according to the device upgrade processing strategy of each device to be upgraded.

[0121] Through the cooperation of the above components, multiple devices are screened based on the preset grayscale upgrade ratio to obtain the devices to be upgraded. The upgrade objects can be accurately selected according to the actual operating environment and historical performance of the devices, thereby improving the pertinence and efficiency of the upgrade process. This screening process not only reduces the risk of upgrade failure caused by random selection, but also ensures that important or sensitive devices can be updated first, increasing the stability and security of the entire network system. Secondly, the operation of upgrading the selected devices and collecting the upgrade parameters in real time through the IoT platform enables instant feedback on the effect of each upgrade and a quick response to any problems that may arise during the upgrade process. This real-time data collection and analysis can significantly improve the speed of problem diagnosis and resolution and reduce the service interruption time caused by the upgrade. Furthermore, the process of uploading the upgrade parameter set to the preset cache system and updating the device shadow data further enhances the efficiency and accuracy of data processing. Through the real-time update of the device shadow, it can ensure that the synchronization of the device status with the IoT platform is accurate and correct, providing reliable data support for subsequent upgrade decisions. In addition, the device shadow update mechanism in this method also supports the implementation of more complex upgrade algorithms, such as personalized upgrade strategies based on device performance and usage environment, thereby achieving more customized services. The entire upgrade process is highly automated, which greatly reduces the need for manual intervention, reduces human errors during the upgrade process, and ensures the continuity and consistency of the upgrade. This grayscale upgrade method based on device shadows makes comprehensive use of the real-time data and historical performance of the device. Through efficient data processing and intelligent strategy analysis, it significantly improves the upgrade success rate of the entire IoT system, reduces economic losses and brand reputation risks caused by upgrade failures, and ensures the user's service experience and the long-term operation stability of the device.

[0122] The present application also provides a device grayscale upgrade device based on device shadow, and the device grayscale upgrade device based on device shadow includes a memory and a processor, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the device grayscale upgrade method based on device shadow in the above-mentioned embodiments.

[0123] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the device shadow-based device grayscale upgrade method.

[0124] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0125] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0126] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A device grayscale upgrade method based on device shadow, It is characterized in that The device shadow-based device grayscale upgrade method includes: Create device shadow data for each device on the IoT platform, where the device shadow data includes: real-time status of the device, expected status of the device, firmware version and configuration parameters; store the device shadow data of each device in a preset cache system, collect the target OTA upgrade package, and upload the target OTA upgrade package to the IoT platform; screen multiple devices for upgrade based on a preset grayscale upgrade ratio to obtain multiple devices to be upgraded; specifically include: collect historical upgrade data for each device to obtain historical upgrade data for each device, where the historical upgrade data includes: upgrade success rate, upgrade failure rate and user feedback data; collect network environment data for each device in real time to obtain network parameters for each device, where the network The parameters include: bandwidth utilization and server load; respectively calculating the upgrade status score of each device's historical upgrade data to obtain the upgrade status score of each device; sorting the multiple devices by the upgrade status score of each device to obtain first device sorting data; calculating the network status score of each device's network parameter to obtain the network status score of each device; sorting the multiple devices by the network status score of each device to obtain second device sorting data; screening the first device sorting data and the second device sorting data for overlapping devices by a preset screening ratio to obtain multiple overlapping devices; screening the multiple overlapping devices for upgrade devices by the grayscale upgrade ratio to obtain multiple devices to be upgraded; Upgrade multiple devices to be upgraded through the preset IoT platform, collect upgrade parameters in real time during the device upgrade process, and obtain the upgrade parameter set of each device to be upgraded; Upload the upgrade parameter set of each device to be upgraded to a preset cache system, and update the device shadow data of each device to be upgraded respectively to obtain the target shadow data of each device to be upgraded; Perform upgrade index evaluation on the target shadow data of each device to be upgraded to obtain the upgrade index evaluation result of each device to be upgraded; The upgrade index evaluation result of each device to be upgraded is input into the preset upgrade control strategy generation model for strategy analysis to obtain the device upgrade processing strategy of each device to be upgraded, and the device upgrade control of each device to be upgraded is performed according to the device upgrade processing strategy of each device to be upgraded.

2. The device grayscale upgrade method based on device shadow according to claim 1, It is characterized in that The device upgrade is performed on multiple devices to be upgraded through the preset Internet of Things platform, and the upgrade parameters in the device upgrade process are collected in real time to obtain the upgrade parameter set of each device to be upgraded, including: Send a target OTA upgrade package to each device to be upgraded through the Internet of Things platform, and upgrade multiple devices to be upgraded through the target OTA upgrade package; Collect the upgrade progress of each device to be upgraded respectively to obtain the upgrade progress time series data of each device to be upgraded; Collect memory usage data of each device to be upgraded respectively to obtain memory timing data of each device to be upgraded; Collect processor load data for each device to be upgraded respectively to obtain load time series data for each device to be upgraded; Perform upgrade event stream conversion on the upgrade progress time series data of each device to be upgraded, the memory time series data of each device to be upgraded, and the load time series data of each device to be upgraded, respectively, to obtain event stream data of each device to be upgraded; The upgrade parameters of each device to be upgraded are extracted from the event stream data respectively to obtain an upgrade parameter set of each device to be upgraded.

3. The device grayscale upgrade method based on device shadow according to claim 2, It is characterized in that The step of uploading the upgrade parameter set of each device to be upgraded to a preset cache system, and updating the device shadow data of each device to be upgraded respectively to obtain the target shadow data of each device to be upgraded includes: Uploading the upgrade parameter set of each device to be upgraded to the cache system, and performing differential data extraction on the device shadow data of each device to be upgraded according to the upgrade parameter set of each device to be upgraded, to obtain a differential data set of each device to be upgraded; Calculate the data hash value of each difference data set of each device to be upgraded to obtain the target hash value of each difference data set; According to the target hash value of each difference data set, data of each device to be upgraded is encrypted to obtain encrypted difference data of each device to be upgraded; The device shadow data of each device to be upgraded is updated respectively by using the encrypted difference data of each device to be upgraded to obtain the target shadow data of each device to be upgraded.

4. The device grayscale upgrade method based on device shadow according to claim 3, It is characterized in that The step of evaluating the upgrade index of the target shadow data of each device to be upgraded to obtain the upgrade index evaluation result of each device to be upgraded includes: Performing upgrade status analysis on the target shadow data of each device to be upgraded to obtain upgrade status data of each device to be upgraded, wherein the upgrade status data includes success and failure; Based on the upgrade status data of each device to be upgraded, respectively, a first score is calculated for the upgrade progress time series data of each device to be upgraded to obtain a first score for each device to be upgraded; Calculate the memory usage score of each device to be upgraded based on the memory timing data to obtain a second score of each device to be upgraded. Calculate the load score of each device to be upgraded respectively for the load time series data to obtain a third score of the device to be upgraded; An upgrade index evaluation is performed on the first score of each device to be upgraded, the second score of each device to be upgraded, and the third score of each device to be upgraded, respectively, to obtain an upgrade index evaluation result of each device to be upgraded.

5. The device grayscale upgrade method based on device shadow according to claim 4, It is characterized in that The upgrade index evaluation result of each device to be upgraded is input into a preset upgrade control strategy generation model for strategy analysis to obtain a device upgrade processing strategy for each device to be upgraded, and the device upgrade control is performed on each device to be upgraded according to the device upgrade processing strategy of each device to be upgraded, including: Input the upgrade index evaluation result of each device to be upgraded into the preset upgrade control strategy generation model to extract the index feature, and obtain the index feature data of each device to be upgraded, wherein the index feature data includes: upgrade speed and upgrade success rate; Performing matrix conversion on the upgrade speed of each device to be upgraded respectively to obtain a first characteristic matrix of each device to be upgraded; Perform matrix conversion on the upgrade success rate of each device to be upgraded respectively to obtain a second characteristic matrix of each device to be upgraded; Performing matrix weighted fusion on the first characteristic matrix of each device to be upgraded and the second characteristic matrix of each device to be upgraded to obtain a fusion matrix of each device to be upgraded; According to the fusion matrix of each device to be upgraded, a strategy analysis is performed on each device to be upgraded to obtain a device upgrade processing strategy for each device to be upgraded, and according to the device upgrade processing strategy for each device to be upgraded, device upgrade control is performed on each device to be upgraded.

6. A device grayscale upgrade device based on device shadow, It is characterized in that Used to execute the device grayscale upgrade method based on device shadow according to any one of claims 1 to 5, the device grayscale upgrade device based on device shadow comprises: An acquisition module is used to screen multiple devices for upgrading based on a preset grayscale upgrade ratio to obtain multiple devices to be upgraded; The upgrade module is used to upgrade multiple devices to be upgraded through a preset IoT platform, and collect upgrade parameters in real time during the device upgrade process to obtain an upgrade parameter set for each device to be upgraded; The upload module is used to upload the upgrade parameter set of each device to be upgraded to a preset cache system, and to update the device shadow data of each device to be upgraded respectively to obtain the target shadow data of each device to be upgraded; An evaluation module is used to evaluate the upgrade index of the target shadow data of each device to be upgraded, and obtain the upgrade index evaluation result of each device to be upgraded; The control module is used to input the upgrade index evaluation result of each device to be upgraded into a preset upgrade control strategy generation model for strategy analysis, obtain the device upgrade processing strategy of each device to be upgraded, and perform device upgrade control on each device to be upgraded according to the device upgrade processing strategy of each device to be upgraded.

7. A device grayscale upgrade device based on device shadow, It is characterized in that The device shadow-based device grayscale upgrade device comprises: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instruction in the memory to enable the device shadow-based device grayscale upgrade device to execute the device shadow-based device grayscale upgrade method according to any one of claims 1 to 5.

8. A computer-readable storage medium having instructions stored thereon, It is characterized in that When the instruction is executed by the processor, the device grayscale upgrade method based on device shadow as described in any one of claims 1 to 5 is implemented.