An offline upgrading method, device, equipment and storage medium

By automatically acquiring chip type information and matching upgrade commands through the offline upgrade board, the failure problem caused by manual input errors in traditional offline upgrades is solved, realizing efficient device upgrades without human intervention.

CN122489089APending Publication Date: 2026-07-31SHENZHEN YIFEIKE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN YIFEIKE TECHNOLOGY CO LTD
Filing Date
2026-03-25
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Traditional offline upgrade processes require manual input of upgrade commands, which can easily lead to upgrade failures due to incorrect commands, thus affecting user experience.

Method used

An offline upgrade method is provided, which automatically obtains the chip type information of the device to be upgraded through an offline upgrade board, determines the target upgrade command and package, and realizes a device upgrade process without human intervention.

Benefits of technology

It reduced the upgrade failure rate, simplified the operation process, reduced costs, and improved the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122489089A_ABST
    Figure CN122489089A_ABST
Patent Text Reader

Abstract

This application relates to an offline upgrade method, apparatus, device, and storage medium. The method, applied to an offline upgrade board, includes: when the offline upgrade board is connected to a device to be upgraded, obtaining the chip type information of the device to be upgraded; determining a target upgrade command based on the chip type information; obtaining a target upgrade package; and sending the target upgrade command and the target upgrade package to the device to be upgraded, so that the target device performs a device upgrade operation based on the target upgrade command and the target upgrade package. Therefore, when the offline upgrade board is connected to the device to be upgraded, the upgrade process is automatically triggered, matching the corresponding target upgrade command based on the chip type information, and simultaneously sending the target upgrade command and the target upgrade package to the device to be upgraded to execute the upgrade operation. This process requires no manual intervention and effectively avoids upgrade failures caused by mismatch between the target upgrade command and the chip type of the device to be upgraded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of digital power technology, and in particular to an offline upgrade method, apparatus, device and storage medium. Background Technology

[0002] With the rapid development of the Internet of Things, industrial control, and information technology innovation, the application scenarios of various electronic devices are becoming increasingly complex. Due to network security controls, lack of external network coverage in the deployment environment, or hardware design constraints, some devices cannot complete firmware and system updates through online upgrades. Offline upgrades have become the core approach for these devices to achieve version iteration, vulnerability patching, and function optimization.

[0003] The current mainstream offline upgrade solution in the industry is to establish a communication link with the device to be upgraded by using a computer with external devices such as serial ports and CAN cards, transmitting upgrade data, and then manually inputting upgrade commands to drive the device to complete the upgrade process.

[0004] However, the types of chips in devices awaiting upgrades are becoming increasingly diverse, with different manufacturers and models of chips corresponding to different upgrade protocols and instruction specifications. Even if the same device uses a dual-chip architecture, it still needs to be adapted to dedicated upgrade logic to ensure a successful upgrade. If the upgrade instructions are entered incorrectly, it can easily lead to upgrade failure, seriously affecting the user experience. Summary of the Invention

[0005] This application provides an offline upgrade method, apparatus, device, and storage medium, aiming to solve the technical problem that traditional offline upgrade processes require manual input of upgrade commands, which can easily lead to upgrade failure due to incorrect upgrade commands.

[0006] In a first aspect, embodiments of this application provide an offline upgrade method, the method being applied to an offline upgrade board, comprising: When the offline upgrade board is connected to the device to be upgraded, the chip type information of the device to be upgraded is obtained; The target upgrade command is determined based on the chip type information of the device to be upgraded. Obtain the target upgrade package, which is used to upgrade the device to be upgraded; The target upgrade command and the target upgrade package are sent to the device to be upgraded, so that the target upgrade device performs a device upgrade operation based on the target upgrade command and the target upgrade package.

[0007] Optionally, the offline upgrade board includes a light-emitting module, and the method further includes: Receive device upgrade result information sent by the device to be upgraded; If the device upgrade result information indicates that the device to be upgraded has been successfully upgraded, then the light-emitting module is controlled to remain on and emit light of the first color.

[0008] Optionally, the method further includes: If the device upgrade result information indicates that the upgrade of the device to be upgraded has failed, then the light-emitting module is controlled to remain on and emit a second color light, the first color light being different from the second color light.

[0009] Optionally, before receiving the device upgrade result information sent by the upgrade device, and after sending the target upgrade command and the target upgrade package to the device to be upgraded, so that the target upgrade device performs a device upgrade operation based on the target upgrade command and the target upgrade package, the method further includes: Control the light-emitting module to maintain a continuous flashing state.

[0010] Optionally, the method further includes: If the device upgrade result information indicates that the upgrade of the device to be upgraded has failed, then return to the step of sending the target upgrade command and the target upgrade package to the device to be upgraded.

[0011] Secondly, embodiments of this application provide an offline upgrade method, the method being applied to a device to be upgraded, the method comprising: Receive the target upgrade command and target upgrade package sent by the offline upgrade board; Erase the local data of the device to be upgraded; Based on the target upgrade command and the target upgrade package, perform the device upgrade operation.

[0012] Optionally, after performing the device upgrade operation based on the target upgrade command and the target upgrade package, the method further includes: Generate device upgrade result information; Send the device upgrade result information to the offline upgrade board.

[0013] Thirdly, embodiments of this application also provide an offline upgrade apparatus, which includes a unit for performing the above-described method.

[0014] Fourthly, embodiments of this application also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0015] Fifthly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.

[0016] This application provides an offline upgrade method, apparatus, device, and storage medium. The method, applied to an offline upgrade board, includes: when the offline upgrade board is connected to a device to be upgraded, obtaining chip type information of the device to be upgraded; determining a target upgrade command based on the chip type information of the device to be upgraded; obtaining a target upgrade package, the target upgrade package being used to upgrade the device to be upgraded; and sending the target upgrade command and the target upgrade package to the device to be upgraded, so that the target upgrade device performs a device upgrade operation based on the target upgrade command and the target upgrade package. Therefore, in this application's technical solution, when the offline upgrade board is connected to a device to be upgraded, the chip type information of the device to be upgraded is obtained; then, a target upgrade command is determined based on the chip type information of the device to be upgraded; furthermore, a target upgrade package is obtained, the target upgrade package being used to upgrade the device to be upgraded; and finally, the target upgrade command and the target upgrade package are sent to the device to be upgraded, so that the target upgrade device completes the upgrade based on the target upgrade command and uses the target upgrade package. Therefore, when the offline upgrade board is connected to the device to be upgraded, the upgrade process is automatically triggered. Based on the chip type information, the corresponding target upgrade command is matched, and the target upgrade command and target upgrade package are simultaneously sent to the device to be upgraded to execute the upgrade operation. This process requires no manual intervention and effectively avoids upgrade failures caused by mismatches between the target upgrade command and the chip type of the device to be upgraded. Attached Figure Description

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

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0020] Figure 1 This is one of the flowcharts illustrating an offline upgrade method provided in an embodiment of this application; Figure 2 A second schematic flowchart illustrating an offline upgrade method provided in this application embodiment; Figure 3One of the schematic block diagrams provided for an offline upgrade according to an embodiment of this application; Figure 4 A second schematic block diagram illustrating an offline upgrade provided in an embodiment of this application; Figure 5 A computer device provided in an embodiment of this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0023] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0024] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0025] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0026] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0027] To address the technical problem that traditional offline upgrade processes require manual input of upgrade commands, which can easily lead to upgrade failures due to incorrect commands, this application provides an offline upgrade device that eliminates the need for manual command input, thereby reducing the upgrade failure rate.

[0028] Figure 1 This is a flowchart illustrating one of the offline upgrade methods provided in this application. In one embodiment, the method is applied to an offline upgrade board, and the method includes: S101-S104.

[0029] S101. When the offline upgrade board is connected to the device to be upgraded, obtain the chip type information of the device to be upgraded.

[0030] It should be noted that the offline upgrade board includes a power module, a control module, a communication module, and a storage module. The storage module stores upgrade instructions and packages corresponding to various chip types. When upgrading the system of a device, simply connect the offline upgrade board to the device. The offline upgrade board automatically obtains the chip type information of the device to be upgraded. This chip type information includes, but is not limited to, any of the following: ARM® Cortex®-M4, ARM® Cortex®-M3, ARM® Cortex®-M7, ARM® Cortex®-M33, TI's C2000 series DSPs, and FPGAs.

[0031] S102. Determine the target upgrade command based on the chip type information of the device to be upgraded.

[0032] It should be noted that the offline upgrade board searches for the corresponding upgrade command in the storage module based on the chip type information of the device to be upgraded, and uses the found upgrade command as the target upgrade command.

[0033] S103. Obtain the target upgrade package.

[0034] The target upgrade package is used to upgrade the device to be upgraded.

[0035] It should be noted that this application supports target upgrade packages in multiple data formats. These multiple data formats include, but are not limited to, HEX file format and BIN file format. Furthermore, the storage module in the offline upgrade board stores one or more upgrade packages. To achieve the same software functionality across different chip architectures, multiple upgrade packages are typically used. When an upgrade is needed for the device to be upgraded, the offline upgrade board selects the target upgrade package from the storage module based on the chip type information of the device. Of course, the storage module may also store only one upgrade package. During an upgrade, the upgrade package stored in the storage module is the target upgrade package.

[0036] S104. Send the target upgrade command and target upgrade package to the device to be upgraded, so that the target upgrade device can perform the device upgrade operation based on the target upgrade command and target upgrade package.

[0037] It should be noted that the target upgrade device executes the device upgrade operation according to the target upgrade command to complete the upgrade of the target upgrade package.

[0038] It should be noted that the offline upgrade board in this embodiment has a relatively simple structure and function, resulting in low unit cost. It can be used for offline upgrades of a large number of devices without the need for a laptop, significantly reducing the cost of offline upgrades. Furthermore, the offline upgrade method in this application simplifies the complex upgrade process that traditional offline upgrades require manual execution of various steps, such as setting the baud rate and establishing JTAG or JLINK communication interfaces. The offline upgrade board in this application is plug-and-play, easy to operate, and can complete large-scale device upgrades without requiring significant manpower.

[0039] This application provides an offline upgrade method. The method is applied to an offline upgrade board and includes: when the offline upgrade board is connected to a device to be upgraded, obtaining the chip type information of the device to be upgraded; determining a target upgrade command based on the chip type information of the device to be upgraded; obtaining a target upgrade package, the target upgrade package being used to upgrade the device to be upgraded; and sending the target upgrade command and the target upgrade package to the device to be upgraded, so that the target upgrade device performs a device upgrade operation based on the target upgrade command and the target upgrade package. Therefore, in this application's technical solution, when the offline upgrade board is connected to a device to be upgraded, the chip type information of the device to be upgraded is obtained; then, a target upgrade command is determined based on the chip type information of the device to be upgraded; furthermore, a target upgrade package is obtained, the target upgrade package being used to upgrade the device to be upgraded; and finally, the target upgrade command and the target upgrade package are sent to the device to be upgraded, so that the target upgrade device completes the upgrade based on the target upgrade command and uses the target upgrade package. Thus, when the offline upgrade board is connected to a device to be upgraded, the upgrade process is automatically triggered, the corresponding target upgrade command is matched according to the chip type information, and the target upgrade command and the target upgrade package are simultaneously sent to the device to be upgraded to perform the upgrade operation. This process requires no manual intervention and can effectively avoid upgrade failures caused by mismatch between the target upgrade command and the chip type of the device to be upgraded.

[0040] In one embodiment, the offline upgrade board includes a light-emitting module, and the method further includes: S105-S106.

[0041] S105. Receive the device upgrade result information sent by the device to be upgraded.

[0042] The equipment upgrade result information is used to characterize the result of this upgrade for the equipment to be upgraded.

[0043] Preferably, the light-emitting module is an LED indicator. Of course, the light-emitting module can also be other types of indicator lights. This application does not impose any restrictions on this.

[0044] S106. If the equipment upgrade result information indicates that the equipment to be upgraded has been successfully upgraded, then control the light-emitting module to stay on and emit the first color light.

[0045] Once the device to be upgraded is successfully upgraded, the light-emitting module on the offline upgrade board emits a first-color light and remains constantly lit. Preferably, the first-color light is green.

[0046] In one embodiment, the method further includes: S107.

[0047] S107. If the equipment upgrade result information indicates that the upgrade of the equipment to be upgraded has failed, then control the light-emitting module to stay on and emit a second color light.

[0048] The first color light is different from the second color light.

[0049] It should be noted that when the upgrade of the device fails, the offline upgrade board controls the light-emitting module to emit a second color light and keep it constantly lit. Preferably, the second color light is red light.

[0050] In one embodiment, before S105 and after S104, the method further includes: S108, Control the light-emitting module to keep it in a continuous flashing state.

[0051] It should be noted that when the device to be upgraded is in upgrade mode, the offline upgrade board controls the light-emitting module to keep flashing continuously.

[0052] In summary, users can determine the current upgrade status of the device by observing the light-emitting status of the light-emitting module.

[0053] In one embodiment, the method further includes: S109.

[0054] S109. If the device upgrade result information indicates that the upgrade of the device to be upgraded has failed, then return to the step of sending the target upgrade command and target upgrade package to the device to be upgraded.

[0055] If the upgrade of the device to be upgraded fails, the steps of sending the target upgrade command and target upgrade package to the device to be upgraded are executed to trigger the device to re-execute the upgrade operation.

[0056] Figure 2 This is a second schematic flowchart illustrating an offline upgrade method provided in an embodiment of this application. The method is applied to the device to be upgraded and includes steps S201-S203.

[0057] S201: Receive the target upgrade command and target upgrade package sent by the offline upgrade board.

[0058] It should be noted that the target upgrade command and target upgrade package have been described in detail in S102 and S103 above. Therefore, this application will not repeat them here.

[0059] It should be noted that after receiving the target upgrade package, the device to be upgraded also needs to verify the target upgrade package to ensure that it has not been tampered with or that no errors occurred during transmission. Specifically, CRC verification can be used.

[0060] S202, Erase the local data of the device to be upgraded.

[0061] It should be noted that after receiving the target upgrade command and the target upgrade package instruction, the device to be upgraded erases its local data and jumps to the bootloader in preparation for performing the upgrade operation.

[0062] S203. Based on the target upgrade command and target upgrade package, perform the device upgrade operation.

[0063] After the device to be upgraded jumps to the bootloader, it begins executing the target upgrade command to complete the device upgrade.

[0064] In one embodiment, after S203, the method further includes S204-S205.

[0065] S204. Generate equipment upgrade result information.

[0066] S205. Send device upgrade result information to the offline upgrade board.

[0067] Specifically, the device to be upgraded generates device upgrade result information based on the upgrade results and returns the device upgrade result information to the offline upgrade board.

[0068] See Figure 3 , Figure 3 This is one of the schematic block diagrams of an offline upgrade device provided in an embodiment of this application. Corresponding to the above offline upgrade method, this application also provides an offline upgrade device. The offline upgrade device includes a unit for performing the above offline upgrade method, and the offline upgrade device can be configured in an offline upgrade board. Specifically, the offline upgrade device includes: The first acquisition unit 301 is used to acquire the chip type information of the device to be upgraded when the offline upgrade board is connected to the device to be upgraded. Determining unit 302 is used to determine the target upgrade command based on the chip type information of the device to be upgraded; The second acquisition unit 303 is used to acquire a target upgrade package, the target upgrade package being used to upgrade the device to be upgraded; The first sending unit 304 is used to send the target upgrade command and the target upgrade package to the device to be upgraded, so that the target upgrade device performs a device upgrade operation based on the target upgrade command and the target upgrade package.

[0069] In one embodiment, the offline upgrade board includes a light-emitting module, and the device further includes: The first receiving unit 305 is used to receive device upgrade result information sent by the device to be upgraded; The control unit 306 is used to control the light-emitting module to remain constantly lit and emit light of the first color if the device upgrade result information indicates that the device to be upgraded has been successfully upgraded.

[0070] In one embodiment, the control unit 306 is further configured to: If the device upgrade result information indicates that the upgrade of the device to be upgraded has failed, then the light-emitting module is controlled to remain on and emit a second color light, the first color light being different from the second color light.

[0071] In one embodiment, before receiving the device upgrade result information sent by the device to be upgraded, and after sending the target upgrade command and the target upgrade package to the device to be upgraded, so that the target upgrade device performs a device upgrade operation based on the target upgrade command and the target upgrade package, the control unit 306 is further configured to: Control the light-emitting module to maintain a continuous flashing state.

[0072] In one embodiment, the first transmitting unit 304 is further configured to: If the device upgrade result information indicates that the upgrade of the device to be upgraded has failed, then return to the step of sending the target upgrade command and the target upgrade package to the device to be upgraded.

[0073] See Figure 4 , Figure 4 This is a second schematic block diagram of an offline upgrade device provided in an embodiment of this application. Corresponding to the above offline upgrade method, this application also provides an offline upgrade device. The offline upgrade device includes a unit for executing the above offline upgrade method, and the offline upgrade device can be configured in a terminal such as a desktop computer, tablet computer, or laptop computer. Specifically, the offline upgrade device includes: The second receiving unit 401 is used to receive the target upgrade command and target upgrade package sent by the offline upgrade board; Erasing unit 402 is used to erase the local data of the device to be upgraded; The execution unit 403 is used to perform a device upgrade operation based on the target upgrade command and the target upgrade package.

[0074] In one embodiment, the device further includes: Generation unit 404 is used to generate equipment upgrade result information; The second sending unit 405 is used to send the device upgrade result information to the offline upgrade board.

[0075] like Figure 5 As shown, this application provides a computer device including a processor 51, a communication interface 52, a memory 53, and a communication bus 54. The processor 51, the communication interface 52, and the memory 53 communicate with each other through the communication bus 54. The memory 53 is used to store computer programs. In one embodiment of this application, when the processor 51 executes the program stored in the memory 53, it implements the offline upgrade control method provided in any of the foregoing method embodiments.

[0076] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0077] Therefore, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the offline upgrade method provided in any of the foregoing method embodiments.

[0078] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk, or any other physical storage medium capable of storing program code. The computer-readable storage medium can be non-volatile or volatile.

[0079] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0080] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0081] The steps in the methods of this application embodiment can be adjusted, merged, or deleted according to actual needs. The units in the apparatus of this application embodiment can be merged, divided, or deleted according to actual needs. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0082] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0083] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0084] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Since these modifications and variations fall within the scope of the claims and their equivalents, this application also intends to include these modifications and variations.

[0085] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An offline upgrade method, characterized by, The method is applied to an offline upgrade board, and the method includes: When the offline upgrade board is connected to the device to be upgraded, the chip type information of the device to be upgraded is obtained; The target upgrade command is determined based on the chip type information of the device to be upgraded. Obtain the target upgrade package, which is used to upgrade the device to be upgraded; The target upgrade command and the target upgrade package are sent to the device to be upgraded, so that the target upgrade device performs a device upgrade operation based on the target upgrade command and the target upgrade package.

2. The method of claim 1, characterized in that, The offline upgrade board includes a light-emitting module, and the method further includes: Receive device upgrade result information sent by the device to be upgraded; If the device upgrade result information indicates that the device to be upgraded has been successfully upgraded, then the light-emitting module is controlled to remain on and emit light of the first color.

3. The method of claim 2, wherein, The method further includes: If the device upgrade result information indicates that the upgrade of the device to be upgraded has failed, then the light-emitting module is controlled to remain on and emit a second color light, the first color light being different from the second color light.

4. The method of claim 2, wherein, Before receiving the device upgrade result information sent by the device to be upgraded, and after sending the target upgrade command and the target upgrade package to the device to be upgraded, so that the target upgrade device performs a device upgrade operation based on the target upgrade command and the target upgrade package, the method further includes: Control the light-emitting module to maintain a continuous flashing state.

5. The method of claim 2, wherein, The method further includes: If the device upgrade result information indicates that the upgrade of the device to be upgraded has failed, then return to the step of sending the target upgrade command and the target upgrade package to the device to be upgraded.

6. An offline upgrade method, characterized by, The method is applied to the device to be upgraded, and the method includes: Receive the target upgrade command and target upgrade package sent by the offline upgrade board; Erase the local data of the device to be upgraded; Based on the target upgrade command and the target upgrade package, perform the device upgrade operation.

7. The method of claim 6, wherein, After performing the device upgrade operation based on the target upgrade command and the target upgrade package, the method further includes: Generate device upgrade result information; Send the device upgrade result information to the offline upgrade board.

8. An off-line upgrading device characterized by comprising: The device is used in an offline upgrade board, and the device includes: The first acquisition unit is used to acquire the chip type information of the device to be upgraded when the offline upgrade board is connected to the device to be upgraded. The determining unit is used to determine the target upgrade command based on the chip type information of the device to be upgraded. The second acquisition unit is used to acquire a target upgrade package, the target upgrade package being used to upgrade the device to be upgraded. The sending unit is configured to send the target upgrade command and the target upgrade package to the device to be upgraded, so that the target upgrade device performs a device upgrade operation based on the target upgrade command and the target upgrade package.

9. A computer device, comprising: The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1 to 7.