CN102739442A - Method and system for carrying out software updating on equipment - Google Patents
Method and system for carrying out software updating on equipment Download PDFInfo
- Publication number
- CN102739442A CN102739442A CN2012101846066A CN201210184606A CN102739442A CN 102739442 A CN102739442 A CN 102739442A CN 2012101846066 A CN2012101846066 A CN 2012101846066A CN 201210184606 A CN201210184606 A CN 201210184606A CN 102739442 A CN102739442 A CN 102739442A
- Authority
- CN
- China
- Prior art keywords
- mainboard
- silence
- mourning
- slave board
- notice
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method for carrying out software updating on equipment. The method comprises the following steps that: a master board sends a silent notice to a secondary board before the software updating starts; the secondary board closes a communication link with the master board after the silent notice is received, and opens a silent timer; the master board starts to carry out the software updating, can return back to an old software version if the master board is successful to update or the master board is failed to update, and reset the secondary board; after the secondary board is reset, the communication link with the master board is re-opened; and if the silent timer is overtime, the secondary board re-opens the communication link with the master board so as to compete to be as a mainly used board. With the method provided by the invention, a communication service can be ensured to be recovered after the master board is failed to update, so that the influence on the communication service of communication equipment, caused by failure of the software updating, can be reduced. The invention further discloses a system for carrying out the software updating on the equipment.
Description
Technical field
The present invention relates to communication technical field, in particular a kind of equipment is carried out software upgrade method and system.
Background technology
For communication equipment, because the situation that upgrading possibly occur failing, therefore; Popular way is at present: when upgrade software, used version software before keeping is installed new version software simultaneously; If redaction is upgraded successfully, just can submit the affirmation redaction to, redaction is forever come into force; If redaction upgrading failure automatically switches to the rollback that early version is accomplished software version after then system restarts.
But such upgrade method is also incomplete for nobody situation at the scene of remote upgrade; Because, after the redaction upgrading failure, probably can't realize software version rollback (such as; Hardware fault appears in equipment, and perhaps upgrading back equipment can't normally start etc.).Therefore, in a single day software upgrading failure and situation that can't rollback appear in communication equipment, and then communication service is absorbed in interruption.
Therefore, in order to alleviate the influence of software upgrading failure to the communication service of communication equipment, the existing software upgrade method also needs further to improve.
Summary of the invention
Technical problem to be solved by this invention provides a kind ofly carries out software upgrade method to equipment, can alleviate the influence of software upgrading failure to the communication service of communication equipment.
In order to solve the problems of the technologies described above, the invention provides and a kind of equipment is carried out software upgrade method, this method comprises:
Mainboard sends the notice of mourning in silence at beginning software upgrading forward direction slave board; After said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence;
Said mainboard begins software upgrading, if said mainboard upgrade successfully, can rollback software version until old after the perhaps said mainboard upgrading failure, then said slave board is resetted; Said slave board after resetting, open again and said mainboard between communication link; If the said timer expiry of mourning in silence, then said slave board are opened again and said mainboard between communication link, compete and be main board.
Further, said slave board close and said mainboard between communication link after, stop and said mainboard between synchronously and main and standby competition; Behind the communication link between said slave board unlatching and the said mainboard, the synchronous and main and standby competition between startup and said mainboard.
Further, mainboard is also judged active and standby whether the completion synchronously before sending the notice of mourning in silence to slave board, be then to send the notice of mourning in silence to slave board, otherwise the said notice of mourning in silence of delayed delivery; Mainboard judges also whether the communication link between said slave board and the said mainboard is in closed condition before the beginning software upgrading, be then to begin software upgrading, otherwise postpones upgrading.
Further, after said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence.
Further, the timing length of the said timer of mourning in silence preestablishes, and is perhaps carried to said slave board in the said notice of mourning in silence by said mainboard.
In order to solve the problems of the technologies described above, the present invention also provides a kind of system that equipment is carried out software upgrading, and this system comprises:
The module of mourning in silence is used for mainboard and sends the notice of mourning in silence at beginning software upgrading forward direction slave board; After said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence;
The upgrading module is used for said mainboard and begins software upgrading, if said mainboard upgrade successfully, perhaps said mainboard is upgraded can rollback software version until old after failing, and then said slave board is resetted; Said slave board after resetting, open again and said mainboard between communication link; If the said timer expiry of mourning in silence, then said slave board are opened again and said mainboard between communication link, compete and be main board.
Further, said slave board close and said mainboard between communication link after, stop and said mainboard between synchronously and main and standby competition; Behind the communication link between said slave board unlatching and the said mainboard, the synchronous and main and standby competition between startup and said mainboard.
Further, mainboard is also judged active and standby whether the completion synchronously before sending the notice of mourning in silence to slave board, be then to send the notice of mourning in silence to slave board, otherwise the said notice of mourning in silence of delayed delivery; Mainboard judges also whether the communication link between said slave board and the said mainboard is in closed condition before the beginning software upgrading, be then to begin software upgrading, otherwise postpones upgrading.
Further, after said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence.
Further, the timing length of the said timer of mourning in silence preestablishes, and is perhaps carried to said slave board in the said notice of mourning in silence by said mainboard.
Compared with prior art, provided by the inventionly a kind of equipment is carried out software upgrade method and system, utilize the intrinsic backup functionality of slave board; Mainboard sends the notice of mourning in silence at beginning software upgrading forward direction slave board, said slave board receive said mourn in silence notify after, close and said mainboard between communication link; The unlatching timer of mourning in silence; If mainboard is upgraded successfully, can rollback software version until old after the perhaps said mainboard upgrading failure, then said slave board is resetted; Said slave board after resetting, open again and said mainboard between communication link; If the said timer expiry of mourning in silence, then said slave board are opened again and said mainboard between communication link, compete and be main board.Said method can ensure that communication service also can recover after mainboard software upgrading failure, thereby has alleviated the influence of software upgrading failure to the communication service of communication equipment.
Description of drawings
Fig. 1 carries out the flow chart of software upgrade method for the embodiment of the invention to equipment.
Fig. 2 is the system configuration sketch map that equipment is carried out software upgrading of the embodiment of the invention.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, hereinafter will combine accompanying drawing that embodiments of the invention are elaborated.Need to prove that under the situation of not conflicting, embodiment among the application and the characteristic among the embodiment be combination in any each other.
As shown in Figure 1, the embodiment of the invention provides a kind of equipment has been carried out software upgrade method, and this method comprises:
S10, mainboard sends the notice of mourning in silence at beginning software upgrading forward direction slave board; After said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence;
S20, said mainboard begins software upgrading, if said mainboard upgrade successfully, can rollback software version until old after the perhaps said mainboard upgrading failure, then said slave board is resetted; Said slave board after resetting, open again and said mainboard between communication link; If the said timer expiry of mourning in silence, then said slave board are opened again and said mainboard between communication link, compete and be main board;
Step S10 further comprises following characteristics:
Wherein, mainboard keeps old software version in this locality before the beginning software upgrading;
Wherein, after said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence;
Wherein, after the communication link between said mainboard and the said slave board is closed, said slave board stop and said mainboard between synchronously and main and standby competition; Therefore, the escalation process of mainboard will can not have influence on the information that backs up on the slave board;
Wherein, the timing length of the said timer of mourning in silence preestablishes, and is perhaps carried to said slave board in the said notice of mourning in silence by said mainboard;
Step S20 further comprises following characteristics:
Wherein, mainboard is also judged active and standby whether the completion synchronously before sending the notice of mourning in silence to slave board, be then to send the notice of mourning in silence to slave board, otherwise the said notice of mourning in silence of delayed delivery; Mainboard judges also whether the communication link between said slave board and the said mainboard is in closed condition before the beginning software upgrading, be then to begin software upgrading, otherwise postpones upgrading;
Wherein, if mainboard upgrade successfully, perhaps can rollback software version until old after the mainboard upgrading failure, said slave board then resets;
Wherein, behind the communication link between said slave board unlatching and the said mainboard, the synchronous and main and standby competition between said slave board startup and the said mainboard;
Wherein, if the said timer expiry of mourning in silence proves that then slave board is not reset, also prove the rollback that mainboard is upgraded and failed and failed to carry out software version; At this moment because mainboard cisco unity malfunction, therefore, slave board open again and said mainboard between communication link, start and mainboard between main and standby competition, competes and be main board, thereby restoring communication is professional;
Said method is applied to the maintenance of remote equipment, during perhaps unattended situation, can ensure that communication service also can recover after mainboard upgrading failure, thereby alleviate the influence of software upgrading failure to the communication service of communication equipment.
As shown in Figure 2, the embodiment of the invention also provides a kind of system that equipment is carried out software upgrading, and this system comprises:
The module of mourning in silence is used for mainboard and sends the notice of mourning in silence at beginning software upgrading forward direction slave board; After said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence;
The upgrading module is used for said mainboard and begins software upgrading, if said mainboard upgrade successfully, perhaps said mainboard is upgraded can rollback software version until old after failing, and then said slave board is resetted; Said slave board after resetting, open again and said mainboard between communication link; If the said timer expiry of mourning in silence, then said slave board are opened again and said mainboard between communication link, compete and be main board.
Wherein, said slave board close and said mainboard between communication link after, stop and said mainboard between synchronously and main and standby competition; Behind the communication link between said slave board unlatching and the said mainboard, the synchronous and main and standby competition between startup and said mainboard.
Wherein, mainboard is also judged active and standby whether the completion synchronously before sending the notice of mourning in silence to slave board, be then to send the notice of mourning in silence to slave board, otherwise the said notice of mourning in silence of delayed delivery; Mainboard judges also whether the communication link between said slave board and the said mainboard is in closed condition before the beginning software upgrading, be then to begin software upgrading, otherwise postpones upgrading.
Wherein, after said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence.
Wherein, the timing length of the said timer of mourning in silence preestablishes, and is perhaps carried to said slave board in the said notice of mourning in silence by said mainboard.
The foregoing description provides a kind ofly carries out software upgrade method and system to equipment, utilizes the intrinsic backup functionality of slave board, and mainboard sends the notice of mourning in silence at beginning software upgrading forward direction slave board; After said slave board receives the said notice of mourning in silence; Close and said mainboard between communication link, open the timer of mourning in silence, if mainboard is upgraded successfully; Can rollback software version until old after the perhaps said mainboard upgrading failure, then said slave board is resetted; Said slave board after resetting, open again and said mainboard between communication link; If the said timer expiry of mourning in silence, then said slave board are opened again and said mainboard between communication link, compete and be main board.Said method can ensure that communication service also can recover after mainboard software upgrading failure, thereby has alleviated the influence of software upgrading failure to the communication service of communication equipment.
One of ordinary skill in the art will appreciate that all or part of step in the said method can instruct related hardware to accomplish through program, said program can be stored in the computer-readable recording medium, like read-only memory, disk or CD etc.Alternatively, all or part of step of the foregoing description also can use one or more integrated circuits to realize, correspondingly, each the module/unit in the foregoing description can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Need to prove; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Claims (10)
1. one kind is carried out software upgrade method to equipment, and this method comprises:
Mainboard sends the notice of mourning in silence at beginning software upgrading forward direction slave board; After said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence;
Said mainboard begins software upgrading, if said mainboard upgrade successfully, can rollback software version until old after the perhaps said mainboard upgrading failure, then said slave board is resetted; Said slave board after resetting, open again and said mainboard between communication link; If the said timer expiry of mourning in silence, then said slave board are opened again and said mainboard between communication link, compete and be main board.
2. the method for claim 1 is characterized in that:
Said slave board close and said mainboard between communication link after, stop and said mainboard between synchronously and main and standby competition;
Behind the communication link between said slave board unlatching and the said mainboard, the synchronous and main and standby competition between startup and said mainboard.
3. according to claim 1 or claim 2 method is characterized in that:
Mainboard is also judged active and standby whether the completion synchronously before sending the notice of mourning in silence to slave board, be then to send the notice of mourning in silence to slave board, otherwise the said notice of mourning in silence of delayed delivery;
Mainboard judges also whether the communication link between said slave board and the said mainboard is in closed condition before the beginning software upgrading, be then to begin software upgrading, otherwise postpones upgrading.
4. according to claim 1 or claim 2 method is characterized in that:
After said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence.
5. according to claim 1 or claim 2 method for upgrading software is characterized in that:
The timing length of the said timer of mourning in silence preestablishes, and is perhaps carried to said slave board in the said notice of mourning in silence by said mainboard.
6. system that equipment is carried out software upgrading, this system comprises:
The module of mourning in silence is used for mainboard and sends the notice of mourning in silence at beginning software upgrading forward direction slave board; After said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence;
The upgrading module is used for said mainboard and begins software upgrading, if said mainboard upgrade successfully, perhaps said mainboard is upgraded can rollback software version until old after failing, and then said slave board is resetted; Said slave board after resetting, open again and said mainboard between communication link; If the said timer expiry of mourning in silence, then said slave board are opened again and said mainboard between communication link, compete and be main board.
7. system as claimed in claim 6 is characterized in that:
Said slave board close and said mainboard between communication link after, stop and said mainboard between synchronously and main and standby competition;
Behind the communication link between said slave board unlatching and the said mainboard, the synchronous and main and standby competition between startup and said mainboard.
8. like claim 6 or 7 described systems, it is characterized in that:
Mainboard is also judged active and standby whether the completion synchronously before sending the notice of mourning in silence to slave board, be then to send the notice of mourning in silence to slave board, otherwise the said notice of mourning in silence of delayed delivery;
Mainboard judges also whether the communication link between said slave board and the said mainboard is in closed condition before the beginning software upgrading, be then to begin software upgrading, otherwise postpones upgrading.
9. like claim 6 or 7 described systems, it is characterized in that:
After said slave board receives the said notice of mourning in silence, close and said mainboard between communication link, open the timer of mourning in silence.
10. like claim 6 or 7 described systems, it is characterized in that:
The timing length of the said timer of mourning in silence preestablishes, and is perhaps carried to said slave board in the said notice of mourning in silence by said mainboard.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210184606.6A CN102739442B (en) | 2012-06-06 | 2012-06-06 | A kind of method and system carrying out software upgrading to equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210184606.6A CN102739442B (en) | 2012-06-06 | 2012-06-06 | A kind of method and system carrying out software upgrading to equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102739442A true CN102739442A (en) | 2012-10-17 |
CN102739442B CN102739442B (en) | 2018-07-31 |
Family
ID=46994272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210184606.6A Active CN102739442B (en) | 2012-06-06 | 2012-06-06 | A kind of method and system carrying out software upgrading to equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102739442B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021036712A1 (en) * | 2019-08-28 | 2021-03-04 | 中兴通讯股份有限公司 | Upgrading method, communication device and computer-readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050262498A1 (en) * | 2004-05-20 | 2005-11-24 | Ferguson Alan L | Systems and methods for remotely modifying software on a work machine |
CN101114935A (en) * | 2007-07-27 | 2008-01-30 | 华为技术有限公司 | System upgrading method, upgrading system and monitoring entity |
CN102412948A (en) * | 2011-11-17 | 2012-04-11 | 盛科网络(苏州)有限公司 | Method and device for realizing high-reliability backup in data oscillation environment |
-
2012
- 2012-06-06 CN CN201210184606.6A patent/CN102739442B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050262498A1 (en) * | 2004-05-20 | 2005-11-24 | Ferguson Alan L | Systems and methods for remotely modifying software on a work machine |
CN101114935A (en) * | 2007-07-27 | 2008-01-30 | 华为技术有限公司 | System upgrading method, upgrading system and monitoring entity |
CN102412948A (en) * | 2011-11-17 | 2012-04-11 | 盛科网络(苏州)有限公司 | Method and device for realizing high-reliability backup in data oscillation environment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021036712A1 (en) * | 2019-08-28 | 2021-03-04 | 中兴通讯股份有限公司 | Upgrading method, communication device and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102739442B (en) | 2018-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101329632B (en) | Method and apparatus for starting CPU by BOOT | |
CN105930236A (en) | Application program version returning method based on BMS Bootloaderupgrade | |
CN103488498A (en) | Computer booting method and computer | |
CN103064715A (en) | Remote upgrade method and system for automatic drive test systems | |
CN102662798A (en) | Data recovery method and terminal for Android system | |
CN101521730A (en) | Method, system and television for automatically upgrading television | |
CN102243594A (en) | Method for safely and remotely upgrading embedded Linux system software | |
CN103533431A (en) | Method and system for realizing system upgrade based on intelligent television, and intelligent television | |
CN101221508A (en) | Equipment starting method and device | |
CN105468475A (en) | Backup method and backup device of database | |
CN109067894A (en) | A kind of method, the system of the online upgrading based on cloud lock system and key reduction | |
CN102163152A (en) | Software upgrading method and device thereof for embedded terminal device | |
CN102890716A (en) | Distributed file system and data backup method thereof | |
CN111182033B (en) | Method and equipment for restoring switch | |
CN100428155C (en) | Upgrading method of communication equipment | |
CN101207519A (en) | Version server, operation maintenance unit and method for restoring failure | |
CN103186390A (en) | Home gateway and software upgrading method thereof | |
CN107918568A (en) | A kind of method for preventing linux system from restarting failure | |
CN101996083A (en) | Mirror image updating method and device | |
CN103092720A (en) | Core processing device used for vehicular terminal and restoring method for core processing device | |
CN101155015A (en) | Synchronization method for data and condition between host computer and standby computer | |
CN102081539A (en) | Reliable software upgrade method for dual-mode terminal | |
CN102457400B (en) | Method for preventing split brain phenomenon from occurring on distributed replicated block device (DRBD) resource | |
CN102739442A (en) | Method and system for carrying out software updating on equipment | |
CN112269692A (en) | Remote upgrading power-off self-recovery mechanism for network camera |
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 |