Firmware updating method and device, equipment, storage medium and program product

Through dynamic upgrade ratio management of the service function proportion of current firmware data and new firmware data, the problem of incompatibility or failure of functions during the OTA upgrade process is solved, the reliability of firmware upgrade is improved, and the device can operate normally after upgrading.

CN118939287APending Publication Date: 2024-11-12SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410906929.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

During the process of over-the-air download technology (OTA), the firmware upgrade data is incompatible with the smart device or the function is invalid, resulting in the device operating area being damaged and the network is disconnected and unable to recover.

Method used

Provides a firmware update method to dynamic firmware upgrades by obtaining new firmware data of the target device and running the current firmware data and new firmware data simultaneously in a dynamic upgrade ratio. Dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data. When the proportion of service functions provided by the new firmware data reaches the preset conditions, complete firmware updates to provide corresponding services through the new firmware data. Service function.

Benefits of technology

It avoids the problem that the firmware upgrade data is incompatible with smart devices or fails in functions during the OTA upgrade process, improves the reliability of firmware upgrades, and ensures that the device is not damaged during the upgrade process and can be used normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939287A_ABST
    Figure CN118939287A_ABST
Patent Text Reader

Abstract

The invention discloses a firmware updating method and device, computer equipment, a storage medium and a computer program product, and relates to the technical field of data processing.The method comprises the steps that new firmware data of target equipment is obtained; simultaneously running the current firmware data and the new firmware data according to the dynamic upgrading proportion so as to carry out dynamic firmware upgrading on the target equipment; the dynamic upgrading proportion is used for determining the proportion of service functions respectively provided by the current firmware data and the new firmware data; when the proportion of the service function provided by the new firmware data reaches a preset condition, firmware updating of the target equipment is completed, and the corresponding service function is provided through the new firmware data. In the firmware updating scheme provided by the invention, the current firmware data and the new firmware data are simultaneously operated according to the dynamic upgrading proportion, and when the proportion of the service function provided by the new firmware data reaches the preset condition, the corresponding service function is provided through the new firmware data, so that the reliability of firmware upgrading on the intelligent equipment is improved.
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 technology, and in particular to a firmware update method, device, equipment, storage medium and program product. Background Art

[0002] With the development of the Internet of Things, the types of smart devices are becoming more and more diverse. In order to reduce maintenance costs and improve user experience, OTA (Over-the-Air) technology has become the standard in the era of smart Internet of Things. With the popularization of 4G, WiFi and Bluetooth Mesh technology in IoT upgrade devices, more devices have increasingly higher requirements for upgrades.

[0003] However, in actual use, different devices may have different hardware and software features, which may cause the operating area of ​​the smart device to be destroyed due to compatibility issues when the device's firmware is upgraded, causing the smart device to be disconnected from the network and unusable and unable to be restored. Summary of the invention

[0004] Based on this, it is necessary to provide a firmware update method, device, computer equipment, storage medium and computer program product to address the above-mentioned technical problems, which can solve the problem that during the Over The Air (OTA) upgrade process, the firmware upgrade data is incompatible with the smart device or the function fails, resulting in the destruction of the running area of ​​the smart device and the disconnection from the network, becoming a brick and unable to be restored.

[0005] The present application provides a firmware update method, the method comprising:

[0006] Get the new firmware data of the target device;

[0007] Running the current firmware data and the new firmware data simultaneously according to a dynamic upgrade ratio to dynamically upgrade the firmware of the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively;

[0008] When the proportion of the service functions provided by the new firmware data reaches a preset condition, the firmware update of the target device is completed to provide the corresponding service functions through the new firmware data.

[0009] Accordingly, the present application provides a firmware update device, the device comprising:

[0010] An acquisition module, used to acquire new firmware data of a target device;

[0011] An operation module, used to simultaneously operate the current firmware data and the new firmware data according to a dynamic upgrade ratio to dynamically upgrade the firmware of the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively;

[0012] A completion module is used to complete the firmware update of the target device when the proportion of the service functions provided by the new firmware data reaches a preset condition, so as to provide the corresponding service functions through the new firmware data. Optionally, in some embodiments of the present application, the operation module includes:

[0013] A verification submodule, used for verifying the service function of the new firmware data during the operation of the new firmware data;

[0014] The first adjustment submodule is used to adjust the dynamic upgrade ratio in a corresponding manner if the service function verification of the new firmware data is passed, and gradually increase the proportion of the service function of the new firmware data and gradually reduce the proportion of the service function of the current firmware data according to the adjusted dynamic upgrade ratio, so as to dynamically upgrade the firmware of the target device.

[0015] Optionally, in some embodiments of the present application, the operation module includes:

[0016] The second adjustment submodule is used to adaptively adjust the dynamic upgrade ratio according to the grayscale flow corresponding to the current firmware data and the new firmware data, and simultaneously run the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0017] Optionally, in some embodiments of the present application, the operation module includes:

[0018] The third adjustment submodule is used to adaptively adjust the dynamic upgrade ratio based on the usage status of the new firmware data and the usage status of the current firmware data, and simultaneously run the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0019] Optionally, in some embodiments of the present application, the operation module includes:

[0020] The fourth adjustment submodule is used to adaptively adjust the dynamic upgrade ratio based on the operating status of the service function of the new firmware data and the operating status of the service function of the current firmware data, and simultaneously run the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0021] Optionally, in some embodiments of the present application, the fourth regulating submodule includes:

[0022] A first determining unit, configured to determine a service function in the new firmware data that has been verified according to a running state of the service function of the new firmware data;

[0023] A second determining unit, configured to determine a service function that is operating normally in the current firmware data according to an operating state of the service function of the current firmware data;

[0024] The running unit is used to adaptively adjust the dynamic upgrade ratio based on the verified service functions in the new firmware data and the service functions that are normally running in the current firmware data, and simultaneously run the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio.

[0025] Optionally, in some embodiments of the present application, the operation module includes:

[0026] A determination submodule, used to determine the busyness of the target device based on the current operating state of the target device;

[0027] The fifth regulating submodule is used to adaptively adjust the dynamic upgrade ratio according to the busyness, and simultaneously run the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0028] Optionally, in some embodiments of the present application, the device further includes a termination module, and the termination module is specifically configured to:

[0029] Terminate the operation of the current firmware data.

[0030] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the firmware update method in each embodiment of the present application when executing the computer program.

[0031] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the firmware update method in each embodiment of the present application.

[0032] A computer program product or a computer program, wherein the computer program product or the computer program comprises computer instructions, wherein the computer instructions are stored in a computer-readable storage medium; a processor of the computer device reads the computer instructions from the computer-readable storage medium, and when the processor executes the computer instructions, the steps in the firmware update method of each embodiment of the present application are implemented.

[0033] The present application provides a firmware update method, apparatus, computer equipment and storage medium, which obtain new firmware data of a target device; run the current firmware data and the new firmware data simultaneously according to a dynamic upgrade ratio to dynamically upgrade the firmware of the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively; when the proportion of service functions provided by the new firmware data reaches a preset condition, the firmware update of the target device is completed to provide the corresponding service functions through the new firmware data. In the firmware update scheme provided by the present application, the current firmware data and the new firmware data are run simultaneously according to a dynamic upgrade ratio, and when the proportion of service functions provided by the new firmware data reaches a preset condition, the corresponding service functions are provided through the new firmware data, thereby avoiding the problem of incompatibility between the firmware upgrade data and the smart device or functional failure during the Over The Air (OTA) upgrade process, which causes the operating area of ​​the smart device to be destroyed and the network to become bricked and cannot be restored, thereby improving the reliability of firmware upgrades for smart devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 An application environment diagram of the firmware update method provided in an embodiment of the present application;

[0035] Figure 2 A flowchart of a firmware update method provided in an embodiment of the present application;

[0036] Figure 3 A flowchart of a firmware update method provided in another embodiment of the present application;

[0037] Figure 4 A structural block diagram of a firmware update device provided in an embodiment of the present application;

[0038] Figure 5 This is a diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0040] The firmware update method provided in this application can be applied to Figure 1 In the application environment shown. Figure 1 A firmware update system is provided. The firmware update system includes a smart device 10, a gateway 20 communicatively connected to the smart device 10, a router 30, a server 40, and a terminal 50.

[0041] The smart device 10 accesses the gateway 20 in the firmware update system, and communicates with the gateway 20 through its own configured communication module, and is then controlled by the gateway 20. In one embodiment, the smart device 10 accesses the gateway 20 through a local area network path or a wide area network path, and is deployed in the gateway 20. The local area network may include ZIGBEE or Bluetooth, and the wide area network may include 2G / 3G / 4G / 5G / WIFI, etc.

[0042] The gateway 20 establishes a network connection with the terminal 50 or the server 40 through the router 30. In one embodiment, the gateway 20 and the terminal 50 may establish a network connection through a local area network or a wide area network path. The network connection interacts with the terminal 50, so that the user can control the smart device 10 connected to the gateway 20 to perform corresponding actions through the terminal 50.

[0043] Among them, the computer device may include a terminal 50 and / or a server 40, and the terminal 50 may be a smart phone, a laptop, a personal computer, a tablet computer, an intelligent control panel or other electronic device that can implement network connection, which is not limited here. The server can be implemented as an independent server or a server cluster composed of multiple servers. The smart device 10 can be a smart home device, such as a smart light bulb, a smart socket, a smart lock, a smart thermostat, etc.; it can be a medical device, such as a remote monitoring device, a wearable health tracker, etc.; it can be an urban infrastructure, such as a smart street lamp, a traffic monitoring camera, an environmental monitoring device, etc.; it can be a security monitoring device, such as a smart camera, an alarm system, etc.

[0044] When the smart device needs to perform a firmware update, the new firmware data of the target device is obtained, and then the current firmware data and the new firmware data are run simultaneously according to the dynamic upgrade ratio to perform a dynamic firmware upgrade on the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively. Finally, when the proportion of service functions provided by the new firmware data reaches the preset condition, the firmware update of the target device is completed to provide the corresponding service functions through the new firmware data.

[0045] In the firmware update solution provided in the present application, the terminal 50 obtains the new firmware data of the smart device 10 from the server 40 through the wide area network path, and then the terminal 50 runs the current firmware data and the new firmware data on the smart device 10 simultaneously through the local area network path according to the dynamic upgrade ratio. When the proportion of the service functions provided by the new firmware data reaches the preset conditions, the terminal 50 controls the smart device 10 to provide the corresponding service functions through the new firmware data, thereby avoiding the problem of incompatibility between the firmware upgrade data and the smart device or functional failure during the over-the-air (OTA) upgrade process, which causes the operating area of ​​the smart device to be destroyed and the network to be disconnected and bricked and cannot be restored, thereby improving the reliability of firmware upgrades for smart devices.

[0046] In addition, the present application can also be implemented through hardware circuits or hardware circuits combined with software instructions. Therefore, the implementation of the present application is not limited to any specific hardware circuits, software, or a combination of the two.

[0047] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0048] The present application provides a firmware update method, including: obtaining new firmware data of a target device; running current firmware data and new firmware data simultaneously according to a dynamic upgrade ratio to dynamically upgrade the firmware of the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively; when the proportion of service functions provided by the new firmware data reaches a preset condition, completing the firmware update of the target device to provide corresponding service functions through the new firmware data.

[0049] See also Figure 2 A firmware update method is provided, and the method is applied to an electronic device as an example for explanation. The electronic device may be Figure 1 The smart device 10, terminal 50, gateway 20, server 40, etc. in the embodiment specifically include the following steps:

[0050] S101: Acquire new firmware data of a target device.

[0051] The target device may be an IoT device such as a smart air conditioner, a smart refrigerator, or a smart curtain. Firmware data may be software code embedded in the target device, which includes all software instructions and programs of the target device and is used to enable the target device to operate normally. New firmware data refers to software code that updates / upgrades the firmware data of the target device, which may be used to improve the performance of the target device, fix known errors, add new functions, or enhance security.

[0052] With the rapid development of the Internet of Things and smart devices, Over The Air (OTA) technology has become an important technical means to achieve remote updates and upgrades of smart devices. OTA technology usually refers to the process of transmitting, updating or upgrading data with smart devices through wireless communication. It is often used for remote updates and management of device firmware, software, configuration files, etc. Common applications include OTA firmware upgrades, OTA software updates, and OTA configuration file pushes.

[0053] In the application scenario of OTA, it is generally divided into application function version OTA and system version OTA. In the embodiment of this application, the OTA upgrade of the application function version is used as an example for explanation. In the process of OTA upgrade of smart devices, when the computer device receives the OTA upgrade reminder of the target application (such as smart home application), the version upgrade information is displayed, and the version upgrade information is used to remind the user that the target application has an upgradeable OTA version; then, in response to the user's upgrade selection operation, the upgrade package corresponding to the target application, that is, the new firmware data, is obtained online, and the upgrade package can be downloaded to the local storage space of the IoT device.

[0054] S102: Running the current firmware data and the new firmware data simultaneously according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively.

[0055] Among them, the current firmware data can be the firmware data currently running on the target device, and the current firmware data can be used to determine whether the target device needs to be updated, whether there are security risks, and whether the target device is running in the best state; when the target device needs to perform a firmware update, the current firmware data can also be used to determine the scope and necessity of the update.

[0056] Firmware upgrade is the process of updating the firmware in the target device. Firmware is software embedded directly into the target device and controls the low-level operation and functions of the target device. Firmware upgrade is used to improve the device performance of the target device, add new features, fix known errors or security vulnerabilities, and improve the overall stability and security of the target device.

[0057] Dynamic firmware upgrade is the process of updating or upgrading the firmware of the target device during its operation, which is beneficial to maintaining the key infrastructure of the target device and ensuring the security of the target device. The dynamic upgrade ratio can pre-set the proportion of service functions of the current firmware data and the new firmware data according to different stages during the firmware upgrade of the target device.

[0058] After the electronic device target device has new firmware data, the firmware upgrade process can be divided into stages, and the proportion of service functions of the new firmware data can be gradually increased according to the divided stages, while the proportion of service functions of the old firmware data can be gradually reduced to dynamically upgrade the firmware of the target device.

[0059] For example, the firmware upgrade process is divided into five stages: early stage, early middle stage, middle stage, late middle stage and late stage. In the early stage, the proportion of setting the service functions of the current firmware data is 95%, and the proportion of the service functions of the new firmware data is 5%; in the early middle stage, the proportion of setting the service functions of the current firmware data is 80%, and the proportion of the service functions of the new firmware data is 20%; in the middle stage, the proportion of setting the service functions of the current firmware data is 60%, and the proportion of the service functions of the new firmware data is 40%; in the late middle stage, the proportion of setting the service functions of the current firmware data is 35%, and the proportion of the service functions of the new firmware data is 65%; in the late stage, the proportion of setting the service functions of the current firmware data is 0, and the proportion of the service functions of the new firmware data is 100%. Based on this, dynamic firmware upgrade of the target device is achieved.

[0060] S103: When the proportion of service functions provided by the new firmware data reaches a preset condition, the firmware update of the target device is completed to provide corresponding service functions through the new firmware data.

[0061] The proportion of service functions provided may refer to the proportion of system services and functions of the target device undertaken by the new firmware data and the current firmware data respectively during the dynamic firmware upgrade process.

[0062] It can be understood that firmware update can refer to the process of upgrading the firmware version in the target device to a new firmware version. The proportion of service functions provided by the new firmware data reaching the preset condition can be 100%. When the proportion of service functions provided by the new firmware data is 100%, it indicates that the new firmware data fully provides service functions, and it is determined that the firmware update of the target device is completed, and the corresponding service functions are provided by the new firmware data.

[0063] Service functions refer to the specific tasks and roles that firmware performs in smart devices. These service functions enable smart devices to operate normally and provide the services required by users.

[0064] Exemplarily, service functions may include firmware controlling the basic operations of smart devices, such as starting, running, maintaining and shutting down smart devices; providing an interface for users to interact with smart devices, including displaying information and responding to user input; managing network connections of smart devices, including wireless connection protocols such as Wi-Fi, Bluetooth, Zigbee, etc.; implementing security mechanisms such as encryption and authentication to protect the security of smart devices and user data, etc.

[0065] In some embodiments, when the proportion of service functions provided by the new firmware data reaches a preset condition, after completing the firmware update of the target device, the current firmware data is saved and backed up, so that when an abnormality occurs during the operation of the new firmware data and needs to be repaired, the current firmware data can be used to provide the corresponding service functions. If there are multiple current firmware data, the current firmware data closest to the current time can be selected from the multiple current firmware data for saving and backing up.

[0066] Furthermore, when the proportion of service functions provided by the new firmware data reaches a preset condition, after completing the firmware update of the target device to provide the corresponding service functions through the new firmware data, an upgrade completion message can also be generated to notify the user that the firmware upgrade process has been completed.

[0067] After the electronic device obtains the new firmware data of the target device, it runs the current firmware data and the new firmware data simultaneously according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively; when the proportion of service functions provided by the new firmware data reaches a preset condition, the firmware update of the target device is completed to provide the corresponding service functions through the new firmware data.

[0068] In the firmware update solution provided in the present application, the current firmware data and the new firmware data are run simultaneously according to a dynamic upgrade ratio. When the proportion of service functions provided by the new firmware data reaches a preset condition, the corresponding service functions are provided through the new firmware data. This avoids the situation in which the operating area of ​​the smart device is destroyed, disconnected from the network, and becomes bricked and cannot be restored due to incompatibility between the firmware upgrade data and the smart device or functional failure during the upgrade process, thereby improving the reliability of firmware upgrades for smart devices.

[0069] In some embodiments, during the operation of the new firmware data, after verifying whether the service function of the new firmware data is used normally, the dynamic upgrade ratio can be adjusted, and the proportion of the service functions of the new firmware data and the current firmware data can be adjusted according to the adjusted dynamic upgrade ratio to achieve dynamic firmware upgrade of the target device, that is, the step of "simultaneously running the current firmware data and the new firmware data according to the dynamic upgrade ratio to perform dynamic firmware upgrade on the target device" includes:

[0070] During the operation of the new firmware data, the service functions of the new firmware data are verified;

[0071] If the service function verification of the new firmware data passes, the dynamic upgrade ratio is adjusted accordingly, and based on the adjusted dynamic upgrade ratio, the proportion of the service functions of the new firmware data is gradually increased and the proportion of the service functions of the current firmware data is gradually reduced to perform dynamic firmware upgrades on the target device.

[0072] Among them, the electronic device can adjust the dynamic upgrade ratio by performing performance monitoring, user feedback, traffic segmentation or automatic test results of the target device. For example, the system performance indicators of the target device, such as response time, error rate, resource utilization, etc., are monitored in real time to evaluate the performance of the new firmware data, and the dynamic upgrade ratio is adjusted based on the performance of the new firmware data. For example, user feedback is collected and analyzed to understand the impact of the new firmware data on the user experience, including positive and negative feedback, so as to adjust the dynamic upgrade ratio according to the positive and negative feedback of the user. For example, the function and performance of the new firmware data can be continuously evaluated through an automated testing system, and regression or abnormal behavior can be identified to adjust the dynamic upgrade ratio according to the regression or abnormal behavior. For example, according to the performance test results and monitoring data, the traffic ratio of the new and old firmware is dynamically adjusted to achieve the adjustment of the dynamic upgrade ratio.

[0073] In the process of running the new firmware data, the electronic device can verify the service function of the new firmware data of the target device in units of preset time. Specifically, the service functions that need to be verified in the process of running the new firmware data and the corresponding verification standards can be predetermined, and then the service functions of the new firmware data are monitored and evaluated to verify the service functions through the verification standards.

[0074] For example, you can use an automated testing framework to perform regression testing, functional testing, and performance testing to continuously verify the functionality and performance of the new firmware data. You can also use monitoring tools to monitor key performance indicators in real time, such as response time, processing speed, and system resource usage. You can also collect and analyze system logs in real time to quickly identify and resolve any anomalies or errors to determine whether the service functions of the new firmware data are working properly.

[0075] If the service functions of the new firmware data are used normally, the electronic device can adjust the dynamic upgrade ratio according to a preset fixed amplitude ratio, and adjust the proportion of the service functions of the new firmware data and the current firmware data according to the adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0076] Exemplarily, the fixed amplitude ratio can be 20%. For example, the proportion of the service function of the new firmware data is gradually increased, which is 20%, 40%, 60%, 80% and 100% in sequence. Correspondingly, the proportion of the service function of the current firmware data is gradually reduced, which is 80%, 60%, 40%, 20% and 0% in sequence. For example, first set the proportion of the service function of the application process of the new firmware data to 20%, and the proportion of the service function of the application process of the current firmware data to 80%. When the new firmware data and the current firmware data are running for up to 24 hours, verify whether the 20% service function provided by the new firmware data of the target device is used normally. If normal, increase the proportion of the service function of the new firmware data to 40%. Correspondingly, reduce the proportion of the service function of the current firmware data to 60%. When the new firmware data and the current firmware data are running for up to 24 hours, it is verified whether 40% of the service functions provided by the new firmware data of the target device are used normally. If normal, the proportion of the service functions of the new firmware data is increased to 60%, and correspondingly, the proportion of the service functions of the current firmware data is reduced to 40%, and so on, until the proportion of the service functions of the new firmware data is 100%, until the proportion of the service functions of the previous firmware data is 0, thereby completing the dynamic firmware upgrade of the target device.

[0077] In this embodiment, by gradually increasing the proportion of service functions of the new firmware data and gradually reducing the proportion of service functions of the current firmware data, it is beneficial to ensure the compatibility of the upgrade package during the OTA upgrade process, avoid incompatibility or functional failure problems that cause the operating area of ​​the smart device to be destroyed and the network to be disconnected and bricked and unable to be restored, improve the security and reliability of the target device during OTA upgrades, and ensure that the target device is not affected by the compatibility of the upgrade package during the OTA upgrade process, avoid failures and instability caused by the version of the new firmware data, thereby ensuring the quality and stability of the new firmware data.

[0078] In one embodiment, the dynamic upgrade ratio can be adjusted according to the grayscale traffic corresponding to the current firmware data and the new firmware data, that is, the step of "simultaneously running the current firmware data and the new firmware data according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device" includes:

[0079] According to the grayscale traffic corresponding to the current firmware data and the new firmware data, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are simultaneously run according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0080] The grayscale traffic can be determined based on the traffic allocation ratio between the new firmware data and the current firmware data to determine the traffic usage ratio of the current firmware data and the traffic usage ratio of the new firmware data. For example, 5% of the traffic uses the new firmware data, and 95% of the traffic uses the current firmware data.

[0081] After the new firmware data runs normally, the new firmware data and the current firmware data can provide services simultaneously in the form of grayscale traffic. At this time, a proxy service device is set at the system level of the terminal or server. The proxy service device is used to receive user requests or visits, and proxy and distribute user requests or visits to perform grayscale traffic, so as to adaptively adjust the dynamic upgrade ratio, and simultaneously run the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the target device.

[0082] For example, the proxy service device is first used to set the proportion of service functions first provided by the application process of the new firmware data to 5%, and the proportion of service functions first provided by the application process of the current firmware data to 95%. After a period of time (such as 24 hours), it is verified whether the 5% service functions provided by the new firmware data can be used normally. If normal, the proportion of the service functions of the new firmware data is increased by 20%, and correspondingly, the proportion of the service functions of the current firmware data is reduced to 80%. When the 20% service functions provided by the new firmware data are verified after a period of time (such as 24 hours), it is verified whether the service functions of the new firmware data of the target device are used normally. If normal, the proportion of the service functions of the new firmware data is increased to 80%, and correspondingly, the proportion of the service functions of the current firmware data is reduced to 20%. And so on, until the proportion of the service functions of the new firmware data is 100% and the proportion of the service functions of the current firmware data is 0, dynamic firmware upgrade of the target device is achieved.

[0083] In this embodiment, by adaptively adjusting the dynamic upgrade ratio through the grayscale traffic corresponding to the new firmware data and the old firmware data, the proportion of the service functions of the new firmware data and the current firmware data can be effectively allocated, shortening the upgrade time, and ensuring the compatibility of the upgrade package during the OTA upgrade process, avoiding the situation where the operating area of ​​the smart device is destroyed and the network is disconnected and the device becomes bricked and cannot be restored due to incompatibility or functional failure problems, improving the security and reliability of the target device during OTA upgrades, and ensuring that the target device is not affected by the compatibility of the upgrade package during the OTA upgrade process and can be used normally.

[0084] In one embodiment, the dynamic upgrade ratio can be adjusted according to the usage status of the new firmware data and the usage status of the current firmware data, that is, the step of "simultaneously running the current firmware data and the new firmware data according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device" includes:

[0085] Based on the usage status of the new firmware data and the usage status of the current firmware data, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are simultaneously run according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0086] Among them, the usage status of the new firmware data may refer to the running status of the new firmware data on the target device, such as user coverage, performance (such as performance indicators of the new firmware data when running, such as response time, processing speed, resource consumption, etc.), stability, user feedback, etc.; the usage status of the current firmware data may refer to the running status of the current firmware data on the target device, such as user coverage, performance (such as performance indicators of the new firmware data when running, such as response time, processing speed, resource consumption, etc.), stability, user feedback, etc.

[0087] After the new firmware data runs normally, the new firmware data and the current firmware data can provide services at the same time according to the time range setting of the use status of the new firmware data and the use status of the current firmware data. Exemplarily, the old firmware data is used during busy hours, and the new firmware data is used during idle hours. For example, assuming that 0:00 to 8:00 in the morning is a time period with a low frequency of using the target device, 9:00 to 12:00 in the morning is a time period with a high frequency of using the target device, 13:00 to 14:00 in the afternoon is a time period with a low frequency of using the target device, 15:00 to 18:00 in the afternoon is a time period with a high frequency of using the target device, and 19:00 to 23:00 in the afternoon is a time period with a low frequency of using the target device, then the old firmware data is used to provide service functions for the application process from 9:00 to 12:00 in the morning and from 15:00 to 18:00 in the afternoon, and the new firmware data is used to provide service functions for the application process from 0:00 to 8:00 in the morning, from 13:00 to 14:00 in the afternoon, and from 15:00 to 18:00 in the afternoon.

[0088] Specifically, for example, if the current time period is a time period in which the target device is used more frequently, the proportion of service functions of the application process of the new firmware data is set to 0%, and the proportion of service functions of the application process of the current firmware data is set to 100%; if the current time period is a time period in which the target device is used less frequently, the proportion of service functions of the application process of the new firmware data is set to 100%, and the proportion of service functions of the application process of the old firmware data is set to 0. Based on this, the service functions in the new firmware data are verified, and when all service functions in the new firmware data are verified, the firmware upgrade process is completed.

[0089] In this embodiment, by adjusting the dynamic upgrade ratio by the usage status of the new firmware data and the usage status of the current firmware data, the proportion of the service functions of the new firmware data and the current firmware data can be effectively allocated, shortening the upgrade time, and ensuring the compatibility of the upgrade package during the OTA upgrade process, avoiding the situation where the operating area of ​​the smart device is destroyed and the network is disconnected and the device becomes bricked and cannot be restored due to incompatibility or functional failure problems, improving the security and reliability of the target device during OTA upgrades, and ensuring that the target device is not affected by the compatibility of the upgrade package during the OTA upgrade process, avoiding failures and instability caused by the version of the new firmware data, thereby ensuring the quality and stability of the new firmware data.

[0090] In one embodiment, the dynamic upgrade ratio can be adjusted according to the running status of the service function of the new firmware data and the running status of the service function of the current firmware data, that is, the step of "simultaneously running the current firmware data and the new firmware data according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device" includes:

[0091] Based on the running status of the service functions of the new firmware data and the running status of the service functions of the current firmware data, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are simultaneously run according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0092] The operating status of the service function may be the working status of the target device when providing its service function, such as the service function working as expected without errors or exceptions; it may also be the usage of resources such as processor, memory, storage and network.

[0093] After the new firmware data runs normally, the dynamic upgrade ratio can be adjusted according to the running status of the service functions of the new firmware data and the running status of the service functions of the current firmware data to provide services to the target device at the same time. For example, assuming that the proportion of the service functions of the new firmware data is 40%, and the proportion of the service functions of the current firmware data is 60%, if the running status of the service functions of the new firmware data is 30% of the services running, the remaining 10% of the service functions are idle. At this time, the running status of the service functions of the old firmware data is 60% of the services running, and the remaining 10% of the services are waiting to be executed, then the proportion of the service functions of the new firmware data is reduced to 30%, and the proportion of the service functions of the current firmware data is increased to 70%.

[0094] In this embodiment, by adaptively adjusting the dynamic upgrade ratio through the running status of the new firmware data and the running status of the old firmware data, the proportion of the service functions of the new firmware data and the current firmware data can be effectively allocated, shortening the upgrade time, and ensuring the compatibility of the upgrade package during the OTA upgrade process, avoiding the situation where the operating area of ​​the smart device is destroyed and the network is disconnected and the device becomes bricked and cannot be restored due to incompatibility or functional failure problems, improving the security and reliability of the target device during OTA upgrades, and ensuring that the target device is not affected by the compatibility of the upgrade package during the OTA upgrade process and can be used normally.

[0095] In one embodiment, the dynamic upgrade ratio can be adjusted according to the verified service functions in the new firmware data and the service functions running normally in the current firmware data, that is, the step of "adaptively adjusting the dynamic upgrade ratio based on the running status of the service functions of the new firmware data and the running status of the service functions of the current firmware data, and simultaneously running the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the target device" includes:

[0096] Determine the service functions in the new firmware data that have been verified according to the running status of the service functions in the new firmware data;

[0097] Determine the service function that is running normally in the current firmware data according to the running status of the service function of the current firmware data;

[0098] Based on the verified service functions in the new firmware data and the service functions running normally in the current firmware data, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are run simultaneously according to the adaptively adjusted dynamic upgrade ratio.

[0099] The electronic device can monitor the running status of the service functions of the new firmware data in real time, thereby determining the service functions in the new firmware data that have been verified.

[0100] The electronic device can also monitor the operating status of the service function of the current firmware data in real time, thereby determining the service function that is operating normally in the current firmware data.

[0101] After the new firmware data runs normally, the ratio of the verified service functions in the new firmware data to the normally running service functions in the current firmware data can be determined according to the running status of the service functions of the new firmware data and the running status of the service functions of the current firmware data, and the dynamic upgrade ratio can be adjusted according to the ratio to provide services to the target devices at the same time.

[0102] For example, the running status of the service functions of the new firmware data can be monitored in real time to determine that 60% of the service functions in the new firmware data have been verified, and the remaining 40% of the service functions have not been verified; the running status of the service functions of the current firmware data can be monitored in real time to determine that 100% of the service functions in the current firmware data are operating normally, and the ratio of the verified service functions to the operating service functions is 3 / 5=0.6. Based on this ratio, the dynamic upgrade ratio can be adjusted. For example, it is determined that the proportion of the service functions of the current firmware data should be 40 / 0.6=66%. At this time, assuming that the proportion of the service functions of the new firmware data is 50% and the proportion of the service functions of the current firmware data is 50% at the current time, then the proportion of the service functions of the new firmware data can be reduced to 34%, and the proportion of the service functions of the current firmware data can be increased to 66%.

[0103] In this embodiment, by adaptively adjusting the dynamic upgrade ratio by the verified service functions in the new firmware data and the normally running service functions in the old firmware data, the proportion of the service functions of the new firmware data and the current firmware data can be effectively allocated, shortening the upgrade time, and ensuring the compatibility of the upgrade package during the OTA upgrade process, avoiding the situation where the operating area of ​​the smart device is destroyed and the network is disconnected and the device becomes bricked and cannot be restored due to incompatibility or functional failure, improving the security and reliability of the target device during OTA upgrades, and ensuring that the target device is not affected by the compatibility of the upgrade package during the OTA upgrade process and can be used normally.

[0104] In one embodiment, the dynamic upgrade ratio can be adjusted according to the busyness of the target device, that is, the step of "running the current firmware data and the new firmware data simultaneously according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device" includes:

[0105] Determine the busyness of the target device based on the current operating status of the target device;

[0106] According to the busyness, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are simultaneously run according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0107] The busyness of the target device may refer to the amount of tasks, requests or workloads processed by the target device, which is used to reflect the usage frequency of the target device, the intensity of the workload and the device processing capability.

[0108] After the new firmware data runs normally, if the current running state of the target device is running, the busyness of the target device is determined to be high; if the current running state of the target device is standby, the busyness of the target device is determined to be medium; if the current running state of the target device is shut down, the busyness of the target device is determined to be low; according to the busyness of the target device, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are run simultaneously according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0109] For example, assuming that the service function of the new firmware data accounts for 50% and the service function of the current firmware data accounts for 50%, the operating status of the service function of the new firmware data can be monitored in real time. When it is determined that the current busyness of the target device is high, the service function of the new firmware data is set to 0, and the service function of the current firmware data is set to 100%; when it is determined that the current busyness of the target device is medium, the service function of the new firmware data can be set to 20%, and the service function of the current firmware data can be set to 80%; when it is determined that the target device is not busy, the service function of the new firmware data can be set to 80%, and the service function of the current firmware data can be set to 20%.

[0110] In this embodiment, by adaptively adjusting the dynamic upgrade ratio according to the busyness of the target device, the compatibility of the upgrade package can be ensured during the OTA upgrade process, avoiding incompatibility or functional failure problems that cause the operating area of ​​the smart device to be destroyed and the network to be disconnected and bricked and unable to recover, thereby improving the security and reliability of the target device during OTA upgrades, and ensuring that the target device is not affected by the compatibility of the upgrade package during the OTA upgrade process and can be used normally.

[0111] In one embodiment, after the step of “when the proportion of service functions provided by the new firmware data reaches a preset condition, completing the firmware update of the target device to provide corresponding service functions through the new firmware data”, it also includes:

[0112] Terminate the operation of the current firmware data.

[0113] In this embodiment, the electronic device promptly terminates the operation of the current firmware data after the new firmware data can fully provide the corresponding service functions, thereby avoiding occupying the system resources of the computer device and improving the system performance.

[0114] To further understand the device information processing method of this application, please refer to Figure 3 The following is a further explanation of the device information processing method applied to the terminal. The specific process is as follows:

[0115] During the OTA process of smart devices, the device OTA manufacturer will generally remind user 1 at the user end (such as the terminal APP) that there is an upgradeable OTA version, and the user can choose whether to upgrade; after the user chooses to upgrade, the terminal will respond to the choice of user 1 and obtain the upgrade package (i.e., new firmware data) online to download the upgrade package to the local storage space of the IoT device (i.e., smart device / target device).

[0116] When the IoT device verifies that the downloaded firmware upgrade package is legal, it starts the new upgrade package (i.e., the new firmware data) and initializes the loading of data in the local storage space (in order to meet the normal functional use of user 1, at this time, the terminal needs to initialize and load some local data. At the same time, the old firmware version (current firmware data) runs normally. When the new firmware runs successfully (i.e., the terminal or server system will add a new process number or a port number), it is equivalent to starting a new application process in the terminal or server system. Based on this, there are two processes of the new and old firmware providing corresponding services at the same time.

[0117] After the new firmware package runs normally, the new and old firmware versions can access or use the device in a grayscale flow mode, that is, the new and old firmware provide services at the same time. At this time, a corresponding request distribution and proxy device is set at the system level of the terminal or server to perform grayscale flow for the request or access of user 1. Using this device, the application process of the new firmware version can be set to provide 5% of the services first, and the application process of the old version can provide 95% of the services.

[0118] After verifying that the new firmware version (i.e., new firmware data) of the IoT device is normal by verifying whether user 1 uses the new firmware version (i.e., new firmware data and old firmware data) for a period of time (e.g., 24 hours), the service percentage of the new firmware version can be gradually increased (e.g., 20%, 50%, 95%, ...) until the new firmware version (i.e., new firmware data) fully provides services. The old firmware version program (i.e., current firmware data) can be shut down and completely provided with services by the new firmware data to ensure the compatibility of the upgrade package during the OTA upgrade process, avoid the situation where the operating area of ​​the smart device is destroyed and the network is disconnected and cannot be used and restored due to incompatibility or functional failure, and make the smart device OTA safe and reliable.

[0119] In the above firmware update method, the new firmware data of the target device is obtained; the current firmware data and the new firmware data are run simultaneously according to the dynamic upgrade ratio to perform a dynamic firmware upgrade on the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively; when the proportion of service functions provided by the new firmware data reaches a preset condition, the firmware update of the target device is completed to provide the corresponding service functions through the new firmware data. In the firmware update scheme provided in the present application, the current firmware data and the new firmware data are run simultaneously according to the dynamic upgrade ratio, and when the proportion of service functions provided by the new firmware data reaches a preset condition, the corresponding service functions are provided through the new firmware data, so as to avoid the situation in which the operating area of ​​the smart device is destroyed and the network is disconnected and cannot be used and cannot be restored due to the problem of incompatibility between the firmware upgrade data and the smart device or functional failure during the Over The Air (OTA) upgrade process, thereby improving the reliability of firmware upgrades for smart devices.

[0120] In one embodiment, Figure 4 As shown, a firmware update device is provided, including: an acquisition module 201, an operation module 202 and a completion module 203, wherein:

[0121] An acquisition module 201 is used to acquire new firmware data of a target device;

[0122] The running module 202 is used to run the current firmware data and the new firmware data at the same time according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively;

[0123] The completion module 203 is used to complete the firmware update of the target device when the proportion of the service functions provided by the new firmware data reaches a preset condition, so as to provide the corresponding service functions through the new firmware data.

[0124] In this embodiment, the new firmware data of the target device is obtained; the current firmware data and the new firmware data are run simultaneously according to the dynamic upgrade ratio to perform a dynamic firmware upgrade on the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively; when the proportion of service functions provided by the new firmware data reaches a preset condition, the firmware update of the target device is completed to provide the corresponding service functions through the new firmware data. In the firmware update solution provided in the present application, the current firmware data and the new firmware data are run simultaneously according to the dynamic upgrade ratio. When the proportion of service functions provided by the new firmware data reaches a preset condition, the corresponding service functions are provided through the new firmware data, thereby avoiding the situation in which the operating area of ​​the smart device is destroyed and the network is disconnected and bricked and cannot be restored due to the problem of incompatibility between the firmware upgrade data and the smart device or functional failure during the Over The Air (OTA) upgrade process, thereby improving the reliability of firmware upgrades for smart devices.

[0125] Optionally, in some embodiments of the present application, the operation module includes:

[0126] The verification submodule is used to verify the service function of the new firmware data during the operation of the new firmware data;

[0127] The first adjustment submodule is used to adjust the dynamic upgrade ratio in a corresponding manner if the service function verification of the new firmware data is passed, and gradually increase the proportion of the service function of the new firmware data and gradually reduce the proportion of the service function of the current firmware data according to the adjusted dynamic upgrade ratio, so as to dynamically upgrade the firmware of the target device.

[0128] Optionally, in some embodiments of the present application, the operation module includes:

[0129] The second adjustment submodule is used to adaptively adjust the dynamic upgrade ratio according to the grayscale flow corresponding to the current firmware data and the new firmware data, and simultaneously run the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0130] Optionally, in some embodiments of the present application, the operation module includes:

[0131] The third adjustment submodule is used to adaptively adjust the dynamic upgrade ratio based on the usage status of the new firmware data and the usage status of the current firmware data, and simultaneously run the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0132] Optionally, in some embodiments of the present application, the operation module includes:

[0133] The fourth adjustment submodule is used to adaptively adjust the dynamic upgrade ratio based on the operating status of the service function of the new firmware data and the operating status of the service function of the current firmware data, and simultaneously run the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0134] Optionally, in some embodiments of the present application, the fourth regulating submodule includes:

[0135] A first determining unit, configured to determine a service function in the new firmware data that has been verified according to a running state of the service function in the new firmware data;

[0136] A second determining unit, configured to determine a service function that is operating normally in the current firmware data according to an operating state of the service function of the current firmware data;

[0137] The running unit is used to adaptively adjust the dynamic upgrade ratio based on the verified service functions in the new firmware data and the service functions that are running normally in the current firmware data, and to run the current firmware data and the new firmware data at the same time according to the adaptively adjusted dynamic upgrade ratio.

[0138] Optionally, in some embodiments of the present application, the operation module includes:

[0139] A determination submodule, used to determine the busyness of the target device based on the current operating state of the target device;

[0140] The fifth adjustment submodule is used to adaptively adjust the dynamic upgrade ratio according to the busyness, and run the current firmware data and the new firmware data simultaneously according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

[0141] Optionally, in some embodiments of the present application, the device further includes a termination module, and the termination module is specifically configured to:

[0142] Terminate the operation of the current firmware data.

[0143] For the specific definition of the firmware update device, please refer to the definition of the firmware update method above, which will not be repeated here. Each module in the above firmware update device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0144] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a firmware update method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0145] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0146] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0147] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0148] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0149] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

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

[0151] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A firmware update method, characterized in that: include: Get the new firmware data of the target device; Running the current firmware data and the new firmware data simultaneously according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device; The dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively; When the proportion of the service functions provided by the new firmware data reaches a preset condition, the firmware update of the target device is completed to provide the corresponding service functions through the new firmware data.

2. The firmware update method according to claim 1, characterized in that: The step of simultaneously running the current firmware data and the new firmware data according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device includes: During the running of the new firmware data, verifying the service function of the new firmware data; If the service function verification of the new firmware data is passed, the dynamic upgrade ratio is adjusted in a corresponding manner, and according to the adjusted dynamic upgrade ratio, the proportion of the service function of the new firmware data is gradually increased and the proportion of the service function of the current firmware data is gradually reduced to perform dynamic firmware upgrade on the target device.

3. The firmware update method according to claim 1, characterized in that: The step of simultaneously running the current firmware data and the new firmware data according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device includes: According to the grayscale flow corresponding to the current firmware data and the new firmware data, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are simultaneously run according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

4. The firmware update method according to claim 1, characterized in that: The step of simultaneously running the current firmware data and the new firmware data according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device includes: Based on the usage status of the new firmware data and the usage status of the current firmware data, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are simultaneously run according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

5. The firmware update method according to claim 1, characterized in that: The step of simultaneously running the current firmware data and the new firmware data according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device includes: Based on the operating status of the service function of the new firmware data and the operating status of the service function of the current firmware data, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are simultaneously run according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device.

6. The firmware update method according to claim 5, characterized in that: The method adaptively adjusts the dynamic upgrade ratio based on the running status of the service function of the new firmware data and the running status of the service function of the current firmware data, and simultaneously runs the current firmware data and the new firmware data according to the adaptively adjusted dynamic upgrade ratio to dynamically upgrade the firmware of the target device, including: Determining a service function in the new firmware data that has been verified according to the running status of the service function of the new firmware data; Determining, according to the running status of the service function of the current firmware data, a service function that is running normally in the current firmware data; Based on the verified service functions in the new firmware data and the service functions running normally in the current firmware data, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are simultaneously run according to the adaptively adjusted dynamic upgrade ratio.

7. The firmware update method according to claim 1, characterized in that: The step of simultaneously running the current firmware data and the new firmware data according to the dynamic upgrade ratio to dynamically upgrade the firmware of the target device includes: Determining the busyness of the target device based on the current operating state of the target device; According to the busyness, the dynamic upgrade ratio is adaptively adjusted, and the current firmware data and the new firmware data are simultaneously run according to the adaptively adjusted dynamic upgrade ratio to perform dynamic firmware upgrade on the target device.

8. The firmware update method according to claim 1, characterized in that: When the proportion of the service functions provided by the new firmware data reaches a preset condition, after completing the firmware update of the target device to provide the corresponding service functions through the new firmware data, the method further includes: Terminate the operation of the current firmware data.

9. A firmware update device, characterized in that: The device comprises: An acquisition module, used to acquire new firmware data of a target device; An operation module, used to simultaneously operate the current firmware data and the new firmware data according to a dynamic upgrade ratio to dynamically upgrade the firmware of the target device; the dynamic upgrade ratio is used to determine the proportion of service functions provided by the current firmware data and the new firmware data respectively; The completion module is used to complete the firmware update of the target device when the proportion of the service functions provided by the new firmware data reaches a preset condition, so as to provide the corresponding service functions through the new firmware data.

10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the firmware updating method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the firmware updating method according to any one of claims 1 to 8 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the firmware updating method according to any one of claims 1 to 8 are implemented.