CN100583782C - Software upgrade method and device - Google Patents

Software upgrade method and device Download PDF

Info

Publication number
CN100583782C
CN100583782C CN200710176214A CN200710176214A CN100583782C CN 100583782 C CN100583782 C CN 100583782C CN 200710176214 A CN200710176214 A CN 200710176214A CN 200710176214 A CN200710176214 A CN 200710176214A CN 100583782 C CN100583782 C CN 100583782C
Authority
CN
China
Prior art keywords
upgrading
atom level
updating operation
identification number
tool
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
CN200710176214A
Other languages
Chinese (zh)
Other versions
CN101145973A (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 Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200710176214A priority Critical patent/CN100583782C/en
Publication of CN101145973A publication Critical patent/CN101145973A/en
Application granted granted Critical
Publication of CN100583782C publication Critical patent/CN100583782C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a software upgrading method and device. The software upgrading method comprises constructing connection between an upgrading tool and an upgrading object; checking whether an upgrading operation identification number is present in the upgrading object, detecting in the database of the upgrading tool to determine whether a corresponding identification number is present if the upgrading operation identification number is present, and starting corresponding upgrading operation if the corresponding identification number is present; collecting the serial numbers of atom-level operations that has been completed of the upgrading object, transmitting atom-level operation commands accordingly, and saving the serial number of the current operation; and transmitting next atom-level operation command according to the sequence of the atom-level operations when the upgrading tool detects that the current atom-level operation is completed. The software upgrading device comprises functional modules capable of executing the software upgrading method of the invention. The invention can effectively control the progress of the upgrading operation to prevent the upgrading operation from getting out of control and obviate the influence on the upgrading object resulting from interrupt exit, and can also save the resources and time occupied by repeatedly executing steps while continuing the upgrading operation.

Description

Method for upgrading software and device
Technical field
The present invention relates to a kind of method for upgrading software and device, relate in particular to a kind of method for upgrading software and device that adopts software upgrade tool to carry out.
Background technology
Software upgrading is that radio operation is safeguarded (Operations ﹠amp; Maintenance is hereinafter to be referred as OM) one of important scenes.Wireless network, as the software upgrading of GSM, CDMA and WCDMA etc. from the preceding preparation of upgrading, formally be upgraded to time of upgrading back checking often will continuing couple of days; Usually need version to wrap to carry, health examination, data backup, early version unloading, redaction are installed, the foreground resets and professional checking or the like step, therefore often have following defective: update time is long; Upgrade step is loaded down with trivial details; O﹠M personnel technical ability is required high.The influence of software release upgrade is great, but reliability is low, is the weakness of wireless OM for a long time always.
For solving the difficult problem of software release upgrade, replace manual upgrading just becoming a kind of selection with upgrading tool, upgrading tool just develops towards the direction of simplification, automation, long-range, mass, its function from strength to strength, saving update time, reducing with aspects such as the requirement of clothes technical ability, minimizing error probabilities and bringing into play bigger effect, finally reach the purpose that reduces cost, improves customer satisfaction.Generally finish the software upgrading of upgrading object at present with upgrading tool, upgrading tool need be considered more multifactor in function aspects, focuses on assisting to finish functional links such as data backup, version unloading and installation.
In realizing process of the present invention; the inventor finds in the prior art, the consideration deficiency of upgrading tool aspect the protection of upgrading progress, and there are the following problems at least: before updating operation is normally finished; if upgrading tool withdraws from because of a variety of causes, it is out of control to cause upgrading.The influence out of control of upgrading, with the telecommunication apparatus is example, generally be presented as: the interruption of updating operation is withdrawed from and can be caused service disconnection, promptly can not normal talking, the service disconnection of telecommunication apparatus may continue the long period, had a strong impact on the operate as normal of equipment, and, if the updating operation that telecommunication apparatus is carried out is interrupted if just finish, when starting upgrading tool once more and carry out updating operation, may no longer respond new updating operation, this nondeterministic statement out of control can cause loss in various degree; Even upgrading object responds after restarting upgrading tool, upgrading tool also can begin to walk flow process from the first step of updating operation, can not cause repeating away flow process even can cause the upgrading failure from completed step continues before.
Situation that software upgrading operation is withdrawed from, normally upgrading tool withdraws from escalation process and causes, and its reason mainly comprises following several:
(1) withdraw from unusually:
1. because the bugs (BUG) of upgrading tool self causes run-time exception to withdraw from;
2. because communication failure, interrupt, cause upgrading tool and upgrading object out of touch and withdraw from unusually such as network takes place in the remote upgrade procedure;
3. because carrying out " withdrawing from " operation, operating personnel's mistake withdraws from unusually;
(2) normally withdraw from
In whole software upgrading flow process, because some link is consuming time longer, perhaps need to wait for after some condition satisfies and just can proceed, then operating personnel can select to withdraw from earlier upgrading tool, rerun upgrading tool etc. condition again after satisfying, follow follow-up upgrading, base station controller (Base StationController for example, hereinafter to be referred as BSC) after main frame upgrading finishes, operating personnel can observe the time of a couple of days, guarantee the normal operation of redaction after, again emergency work station is upgraded, in the observing time of this a couple of days, can withdraw from upgrading tool earlier.
As seen, it is inevitable that the interruption in the software upgrading operation is withdrawed from some, and some is should be interrupted, and so, how avoiding interrupting withdrawing from the influence that brings to the software upgrading operation is the problem that the present invention will solve.
Summary of the invention
The embodiment of the invention provides a kind of method for upgrading software and device, interrupting updating operation when withdrawing to overcome in the prior art software upgrade tool, updating operation can be out of control and upgrading object is constituted the problem of influence, improve the reliability of updating operation, and save shared resource of updating operation and the time of repeating when updating operation restarts.
The present invention provides a kind of method for upgrading software by some embodiment, comprises the steps:
Upgrading tool and upgrading object connect;
Upgrading tool detects in the upgrading object whether have the updating operation identification number, if exist, then in the database of upgrading tool, inquire about whether there is corresponding updating operation identification number, if then the upgrading tool correspondence starts updating operation according to this updating operation identification number;
Upgrading tool is gathered the sequence number of its completed atom level operation in upgrading object, according to the atom level operation sequence number that collects, issue the atom level operational order to upgrading object, and the sequence number correspondence of the pairing atom level operation of the current atom level operational order that issues is kept in the upgrading object;
Upgrading tool is according to the order of atom level operation, when detecting current atom level operation and finished, issues next atom level operational order.
The present invention provides a kind of software updating apparatus by other embodiment, comprising:
Detection module is used for detecting in the upgrading object whether have the updating operation identification number when starting updating operation;
The updating operation identification module, the testing result that is used for when detection module is that object does not exist under the situation of updating operation identification number, the updating operation identification number is set is saved in updating operation identification module and the upgrading object; Or when the testing result of detection module be to exist in the object under the situation of updating operation identification number, the updating operation identification number that updating operation identification number and the updating operation identification module stored in the described upgrading object are stored compares;
Atom level operation sequence number acquisition module is used for gathering atom level operation sequence number according to comparative result from upgrading object;
The updating operation module, be used for issuing the atom level operational order to upgrading object, and the sequence number correspondence of the pairing atom level operation of the current atom level operational order that issues is kept in the upgrading object according to the testing result of detection module and/or the atom level operation sequence number of atom level operation sequence number acquisition module collection.
In technique scheme, software upgrading operation is divided into several atom level operations, and the updating operation identification number has been preserved in the respective upgrades operation in upgrading tool and upgrading object, and along with the carrying out of atom level operation, in upgrading object corresponding record the sequence number of atom level operation.After upgrading object receives each atom level operational order, carry out current atom level operation, finish and keep current state after the operation of current atom level and wait for next order, promptly seal current updating operation state up for safekeeping, when updating operation is interrupted, when upgrading tool withdraws from, also can keep this state, then the progress of software upgrading can effectively be controlled.Then technique scheme has realized when upgrading tool interrupts withdrawing from, it is out of control can not cause upgrading, upgrading object is constituted influence, and when upgrading tool is connected once more with upgrading object, can save shared resource of updating operation step and the time of repeating according to updating operation identification number and the atom level operation sequence number last updating operation that correctly continues.
Also in conjunction with the accompanying drawings the present invention is described in further detail below by specific embodiment.
Description of drawings
Fig. 1 is the flow chart of method for upgrading software specific embodiment one of the present invention;
Fig. 2 is the flow chart of method for upgrading software specific embodiment two of the present invention;
Fig. 3 is the structural representation of software updating apparatus specific embodiment of the present invention.
Embodiment
Method for upgrading software embodiment one
Be illustrated in figure 1 as the flow chart of method for upgrading software specific embodiment one of the present invention, the method for upgrading software of present embodiment is the upgrading tool of software when upgrading object is carried out updating operation, and performed flow process specifically comprises the steps:
Step 1, upgrading tool and upgrading object connect;
Step 2, upgrading tool detect in the upgrading object whether have the updating operation identification number, if exist, then execution in step 3, if do not exist, then finish updating operation or carry out other flow processs;
Step 3, upgrading tool inquire about whether there is corresponding updating operation identification number according to this updating operation identification number in the upgrading tool self database, if then execution in step 4, if not, then finish updating operation or carry out other flow processs;
Step 4, upgrading tool start corresponding updating operation according to this updating operation identification number;
Step 5, upgrading tool are gathered the sequence number of its completed atom level operation in upgrading object, according to the atom level operation sequence number that collects, issue the atom level operational order of next sequence number to upgrading object, and the sequence number correspondence of current atom level operational order is kept in the upgrading object;
The order that step 6, upgrading tool are operated according to atom level, when detecting the operation of current atom level and finished, issue next atom level operational order, withdraw from up to monitoring this updating operation, withdrawing from of updating operation can be finished for whole atom level operational orders, updating operation is finished, and perhaps can be dropping by the wayside that operating personnel select, perhaps can also be for withdrawing from unusually.
After upgrading object issues the atom level operational order, can also comprise in above-mentioned steps 5: this atom level operational order is used to make upgrading object after receiving this atom level operational order, finishes this atom level operation, and keeps completion status.
In the technical scheme of present embodiment, the equal correspondence of each updating operation of upgrading tool is assigned unique identification number, and is kept at respectively in software upgrade tool and the upgrading object.And upgrading tool is divided into several atom level operations with a updating operation, and each atom level operation correspondence has sequence number, when carrying out this atom level operation, its sequence number is saved in the upgrading object, so that after updating operation interrupts withdrawing from, can continue according to sequence number when starting once more.
So-called atom level operation is meant that this operational motion can not be divided into thinner operation, though perhaps certain operation can be divided into some more tiny operations, it is looked as a whole on processing logic, all carries out during execution, all cancels when cancelling.With " the long-range one-touch upgrading tool of cdma base station subsystem (CDMA Base StationSub-System; hereinafter to be referred as CBSS) " is example, the whole process of CBSS software upgrading can be divided into following link: client land main computer → upgrade parameter setting → upload US to the US of main computer → synchronously to guest machine → upload installation kit to main computer → synchronous installation kit to guest machine → man-machine language (MML) the command execution feasibility inspection → system operation situation health examination → standby Back Administration Module of upgrading (Back Administration Module is hereinafter to be referred as the BAM) → active and standby BAM that is obstructed → upgrades is set switch → upgrade foreground → another BAM of business checking → upgrading.How to divide and formerly can handle flexibly according to actual conditions in level operation, such as " upgrading backstage BAM " this link, both can be considered an atom level operation, also can segment out " backup configuration data " → " backup legacy version software " → a plurality of atom level operations such as " unloading legacy version " → " installation redaction " → " configuration data loading ".
After updating operation begins, upgrading tool is carried out the atom level operation according to step 1 of upgrading flow process step ground, upgrading tool sequences preface according to the upgrading flow process with these atom level operations, whenever executing an atom level operation just notes, recording mode is the sequence number of current atom level operation to be write into the operating system of upgrading object, for example in the registration table of Windows operating system, perhaps also can write in the progress record file of independently upgrading, upgrade the atom level operation sequence number of having stored.
If upgrading tool normally withdraws from or withdraws from unusually before updating operation is not finished, updating operation can be sealed up for safekeeping a period of time.So-called sealing up for safekeeping, usually should carry out at the available attitude of upgrading object, after for example upgrading object is upgraded to redaction, can withdraw from upgrading tool, observe a couple of days, be seal up for safekeeping this moment, then carries out the subsequent upgrade operation again after normal etc. redaction operation a couple of days, brings to a happy ending up to whole upgrading activity.And be in sealing up for safekeeping of unavailable attitude execution for upgrading object, and allow within a certain period of time, promptly can seal the short period up for safekeeping, but should finish unavailable attitude as early as possible.A kind of concrete way of realization is to guarantee when " seal up for safekeeping ", when finish " sealing up for safekeeping " by the updating operation personnel, if tool abnormality withdraws from, then should connect as early as possible.For example upgrading tool just withdraws from after having issued " BSC host reset " order to upgrading object, upgrading object is after receiving this order, can under the situation that does not have the upgrading tool support, continue to execute host reset and restart this atom level operation, keep this state then, wait for next bar operational order, professional unaffected at waiting time BSC main frame promptly after executing " BSC host reset " this atom level operation, sealed current software upgrading operation up for safekeeping.According to residing atom level operation link difference, there is the long weak point that has the time that allows to seal up for safekeeping, different atom level operations is different to the influence of upgrading object, upgrading object was in stable state, professional available attitude after the atom level operation that has was finished, then the time of sealing up for safekeeping can be longer relatively, after finishing, the atom level operation that has causes service disconnection, and then subsequent operation, and then the time of sealing up for safekeeping should be shorter relatively.For example: after carrying out the operation of " unloading legacy version " atom level, do not had business software in the upgrading object, then be in down state, must and then carry out the atom level operation of " installation redaction ", entered new stable, an available attitude.Upgrading object generally is not fully normal running status between preservation life, needs upgrading tool to connect as early as possible and finishes remaining upgrading activity.
When upgrading tool restarts, and finish land checking after, the identification number that software upgrading operation identification number that self is preserved and upgrading object are preserved contrasts, three kinds of situations appear in the possibility of result that upgrading tool detects identification number: 1) there is identification number and identical with the identification number stored in the upgrading tool in upgrading object, show that updating operation was not just finished and withdrawed from last time, can continue upgrading after then restarting; 2) have identification number in the upgrading object but different with the identification number stored in the upgrading tool, showing has the another one upgrading tool carrying out updating operation, and then this upgrading tool can not be carried out updating operation to this upgrading object; 3) there is not identification number in the upgrading object, then can begins once brand-new upgrading.After the identification number coupling went up, promptly first kind of situation showed that this upgrading tool is the execution instrument of not finishing updating operation last time.Then upgrading tool reads the sequence number that completed atom level is operated in registration table or upgrading progress record file, begins to carry out remaining updating operation from next sequence number then.
Technique scheme; can be with the atom level unit of being operating as of software upgrading operation; the upgrading progress is sealed up for safekeeping; then the progress of software upgrading can effectively be controlled; when upgrading tool normally or unusually withdraws from; the upgrading object that causes out of control that also can not cause upgrading is in unavailable or mix; upgrading object is constituted influence; improved the reliability of updating operation; and can withdraw from when reconnecting at upgrading tool; the last updating operation that continues has been avoided resource and temporal waste, and has been satisfied the flexibility demand in user's use.
Method for upgrading software embodiment two
Be illustrated in figure 2 as the flow chart of method for upgrading software specific embodiment two of the present invention, present embodiment is on the basis of embodiment one, if in the step 2, upgrading tool detects when not having the updating operation identification number in the upgrading object, the third situation promptly appears, an embodiment then carrying out other flow processs is to start a new updating operation, is specially and carries out following step:
Steps A 1, upgrading tool start a new updating operation, and this new updating operation is provided with the updating operation identification number, this updating operation identification number is kept in the upgrading tool, and correspondence are kept in the upgrading object;
Steps A 2, upgrading tool begin to carry out updating operation from first atom level operation of new updating operation;
Steps A 3, upgrading tool issue the atom level operational order to upgrading object, and the sequence number correspondence of current atom level operational order is kept in the upgrading object;
Steps A 4, upgrading tool be according to the order of atom level operation, when detecting current atom level operation and finished, issues next atom level operational order, withdraws from up to monitoring this updating operation.
In the above-described embodiments, when upgrading object is not finished updating operation, then upgrading object can start a new updating operation, and the unique updating operation identification number of corresponding distribution, simultaneously when carrying out each atom level operation, its sequence number is kept in the upgrading object, when interrupting in order to updating operation, can make upgrading object maintain current atom level operates under the state of finishing, and operation can continue when updating operation starts once more, avoid occurring upgrading object because of the operation exception that causes out of control of upgrading, and saved updating operation and rerun resource and the time of being wasted.
Method for upgrading software embodiment three
Method for upgrading software specific embodiment three of the present invention is based on embodiment one technical scheme, in the step 3 of embodiment one, if upgrading tool detect in its data storehouse not with upgrading object in the corresponding updating operation identification number of updating operation identification number the time, second kind of situation promptly occur, a kind of embodiment of then carrying out other flow processs is to carry out following step:
Step B1, upgrading tool are to the upgrading object message that gives a warning, and this alert message is used to point out upgrading object to have a uncompleted updating operation.
The technical scheme of present embodiment can prevent that the updating operation execution is chaotic, because for a upgrading object, can not have two updating operation that are in active state simultaneously, for example from the A edition upgrading to the B version, to the C version, these two updating operation can not be carried out simultaneously from the B edition upgrading.So upgrading tool need detect upgrading object and whether carry out updating operation.Technique scheme, existing one does not finish updating operation in detecting upgrading object, and current upgrading tool is not a corresponding instrument of carrying out this updating operation, then should point out the user, waits for and finishes the updating operation of carrying out this instrument correspondence in the upgrading object after the existing updating operation again.
The situation of updating operation confusion also may appear at the user and operate a certain upgrading tool and carry out having started once same updating operation again in the process of a updating operation, for guaranteeing normally carrying out of updating operation, can carry out following step so:
After upgrading tool and upgrading object connect, when upgrading tool detects the log-on message of a updating operation, judge whether there is the updating operation identification number in the upgrading object,, then cancel the start-up operation once more of updating operation if exist.
Above-mentioned technical scheme has effectively stoped has no progeny in updating operation or the operation of another updating operation when carrying out, and the updating operation that operation causes when can prevent because of updating operation is out of control.
Method for upgrading software embodiment four
Method for upgrading software specific embodiment four of the present invention is with the difference of embodiment one: in the step 5 of embodiment one, upgrading tool is according to the atom level operation sequence number that collects, issue the atom level operational order of next sequence number of the atom level operation sequence number that collects to upgrading object, the previous step that promptly continues is carried out suddenly, and in the present embodiment, upgrading tool is according to the atom level operation sequence number that collects, and the step that issues the atom level operational order to upgrading object is specially:
Step 51, upgrading tool are set to the atom level operation sequence number that collects in the prompting message, and send this prompting message to upgrading object, are used to point out the state of the present completed updating operation of upgrading object;
Step 52, upgrading tool are after receiving the response of upgrading object to this prompting message, if detect in this response parameter to empty, then issue the atom level operational order of next sequence number of atom level operation sequence number that collects, as if being set with sequence number in the parameter that detects this response, then issue the atom level operational order of setting sequence number.
In the technical scheme of embodiment one, can realize updating operation in have no progeny can continue when restarting last time updating operation proceed, and the technical scheme of present embodiment, for the user provides updating operation method more flexibly, the step that upgrading tool proceeds to the current updating operation of the user prompt of upgrading object, the user can reply definite response, then continue to carry out updating operation from next step, the sequence number of a certain atom level operation before the user also can be provided with in the parameter of response, promptly the arbitrary step from the front begins to carry out, after this response replied to upgrading tool, upgrading tool was promptly carried out updating operation according to the parameter in the response.Certainly, the repeating property of each atom level operation may be had nothing in common with each other in the updating operation, and upgrading tool can further point out the user can select from which step to begin to re-execute as the case may be.
Software updating apparatus embodiment
Be illustrated in figure 3 as the structural representation of software updating apparatus specific embodiment of the present invention, this device comprises:
Detection module 10 is used for detecting in the upgrading object whether have the updating operation identification number when starting updating operation; Updating operation identification module 20, the testing result that is used for when detection module 10 is that upgrading object does not exist under the situation of updating operation identification number, the updating operation identification number is set to be saved in updating operation identification module 20 and the upgrading object, or when the testing result of detection module 10 be to exist in the upgrading object under the situation of updating operation identification number, the updating operation identification number that updating operation label and the updating operation identification module 20 stored in the upgrading object are stored compares; Atom level operation sequence number acquisition module 30 is used for gathering atom level operation sequence number according to comparative result from upgrading object; Updating operation module 40, be used for issuing the atom level operational order to upgrading object, and the sequence number correspondence of current atom level operational order is kept in the upgrading object according to the atom level operation sequence number that the testing result and/or the atom level operation sequence number acquisition module 30 of detection module 10 are gathered.
The software updating apparatus of present embodiment can be realized the technical scheme of method for upgrading software any embodiment of the present invention.Wherein, updating operation identification module 20 specifically can be made up of following unit, as shown in Figure 3: unit 201 is set, be used for when testing result be that upgrading object is not when existing the updating operation identification number, one new updating operation identification number is set, and is saved in and is provided with in unit 201 and the upgrading object; Comparing unit 202, be used for when testing result be upgrading object when having the updating operation identification number, detected updating operation identification number and the updating operation identification number that storage in the unit 201 is set are compared.Updating operation module 40 specifically can be made up of following unit, as shown in Figure 3: starting and upgrading unit 401, when being used for testing result when detection module 10 and being upgrading object and not having the updating operation identification number, start a new updating operation, promptly issue first atom level operational order, and the sequence number correspondence of current atom level operational order is kept in the upgrading object to upgrading object; Upgrading contiguous unit 402, the testing result that is used for when detection module is that upgrading object exists under the situation of updating operation identification number, issue the atom level operational order according to the atom level operation sequence number that collects to upgrading object, and the sequence number correspondence of current atom level operational order is kept in the upgrading object, last updating operation promptly continues.In concrete the application, this updating operation module 40 can also be operated sequence number and in conjunction with comparative result, determine the atom level operational order that should issue according to atom level.
The technical scheme of present embodiment can improve the reliability of updating operation, and saves shared resource of updating operation and the time of repeating when updating operation restarts.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1, a kind of method for upgrading software comprises the steps:
Upgrading tool and upgrading object connect;
Upgrading tool detects whether there is the updating operation identification number in the described upgrading object, if exist, then in the database of upgrading tool, inquire about whether there is corresponding updating operation identification number, if then the upgrading tool correspondence starts updating operation according to this updating operation identification number;
Upgrading tool is gathered the sequence number of its completed atom level operation in upgrading object, according to the atom level operation sequence number that collects, issue the atom level operational order to upgrading object, and the sequence number correspondence of the pairing atom level operation of the current atom level operational order that issues is kept in the upgrading object;
Upgrading tool is when detecting the operation of current atom level and finished, and the order according to the atom level operation issues next atom level operational order.
2, method for upgrading software according to claim 1, it is characterized in that, after upgrading object issues the atom level operational order, also comprise: described atom level operational order is used to make upgrading object to finish this atom level operation after receiving this atom level operational order, and keeps completion status.
3, method for upgrading software according to claim 1 and 2 is characterized in that, if upgrading tool detects when not having the updating operation identification number in the upgrading object, then carries out following step:
Upgrading tool starts a new updating operation, and corresponding described new updating operation is provided with the updating operation identification number, described updating operation identification number is kept in the upgrading tool, and correspondence is kept in the upgrading object;
Upgrading tool is from first atom level operation beginning software upgrade operation of described new updating operation;
Upgrading tool issues the atom level operational order to upgrading object, and the sequence number correspondence of the pairing atom level operation of the current atom level operational order that issues is kept in the upgrading object;
Upgrading tool is according to the order of atom level operation, when detecting current atom level operation and finished, issues next atom level operational order.
4, method for upgrading software according to claim 1 and 2, it is characterized in that, if detecting in the upgrading object, upgrading tool has the updating operation identification number, and detect in its data storehouse not with upgrading object in the corresponding updating operation identification number of updating operation identification number, then carry out following step:
Upgrading tool is used for prompting and has a uncompleted updating operation to the upgrading object message that gives a warning.
5, method for upgrading software according to claim 1 and 2, it is characterized in that, after upgrading tool and upgrading object connect, also comprise: when upgrading tool detects the log-on message of a updating operation, judge and whether have the updating operation identification number in the upgrading object, if exist, then cancel the start-up operation of described updating operation.
6, method for upgrading software according to claim 1 and 2, it is characterized in that, the atom level operation sequence number that described basis collects, the step that issues the atom level operational order to upgrading object is specially: upgrading tool issues the atom level operational order of next sequence number of the atom level operation sequence number that collects to upgrading object.
7, method for upgrading software according to claim 1 and 2, it is characterized in that, the atom level operation sequence number that described basis collects, the step that issues the atom level operational order to upgrading object is specially: upgrading tool is set to the atom level operation sequence number that collects in the prompting message, and send described prompting message to upgrading object, after receiving the response of upgrading object, issue the atom level operational order that the atom level that collects is operated the sequence number of setting in the parameter of next sequence number of sequence number or described response to prompting message.
8, a kind of software updating apparatus is characterized in that, comprising:
Detection module is used for detecting in the upgrading object whether have the updating operation identification number when starting updating operation;
The updating operation identification module, the testing result that is used for when detection module is that upgrading object does not exist under the situation of updating operation identification number, the updating operation identification number is set is saved in updating operation identification module and the upgrading object; Or when the testing result of detection module be to exist in the upgrading object under the situation of updating operation identification number, the updating operation identification number that updating operation label and the updating operation identification module stored in the described upgrading object are stored compares;
Atom level operation sequence number acquisition module is used for gathering atom level operation sequence number according to comparative result from upgrading object;
The updating operation module, be used for issuing the atom level operational order to upgrading object, and the sequence number correspondence of the pairing atom level operation of the current atom level operational order that issues is kept in the upgrading object according to the testing result of detection module and/or the atom level operation sequence number of atom level operation sequence number acquisition module collection.
9, software updating apparatus according to claim 8 is characterized in that, described updating operation identification module comprises:
The unit is set, be used for when testing result be upgrading object when not having the updating operation identification number, the updating operation identification number is set, and is saved in and is provided with in unit and the upgrading object;
Comparing unit, be used for when testing result be upgrading object when having the updating operation identification number, detected updating operation identification number and the described updating operation identification number of storing in the unit that is provided with are compared.
10, according to Claim 8 or 9 described software updating apparatus, it is characterized in that described updating operation module comprises:
The starting and upgrading unit, the testing result that is used for when detection module is that upgrading object does not exist under the situation of updating operation identification number, issue first atom level operational order to upgrading object, and the sequence number correspondence of the pairing atom level operation of the current atom level operational order that issues is kept in the upgrading object;
The upgrading contiguous unit, the testing result that is used for when detection module is that upgrading object exists under the situation of updating operation identification number, issue the atom level operational order according to the atom level operation sequence number that collects to upgrading object, and the sequence number correspondence of the pairing atom level operation of the current atom level operational order that issues is kept in the upgrading object.
CN200710176214A 2007-10-23 2007-10-23 Software upgrade method and device Active CN100583782C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710176214A CN100583782C (en) 2007-10-23 2007-10-23 Software upgrade method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710176214A CN100583782C (en) 2007-10-23 2007-10-23 Software upgrade method and device

Publications (2)

Publication Number Publication Date
CN101145973A CN101145973A (en) 2008-03-19
CN100583782C true CN100583782C (en) 2010-01-20

Family

ID=39208288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710176214A Active CN100583782C (en) 2007-10-23 2007-10-23 Software upgrade method and device

Country Status (1)

Country Link
CN (1) CN100583782C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207791B (en) * 2012-01-17 2016-03-02 深圳市宏电技术股份有限公司 Remote upgrade method, system and data terminal
CN102594568A (en) * 2012-03-23 2012-07-18 南京小网科技有限责任公司 Method for ensuring safety of mobile equipment software mirror image based on multilevel digital certificate
CN103716696A (en) * 2013-12-16 2014-04-09 乐视致新电子科技(天津)有限公司 System software upgrading method and smart television
CN105094860A (en) * 2014-05-05 2015-11-25 中兴通讯股份有限公司 Terminal software online upgrade method and device
CN106959866B (en) * 2016-01-08 2020-12-01 阿里巴巴集团控股有限公司 Log collection client and upgrading method thereof
CN107528714B (en) * 2016-06-22 2023-01-20 中兴通讯股份有限公司 Script processing method, device and system and router
EP3438815B1 (en) * 2016-12-06 2023-11-22 AutoNetworks Technologies, Ltd. Program update system and program update method
CN107231438A (en) * 2017-07-25 2017-10-03 成都西加云杉科技有限公司 Data-updating method and device
CN113630462B (en) * 2021-08-09 2022-06-03 北京城建设计发展集团股份有限公司 Method and system for realizing equipment down-control of data center

Also Published As

Publication number Publication date
CN101145973A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
CN100583782C (en) Software upgrade method and device
CN105912356B (en) A kind of optical module firmware program on-line upgrading method for supporting version rollback
CN100472442C (en) Device and method for on-line updating fastener programm
US8930931B2 (en) Information processing apparatus using updated firmware and system setting method
CN102023881B (en) Method and device for upgrading software as well as embedded device
US8914488B2 (en) Method and system for monitoring a monitoring-target process
CN103713925A (en) Method and device for avoiding service interruption of storage array in upgrading process
CN104734979A (en) Control method for storage device externally connected with router
CN111399879A (en) Firmware upgrading system and method of CP L D
CN112199240B (en) Method for switching nodes during node failure and related equipment
CN110119330A (en) Method for automatically restoring BIOS file of cloud backup server BIOSROM
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN110704228A (en) Solid state disk exception handling method and system
CN112948182B (en) Method and system for recovering and upgrading emergency backup of set top box
CN102708023B (en) Back-up system counter, group system, the method that service is provided and recording medium
CN110825547B (en) PCIE card exception recovery device and method based on SMBUS
US20130111454A1 (en) Technique for updating program being executed
US9058264B2 (en) Method for repairing communication abnormality between data card and host and data card
US20070233951A1 (en) Disk array apparatus, and control method and control program recording medium
CN101420329B (en) Method for upgrading communication system and communication system therefor
CN109086085A (en) A kind of os starting management method and device
JP5145910B2 (en) Information processing apparatus and information processing method
US20130198377A1 (en) Control method, control system, information processing apparatus, and computer-readable non-transitory medium
US7640456B2 (en) Information processor and data communication control method capable of preventing problems in data communication caused by breakdowns
CN111756554B (en) Power management method and power management switch

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant