Method for generating a one-click upgrade tool, one-click upgrade tool and one-click upgrade method

By generating a one-click upgrade tool, the problem of repetitive investment by developers is solved by identifying the target software version and integrating tool configuration and upgrade files, thus simplifying the process and saving costs.

CN116088902BActive Publication Date: 2025-12-16SICHUAN ILINK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211730665.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-12-16
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

Existing technologies require repeated investment from tool developers when generating one-click upgrade tools, leading to increased labor costs and hindering project maintenance.

Method used

By determining the target software version of the device to be upgraded, obtaining the corresponding target tool configuration file and upgrade tool file, integrating them to generate a package file, and generating a one-click upgrade tool according to the packaging command, the repetitive work of developers is reduced.

Benefits of technology

It simplifies the steps to generate a one-click upgrade tool, reduces labor costs, saves debugging time, and is beneficial for later project maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116088902B_ABST
    Figure CN116088902B_ABST
Patent Text Reader

Abstract

The application discloses a method for generating a one-key upgrade tool, the one-key upgrade tool and a one-key upgrade method, and relates to the technical field of communication, aiming to solve the problem that repeated investment of tool developers is needed when the one-key upgrade tool is generated, which not only increases the labor cost, but also is not conducive to subsequent project maintenance. The method comprises the following steps: determining a target software version of a device to be upgraded; acquiring a target tool configuration file corresponding to the target software version and a target upgrade tool file corresponding to the target software version respectively; performing integration processing on the target software version, the target tool configuration file, the target upgrade tool file and an upgrade main program file to generate a packaging file; and generating the one-key upgrade tool according to the packaging file when a packaging command is received.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method for generating a one-click upgrade tool, the one-click upgrade tool, and the one-click upgrade method. Background Technology

[0002] In some applications of wireless communication modules, it is necessary to perform non-erasable upgrades, meaning that during software version upgrades, production and radio frequency related data within the module must not be erased. To ensure the success of non-erasable upgrades, the upgrade tools used should be as simple to operate as possible to avoid erasing all necessary data or upgrading the software to the wrong version, thereby affecting the project development cycle and customer experience.

[0003] In existing one-click upgrade tools, the one-click upgrade toolkit is strongly correlated with the software version. When generating one-click upgrade tools, the tool developers need to make repeated investments, which not only increases labor costs but also hinders subsequent project maintenance. Summary of the Invention

[0004] The purpose of this invention is to provide a method for generating a one-click upgrade tool, a one-click upgrade tool, and a one-click upgrade method, in order to solve the problem that generating a one-click upgrade tool requires repeated investment from tool developers, which not only increases labor costs but also hinders subsequent project maintenance.

[0005] To achieve the above objectives, the present invention provides the following technical solution:

[0006] In a first aspect, the present invention provides a method for generating a one-click upgrade tool, the method comprising:

[0007] Determine the target software version for the device to be upgraded;

[0008] Obtain the target tool configuration file corresponding to the target software version, and the target upgrade tool file corresponding to the target software version, respectively;

[0009] The target software version, target tool configuration file, target upgrade tool file, and upgrade main program file are integrated and processed to generate a package file;

[0010] Upon receiving a packaging command, a one-click upgrade tool is generated based on the packaged file.

[0011] Compared with existing technologies, the method for generating a one-click upgrade tool provided by this invention, after determining the target software version, can directly obtain the target tool configuration file and target upgrade tool file corresponding to the target software version. After determining the target files, the target files and the upgrade main program are integrated to obtain a package file, and the package file is packaged according to the packaging command to finally generate the one-click upgrade tool. Based on this, the method for generating a one-click upgrade tool provided by this invention develops...

[0012] Once the target software version is determined, personnel only need to call the corresponding target tool configuration file and target upgrade tool file according to the target software version. Developers do not need to perform upgrades for different target software versions.

[0013] Debugging and programming the main program file greatly reduces repetitive input from developers in the process of generating one-click upgrade tools, thus reducing labor costs. At the same time, it simplifies the method of generating one-click upgrade tools, making the process more concise and beneficial for later project maintenance. Furthermore, it saves debugging time, which in turn shortens the project timeline to some extent.

[0014] 0. In a second aspect, the present invention also provides a one-click upgrade tool, using the technical solution of the first aspect described above.

[0015] The method described above generates a one-click upgrade tool for one-click upgrade of the device to be upgraded. The one-click upgrade tool includes a main program unit and a storage unit connected in communication.

[0016] The main program unit is used to read the target software version and target tool configuration stored in the storage unit.

[0017] document;

[0018] The main program unit is also used to determine the upgradable device port in the device to be upgraded corresponding to the target tool configuration file as the target device port, based on the target tool configuration file.

[0019] The main program unit is also used to read the target upgrade tool file and perform a non-erasing upgrade on the target device port.

[0020] Compared with the prior art, the beneficial effects of the one-click upgrade tool provided by the present invention are the same as the beneficial effects of the method for generating the one-click upgrade tool described in the above technical solution 0, and will not be repeated here.

[0021] Thirdly, the present invention also provides a one-click upgrade method, applied to the one-click upgrade tool described in the second aspect of the technical solution above, the one-click upgrade method comprising:

[0022] Read the target software version and target tool configuration file stored in the storage unit;

[0023] Based on the target tool configuration file, determine the upgradeable device port in the device to be upgraded that corresponds to the target tool configuration file as the target device port;

[0024] Read the target upgrade tool file and perform a non-erasing upgrade on the target device port.

[0025] Compared with the prior art, the beneficial effects of the one-click upgrade method provided by the present invention are the same as those of the method for generating one-click upgrade tools described in the above technical solutions, and will not be repeated here. Attached Figure Description

[0026] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:

[0027] Figure 1 This is a flowchart of the method for generating a one-click upgrade tool provided in an embodiment of the present invention;

[0028] Figure 2 This is a flowchart illustrating the workflow of the one-click upgrade tool provided in this embodiment of the invention.

[0029] Figure 3 This is a flowchart of a one-click upgrade method provided in an embodiment of the present invention. Detailed Implementation

[0030] To facilitate a clear description of the technical solutions in the embodiments of the present invention, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect. For example, the first threshold and the second threshold are merely used to distinguish different thresholds and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that the terms "first" and "second" are not necessarily different.

[0031] It should be noted that in this invention, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0032] In this invention, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a combination of a and b, a combination of a and c, a combination of b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0033] When upgrading equipment, due to the limited number of prototypes, the upgrade tools used should be as simple as possible to ensure a flawless upgrade process.

[0034] In view of this, such as Figure 1 As shown in the figure, an embodiment of the present invention provides a method for generating a one-click upgrade tool, the method comprising:

[0035] S110: Determine the target software version for the device to be upgraded.

[0036] In this application, in order to avoid upgrading the device to the wrong version, it is necessary to first determine the target software version that needs to be upgraded and store the determined target software version in the software version package directory.

[0037] After determining the target software version, proceed to step S120.

[0038] S120: Obtain the target tool configuration file corresponding to the target software version, and the target upgrade tool file corresponding to the target software version.

[0039] Specifically, in order to ensure that the generated one-click upgrade tool can run normally, after the target software version is determined, it is also necessary to determine the target tool configuration file and the target upgrade tool file according to the determined target software version.

[0040] For example, the tool configuration file corresponding to the target software version in the tool configuration file package obtained based on the target software version is the target tool configuration file.

[0041] The upgrade tool file corresponding to the target software version in the upgrade tool file package is the target upgrade tool file.

[0042] In this application, to match the configuration of each different target software version, various tool configuration files that the one-click upgrade tool depends on need to be stored in a tool configuration file package. The tool configuration file package stores some basic parameter files required for the one-click upgrade tool to run. Different tool configuration files can be obtained by setting different basic parameters. By storing different tool configuration files in a tool configuration file package, the one-click upgrade tool can be ensured to be flexible and editable, eliminating the need to edit the main upgrade program code. This greatly simplifies the method of generating the one-click upgrade tool and allows for direct invocation of the target tool configuration file corresponding to the target software version's requirements after the target software version is determined.

[0043] It should be noted that, in order to match the upgrade environment of each different target software version and enable the one-click upgrade tool to integrate and be compatible with multiple vendor platforms, the various upgrade tool files required for the one-click upgrade tool to run can be stored in the upgrade tool file package. After determining the target software version, the corresponding target upgrade tool file can be called according to the requirements of the target software version.

[0044] After obtaining the target tool configuration file and the target upgrade tool file, proceed to step S130.

[0045] S130: Integrates the target software version, target tool configuration file, target upgrade tool file, and upgrade main program file to generate a package file.

[0046] In this application, after determining the target software version and obtaining the corresponding target tool configuration file and target upgrade tool file based on the target software version, the target software version, target tool configuration file, target upgrade tool file and upgrade main program file can all be copied to the pre-packaged directory to generate a packaged file.

[0047] The aforementioned main upgrade program is the main window program in the one-click upgrade tool, which is used to complete the entire upgrade process of the one-click upgrade tool according to the code logic.

[0048] After generating the packaged file, proceed to step S140.

[0049] S140: Upon receiving a packaging command, generate a one-click upgrade tool based on the packaged file.

[0050] In this application, upon receiving a packaging command, the packaging file can be packaged to obtain a self-extracting application, which is then identified as a one-click upgrade tool.

[0051] Specifically, after generating the packaged file, the entire contents of the packaged file can be packaged into a self-extracting application using the compression software's packaging commands. This self-extracting application is the one-click upgrade tool. Therefore, when a user needs to upgrade their device, they only need to obtain the appropriate one-click upgrade tool based on the target software version.

[0052] Compared with existing technologies, the method for generating a one-click upgrade tool provided in this embodiment of the invention, after determining the target software version, can directly obtain the target tool configuration file and target upgrade tool file corresponding to the target software version. After determining the target files, the target files and the upgrade main program are integrated to obtain a packaged file, and the packaged file is packaged according to the packaging command to finally generate the one-click upgrade tool. Based on this, in the method for generating a one-click upgrade tool provided in this embodiment of the invention, after determining the target software version, developers only need to call the corresponding target tool configuration file and target upgrade tool file according to the target software version. Developers do not need to debug and program the upgrade main program file for different target software versions, which greatly reduces the repetitive investment of developers in the process of generating a one-click upgrade tool and reduces labor costs. At the same time, the method for generating a one-click upgrade tool is simplified, making the steps for generating a one-click upgrade tool more concise, which is beneficial for later project maintenance. In addition, it can also save debugging time and, to a certain extent, project time.

[0053] In practical applications, the aforementioned device to be upgraded can be a wireless communication module.

[0054] Specifically, the target software version of the wireless communication module can be determined based on the product model and the current software version of the wireless communication module.

[0055] Understandably, given the large number of manufacturers and specifications of wireless communication modules, it is necessary to determine the target software version to be upgraded based on the actual product model of the wireless communication module and the currently installed software version. This is to avoid problems caused by software version incompatibility or mismatch with the wireless communication module, thus ensuring the accuracy of the target software version when generating the one-click upgrade tool.

[0056] It should also be noted that the above method for generating a one-click upgrade tool can be directly deployed on the software version's compilation server. When generating the target software version on the development side, the target software version can be directly stored in the software version package directory, which makes it easy to call the corresponding target upgrade tool file and target configuration file according to the target software version, and generate the corresponding one-click upgrade tool at the same time as generating the target software version.

[0057] This invention also provides a one-click upgrade tool, which is generated using the method described above. The one-click upgrade tool includes a main program unit with communication connection and a storage unit.

[0058] The main program unit is used to read the target software version and target tool configuration file stored in the storage unit.

[0059] The main program unit is also used to determine the upgradable device port in the device to be upgraded, which corresponds to the target tool configuration file, as the target device port, based on the target tool configuration file.

[0060] The main program unit is also used to read the target upgrade tool file and perform a non-erasing upgrade on the target device port.

[0061] In specific implementation, the storage unit is used to store the target software version, target tool configuration files, and target upgrade tool files. The aforementioned storage unit can be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or it can be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), a magnetic disk storage medium, or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited to these.

[0062] In this application, the target tool configuration file has a preset matching port name for the device to be upgraded. After the main program unit reads the target configuration file, it searches for the device port in the device manager, determines whether it matches the preset port name in the target configuration file, and determines whether the device port that matches the preset port name is an upgradeable device port. When both of the above conditions are met, the device port is determined to be the target device port.

[0063] After determining the target device port, the main program unit can read the target upgrade tool file and perform a non-erasing upgrade on the device to be upgraded through the target device port.

[0064] In one possible implementation, the main program unit is further configured to determine, based on the target tool configuration file, the upgradable device port in the device to be upgraded corresponding to the target tool configuration file as the target device port, including:

[0065] The main program unit is also used to determine the device port that matches the preset conditions in the device to be upgraded as the specified device port based on the port name of the device to be upgraded.

[0066] The main program unit is also used to determine the specified device port as the target device port when the specified device port is an upgradeable device port.

[0067] It is understandable that the aforementioned preset condition refers to the pre-configured device port name. When it is determined that the preset device port name exists in the Device Manager, the device port that matches the preset device port name is designated as the specified device port. Subsequently, when it is determined that the specified device port is an upgradable device port, the specified device port becomes the target device port.

[0068] In some embodiments, the main program unit is further configured to determine, based on the port name of the device to be upgraded, the device port that matches the preset conditions as the specified device port, and then, when the specified device port is a non-upgradeable device port, switch the specified device port to an upgradeable device port and determine the switched upgradeable device port as the target device port.

[0069] In this application, when the specified device port is a non-upgradeable device port, it is necessary to call the cutout command in the target configuration tool file, such as the AT command or ADB command, to switch the specified device port to an upgradeable device port, and determine the upgraded device port after the switch as the target device port.

[0070] For example, the main program unit is further configured to read the target upgrade tool file and perform a non-erasing upgrade on the target device port, including: the main program unit is further configured to read the target upgrade tool file, perform a non-erasing upgrade on the target device port, and display a progress bar and the final upgrade result. Based on this, when a user performs a non-erasing upgrade on the device to be upgraded, in order to facilitate monitoring the upgrade process and obtaining the final upgrade result, the application window of the main program unit will display an upgrade progress bar and the final upgrade result during the upgrade process.

[0071] Furthermore, to simplify the user's operation steps when using the one-click upgrade tool, and to prevent accidental touches or interruptions to the upgrade process, a single "Start Upgrade" button can be designed in the main program unit. When users need to upgrade the device to be upgraded, they only need to click the "Start Upgrade" button to achieve a non-erasing upgrade of the device to be upgraded.

[0072] Figure 2 The workflow of the one-click upgrade tool is illustrated. Figure 2 As shown, before the main program unit reads the target software version, target tool configuration file and target upgrade tool file stored in the storage unit, the main program unit needs to confirm that the target software version does exist in the storage unit, that is, to check the software version package directory.

[0073] The system can search the Device Manager to see if a specified device port exists based on the target tool's configuration file. Once the specified device port is found, it can be determined whether the specified device port is an upgradable device port.

[0074] When the specified device port is an upgradeable device port, the specified device port is determined to be the target device port.

[0075] When the specified device port is a non-upgradeable device port, read the AT or ADB command in the target configuration file to switch the specified device port to an upgradeable device port, and determine the upgraded device port after the switch as the target device port.

[0076] Finally, the target upgrade tool file is read, and the target device port is upgraded without erasure. The progress bar and the final result are then displayed.

[0077] This invention also provides a one-click upgrade method, such as... Figure 3 As shown, the one-click upgrade method applied to the above-mentioned one-click upgrade tool includes:

[0078] S210: Read the target software version and target tool configuration file stored in the storage unit.

[0079] S220: Based on the target tool configuration file, determine the upgradeable device port in the device to be upgraded corresponding to the target tool configuration file as the target device port.

[0080] S230: Reads the target upgrade tool file and performs a non-erasing upgrade on the target device port.

[0081] Based on this, the beneficial effects of the one-click upgrade method provided in this embodiment of the invention are the same as those of the method for generating a one-click upgrade tool described in the above embodiments, and will not be repeated here.

[0082] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings, the disclosure, and the appended claims in carrying out the claimed invention. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0083] Although the invention has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely exemplary descriptions of the invention as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its spirit and scope. Thus, if such modifications and modifications of the invention fall within the scope of the claims and their equivalents, the invention is also intended to include such modifications and modifications.

Claims

1. A method of generating a one-key upgrade tool, characterized by, The method comprises: determining a target software version of the device to be upgraded; the determination of the target software version of the device to be upgraded comprises determining the target software version corresponding to the device to be upgraded based on the product model and the current software version of the device to be upgraded; respectively acquiring a target tool configuration file corresponding to the target software version and a target upgrade tool file corresponding to the target software version; integrating the target software version, the target tool configuration file, the target upgrade tool file and an upgrade main program file to generate a packaging file; the target tool configuration file is stored in a tool configuration file package, the tool configuration file package saves the basic parameter file required by the one-key upgrade tool during running, and different tool configuration files can be obtained by setting different basic parameters; the matching port of the device to be upgraded is preset in the target tool configuration file; various target upgrade tool files required by the one-key upgrade tool during running are stored in an upgrade tool file package, so that the one-key upgrade tool can integrate and be compatible with multiple manufacturer platforms; when a packaging command is received, the one-key upgrade tool is generated according to the packaging file; the one-key upgrade tool is used to read the target upgrade tool file and perform non-erasing upgrade on the target device port.

2. The method of generating a one-touch upgrade tool of claim 1, wherein, The device to be upgraded comprises a wireless communication module.

3. The method of generating a one-touch upgrade tool of claim 1, wherein, The respective acquisition of the target tool configuration file corresponding to the target software version and the target upgrade tool file corresponding to the target software version comprises: based on the target software version, the tool configuration file corresponding to the target software version in the tool configuration file package is acquired as the target tool configuration file; based on the target software version, the upgrade tool file corresponding to the target software version in the upgrade tool file package is acquired as the target upgrade tool file.

4. The method of generating a one-touch upgrade tool of claim 1, wherein, When the packaging command is received, the one-key upgrade tool is generated according to the packaging file, comprising: when the packaging command is received, the packaging file is packaged to obtain a self-decompression application; determining that the self-decompression application is the one-key upgrade tool.

5. A one-touch upgrade tool generated using the method of any one of claims 1 to 4, wherein The one-key upgrade tool for one-key upgrading the device to be upgraded comprises a main program unit and a storage unit in communication connection; the main program unit is used to read the target software version and the target tool configuration file stored in the storage unit; the target software version is the software version of the device to be upgraded determined based on the product model and the current software version of the device to be upgraded; the main program unit is also used to determine, based on the target tool configuration file, that the device port that can be upgraded in the device to be upgraded corresponding to the target tool configuration file is the target device port; the main program unit is also used to read the target upgrade tool file and perform non-erasing upgrade on the target device port.

6. The one-key upgrade tool of claim 5, wherein, the main program unit is also used to determine, based on the target tool configuration file, that the device port that can be upgraded in the device to be upgraded corresponding to the target tool configuration file is the target device port, comprising: The main program unit is further configured to determine, according to a port name of the device to be upgraded, a device port in the device to be upgraded that matches a preset condition as a specified device port. The main program unit is further configured to determine, in a case where the specified device port is an upgradable device port, that the specified device port is the target device port.

7. The one-key upgrade tool of claim 6, wherein, After the main program unit determines, according to a port name of the device to be upgraded, a device port in the device to be upgraded that matches a preset condition as a specified device port, The main program unit is further configured to, when the specified device port is an unupgradable device port, switch the specified device port to an upgradable device port, and determine that the upgradable device port after the switching is the target device port.

8. The one-key upgrade tool of claim 5, wherein, The main program unit is further configured to read the target upgrade tool file and perform non-erasing upgrade on the target device port, including: The main program unit is further configured to read the target upgrade tool file and perform non-erasing upgrade on the target device port, and display a progress bar and a final upgrade result.

9. A one-touch upgrade method, characterized by, The one-key upgrade method is applied to the one-key upgrade tool of any one of claims 5-8, and the one-key upgrade method comprises: reading the target software version and the target tool configuration file stored in the storage unit; determining, based on the target tool configuration file, an upgradable device port in the device to be upgraded corresponding to the target tool configuration file as the target device port; reading the target upgrade tool file and performing non-erasing upgrade on the target device port.

Citation Information

Patent Citations

  • One-click upgrade tool generation system and manufacturing method thereof

    CN102622213A

  • Air conditioner upgrading method and device

    CN115328511A