CN1933416A - Long-distance on-line staging method with self-recovery function - Google Patents

Long-distance on-line staging method with self-recovery function Download PDF

Info

Publication number
CN1933416A
CN1933416A CN 200510102557 CN200510102557A CN1933416A CN 1933416 A CN1933416 A CN 1933416A CN 200510102557 CN200510102557 CN 200510102557 CN 200510102557 A CN200510102557 A CN 200510102557A CN 1933416 A CN1933416 A CN 1933416A
Authority
CN
China
Prior art keywords
program
destination node
upgrade
upgrade server
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510102557
Other languages
Chinese (zh)
Other versions
CN100518082C (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.)
ZTE Corp
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 CNB2005101025577A priority Critical patent/CN100518082C/en
Publication of CN1933416A publication Critical patent/CN1933416A/en
Application granted granted Critical
Publication of CN100518082C publication Critical patent/CN100518082C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A remote on-line upgrading method with self-restoration function includes connecting upgrade server to each node an sending upgrade command to them, sending upgrade program to object node by upgrade server through network after upgrade server receives feedback information, writing received upgrade program into storage region of program FLASH and revising start-up parameter of public region by object node, sending software start-up command to object node after feedback is received by upgrade server, testing new program by object node and revising start-up parameter to apply new program if test is passed or otherwise returning back to use original program version still.

Description

A kind of remote online upgrade method with self-recovering function
Technical field
The present invention relates to the upgrade method of the network equipment in a kind of telecommunication, what be specifically related to is a kind of remote upgrade method that the network equipment is recovered automatically.
Background technology
In catenet, node device is distributed under the various geographical environments usually, network topology has characteristics such as equipment is many, zone dispersion, complex structure, for the ease of administering and maintaining, usually by the purpose of certain communication management method realization to the centralized and unified monitoring management of all devices in the topology.
In the use of equipment,, often need upgrade to the working procedure of equipment for to the enhancing of functions of the equipments, the purposes such as modification of Bug.If send the staff to upgrade one by one, need expend a lot of human and material resources, and the upgrading all devices will need the very long cycle to the scene.Therefore need find out a kind ofly, can finish software upgrade method to the equipment on all geographical position in netting in a fixing geographical position.
In numerous method for upgrading software, the most representative with the upgrade technique of mentioning among the patent " system of long-range loading or ROMPaq and method thereof " of China Patent No. CN03132982 and the China Patent No. CN01145382 " in communication system, utilizing the devices and methods therefor of chip microcontroller software download ", the former upgrading thinking is: the master control subsystem by the TFTP procotol with the redaction procedure stores at the FLASH memory, finish the loading of subsystem application program to be upgraded by mutual loader, wherein, mutual loading must be realized by engineering staff's subsystem to be upgraded that resets; Therefore can't realize the long-range unmanned upgrading of intervening.The mode that the latter adopts is: the ROM program of equipment guides the primary application program among the FLASH to bring into operation earlier, during upgrading, new application program is written to the alternate program district of FLASH, after system restarts, under the guidance of inner ROM program, new application program obtains operation.But prior art needs far-end server, and wants its all weather operations; If upgrading failure system then may destroy the integrality of whole system.
Summary of the invention
In order to address the aforementioned drawbacks, the present invention proposes a kind of remote online upgrade method with self-recovering function, and this method can use manpower and material resources sparingly, reduce upgrade cost effectively, shorten upgrade cycle.
Technical scheme of the present invention comprises:
A kind of remote online upgrade method with self-recovering function, it may further comprise the steps:
The A upgrade server links to each other and sends to upgrade to each node and orders;
Each node of B judges whether this upgrading order issues oneself, if then feed back; Otherwise transmit this upgrading order and give other node;
The C destination node feeds back to described upgrade server after receiving corresponding upgrading order, and described upgrade server is received feedback message, gives described destination node with ROMPaq by forwarded;
After the described destination node of D is received ROMPaq, between memory block, and revise start-up parameter between its public area, to described upgrade server feedback with its write-in program FLASH;
The described upgrade server of E confirms that the back sends the soft start order to described destination node.
Described method, wherein, described method also comprises:
The described destination node of F is opened the timer with Logic Circuit Design, and starts and finish, and waits for the test command of described upgrade server;
The described destination node of G is if receive then feedback test result of test command; Otherwise circular wait;
The described upgrade server of H is judged the feedback result of described destination node, if normal order timeing closing device, the start-up parameter of update routine FLASH public area, the starting command of feeling like jelly of then sending of test;
The described destination node of I is received the soft start order, after the bootstrap routine operation of public area, starts the program running after upgrading, and the upgrading flow process finishes.
Described method, wherein, described step H also comprises:
J is as if described timer expiry, and described destination node is reset and restarts, and testing time subtracts 1; Otherwise circular wait is up to timer expiry;
When K surpassed preset value when the frequency of failure, the start-up routine that starts FLASH restored the start-up parameter of public area, and the timeing closing device starts previous application program, and the upgrading flow process finishes.
Described method, wherein, described program FLASH be divided at least one deposit operation version program district one deposit upgraded version program area and be used for storage equipment bootstrap routine, put down in writing the public area of the information and the start-up parameter of each version program.
Described method, wherein, described public area parameter comprises between running state of programs, testing time, promoter region number, code length and each version program inlet of each version program.
A kind of remote online upgrade method provided by the present invention with self-recovering function, compare with two kinds of upgrade techniques of prior art, the inventive method does not need far-end server, only need start a upgrade server when upgrading, need not make its all weather operations yet; Whole upgrade process need not cold start-up; If upgrading failure system can be returned to previous running status.
Description of drawings
Fig. 1 is the minimum system hardware structure diagram of the inventive method;
Fig. 2 a and Fig. 2 b are the upgrading flow chart of the inventive method.
Embodiment
Below in conjunction with accompanying drawing, will be further described the specific embodiment of the present invention.
Remote online upgrade method with self-recovering function of the present invention, as depicted in figs. 1 and 2, escalation process mainly comprises following steps:
The A1 upgrade server links to each other with nearest node, and sends the upgrading order, enters steps A 2;
This node of A2 judges that whether this upgrading order issues oneself, if then feed back, enters steps A 4; Otherwise transmit this upgrading order, enter steps A 3;
The A3 destination node is receiving that upgrading order back to described upgrade server feedback, enters steps A 4;
The described upgrade server of A4 is received acknowledge message, gives destination node with new application program by forwarded, enters steps A 5;
After the described destination node of A5 was received application program, between the given zone with its write-in program FLASH, and the start-up parameter of revising between the public area was redaction program test parameter, to described upgrade server feedback, enters steps A 6;
The described upgrade server of A6 confirms that the back sends the soft start order to described destination node, enters steps A 7;
The described destination node of A7 is opened the timer with Logic Circuit Design, carries out the soft start order then, after the bootstrapping, moves new procedures to internal memory, and program pointer jumps to the entry address of new procedures, begins to carry out, and enters steps A 8;
The described destination node of A8 starts and finishes, and waits for the test command of described upgrade server, enters steps A 9;
The described destination node of A9 enters steps A 10 if receive then feedback test result of test command; Otherwise circular wait;
The described upgrade server of A10 is judged feedback result, and normal start-up parameter, the appointment new procedures district that then sends order timeing closing device, update routine FLASH public area is the parameter in normal working procedure district, the starting command of feeling like jelly as if test, enters steps A 11; Otherwise enter steps A 12;
The described destination node of A11 is received the soft start order, starts the new procedures operation, and the upgrading flow process finishes;
A12 perhaps can not receive the feedback of upgrade server if receive the unusual feedback of upgrade server, illustrates that upgrading is not right, timer expiry, and described destination node is reset and restarts, and testing time subtracts 1, enters steps A 13;
When A13 surpassed preset value (being set at usually 3 times) when the frequency of failure, the start-up routine that starts FLASH restored the start-up parameter of FLASH public area, and the timeing closing device starts previous application program, and the upgrading flow process finishes.
As shown in fig. 1, program FLASH is divided into four districts, and wherein, three districts are used for depositing version program, and deposit in one of them district is the current program of using, and all the other two is the alternate program district.The 4th district is the information of each version program of depositing of three districts in bootstrap routine, front that the public area is used for putting down in writing veneer and start-up parameter etc., the bootstrap routine of public area with make separating of version program district the version program of current operation to be replaced; With a kind of feasible topological structure numerous nodes is formed network, each node has ID number unique in the net, realize between arbitrary node the purpose of visit mutually by certain transmission means, described upgrade server links to each other by serial ports or network interface with nearest node.
At first, described upgrade server need write new application program in certain program area of program FLASH of destination node.Subsequently, configuration public area parameter comprises between running state of programs, testing time, promoter region number, code length and program entry etc.Then, described upgrade server issues reset command, system's soft start; Before bootstrap routine carry out to finish, judge whether test program is arranged among the FLASH, whether testing time greater than zero, when two conditions all satisfy, then enters testing process; Any does not satisfy when two conditions, then normally starts: the application program of parameter region appointment is moved in the internal memory carried out, move in the process, parameters such as code length and program entry are all from the record in the public area.
In test process, be enabled in the timer of using logic realization among the CPLD earlier, the time-out time of She Dinging is 20 minutes in the methods of the invention, this time interval can revise according to actual conditions; Testing time, default in the methods of the invention testing time are 3, can make amendment according to actual conditions, subtract 1.If described destination node energy and upgrade server normal communication, in 20 minutes of regulation, the staff verifies one by one to every function of the new procedures of described destination node, if every all the checking passed through, the staff then sends the order of timeing closing device by described upgrade server to destination node; Send order then and revise the public area parameter: comprise this new application program is labeled as cost procedure FLASH district etc. is set between formal proceedings, testing time zero clearing, promoter region; Send software reset's order at last, destination node restarts, and program enters normal flow, is written into this new procedures and brings into operation, and up to the arrival of upgrading order next time, so far, the destination node test is passed through and upgraded successfully.If after the test program operation, described destination node and described upgrade server Communications failure, in 20 minutes, new procedures can't be modified to normal condition by the test attitude, and timer can not be closed, and causes timer expiry, sends reset signal; Described destination node restarts, if testing time greater than zero, it will be subtracted 1, enter testing process once more; If restart all and can't normally move test program for three times, this moment, testing time equalled zero, and described destination node enters normal flow after restarting once more, is written into old program running, returned to the preceding state of upgrading.Like this, when the upgrading failure, can recover to use original version program.
The present invention has realized a kind of method that the remote online of networked devices is upgraded: do not need can realize upgrading to the equipment that far-end is moving at the scene.This method greatly reduces plant maintenance personnel's workload, has saved upgrade cost; And have the function of under the situation of upgrading failure, recovering automatically, improved the reliability of remote upgrade greatly.
But should be understood that above-mentioned description at the specific embodiment of the invention is comparatively detailed, can not therefore think the restriction to scope of patent protection of the present invention, scope of patent protection of the present invention should be as the criterion with claims.

Claims (5)

1, a kind of remote online upgrade method with self-recovering function is characterized in that may further comprise the steps:
The A upgrade server links to each other and sends to upgrade to each node and orders;
Each node of B judges whether this upgrading order issues oneself, if then feed back; Otherwise transmit this upgrading order and give other node;
The C destination node feeds back to described upgrade server after receiving corresponding upgrading order, and described upgrade server is received feedback message, gives described destination node with ROMPaq by forwarded;
After the described destination node of D is received ROMPaq, between memory block, and revise start-up parameter between its public area, to described upgrade server feedback with its write-in program FLASH;
The described upgrade server of E confirms that the back sends the soft start order to described destination node.
2, method according to claim 1 is characterized in that, described method also comprises:
The described destination node of F is opened the timer with Logic Circuit Design, and starts and finish, and waits for the test command of described upgrade server;
The described destination node of G is if receive then feedback test result of test command; Otherwise circular wait;
The described upgrade server of H is judged the feedback result of described destination node, if normal order timeing closing device, the start-up parameter of update routine FLASH public area, the starting command of feeling like jelly of then sending of test;
The described destination node of I is received the soft start order, after the bootstrap routine operation of public area, starts the program running after upgrading, and the upgrading flow process finishes.
3, method according to claim 2 is characterized in that, described step H also comprises:
J is as if described timer expiry, and described destination node is reset and restarts, and testing time subtracts 1; Otherwise circular wait is up to timer expiry;
When K surpassed preset value when the frequency of failure, the start-up routine that starts FLASH restored the start-up parameter of public area, and the timeing closing device starts previous application program, and the upgrading flow process finishes.
4, method according to claim 3, it is characterized in that, described program FLASH be divided at least one deposit operation version program district, deposit upgraded version program area and be used for storage equipment bootstrap routine, put down in writing the public area of the information and the start-up parameter of each version program.
5, method according to claim 3 is characterized in that, described public area parameter comprises between running state of programs, testing time, promoter region number, code length and each version program inlet of each version program.
CNB2005101025577A 2005-09-12 2005-09-12 Long-distance on-line updating method with self-recovery function Active CN100518082C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101025577A CN100518082C (en) 2005-09-12 2005-09-12 Long-distance on-line updating method with self-recovery function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101025577A CN100518082C (en) 2005-09-12 2005-09-12 Long-distance on-line updating method with self-recovery function

Publications (2)

Publication Number Publication Date
CN1933416A true CN1933416A (en) 2007-03-21
CN100518082C CN100518082C (en) 2009-07-22

Family

ID=37879050

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101025577A Active CN100518082C (en) 2005-09-12 2005-09-12 Long-distance on-line updating method with self-recovery function

Country Status (1)

Country Link
CN (1) CN100518082C (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527976B (en) * 2008-03-04 2011-12-07 中兴通讯股份有限公司 Method and system for remote software upgrading
CN102317906A (en) * 2008-12-31 2012-01-11 施耐德电气美国股份有限公司 Automatic firmware updates for intelligent electronic devices
CN102541585A (en) * 2011-11-11 2012-07-04 深圳市迪威新软件技术有限公司 Remote upgrade method and embedded system
CN103106095A (en) * 2013-03-11 2013-05-15 深圳华用科技有限公司 Method for remotely upgrading industrial camera and camera
CN103106089A (en) * 2013-01-25 2013-05-15 大唐移动通信设备有限公司 Upgrading method and system for intelligent platform management controller
CN103577214A (en) * 2012-08-09 2014-02-12 罗森伯格(上海)通信技术有限公司 Method and device for updating application program
CN103677871A (en) * 2012-09-10 2014-03-26 上海达实联欣科技发展有限公司 Online upgrading system and method
CN101621411B (en) * 2009-07-22 2014-12-17 中兴通讯股份有限公司 Method and system for remotely updating microcontrollers
CN104991795A (en) * 2015-06-19 2015-10-21 北京汉王鹏泰科技有限公司 Firmware upgrading method and apparatus of active capacitive stylus
CN105912356A (en) * 2016-03-31 2016-08-31 武汉光迅科技股份有限公司 Optical module firmware program online upgrade method supporting version fallback
CN106371856A (en) * 2016-11-08 2017-02-01 深圳天珑无线科技有限公司 Menu statistical method and user terminal and application backstage terminal
CN106470418A (en) * 2015-08-21 2017-03-01 华为技术有限公司 The method and apparatus of setting messaging parameter
CN107423087A (en) * 2017-05-19 2017-12-01 北京有初科技有限公司 A kind of application program updating method that server can monitor
CN107682889A (en) * 2017-09-11 2018-02-09 北京奇安信科技有限公司 Wireless network performance method of testing, apparatus and system
CN110377314A (en) * 2019-07-19 2019-10-25 苏州浪潮智能科技有限公司 A kind of method for upgrading system of distributed memory system, device, equipment and medium
CN110460469A (en) * 2019-08-12 2019-11-15 视联动力信息技术股份有限公司 A kind of method for upgrading system, device and storage medium
CN111625267A (en) * 2020-06-02 2020-09-04 中电科蓉威电子技术有限公司 Program online upgrading system and method based on UWB communication
CN112055353A (en) * 2020-09-10 2020-12-08 中煤科工集团重庆研究院有限公司 Wireless upgrading system and method for coal mine personnel positioning identification card
CN112104738A (en) * 2020-09-18 2020-12-18 深圳市赛秀信息技术有限公司 Automatic upgrading method, server and system for electronic price tag system software
CN112685053A (en) * 2019-10-18 2021-04-20 航天科工惯性技术有限公司 Remote upgrading control method for single chip microcomputer program
CN112925532A (en) * 2019-12-06 2021-06-08 北京华为数字技术有限公司 Software installation method, information sending method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354286A (en) * 2011-09-16 2012-02-15 天津市亚安科技股份有限公司 System for realizing reliable online remote upgrading of cloud deck

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527976B (en) * 2008-03-04 2011-12-07 中兴通讯股份有限公司 Method and system for remote software upgrading
CN102317906A (en) * 2008-12-31 2012-01-11 施耐德电气美国股份有限公司 Automatic firmware updates for intelligent electronic devices
CN102317906B (en) * 2008-12-31 2015-06-24 施耐德电气美国股份有限公司 Automatic firmware updates for intelligent electronic devices
CN101621411B (en) * 2009-07-22 2014-12-17 中兴通讯股份有限公司 Method and system for remotely updating microcontrollers
CN102541585A (en) * 2011-11-11 2012-07-04 深圳市迪威新软件技术有限公司 Remote upgrade method and embedded system
CN103577214B (en) * 2012-08-09 2017-03-29 罗森伯格(上海)通信技术有限公司 Application program update method and apparatus
CN103577214A (en) * 2012-08-09 2014-02-12 罗森伯格(上海)通信技术有限公司 Method and device for updating application program
CN103677871A (en) * 2012-09-10 2014-03-26 上海达实联欣科技发展有限公司 Online upgrading system and method
CN103106089A (en) * 2013-01-25 2013-05-15 大唐移动通信设备有限公司 Upgrading method and system for intelligent platform management controller
CN103106089B (en) * 2013-01-25 2016-03-02 大唐移动通信设备有限公司 A kind of upgrade method of intelligent platform management controller and system
CN103106095A (en) * 2013-03-11 2013-05-15 深圳华用科技有限公司 Method for remotely upgrading industrial camera and camera
CN104991795B (en) * 2015-06-19 2018-11-02 汉王科技股份有限公司 The firmware upgrade method and device of active capacitance pen
CN104991795A (en) * 2015-06-19 2015-10-21 北京汉王鹏泰科技有限公司 Firmware upgrading method and apparatus of active capacitive stylus
CN106470418A (en) * 2015-08-21 2017-03-01 华为技术有限公司 The method and apparatus of setting messaging parameter
CN105912356A (en) * 2016-03-31 2016-08-31 武汉光迅科技股份有限公司 Optical module firmware program online upgrade method supporting version fallback
CN105912356B (en) * 2016-03-31 2019-04-09 武汉光迅科技股份有限公司 A kind of optical module firmware program on-line upgrading method for supporting version rollback
CN106371856A (en) * 2016-11-08 2017-02-01 深圳天珑无线科技有限公司 Menu statistical method and user terminal and application backstage terminal
CN107423087A (en) * 2017-05-19 2017-12-01 北京有初科技有限公司 A kind of application program updating method that server can monitor
CN107682889A (en) * 2017-09-11 2018-02-09 北京奇安信科技有限公司 Wireless network performance method of testing, apparatus and system
CN110377314A (en) * 2019-07-19 2019-10-25 苏州浪潮智能科技有限公司 A kind of method for upgrading system of distributed memory system, device, equipment and medium
CN110377314B (en) * 2019-07-19 2022-12-23 苏州浪潮智能科技有限公司 System upgrading method, device, equipment and medium for distributed storage system
CN110460469B (en) * 2019-08-12 2022-01-07 视联动力信息技术股份有限公司 System upgrading method and device and storage medium
CN110460469A (en) * 2019-08-12 2019-11-15 视联动力信息技术股份有限公司 A kind of method for upgrading system, device and storage medium
CN112685053A (en) * 2019-10-18 2021-04-20 航天科工惯性技术有限公司 Remote upgrading control method for single chip microcomputer program
CN112685053B (en) * 2019-10-18 2024-05-14 航天科工惯性技术有限公司 Remote upgrade control method for singlechip program
CN112925532A (en) * 2019-12-06 2021-06-08 北京华为数字技术有限公司 Software installation method, information sending method and device
CN112925532B (en) * 2019-12-06 2023-07-14 北京华为数字技术有限公司 Software installation method, information sending method and device
CN111625267A (en) * 2020-06-02 2020-09-04 中电科蓉威电子技术有限公司 Program online upgrading system and method based on UWB communication
CN112055353A (en) * 2020-09-10 2020-12-08 中煤科工集团重庆研究院有限公司 Wireless upgrading system and method for coal mine personnel positioning identification card
CN112104738A (en) * 2020-09-18 2020-12-18 深圳市赛秀信息技术有限公司 Automatic upgrading method, server and system for electronic price tag system software
CN112104738B (en) * 2020-09-18 2023-04-18 深圳赛时达科技有限公司 Automatic upgrading method, server and system for electronic price tag system software

Also Published As

Publication number Publication date
CN100518082C (en) 2009-07-22

Similar Documents

Publication Publication Date Title
CN1933416A (en) Long-distance on-line staging method with self-recovery function
CN103488498B (en) Computer booting method and computer
US8010504B2 (en) Increasing application availability during automated enterprise deployments
CN110134518B (en) Method and system for improving high availability of multi-node application of big data cluster
US20140376362A1 (en) Dynamic client fail-over during a rolling patch installation based on temporal server conditions
CN111752759B (en) Kafka cluster fault recovery method, device, equipment and medium
CN1936844A (en) Method and system for updating software
US11314524B2 (en) Method, apparatus, and computer program product for managing service container
CN106610840A (en) FOTA (Firmware Over-The-Air) upgrade method and system
CN101656627A (en) Method and device for restoring main program and network equipment
CN101042651A (en) Software updating method and system thereof
CN104915226A (en) Network device software starting method, device and network device
EP2247996A1 (en) System and method for restartable provisioning of software components
CN106502713A (en) A kind of method for upgrading software and system
CN104899116A (en) Data backup method, source server, target server and system
CN113515316A (en) Novel edge cloud operating system
CN115268976A (en) Automatic upgrading method and system for multi-data center collection Agent version
CN102780578A (en) Updating system and updating method for operating system for network equipment
CN115202680A (en) System and method for automatically upgrading local client on line in remote manner
CN111399862A (en) Batch installation method and device of Windows missing driver and computer equipment
CN111769966B (en) Clone upgrading method, system and application
CN111488547B (en) Implementation device for flattening management of honeypots and honeynets based on web technology
CN111090537B (en) Cluster starting method and device, electronic equipment and readable storage medium
CN111917588A (en) Edge device management method, device, edge gateway device and storage medium
CN110413311A (en) ' In System Reconfiguration Method and server

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