CN111158717A - Firmware upgrading method, device and medium for device - Google Patents

Firmware upgrading method, device and medium for device Download PDF

Info

Publication number
CN111158717A
CN111158717A CN201911341912.4A CN201911341912A CN111158717A CN 111158717 A CN111158717 A CN 111158717A CN 201911341912 A CN201911341912 A CN 201911341912A CN 111158717 A CN111158717 A CN 111158717A
Authority
CN
China
Prior art keywords
target
firmware
upgrade
version information
identifier
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
CN201911341912.4A
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.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201911341912.4A priority Critical patent/CN111158717A/en
Publication of CN111158717A publication Critical patent/CN111158717A/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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Landscapes

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

Abstract

The embodiment of the invention discloses a firmware upgrading method of equipment, which comprises the following steps: acquiring an equipment identifier of target equipment as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier; and acquiring a corresponding target firmware upgrading package from the upgrading server according to the target firmware version information, and loading the target firmware upgrading package to upgrade the firmware of the target equipment. According to the embodiment of the invention, for different types of equipment, the corresponding firmware upgrading package needing upgrading can be automatically obtained from the server according to the equipment identification for upgrading, so that correct firmware upgrading can be ensured for different types of equipment, and the accuracy of firmware upgrading is improved. In addition, a firmware upgrade apparatus and a computer-readable storage medium are also provided.

Description

Firmware upgrading method, device and medium for device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for upgrading a firmware of an apparatus.
Background
With the development of network technology, various intelligent devices become more and more powerful, but at the same time, the functions of various devices also need to be updated or expanded frequently with the rapid development of technology, so that upgrading of the firmware of the devices is necessary. The firmware upgrading technology is also developed from upgrading by a replacement chip to downloading the latest firmware version from a server for upgrading.
However, because the types of the devices are different and the firmware updating speed is increased continuously, the server stores more versions of firmware upgrade packages, and for a certain type of device, relevant personnel need to manually select the firmware upgrade package of the latest version for upgrading, so that once an engineer neglects, the situation of installing the wrong firmware upgrade package is easy to occur. Therefore, the existing firmware upgrading method has the problems that the firmware upgrading package which is easy to select errors in the firmware version is determined manually, and the firmware upgrading accuracy is insufficient.
Disclosure of Invention
In view of the above, it is desirable to provide a device firmware upgrade method, device and medium capable of automatically acquiring a correct firmware upgrade package in view of the above problems.
A method of firmware upgrade of a device, the method comprising:
acquiring an equipment identifier of target equipment as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier;
and acquiring a corresponding target firmware upgrading package from the upgrading server according to the target firmware version information, and loading the target firmware upgrading package to upgrade the firmware of the target equipment.
In one embodiment, the acquiring an apparatus identifier of a target apparatus as a target identifier, and acquiring, from an upgrade server according to the target identifier, target firmware version information corresponding to the target identifier includes:
acquiring module identifications of a plurality of working modules included in the target equipment as target module identifications;
determining the target identification according to the target module identification of each working module;
and acquiring target firmware version information corresponding to the target identification from an upgrading server according to the target identification.
In one embodiment, the obtaining a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to perform firmware upgrade on the target device includes:
analyzing the target identification according to a preset analysis rule, and determining the target module identification of each working module included in the target equipment;
obtaining a module upgrading file corresponding to the target module identification of each working module from the upgrading server, and determining a target firmware upgrading package of the target equipment according to the module upgrading file;
and decompressing the target firmware upgrade package, and calling a firmware upgrade program to load the target firmware upgrade package so as to upgrade the firmware of the target equipment.
In one embodiment, before the obtaining, from the upgrade server, the target firmware version information corresponding to the target identifier according to the target identifier, the method further includes:
identifying the target identification;
the acquiring, from the upgrade server, the target firmware version information corresponding to the target identifier according to the target identifier includes:
if the target identification is successfully identified, acquiring target firmware version information corresponding to the target identification from the upgrading server according to the target identification;
and if the target identification fails to be identified, acquiring firmware version information input by a user as the target firmware version information.
In one embodiment, before the obtaining a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to perform firmware upgrade on the target device, the method further includes:
acquiring the current firmware version information of the target equipment;
comparing the current firmware version information with the target firmware version information to obtain a comparison result;
the acquiring a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target device includes:
and if the comparison result shows that the current firmware version information is inconsistent with the target firmware version information, executing the step of acquiring a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target equipment.
In one embodiment, the acquiring an apparatus identifier of a target apparatus as a target identifier, and acquiring, from an upgrade server according to the target identifier, target firmware version information corresponding to the target identifier includes:
encrypting the target identification through a preset encryption algorithm, and sending the encrypted target identification to the upgrade server so that the upgrade server decrypts and identifies the encrypted target identification through a preset decryption algorithm;
and receiving target firmware version information which is sent by the upgrade server and corresponds to the target identification.
In one embodiment, before the obtaining the device identifier of the target device as the target identifier and obtaining the target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, the method further includes:
acquiring a configuration file of target equipment, and determining the equipment state of the target equipment according to the configuration file of the target equipment;
and when the equipment state of the target equipment is factory new installation, configuring the working environment of the target equipment.
In one embodiment, the method further comprises:
collecting target fingerprint data and a target face image input by a user;
inputting the target fingerprint data and the target face image into an identification model to obtain a target feature vector corresponding to the target fingerprint data and the target face image, and verifying the target feature vector according to a user database so as to verify the identity of a user
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring an equipment identifier of target equipment as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier;
and acquiring a corresponding target firmware upgrading package from the upgrading server according to the target firmware version information, and loading the target firmware upgrading package to upgrade the firmware of the target equipment.
A firmware upgrade apparatus comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
acquiring an equipment identifier of target equipment as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier;
and acquiring a corresponding target firmware upgrading package from the upgrading server according to the target firmware version information, and loading the target firmware upgrading package to upgrade the firmware of the target equipment.
The embodiment of the invention provides a firmware upgrading method of equipment, which comprises the steps of obtaining an equipment identifier, such as an equipment ID, of target equipment, and obtaining corresponding target firmware version information from an upgrading server according to the obtained equipment identifier; and finally, acquiring a needed firmware upgrading package from the upgrading server according to the target firmware version information, thereby upgrading the target equipment. According to the embodiment of the invention, for different types of equipment, the corresponding firmware upgrading package needing upgrading can be automatically obtained from the server according to the equipment identification for upgrading, so that correct firmware upgrading can be ensured for different types of equipment, and the accuracy of firmware upgrading is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flowchart illustrating a firmware upgrade method for a device according to an embodiment;
FIG. 2 is a flowchart illustrating obtaining target firmware version information according to one embodiment;
FIG. 3 is a flowchart illustrating loading of a target firmware upgrade package for firmware upgrade in an embodiment;
FIG. 4 is a flowchart illustrating another embodiment of obtaining target firmware version information;
fig. 5 is a block diagram showing a configuration of a firmware upgrading apparatus according to an embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
In this embodiment, a firmware upgrading method for a device is provided, which may be applied to firmware upgrading of financial self-service devices, may also be applied to firmware upgrading of mobile phone terminals, and may also be applied to firmware upgrading of other devices. As shown in fig. 1, the method specifically comprises the following steps:
and 102, acquiring a device identifier of the target device as a target identifier, and acquiring target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier.
The device identifier is an identity identifier of the device, and the model, the manufacturer information and the like of the target device can be determined through the device identifier. For example, the device identification may be a device id (identity document).
The firmware version information refers to a version identification number of the firmware, and the equipment has uniquely determined firmware version information after each firmware upgrade. The target firmware version information is firmware version information that the target device needs to update currently, and generally, in order to ensure the working efficiency of the target device, it is necessary to ensure that the firmware version information of the target device is the latest firmware version, and certainly, the firmware version information may also be other firmware versions with higher processing efficiency.
And step 104, acquiring a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target equipment.
The target firmware upgrade package is used for upgrading the firmware version of the target device to the firmware version needing upgrading. In the upgrading server, the target firmware version information corresponds to the target firmware upgrading packages one by one, and the target firmware version information is used as an index to acquire the required target firmware upgrading packages to upgrade the firmware of the target equipment.
The firmware upgrading method of the equipment acquires the equipment identification of the target equipment and acquires corresponding target firmware version information from an upgrading server according to the acquired equipment identification; and finally, acquiring a needed firmware upgrading package from the upgrading server according to the target firmware version information, thereby upgrading the target equipment. According to the embodiment of the invention, for different types of equipment, the corresponding firmware upgrading package needing upgrading can be automatically obtained from the server according to the equipment identification for upgrading, so that correct firmware upgrading can be ensured for different types of equipment, and the accuracy of firmware upgrading is improved.
In one embodiment, as shown in fig. 2, the step 102 of obtaining a device identifier of a target device as a target identifier, and obtaining target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier includes:
step 102A, module identifiers of a plurality of working modules included in the target device are acquired as target module identifiers.
The module identification refers to the identity of the working module. The target device includes a plurality of working modules cooperating with each other, for example, in an ATM (Automatic Teller Machine) device, the ATM device includes a temporary storage module, a customer receiving module, and the like, and each working module in the same target device has a uniquely determined module identifier. And acquiring the module identification of each working module for determining the equipment identification of the target equipment.
And step 102B, determining a target identifier according to the target module identifier of each working module.
The target identifier is determined by all the target module identifiers together, and in one embodiment, the determination manner of the target identifier is to combine all the target module identifiers according to a preset combination rule. The preset combination rule may be that the target module identifiers are combined according to a preset combination sequence, or the feature identification codes of the extracted target module identifiers are combined according to a certain sequence.
And step 102C, acquiring target firmware version information corresponding to the target identification from the upgrading server according to the target identification.
According to the embodiment of the invention, the target module identifications corresponding to the working modules in the target equipment are combined to obtain the target identifications, and the corresponding target firmware version information is obtained from the upgrading server according to the target identifications, so that the target firmware version information of the target equipment is determined through the module identifications.
In an embodiment, as shown in fig. 3, step 104 obtains a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loads the target firmware upgrade package to perform firmware upgrade on the target device, where the method includes:
and 104A, analyzing the target identification according to a preset analysis rule, and determining the target module identification of each working module included in the target equipment.
Each target module identifier is not changed after being combined and analyzed, so it can be understood that the process of analyzing the target identifier according to the preset analysis rule can be regarded as an inverse process of combining the target module identifiers according to the preset combination rule, and the processing logics between the preset analysis rule and the preset combination rule are mutually associated.
And step 104B, acquiring a module upgrading file corresponding to the target module identification of each working module from the upgrading server, and determining a target firmware upgrading package of the target equipment according to the module upgrading file.
The module upgrade file is used for upgrading the corresponding module program to the version needing to be upgraded, usually the latest version. The upgrading server stores the module upgrading file corresponding to each working module, and also stores the corresponding relation between the target module identification and the module upgrading file, queries the corresponding module upgrading file by taking the target module identification of each working module as an index, downloads all the queried module upgrading files, and integrates and compresses all the obtained module upgrading files to obtain the required target firmware upgrading package.
And step 104C, decompressing the target firmware upgrade package, and calling a firmware upgrade program to load the target firmware upgrade package so as to upgrade the firmware of the target equipment.
And decompressing the acquired target firmware upgrade package, and copying the target firmware upgrade package to an upgrade designated path of the equipment. When the firmware upgrading program is detected to exist on the specified path of the equipment, the firmware upgrading program can be called to load the firmware upgrading file to start firmware upgrading, which indicates that the firmware upgrading file is configured to be completed. The copy target firmware upgrade package is used for ensuring that when the firmware upgrade has a problem, the device can still keep the undamaged firmware upgrade file, so that the secondary firmware upgrade is convenient.
According to the embodiment of the invention, the target module identification is obtained by analyzing the target identification, and the corresponding module upgrading file is obtained from the upgrading server, so that the firmware upgrading package is obtained to upgrade the target equipment, and the correct firmware upgrading package is obtained according to the target module identification and is used for firmware upgrading.
In one embodiment, before the step 102C obtains the target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, the method further includes:
and identifying the target identification.
Specifically, whether the target identifier belongs to the device identifier which is stored in the upgrade server and has a corresponding relationship with the target firmware version information is identified. And judging whether the target equipment can automatically select correct target firmware version information according to the identification result.
Step 102C, acquiring target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, including:
and if the target identification is successfully identified, acquiring target firmware version information corresponding to the target identification from the upgrading server according to the target identification.
If the target identifier is successfully identified, it indicates that the corresponding relationship between the target identifier and the target firmware version information is stored in the upgrade server, and correct target firmware version information can be automatically acquired according to the target identifier.
And if the target identification fails to be identified, acquiring the firmware version information input by the user as the target firmware version information.
If the target identification fails to be identified, it is indicated that the corresponding relation related to the target identification does not exist in the upgrade server, and appropriate target firmware version information needs to be manually selected.
According to the embodiment of the invention, by identifying the target identifier, whether the target equipment can automatically acquire the correct target firmware version information can be determined, and corresponding feedback is made, so that the correct target firmware version information can be acquired under different equipment identifiers.
In an embodiment, before acquiring a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information and loading the target firmware upgrade package to perform firmware upgrade on the target device in step 104, the method further includes:
and acquiring the current firmware version information of the target equipment.
And comparing the current firmware version information with the target firmware version information to obtain a comparison result.
Since the target firmware version information is the most suitable firmware version information of the target device at present, whether the firmware of the target device needs to be upgraded can be judged by comparing the current firmware version information with the target firmware version information.
Step 104, according to the target firmware version information, acquiring a corresponding target firmware upgrade package from the upgrade server, and loading the target firmware upgrade package to upgrade the firmware of the target device, including:
and if the comparison result shows that the current firmware version information is inconsistent with the target firmware version information, executing the step of acquiring a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target equipment.
And if the current firmware version information is inconsistent with the target firmware version information, which indicates that the current firmware version information is not the most appropriate firmware version information, confirming that the target equipment is subjected to firmware upgrading. And if the current firmware version information is consistent with the target firmware version information, confirming that the target equipment is not subjected to firmware upgrading.
According to the embodiment of the invention, the current firmware version information is compared with the target firmware version information, so that whether the target equipment needs firmware upgrading is confirmed.
In one embodiment, as shown in fig. 4, the step 102 of obtaining a device identifier of a target device as a target identifier, and obtaining target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier includes:
and 1021, encrypting the target identifier through a preset encryption algorithm, and sending the encrypted target identifier to the upgrade server so that the upgrade server decrypts and identifies the encrypted target identifier through a preset decryption algorithm.
Specifically, in the process of sending the target identifier to the upgrade server, the embodiment of the present invention further performs operations of encrypting and decrypting the target identifier. It can be understood that the encryption algorithm and the decryption algorithm may adopt RSA algorithm (RSAalgorithm), and the encrypted target identifier can be identified only by decryption in the upgrade server, thereby ensuring the security of the target identifier in the information transmission process.
And step 1022, receiving the target firmware version information corresponding to the target identifier sent by the upgrade server.
And when the upgrading server successfully decrypts the encrypted target identifier and inquires corresponding target firmware version information according to the target identifier, the upgrading server sends the target firmware version information to the requested target equipment.
According to the embodiment of the invention, the target identification is encrypted and decrypted in the process of being sent to the upgrading server, so that the safety of information transmission between the target equipment and the upgrading server is ensured, and information leakage is avoided.
In one embodiment, before acquiring the device identifier of the target device as the target identifier in step 102 and acquiring the target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, the method further includes:
and acquiring a configuration file of the target equipment, and determining the equipment state of the target equipment according to the configuration file of the target equipment.
The target equipment can be divided into a factory new installation machine and an external use machine according to the equipment state, and the difference between the factory new installation machine and the external use machine is that the factory new installation machine is not configured with a working environment, and the external use machine is configured with a working environment. Specifically, the device state of the target device is determined by obtaining the device state parameters in the configuration file. For example, the device status parameter corresponding to the factory new installation is "0", and the device status parameter corresponding to the external use machine is "1".
And when the equipment state of the target equipment is factory new installation, configuring the working environment of the target equipment.
Specifically, the configuration of the working environment of the target device is realized by acquiring the system bit width of the operating system of the target device and selecting and installing matched device drivers, service drivers and system services according to the system bit width. And when the operation is completed, restarting the operating system and determining the device state of the target device again so as to ensure that the working environment of the target device is configured.
According to the embodiment of the invention, the equipment state of the equipment is determined according to the configuration file of the equipment, and the working environment of the equipment is configured according to the equipment state, so that the working environment of the equipment is ensured to be configured.
In an embodiment, the firmware upgrading method of the above device further includes:
target fingerprint data input by a user and a target face image are collected.
Specifically, when the target device detects that the user is ready to upgrade the firmware, the fingerprint data and the facial image input by the user can be collected and collected by the facial image collecting device and the fingerprint collecting device for identity recognition. It can be understood that the authentication is to ensure that the target device is not illegally operated by a user, which is not allowed, so the user authentication may be set before the device operating environment is configured, or may be set before the target firmware upgrade package is acquired, and once the authentication fails, the next step is no longer allowed.
And inputting the target fingerprint data and the target face image into the identification model to obtain a target feature vector corresponding to the target fingerprint data and the target face image, and verifying the target feature vector according to the user database so as to verify the identity of the user.
Specifically, target fingerprint data and a target face image are input into a feature recognition model which is trained in advance to obtain target feature vectors corresponding to the target fingerprint data and the target face image, the target feature vectors are matched with all feature vectors of a feature vector set in a database, and when the target feature vectors are matched with the feature vectors which are larger than a preset threshold value, user identity verification is passed, and the user is an engineer who is allowed to upgrade firmware.
According to the firmware upgrading method of the equipment, the target characteristic vector is obtained by collecting the target fingerprint data and the target face image input by the user and is matched with the characteristic vector in the database to verify the identity of the user, so that the target equipment is prevented from being illegally operated by other users except professional engineers.
Fig. 5 shows an internal configuration diagram of the firmware upgrade apparatus in one embodiment. As shown in fig. 5, the firmware upgrade apparatus includes a processor, a memory, and a network interface connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the firmware upgrading device stores an operating system and also stores a computer program, and when the computer program is executed by a processor, the computer program can enable the processor to realize the firmware upgrading method of the device. The internal memory may also store a computer program, which when executed by the processor, causes the processor to perform a method for upgrading firmware of the device. It will be appreciated by those skilled in the art that the architecture shown in fig. 5 is a block diagram of only a portion of the architecture associated with the subject application and does not constitute a limitation on the firmware upgrade apparatus to which the subject application is applied, and that a particular firmware upgrade apparatus may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
A firmware upgrade apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a device identifier of target equipment as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier; and acquiring a corresponding target firmware upgrading package from the upgrading server according to the target firmware version information, and loading the target firmware upgrading package to upgrade the firmware of the target equipment.
In one embodiment, acquiring a device identifier of a target device as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier includes: acquiring module identifications of a plurality of working modules included by target equipment as target module identifications; determining a target identifier according to the target module identifier of each working module; and acquiring target firmware version information corresponding to the target identifier from the upgrading server according to the target identifier.
In one embodiment, acquiring a corresponding target firmware upgrade package from an upgrade server according to target firmware version information, and loading the target firmware upgrade package to perform firmware upgrade on a target device, includes: analyzing the target identification according to a preset analysis rule, and determining the target module identification of each working module included in the target equipment; obtaining a module upgrading file corresponding to the target module identification of each working module from an upgrading server, and determining a target firmware upgrading package of target equipment according to the module upgrading file; and decompressing the target firmware upgrade package, and calling a firmware upgrade program to load the target firmware upgrade package so as to upgrade the firmware of the target equipment.
In one embodiment, before obtaining the target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, the method further includes: identifying a target identifier; acquiring target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, wherein the target firmware version information comprises the following steps: if the target identification is successfully identified, acquiring target firmware version information corresponding to the target identification from the upgrading server according to the target identification; and if the target identification fails to be identified, acquiring the firmware version information input by the user as the target firmware version information.
In one embodiment, before acquiring a corresponding target firmware upgrade package from an upgrade server according to target firmware version information and loading the target firmware upgrade package to perform firmware upgrade on a target device, the method further includes: acquiring current firmware version information of target equipment; comparing the current firmware version information with the target firmware version information to obtain a comparison result; acquiring a corresponding target firmware upgrade package from an upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target equipment, wherein the method comprises the following steps: and if the comparison result shows that the current firmware version information is inconsistent with the target firmware version information, executing the step of acquiring a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target equipment.
In one embodiment, acquiring a device identifier of a target device as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier includes: encrypting the target identification through a preset encryption algorithm, and sending the encrypted target identification to an upgrade server so that the upgrade server decrypts and identifies the encrypted target identification through a preset decryption algorithm; and receiving target firmware version information which is sent by the upgrade server and corresponds to the target identification.
In one embodiment, before obtaining the device identifier of the target device as the target identifier and obtaining the target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, the method further includes: acquiring a configuration file of target equipment, and determining the equipment state of the target equipment according to the configuration file of the target equipment; and when the equipment state of the target equipment is factory new installation, configuring the working environment of the target equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: collecting target fingerprint data and a target face image input by a user; and inputting the target fingerprint data and the target face image into the identification model to obtain a target feature vector corresponding to the target fingerprint data and the target face image, and verifying the target feature vector according to the user database so as to verify the identity of the user.
A computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, performs the steps of: acquiring a device identifier of target equipment as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier; and acquiring a corresponding target firmware upgrading package from the upgrading server according to the target firmware version information, and loading the target firmware upgrading package to upgrade the firmware of the target equipment.
In one embodiment, acquiring a device identifier of a target device as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier includes: acquiring module identifications of a plurality of working modules included by target equipment as target module identifications; determining a target identifier according to the target module identifier of each working module; and acquiring target firmware version information corresponding to the target identifier from the upgrading server according to the target identifier.
In one embodiment, acquiring a corresponding target firmware upgrade package from an upgrade server according to target firmware version information, and loading the target firmware upgrade package to perform firmware upgrade on a target device, includes: analyzing the target identification according to a preset analysis rule, and determining the target module identification of each working module included in the target equipment; obtaining a module upgrading file corresponding to the target module identification of each working module from an upgrading server, and determining a target firmware upgrading package of target equipment according to the module upgrading file; and decompressing the target firmware upgrade package, and calling a firmware upgrade program to load the target firmware upgrade package so as to upgrade the firmware of the target equipment.
In one embodiment, before obtaining the target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, the method further includes: identifying a target identifier; acquiring target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, wherein the target firmware version information comprises the following steps: if the target identification is successfully identified, acquiring target firmware version information corresponding to the target identification from the upgrading server according to the target identification; and if the target identification fails to be identified, acquiring the firmware version information input by the user as the target firmware version information.
In one embodiment, before acquiring a corresponding target firmware upgrade package from an upgrade server according to target firmware version information and loading the target firmware upgrade package to perform firmware upgrade on a target device, the method further includes: acquiring current firmware version information of target equipment; comparing the current firmware version information with the target firmware version information to obtain a comparison result; acquiring a corresponding target firmware upgrade package from an upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target equipment, wherein the method comprises the following steps: and if the comparison result shows that the current firmware version information is inconsistent with the target firmware version information, executing the step of acquiring a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target equipment.
In one embodiment, acquiring a device identifier of a target device as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier includes: encrypting the target identification through a preset encryption algorithm, and sending the encrypted target identification to an upgrade server so that the upgrade server decrypts and identifies the encrypted target identification through a preset decryption algorithm; and receiving target firmware version information which is sent by the upgrade server and corresponds to the target identification.
In one embodiment, before obtaining the device identifier of the target device as the target identifier and obtaining the target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier, the method further includes: acquiring a configuration file of target equipment, and determining the equipment state of the target equipment according to the configuration file of the target equipment; and when the equipment state of the target equipment is factory new installation, configuring the working environment of the target equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: collecting target fingerprint data and a target face image input by a user; and inputting the target fingerprint data and the target face image into the identification model to obtain a target feature vector corresponding to the target fingerprint data and the target face image, and verifying the target feature vector according to the user database so as to verify the identity of the user.
It should be noted that the method for upgrading the firmware of the device, the device and the computer-readable storage medium belong to a general inventive concept, and the contents in the embodiments of the method for upgrading the firmware of the device, the device and the computer-readable storage medium are mutually applicable.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for firmware upgrade of a device, the method comprising:
acquiring an equipment identifier of target equipment as a target identifier, and acquiring target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier;
and acquiring a corresponding target firmware upgrading package from the upgrading server according to the target firmware version information, and loading the target firmware upgrading package to upgrade the firmware of the target equipment.
2. The method of claim 1, wherein the obtaining of the device identifier of the target device as the target identifier and obtaining of the target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier comprises:
acquiring module identifications of a plurality of working modules included in the target equipment as target module identifications;
determining the target identification according to the target module identification of each working module;
and acquiring target firmware version information corresponding to the target identification from an upgrading server according to the target identification.
3. The method according to claim 2, wherein the obtaining a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to perform firmware upgrade on the target device includes:
analyzing the target identification according to a preset analysis rule, and determining the target module identification of each working module included in the target equipment;
obtaining a module upgrading file corresponding to the target module identification of each working module from the upgrading server, and determining a target firmware upgrading package of the target equipment according to the module upgrading file;
and decompressing the target firmware upgrade package, and calling a firmware upgrade program to load the target firmware upgrade package so as to upgrade the firmware of the target equipment.
4. The method of claim 2, before the obtaining target firmware version information corresponding to the target identifier from an upgrade server according to the target identifier, further comprising:
identifying the target identification;
the acquiring, from the upgrade server, the target firmware version information corresponding to the target identifier according to the target identifier includes:
if the target identification is successfully identified, acquiring target firmware version information corresponding to the target identification from the upgrading server according to the target identification;
and if the target identification fails to be identified, acquiring firmware version information input by a user as the target firmware version information.
5. The method according to claim 1, before the obtaining a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to perform firmware upgrade on the target device, further comprising:
acquiring the current firmware version information of the target equipment;
comparing the current firmware version information with the target firmware version information to obtain a comparison result;
the acquiring a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target device includes:
and if the comparison result shows that the current firmware version information is inconsistent with the target firmware version information, executing the step of acquiring a corresponding target firmware upgrade package from the upgrade server according to the target firmware version information, and loading the target firmware upgrade package to upgrade the firmware of the target equipment.
6. The method of claim 1, wherein the obtaining of the device identifier of the target device as the target identifier and obtaining of the target firmware version information corresponding to the target identifier from the upgrade server according to the target identifier comprises:
encrypting the target identification through a preset encryption algorithm, and sending the encrypted target identification to the upgrade server so that the upgrade server decrypts and identifies the encrypted target identification through a preset decryption algorithm;
and receiving target firmware version information which is sent by the upgrade server and corresponds to the target identification.
7. The method according to claim 1, before the obtaining, as the target identifier, the device identifier of the target device and obtaining, from the upgrade server, the target firmware version information corresponding to the target identifier according to the target identifier, further comprising:
acquiring a configuration file of target equipment, and determining the equipment state of the target equipment according to the configuration file of the target equipment;
and when the equipment state of the target equipment is factory new installation, configuring the working environment of the target equipment.
8. The method of claim 1, further comprising:
collecting target fingerprint data and a target face image input by a user;
and inputting the target fingerprint data and the target face image into an identification model to obtain a target feature vector corresponding to the target fingerprint data and the target face image, and verifying the target feature vector according to a user database so as to verify the identity of the user.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 8.
10. A firmware upgrade apparatus comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 8.
CN201911341912.4A 2019-12-24 2019-12-24 Firmware upgrading method, device and medium for device Pending CN111158717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911341912.4A CN111158717A (en) 2019-12-24 2019-12-24 Firmware upgrading method, device and medium for device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911341912.4A CN111158717A (en) 2019-12-24 2019-12-24 Firmware upgrading method, device and medium for device

Publications (1)

Publication Number Publication Date
CN111158717A true CN111158717A (en) 2020-05-15

Family

ID=70558174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911341912.4A Pending CN111158717A (en) 2019-12-24 2019-12-24 Firmware upgrading method, device and medium for device

Country Status (1)

Country Link
CN (1) CN111158717A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880823A (en) * 2020-07-17 2020-11-03 合肥移瑞通信技术有限公司 Method, system and medium for system upgrading communication module, computer equipment
CN112000346A (en) * 2020-07-22 2020-11-27 西安广和通无线软件有限公司 File upgrading method and device, computer equipment and storage medium
CN112040320A (en) * 2020-08-31 2020-12-04 北京奇艺世纪科技有限公司 Television fruit application upgrading method and device
CN112269584A (en) * 2020-10-19 2021-01-26 苏州浪潮智能科技有限公司 PCIe Switch firmware updating method, device, electronic equipment and medium
CN112769565A (en) * 2021-01-15 2021-05-07 中国工商银行股份有限公司 Method and device for upgrading cryptographic algorithm, computing equipment and medium
CN113806390A (en) * 2020-06-16 2021-12-17 西安诺瓦星云科技股份有限公司 LED box management method, device and system
CN113986288A (en) * 2021-10-25 2022-01-28 康佳集团股份有限公司 Firmware switching method and device, communication module, terminal and storage medium
CN114115978A (en) * 2021-11-12 2022-03-01 苏州浪潮智能科技有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN114500280A (en) * 2022-01-06 2022-05-13 新华三信息技术有限公司 Firmware upgrading method and device and computer readable storage medium
CN114968294A (en) * 2021-02-26 2022-08-30 深圳怡化电脑科技有限公司 Firmware upgrading method and device for equipment, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834537A (en) * 2014-12-30 2015-08-12 沈阳东软医疗系统有限公司 Data processing method, server and client
CN106557339A (en) * 2015-09-28 2017-04-05 腾讯科技(深圳)有限公司 The upgrade method and device of equipment firmware
CN106657233A (en) * 2016-09-29 2017-05-10 Tcl商用信息科技(惠州)股份有限公司 Method and system for upgrading display firmware
CN106708544A (en) * 2015-08-13 2017-05-24 中兴通讯股份有限公司 Method and apparatus for assisting in firmware upgrading of electronic devices, and terminal
CN107194242A (en) * 2017-03-30 2017-09-22 百富计算机技术(深圳)有限公司 Firmware upgrade method and device
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834537A (en) * 2014-12-30 2015-08-12 沈阳东软医疗系统有限公司 Data processing method, server and client
CN106708544A (en) * 2015-08-13 2017-05-24 中兴通讯股份有限公司 Method and apparatus for assisting in firmware upgrading of electronic devices, and terminal
CN106557339A (en) * 2015-09-28 2017-04-05 腾讯科技(深圳)有限公司 The upgrade method and device of equipment firmware
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN106657233A (en) * 2016-09-29 2017-05-10 Tcl商用信息科技(惠州)股份有限公司 Method and system for upgrading display firmware
CN107194242A (en) * 2017-03-30 2017-09-22 百富计算机技术(深圳)有限公司 Firmware upgrade method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806390A (en) * 2020-06-16 2021-12-17 西安诺瓦星云科技股份有限公司 LED box management method, device and system
CN111880823A (en) * 2020-07-17 2020-11-03 合肥移瑞通信技术有限公司 Method, system and medium for system upgrading communication module, computer equipment
CN111880823B (en) * 2020-07-17 2024-01-30 合肥移瑞通信技术有限公司 Method, system and medium for upgrading communication module by system and computer equipment
CN112000346A (en) * 2020-07-22 2020-11-27 西安广和通无线软件有限公司 File upgrading method and device, computer equipment and storage medium
CN112000346B (en) * 2020-07-22 2023-12-29 西安广和通无线软件有限公司 File upgrading method, device, computer equipment and storage medium
CN112040320A (en) * 2020-08-31 2020-12-04 北京奇艺世纪科技有限公司 Television fruit application upgrading method and device
CN112040320B (en) * 2020-08-31 2022-06-03 北京奇艺世纪科技有限公司 Television fruit application upgrading method and device
CN112269584A (en) * 2020-10-19 2021-01-26 苏州浪潮智能科技有限公司 PCIe Switch firmware updating method, device, electronic equipment and medium
CN112769565A (en) * 2021-01-15 2021-05-07 中国工商银行股份有限公司 Method and device for upgrading cryptographic algorithm, computing equipment and medium
CN112769565B (en) * 2021-01-15 2022-12-23 中国工商银行股份有限公司 Method, device, computing equipment and medium for upgrading cryptographic algorithm
CN114968294A (en) * 2021-02-26 2022-08-30 深圳怡化电脑科技有限公司 Firmware upgrading method and device for equipment, electronic equipment and storage medium
CN113986288A (en) * 2021-10-25 2022-01-28 康佳集团股份有限公司 Firmware switching method and device, communication module, terminal and storage medium
CN114115978B (en) * 2021-11-12 2023-11-03 苏州浪潮智能科技有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN114115978A (en) * 2021-11-12 2022-03-01 苏州浪潮智能科技有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN114500280B (en) * 2022-01-06 2023-12-26 新华三信息技术有限公司 Firmware upgrading method and device and computer readable storage medium
CN114500280A (en) * 2022-01-06 2022-05-13 新华三信息技术有限公司 Firmware upgrading method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111158717A (en) Firmware upgrading method, device and medium for device
CN110460571B (en) Business system vulnerability processing method and device, computer equipment and storage medium
CN110365670B (en) Blacklist sharing method and device, computer equipment and storage medium
CN109788032B (en) Method and device for acquiring mirror image file, computer equipment and storage medium
CN110633160A (en) Interface calling method and device, computer equipment and storage medium
CN109144519B (en) Generation method and device of upgrade package, computer equipment and storage medium
CN109684347B (en) Account checking method, account checking device, computer equipment and storage medium
CN106991326A (en) The upgrade method and its equipment of a kind of equipment firmware
CN111666081A (en) Project version release method, device, equipment and medium based on Git
EP2696531A1 (en) Initialization of embedded secure elements
CN110224855B (en) Registration method and device of micro service instance, computer equipment and storage medium
CN113330419B (en) Equipment application installation method, device, equipment and storage medium
CN110727949B (en) Data storage method and device, computer equipment and storage medium
CN110650186A (en) Interface calling method and device, computer equipment and storage medium
US20170109546A1 (en) Securing of the loading of data into a nonvolatile memory of a secure element
CN110688661A (en) Method and device for preventing dynamic link library file hijacking and computer equipment
CN107239299B (en) Plug-in upgrading method and device
CN110619208A (en) User authentication method, server, user equipment and system
CN108510239B (en) Employee information management method, employee information management device, computer equipment and storage medium
CN115543429A (en) Project environment building method, electronic equipment and computer readable storage medium
CN114143197A (en) OTA (over the air) upgrading method, device and equipment of Internet of things equipment and readable storage medium
CN108710549B (en) Method and device for ensuring stability of fingerprint data
CN110674511A (en) Offline data protection method and system based on elliptic curve encryption algorithm
CN115510366A (en) Business message pushing method and device, computer equipment and storage medium
CN109766084A (en) Pay customized development method, apparatus, computer equipment and the storage medium of application

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: 20200515