CN105159718B - Firmware upgrade method and device - Google Patents

Firmware upgrade method and device Download PDF

Info

Publication number
CN105159718B
CN105159718B CN201510559988.XA CN201510559988A CN105159718B CN 105159718 B CN105159718 B CN 105159718B CN 201510559988 A CN201510559988 A CN 201510559988A CN 105159718 B CN105159718 B CN 105159718B
Authority
CN
China
Prior art keywords
upgrading
current
software
matching relationship
version number
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.)
Active
Application number
CN201510559988.XA
Other languages
Chinese (zh)
Other versions
CN105159718A (en
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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Hangzhou Huawei Digital Technologies 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 Hangzhou Huawei Digital Technologies Co Ltd filed Critical Hangzhou Huawei Digital Technologies Co Ltd
Priority to CN201510559988.XA priority Critical patent/CN105159718B/en
Publication of CN105159718A publication Critical patent/CN105159718A/en
Application granted granted Critical
Publication of CN105159718B publication Critical patent/CN105159718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of firmware upgrade method and devices, belong to technical field of electronic equipment.The method includes:Based on software upgrade package, software is upgraded, the firmware FW Matching Relationship that the software upgrade package includes at least software describes file, FW ascending series accordingly and FW upgrading tool;After to the software upgrade success, the version number of current FW is obtained;According to the software information after the version number of the current FW and upgrading, file is described by inquiring the FW Matching Relationship, whether the software after judging the current FW version and the upgrading meets Matching Relationship;When software after the current FW version and the upgrading does not meet Matching Relationship, the FW upgrading data and the FW upgrading tool is called to upgrade the current FW.The present invention can automatic identification which FW need to upgrade, and carry out escalation process automatically, be not necessarily to manpower intervention, can reduce FW upgrading complexity, shorten FW update time.

Description

Firmware upgrade method and device
Technical field
The present invention relates to technical field of electronic equipment, in particular to a kind of firmware upgrade method and device.
Background technique
As the development speed of electronic device technology is increasingly accelerated, software upgrading speed is also getting faster, and due to some Updated software can only be compatible with the indicated release of certain FW (Firmware, firmware), when updated software and current electricity When the FW incompatible version of sub- equipment, it may result in many unpredictable problems, therefore, after software upgrading, it is also necessary to Incompatible FW is upgraded.
Currently, the upgrading of FW is mostly by manually implemented, specific method can be:After software upgrading, manual queries are current The FW version number of electronic equipment, and according to software supplier publication《Software and hardware version matching table》, check current FW version Number with upgrading after software version whether meet Matching Relationship;If current FW is not matched with the software after upgrading, basis《It is soft The mating table of hardware version》, from the FW liter on the website of the electronic equipment production firm in downloading with the software compatibility after the upgrading Grade packet and FW upgrading tool;The hardware that FW upgrade package needs to upgrade into electronic equipment is uploaded, according to specified upgrade method, is used FW upgrading tool upgrades FW;After the completion of upgrading, according still further to《Software and hardware version matching table》It checks whether current FW version meets to match Set relationship, if meeting, FW upgrading is completed, if not meeting, re-executes above-mentioned steps.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
Firstly, the Matching Relationship between software after software upgrading, after needing the current FW version of artificial judgment and the upgrading Whether meet the requirements, is easy error;Secondly, needing to download upgrade package and liter manually when software and current FW incompatible version Grade tool is upgraded, and operation complexity is high.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of firmware upgrade method and devices.It is described Technical solution is as follows:
On the one hand, a kind of firmware upgrade method is provided, the method includes:
Based on software upgrade package, software is upgraded, which includes at least the mating pass firmware FW of software System's description file, FW ascending series are accordingly and FW upgrading tool, the FW Matching Relationship describe file and include the software information after upgrading And corresponding FW version number;
After to the software upgrade success, the version number of current FW is obtained;
According to the software information after the version number of the current FW and upgrading, file is described by inquiring the FW Matching Relationship, Whether the software after judging the current FW version and the upgrading meets Matching Relationship;
When software after the current FW version and the upgrading does not meet Matching Relationship, FW upgrading data and the FW are called Upgrading tool upgrades the current FW.
In the first possible implementation of the first aspect of the present invention, which further includes specified hardware letter Breath;
Correspondingly, after to the software upgrade success, the version number for obtaining the current FW includes:
Hardware information is specified according to this, is judged with the presence or absence of specified hardware in current electronic device, it should if it does, obtaining Specified hardware corresponds to the version number of FW.
In second of possible implementation of the first aspect of the present invention, it includes the liter which, which describes file, Software information after grade and the FW version number with the Software-Coincidence Matching Relationship after the upgrading;Or, the FW Matching Relationship describes File includes software information after the upgrading and does not meet the FW version number of Matching Relationship with the software after the upgrading.
In the third possible implementation of the first aspect of the present invention, it should be obtained after to the software upgrade success The version number of current FW, including:
According to the hardware information of the current FW, judge whether the version for needing to call hardware driving interface to obtain the current FW Number;
When needing that corresponding driving interface is called to obtain the version number of current FW, hardware driving interface acquisition is called to deserve The version number of preceding FW;
When the version number for not needing that corresponding driving interface is called to obtain current FW, deserved by FW upgrading tool acquisition The version number of preceding FW.
In the 4th kind of possible implementation of the first aspect of the present invention, the calling FW upgrades data and FW upgrades work After tool upgrades the current FW, this method further includes:
When the current FW is upgraded successfully, the reminder message upgraded successfully is shown;
When the current FW upgrading failure, the reminder message of display upgrading failure.
On the other hand, a kind of device for upgrading firmware is provided, described device includes:
Software upgrade module upgrades software, which includes at least soft for being based on software upgrade package The firmware FW Matching Relationship of part describes file, FW ascending series accordingly and FW upgrading tool, the FW Matching Relationship describe file and include Software information and corresponding FW version number after upgrading;
Module is obtained, for obtaining the version number of current FW after to the software upgrade success;
Judgment module, it is mating by inquiring the FW for according to the software information after the version number of the current FW and upgrading Whether relationship description file, the software after judging the current FW version and the upgrading meet Matching Relationship;
FW upgraded module, when not meeting Matching Relationship for the software after the current FW version and the upgrading, calling should FW upgrading data and the FW upgrading tool upgrade the current FW.
In the first possible implementation of the second aspect of the present invention, which further includes specified hardware letter Breath;
Correspondingly, which is used for:Hardware information is specified according to this, is judged in current electronic device with the presence or absence of finger Hardware is determined, if it does, obtaining the version number that the specified hardware corresponds to FW.
In second of possible implementation of the second aspect of the present invention, it includes the liter which, which describes file, Software information after grade and the FW version number with the Software-Coincidence Matching Relationship after the upgrading;Or, the FW Matching Relationship describes File includes software information after the upgrading and does not meet the FW version number of Matching Relationship with the software after the upgrading.
In the third possible implementation of the second aspect of the present invention, which is used for:
According to the hardware information of the current FW, judge whether the version for needing to call hardware driving interface to obtain the current FW Number;When needing that corresponding driving interface is called to obtain the version number of current FW, the hardware driving interface is called to obtain the current FW Version number;When the version number for not needing that corresponding driving interface is called to obtain current FW, being obtained by the FW upgrading tool should The version number of current FW.
In the 4th kind of possible implementation of the second aspect of the present invention, which further includes:
Display module, for showing the reminder message upgraded successfully when the current FW is upgraded successfully;
The display module is also used to when the current FW upgrading failure, the reminder message of display upgrading failure.
Technical solution bring beneficial effect provided in an embodiment of the present invention is:
By calling the FW Matching Relationship in software upgrade package to check script, according to the FW Matching Relationship in software upgrade package File is described, whether the software after judging automatically current FW version and upgrading meets Matching Relationship, when the current FW version of determination and When software after upgrading does not meet Matching Relationship, by calling FW upgrade script and FW upgrading tool in the software upgrade package, According to provided in the software upgrade package with the corresponding FW of the Software-Coincidence Matching Relationship after upgrading, realize the liter to current FW Grade.The above process can automatic identification which FW need to upgrade, and carry out escalation process automatically, be not necessarily to manpower intervention, can drop Low FW upgrading complexity shortens FW update time.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of firmware upgrade method flow chart provided in an embodiment of the present invention;
Fig. 2A is a kind of firmware upgrade method flow chart provided in an embodiment of the present invention;
Fig. 2 B is a kind of software upgrade package schematic diagram provided in an embodiment of the present invention;
Fig. 2 C is a kind of judgement Matching Relationship method flow diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of device for upgrading firmware structural schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of device for upgrading firmware structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of firmware upgrade method flow chart provided in an embodiment of the present invention, as shown in Figure 1, including the following steps:
101, it is based on software upgrade package, software is upgraded, the firmware FW which includes at least software matches It covers relationship description file, FW ascending series accordingly and FW upgrading tool, the FW Matching Relationship describes file and include the software after upgrading Information and corresponding FW version number.
102, after to the software upgrade success, the version number of current FW is obtained.
103, according to the software information after the version number of the current FW and upgrading, by inquiring FW Matching Relationship description text Whether part, the software after judging the current FW version and the upgrading meet Matching Relationship.
104, when the software after the current FW version and the upgrading does not meet Matching Relationship, call FW upgrading data and The FW upgrading tool upgrades the current FW.
Method provided in an embodiment of the present invention, by calling the FW Matching Relationship in software upgrade package to check script, according to FW Matching Relationship in software upgrade package describes file, and it is mating whether the software after judging automatically current FW version and upgrading meets Relationship, when the software after the current FW version of determination and upgrading does not meet Matching Relationship, by calling in the software upgrade package FW upgrade script and FW upgrading tool, according to pair with the Software-Coincidence Matching Relationship after upgrading provided in the software upgrade package FW is answered, realizes the upgrading to current FW.The above process can automatic identification which FW need to upgrade, and carry out upgrading automatically Journey is not necessarily to manpower intervention, can reduce FW upgrading complexity, shortens FW update time.
In the possible implementation of the first of the invention, which further includes specified hardware information;
Correspondingly, after to the software upgrade success, the version number for obtaining the current FW includes:
Hardware information is specified according to this, is judged with the presence or absence of specified hardware in current electronic device, it should if it does, obtaining Specified hardware corresponds to the version number of FW.
In of the invention second possible implementation, it includes the software after the upgrading which, which describes file, Information and FW version number with the Software-Coincidence Matching Relationship after the upgrading;Or, it includes to be somebody's turn to do that the FW Matching Relationship, which describes file, Software information after upgrading and the FW version number that Matching Relationship is not met with the software after the upgrading.
In the third possible implementation of the invention, the version of current FW should be obtained after to the software upgrade success This number, including:
According to the hardware information of the current FW, judge whether the version for needing to call hardware driving interface to obtain the current FW Number;
When needing that corresponding driving interface is called to obtain the version number of current FW, hardware driving interface acquisition is called to deserve The version number of preceding FW;
When the version number for not needing that corresponding driving interface is called to obtain current FW, deserved by FW upgrading tool acquisition The version number of preceding FW.
In the 4th kind of possible implementation of the invention, the calling FW upgrades data and FW upgrading tool is current to this After FW is upgraded, this method further includes:
When the current FW is upgraded successfully, the reminder message upgraded successfully is shown;
When the current FW upgrading failure, the reminder message of display upgrading failure.
Fig. 2A is a kind of firmware upgrade method flow chart provided in an embodiment of the present invention, and A, this method include referring to fig. 2:
201, it is based on software upgrade package, software is upgraded, the firmware FW which includes at least software matches It covers relationship description file, FW ascending series accordingly and FW upgrading tool, the FW Matching Relationship describes file and include the software after upgrading Information and corresponding FW version number.
In order to realize the automatic upgrading to FW, design is extended to software upgrade package, so that the software upgrade package In other than comprising conventional software upgrading associated documents, further include the associated documents that can be realized FW and upgrade automatically, as this is soft The FW Matching Relationship of part describes file, FW ascending series accordingly and FW upgrading tool.
In order to improve the scalability and flexibility that FW Matching Relationship describes file, which can be designed to XML Format, filename can be Fw.cfg.The FW Matching Relationship describe corresponding relationship included in file can have it is following any Kind situation:
The first situation, FW Matching Relationship describe file include the upgrading after software information and with it is soft after the upgrading Part meets the FW version number of Matching Relationship.
For example, the FW version of Software-Coincidence Matching Relationship after with upgrading is more than the FW version for not meeting Matching Relationship When, it can describe to save the FW version number for not meeting Matching Relationship with the software after the upgrading in file in the FW Matching Relationship.
Second situation, FW Matching Relationship describe file include the upgrading after software information and with it is soft after the upgrading Part does not meet the FW version number of Matching Relationship.
For example, the FW version of Software-Coincidence Matching Relationship after with upgrading is fewer than the FW version for not meeting Matching Relationship When, it can describe to save the FW version number with the Software-Coincidence Matching Relationship after the upgrading in file in the FW Matching Relationship.
The FW Matching Relationship describes corresponding relationship that file is included in addition to above-mentioned two situations, can also include following right It should be related to:It saves with the minimum FW version number of the FW of the Software-Coincidence Matching Relationship after upgrading, highest FW version number and at this The FW version number of Matching Relationship is not met between minimum FW version number and highest FW version number with the software after the upgrading;Pass through It describes to save above-mentioned corresponding relationship in file in FW Matching Relationship, can reduce the occupied memory space of the software upgrade package.
The FW Matching Relationship describes in file other than saving above-mentioned corresponding relationship, and can also save other can be used in sentencing Whether the software after the current FW version of breaking and the upgrading meets other corresponding relationships of Matching Relationship, and the embodiment of the present invention is to this It is not construed as limiting.
Above-mentioned FW Matching Relationship describes the corresponding relationship of the software information after upgrading included in file and FW version number, It is illustrated just for any FW, in fact, FW Matching Relationship describes to may include FW on software and multiple hardware in file Whether corresponding relationship, the software after being used to judge multiple FW and the upgrading meet Matching Relationship.
FW upgrading data may include that FW Matching Relationship checks script and the automatic upgrade script of FW, the FW Matching Relationship inspection Script can be named as Fw_check.sh, for describing file and current FW version number according to the FW Matching Relationship, judge that this is current Whether the software after FW version and the upgrading meets Matching Relationship, when determining that the current FW version is not inconsistent with the software after upgrading When closing Matching Relationship, the automatic upgrade script of the FW is called to realize the upgrading to the current FW, the automatic upgrade script of the FW can be named For:Fw_update.sh.
FW upgrading tool is used to obtain the version number of FW and the automatic upgrade script of the FW is called to realize to the current FW's Upgrading.
The software upgrade package is in addition to including that the FW Matching Relationship of software describes file, FW ascending series accordingly and FW upgrading tool In addition, it in order to improve the specific aim upgraded automatically, that is to say, the software after upgrading and current electronic device system compatible On condition that can be realized FW corresponding to each hardware when the current system includes multiple hardware and upgrade respectively, the software upgrading Can also include specified hardware information in packet, in addition, in order to avoid in addition user downloads can be with the Software-Coincidence after the upgrading The FW of Matching Relationship can also include corresponding with each hardware of Software-Coincidence Matching Relationship after upgrading in the software upgrade package FW, included data information can be indicated with Fig. 2 B in software upgrade package.
The specified hardware can must have for current electronic device system with the Software-Coincidence Matching Relationship after the upgrading Standby hardware, the specified hardware information can be the style number of the specified hardware, be also possible to that this can be specified class of hardware Type plays other hardware informations of mark action, and the embodiment of the present invention is not construed as limiting this.
The FW corresponding with each hardware of Software-Coincidence Matching Relationship after upgrading refers to, for the ease of rising to FW Grade, can provide in software upgrade package can meet the FW of Matching Relationship with the hardware after upgrading can when upgrading to FW Directly to use the FW in the software upgrade package, so that user be avoided in addition to download.
202, after to the software upgrade success, the version number of current FW is obtained.
The method for obtaining current FW version number can be:According to the hardware information of the current FW, judge whether to need to call Hardware driving interface obtains the version number of the current FW;When needing that corresponding driving interface is called to obtain the version number of current FW, The hardware driving interface is called to obtain the version number of the current FW;When the version for not needing that corresponding driving interface is called to obtain current FW At this number, the version number of the current FW is obtained by the FW upgrading tool.
Wherein, judging whether the method for the version number for needing to call hardware driving interface to obtain the current FW can be:It obtains It takes the current FW to correspond to the hardware information of hardware, according to the hardware information, inquires the net from the production firm website of the hardware It stands the driving whether provided for obtaining the current FW version number, provided that the driving, then it is assumed that need to call hardware driving Interface obtains the version number of current FW, downloads and install the driving, with the version number for obtaining the current FW, if do not mentioned For, then it is assumed that do not need the version number for calling hardware driving interface to obtain current FW.
It should be noted that because current electronic device system will be with the software compatibility after the upgrading, it may be necessary to have Multiple specified hardware, according to multiple specified hardware informations, successively judge that Current electronic is set when needing to have multiple specified hardware With the presence or absence of specified hardware in standby, in the absence of having a specified hardware, then the interface display FW of electronic equipment in this prior Upgrade the reminder message of failure.Obtaining the method for corresponding to the version number of FW to any specified hardware can be:
Hardware information is specified according to this, is judged with the presence or absence of specified hardware in current electronic device, it should if it does, obtaining Specified hardware corresponds to the version number of FW, and specific method can be:It specifies hardware information for index with this, is protected in current electronic device In all hardware information deposited, search whether that there are the specified hardware informations, if it does not exist, then electronic equipment in this prior The reminder message of interface display FW upgrading failure, that is to say, which can not be simultaneous with the software after the upgrading Hold, if it is present obtaining the specified corresponding FW version number of hardware in the current electronic apparatus system.
203, according to the software information after the version number of the current FW and upgrading, by inquiring FW Matching Relationship description text Whether part, the software after judging the current FW version and the upgrading meet Matching Relationship.
The corresponding relationship saved in file is described according to FW Matching Relationship, by calling FW Matching Relationship to check script, is sentenced The current FW version of breaking can be following several with the method whether software after the upgrading meets Matching Relationship:
The first, when the FW Matching Relationship describes the corresponding relationship saved in file be not meet with the software after upgrading When the FW version number of Matching Relationship, it is index with the version number of the current FW got in step 202, searches the FW Matching Relationship The version number that whether there is the current FW in file is described, if the FW Matching Relationship describes the version for depositing FW in this prior in file This number, then the current FW does not meet Matching Relationship with the software after the upgrading, if the FW Matching Relationship describes not deposit in file The version number of FW in this prior, then the Software-Coincidence Matching Relationship after the current FW and the upgrading.
It second, is to match with the Software-Coincidence after upgrading when the FW Matching Relationship describes the corresponding relationship saved in file When the FW version number of set relationship, it is index with the version number of the current FW got in step 202, searches the FW Matching Relationship and retouch The version number that whether there is the current FW in file is stated, if the FW Matching Relationship describes the version for depositing FW in this prior in file Number, then the current FW and the Software-Coincidence Matching Relationship after the upgrading, are somebody's turn to do if the FW Matching Relationship describes to be not present in file The version number of current FW, then the current FW does not meet Matching Relationship with the software after the upgrading.
If the third, the FW Matching Relationship describe the corresponding relationship saved in file be match with the Software-Coincidence after upgrading Each hardware of set relationship corresponds to the minimum FW version number of FW, highest FW version number and in the minimum FW version number and the highest The FW version number of Matching Relationship is not met between FW version number with the software after the upgrading, it is current with what is got in step 202 The version number of FW is index, searches the FW Matching Relationship and describes the version number that whether there is the current FW in file, if deserved The version number of preceding FW between the minimum FW version number and highest FW version number of the FW, then judge the current FW version number whether Comprising in the FW version number for not meeting Matching Relationship with the software after the upgrading, if the version number of the current FW be included in Software after the upgrading is not met in the FW version number of Matching Relationship, then the current FW is not met mating with the software after the upgrading Relationship is not met in the FW version number of Matching Relationship if the version number of the current FW is not included in the software after the upgrading, The then current FW and the Software-Coincidence Matching Relationship after the upgrading;If the version number of the current FW is not at minimum FW editions of the FW Between this number and highest FW version number, then the current FW does not meet Matching Relationship with the software after the upgrading.
It, can also root in addition to whether meeting the method for Matching Relationship using the above-mentioned software judged after the current FW and the upgrading Other corresponding relationships saved in file are described according to FW Matching Relationship, using corresponding judgment method, the embodiment of the present invention is to this It is not construed as limiting.
It should be noted that can be with the judgement Matching Relationship method flow diagram of Fig. 2 C to above-mentioned steps 202 and step 203 Specific method be described further.
204, when the software after the current FW version and the upgrading does not meet Matching Relationship, call FW upgrading data and The FW upgrading tool upgrades the current FW.
Due in software upgrade package provide for be mounted directly can with the FW of the Software-Coincidence Matching Relationship after upgrading, Therefore it can in addition be downloaded to avoid user, accelerate FW updating speed, in addition, the FW upgrading tool is also contained in software upgrade package In, it that is to say, when to the software upgrading, only need to download the software upgrade package, while realizing the upgrading to the software, also It can be realized the upgrading to FW, without downloading alternative document again.
According to current FW version number, by calling FW upgrade script and FW upgrading tool to realize the upgrading to current FW.It needs It is noted that suitable FW is selected to be downloaded installation to complete to current in the FW that can be provided from the software upgrade package The upgrading of FW, for example, the FW of the latest edition in the FW provided in the software upgrade package can be chosen, can also choose with currently The corresponding FW of immediate version number of FW version number, how the embodiment of the present invention is to selecting FW to be not construed as limiting.
205, when the current FW is upgraded successfully, the reminder message upgraded successfully is shown;When the current FW upgrading failure, The reminder message of display upgrading failure.
When the current FW is upgraded successfully, in the reminder message that current electronic device interface display upgrades successfully, the prompting The content of message can be:" upgrading successfully ", or the other similar text information or picture, animation for indicating to upgrade successfully Information etc., the embodiment of the present invention is not construed as limiting this.
When the current FW upgrading failure, in the reminder message of current electronic device interface display upgrading failure, the prompting The content of message can be:" upgrading failure ", or the other similar text information or picture, animation for indicating to upgrade successfully Information etc. can also show the reason of upgrading fails and link at the same time, when detecting the clicking operation to the link, The page for providing and solving to upgrade the method to fail, which can be jumped to, can also show other upgradings in addition to above-mentioned display content The relevant information of failure, the embodiment of the present invention are not construed as limiting this.
It should be noted that when the software and current electronic device system compatible need the system to have multiple specify firmly Part, the and when FW to multiple specified hardware being needed to upgrade, can according to the above method successively to upgrading in need FW Upgraded, can also simultaneously to the FW of upgrading in need upgrade, realize the batch to FW multiple in electronic equipment Upgrading.
Method provided in an embodiment of the present invention, by calling the FW Matching Relationship in software upgrade package to check script, according to FW Matching Relationship in software upgrade package describes file, and it is mating whether the software after judging automatically current FW version and upgrading meets Relationship, when the software after the current FW version of determination and upgrading does not meet Matching Relationship, by calling in the software upgrade package FW upgrade script and FW upgrading tool, according to pair with the Software-Coincidence Matching Relationship after upgrading provided in the software upgrade package FW is answered, realizes the upgrading to current FW.The above process can automatic identification which FW need to upgrade, and carry out upgrading automatically Journey is not necessarily to manpower intervention, can reduce FW upgrading complexity, shortens FW update time.Further, by electronic equipment It shows FW updating result, user can be allowed to know whether the software after upgrading can be compatible with the electronic apparatus system in time, in addition, The solution for solving upgrading failure can also be provided with for reference, in addition, only showing that this is soft in the interface of electronic equipment Part escalation process shields the escalation process of FW to user completely, the electronic apparatus system with upgrading after software compatibility by upper Method is stated to guarantee automatically.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination It repeats one by one.
Fig. 3 is a kind of device for upgrading firmware block diagram provided in an embodiment of the present invention.Referring to Fig. 3, which includes software liter Grade module 301, obtains module 302, judgment module 303 and FW upgraded module 304.
Software upgrade module 301 upgrades software, which at least wraps for being based on software upgrade package The firmware FW Matching Relationship for including software describes file, FW ascending series accordingly and FW upgrading tool, the FW Matching Relationship describe file Comprising upgrading after software information and corresponding FW version number;
Module 302 is obtained, for obtaining the version number of current FW after to the software upgrade success;
Judgment module 303, for being matched by inquiring the FW according to the software information after the version number of the current FW and upgrading Relationship description file is covered, whether the software after judging the current FW version and the upgrading meets Matching Relationship;
FW upgraded module 304 when not meeting Matching Relationship for the software after the current FW version and the upgrading, calls FW upgrading data and the FW upgrading tool upgrade the current FW.
In the first possible implementation provided by the invention, which further includes specified hardware information;
Correspondingly, which is used for:Hardware information is specified according to this, judges whether deposit in current electronic device In specified hardware, if it does, obtaining the version number that the specified hardware corresponds to FW.
In second provided by the invention possible implementation, which describes file comprising after the upgrading Software information and FW version number with the Software-Coincidence Matching Relationship after the upgrading;Or, the FW Matching Relationship describes file packet The FW version number of Matching Relationship is not met containing the software information after the upgrading and with the software after the upgrading.
In the third possible implementation provided by the invention, which is used for:
According to the hardware information of the current FW, judge whether the version for needing to call hardware driving interface to obtain the current FW Number;When needing that corresponding driving interface is called to obtain the version number of current FW, the hardware driving interface is called to obtain the current FW Version number;When the version number for not needing that corresponding driving interface is called to obtain current FW, being obtained by the FW upgrading tool should The version number of current FW.
In the 4th kind of possible implementation provided by the invention, which further includes:
Display module, for showing the reminder message upgraded successfully when the current FW is upgraded successfully;
The display module is also used to when the current FW upgrading failure, the reminder message of display upgrading failure.
It should be noted that:Device for upgrading firmware provided by the above embodiment is in firmware updating, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete all or part of function described above Energy.In addition, device for upgrading firmware provided by the above embodiment and firmware upgrade method embodiment belong to same design, it is specific real Existing process is detailed in embodiment of the method, and which is not described herein again.
Fig. 4 is a kind of device for upgrading firmware structural schematic diagram provided in an embodiment of the present invention.For example, device 400 can be by It is provided as a server.Referring to Fig. 4, it further comprises one or more processors that device 400, which includes processing component 422, with And the memory resource as representated by memory 432, for store can by the instruction of the execution of processing component 422, such as using Program.The application program stored in memory 432 may include it is one or more each correspond to one group of instruction Module.In addition, processing component 422 is configured as executing instruction, to execute above-mentioned firmware upgrade method.
Device 400 can also include the power management that a power supply module 426 is configured as executive device 400, and one has Line or radio network interface 450 are configured as device 400 being connected to network and input and output (I/O) interface 458.Dress Setting 400 can operate based on the operating system for being stored in memory 432, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMOr it is similar.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program being somebody's turn to do can store computer-readable deposits in a kind of In storage media, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of firmware upgrade method, which is characterized in that the method includes:
Based on software upgrade package, software is upgraded, the software upgrade package includes at least the firmware FW Matching Relationship of software It describes file, FW ascending series accordingly and FW upgrading tool, the FW Matching Relationship describes file and include the software information after upgrading And corresponding FW version number;
After to the software upgrade success, the version number of current FW is obtained;
According to the software information after the version number of the current FW and upgrading, file is described by inquiring the FW Matching Relationship, Whether the software after judging the current FW version and the upgrading meets Matching Relationship;
When software after the current FW version and the upgrading does not meet Matching Relationship, the FW upgrading data and institute are called FW upgrading tool is stated to upgrade the current FW;
Wherein, the FW upgrading data packet includes FW Matching Relationship and checks script and the automatic upgrade script of FW, the FW Matching Relationship It checks that script is used to describe the version number of file and the current FW according to the FW Matching Relationship, judges the current FW version Whether meet Matching Relationship with the software after the upgrading, matches when the current FW version is not met with the software after upgrading When set relationship, the FW upgrading tool obtains the version number of the current FW and the automatic upgrade script of the FW is called to realize to institute State the upgrading of current FW.
2. the method according to claim 1, wherein the software upgrade package further includes specified hardware information;
Correspondingly, after to the software upgrade success, the version number for obtaining the current FW includes:
According to the specified hardware information, judge with the presence or absence of specified hardware in current electronic device, if it does, described in obtaining Specified hardware corresponds to the version number of FW.
3. the method according to claim 1, wherein the FW Matching Relationship describes file comprising after the upgrading Software information and FW version number with the Software-Coincidence Matching Relationship after the upgrading;Or, the FW Matching Relationship description File includes software information after the upgrading and does not meet the FW version number of Matching Relationship with the software after the upgrading.
4. acquisition is current the method according to claim 1, wherein described after to the software upgrade success The version number of FW, including:
According to the hardware information of the current FW, judge whether the version for needing to call hardware driving interface to obtain the current FW Number;
When needing that corresponding driving interface is called to obtain the version number of current FW, calls and work as described in the hardware driving interface acquisition The version number of preceding FW;
When the version number for not needing that corresponding driving interface is called to obtain current FW, by working as described in FW upgrading tool acquisition The version number of preceding FW.
5. the method according to claim 1, wherein described call the FW upgrading data and FW upgrading tool pair After the current FW is upgraded, the method also includes:
When the current FW is upgraded successfully, the reminder message upgraded successfully is shown;
When the current FW upgrading failure, the reminder message of display upgrading failure.
6. a kind of device for upgrading firmware, which is characterized in that described device includes:
Software upgrade module upgrades software, the software upgrade package includes at least software for being based on software upgrade package Firmware FW Matching Relationship file, FW ascending series are described accordingly and FW upgrading tool, the FW Matching Relationship describe file and include Software information and corresponding FW version number after upgrading;
Module is obtained, for obtaining the version number of current FW after to the software upgrade success;
Judgment module, it is mating by inquiring the FW for according to the software information after the version number of the current FW and upgrading Whether relationship description file, the software after judging the current FW version and the upgrading meet Matching Relationship;
FW upgraded module when not meeting Matching Relationship for the software after the current FW version and the upgrading, calls institute It states FW upgrading data and the FW upgrading tool upgrades the current FW;
Wherein, the FW upgrading data packet includes FW Matching Relationship and checks script and the automatic upgrade script of FW, the FW Matching Relationship It checks that script is used to describe the version number of file and the current FW according to the FW Matching Relationship, judges the current FW version Whether meet Matching Relationship with the software after the upgrading, matches when the current FW version is not met with the software after upgrading When set relationship, the FW upgrading tool obtains the version number of the current FW and the automatic upgrade script of the FW is called to realize to institute State the upgrading of current FW.
7. device according to claim 6, which is characterized in that the software upgrade package further includes specified hardware information;
Correspondingly, the acquisition module is used for:According to the specified hardware information, judge in current electronic device with the presence or absence of finger Hardware is determined, if it does, obtaining the version number that the specified hardware corresponds to FW.
8. device according to claim 6, which is characterized in that the FW Matching Relationship describes file comprising after the upgrading Software information and FW version number with the Software-Coincidence Matching Relationship after the upgrading;Or, the FW Matching Relationship description File includes software information after the upgrading and does not meet the FW version number of Matching Relationship with the software after the upgrading.
9. device according to claim 6, which is characterized in that the acquisition module is used for:
According to the hardware information of the current FW, judge whether the version for needing to call hardware driving interface to obtain the current FW Number;When needing that corresponding driving interface is called to obtain the version number of current FW, calls and work as described in the hardware driving interface acquisition The version number of preceding FW;When the version number for not needing that corresponding driving interface is called to obtain current FW, pass through the FW upgrading tool Obtain the version number of the current FW.
10. device according to claim 6, which is characterized in that described device further includes:
Display module, for showing the reminder message upgraded successfully when the current FW is upgraded successfully;
The display module is also used to when the current FW upgrading failure, the reminder message of display upgrading failure.
CN201510559988.XA 2015-09-06 2015-09-06 Firmware upgrade method and device Active CN105159718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510559988.XA CN105159718B (en) 2015-09-06 2015-09-06 Firmware upgrade method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510559988.XA CN105159718B (en) 2015-09-06 2015-09-06 Firmware upgrade method and device

Publications (2)

Publication Number Publication Date
CN105159718A CN105159718A (en) 2015-12-16
CN105159718B true CN105159718B (en) 2018-11-16

Family

ID=54800582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510559988.XA Active CN105159718B (en) 2015-09-06 2015-09-06 Firmware upgrade method and device

Country Status (1)

Country Link
CN (1) CN105159718B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915401B (en) * 2016-06-29 2019-05-21 北京小米移动软件有限公司 Firmware upgrade method, device and the equipment of Intelligent hardware
CN106293850A (en) * 2016-08-19 2017-01-04 浪潮电子信息产业股份有限公司 A kind of method realizing refreshing PMC8068RAID card FW under system
CN106354595B (en) * 2016-08-29 2020-01-10 北京元心科技有限公司 Mobile terminal, hardware component state detection method and device
CN108255503A (en) * 2016-12-28 2018-07-06 北京普源精电科技有限公司 The firmware upgrade method and device of measuring instrument
CN108536452B (en) * 2017-02-28 2023-05-26 深圳市帝迈生物技术有限公司 Embedded device, system software upgrading method, system and terminal thereof
CN107832106A (en) * 2017-11-24 2018-03-23 郑州云海信息技术有限公司 A kind of method and system of the online updating hard disk FW under low Kernel versions OS
CN109189426A (en) * 2018-08-29 2019-01-11 郑州云海信息技术有限公司 A kind of upgrade method, device, storage medium and electronic equipment
CN111161039A (en) * 2018-11-08 2020-05-15 航天信息股份有限公司 Monitoring method and monitoring device for invoice selection confirmation platform version information
CN112550383A (en) * 2020-12-21 2021-03-26 卡斯柯信号有限公司 Automatic updating and maintaining method and device for rail transit signal system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102132261A (en) * 2009-04-01 2011-07-20 日立系统解决方案有限公司 Home network system, gateway device, and firmware update method
EP2369473A1 (en) * 2010-03-25 2011-09-28 Samsung Electronics Co., Ltd. Print controlling device, image forming system and method for upgrading program or firmware
CN202565373U (en) * 2012-04-13 2012-11-28 深圳市度申科技有限公司 CB industrial camera
CN104219092A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Router management application and router firmware compatible method and router management application and router firmware compatible device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070150482A1 (en) * 2005-08-12 2007-06-28 Jacob Taylor Customer relationship management system and method
CN102722386B (en) * 2012-05-28 2015-09-30 华为终端有限公司 Generate the method and apparatus of radio firmware AKU

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102132261A (en) * 2009-04-01 2011-07-20 日立系统解决方案有限公司 Home network system, gateway device, and firmware update method
EP2369473A1 (en) * 2010-03-25 2011-09-28 Samsung Electronics Co., Ltd. Print controlling device, image forming system and method for upgrading program or firmware
CN202565373U (en) * 2012-04-13 2012-11-28 深圳市度申科技有限公司 CB industrial camera
CN104219092A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Router management application and router firmware compatible method and router management application and router firmware compatible device

Also Published As

Publication number Publication date
CN105159718A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN105159718B (en) Firmware upgrade method and device
CN102520948B (en) Application maintenance update method and device
CN105487980B (en) The method and device that repairing applications are operating abnormally
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN108027741A (en) Document handling method, device, terminal and storage medium based on patch upgrading
CN103559065B (en) Method and system for OTA (Over-the-Air Technology) upgrade
CN104750528B (en) A kind of assembly management method and apparatus in Android program
CN104679532B (en) kernel module loading method and device
CN104699511B (en) Plug-in unit upgrade method and device
CN109634617A (en) Software installation method, user equipment, storage medium and device
CN102833350A (en) Processing method and processing device of WebApp updating
CN106648685A (en) Processing method and device of intelligent terminal system and intelligent terminal
US8769521B2 (en) Calendar aware adaptive patching of a computer program
CN109086065A (en) A kind of method for upgrading software, system and terminal device
CN109885332A (en) Image quality chip software upgrade method, device, display equipment and storage medium
CN106843984A (en) The update method and device of application database
CN108255735A (en) Associated environment test method, electronic device and computer readable storage medium
CN107329738A (en) Component update method and device
CN104111862A (en) Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN104461612A (en) Data processing method and device
CN108958808A (en) Method for starting terminal and device, terminal and storage medium
CN115080076B (en) Cloud mobile phone software management method
CN109766115A (en) A kind of foolproof method and system of smart machine upgrading
CN110007943A (en) A kind of application program update management method and system based on android system
CN103488503B (en) Oftware updating method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200420

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 301, A building, room 3, building 301, foreshore Road, No. 310052, Binjiang District, Zhejiang, Hangzhou

Patentee before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220214

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right