CN112416407A - Software upgrading method, device, equipment and computer readable storage medium - Google Patents

Software upgrading method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112416407A
CN112416407A CN202011422621.0A CN202011422621A CN112416407A CN 112416407 A CN112416407 A CN 112416407A CN 202011422621 A CN202011422621 A CN 202011422621A CN 112416407 A CN112416407 A CN 112416407A
Authority
CN
China
Prior art keywords
information
upgrading
software
upgraded
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011422621.0A
Other languages
Chinese (zh)
Inventor
杨志君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Entropy Technology Co Ltd
ZKTeco Co Ltd
Original Assignee
Xiamen Entropy Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Entropy Technology Co Ltd filed Critical Xiamen Entropy Technology Co Ltd
Priority to CN202011422621.0A priority Critical patent/CN112416407A/en
Publication of CN112416407A publication Critical patent/CN112416407A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a software upgrading method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: s1, judging whether the network connection of the electronic equipment corresponding to the software to be upgraded is normal, if so, executing a step S2 and then executing a step S4, and if not, executing a step S3 and then executing a step S4; s2, sending the first information to the first upgrading device, so that the first upgrading device returns upgrading information based on the first information, wherein the first information comprises: the method comprises the steps of obtaining current version information of software to be upgraded and equipment information of electronic equipment; s3, comparing the current version information of the software to be upgraded with the preset information sent by the second upgrading equipment to obtain upgrading information, wherein the preset information is information stored in the upgrading equipment; s4, upgrading the software to be upgraded based on the upgrading information, and solving the technical problems of complicated flow and large workload when upgrading the software due to different network environments.

Description

Software upgrading method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a software upgrading method, apparatus, device, and computer-readable storage medium.
Background
With the progress of technology and the continuous development and application of electronic equipment, software in the electronic equipment is diversified more and more. Meanwhile, the configuration and the upgrade of the software can improve the user experience, so the configuration and the upgrade of the software also become the steps which are not necessarily few when the electronic equipment is used.
In the prior art, the types of application software are diversified, the network environments are different, part of the application software is allowed to access the network, and part of the application software is forbidden to access the network in places with extremely high safety requirements. Therefore, when the software is upgraded, the process is complicated, the workload is large, and the software is upgraded greatly.
Disclosure of Invention
The application provides a software upgrading method, a device, equipment and a computer readable storage medium, which solve the technical problems of complicated flow and large workload during software upgrading caused by different network environments in the prior art.
In view of this, a first aspect of the present application provides a software upgrading method, including:
s1, judging whether the network connection of the electronic equipment corresponding to the software to be upgraded is normal, if so, executing a step S2 and then executing a step S4, and if not, executing a step S3 and then executing a step S4;
s2, sending first information to a first upgrading device, so that the first upgrading device returns upgrading information based on the first information, wherein the first information comprises: the current version information of the software to be upgraded and the equipment information of the electronic equipment;
s3, comparing the current version information of the software to be upgraded with the preset information sent by the second upgrading equipment to obtain upgrading information, wherein the preset information is information stored in the second upgrading equipment;
and S4, upgrading the software to be upgraded based on the upgrading information.
Optionally, sending first information to a first upgrade device, so that the first upgrade device returns upgrade information based on the first information, specifically including:
sending first information to first upgrading equipment, enabling the first upgrading equipment to compare the current version information with second information, and returning upgrading information, wherein the second information is as follows: and all version information of the software to be upgraded, which is stored in the first upgrading device, has a preset corresponding relationship with the electronic device.
Optionally, the current version information in step S2 includes: the current software version number and the current patch number, and the device information includes: device type and device identification.
Optionally, the upgrade information in step S2 is encrypted data encrypted by a preset encryption algorithm;
step S4 specifically includes:
s41, decrypting the upgrading information by using a preset decryption algorithm corresponding to the preset encryption algorithm;
and S42, upgrading the software to be upgraded by using the decrypted upgrading information.
Optionally, the preset information in step S3 is encrypted data encrypted by a preset encryption algorithm;
comparing the current version information of the software to be upgraded with the preset information sent by the second upgrading device to obtain upgrading information, wherein the upgrading information specifically comprises the following steps:
and decrypting the preset information by using a preset decryption algorithm corresponding to the preset encryption algorithm, and comparing the current version information of the software to be upgraded with the decrypted preset information to obtain upgrade information, wherein the preset information is sent by second upgrade equipment.
Optionally, step S4 is preceded by:
and responding to a data backup request, and backing up the current version information and the upgrading information of the software to be upgraded.
Optionally, step S4 is followed by:
and acquiring a software restoration request, and restoring the software of the upgraded version to be upgraded according to the upgrading information and the current version information.
A second aspect of the present application provides a software upgrading apparatus, including:
the judging unit is used for judging whether the network connection of the electronic equipment corresponding to the software to be upgraded is normal or not, if so, the sending unit and the upgrading unit are triggered, and if not, the comparing unit and the upgrading unit are triggered;
the sending unit is configured to send first information to a first upgrade device, so that the first upgrade device returns upgrade information based on the first information, where the first information includes: the current version information of the software to be upgraded and the equipment information of the electronic equipment;
the comparison unit is used for comparing the current version information of the software to be upgraded with the preset information sent by the second upgrading equipment to obtain the upgrading information, wherein the preset information is the information stored in the second upgrading equipment;
and the upgrading unit is used for upgrading the software to be upgraded based on the upgrading information.
A third aspect of the present application provides a software upgrade apparatus, the apparatus comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the software upgrading method according to the instructions in the program code.
A fourth aspect of the present application provides a computer-readable storage medium for storing program code for executing the software upgrading method of the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
in the method, the network connection of the electronic equipment is judged, if the network connection is normal, software upgrading can be carried out through the first upgrading equipment, the first upgrading equipment can acquire the current version information of the software to be upgraded and the equipment information of the corresponding electronic equipment due to the normal network connection, then the first upgrading equipment can determine the corresponding upgrading information based on the information and send the upgrading information to the electronic equipment, and the electronic equipment can upgrade the software to be upgraded by utilizing the upgrading information; if the network connection is abnormal, software upgrading is carried out through the second upgrading equipment, and due to the fact that the network connection is abnormal, the second upgrading equipment cannot know equipment information of the electronic equipment and current version information of software to be upgraded, the second upgrading equipment can send all stored preset information to the electronic equipment, the electronic equipment can obtain the upgrading information by comparing the preset information with the current version information of the software, and finally the software to be upgraded is upgraded by utilizing the upgrading information.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a first embodiment of a software upgrading method in an embodiment of the present application;
fig. 2 is a schematic flowchart of a second embodiment of a software upgrading method in an embodiment of the present application;
FIG. 3 is a flowchart illustrating a software upgrading method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an embodiment of a software upgrading apparatus in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a software upgrading method, a software upgrading device, software upgrading equipment and a computer readable storage medium, and solves the technical problems of complex flow and large workload during software upgrading due to different network environments in the prior art.
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a flowchart of a first embodiment of a software upgrading method in an embodiment of the present application is shown.
A software upgrading method in this embodiment includes:
step 101, judging whether the network connection of the electronic equipment corresponding to the software to be upgraded is normal, if so, executing step 102 and then executing step 104, and if not, executing step 103 and then executing step 104.
It should be noted that, first, it is determined whether the network connection of the electronic device corresponding to the software to be upgraded is normal, if so, the software may be upgraded through the information acquired by the first upgrading device, and if not, the software may be upgraded through the information acquired by the second upgrading device.
It can be understood that the determination of the network connection of the electronic device may be in various manners, which is not limited and described in this embodiment.
The first upgrading device and the second upgrading device may be the same device or different devices, and the difference between the normal network connection and the abnormal network connection is that the information acquired by the electronic device from the first upgrading device and the second upgrading device is different.
102, sending first information to first upgrading equipment, so that the first upgrading equipment returns upgrading information based on the first information, wherein the first information comprises: the current version information of the software to be upgraded and the equipment information of the electronic equipment.
After the electronic device sends the first upgrade device in the first information, the first upgrade device may return corresponding upgrade information based on the first information, where the upgrade information is used to upgrade software to be upgraded.
The first upgrade device may be an upgrade server, or may also be an upgrade check tool, and those skilled in the art may specifically set up as needed, which is not limited herein.
And 103, comparing the current version information of the software to be upgraded with preset information sent by the second upgrading equipment to obtain upgrading information, wherein the preset information is information stored in the second upgrading equipment.
When the network connection of the electronic device is abnormal, the second upgrading device cannot know the device information of the electronic device and the current version information of the software to be upgraded, so that the second upgrading device can send all the stored and local information (namely preset information) to the electronic device, and the electronic device can obtain the upgrading information for upgrading the software to be upgraded based on the preset information and the current version information of the software to be upgraded.
And step 104, upgrading the software to be upgraded based on the upgrading information.
In the embodiment, firstly, network connection of the electronic equipment is judged, if the network connection is normal, software upgrading can be carried out through the first upgrading equipment, and as the network connection is normal, the first upgrading equipment can acquire current version information of software to be upgraded and equipment information corresponding to the electronic equipment, then the first upgrading equipment can determine corresponding upgrading information based on the information and send the upgrading information to the electronic equipment, and the electronic equipment can upgrade the software to be upgraded by utilizing the upgrading information; if the network connection is abnormal, software upgrading is carried out through the second upgrading equipment, and due to the fact that the network connection is abnormal, the second upgrading equipment cannot know equipment information of the electronic equipment and current version information of software to be upgraded, the second upgrading equipment can send all stored preset information to the electronic equipment, the electronic equipment can obtain the upgrading information by comparing the preset information with the current version information of the software, and finally the software to be upgraded is upgraded by utilizing the upgrading information.
The above is a first embodiment of a software upgrading method provided in the embodiments of the present application, and the following is a second embodiment of a software upgrading method provided in the embodiments of the present application.
Referring to fig. 2, a flowchart of a second embodiment of a software upgrading method in the embodiment of the present application is shown.
A software upgrading method in this embodiment includes:
step 201, judging whether the network connection of the electronic device corresponding to the software to be upgraded is normal, if so, executing steps 202 and 204 and subsequent steps, and if not, executing steps 203 and 204 and subsequent steps.
It should be noted that step 201 is the same as the description of step 101 in the first embodiment, and reference may be specifically made to the description of step 101, which is not described herein again.
Step 202, sending the first information to the first upgrading device, so that the first upgrading device compares the current version information with the second information and returns upgrading information.
Wherein the first information includes: the method comprises the steps of obtaining current version information of software to be upgraded and equipment information of electronic equipment; the second information is: all version information of the software to be upgraded stored in the first upgrading device has a preset corresponding relation with the electronic device.
The current version information here includes: the current software version number and the current patch number, the device information includes: device type and device identification.
It is also understood that the upgrade information in this embodiment is encrypted data encrypted by a preset encryption algorithm.
And step 203, comparing the current version information of the software to be upgraded with the preset information sent by the second upgrading device to obtain upgrading information.
The preset information is information stored in the upgrading equipment. It is understood that the preset information may be encrypted data encrypted by a preset encryption algorithm;
comparing the current version information of the software to be upgraded with the preset information sent by the second upgrading device to obtain upgrading information, wherein the upgrading information specifically comprises the following steps:
and decrypting the preset information by using a preset decryption algorithm corresponding to the preset encryption algorithm, and comparing the current version information of the software to be upgraded with the decrypted preset information to obtain the upgrade information, wherein the preset information is sent by the second upgrading device.
And step 204, responding to the data backup request, and backing up the current version information and the upgrading information of the software to be upgraded.
Before upgrading, the current version information and the upgrading information of the software to be upgraded are backed up, so that the software to be upgraded can be conveniently used in subsequent software restoration or software tracing.
And step 205, upgrading the software to be upgraded based on the upgrading information.
It can be understood that, when the upgrade information in step 202 is encrypted data, the electronic device needs to encrypt the upgrade information, and step 205 specifically includes:
decrypting the upgrade information by using a preset decryption algorithm corresponding to the preset encryption algorithm;
and upgrading the software to be upgraded by using the decrypted upgrading information.
And step 206, acquiring a software restoration request, and restoring the software of the upgraded version to be upgraded according to the upgrade information and the current version information.
It should be noted that, after the human body temperature is judged to be less than the preset temperature threshold, the image quality of the image information is also judged before the identity authentication is performed, so as to ensure the correctness of the identity authentication result during the subsequent identity authentication.
Whether upgrading is successful or failed, the previous version can be restored, the precondition is that whether reducible data already exist under backup resources is checked, when the reducible data exist, the reducible data can be restored according to the generated reducible backup strategy encryption file, and the version after restoration is ensured to be the previous version.
Referring to fig. 3, a detailed flow of the software upgrading method in the present embodiment is described:
1. collecting current version information of equipment and software, verifying basic data for version detection, and the basic information parameters including the following types
A. Software Version number (Version ═ 1.0.0-Release), Release Version: this version means the "final version", and the release version must be the final version that can be released.
b. The current Patch number of the software (Patch ═ v0.0.1), and the version number of the Patch defines:
v (version): a version;
major version number (1): when the functional module has larger change, for example, a plurality of modules are added or the whole architecture is changed;
minor version number (1): when the functions are increased or changed to a certain extent, for example, functions of controlling the authority, adding a custom view and the like are added;
stage version number (1): generally, Bug repairs or small changes are carried out, revisions are issued frequently, time intervals are not limited, and a revision can be issued when a serious Bug is repaired.
C. The electronic device type (manufactured type) is standard, and the standard is a standard electronic device, and the custom is a custom electronic device.
D. An electronic device identifier (product code ═ ZKApp) is defined according to an actual electronic device.
E. License ID (license ID ═ 1) (extension can be controlled by license more strictly), license is the only channel authorized by software, and the place can control the upgrade and update of software more strictly.
2. The method comprises the steps that version information of software application is collected and detected by an upgrading server, the upgrading server has a version release function, and patch creating and releasing functions, and upgrading packages and patch packages are managed and released for different electronic equipment and customized electronic equipment according to different electronic equipment marks (ProductCode) and types (ProductType) of the electronic equipment.
The detection process takes the type of the electronic equipment as a standard and the mark of the electronic equipment as ZKApp as an example, the version of the electronic equipment of the current version 1.0.0-Release and the version of the patch-v0.0.1 are transmitted to the server for version judgment, and if the version of the current server has patch packets patch-v0.0.2, patch-v0.0.3 and patch-v0.0.4, the patch packets required to be downloaded by the software of the client are patch-v0.0.2, patch-v0.0.3 and patch-v0.0.4.
There are two ways to handle patch packages:
firstly, under the condition of abnormal live-off line of the network, an incremental package is assembled by the help of an upgrade server, different running system environments (Windows and Linux) can be selected, and system missing system files can be obtained according to requirements besides the incremental package generated by the different system environments.
Secondly, under the condition that the network environment is normal, a user performs version check on an application software checking tool so as to obtain a multi-version patch package, and replacement needs to be started from a low version or version replacement is selected autonomously.
3. When the version is detected to have the version, the upgrade server returns a multi-version list which can be upgraded:
3.1, upgrade across large versions (1.0.0-Release upgrade 2.0.0-Release);
3.2, minor version repair upgrade (1.0.0-Release upgrade repair 1.0.1-Release).
4. And selecting the corresponding upgrade patch or patch package to download according to actual requirements.
5. In the whole upgrading process, the source of the upgrading packet and the patch packet needs to be ensured to be from the correct upgrading server, the safety of the upgrading server is ensured, and therefore the upgrading information or the preset information is encrypted.
In order to improve the file confidentiality, the policy file adopts a public key encryption and private key decryption mode by using an asymmetric encryption algorithm RSA, and then encrypts an RSA private key by using an RSA private key in a mode of further using a symmetric encryption algorithm AES256 random key encryption).
And after the strategy rule file is decrypted, file detection is carried out according to the strategy file check code, so that the file is prevented from being illegally tampered.
6. Backup of various types of resources, data, caches, etc., such as:
6.1, database in application;
6.2, caching backup by a third party;
6.3, resource backup picture files and the like;
6.4, file backup of the upgrading strategy;
6.5, generating a reducible backup strategy encryption file;
the backup content backs up the resources corresponding to the rule attribute mode of delete and update according to the policy file, the directory of the backup can be specified by self, and the reducible backup policy encryption file is only locally generated in the backup process. And simultaneously stopping the software service or equipment, and after the backup is successful, upgrading according to the decrypted upgrading strategy.
7. The file is upgraded according to the formulated rule strictly according to the decrypted strategy file in the upgrading process, when the upgrading fails, logs in the failure step are collected, the upgrading behavior is checked conveniently, after the upgrading succeeds, the version information of the current software or equipment is updated, the corresponding software or equipment is restarted, the whole upgrading process is completed, and the upgrading strategy file is removed after the upgrading is completed to prevent secondary reuse.
8. Whether upgrading is successful or failed, the previous version can be restored, the precondition is that whether reducible data already exist under backup resources is checked, and when the reducible data exist, the reducible data can be restored according to the generated reducible backup strategy encryption file, so that the previous version is ensured to be restored.
In the embodiment, firstly, network connection of the electronic equipment is judged, if the network connection is normal, software upgrading can be carried out through the first upgrading equipment, and as the network connection is normal, the first upgrading equipment can acquire current version information of software to be upgraded and equipment information corresponding to the electronic equipment, then the first upgrading equipment can determine corresponding upgrading information based on the information and send the upgrading information to the electronic equipment, and the electronic equipment can upgrade the software to be upgraded by utilizing the upgrading information; if the network connection is abnormal, software upgrading is carried out through the second upgrading equipment, and due to the fact that the network connection is abnormal, the second upgrading equipment cannot know equipment information of the electronic equipment and current version information of software to be upgraded, the second upgrading equipment can send all stored preset information to the electronic equipment, the electronic equipment can obtain the upgrading information by comparing the preset information with the current version information of the software, and finally the software to be upgraded is upgraded by utilizing the upgrading information.
The second embodiment of the software upgrading method provided in the embodiment of the present application is as follows, and please refer to fig. 4.
Referring to fig. 4, a schematic structural diagram of an embodiment of a software upgrading apparatus in an embodiment of the present application includes:
a determining unit 401, configured to determine whether a network connection of the electronic device corresponding to the software to be upgraded is normal, if so, trigger the sending unit 402 and the upgrading unit 404, and if not, trigger the comparing unit 403 and the upgrading unit 404;
a sending unit 402, configured to send first information to the first upgrade apparatus, so that the first upgrade apparatus returns upgrade information based on the first information, where the first information includes: the method comprises the steps of obtaining current version information of software to be upgraded and equipment information of electronic equipment;
a comparing unit 403, configured to compare current version information of the software to be upgraded with preset information sent by a second upgrading device, to obtain upgrading information, where the preset information is information stored in the upgrading device;
and an upgrading unit 404, configured to upgrade the software to be upgraded based on the upgrade information.
In the embodiment, firstly, network connection of the electronic equipment is judged, if the network connection is normal, software upgrading can be carried out through the first upgrading equipment, and as the network connection is normal, the first upgrading equipment can acquire current version information of software to be upgraded and equipment information corresponding to the electronic equipment, then the first upgrading equipment can determine corresponding upgrading information based on the information and send the upgrading information to the electronic equipment, and the electronic equipment can upgrade the software to be upgraded by utilizing the upgrading information; if the network connection is abnormal, software upgrading is carried out through the second upgrading equipment, and due to the fact that the network connection is abnormal, the second upgrading equipment cannot know equipment information of the electronic equipment and current version information of software to be upgraded, the second upgrading equipment can send all stored preset information to the electronic equipment, the electronic equipment can obtain the upgrading information by comparing the preset information with the current version information of the software, and finally the software to be upgraded is upgraded by utilizing the upgrading information.
The embodiment of the application also provides an embodiment of software upgrading equipment, wherein the equipment comprises a processor and a memory; the memory is used for storing the program codes and transmitting the program codes to the processor; the processor is configured to execute the software upgrading method according to the first embodiment or the second embodiment according to instructions in the program code.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is configured to store a program code, and the program code is configured to execute the software upgrading method in the first embodiment or the second embodiment.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of a unit is only one logical functional division, and there may be other divisions when implemented, for example, multiple units or components may be combined or integrated into another grid network to be installed, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to the needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone electronic device, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in the form of a software electronic device, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiment of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for upgrading software, comprising the steps of:
s1, judging whether the network connection of the electronic equipment corresponding to the software to be upgraded is normal, if so, executing a step S2 and then executing a step S4, and if not, executing a step S3 and then executing a step S4;
s2, sending first information to a first upgrading device, so that the first upgrading device returns upgrading information based on the first information, wherein the first information comprises: the current version information of the software to be upgraded and the equipment information of the electronic equipment;
s3, comparing the current version information of the software to be upgraded with the preset information sent by the second upgrading equipment to obtain upgrading information, wherein the preset information is information stored in the second upgrading equipment;
and S4, upgrading the software to be upgraded based on the upgrading information.
2. The software upgrading method according to claim 1, wherein sending first information to a first upgrading device, so that the first upgrading device returns upgrading information based on the first information, specifically comprising:
sending first information to first upgrading equipment, enabling the first upgrading equipment to compare the current version information with second information, and returning upgrading information, wherein the second information is as follows: and all version information of the software to be upgraded, which is stored in the first upgrading device, has a preset corresponding relationship with the electronic device.
3. The software upgrading method according to claim 2, wherein the current version information in step S2 includes: the current software version number and the current patch number, and the device information includes: device type and device identification.
4. The software upgrading method according to claim 1, wherein the upgrade information in step S2 is encrypted data encrypted by a preset encryption algorithm;
step S4 specifically includes:
s41, decrypting the upgrading information by using a preset decryption algorithm corresponding to the preset encryption algorithm;
and S42, upgrading the software to be upgraded by using the decrypted upgrading information.
5. The software upgrading method according to claim 1, wherein the preset information in step S3 is encrypted data encrypted by a preset encryption algorithm;
comparing the current version information of the software to be upgraded with the preset information sent by the second upgrading device to obtain upgrading information, wherein the upgrading information specifically comprises the following steps:
and decrypting the preset information by using a preset decryption algorithm corresponding to the preset encryption algorithm, and comparing the current version information of the software to be upgraded with the decrypted preset information to obtain upgrade information, wherein the preset information is sent by second upgrade equipment.
6. The software upgrading method according to claim 1, wherein step S4 is preceded by:
and responding to a data backup request, and backing up the current version information and the upgrading information of the software to be upgraded.
7. The software upgrading method according to claim 6, further comprising, after step S4:
and acquiring a software restoration request, and restoring the software of the upgraded version to be upgraded according to the upgrading information and the current version information.
8. A software upgrading apparatus, comprising:
the judging unit is used for judging whether the network connection of the electronic equipment corresponding to the software to be upgraded is normal or not, if so, the sending unit and the upgrading unit are triggered, and if not, the comparing unit and the upgrading unit are triggered;
the sending unit is configured to send first information to a first upgrade device, so that the first upgrade device returns upgrade information based on the first information, where the first information includes: the current version information of the software to be upgraded and the equipment information of the electronic equipment;
the comparison unit is used for comparing the current version information of the software to be upgraded with the preset information sent by the second upgrading equipment to obtain the upgrading information, wherein the preset information is the information stored in the second upgrading equipment;
and the upgrading unit is used for upgrading the software to be upgraded based on the upgrading information.
9. A software upgrading device, characterized in that the device comprises a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the software upgrade method of any one of claims 1 to 7 according to instructions in the program code.
10. A computer-readable storage medium for storing program code for performing the software upgrade method of any one of claims 1 to 7.
CN202011422621.0A 2020-12-08 2020-12-08 Software upgrading method, device, equipment and computer readable storage medium Pending CN112416407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011422621.0A CN112416407A (en) 2020-12-08 2020-12-08 Software upgrading method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011422621.0A CN112416407A (en) 2020-12-08 2020-12-08 Software upgrading method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112416407A true CN112416407A (en) 2021-02-26

Family

ID=74775066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011422621.0A Pending CN112416407A (en) 2020-12-08 2020-12-08 Software upgrading method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112416407A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116962376A (en) * 2023-09-20 2023-10-27 季华实验室 NB-IOT terminal upgrading method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271914A1 (en) * 2005-05-27 2006-11-30 Niraj Gopal Method for supporting new network element software versions in an element management system without upgrading
CN102461198A (en) * 2009-06-05 2012-05-16 夏普株式会社 Software updating system, electronic devices, and software updating method
CN106201614A (en) * 2016-07-11 2016-12-07 天津中兴智联科技有限公司 A kind of universal method and system that multiple similar software can be carried out chain type upgrading
CN108566381A (en) * 2018-03-19 2018-09-21 百度在线网络技术(北京)有限公司 A kind of security upgrading method, device, server, equipment and medium
CN111857772A (en) * 2020-06-29 2020-10-30 湖南中联重科智能技术有限公司 Method and equipment for remote transmission and dynamic loading of terminal edge application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271914A1 (en) * 2005-05-27 2006-11-30 Niraj Gopal Method for supporting new network element software versions in an element management system without upgrading
CN102461198A (en) * 2009-06-05 2012-05-16 夏普株式会社 Software updating system, electronic devices, and software updating method
CN106201614A (en) * 2016-07-11 2016-12-07 天津中兴智联科技有限公司 A kind of universal method and system that multiple similar software can be carried out chain type upgrading
CN108566381A (en) * 2018-03-19 2018-09-21 百度在线网络技术(北京)有限公司 A kind of security upgrading method, device, server, equipment and medium
CN111857772A (en) * 2020-06-29 2020-10-30 湖南中联重科智能技术有限公司 Method and equipment for remote transmission and dynamic loading of terminal edge application program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116962376A (en) * 2023-09-20 2023-10-27 季华实验室 NB-IOT terminal upgrading method, device, electronic equipment and storage medium
CN116962376B (en) * 2023-09-20 2024-04-05 季华实验室 NB-IOT terminal upgrading method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112417379B (en) Cluster license management method and device, authorization server and storage medium
US9594909B2 (en) Software updating apparatus, software updating system, invalidation method, and invalidation program
US8707430B2 (en) Tampering monitoring system, management apparatus, and management method
US8516574B2 (en) Software update system, management apparatus, recording medium, and integrated circuit
CN109284585B (en) Script encryption method, script decryption operation method and related device
US20110246783A1 (en) Information processing device, management device, illegal module detection system, illegal module detection method, recording medium on which illegal module detection program is recorded, management method, recording medium and integrated circuit on which management method is recorded
CN110414248B (en) Method for debugging microprocessor and microprocessor
CN107294924B (en) Vulnerability detection method, device and system
CN110362984B (en) Method and device for operating service system by multiple devices
CN107066346B (en) Data backup method, data recovery method and device
CN110990124A (en) Cloud host recovery method and device
CN103403729A (en) Secure management and personalization of unique code signing keys
KR101097103B1 (en) Method and system for preventing outflow in software source code
US20060075401A1 (en) Patch installation control
CN111585995A (en) Method and device for transmitting and processing safety wind control information, computer equipment and storage medium
CN108256351B (en) File processing method and device, storage medium and terminal
CN112416407A (en) Software upgrading method, device, equipment and computer readable storage medium
CN109635522A (en) A kind of tamper resistant method and device of dynamic base
CN103368926A (en) Method for preventing file tampering and device for preventing file manipulation
CN111737747A (en) Database security method, device, equipment and computer storage medium
CN110837643B (en) Activation method and device of trusted execution environment
CN115118504B (en) Knowledge base updating method and device, electronic equipment and storage medium
CN111064723A (en) Over-the-air upgrading method and system based on backup system
CN111523128B (en) Information protection method, system, electronic equipment and medium
CN107911218A (en) A kind of firmware signature device, system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210226