CN106919423B - Firmware upgrading method and device - Google Patents
Firmware upgrading method and device Download PDFInfo
- Publication number
- CN106919423B CN106919423B CN201710097034.0A CN201710097034A CN106919423B CN 106919423 B CN106919423 B CN 106919423B CN 201710097034 A CN201710097034 A CN 201710097034A CN 106919423 B CN106919423 B CN 106919423B
- Authority
- CN
- China
- Prior art keywords
- poe
- version
- firmware
- target
- software
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a firmware upgrading method and a firmware upgrading device, wherein the method comprises the following steps: when the target POE firmware is detected to be upgraded on line and the validity of the target POE firmware of the new version passes the verification, performing compatibility verification on the version of the target POE firmware of the new version and the version of the software; if the version of the target POE firmware of the new version is compatible with the version of the software, the target POE firmware is allowed to be upgraded; and when the target POE firmware is successfully upgraded, outputting first prompt information, and determining whether the target POE firmware of the new version is set to the target POE firmware version which runs by default after restarting according to a received selection instruction which responds to the input of the first prompt information. By applying the embodiment of the invention, the situation that the equipment cannot work normally due to the incompatibility of the upgraded POE firmware version and the software version can be avoided, and the situation that the POE firmware upgrade is covered due to the restart of the equipment can be avoided.
Description
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a firmware upgrading method and apparatus.
Background
The MAC (Media Access Control) chip of traditional POE (Power over Ethernet ) equipment and the POE buckle (a pluggable plug-in card of integrated POE function chip) hardware are separated, the management of a main CPU (Center Process Unit) to the MCU (Microcontroller Unit, micro Control Unit) of the POE buckle is realized through serial communication or other connection modes, and the POE buckle belongs to external POE buckle equipment.
Along with the development of hardware, can support in the MCU integration MAC chip with the POE buckle, the MCU cost can be saved to the POE buckle like this, practices thrift a serial ports simultaneously, practices thrift the cost on the one hand, and is also more reliable on the other hand hardware, realizes built-in POE buckle equipment.
However, practice finds that, for the current built-in POE buckle device, when POE firmware is upgraded online, the upgraded POE firmware version may be inconsistent with the software version, resulting in the problem that the device cannot work normally.
Disclosure of Invention
The invention provides a firmware upgrading method and device, which are used for solving the problems that a POE firmware version after upgrading is possibly inconsistent with a software version when a built-in POE buckle device carries out POE firmware upgrading in the prior art, and the POE firmware version after upgrading is covered by the POE firmware version carried by software after the device is restarted.
According to a first aspect of the embodiments of the present invention, a firmware upgrading method is provided, which is applied to a POE buckle device with power over ethernet, and the method includes:
when the target POE firmware is detected to be upgraded on line and the validity of the target POE firmware of the new version passes the verification, performing compatibility verification on the version of the target POE firmware of the new version and the version of the software;
if the version of the target POE firmware of the new version is compatible with the version of the software, the target POE firmware is allowed to be upgraded;
and when the target POE firmware is successfully upgraded, outputting first prompt information, and determining whether the target POE firmware of the new version is set to the target POE firmware version which runs by default after restarting according to a received selection instruction which responds to the input of the first prompt information.
According to a second aspect of the embodiments of the present invention, there is provided a firmware upgrading apparatus, which is applied to a POE buckle device for power over ethernet, the apparatus including: detecting element, check-up unit, the control unit, output unit, receiving element and processing unit, wherein:
the verification unit is used for verifying the compatibility of the version of the target POE firmware of the new version and the version of the software when the detection unit detects that the target POE firmware is upgraded on line and the target POE firmware of the new version passes the validity verification;
the control unit is used for allowing the target POE firmware to be upgraded when the version of the target POE firmware of the new version is compatible with the version of the software;
the output unit is used for outputting first prompt information when the target POE firmware is successfully upgraded;
the receiving unit is used for receiving a selection instruction responding to the input of the first prompt message;
and the processing unit is specifically configured to determine whether to set the target POE firmware of the new version to the target POE firmware version running by default after the restart according to the selection instruction received by the receiving unit and responding to the input of the first prompt message.
By applying the embodiment of the invention, when the target POE firmware is detected to be upgraded on line and the validity of the target POE firmware of the new version passes the verification, the compatibility of the version of the target POE firmware of the new version and the version of the software is verified; if the version of the target POE firmware of the new version is compatible with the version of the software, the target POE firmware is allowed to be upgraded; when the target POE firmware is successfully upgraded, outputting first prompt information, and determining whether to set the target POE firmware of a new version to a target POE firmware version running by default after restarting according to a received selection instruction input by responding to the first prompt information, so that the problem that the equipment cannot normally work due to incompatibility of the upgraded POE firmware version and the software version is avoided, and the POE firmware upgrade caused by equipment restart is avoided being covered.
Drawings
Fig. 1 is a schematic flowchart of a firmware upgrading method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a firmware upgrading apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another firmware upgrading apparatus provided in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of another firmware upgrading apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a firmware upgrading method according to an embodiment of the present invention is shown in fig. 1, where the firmware upgrading method may include the following steps:
it should be noted that the firmware upgrading method provided by the embodiment of the present invention can be applied to a built-in POE buckle device, and for convenience of description, the execution subject of steps 101 to 103 is a built-in POE buckle device (hereinafter, referred to as POE device) as an example for description.
In the embodiment of the present invention, the target POE firmware does not refer to a certain fixed POE firmware, but may refer to any POE firmware in the built-in POE buckle device, and the following description of the embodiment of the present invention is not repeated.
In the embodiment of the present invention, when the POE device detects that the target POE firmware is updated online, the POE device may first perform validity check on the target POE firmware of a new version (i.e., the version to which the target POE firmware needs to be updated).
The POE device can check the validity of the target POE firmware according to an algorithm provided by a target POE firmware manufacturer, and specific implementation of the target POE firmware can be described in related descriptions in the existing related flows, which is not described herein again in the embodiments of the present invention.
In the embodiment of the invention, in order to avoid that the equipment cannot work normally due to the incompatibility of the upgraded firmware version and the software version after the firmware is upgraded online, when the POE device passes the validity check of the target POE firmware of the new version, the POE device can perform compatibility check on the version and the software version of the target POE firmware of the new version according to the pre-compatibility strategy to determine whether the version of the target POE firmware of the new version is compatible with the current software version.
And step 102, if the version of the target POE firmware of the new version is compatible with the version of the software, allowing the target POE firmware to be upgraded.
In the embodiment of the present invention, when the POE device determines that the version of the target POE firmware of the new version is compatible with the version of the software, the POE device may allow the target POE firmware to be upgraded, that is, allow the target POE firmware to be upgraded to the new version.
It is worth noting that, in the embodiment of the present invention, if the POE device fails to check the validity of the target POE firmware of the new version, or the version of the target POE firmware of the new version is incompatible with the version of the software, the POE device needs to prohibit the target POE firmware from being upgraded to the new version.
In the embodiment of the present invention, in order to avoid that the POE device restarts to cause the upgraded version of the target POE firmware to be covered by the version of the target POE firmware carried by the software, so that the upgraded version of the POE firmware cannot be continuously used, when the POE device detects that the POE firmware is successfully upgraded, prompt information for prompting a user to select whether to set the upgraded version of the POE firmware as the default operating version after restarting can be output, and the user selects whether to set the upgraded version of the POE firmware as the default operating version after restarting.
Accordingly, in the embodiment of the present invention, when the POE device determines that the target POE firmware is successfully upgraded, a prompt message (referred to as a first prompt message) may be output, where the first prompt message is used to prompt the user to select whether to set the new version of POE firmware to the target POE firmware version that is operated by default after the restart, and the user selects whether to set the new version of POE firmware to the target POE firmware version that is operated by default after the restart according to actual requirements.
When the POE device receives a selection instruction for setting the new version of the target POE firmware to the default operating target POE firmware version after restarting, which is input in response to the first prompt message, the POE device sets the new version of the target POE firmware to the default operating target POE firmware version after restarting.
When the POE device receives a selection instruction which responds to the input of the first prompt message and does not set the target POE firmware of the new version as the default running target POE firmware version after the restart, the POE device can still run the target POE firmware version of the software after the restart.
It is worth noting that, in the embodiment of the present invention, if the POE device does not receive the selection instruction responding to the input of the first prompt message within the preset time, the POE device may set the target POE firmware of the new version as the target POE firmware version which is operated by default after the POE device is restarted, or the target POE firmware version carried by the software is still operated after the POE device is restarted.
As can be seen, in the method flow shown in fig. 1, by checking the compatibility of the POE firmware and the software version of the new version during the POE firmware upgrade process, the problem that the device cannot work normally due to the incompatibility between the upgraded POE firmware version and the software version is avoided; in addition, after the POE firmware is successfully upgraded, whether the upgraded POE firmware version is set to the default running version after the restart can be determined according to the received selection instruction, so that the POE firmware upgrade caused by the equipment restart is prevented from being covered.
Further, in the embodiment of the present invention, when the POE device is restarted, the POE device may determine the operating POE firmware version according to whether the default operating POE firmware version after restarting is set, whether software is updated, and the like.
Accordingly, as an optional implementation manner, the firmware upgrading method provided in the embodiment of the present invention may further include the following steps:
11) when the built-in POE buckle plate device does not update the software and restart and finish, inquiring whether a preset target POE firmware version which runs in a default mode after restarting exists;
12) if the target POE firmware version passes the validity and compatibility verification, the preset target POE firmware version which runs by default after the restart is run;
13) and if the POE firmware version does not exist, operating the target POE firmware version carried in the current software version.
In this embodiment, when the POE device is restarted but software update is not performed, and when the POE device is restarted, the POE device may query whether a preset target POE firmware version running by default after the restart exists.
If the POE device determines that the preset target POE firmware version running in a default mode after restarting exists, the POE device can acquire the target POE firmware of the version (namely the preset target POE firmware version running in a default mode after restarting), check the legitimacy of the target POE firmware of the version, further check the compatibility of the version and the software version of the target POE firmware of the version when the legitimacy check passes, and if the compatibility check also passes, the POE device can run the target POE firmware of the version.
It should be noted that, if the POE device does not check the legitimacy of the preset target POE firmware version which is operated by default after the restart, or does not check the compatibility, the POE device may operate the target POE firmware version carried by the software.
In this embodiment, if the POE device determines that the preset target POE firmware version which is operated by default after the restart does not exist, the POE device may operate the target POE firmware version carried by the software.
Therefore, in the embodiment of the present invention, by setting the upgraded POE firmware version as the default running version after the restart, the POE firmware upgrade caused by the equipment restart can be prevented from being covered, and the continuous work of the upgraded POE firmware version is ensured.
As another optional implementation manner, the firmware upgrading method provided in the embodiment of the present invention may further include the following steps:
21) when the built-in POE buckle plate equipment updates software and restarts, inquiring whether a preset target POE firmware version which runs in a default mode after restarting exists;
22) if yes, judging whether the target POE firmware version carried in the version after software updating is updated or not when the preset target POE firmware version which is operated by default after restarting passes validity and compatibility verification, and operating the preset target POE firmware version which is operated by default after restarting when the target POE firmware version which is carried in the version after software updating is not updated;
23) and if the POE firmware version does not exist, operating the target POE firmware version carried in the updated version of the software.
In this embodiment, when the POE device is updated and restarted in software, and when the POE device is restarted, the POE device may query whether a preset target POE firmware version running by default after the restart exists.
If the POE device determines that the preset target POE firmware version which is operated by default after restarting does not exist, the POE device can operate the target POE firmware version carried in the version after software updating.
If the POE device determines that a preset target POE firmware version running by default after restarting exists, the POE device can acquire the target POE firmware of the version, perform validity check on the target POE firmware of the version, further perform compatibility check on the version and the software version of the target POE firmware of the version when the validity check passes, and if the compatibility check also passes, the POE device needs to judge whether the target POE firmware version carried in the version after software updating is updated, namely judge whether the version of the target POE firmware is updated in the software updating process.
If the POE device determines that the target POE firmware version carried in the updated version of the software is not updated, that is, the target POE firmware version carried in the updated version of the software is the same as the target POE firmware version carried in the version before the software update, the POE device may allow the preset target POE firmware version running by default after the restart.
Further, in this embodiment, if the target POE firmware carried in the updated software version is updated, the POE device needs to output a prompt message (referred to as a second prompt message herein), where the second prompt message is used to prompt the user to select whether to run the target POE firmware version carried in the updated software version, and determine, according to the received selection instruction input in response to the second prompt message, the target POE firmware version carried in the updated software version or the preset target POE firmware version running by default after restarting.
When the POE device receives the selection instruction for determining the target POE firmware version carried in the version after the software update is operated, which is input in response to the second prompt information, the POE device can operate the target POE firmware version carried in the version after the software update.
When the POE device receives a selection instruction for determining the target POE firmware version carried in the version after the software is not updated and input in response to the second prompt message, the POE device can run the preset target POE firmware version which is operated by default after the restart.
It should be noted that, in the embodiment of the present invention, if the POE device does not receive the selection instruction in response to the input of the second prompt message within the preset time, the POE device may operate the target POE firmware version carried in the updated version of the software.
Therefore, in the embodiment of the present invention, when the device is updated and restarted by software, the user can select the POE firmware version to be run, so that the flexibility of running the POE firmware version is increased.
Further, in the embodiment of the present invention, in order to improve the efficiency of checking the compatibility of the upgraded POE firmware version and the software version, when the POE device determines that the target POE firmware is allowed to be upgraded to the new version online, the POE device may set the bale version information for the target POE firmware of the new version according to the preset compatibility policy, so that the POE device may perform compatibility checking on the target POE firmware and the software of the new version according to the bale version information of the target POE firmware of the new version and the bale version information of the software when needed in the subsequent process.
When the POE device sets the package version information for the new version of target POE firmware, the existing highest version of the software versions compatible with the version of the new version of target POE firmware is available.
In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present invention, the technical solutions provided by the embodiments of the present invention are described below with reference to specific examples.
In this embodiment, it is assumed that the software package version information is a1, and the POE firmware FW1 carried in the software is B1.
In this embodiment, when a user wants to upgrade POE firmware FW1 online, assuming that the version of the upgraded POE firmware (i.e., the new version of the POE firmware) is B2 (in this embodiment, the new version of the POE firmware is referred to as FW2), the POE device may first perform validity check on FW2, and when the validity check passes, the POE device may further perform compatibility check on the version of FW2 and the software version, i.e., determine whether B2 is compatible with a 1.
If the POE device determines that B2 is compatible with a1, the POE device can allow the POE firmware upgrade this time and set the packaged version information for FW2, assumed to be Ax.
When the POE firmware FW1 is successfully upgraded to the FW2, the POE device may output first prompt information prompting the user to select whether to set the FW2 to the POE firmware that is operated by default after the reboot (i.e., whether to set the B2 to the POE firmware version that is operated by default after the reboot).
If the POE device receives POE firmware that sets FW2 as default operation after the restart and responds to the input of the first prompt message, the POE device may set FW2 as default operation POE firmware after the restart (that is, set B2 as the version of the default operation POE firmware);
if the POE device receives POE firmware that does not set FW2 as default operation after the restart in response to the input of the first prompt information, the POE device may determine that the device will operate FW1 (i.e., operate POE critical firmware version B1) after the restart.
When the POE device is restarted but software update is not performed, the POE device needs to query whether a preset default operating POE firmware version exists or not when the restart is completed.
If not, the POE device runs POE firmware FW1 carried by the software (i.e. runs POE firmware version B1);
if the POE firmware exists (assuming that the default operating POE firmware after the user is restarted is FW2), the POE device acquires POE firmware FW2 from the flash, performs validity check and compatibility check on the POE firmware FW2, and operates POE firmware FW2 (i.e., operates POE firmware version B2) after both checks pass; otherwise, POE firmware FW1 is run.
Wherein, the POE device can perform compatibility check on the FW2 according to the package version information (i.e. Ax) of the FW2 and the software package version information (i.e. a 1).
When the POE device updates software (assuming that the version is updated to a2), and reboots, when the rebooting is completed, the POE device may first query whether preset POE firmware which runs by default after the rebooting exists;
if the POE firmware does not exist, the POE device runs the POE firmware carried in the updated version of the software (the version is FWx, Bx);
if the POE firmware exists (assuming that the POE firmware which is operated by default after the user is restarted is FW2), the POE equipment acquires the POE firmware FW2 from the flash, carries out validity check and compatibility check on the POE firmware FW2, and operates the POE firmware FWx if the validity check or the compatibility check fails;
if the FW2 validity check and the compatibility check both pass, the POE device can determine whether the version of the POE firmware carried in the updated version of the software is updated, that is, determine whether Bx is B1;
if Bx is B1, that is, the version of the POE firmware carried in the updated version of the software is not updated, the POE device runs POE firmware FW 2;
if Bx is not B1, the POE device outputs second prompt information to prompt the user to select whether to operate POE firmware FWx;
if the POE device receives the selection instruction of FWx operation input in response to the second prompt message, the POE device may operate POE firmware FWx;
if the POE device receives the selection instruction of not running FWx input in response to the second prompt information, the POE device may run POE firmware FW 2.
And if the POE device does not receive the selection instruction input in response to the second prompt message within the preset time, default operation of the POE firmware FWx is performed.
As can be seen from the above description, in the technical solution provided in the embodiment of the present invention, when it is detected that the target POE firmware is updated online and the validity of the new version of the target POE firmware passes the validity check, the compatibility check is performed on the version of the new version of the target POE firmware and the version of the software; if the version of the target POE firmware of the new version is compatible with the version of the software, the target POE firmware is allowed to be upgraded; when the target POE firmware is successfully upgraded, outputting first prompt information, and determining whether to set the target POE firmware of a new version to a target POE firmware version running by default after restarting according to a received selection instruction input by responding to the first prompt information, so that the problem that the equipment cannot normally work due to incompatibility of the upgraded POE firmware version and the software version is avoided, and the POE firmware upgrade caused by equipment restart is avoided being covered.
Referring to fig. 2, a schematic structural diagram of a firmware upgrading apparatus according to an embodiment of the present invention is provided, where the apparatus may be applied to a POE buckle device in the foregoing method embodiment, and as shown in fig. 2, the apparatus may include: a detection unit 210, a verification unit 220, a control unit 230, an output unit 240, a receiving unit 250, and a processing unit 260, wherein:
a checking unit 220, configured to perform compatibility check on the version of the new version of target POE firmware and the version of the software when the detecting unit 210 detects that the target POE firmware is upgraded online and validity check on the new version of target POE firmware passes;
a control unit 230, configured to allow the target POE firmware to be upgraded when the version of the target POE firmware of the new version is compatible with the version of the software;
an output unit 240, configured to output a first prompt message when the target POE firmware is successfully upgraded;
a receiving unit 250, configured to receive a selection instruction in response to input of the first prompt information;
the processing unit 260 is specifically configured to determine whether to set the target POE firmware of the new version to the target POE firmware version that is operated by default after the restart according to the selection instruction received by the receiving unit and responding to the input of the first prompt message.
Referring to fig. 3, a schematic structural diagram of another firmware upgrading apparatus according to an embodiment of the present invention is shown in fig. 3, where, on the basis of the firmware upgrading apparatus shown in fig. 2, the firmware upgrading apparatus shown in fig. 3 further includes: a first query unit 270 and a first operation unit 280; wherein:
a first querying unit 270, configured to query whether a preset target POE firmware version running by default after restart exists when the built-in POE buckle device does not update software and restart is completed;
a first operation unit 280, configured to, if a preset target POE firmware version running by default after the restart exists, run the preset target POE firmware version running by default after the restart when the verification unit 220 passes validity and compatibility verification of the preset target POE firmware version running by default after the restart;
the first operation unit 280 is further configured to, if a preset target POE firmware version that is operated by default after the restart does not exist, operate the target POE firmware version carried in the current software version.
Referring to fig. 4, a schematic structural diagram of another firmware upgrading apparatus according to an embodiment of the present invention is shown in fig. 4, where, on the basis of the firmware upgrading apparatus shown in fig. 2, the firmware upgrading apparatus shown in fig. 4 further includes: a second query unit 290, a judgment unit 300, and a second operation unit 310; wherein:
a second querying unit 290, configured to query whether a preset target POE firmware version running by default after the restart exists when the built-in POE buckle device updates software and restarts the built-in POE buckle device;
a determining unit 300, configured to determine whether the target POE firmware version carried in the version after software update is updated if the preset target POE firmware version running by default after restart exists and the validity and compatibility check of the preset target POE firmware version running by default after restart is passed by the checking unit 220;
a second operation unit 310, configured to, when the target POE firmware version carried in the updated version of the software is not updated, operate a preset target POE firmware version that is operated by default after the restart;
the second operation unit 310 is further configured to, if a preset target POE firmware version that is operated by default after the restart does not exist, operate the target POE firmware version carried in the updated version of the software.
In an optional embodiment, the output unit 240 is further configured to output a second prompt message when the target POE firmware version carried in the updated version of the software is updated;
the receiving unit 250 is further configured to receive a selection instruction in response to the input of the second prompt message;
the processing unit 260 is further configured to determine, according to the selection instruction received by the receiving unit 250 and responding to the second prompt information input, a target POE firmware version carried in the updated version of the running software or a preset target POE firmware version running by default after restarting.
In an optional embodiment, the second operation unit 310 is further configured to, if the receiving unit 250 does not receive the selection instruction input in response to the second prompt message within the preset time, operate the target POE firmware version carried in the updated version of the software.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
As can be seen from the above embodiments, when it is detected that the target POE firmware is updated online and validity of the new version of the target POE firmware passes verification, compatibility verification is performed on the version of the new version of the target POE firmware and the version of the software; if the version of the target POE firmware of the new version is compatible with the version of the software, the target POE firmware is allowed to be upgraded; when the target POE firmware is successfully upgraded, outputting first prompt information, and determining whether to set the target POE firmware of a new version to a target POE firmware version running by default after restarting according to a received selection instruction input by responding to the first prompt information, so that the problem that the equipment cannot normally work due to incompatibility of the upgraded POE firmware version and the software version is avoided, and the POE firmware upgrade caused by equipment restart is avoided being covered.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (6)
1. A firmware upgrading method is applied to POE buckle plate equipment with built-in Ethernet power supply, and is characterized by comprising the following steps:
when the target POE firmware is detected to be upgraded on line and the validity of the target POE firmware of the new version passes the verification, performing compatibility verification on the version of the target POE firmware of the new version and the version of the software;
if the version of the target POE firmware of the new version is compatible with the version of the software, allowing the target POE firmware to be upgraded;
when the target POE firmware is successfully upgraded, outputting first prompt information, and determining whether the target POE firmware of the new version is set to be a target POE firmware version which runs by default after restarting according to a received selection instruction which responds to the input of the first prompt information;
wherein the method further comprises:
when the built-in POE buckle plate equipment is used for updating software and restarting, whether a preset target POE firmware version which runs in a default mode after restarting exists or not is inquired;
if the POE firmware version passes the validity and compatibility check of the preset default running target POE firmware version after restarting, judging whether the target POE firmware version carried in the version after software updating is updated or not, and running the preset default running target POE firmware version after restarting when the target POE firmware version is not updated;
if the POE firmware version does not exist, operating a target POE firmware version carried in the updated version of the software;
and when the target POE firmware version carried in the updated version of the software is updated, outputting second prompt information, and determining the target POE firmware version carried in the updated version of the running software or the preset target POE firmware version running by default after restarting according to a received selection instruction responding to the input of the second prompt information.
2. The method of claim 1, further comprising:
when the built-in POE buckle plate device does not update software and is restarted, inquiring whether a preset target POE firmware version which runs in a default mode after being restarted exists;
if the preset target POE firmware version which is operated in a default mode after the restart is available, operating the preset target POE firmware version which is operated in a default mode after the restart when the validity and compatibility check of the preset target POE firmware version which is operated in a default mode after the restart is passed;
and if the POE firmware version does not exist, operating the target POE firmware version carried in the current software version.
3. The method of claim 1, further comprising:
and if the selection instruction responding to the second prompt information input is not received within the preset time, operating the target POE firmware version carried in the updated version of the software.
4. The utility model provides a firmware upgrading device, is applied to built-in ethernet power supply POE buckle equipment, its characterized in that, the device includes: detecting element, check-up unit, the control unit, output unit, receiving element and processing unit, wherein:
the checking unit is used for checking the compatibility between the version of the target POE firmware of the new version and the version of the software when the detection unit detects that the target POE firmware is upgraded on line and the target POE firmware of the new version passes the validity check;
the control unit is configured to allow the target POE firmware to be upgraded when the version of the target POE firmware of the new version is compatible with the version of the software;
the output unit is configured to output first prompt information when the target POE firmware is successfully upgraded;
the receiving unit is used for receiving a selection instruction responding to the input of the first prompt message;
the processing unit is specifically configured to determine whether to set the new version of target POE firmware to a target POE firmware version that is operated by default after the restart according to the selection instruction received by the receiving unit and responding to the input of the first prompt message;
the device further comprises: the second query unit, the judgment unit and the second operation unit; wherein:
the second query unit is configured to query whether a preset target POE firmware version running by default after the restart exists when the built-in POE buckle device completes software update and restart;
the judging unit is used for judging whether the target POE firmware version carried in the version after software update is updated or not if the preset target POE firmware version which runs by default after restart exists and the verifying unit passes the validity and compatibility verification of the preset target POE firmware version which runs by default after restart;
the second operation unit is configured to operate the preset target POE firmware version which is operated by default after the restart when the target POE firmware version carried in the updated version of the software is not updated;
the second operation unit is further configured to, if a preset target POE firmware version that is operated by default after the restart does not exist, operate the target POE firmware version carried in the version after the software update;
the output unit is further configured to output second prompt information when the target POE firmware version carried in the updated version of the software is updated;
the receiving unit is further used for receiving a selection instruction responding to the input of the second prompt message;
the processing unit is further configured to determine, according to the selection instruction received by the receiving unit and responding to the second prompt information input, a target POE firmware version carried in the updated version of the running software or the preset target POE firmware version running by default after the restart.
5. The apparatus of claim 4, further comprising: the system comprises a first query unit and a first operation unit; wherein:
the first query unit is configured to query whether a preset target POE firmware version running by default after the restart exists when the built-in POE buckle device does not update software and restart is completed;
the first operation unit is configured to, if a preset target POE firmware version running by default after the restart exists, run the preset target POE firmware version running by default after the restart when the validity and compatibility check of the preset target POE firmware version running by default after the restart is passed by the check unit;
the first operation unit is further configured to operate the target POE firmware version carried in the current software version if the preset target POE firmware version that is operated by default after the restart does not exist.
6. The apparatus of claim 4,
the second operation unit is further configured to, if the receiving unit does not receive the selection instruction in response to the input of the second prompt message within a preset time, operate the target POE firmware version carried in the updated version of the software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710097034.0A CN106919423B (en) | 2017-02-22 | 2017-02-22 | Firmware upgrading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710097034.0A CN106919423B (en) | 2017-02-22 | 2017-02-22 | Firmware upgrading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106919423A CN106919423A (en) | 2017-07-04 |
CN106919423B true CN106919423B (en) | 2021-03-23 |
Family
ID=59454493
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710097034.0A Active CN106919423B (en) | 2017-02-22 | 2017-02-22 | Firmware upgrading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106919423B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107729068A (en) * | 2017-09-30 | 2018-02-23 | 上海联影医疗科技有限公司 | A kind of device management method and system |
CN113944992A (en) * | 2020-07-17 | 2022-01-18 | 海信(山东)空调有限公司 | Air conditioner and upgrading method |
CN113010900A (en) * | 2021-04-20 | 2021-06-22 | 西安联飞智能装备研究院有限责任公司 | Application software upgrading method, device, system and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7765277B1 (en) * | 2002-10-01 | 2010-07-27 | Apple Inc. | Method and apparatus for dynamically locating resources |
CN104301383A (en) * | 2014-09-05 | 2015-01-21 | 小米科技有限责任公司 | Upgrading method, device and upgrading equipment |
CN105589687A (en) * | 2014-11-24 | 2016-05-18 | ***股份有限公司 | Software updating method based on cloud platform |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478429A (en) * | 2009-02-10 | 2009-07-08 | 杭州华三通信技术有限公司 | Method, system and equipment for version upgrade |
US20140088880A1 (en) * | 2012-09-21 | 2014-03-27 | Life Technologies Corporation | Systems and Methods for Versioning Hosted Software |
CN102981881B (en) * | 2012-12-10 | 2018-03-27 | 中兴通讯股份有限公司 | A kind of method and system for preventing updating mobile terminal to illegal firmware version |
CN103455354B (en) * | 2013-09-06 | 2017-04-12 | 南京南自信息技术有限公司 | Method and equipment for preventing hardware update from failing |
CN104750506B (en) * | 2013-12-30 | 2018-04-17 | 海尔集团公司 | A kind of intelligent appliance wifi module software automatic updating method |
-
2017
- 2017-02-22 CN CN201710097034.0A patent/CN106919423B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7765277B1 (en) * | 2002-10-01 | 2010-07-27 | Apple Inc. | Method and apparatus for dynamically locating resources |
CN104301383A (en) * | 2014-09-05 | 2015-01-21 | 小米科技有限责任公司 | Upgrading method, device and upgrading equipment |
CN105589687A (en) * | 2014-11-24 | 2016-05-18 | ***股份有限公司 | Software updating method based on cloud platform |
Also Published As
Publication number | Publication date |
---|---|
CN106919423A (en) | 2017-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3516847B1 (en) | Deployment of applications conforming to application data sharing and decision service platform schema | |
US8171276B2 (en) | Minimal startup mode for performing multiple-reboot configuration | |
WO2019140656A1 (en) | Firmware upgrade method and apparatus, electronic device and control device | |
CN112910714B (en) | Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure | |
US11995427B2 (en) | Method, apparatus, device, and storage medium for upgrading vehicle-mounted Tbox | |
CN106919423B (en) | Firmware upgrading method and device | |
EP2195741A1 (en) | Firmware image update and management | |
CN102945173A (en) | User program on-line upgrading system and method | |
US20150347153A1 (en) | System management controller and method of configuration file backup and recovery | |
US20120210317A1 (en) | Method and apparatus for updating data card | |
WO2021136200A1 (en) | Bootloader loading method, storage medium, and embedded terminal | |
CN107526574A (en) | The control method and device of system start-up mode | |
CN110119623A (en) | A kind of credible main board implementation method for realizing that firmware is actively measured using TPCM | |
CN105589699A (en) | Serial number information update method, device and terminal | |
CN112433769A (en) | BMC starting method and device, computer equipment and storage medium | |
CN113760332A (en) | Software upgrading method and electronic equipment | |
CN105045671A (en) | Method and device for upgrading systems of intelligent terminals | |
CN103455750A (en) | High-security verification method and high-security verification system for embedded devices | |
CN105740025A (en) | Bluetooth based firmware program upgrading method and apparatus | |
CN107332589A (en) | A kind of device for upgrading firmware based on bluetooth | |
CN106484442B (en) | Server system and method for updating startup mapping file | |
EP4092524B1 (en) | Ota differential upgrade method and system of master-slave architecture | |
CN110688136A (en) | Application program updating method and device | |
CN107453959B (en) | Network card management method and device | |
CN105704707A (en) | Slave equipment and air upgrading method thereof |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |