Equipment upgrading method and device, equipment and medium

CN120848904APending Publication Date: 2025-10-28HONGHU WANLIAN (JIANGSU) TECH DEV CO LTD +1
-1 Cites 0 Cited by

Patent Information

Application Number
CN202510956906.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-10
Publication Date
2025-10-28

Smart Images

  • Figure CN120848904A_ABST
    Figure CN120848904A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment upgrading method and device, equipment and a medium. The method comprises the following steps: acquiring an equipment upgrade package and an upgrade white list matched with the equipment upgrade package; in response to a trigger command sent by a user, judging whether the trigger command is an updating command or not; and after judging that the trigger command is an updating command, updating the equipment upgrading package based on the updating command and the upgrading white list, and executing upgrading operation on target equipment based on the updated equipment upgrading package. By means of the technical scheme, updating of the equipment upgrading package and upgrading of the equipment can be achieved, the rollback success rate of the equipment upgrading operation and the compatibility of the equipment upgrading package are improved, and then the efficiency of the equipment upgrading operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of equipment upgrading, and more particularly to a method, apparatus, device, and medium for upgrading equipment. Background Technology

[0002] In the full lifecycle management of smart devices, remote upgrades of device firmware or systems via OTA (Over-The-Air) are a key means to ensure device function iteration and performance optimization.

[0003] In existing technologies, traditional OTA upgrade solutions suffer from insufficient coverage of critical hardware device partitions. Due to the complex dependencies between hardware device partitions within a device, critical hardware device partitions, such as the kernel hardware device partition, are easily overlooked during the upgrade process, leading to incomplete upgrades or device malfunctions. Furthermore, this solution has poor device compatibility, requiring customized upgrade packages for different hardware configurations, severely limiting upgrade efficiency. Regarding rollback mechanisms, traditional solutions require a full rollback operation after an upgrade failure, relying on a complete image of the backed-up hardware device partitions for recovery. This not only consumes significant storage space but also results in a low success rate due to the lengthy rollback process. While existing static hardware device partition upgrade solutions attempt to optimize the upgrade process by predefining a hardware device partition upgrade sequence table, they require recompiling the entire upgrade package to adapt when device hardware device partition dependencies change, making dynamic updates of the device upgrade package impossible and resulting in extremely poor flexibility. Moreover, the static nature of hardware device partition dependencies in this solution makes it difficult to parse the dynamic call chains between hardware device partitions in real time. For example, updating the kernel hardware device partition may not synchronously trigger related updates to the driver hardware device partition, easily leading to functional mismatches after the upgrade. Hardware fingerprint-based compatibility solutions match upgrade packages via device hardware IDs, but they fail to resolve compatibility issues caused by hardware tweaks on the same device model. For newer devices, this solution requires manual intervention to configure hardware parameters, resulting in a long adaptation period and susceptibility to human error, further reducing the compatibility of upgrade packages.

[0004] In summary, existing equipment upgrade methods suffer from several drawbacks, including the inability to update equipment upgrade packages, low rollback success rates for equipment upgrade operations, and low compatibility with equipment upgrade packages, resulting in low efficiency for equipment upgrade operations. Summary of the Invention

[0005] This invention provides a method, apparatus, device, and medium for upgrading equipment, which can solve the problems of existing equipment upgrade methods, such as the inability to update equipment upgrade packages, low rollback success rate of equipment upgrade operations, and low compatibility of equipment upgrade packages, resulting in low efficiency of equipment upgrade operations.

[0006] In a first aspect, embodiments of the present invention provide a method for upgrading a device, the method comprising:

[0007] Obtain the device upgrade package and the upgrade whitelist that matches the device upgrade package;

[0008] In response to a trigger command sent by the user, determine whether the trigger command is an update command;

[0009] After determining that the trigger command is an update command, the device upgrade package is updated based on the update command and the upgrade whitelist, and the target device is upgraded based on the updated device upgrade package.

[0010] Secondly, embodiments of the present invention provide an upgrade apparatus for a device, the apparatus comprising:

[0011] The data acquisition module is used to acquire the device upgrade package and the upgrade whitelist that matches the device upgrade package;

[0012] The command determination module is used to determine whether a trigger command is an update command in response to a trigger command sent by the user.

[0013] The data update module is used to update the device upgrade package based on the update command and the upgrade whitelist after determining that the trigger command is an update command, and to perform an upgrade operation on the target device based on the updated device upgrade package.

[0014] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising:

[0015] At least one processor; and

[0016] A memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a device upgrade method according to any embodiment of the present invention.

[0018] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that, when executed by a processor, implement a device upgrade method according to any embodiment of the present invention.

[0019] The technical solution of this invention obtains a device upgrade package and an upgrade whitelist matching the upgrade package. Then, in response to a user-sent trigger command, it determines whether the trigger command is an update command. Finally, if the trigger command is determined to be an update command, the device upgrade package is updated based on the update command and the upgrade whitelist. An upgrade operation is then performed on the target device based on the updated device upgrade package. This solves the problems of existing device upgrade methods, such as the inability to update the device upgrade package, low rollback success rate of the device upgrade operation, and low compatibility of the device upgrade package, leading to low efficiency in device upgrade operations. This solution achieves both device upgrade package updates and device upgrades, improves the rollback success rate of the device upgrade operation and the compatibility of the device upgrade package, thereby improving the efficiency of the device upgrade operation.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a flowchart of a device upgrade method provided in Embodiment 1 of the present invention;

[0023] Figure 2 This is a flowchart of a device upgrade method provided in Embodiment 2 of the present invention;

[0024] Figure 3 This is a schematic diagram of the structure of an equipment upgrade device provided according to Embodiment 3 of the present invention;

[0025] Figure 4 This is a schematic diagram of the structure of an electronic device that implements a device upgrade method according to an embodiment of the present invention. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, any variations of the terms "comprising" and "having" are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] Example 1

[0029] Figure 1 This is a flowchart of a device upgrade method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation where a device is upgraded using a device upgrade package. The method can be executed by a device upgrade device, which can be implemented in hardware and / or software. The device upgrade device can be configured in a terminal or server with device upgrade function.

[0030] like Figure 1 As shown, the method includes:

[0031] S110. Obtain the device upgrade package and the upgrade whitelist that matches the device upgrade package.

[0032] The device upgrade package is a data packet containing all data related to the device upgrade.

[0033] Furthermore, the device upgrade package includes at least one upgrade data sub-package, which includes upgrade data, sub-package name, sub-package physical address, and sub-package capacity.

[0034] Specifically, the upgrade data refers to the content included in the upgrade data sub-package for upgrading the device; the sub-package name is used to identify the name of the upgrade data sub-package, and can be named in conjunction with the device function to be updated corresponding to the current upgrade data sub-package. For example, an upgrade data sub-package for upgrading the storage function may be called "kernel_new_202507", and an upgrade data sub-package for upgrading the driver function may be called "driver_update_v2"; the sub-package physical address is the specific location in the device storage of the function code of the device function to be upgraded corresponding to the upgrade data sub-package; the sub-package capacity is the storage space size of the storage location corresponding to the physical address of the sub-package.

[0035] Furthermore, the upgrade whitelist includes: the sub-packet name, sub-packet physical address, and sub-packet capacity of each upgrade data sub-packet in the device upgrade package.

[0036] S120. In response to a trigger command sent by the user, determine whether the trigger command is an update command.

[0037] Specifically, in response to a trigger command sent by a user, determining whether the trigger command is an update command includes: determining whether the trigger command carries at least one data update packet; if it does, then the trigger command is determined to be an update command; if it does not, then the trigger command is determined not to be an update command.

[0038] Furthermore, the trigger command is an instruction issued by the user, system, or cloud platform during the device upgrade process to initiate the upgrade-related processing flow. It can take the form of an operation instruction issued by the user through the device operation interface, an upgrade trigger signal pushed to the device by the cloud platform according to a preset strategy, or a batch upgrade instruction sent by the user through the management backend, etc. This embodiment does not limit the generation scenario of the trigger command.

[0039] Specifically, upon receiving a trigger command from a user, the command is parsed to check if it contains at least one of the aforementioned data update packages. For example, if the trigger command contains a full update package for the driver partition, i.e., it carries at least one data update package, then the trigger command is determined to be an update command; if the trigger command does not carry any data update packages, such as only containing the instruction to "update the current system version," then the trigger command is determined not to be an update command.

[0040] Optionally, after determining whether the trigger command is an update command, the method further includes: if the trigger command is not an update command, then performing an upgrade operation on the target device based on the device upgrade package.

[0041] Based on the above steps, if the triggering command is not an update command, it means that the user did not modify the device upgrade package during this device upgrade operation. The device will directly call the pre-obtained device upgrade package to perform the upgrade operation on the target device to achieve the update of the target device.

[0042] S130. After determining that the trigger command is an update command, update the device upgrade package based on the update command and the upgrade whitelist, and perform an upgrade operation on the target device based on the updated device upgrade package.

[0043] The technical solution of this invention obtains a device upgrade package and an upgrade whitelist matching the upgrade package. Then, in response to a user-sent trigger command, it determines whether the trigger command is an update command. Finally, if the trigger command is determined to be an update command, the device upgrade package is updated based on the update command and the upgrade whitelist. An upgrade operation is then performed on the target device based on the updated device upgrade package. This solves the problems of existing device upgrade methods, such as the inability to update the device upgrade package, low rollback success rate of the device upgrade operation, and low compatibility of the device upgrade package, leading to low efficiency in device upgrade operations. This solution achieves both device upgrade package updates and device upgrades, improves the rollback success rate of the device upgrade operation and the compatibility of the device upgrade package, thereby improving the efficiency of the device upgrade operation.

[0044] Example 2

[0045] Figure 2 This is a flowchart of a device upgrade method provided in Embodiment 2 of the present invention. This embodiment is a refinement based on the above embodiment. In this embodiment, the method of updating the device upgrade package based on the update command and the upgrade whitelist is specifically refined.

[0046] like Figure 2 As shown, the method includes:

[0047] S210. Obtain the device upgrade package and the upgrade whitelist that matches the device upgrade package.

[0048] S220. In response to a trigger command sent by the user, determine whether the trigger command is an update command.

[0049] S230. After determining that the trigger command is an update command, obtain each data update package carried in the update command.

[0050] Specifically, the data update package refers to an upgrade data package that is dynamically customized for the upgrade data sub-packages that need to be modified in the device upgrade package. It is a full update package, and these update packages will be included in the update command to complete the update of the device upgrade package. The full update package is a complete device upgrade data package, which contains all the files and data required to modify the upgrade data sub-packages to be modified from the current version to the target version.

[0051] S240. Verify the integrity of each data update package through hash verification.

[0052] The hash verification method involves calculating the hash value of a data update package and comparing it with a preset hash value (such as the hash value of the update package stored on the cloud server) to verify whether the data is complete and has not been tampered with or corrupted. For example, for an update package of a kernel partition, its actual hash value is calculated and compared with the hash value of the update package pre-stored on the cloud platform. If they match, the data update package is confirmed to be complete; if they do not match, it indicates that the data may be corrupted or tampered with, and is therefore determined to be incomplete.

[0053] S250. After confirming that all data update packages are complete, determine whether each data update package is in the upgrade whitelist based on its update package name, physical address, and capacity.

[0054] The upgrade whitelist includes the sub-package name, physical address, and capacity of each upgrade data sub-package in the device upgrade package. For example, the list may record information such as "bootloader data sub-package, physical address 0x00000001, capacity 2MB" and "kernel data sub-package, physical address 0x00000002, capacity 8MB". The update package name is the name of the upgrade data sub-package to be modified corresponding to the data update package. The update package physical address is the physical storage address of the upgrade data sub-package to be modified corresponding to the update package. The update package capacity is the capacity of the sub-package to be modified corresponding to the update package. During the determination, these three pieces of information of the data update package need to be compared one by one with the corresponding information in the upgrade whitelist. If the name, physical address, and capacity of an update package all match a record in the whitelist, then the data update package is determined to be in the upgrade whitelist; if any item does not match, then it is determined not to be in the upgrade whitelist.

[0055] Optionally, after determining whether each data update package is in the upgrade whitelist, the method further includes: if the data update package is not in the upgrade whitelist, then performing a circuit breaker operation on the data update package, and generating an update failure prompt matching the data update package based on the update package name or update package physical address, so as to prompt the user to modify the data update package.

[0056] The circuit breaker operation refers to immediately terminating the upgrade process of the data update package, preventing it from writing to the device module, and avoiding the update of unauthorized or incompatible upgrade data sub-packages. For example, if a data update package is named "module" and its name does not appear in the upgrade whitelist, the circuit breaker operation will stop its upgrade and generate a prompt: "Update package module is not in the upgrade whitelist. Please check and modify the target module information of the update package." Or, if the physical address of an update package does not match the physical address of the corresponding module in the whitelist, such as the physical address of the update package being 0x00000003 while the physical address of the module in the whitelist is 0x00000002, then the prompt "Update package physical address 0x00000003 does not match. Please adjust and try again." It should be noted that the specific content and format of the above prompts are only a specific embodiment provided in this example. In actual applications, they can be set according to the user's needs. This embodiment does not limit the actual content and format.

[0057] S260. After determining that the data update package is in the upgrade whitelist, use the data update package to update the device upgrade package.

[0058] The process of updating the device upgrade package using the data update package includes: finding an upgrade data sub-package that matches the data update package as a target data sub-package in the device upgrade package based on the update package physical address of the data update package; and using the data update package to perform an overwrite flashing operation on the target data sub-package to update the device upgrade package.

[0059] In a specific implementation scenario of this embodiment, the process of updating a device upgrade package using a data update package can be exemplarily described as follows: First, obtain the physical address of the data update package, for example, set the physical address of a certain data update package to 0x00000002. Next, find the upgrade data sub-package in the device upgrade package whose physical address matches that of the data update package, and use it as the target data sub-package. For example, the upgrade data sub-package with physical address 0x00000002 in the device upgrade package is the target data sub-package. Afterward, perform an overwrite operation, that is, replace the original content of the target data sub-package with the content of the data update package, ensuring that the sub-packages of the corresponding modules in the device upgrade package are consistent with the data update package. For example, use a newly generated kernel module data update package to overwrite the original kernel module sub-package in the device upgrade package, thereby completing the update of the device upgrade package.

[0060] S270. Perform an upgrade operation on the target device based on the updated device upgrade package.

[0061] The upgrade operation refers to updating the corresponding modules of the target device according to the content of the updated device upgrade package. During the process, the upgrade order is dynamically resolved based on the module dependencies within the upgrade package to ensure that all critical modules are updated correctly. For example, the updated device upgrade package contains a kernel module sub-package that has been corrected by the data update package and an existing compatible driver module sub-package. When performing the upgrade operation, the dependencies between the kernel module and the driver module are first resolved, and then the contents of these sub-packages are written to the corresponding modules of the target device in sequence, ultimately completing the system upgrade of the device.

[0062] The technical solution of this invention obtains a device upgrade package and an upgrade whitelist matching the upgrade package. Then, in response to a user-sent trigger command, it determines whether the trigger command is an update command. If the trigger command is indeed an update command, it obtains the data update packages carried in the update command and verifies the completeness of each data update package using hash verification. After confirming the completeness of each data update package, it determines whether each data update package is in the upgrade whitelist based on its update package name, physical address, and capacity. Finally, if the data update package is in the upgrade whitelist, it updates the device upgrade package using the data update package and performs an upgrade operation on the target device based on the updated device upgrade package. This solves the problems of existing device upgrade methods, such as the inability to update device upgrade packages, low rollback success rate of device upgrade operations, and low compatibility of device upgrade packages, leading to low efficiency in device upgrade operations. This solution achieves both device upgrade package updates and device upgrades, improves the rollback success rate of device upgrade operations and the compatibility of device upgrade packages, and thus improves the efficiency of device upgrade operations.

[0063] Example 3

[0064] Figure 3 This is a schematic diagram of the structure of an upgrade device for an equipment provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes:

[0065] Data acquisition module 310 is used to acquire device upgrade packages and upgrade whitelists that match the device upgrade packages;

[0066] The command judgment module 320 is used to determine whether the trigger command is an update command in response to a trigger command sent by the user.

[0067] The data update module 330 is used to update the device upgrade package based on the update command and the upgrade whitelist after determining that the trigger command is an update command, and to perform an upgrade operation on the target device based on the updated device upgrade package.

[0068] The technical solution of this invention obtains a device upgrade package and an upgrade whitelist matching the upgrade package. Then, in response to a user-sent trigger command, it determines whether the trigger command is an update command. Finally, if the trigger command is determined to be an update command, the device upgrade package is updated based on the update command and the upgrade whitelist. An upgrade operation is then performed on the target device based on the updated device upgrade package. This solves the problems of existing device upgrade methods, such as the inability to update the device upgrade package, low rollback success rate of the device upgrade operation, and low compatibility of the device upgrade package, leading to low efficiency in device upgrade operations. This solution achieves both device upgrade package updates and device upgrades, improves the rollback success rate of the device upgrade operation and the compatibility of the device upgrade package, thereby improving the efficiency of the device upgrade operation.

[0069] Based on the above embodiments, the command determination module 320 includes:

[0070] The judgment unit is used to determine whether the trigger command carries at least one data update packet;

[0071] The first judgment unit is used to determine that if the triggering command is carried, the triggering command is an update command;

[0072] The second judgment unit is used to determine that if the trigger command is not an update command, then if it is not carried, the trigger command is not an update command.

[0073] Based on the above embodiments, the data update module 330 includes:

[0074] A data packet acquisition unit is used to acquire each data update packet carried in the update command;

[0075] The integrity verification unit is used to verify the integrity of each data update packet through hash verification.

[0076] The security judgment unit is used to determine whether each data update package is in the upgrade whitelist based on the update package name, update package physical address and update package capacity after confirming that each data update package is complete.

[0077] The device upgrade unit is used to update the device upgrade package using the data update package after determining that the data update package is in the upgrade whitelist.

[0078] Based on the above embodiments, the security judgment unit is further configured to: determine whether each data update package is in the upgrade whitelist; if the data update package is not in the upgrade whitelist, perform a circuit breaker operation on the data update package, and generate an update failure prompt matching the data update package based on the update package name or update package physical address of the data update package, so as to prompt the user to modify the data update package.

[0079] Based on the above embodiments, the device upgrade unit further includes:

[0080] The data packet lookup unit is used to find, based on the physical address of the update packet of the data update packet, an upgrade data sub-packet that matches the data update packet in the device upgrade packet as the target data sub-packet;

[0081] The overwrite unit is used to overwrite the target data sub-package with the data update package in order to update the device upgrade package.

[0082] Based on the above embodiments, the command judgment module 320 is further configured to: after determining whether the trigger command is an update command, if it is determined that the trigger command is not an update command, perform an upgrade operation on the target device based on the device upgrade package.

[0083] The device upgrade apparatus provided in this embodiment of the invention can execute the device upgrade method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0084] Example 4

[0085] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0086] like Figure 4As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0087] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0088] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a device upgrade method.

[0089] Accordingly, the method includes:

[0090] Obtain the device upgrade package and the upgrade whitelist that matches the device upgrade package;

[0091] In response to a trigger command sent by the user, determine whether the trigger command is an update command;

[0092] After determining that the trigger command is an update command, the device upgrade package is updated based on the update command and the upgrade whitelist, and the target device is upgraded based on the updated device upgrade package.

[0093] In some embodiments, a device upgrade method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the device upgrade method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a device upgrade method by any other suitable means (e.g., by means of firmware).

[0094] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0095] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0096] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0097] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0098] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0099] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0100] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

Claims

1. A method for upgrading equipment, characterized in that, include: Obtain the device upgrade package and the upgrade whitelist that matches the device upgrade package; In response to a trigger command sent by the user, determine whether the trigger command is an update command; After determining that the trigger command is an update command, the device upgrade package is updated based on the update command and the upgrade whitelist, and the target device is upgraded based on the updated device upgrade package.

2. The method according to claim 1, characterized in that, The device upgrade package includes: at least one upgrade data sub-package, wherein the upgrade data sub-package includes: upgrade data, sub-package name, sub-package physical address and sub-package capacity; Furthermore, the upgrade whitelist includes: the sub-packet name, sub-packet physical address, and sub-packet capacity of each upgrade data sub-packet in the device upgrade package.

3. The method according to claim 1, characterized in that, In response to a user-sent trigger command, determining whether the trigger command is an update command includes: Determine whether the trigger command carries at least one data update packet; If carried, the triggering command is determined to be an update command; If not carried, it is determined that the triggering command is not an update command.

4. The method according to any one of claims 1-2, characterized in that, The device upgrade package is updated based on the update command and the upgrade whitelist, including: Obtain the data update packages carried in the update command; The integrity of each data update packet is confirmed by hash verification. After confirming that all data update packages are complete, determine whether each data update package is in the upgrade whitelist based on its update package name, physical address, and capacity. After determining that the data update package is in the upgrade whitelist, the device upgrade package is updated using the data update package.

5. The method according to claim 4, characterized in that, After determining whether each data update package is in the upgrade whitelist, the process also includes: If the data update package is not in the upgrade whitelist, a circuit breaker operation is performed on the data update package, and an update failure prompt matching the data update package is generated based on the update package name or update package physical address to prompt the user to modify the data update package.

6. The method according to claim 4, characterized in that, Updating the device upgrade package using the data update package includes: Based on the physical address of the update package of the data update package, find the upgrade data sub-package that matches the data update package in the device upgrade package as the target data sub-package; The target data sub-package is overwritten using the data update package to update the device upgrade package.

7. The method according to claim 1, characterized in that, After determining whether the trigger command is an update command, the process also includes: If it is determined that the trigger command is not an update command, then an upgrade operation is performed on the target device based on the device upgrade package.

8. An equipment upgrade device, characterized in that, include: The data acquisition module is used to acquire the device upgrade package and the upgrade whitelist that matches the device upgrade package; The command determination module is used to determine whether a trigger command is an update command in response to a trigger command sent by the user. The data update module is used to update the device upgrade package based on the update command and the upgrade whitelist after determining that the trigger command is an update command, and to perform an upgrade operation on the target device based on the updated device upgrade package.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform an upgrade method for a device according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement a device upgrade method according to any one of claims 1-7.