CN101877651B - Method and system for recovering system software in network terminating equipment - Google Patents

Method and system for recovering system software in network terminating equipment Download PDF

Info

Publication number
CN101877651B
CN101877651B CN201010179938.6A CN201010179938A CN101877651B CN 101877651 B CN101877651 B CN 101877651B CN 201010179938 A CN201010179938 A CN 201010179938A CN 101877651 B CN101877651 B CN 101877651B
Authority
CN
China
Prior art keywords
network
terminal equipment
backup
termination device
subscriber terminal
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
CN201010179938.6A
Other languages
Chinese (zh)
Other versions
CN101877651A (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.)
Shenzhen Zhongxing Communication Technology Service Co., Ltd.
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 CN201010179938.6A priority Critical patent/CN101877651B/en
Publication of CN101877651A publication Critical patent/CN101877651A/en
Application granted granted Critical
Publication of CN101877651B publication Critical patent/CN101877651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for recovering system software in network terminating equipment. The method comprises the following steps that: a communication protocol and a backup strategy of the network terminating equipment are set between the network terminating equipment and customer premises equipment; the network terminating equipment transmits system software thereof needing backing up to the customer premises equipment for backup according to the set backup strategy and communication protocol when working normally; and a boot loader downloads the required system software from the customer premises equipment according to the set communication protocol when the network terminating equipment detects that the system software needs recovering at the boot loader of the network terminating equipment. The invention discloses a system for recovering the system software in the network terminating equipment at the same time. Through the scheme of the invention, a user can independently realize the recovery of the system software of the network terminating equipment and the method and the system have the advantages of simple method, convenient operation and capacity of saving the maintenance cost of the network terminating equipment.

Description

A kind of method and system of recovering system software in network terminating equipment
Technical field
The present invention relates to the system recovery technique of computer network and embedded system, relate in particular to a kind of method and system of recovering system software in network terminating equipment.
Background technology
At present, being similar to the such network-termination device of home gateway has started to popularize.These network-termination devices connect subscriber terminal equipment in local area network (LAN) (LAN) side by modes such as Ethernet (ETH), Wireless Fidelity (Wifi), USBs (USB), as personal computer (PC), personal digital assistant (PDA) etc., in wide area network (WAN) side, by modes such as Digital Subscriber Loop (DSL), ETH, EPONs (PON), connect internet (Internet), thereby provide the function of access Internet for subscriber terminal equipment.These network-termination devices mostly belong to the equipment of embedded system, conventionally adopt flash memory (flash) as non-volatile memory device, and flash is divided into some subregions, be respectively used to deposit bootstrap loader (BootLoader), software version (comprising operating system, application program etc.), configuration data etc.In order to support to expand new business, these network-termination devices are supported remote upgrade software version and configuration conventionally.
But, for a certain reason, such as in the process of the upgraded version unexpected power-off of network-termination device, software anomaly etc., can cause the software version on flash or configure destroyedly, to such an extent as to network-termination device can not normally start software version or could not get on to the Net.In this case, cannot recover destroyed software version or configuration by the method for remote upgrade.
For the destroyed situation of configuration, equipment provides the function of recovering default configuration conventionally, if software version can normally start, user can be by the specific button on equipment, or webpage (Web) configuration interface, revert to default configuration, configuration while dispatching from the factory, but there is a kind of possibility: the network environment providing due to operator changes, default configuration is not mated with current network environment, after recovering, also need configuration to modify, and for the ordinary terminal user of few of network knowledge, it is more difficult revising network configuration.
For the destroyed situation of software version, the mode that someone proposes is to adopt two versions, preserves two software versions on flash that is:, when a software version is damaged, just starts another one version.Specifically, there are several forms such as symmetric double version, big or small version.No matter which kind of form, owing to having increased a version, has all increased the demand to flash.Originally single version only needs the flash of 8MB, uses instead after two versions, probably just needs the flash of 16MB.And for network-termination device, due to enormous amount, how to reduce costs is a top-priority problem of needs.
If but adopt single version, software version destroyed after, just can not normally start.Although the Bootloader of most equipment has the function of updating software release, but normally offer, developer uses, want the updating software release by Bootloader, often need to take apart the shell of network-termination device, after connecting by Special debugging interfaces such as serial ports, JTAG, could be by software version programming in network-termination device.These operations are for ordinary terminal user, and obviously too complicated, like this, ordinary terminal user can only send network-termination device back to maintenace point, or is made house calls by maintenance personal.Because the quantity of network-termination device is huge, even if occur that the probability of this situation is extremely low, also mean and will produce a no small maintenance cost; And this reset mode bothers very much, inconvenience.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and system of recovering system software in network terminating equipment, and method is simple, and user can independently realize the recovery of the systems soft ware of network-termination device.
For achieving the above object, technical scheme of the present invention is achieved in that
The method of the recovery system software of a kind of network-termination device provided by the invention, the method comprises:
Between network-termination device and subscriber terminal equipment, set communication protocol, and the backup policy of setting network terminal equipment;
Network-termination device is when normal operation, and according to backup policy and the communication protocol set, the systems soft ware that self need to be backed up is sent to subscriber terminal equipment and backs up;
The BootLoader of network-termination device detects while needing recovery system software, according to the communication protocol of setting, by BootLoader, from subscriber terminal equipment, downloads required systems soft ware.
In such scheme, the systems soft ware that described network-termination device need to back up self is sent to subscriber terminal equipment and backs up, and is specially:
The software backup client-side program moving on network-termination device detects software backup serve end program on subscriber terminal equipment when operation, and the parameter of each current systems soft ware is sent to the software backup serve end program on subscriber terminal equipment; Software backup serve end program on subscriber terminal equipment is according to the parameter of each systems soft ware, when judgement has the systems soft ware that needs backup, return to corresponding judged result, the software backup client-side program of network-termination device, according to judged result, transmits corresponding systems soft ware and backs up to the software backup serve end program on subscriber terminal equipment.
In such scheme, described network-termination device is downloaded required systems soft ware by BootLoader from subscriber terminal equipment, is specially:
The BootLoader of network-termination device detects software backup serve end program on subscriber terminal equipment when operation, and the software backup serve end program on informing user terminal equipment starts recovery operation; Software backup serve end program on subscriber terminal equipment is received after the notice that starts recovery operation, returns to the acknowledge message of the parameter of carrying each systems soft ware; The BootLoader of network-termination device determines the systems soft ware that needs recovery according to the parameter of each systems soft ware, and downloads required systems soft ware from subscriber terminal equipment.
In such scheme, described systems soft ware comprises software version, configuration data;
The backup policy of described setting network terminal equipment comprises: setting network terminal equipment regular hour after startup start backup or setting network terminal equipment according to cycle regular hour start backup or setting network terminal equipment at remote upgrade start after systems soft ware to back up; Or setting network terminal equipment starts backup after user has revised some configuration; Described setting communication protocol is specially: be set as transmission control protocol (TCP) or User Datagram Protocol (UDP).
In such scheme, described method further comprises: network-termination device is when starting, and whether operating software backup client program, detect software backup serve end program on subscriber terminal equipment in operation, if in operation, and normal operation; If, in operation,, when user accesses the webpage of WAN side first by subscriber terminal equipment, described webpage is not directed to downloading page, guiding user downloads, installation and operation software backup serve end program.
In such scheme, described method further comprises: between network-termination device and subscriber terminal equipment, by physical interface, communicate.
In such scheme, described method further comprises: network-termination device is placed on Bootloader the flash sector being write-protected.
The system of the recovery system software of a kind of network-termination device provided by the invention, this system comprises: network-termination device, subscriber terminal equipment; Wherein,
Network-termination device, for and subscriber terminal equipment between set communication protocol, and set self backup policy; When normal operation, according to backup policy and the communication protocol set, the systems soft ware that self need to be backed up is sent to subscriber terminal equipment; And detect while needing recovery system software at self BootLoader, according to the communication protocol of setting, by BootLoader, from subscriber terminal equipment, download required systems soft ware;
Subscriber terminal equipment, for and network-termination device between set communication protocol, the systems soft ware that network-termination device is uploaded backs up, and according to the communication protocol of setting, provides the systems soft ware of backup to download for network-termination device.
In such scheme, described network-termination device comprises: upload backup module, download and recover module; Wherein,
Upload backup module, for when working, according to backup policy and the communication protocol set, the systems soft ware that self need to be backed up is sent to subscriber terminal equipment;
Download to recover module, for detecting while needing recovery system software, according to the communication protocol of setting, from subscriber terminal equipment, download required systems soft ware.
In such scheme, described in upload backup module, be further used for when network-termination device starts, whether operating software backup client program, detect software backup serve end program on subscriber terminal equipment in operation, if in operation, normal operation; If, in operation,, when user accesses the webpage of WAN side first by subscriber terminal equipment, described webpage is not directed to downloading page, guiding user downloads, installation and operation software backup serve end program;
Described network-termination device, further comprises protection module, for Bootloader being placed on to the flash sector being write-protected.
The method and system of recovering system software in network terminating equipment provided by the invention is set communication protocol between network-termination device and subscriber terminal equipment, and the backup policy of setting network terminal equipment; Network-termination device is when normal operation, and according to backup policy and the communication protocol set, the systems soft ware that self need to be backed up is sent to subscriber terminal equipment and backs up; The BootLoader of network-termination device detects while needing recovery system software, by BootLoader, according to the communication protocol of setting, from subscriber terminal equipment, downloads required systems soft ware; So, user can independently realize the recovery of the systems soft ware of network-termination device, and method is simple, convenient operation; Meanwhile, can also save the maintenance cost of network-termination device; The equipment of being applicable to adopts the situation of single software version, can not increase the hardware cost of equipment.And, systems soft ware directly can be reverted to the last state that can work, need to after recovering, not remake upgrading or configuration.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that the present invention realizes the method flow of recovering system software in network terminating equipment;
Fig. 2 is the schematic diagram that systems soft ware that network-termination device need to back up self uploads to the method flow that subscriber terminal equipment backs up;
Fig. 3 is that the BootLoader of network-termination device downloads the schematic diagram of the method flow of the corresponding system software backing up from subscriber terminal equipment;
Fig. 4 is the schematic diagram that the present invention realizes the system configuration of recovering system software in network terminating equipment.
Embodiment
Basic thought of the present invention is: between network-termination device and subscriber terminal equipment, set communication protocol, and the backup policy of setting network terminal equipment; Network-termination device is when normal operation, and according to backup policy and the communication protocol set, the systems soft ware that self need to be backed up is sent to subscriber terminal equipment and backs up; The BootLoader of network-termination device detects while needing recovery system software, according to the communication protocol of setting, from subscriber terminal equipment, downloads required systems soft ware.
Here, described systems soft ware comprises software version, configuration data etc.
Below by drawings and the specific embodiments, the present invention is described in further detail.
The present invention realizes the method for recovering system software in network terminating equipment, and as shown in Figure 1, the method comprises following step:
Step 101: between network-termination device and subscriber terminal equipment, set communication protocol, and the backup policy of setting network terminal equipment;
Here, described setting communication protocol, is generally set as TCP or UDP; Be setting UDP in the present embodiment, and stipulated the message as Types Below:
Probe: whether moving for detection of software backup serve end program;
Probe-Ack: the confirmation response for software backup serve end program in operation;
Backup: for starting backup operation;
Backup-Ack: for starting the confirmation response of backup operation;
Restore: for starting recovery operation;
Restore-Ack: for starting the confirmation response of recovery operation;
DataRequest: for download request;
DataStart, DataStart-Ack, DataBlock, DataEnd, DataEnd-Ack: for uploading or download system software.
The backup policy of described setting network terminal equipment can be to start backup setting network terminal equipment regular hour after startup; Or setting network terminal equipment starts backup according to cycle regular hour; Or setting network terminal equipment at remote upgrade start backup after systems soft ware; Or setting network terminal equipment starts backup etc. after user has revised some configuration;
Step 102: during network-termination device normal operation, according to backup policy and the communication protocol set, the systems soft ware that self need to be backed up is sent to subscriber terminal equipment and backs up;
Concrete, as shown in Figure 2, this step comprises following step:
Step 102a: when network-termination device works, according to backup policy and the communication protocol set, whether the software backup serve end program that the software backup client-side program moving on network-termination device detects on subscriber terminal equipment is moving, if in operation, perform step 102b; If, in operation, do not perform step 102e;
Concrete, when network-termination device works, the software backup client-side program moving on network-termination device can, according to the communication protocol of setting, send Probe and wrap to subscriber terminal equipment; If receive the Probe-Ack bag that subscriber terminal equipment returns, think that software backup serve end program, in operation, performs step 102b on subscriber terminal equipment; If software backup client-side program, after sending the Probe bag of predetermined number of times, is not received Probe-Ack bag yet, think that software backup serve end program, not in operation, performs step 102e on subscriber terminal equipment.
Described software backup client-side program is to be arranged in advance on network-termination device, for subscriber terminal equipment on software backup serve end program mutual, the systems soft ware of needs backups is sent to subscriber terminal equipment and backs up;
Described software backup serve end program is to be arranged in advance on subscriber terminal equipment, for the software backup client-side program with network-termination device and Bootloader, carries out alternately, completing backup and the recovery of systems soft ware in network-termination device.
Step 102b: software backup client-side program sends to the software backup serve end program on subscriber terminal equipment by the parameter of each current systems soft ware;
Concrete, software backup client-side program sends Backup bag, wherein, and the parameter of carrying each current systems soft ware of network-termination device in Backup bag; The parameter of described each systems soft ware comprises: the parameter of software version is the parameter of software version number, configuration data cryptographic Hash that is configuration data etc.;
Step 102c: the software backup serve end program on subscriber terminal equipment, according to the parameter of each systems soft ware, judges whether to need the systems soft ware of backup, backs up if necessary, performs step 102d; If do not needed, process ends;
Concrete, software backup serve end program on subscriber terminal equipment is after receiving Backup bag, whether the parameter that judges each systems soft ware in Backup bag is consistent with the last parameter that backs up each systems soft ware of preserving, if all consistent, do not need standby system software, process ends; If have inconsistently, perform step 102d;
For example: if the software version number that last backup is preserved is consistent with the software version number in Backup bag, do not need backup software version, if inconsistent, need backup software version, execution step 102d;
For another example: software backup serve end program calculates the last cryptographic Hash that backs up the configuration data of preserving, the cryptographic Hash comparison of the configuration data in wrapping with Backup, if consistent, do not need backup configuration data, if inconsistent, need backup software version, execution step 102d;
Further, in this step, if when the parameter of the systems soft ware comparing does not have on subscriber terminal equipment, think that this systems soft ware needs backup, judgment result is that inconsistent.
Step 102d: software backup serve end program returns to corresponding judged result, the software backup client-side program of network-termination device is according to judged result, upload corresponding systems soft ware and back up to the software backup serve end program on subscriber terminal equipment, flow process finishes;
For example, when software backup serve end program returns to Backup and wraps and carry the judged result of non-uniformity of software versions, the software backup client-side program of network-termination device sends DataStart and wraps to software backup serve end program, wherein carries the information such as software version number, software version length; The corresponding information of the software version that software backup serve end program has been preserved according to the information updating in DataStart, and return to DataStart-Ack bag; The software backup client-side program of network-termination device receives that after DataStart-Ack bag,, by software version piecemeal, block-by-block wraps transmission by DataBlock, after being all sent completely, sends DataEnd bag; Software backup serve end program on subscriber terminal equipment is received after DataEnd bag, by resolving from each DataBlock bag the software version piecemeal obtaining, forms complete software version, stores the position of appointment into, and returns to DataEnd-Ack bag;
When software backup serve end program returns to Backup and wraps and carry the inconsistent judged result of configuration data, the software backup client-side program of network-termination device sends DataStart and wraps to software backup serve end program, wherein carries the information such as length of configuration data; The corresponding information of the configuration data that software backup serve end program has been preserved according to the information updating in DataStart, and return to DataStart-Ack bag; The software backup client-side program of network-termination device receives that after DataStart-Ack bag,, by configuration data piecemeal, block-by-block wraps transmission by DataBlock, after being all sent completely, sends DataEnd bag; Software backup serve end program on subscriber terminal equipment is received after DataEnd bag, by resolving from each DataBlock bag the configuration data piecemeal obtaining, forms complete configuration data, stores the position of appointment into, returns to DataEnd-Ack bag.
Step 102e: when user accesses the Web of WAN side first by subscriber terminal equipment, the software backup client-side program of network-termination device is directed to downloading page by described webpage, guiding user downloads, installation and operation software backup serve end program, execution step 102b;
Concrete, the software backup client-side program of network-termination device arranges software backup serve end program off-duty sign, when user accesses the Web of WAN side first by subscriber terminal equipment, web server on network-termination device detects software backup serve end program off-duty sign, described webpage is directed to downloading page, guiding user downloads, installation and operation software backup serve end program, execution step 102b.
Step 103: the BootLoader of network-termination device detects while needing recovery system software, according to the communication protocol of setting, downloads required systems soft ware by BootLoader from subscriber terminal equipment;
Concrete, as shown in Figure 3, this step comprises:
Step 103a: when powering on, whether the BootLoader of network-termination device detection system software on flash is destroyed, destroyed when systems soft ware having been detected, in the time of need to recovering, whether the software backup serve end program detecting on subscriber terminal equipment is moving, if in operation, perform step 103b; If, in operation, do not perform step 103e;
Whether the BootLoader of described network-termination device detection system software on flash is destroyed, generally, by calculating the integrality of the mode check system softwares such as CRC, digital signature, judges that whether systems soft ware is destroyed;
Further, this step also comprises: the specified button of BootLoader Sampling network terminal equipment, but described button is when be pressed, and thinks equally and has systems soft ware to need to recover; The specified button of described network-termination device, for what arrange on network-termination device in advance, for when systems soft ware damages, manually starts the button of recovery operation.
Step 103b: the software backup serve end program on the BootLoader informing user terminal equipment of network-termination device starts recovery operation;
Concrete, the BootLoader of network-termination device sends Restore and wraps to the software backup serve end program on subscriber terminal equipment;
Step 103c: the software backup serve end program on subscriber terminal equipment is received after the notice that starts recovery operation, returns to the acknowledge message of the parameter of carrying each systems soft ware;
Concrete, the software backup serve end program on subscriber terminal equipment is received after Restore bag, returns to the Restore-Ack bag of the parameter of carrying each systems soft ware;
Step 103d: the BootLoader of network-termination device determines the systems soft ware that needs recovery according to the parameter of each systems soft ware, and downloads required systems soft ware from subscriber terminal equipment;
For example, when the BootLoader of network-termination device detects inconsistent that software version damage or software version number and Restore-Ack bag carry, send DataRequest to subscriber terminal equipment, wherein specify the software version number that will download; After software backup serve end program on subscriber terminal equipment is received, send DataStart and wrap to network-termination device, wherein carry the information such as software version number, software version length; After network-termination device is received, return to DataStart-Ack bag; Software backup serve end program on subscriber terminal equipment is by the software version piecemeal of backup, and block-by-block wraps transmission by DataBlock, after being all sent completely, sends DataEnd bag; Network-termination device is received after DataEnd bag, returns to DataEnd-Ack bag, and to after the integrality of software version, legitimate verification, software version is write in Flash;
When the BootLoader of network-termination device detects inconsistent that the cryptographic Hash of configuration data and Restore-Ack bag carry, send DataRequest to subscriber terminal equipment, wherein specify the configuration data that will download; After software backup serve end program on subscriber terminal equipment is received, send DataStart and wrap to network-termination device, wherein carry the information such as length of configuration data; After network-termination device is received, return to DataStart-Ack bag; Software backup serve end program on subscriber terminal equipment is by the configuration data piecemeal of backup, and block-by-block wraps transmission by DataBlock, after being all sent completely, sends DataEnd bag; Network-termination device is received after DataEnd bag, returns to DataEnd-Ack bag, and to after the integrity verification of configuration data, configuration data is write in Flash.
Step 103e: the BootLoader of network-termination device adopts the mode of appointment to point out user to start the software backup serve end program on subscriber terminal equipment, execution step 103a;
The mode of described appointment comprises the mode of indicator light prompting etc.;
Further, if while there is no described software backup serve end program on subscriber terminal equipment, can, by the fixing disc of operational outfit, carry out installation and operation software backup serve end program;
Further, method of the present invention also comprises: between network-termination device and subscriber terminal equipment, by physical interface, communicate, wherein, physical interface is the physical interface of supporting in BootLoader, can be ETH, WIFI, USB etc.;
Further, the method for the invention also comprises: network-termination device is protected Bootloader, avoids damaged, is generally Bootloader is placed on to the flash sector being write-protected.
Based on said method, the present invention also provides a kind of system of recovery system software of network-termination device, and as shown in Figure 4, this system comprises: network-termination device 41, subscriber terminal equipment 42; Wherein,
Network-termination device 41, for and 42 of subscriber terminal equipments set communication protocols, and set self backup policy; When normal operation, according to backup policy and the communication protocol set, the systems soft ware that self need to be backed up is sent to subscriber terminal equipment 42; And when the BootLoader of self detects the systems soft ware that needs recovery, according to the communication protocol of setting, by BootLoader, from subscriber terminal equipment 42, download required systems soft ware;
Subscriber terminal equipment 42, for and 41 of network-termination devices set communication protocols, the systems soft ware that network-termination device 41 is transmitted backs up, and according to the communication protocol of setting, provides the systems soft ware of backup to download for network-termination device 41;
Described network-termination device 41 further comprises: upload backup module 411, download and recover module 412; Wherein,
Upload backup module 411, for when working, according to backup policy and the communication protocol set, the systems soft ware that self need to be backed up is sent to subscriber terminal equipment 42;
Concrete, the described backup module 411 of uploading detects software backup serve end program on subscriber terminal equipment 42 when the operation by software backup client-side program, to subscriber terminal equipment 42, send the parameter of each systems soft ware, the judged result of returning according to subscriber terminal equipment 42, transmits corresponding systems soft ware to the software backup serve end program on subscriber terminal equipment 42;
Accordingly, described subscriber terminal equipment 42 backs up for the systems soft ware that network-termination device 41 is transmitted, concrete, software backup serve end program on subscriber terminal equipment 42 is according to the parameter of each systems soft ware, when judgement has the systems soft ware that needs backup, return to corresponding judged result, and back up uploading the systems soft ware that backup module 411 uploads by software backup client-side program;
Download to recover module 412, for detecting while needing recovery system software, according to the communication protocol of setting, from subscriber terminal equipment 42, download required systems soft ware;
Described download recovers module 412 and is placed in the BootLoader of network-termination device 41;
Concrete, described download recovers module 412 and detects while needing recovery system software, and according to the communication protocol of setting, the software backup serve end program on informing user terminal equipment 42 starts recovery operation; The parameter of each systems soft ware sending according to software backup serve end program, determines the systems soft ware that needs recovery, and downloads required systems soft ware from subscriber terminal equipment 42;
Accordingly, described subscriber terminal equipment 42 is for providing the systems soft ware of backup to download for network-termination device 41, concrete, software backup serve end program on subscriber terminal equipment 42 is received after the notice that starts recovery operation, return to the acknowledge message of the parameter of carrying each systems soft ware, after downloading the definite systems soft ware that will download of recovery module 412, provide the corresponding system software of backup for downloading;
Further, described in upload backup module 411, also for when network-termination device 41 starts, whether operating software backup client program, detect software backup serve end program on subscriber terminal equipment 42 in operation, if in operation, normal operation; If, in operation,, when user accesses the webpage of WAN side first by subscriber terminal equipment 42, described webpage is not directed to downloading page, guiding user downloads, installation and operation software backup serve end program;
Described download recovers module 412, is further used for when systems soft ware being detected and need to recover, and whether detects software backup serve end program on subscriber terminal equipment 42 in operation, if in operation, and normal operation; If not in operation, adopt the mode of appointment to point out user to start the software backup serve end program on subscriber terminal equipment, and whether the software backup serve end program on continuation detection subscriber terminal equipment 42 is in operation;
Further, described network-termination device 41 also comprises protection module 413, for Bootloader is protected, avoids damaged, is generally that Bootloader is placed on to the flash sector being write-protected.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a method for the recovery system software of network-termination device, is characterized in that, the method comprises:
Between network-termination device and subscriber terminal equipment, set communication protocol, and the backup policy of setting network terminal equipment;
Network-termination device is when normal operation, the software backup client-side program moving on network-termination device detects software backup serve end program on subscriber terminal equipment when operation, network-termination device is according to backup policy and the communication protocol set, and the systems soft ware that self need to be backed up is sent to subscriber terminal equipment and backs up;
The bootstrap loader of network-termination device (BootLoader) detects while needing recovery system software, according to the communication protocol of setting, by BootLoader, from subscriber terminal equipment, downloads required systems soft ware.
2. method according to claim 1, is characterized in that, the systems soft ware that described network-termination device need to back up self is sent to subscriber terminal equipment and backs up, and is specially:
The parameter of each current systems soft ware is sent to the software backup serve end program on subscriber terminal equipment; Software backup serve end program on subscriber terminal equipment is according to the parameter of each systems soft ware, when judgement has the systems soft ware that needs backup, return to corresponding judged result, the software backup client-side program of network-termination device, according to judged result, transmits corresponding systems soft ware and backs up to the software backup serve end program on subscriber terminal equipment.
3. method according to claim 1, is characterized in that, described network-termination device is downloaded required systems soft ware by BootLoader from subscriber terminal equipment, is specially:
The BootLoader of network-termination device detects software backup serve end program on subscriber terminal equipment when operation, and the software backup serve end program on informing user terminal equipment starts recovery operation; Software backup serve end program on subscriber terminal equipment is received after the notice that starts recovery operation, returns to the acknowledge message of the parameter of carrying each systems soft ware; The BootLoader of network-termination device determines the systems soft ware that needs recovery according to the parameter of each systems soft ware, and downloads required systems soft ware from subscriber terminal equipment.
4. according to the method described in claims 1 to 3 any one, it is characterized in that, described systems soft ware comprises software version, configuration data;
The backup policy of described setting network terminal equipment comprises: setting network terminal equipment regular hour after startup start backup or setting network terminal equipment according to cycle regular hour start backup or setting network terminal equipment at remote upgrade start backup after systems soft ware or setting network terminal equipment starts to back up after user has revised some configuration;
Described setting communication protocol is specially: be set as transmission control protocol (TCP) or User Datagram Protocol (UDP).
5. method according to claim 4, is characterized in that, described method further comprises: network-termination device is when starting, operating software backup client program, whether the software backup serve end program detecting on subscriber terminal equipment is moving, if in operation, and normal operation; If, in operation,, when user accesses the webpage of wide area network (WAN) side first by subscriber terminal equipment, described webpage is not directed to downloading page, guiding user downloads, installation and operation software backup serve end program.
6. method according to claim 4, is characterized in that, described method further comprises: between network-termination device and subscriber terminal equipment, by physical interface, communicate.
7. method according to claim 4, is characterized in that, described method further comprises: network-termination device is placed on Bootloader flash memory (flash) sector being write-protected.
8. a system for the recovery system software of network-termination device, is characterized in that, this system comprises: network-termination device, subscriber terminal equipment; Wherein,
Network-termination device, for and subscriber terminal equipment between set communication protocol, and set self backup policy; When normal operation, the software backup client-side program moving on network-termination device detects software backup serve end program on subscriber terminal equipment when operation, network-termination device is according to backup policy and the communication protocol set, and the systems soft ware that self need to be backed up is sent to subscriber terminal equipment; And detect while needing recovery system software at self BootLoader, according to the communication protocol of setting, by BootLoader, from subscriber terminal equipment, download required systems soft ware;
Subscriber terminal equipment, for and network-termination device between set communication protocol, the systems soft ware that network-termination device is uploaded backs up, and according to the communication protocol of setting, provides the systems soft ware of backup to download for network-termination device.
9. system according to claim 8, is characterized in that, described network-termination device comprises: upload backup module, download and recover module; Wherein,
Upload backup module, for when working, according to backup policy and the communication protocol set, the systems soft ware that self need to be backed up is sent to subscriber terminal equipment;
Download to recover module, for detecting while needing recovery system software, according to the communication protocol of setting, from subscriber terminal equipment, download required systems soft ware.
10. system according to claim 9, it is characterized in that, the described backup module of uploading, be further used for when network-termination device starts, operating software backup client program, whether the software backup serve end program detecting on subscriber terminal equipment is moving, if in operation, and normal operation; If, in operation,, when user accesses the webpage of WAN side first by subscriber terminal equipment, described webpage is not directed to downloading page, guiding user downloads, installation and operation software backup serve end program;
Described network-termination device, further comprises protection module, for Bootloader being placed on to the flash sector being write-protected.
CN201010179938.6A 2010-05-20 2010-05-20 Method and system for recovering system software in network terminating equipment Active CN101877651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010179938.6A CN101877651B (en) 2010-05-20 2010-05-20 Method and system for recovering system software in network terminating equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010179938.6A CN101877651B (en) 2010-05-20 2010-05-20 Method and system for recovering system software in network terminating equipment

Publications (2)

Publication Number Publication Date
CN101877651A CN101877651A (en) 2010-11-03
CN101877651B true CN101877651B (en) 2014-03-12

Family

ID=43020121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010179938.6A Active CN101877651B (en) 2010-05-20 2010-05-20 Method and system for recovering system software in network terminating equipment

Country Status (1)

Country Link
CN (1) CN101877651B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999398B (en) * 2011-09-15 2014-06-11 腾讯科技(深圳)有限公司 Method, system and device for user system recovery
CN102801576B (en) * 2012-04-27 2015-08-19 上海斐讯数据通信技术有限公司 The detection system of the network equipment and detection method
CN103024729B (en) * 2012-12-03 2015-08-12 东莞宇龙通信科技有限公司 The method of data backup, Apparatus and system
CN104216798A (en) * 2013-07-29 2014-12-17 腾讯科技(深圳)有限公司 Data processing method and terminal
CN103561324A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Method and device for conducting cloud packing-up on application program of cloud television
CN103546807A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Cloud back-up and restoration method and related device
CN104754410B (en) * 2015-03-16 2018-04-10 深圳市九洲电器有限公司 Cable modem safety method and system
CN105187243A (en) * 2015-08-20 2015-12-23 上海斐讯数据通信技术有限公司 Configuration upgrading system, configuration upgrading method and routing equipment
CN105391031B (en) * 2015-11-18 2018-05-08 许继集团有限公司 The data processing method and system of protective relaying device with more plug-in units
CN105898070A (en) * 2016-05-26 2016-08-24 宇龙计算机通信科技(深圳)有限公司 Application setting method and system, server and terminal
CN108614745A (en) * 2016-12-09 2018-10-02 北京京存技术有限公司 Manufacture bad block processing method based on NAND flash and NAND flash storage devices
CN110377309B (en) * 2019-07-18 2023-12-15 上海擎感智能科技有限公司 Data recovery method, system and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159647A (en) * 2007-10-22 2008-04-09 中国电信股份有限公司 System and method of implementing gateway local parameter fast recovery
EP1939762A1 (en) * 2006-12-29 2008-07-02 Vodafone Holding GmbH Method for managing content for a mobile device and remote gateway for managing content
CN101656951A (en) * 2009-09-17 2010-02-24 李平 Cellphone, cellphone information backup system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1939762A1 (en) * 2006-12-29 2008-07-02 Vodafone Holding GmbH Method for managing content for a mobile device and remote gateway for managing content
CN101159647A (en) * 2007-10-22 2008-04-09 中国电信股份有限公司 System and method of implementing gateway local parameter fast recovery
CN101656951A (en) * 2009-09-17 2010-02-24 李平 Cellphone, cellphone information backup system and method

Also Published As

Publication number Publication date
CN101877651A (en) 2010-11-03

Similar Documents

Publication Publication Date Title
CN101877651B (en) Method and system for recovering system software in network terminating equipment
US7107482B2 (en) Program update apparatus and method
US8539471B2 (en) Updating firmware of an electronic device
CN101377744B (en) Method and apparatus for recovering terminal equipment software upgrade
CN110333891A (en) The method of enhanced OTA upgrading based on Internet of Things
US8161474B2 (en) Diagnostic information preservation during installations of over the air update of wireless handset software
WO2019062703A1 (en) Update method, and embedded system
CN101807152B (en) Basic output and input system for self verification of selection read only memory and verification method thereof
CN104572206A (en) Application program self updating and backup recovery method
CN103530150A (en) Remote updating method for Linux operating system
CN107995284B (en) OTA (over the air) upgrading method suitable for POS (point of sale) machine
KR101327680B1 (en) Apparatus, system and method for upgrading firmware of energy device
KR101541112B1 (en) FOTA system and the method
CN109413164B (en) Access service recovery method, device, equipment and readable storage medium
US9864596B2 (en) Network switch system and operating method thereof
CN102609304A (en) Management method for internal third-party applications of Android mobile phone
TWI764454B (en) Firmware corruption recovery
CN105094919A (en) Application program starting method
CN101330695A (en) Mobile terminal as well as system upgrade method and device thereof
WO2023198056A1 (en) Firmware update method for embedded device, and embedded device
CN104991805A (en) Intelligent device and system disaster recovery backup control method thereof
CN107766063A (en) A kind of method and system of batch upgrade software
WO2013004175A1 (en) Software upgrading method and apparatus for electronic devices
Parthasarathy et al. Over the air programming on Imote2-based sensor networks
KR101190314B1 (en) System and Method for Updating Firmware Using Smart Phone App.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170504

Address after: 518057 Nanshan District high tech Industrial Park, Guangdong Province, ZTE building,, A3-01A3-02

Patentee after: Shenzhen Zhongxing Communication Technology Service 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 Corporation