CN100543688C - The method of device upgrade - Google Patents

The method of device upgrade Download PDF

Info

Publication number
CN100543688C
CN100543688C CNB2007101950374A CN200710195037A CN100543688C CN 100543688 C CN100543688 C CN 100543688C CN B2007101950374 A CNB2007101950374 A CN B2007101950374A CN 200710195037 A CN200710195037 A CN 200710195037A CN 100543688 C CN100543688 C CN 100543688C
Authority
CN
China
Prior art keywords
thread
upgraded
upgrading
equipment
upgrade
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.)
Expired - Fee Related
Application number
CNB2007101950374A
Other languages
Chinese (zh)
Other versions
CN101178670A (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.)
Yichun Power Supply Co Of State Grid Heilongjiang Electric Power Co ltd
State Grid Corp of China SGCC
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007101950374A priority Critical patent/CN100543688C/en
Publication of CN101178670A publication Critical patent/CN101178670A/en
Application granted granted Critical
Publication of CN100543688C publication Critical patent/CN100543688C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method of device upgrade, comprising: be the worker thread of devices allocation to be upgraded free time; Institute's assignment thread is carried out updating operation according to the ROMPaq of configuration to this equipment to be upgraded.Device updating method of the present invention, configuration updating operation program and on control end in order to realize the thread of specific function, after ROMPaq starts, co-ordination between each thread can realize the auto-update of batch device need not user's manual operations, improved upgrading efficient, reduced upgrading the risk and cost, and the escalation process may command, the upgrading progress can show.

Description

The method of device upgrade
Technical field
The present invention relates to the device upgrade technology, relate in particular to a kind of method of device upgrade.
Background technology
In order to satisfy the ever-increasing business demand of user, need upgrade to equipment usually, comprise HardwareUpgring and software upgrading.Wherein, software upgrading can realize, strong functions abundanter more than HardwareUpgring more flexibly.The method for upgrading software that prior art is commonly used, as shown in Figure 1, Fig. 1 is the synoptic diagram of device upgrade in the prior art, upgrading service logic control software is installed on the control end, control end is by Secure Shell (SSH, Secure Shell) or the Telnet mode be remotely logged into updating apparatus, send to updating apparatus by user's manual input operation order on control end, comprise: file download, document copying, create directory, restart process etc., updating apparatus is carried out the operational order that is received, thus the upgrading of the equipment of realization.Wherein, upgrade server has upload file, file in download, operating right such as create directory, deltree, for updating apparatus provide file download, service such as upload.
But, along with equipment use increasingly extensive, the quantity of equipment increases sharply, and the place of distribution becomes increasingly complex, and makes that the workload of device upgrade is increasing, the upgrading difficulty is also more and more higher, and owing to the manual repetitive operation that is operating as of device upgrade, the error rate of operation is higher, and the upgrading risk is bigger, upgrade cost also rises along with increasing of equipment, and therefore manual updating operation of the prior art can't satisfy the needs of practical application.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of method of device upgrade, with solve device upgrade workload in the prior art big, have a big risk, problem that cost is high.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method of device upgrade, comprising:
Worker thread for the devices allocation to be upgraded free time;
Institute's assignment thread is carried out updating operation according to the ROMPaq of configuration to described equipment to be upgraded.
Wherein, described is the worker thread of devices allocation free time to be upgraded, specifically comprises:
User interface UI sends upgrade request message to management thread, comprises equipment identities sign ID to be upgraded and action type in the described message, and described action type is for beginning upgrading;
Management thread is according to device id to be upgraded and action type in the described upgrade request message, the current state of searching in the internal storage data corresponding described equipment to be upgraded be to be upgraded, suspend, upgrading failure and upgrade overtime wherein a kind ofly, determine that described equipment to be upgraded can carry out the operation that begins to upgrade;
All devices in the described management thread traversal internal memory is to the worker thread of current state for the devices allocation free time of preparation upgrading;
Described management thread sends upgrade to institute's assignment thread.
Wherein, described definite beginning updating operation also comprises after can carrying out:
Management thread to Data Update thread and UI more new thread send Data Update message, comprise device id to be upgraded and dbjective state in the described message, described dbjective state is for preparing upgrading;
Described Data Update thread is updated to the current state of corresponding described equipment to be upgraded in the internal storage data according to Data Update message and prepares upgrading, and described UI more new thread is updated to the state of corresponding described equipment to be upgraded in the display interface according to Data Update message and prepares upgrading;
Described Data Update thread returns to management thread and upgrades the response message that finishes.
Wherein, described Data Update thread also comprises after internal storage data is upgraded:
Described Data Update thread notification data synchronizing thread upgrades;
Internal storage data after described data sync thread will upgrade saves as text and is sent to upgrade server.
Wherein, described is the worker thread of devices allocation free time to be upgraded, further comprises:
Described management thread to UI more new thread send Data Update message, comprise device id to be upgraded and dbjective state in the described message, described dbjective state is during upgrading;
Described UI more new thread is updated to the state of corresponding described equipment to be upgraded in the display interface during upgrading according to Data Update message.
Wherein, described institute assignment thread is treated updating apparatus and is carried out updating operation, specifically comprises:
Described worker thread is resolved the upgrade that is received, and obtains the Internet protocol IP information and the required pseudoinstruction of carrying out operation steps of upgrading of described equipment to be upgraded;
Described worker thread sends the pseudoinstruction of described operation steps to described equipment to be upgraded;
Described equipment to be upgraded is carried out respective phases of operation according to the reception pseudoinstruction.
Wherein, described worker thread is treated updating apparatus and is carried out updating operation, further comprises:
Described equipment to be upgraded returns the step execution result to described worker thread after each operation steps executes, described step execution result for operate successfully, operation failure and operation overtime wherein a kind of;
Described worker thread with described step execution result send to Data Update thread and UI more new thread carry out the renewal of described equipment state to be upgraded.
Wherein, described method further comprises: carry out in the updating operation process at described equipment to be upgraded, described updating operation is suspended, specifically comprise:
UI sends to management thread and suspends request message, comprises equipment identities sign ID to be upgraded and action type in the described message, and described action type is suspended for upgrading;
Management thread travels through all worker threads according to described time-out request message, judge and have the worker thread of carrying out described device upgrade operation to be upgraded, determine that then described equipment to be upgraded can carry out the operation that upgrading suspends, and the time-out variable that will carry out the worker thread that described device upgrade to be upgraded operates is revised as the time-out variate-value.
Wherein, described judgement upgrading pausing operation also comprises after can carrying out:
Management thread to Data Update thread and UI more new thread send Data Update message, comprise device id to be upgraded and dbjective state in the described message, described dbjective state is suspended for waiting;
Described Data Update thread is updated to the current state of corresponding described equipment to be upgraded in the internal storage data according to Data Update message and waits to suspend, and described UI more new thread is updated to the state of corresponding described equipment to be upgraded in the display interface according to Data Update message and waits to suspend;
Described Data Update thread returns to management thread and upgrades the response message that finishes.
Wherein, described management thread is revised and is suspended after the variable, also comprises:
Worker thread is carried out the upgrading pausing operation;
If described upgrading pausing operation success, then described worker thread to Data Update thread and UI more new thread send Data Update message and carry out the renewal of corresponding equipment state to be upgraded, comprise device id to be upgraded and dbjective state in the described message, described dbjective state is for suspending;
If described upgrading pausing operation failure or overtime, described worker thread stops the pausing operation of upgrading, and the notice management thread.
Device updating method of the present invention, configuration updating operation program and on control end in order to realize the thread of specific function, after ROMPaq starts, co-ordination between each thread, the present invention can realize the auto-update of batch device, need not user's manual operations, improved upgrading efficient, reduced upgrading the risk and cost, and the escalation process may command, the upgrading progress can show.
Description of drawings
Fig. 1 is the synoptic diagram of device upgrade in the prior art;
Fig. 2 is inner each the thread work situation synoptic diagram of the control end of the embodiment of the invention;
Fig. 3 carries out the process flow diagram of updating operation for present device;
Fig. 4 is the upgrade process flow diagram of pausing operation of present device.
Embodiment
The technical solution of the present invention is further elaborated below in conjunction with the drawings and specific embodiments.
Device updating method of the present invention will adopt software programming to the operating process that equipment is upgraded, and at control end this software program be stored, and updating operation is called software program by control end and finished automatically, has saved manual trouble.
For this reason, embodiments of the invention are expanded basic thread and are obtained in order to realize the various threads of specific function, comprise: management thread, worker thread, Data Update thread, data sync thread and user interface (UI, User Interface) be new thread etc. more.Wherein, management thread is responsible for the resources allocation and the management of worker thread; Worker thread be responsible for equipment to be upgraded between communicate by letter, realization updating operation, and return result, worker thread disposes a plurality of according to actual needs, thereby can realize the upgrading to multiple devices; The Data Update thread is used for the data of escalation process are upgraded; The data sync thread is used for that upgrade server is preserved and uploaded to data updated to be backed up; UI more new thread is used for the update software interface display, makes the user can in time understand the variation of escalation process and operating result.Behind the program start of upgrading, intercom mutually between each thread, and co-ordination, a plurality of worker threads can be realized the upgrading to multiple devices, the Data Update thread makes that the internal storage data of control end is upgraded in time, the data sync thread makes the data in the upgrade server and the internal storage data of control end reach synchronous renewal, and UI more new thread makes that the user interface video data is upgraded in time.In addition, embodiments of the invention can realize to equipment begin upgrading and upgrading suspends two kinds of operations, the operation that can upgrade and suspend the equipment in the escalation process, thereby the process may command that makes upgrading.
Embodiments of the invention have carried out comprising as giving a definition to equipment state: to be upgraded, prepare upgrading, during upgrading, treat to suspend, suspend, upgrade successfully, upgrade and fail and upgrade overtime.
The so-called state that is meant when equipment is not carried out any operation to be upgraded is the original state of equipment, is in the operation that the equipment of state to be upgraded can begin to upgrade, and equipment state is prepared upgrading by to be upgraded changing into.
So-called prepare upgrading and be meant the initiation updating operation, but the state during unallocated worker thread, carry out the distribution of worker thread by management thread after, this equipment state changes into during upgrading by preparing upgrading.
So-called during upgrading being meant is assigned to worker thread, begun updating operation.Be in the operation that equipment during upgrading can be upgraded and be suspended, state is waited to suspend by during upgrading changing into.If updating operation is finished, state is upgraded successfully by during upgrading changing into; If failure is carried out in certain step operation in the escalation process, then state-transition is the upgrading failure; If certain step operation overtime in the escalation process, then state-transition is overtime for upgrading.
What is called is waited to suspend and is meant that initiating pausing operation in the device upgrade has also received order, waits for just in execution in step return result.Behind the return result, this equipment state changes time-out into by waiting to suspend.
The so-called time-out is meant that equipment is in halted state, suspends the operation of upgrading.The equipment that is in halted state can be carried out the operation that begins to upgrade once more, and state-transition is for preparing upgrading.
The so-called upgrading is meant that successfully all updating operation all complete successfully, and upgrading finishes.The successful equipment state of upgrading can not change again.
So-called upgrading failure is meant in the device upgrade process that certain step is carried out failure; The equipment of upgrading failure can be carried out the operation that begins to upgrade once more, and state-transition is upgraded for preparing, and continues upgrade step.
The overtime not return results in the expection stipulated time of equipment step updating operation that is meant of so-called upgrading; The overtime equipment of upgrading can be carried out the operation that begins to upgrade once more, and state-transition is upgraded for preparing, and continues upgrade step.
Below in conjunction with inner each the thread work situation synoptic diagram of embodiment of the invention control end shown in Figure 2, control end of the present invention is described the process that equipment carries out updating operation, as shown in Figure 3, mainly may further comprise the steps:
Step 301, UI initiates upgrade request message to management thread.
The user initiates updating operation by UI, and sends upgrade request message by UI to management thread, comprises in this message: (ID, Identity) and action type etc., wherein, action type is upgraded for beginning in the identify label of equipment to be upgraded.
Step 302, management thread judge that whether this equipment to be upgraded can carry out the operation that begins to upgrade, if can carry out, then forwards step 303 to; Otherwise, do not carry out any operation, process ends.
After management thread receives upgrade request message,, analyze internal storage data, and then judge whether this equipment to be upgraded can carry out the operation that begins to upgrade according to device id to be upgraded and the action type in this message.Equipment current state corresponding to be upgraded in the control inspection internal storage data whether be to be upgraded, suspend, the upgrading failure and upgrade overtime wherein a kind of, if judge that then this equipment to be upgraded can carry out the operation that begins to upgrade, and forward step 303 to; Otherwise, judge that this equipment to be upgraded can not carry out the operation that begins to upgrade, and process ends.Because, by aforementioned the present invention be device definition state as can be known, have only when equipment be in to be upgraded, suspend, upgrading failure or when upgrading state overtime, the just operation that can begin to upgrade.
After step 303, management thread determined that this equipment to be upgraded can be carried out the operation that begins to upgrade, more new thread and Data Update thread sent the message of Data Update respectively to UI.Comprise device id to be upgraded and dbjective state in this message, the dbjective state of corresponding beginning updating operation is for preparing upgrading.
Step 304, UI more new thread and Data Update thread carries out Data Update respectively according to the received data updating message.
UI more new thread the equipment state corresponding to be upgraded in the display interface is updated to the preparation upgrading, thereby the show state that makes display interface treat updating apparatus upgrades in time according to device id to be upgraded and dbjective state in the received data updating message.
Similarly, the Data Update thread is according to device id to be upgraded and dbjective state in the received data updating message, the state of corresponding equipment to be upgraded in the internal storage data is updated to prepares upgrading.In addition, after the Data Update thread upgrades and finishes, continuing the notification data synchronizing thread upgrades, internal storage data after the data sync thread will upgrade saves as text, and initiation file transfer protocol (FTP) (FTP, File Transfer Protocol) operation is uploaded to upgrade server with newly-generated file, is stored by upgrade server.It is pointed out that the Data Update thread carries out all wanting the notification data synchronizing thread to upgrade, thereby making the information of control end and upgrade server reach synchronous after the renewal operation of internal storage data at every turn.
Step 305, Data Update thread are returned to management thread and are upgraded the response that finishes.
After the renewal operation of Data Update thread is finished, return response message, finish, can carry out next step operation with the renewal operation of informing this Data Update thread of management thread to management thread.
Step 306, management thread are devices allocation worker thread to be upgraded.
After management thread receives the response message that the Data Update thread returns, all devices ID that stores in the traversal internal memory, the current state of searching equipment.The state that finds is for preparing the equipment of upgrading, then show this equipment is carried out the operation that begins to upgrade, management thread writes down the ID of this equipment and is the worker thread of this free time of devices allocation, send upgrade to the assignment thread, send then and update message to more new thread of UI, by UI more new thread will be updated to during upgrading to state that should equipment in the display interface.If all worker threads all are in busy state, then wouldn't carry out the distribution of worker thread, when being arranged, idle thread does distribution again.Management thread all needed to travel through all devices ID that stores in the internal memory before the thread that at every turn shares out the work, then, all working thread can't divide timing when all being in busy state, need not these facility informations that can't share out the work thread are write down once more and manage, make the processing logic complicated problems, and travel through all devices ID that stores in the internal memory before the thread that at every turn shares out the work, make each logical organization of distributing simplify, distribute when equipment to be upgraded can guarantee maximum when being a plurality of.
Step 307 after worker thread receives upgrade, is carried out corresponding updating operation.
Whole updating operation is made up of a series of operation steps, and a worker thread is responsible for all updating operation of an equipment according to the ROMPaq that disposes.All there is a resident program on each equipment, on the agreement port of equipment, carries out socket (socket) and monitor.After worker thread receives the upgrade of management thread, resolve command information, obtain Internet protocol (IP, the Internet Protocol) information of equipment to be upgraded and the pseudoinstruction of the operation steps that upgrading will be carried out.Then, the IP information that the worker thread utilization is obtained is set up socket with equipment to be upgraded and is connected, send the resident program of pseudoinstruction after the successful connection, generate executable shell (shell) order according to the pseudoinstruction that receives, thereby carry out respective phases of operation by resident program to equipment to be upgraded.Equipment to be upgraded to the worker thread return results, thereby is finished an operation steps after each operation steps executes, disconnect socket then and connect.When carrying out next step operation, set up socket once more and connect, and repeat aforesaid operations.All complete up to all operation stepss, show that then upgrading finishes.
Equipment to be upgraded is after each operation steps executes, return the step execution result to worker thread, and worker thread is after obtaining the operating result in per step, notification data more new thread and UI more new thread carry out Data Update, thereby make that internal storage data and interface display information are upgraded in time.Aforesaid step execution result comprises: operate successfully, operation failure and operation overtime.It is pointed out that if equipment to be upgraded makes a mistake when carrying out certain operation steps, as: operation failure or operation overtime then to the result of failure of worker thread return or operation overtime, report corresponding daily record explanation failure or overtime reason simultaneously.Worker thread suspends updating operation immediately, and the notice management thread.After the user can mediate problem according to the daily record that reports, the operation that begins to upgrade by the UI initiation again, and reselect idle worker thread by management thread and continue to carry out uncompleted updating operation step.
Step 308, after upgrading is finished, the worker thread notification data more new thread and UI more new thread the state of correspondence equipment to be upgraded is updated to upgrade successfully, management thread is with the resource release of this worker thread.
Below again in conjunction with inner each the thread work situation synoptic diagram of embodiment of the invention control end shown in Figure 2, control end of the present invention is described the upgrade process of pausing operation of equipment, as shown in Figure 4, mainly may further comprise the steps:
Step 401, UI initiates to suspend request message to management thread.
The user initiates the upgrading pausing operation by UI, and sends the time-out request message by UI to management thread, comprises in this message: the ID of equipment to be upgraded and action type etc., wherein, action type is suspended for upgrading.
Step 402, management thread judge that whether this equipment to be upgraded can carry out the operation that upgrading suspends, if can carry out, then forwards step 403 to; Otherwise, do not carry out any operation, process ends.
Management thread according to receive and suspend request message, travel through all worker threads, judge whether to exist the worker thread of carrying out corresponding device upgrade operation to be upgraded, if exist, judge that then this upgrading pausing operation can carry out; Otherwise, judge that this upgrading pausing operation can not carry out.
Step 403, management thread judge that this equipment to be upgraded can carry out the operation that upgrading suspends, and more new thread and Data Update thread send the message of Data Update respectively to UI.Comprise device id to be upgraded and dbjective state in this message, the dbjective state of respective upgrades pausing operation is suspended for waiting.
Step 404, UI more new thread and Data Update thread carries out Data Update respectively according to the received data updating message.
UI more new thread the equipment state corresponding to be upgraded in the display interface is updated to waits to suspend, thereby the show state that makes display interface treat updating apparatus upgrades in time according to device id to be upgraded and dbjective state in the received data updating message.
Similarly, the Data Update thread is according to device id to be upgraded and dbjective state in the received data updating message, the state of corresponding equipment to be upgraded in the internal storage data is updated to waits to suspend.In addition, after the Data Update thread upgrades and finishes, continue the notification data synchronizing thread and upgrade, internal storage data after the data sync thread will upgrade saves as text, and initiate the FTP operation, and newly-generated file is uploaded to upgrade server, store by upgrade server.
Step 405, Data Update thread are returned to management thread and are upgraded the response that finishes.
After the renewal operation of Data Update thread is finished, return response message, finish, can carry out next step operation with the renewal operation of informing this Data Update thread of management thread to management thread.
Step 406, management thread are revised the time-out variate-value of the corresponding worker thread of equipment to be upgraded.
After management thread receives the response message that the Data Update thread returns, all devices ID that stores in the traversal internal memory, the current state of searching equipment.The state of finding is an equipment to be suspended, then show this equipment is carried out the operation that upgrading suspends, management thread travels through all worker threads, find the worker thread of carrying out this device upgrade operation, and the time-out variable of this worker thread made amendment, the initial value that suspends variable is false, expression does not suspend, to suspend variable and be revised as true, expression suspends.It is pointed out that worker thread in the process of carrying out the updating operation step, execute per step operation after, all need to judge, if judge that suspending variate-value is false, then continues next step updating operation to suspending variable; If judge that suspending variate-value is true, then carry out the upgrading pausing operation, stop follow-up updating operation step, and to Data Update thread and UI more new thread send Data Update message, comprise device id to be upgraded and dbjective state in this message, this dbjective state is for suspending.Data Update thread and UI more new thread are updated to time-out with the state of corresponding device in internal storage data and the interface information respectively.In addition, if worker thread is carried out upgrading pausing operation failure or overtime, then notify management thread, and report corresponding log information.The user can mediate problem according to the log information that reports, and initiates the operation that upgrading suspends by UI again then.
It more than is the detailed description of the device updating method of the embodiment of the invention, device updating method of the present invention can be realized the updating operation to batch device, for example: Web TV (IPTV, Internet ProtocolTelevision) Exterior Gateway Protocol (EGP in the system, External Gateway Protocol) server updating and content distributing network (CDN, Content Delivery Network) acting server upgrading etc.Before device updating method of the present invention is operated in actual applications, the check of can in test environment, upgrading earlier, thus can guarantee carrying out smoothly of formal updating operation.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (10)

1, a kind of method of device upgrade is characterized in that, comprising:
Worker thread for the devices allocation to be upgraded free time;
Institute's assignment thread is carried out updating operation according to the ROMPaq of configuration to described equipment to be upgraded.
According to the method for the described device upgrade of claim 1, it is characterized in that 2, described is the worker thread of devices allocation free time to be upgraded, specifically comprises:
User interface UI sends upgrade request message to management thread, comprises equipment identities sign ID to be upgraded and action type in the described message, and described action type is for beginning upgrading;
Management thread is according to equipment identities sign ID to be upgraded and action type in the described upgrade request message, the current state of searching in the internal storage data corresponding described equipment to be upgraded be to be upgraded, suspend, upgrading failure and upgrade overtime wherein a kind ofly, determine that described equipment to be upgraded can carry out the operation that begins to upgrade;
All devices in the described management thread traversal internal memory is to the worker thread of current state for the devices allocation free time of preparation upgrading;
Described management thread sends upgrade to institute's assignment thread.
According to the method for the described device upgrade of claim 2, it is characterized in that 3, described definite beginning updating operation also comprises after can carrying out:
Management thread to Data Update thread and user interface UI more new thread send Data Update message, comprise equipment identities sign ID to be upgraded and dbjective state in the described message, described dbjective state is for preparing upgrading;
Described Data Update thread is updated to the current state of corresponding described equipment to be upgraded in the internal storage data according to Data Update message and prepares upgrading, and described user interface UI more new thread is updated to the state of corresponding described equipment to be upgraded in the display interface according to Data Update message and prepares upgrading;
Described Data Update thread returns to management thread and upgrades the response message that finishes.
According to the method for the described device upgrade of claim 3, it is characterized in that 4, described Data Update thread also comprises after internal storage data is upgraded:
Described Data Update thread notification data synchronizing thread upgrades;
Internal storage data after described data sync thread will upgrade saves as text and is sent to upgrade server.
According to the method for the described device upgrade of claim 2, it is characterized in that 5, described is the worker thread of devices allocation free time to be upgraded, further comprises:
Described management thread to user interface UI more new thread send Data Update message, comprise equipment identities sign ID to be upgraded and dbjective state in the described message, described dbjective state is during upgrading;
Described user interface UI more new thread is updated to the state of corresponding described equipment to be upgraded in the display interface during upgrading according to Data Update message.
According to the method for the described device upgrade of claim 1, it is characterized in that 6, described institute assignment thread is treated updating apparatus and carried out updating operation, specifically comprises:
Described worker thread is resolved the upgrade that is received, and obtains the Internet protocol IP information and the required pseudoinstruction of carrying out operation steps of upgrading of described equipment to be upgraded;
Described worker thread sends the pseudoinstruction of described operation steps to described equipment to be upgraded;
Described equipment to be upgraded is carried out respective phases of operation according to the reception pseudoinstruction.
According to the method for the described device upgrade of claim 6, it is characterized in that 7, described worker thread is treated updating apparatus and carried out updating operation, further comprises:
Described equipment to be upgraded returns the step execution result to described worker thread after each operation steps executes, described step execution result for operate successfully, operation failure and operation overtime wherein a kind of;
Described worker thread with described step execution result send to Data Update thread and user interface UI more new thread carry out the renewal of described equipment state to be upgraded.
According to the method for the described device upgrade of claim 1, it is characterized in that 8, described method further comprises: carry out in the updating operation process at described equipment to be upgraded, described updating operation is suspended, specifically comprise:
User interface UI sends to management thread and suspends request message, comprises equipment identities sign ID to be upgraded and action type in the described message, and described action type is suspended for upgrading;
Management thread travels through all worker threads according to described time-out request message, judge and have the worker thread of carrying out described device upgrade operation to be upgraded, determine that then described equipment to be upgraded can carry out the operation that upgrading suspends, and the time-out variable that will carry out the worker thread that described device upgrade to be upgraded operates is revised as the time-out variate-value.
9, the method for described device upgrade according to Claim 8 is characterized in that, described judgement upgrading pausing operation also comprises after can carrying out:
Management thread to Data Update thread and user interface UI more new thread send Data Update message, comprise equipment identities sign ID to be upgraded and dbjective state in the described message, described dbjective state is suspended for waiting;
Described Data Update thread is updated to the current state of corresponding described equipment to be upgraded in the internal storage data according to Data Update message and waits to suspend, and described user interface UI more new thread is updated to the state of corresponding described equipment to be upgraded in the display interface according to Data Update message and waits to suspend;
Described Data Update thread returns to management thread and upgrades the response message that finishes.
According to the method for the described device upgrade of claim 9, it is characterized in that 10, described management thread is revised and suspended after the variable, also comprises:
Worker thread is carried out the upgrading pausing operation;
If described upgrading pausing operation success, then described worker thread to Data Update thread and user interface UI more new thread send Data Update message and carry out the renewal of corresponding equipment state to be upgraded, comprise equipment identities sign ID to be upgraded and dbjective state in the described message, described dbjective state is for suspending;
If described upgrading pausing operation failure or overtime, described worker thread stops the pausing operation of upgrading, and the notice management thread.
CNB2007101950374A 2007-12-10 2007-12-10 The method of device upgrade Expired - Fee Related CN100543688C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101950374A CN100543688C (en) 2007-12-10 2007-12-10 The method of device upgrade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101950374A CN100543688C (en) 2007-12-10 2007-12-10 The method of device upgrade

Publications (2)

Publication Number Publication Date
CN101178670A CN101178670A (en) 2008-05-14
CN100543688C true CN100543688C (en) 2009-09-23

Family

ID=39404931

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101950374A Expired - Fee Related CN100543688C (en) 2007-12-10 2007-12-10 The method of device upgrade

Country Status (1)

Country Link
CN (1) CN100543688C (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814040B (en) * 2010-04-01 2013-01-09 北京数码视讯科技股份有限公司 Single-thread browser and processing method thereof
CN102284136B (en) * 2011-05-11 2014-06-25 常州瑞神安医疗器械有限公司 In-vitro program-controlled device for implantable medical appliance
CN102437869B (en) * 2011-12-12 2016-04-13 深圳市国电科技通信有限公司 Power Line Carrier Communication Module concurrent software upgrade method
CN102882887B (en) * 2012-10-18 2018-04-20 新华三技术有限公司 The implementation method and equipment of software smooth upgrade
CN103729205B (en) * 2013-07-02 2017-07-25 深圳市金溢科技股份有限公司 A kind of upgrade method of electronic tag and electronic tag
CN105610627A (en) * 2016-01-11 2016-05-25 上海斐讯数据通信技术有限公司 Method and device for upgrading network device
CN105610966B (en) * 2016-01-20 2020-09-01 深圳高新兴物联科技有限公司 Internet of things terminal and upgrading method thereof
CN107204865A (en) * 2016-03-17 2017-09-26 福建华渔未来教育科技有限公司 The equipment of terminal system maintaining method, monitoring device and long distance monitoring
CN107329736B (en) * 2017-05-22 2020-12-22 北京金山安全管理系统技术有限公司 Information display method and device, storage medium and processor
CN109766131B (en) * 2017-11-06 2022-04-01 上海宝信软件股份有限公司 System and method for realizing intelligent automatic software upgrading based on multithreading technology
CN109189421A (en) * 2018-08-08 2019-01-11 上海庆科信息技术有限公司 Burning management method, device and programming system based on programming system server
CN111506337A (en) * 2020-04-15 2020-08-07 中国银行股份有限公司 Application software updating method and device
CN112333471A (en) * 2020-11-05 2021-02-05 上海网达软件股份有限公司 Hot upgrading method, device, equipment and storage medium of audio and video online transcoder

Also Published As

Publication number Publication date
CN101178670A (en) 2008-05-14

Similar Documents

Publication Publication Date Title
CN100543688C (en) The method of device upgrade
CN110768833B (en) Application arrangement and deployment method and device based on kubernets
US11194560B2 (en) Autonomous server installation
CN110572436B (en) Multi-place cross-cluster server deployment method and system
US10812597B2 (en) Content delivery network (CDN) management system, method, and apparatus
CN102571940B (en) Application program remote installation system, method, intelligent terminal, application server
CN108089913B (en) Virtual machine deployment method of super-fusion system
US20140053149A1 (en) Fast and automatic deployment method for cluster system
CN103019757A (en) Method, device and system for synchronizing software among multiple clients
CN105339892A (en) Local network and method of updating a device in a local network
CN103200271A (en) Advanced Risc machine (ARM) server and method of automatic installation system thereof
CN105812426A (en) Upgrade system and upgrade method for multi-business access platform
CN112491630B (en) Bare metal automatic deployment method and device and cloud environment platform
CN105871568B (en) Software upgrading method and system
US11979288B2 (en) Systems and methods for zero touch provisioning (ZTP) over trunk/LACP ports
CN112328297B (en) Method and device for upgrading Android system running compatibly on Linux
CN111209125B (en) Multi-process command line implementation method
CN105242885A (en) Network storage change method and device
CN115268951A (en) Installation method, device, equipment and storage medium of operating system
CN113992698A (en) Intelligent device management method, gateway and computer readable storage medium
CN114356357A (en) Mirror image file processing method and device and electronic equipment
CN115454580B (en) Node host resource management method and device and computing equipment
CN112579247A (en) Method and device for determining task state
CN113472599B (en) Data communication method and system of network node
CN116614323B (en) Cloud storage enterprise network management method and system based on Rclone

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
ASS Succession or assignment of patent right

Owner name: STATE GRID CORPORATION OF CHINA

Free format text: FORMER OWNER: ZTE CORPORATION

Effective date: 20141119

Owner name: YICHUN POWER SUPPLY COMPANY OF STATE GRID HEILONGJ

Effective date: 20141119

C41 Transfer of patent application or patent right or utility model
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Zhang Tingjuan

Inventor after: Li Xiaobo

Inventor after: Peng Liangjie

Inventor after: Wen Shenglin

Inventor before: Liu Jianing

COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 100031 XICHENG, BEIJING

Free format text: CORRECT: INVENTOR; FROM: LIU JIANING TO: ZHANG TINGJUAN LI XIAOBO PENG LIANGJIE WEN SHENGLIN

TR01 Transfer of patent right

Effective date of registration: 20141119

Address after: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Patentee after: State Grid Corporation of China

Patentee after: YICHUN POWER SUPPLY COMPANY OF STATE GRID HEILONGJIANG ELECTRIC POWER Co.,Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corp.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090923

CF01 Termination of patent right due to non-payment of annual fee