CN104426601A - Automatic detection and software rollback reporting method and device in optical network terminal (ONT) - Google Patents

Automatic detection and software rollback reporting method and device in optical network terminal (ONT) Download PDF

Info

Publication number
CN104426601A
CN104426601A CN201310410997.3A CN201310410997A CN104426601A CN 104426601 A CN104426601 A CN 104426601A CN 201310410997 A CN201310410997 A CN 201310410997A CN 104426601 A CN104426601 A CN 104426601A
Authority
CN
China
Prior art keywords
software
software version
version number
rollback
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
CN201310410997.3A
Other languages
Chinese (zh)
Other versions
CN104426601B (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.)
Nokia Shanghai Bell Co Ltd
Original Assignee
Alcatel Lucent Shanghai Bell Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alcatel Lucent Shanghai Bell Co Ltd filed Critical Alcatel Lucent Shanghai Bell Co Ltd
Priority to CN201310410997.3A priority Critical patent/CN104426601B/en
Publication of CN104426601A publication Critical patent/CN104426601A/en
Application granted granted Critical
Publication of CN104426601B publication Critical patent/CN104426601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for detecting and reporting automatic rollback of software in an optical network terminal (ONT) of a communication system. The method comprises the following steps: judging whether new software is downloaded successfully or not by ONT software; if so, setting an upgrading mark and updating a prior software version variable by virtue of a software version number in a current software version variable, and if not, reporting that the downloading of the new software is failed; then automatically restarting; updating a current software version variable by virtue of the software version number of the current software; then judging whether the upgrading mark is set or not; if so, further judging whether the software version number in the current software version variable is consistent to a software version number of the prior software version variable or not; and if so, reporting software rollback to an automatic configuration server and eliminating the upgrading mark, and if not, eliminating the upgrading mark, so that the software is upgraded successfully.

Description

Automatically detect and reporting software backing method and device in Optical Network Terminal
Technical field
The present invention relates to communication system, particularly relate in the Optical Network Terminal of communication system and detect and the method and apparatus of reporting software rollback.
Background technology
TR069 provides the mode of another kind of remotely managing optical network terminal (ONT) software.It can ask to download special-purpose software to ONT from Automatic Configuration Server (ACS), and once download, installs new software to ONU.But current institute problems faced is, though new software fail start and rollback (rollback) to old software when, transferComplete message still can be reported and upgrade successfully.
For this reason, operator must obtain software version information from ONT, and the software version before renewal and new software version compare by artificially.If comparative result is identical, then shows that rollback occurs, upgrade unsuccessfully; If redaction is desired version, then show that upgrading completes and success.Therefore, not yet there is the scheme effectively solving this problem in prior art.
Summary of the invention
In order to solve above-mentioned defect of the prior art, this application provides a kind of ONT can the scheme of reporting software rollback automatically.
In TR609 agreement, TransferComplete message is used for report finish state in software upgrade process.But it still fails the problem of the software rollback solved in Amendment-4.For supporting this function, the present invention expands the wrong structure (fault structure) in existing TransferComplete message, can indicate new software upgrading failure and rollback extremely this situation of old software.In one embodiment, error code (fault code) in fault structure can be expanded, for example, can define fault code is 9800 (certainly, also can be the numerical value beyond 9800) represent new software upgrading failure and the old software of rollback, like this, when ACS knows that faultcode is 9800 from the TransferComplete message received, new software upgrading failure in ONT can be known and rollback to old software.
In addition, the present invention also expands the data model of (this TR098 agreement is the internet gateway device data model of TR069 agreement) in TR098 agreement, newly defines node InternetGatewayDevice.X_SoftwareMgnt and is used to indicate software kit information in ONT.This node InternetGatewayDevice.X_SoftwareMgnt can comprise Two Variables and be respectively current software version (CurrentSoftwareVersion) variable and prior software release (PreviousSoftwareVersion) variable, wherein, CurrentSoftwareVersion variable is for identifying software version number current installed in CPE, and PreviousSoftwareVersion variable is for being identified at the old software version number before new software upgrading in CPE.
Based on above-mentioned expansion, the present invention in one embodiment, propose a kind of in the Optical Network Terminal of communication system for detecting and the method for reporting software rollback, wherein, said method comprising the steps of: a. judges whether new software is downloaded successfully; B. if then arrange upgrading mark, and upgrade prior software release variable with the software version number in current software version variable; If not, then described new software download failure is reported; C. autoboot; D. described current software version variable is upgraded with the software version number of current institute mounting software; E. judge whether described upgrading mark is arranged; F. if then judge that whether the software version number in described current software version variable is consistent with the software version number in described prior software release variable further; G. if then to Automatic Configuration Server reporting software rollback, and remove described upgrading mark; If not, then described upgrading mark is removed.
Favourable, the step to described Automatic Configuration Server reporting software rollback in described step e comprises: send TransferComplete request message to described Automatic Configuration Server, and the wrong structure in described TransferComplete request message comprises and is used to indicate described new software upgrading failure and the information returning back to old software.
Favourable, indicate described new software upgrading failure by the error code in described wrong structure and return back to old software.
The present invention in another embodiment, propose a kind of in the Automatic Configuration Server of communication system for receive software rollback report method, wherein, said method comprising the steps of: i. receive report from the software rollback of Optical Network Terminal.
Favourable, described step I comprises: receive the TransferComplete request message from described Optical Network Terminal, and the wrong structure in described TransferComplete request message comprises and is used to indicate described new software upgrading failure and the information returning back to old software.
Favourable, indicate described new software upgrading failure by the error code in described wrong structure and return back to old software.
Various aspects of the present invention are more clear by the explanation by specific embodiment hereinafter.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, other features, objects and advantages of the present invention will become more apparent:
Fig. 1 shows according to an embodiment of the invention detection in Optical Network Terminal and the method flow diagram of reporting software rollback;
Fig. 2 shows flow chart mutual with Automatic Configuration Server before Optical Network Terminal according to an embodiment of the invention is restarted;
Fig. 3 shows flow chart mutual with Automatic Configuration Server after Optical Network Terminal according to an embodiment of the invention is restarted.
In the drawings, same or similar Reference numeral represents identical or corresponding parts or feature.
Embodiment
Hereinafter, first to the expansion of TR069Amendment4 and be described the expansion of TR098.
(1) TR069Amendment4 is expanded
In one embodiment, the fault code in the fault structure in TransferComplete message can be expanded, is used to indicate new software upgrading failure and rollback extremely old software, shown in table specific as follows:
It should be noted that, fault code is set to 9800 expression new software upgrading failure and rollback to old software is only an example, in other examples, also fault code can be set to other values be used for representing that the failed also rollback of new software upgrading is to the generation of old this situation of software, this it will be appreciated by those skilled in the art that, therefore not to repeat here.
(2) TR098 is expanded
For realizing object of the present invention, a new definition node InternetGatewayDevice.X_SoftwareMgnt in TR098 agreement.By this node, ONT just clearly can know the software kit information of system.Shown in table specific as follows:
It should be noted that, the length of character string is defined as 64 characters and is only an example, and it will be understood by those skilled in the art that in actual applications, the length of character string also can be the character of any number, as long as can indicate software version exactly.
Below by the node InternetGatewayDevice.X_SoftwareMgnt based on definition new in the fault code expanded in above-mentioned TR069 agreement and TR098 agreement, the method for ONT detection according to an embodiment of the invention and reporting software rollback is described.
With reference to figure l, first, in step S101, ONT judges whether new software is downloaded successfully.If new software download success, then in step s 102, ONT arranges upgrading mark (upgrade flag), be such as 1 by upgrading traffic sign placement, and upgrade the software version number of PreviousSoftwareVersion variable with the software version number in CurrentSoftwareVersion variable.If new software is not downloaded successfully, then in step s 103, ONT reports the failure of new software download.
Then, in step S104, ONT is restarted automatically.
It is more than the step performed before ONT is restarted.
After ONT is restarted, in step S105, ONT upgrades the software version number in CurrentSoftwareVersion variable with the software version number of current institute mounting software.
Install unsuccessfully cannot enable due to downloaded new software may be there is in the process of restarting at ONT, therefore, software current installed in this case may or before old software.Certainly, if the new software installation of downloading after successfully enabling, the version number of current institute mounting software is exactly the software version number of downloaded new software.
After ONT is restarted, in order to detect the situation whether software rollback occurs, such as, so in step s 106, ONT judges whether upgrading mark is arranged, and, whether upgrading mark is 1.If upgrading mark is arranged, then in step s 107, ONT judges that whether the software version number in CurrentSoftwareVersion variable is consistent with the software version number in PreviousSoftwareVersion variable further.If upgrading mark is not arranged, then terminate this flow process.
If ONT judges that the software version number in CurrentSoftwareVersion variable is consistent with the software version number in PreviousSoftwareVersion variable, then in step S108, ONT to ACS reporting software rollback, then, enter in step S109, ONT removes upgrading mark.If ONT judge the software version number in CurrentSoftwareVersion variable and the software version number in PreviousSoftwareVersion variable inconsistent, then ONT directly enters step S109.
In one embodiment, ONT can indicate new software upgrading failure and rollback extremely this situation of old software generation by sending to the fault code in the fault structure in the TransferComplete request message of ACS to ACS.Such as, fault code can be set to 9800 by ONT, when ACS receives TransferComplete request message and know that fault code is 9800 from TransferComplete request message, can know in the new software upgrading in ONT place failure and rollback to old software.
By the angle from ONT and ACS interactive sessions, the present invention is further described below.
With reference to Fig. 2, first, in step s 201, ONT initiates Openconnection to ACS.Then, in step S202, between ONT and ACS, carry out SSLinitiation.
Then, in step S203, ONT sends Inform request to ACS with HTTP Post form.ACS sends Informresponse to ONT with HTTP response form in step S204.
Then, in step S205, ONT sends HTTP Post (empty) to ACS.ACS sends GetParametervaluesrequest to ONT with HTTP response form in step S206.Then, in step S207, ONT sends GetParameterValues response to ACS with HTTP Post form.
Then, in step S208, ACS checks software version and determines update software bag.Then, in step S209, ACS sends Downloadrequest to ONT with HTTP response form.ONT sends Download response to ACS with HTTP POST form in step S210.
Then, in step S211, ONT starts from ACS download new software and verifies this new software kit, if the image file of new software is legal, stores this new software.Afterwards, ONT performs the step S101 to 104 in above-mentioned Fig. 1.
It is more than the interactive sessions before ONT is restarted between ONT and ACS.
It should be noted that, above-mentioned steps S201 to S210 is existing interactive step in existing protocol, for simplicity's sake, is not described in detail.
Interactive sessions after restarting ONT hereinafter with reference to Fig. 3 between ONT and ACS is described.
First, in step S301, ONT performs the some steps in the step S105-S109 of above-mentioned Fig. 1.Meanwhile, ONT sends Inform request to ACS with HTTP Post form in step s 302.Then, ACS sends Inform response to ONT with HTTP response form in step S303.
Then, in step s 304, ONT sends TransferComplete request to ACS with HTTP Post form.If the fault code in the TransferComplete request that ACS receives is 9800, then can to know in the new software upgrading in ONT place failure and rollback is to old software, so in step S305, ACS can give the alarm.
Then, in step S306, ACS sends TransferComplete response to ONT with HTTP response form.
Then, in step S307, ONT sends HTTP Post (empty) to ACS.ACS sends HTTP response (empty) to ONT in step S308.
Finally, in step S309, ONT initiates Close connection to ACS.
So far, whole flow process terminates.
It should be noted that, above-described embodiment is only exemplary, but not limitation of the present invention.Any technical scheme not deviating from spirit of the present invention all should fall within protection scope of the present invention, and this comprises the different technologies feature that use occurs in different embodiments, and installation method can combine, to obtain beneficial effect.In addition, any Reference numeral in claim should be considered as the claim involved by restriction; " comprise " word and do not get rid of device unlisted in other claims or specification or step.

Claims (12)

1. in the Optical Network Terminal of communication system for automatically detecting and the method for reporting software rollback, wherein, said method comprising the steps of:
A. judge whether new software is downloaded successfully;
B. if then arrange upgrading mark, and upgrade the software version number in prior software release variable with the software version number in current software version variable;
If not, then described new software download failure is reported;
C. autoboot;
D. the software version number in described current software version variable is upgraded with the software version number of current institute mounting software;
E. judge whether described upgrading mark is arranged;
F. if then judge that whether the software version number in described current software version variable is consistent with the software version number in described prior software release variable further;
G. if then to Automatic Configuration Server reporting software rollback, and remove described upgrading mark;
If not, then described upgrading mark is removed.
2. method according to claim 1, is characterized in that, the step to described Automatic Configuration Server reporting software rollback in described step e comprises:
-sending TransferComplete request message to described Automatic Configuration Server, the wrong structure in described TransferComplete request message comprises and is used to indicate described new software upgrading failure and the information returning back to old software.
3. method according to claim 2, is characterized in that, indicates described new software upgrading failure and return back to old software by the error code in described wrong structure.
4. in the Automatic Configuration Server of communication system for receive software rollback report a method, wherein, said method comprising the steps of:
I. the software rollback received from Optical Network Terminal is reported.
5. method according to claim 4, is characterized in that, described step I comprises:
-receiving TransferComplete request message from described Optical Network Terminal, the wrong structure in described TransferComplete request message comprises and is used to indicate described new software upgrading failure and the information returning back to old software.
6. method according to claim 5, is characterized in that, indicates described new software upgrading failure and return back to old software by the error code in described wrong structure.
7. in the Optical Network Terminal of communication system for detecting and the device of reporting software rollback, wherein, described device comprises:
First judging unit, for judging whether new software is downloaded successfully;
First setting/reporting unit, if be yes for judged result, then arrange upgrading mark, and upgrades the software version number in prior software release variable with the software version number in current software version variable; If judged result is no, then report described new software download failure;
Restart unit, for autoboot;
Second setting unit, for upgrading the software version number in described current software version variable with the software version number of current institute mounting software;
Second judging unit, for judging whether described upgrading mark is arranged;
3rd judging unit, if be yes for judged result, then judges that whether the software version number in described current software version variable is consistent with the software version number in described prior software release variable further;
Second report/clearing cell, if be yes for judged result, then to Automatic Configuration Server reporting software rollback, and removes described upgrading mark; If not, then described upgrading mark is removed.
8. device according to claim 7, it is characterized in that, described second report/clearing cell comprises transmitting element, for sending TransferComplete request message to described Automatic Configuration Server, the wrong structure in described TransferComplete request message comprises and is used to indicate described new software upgrading failure and the information returning back to old software.
9. device according to claim 8, is characterized in that, indicates described new software upgrading failure and return back to old software by the error code in described wrong structure.
10. in the Automatic Configuration Server of communication system for receive software rollback report a device, wherein, described device comprises:
Receiving element, reports for the software rollback received from Optical Network Terminal.
11. devices according to claim 10, it is characterized in that, described receiving element is for receiving the TransferComplete request message from described Optical Network Terminal, and the wrong structure in described TransferComplete request message comprises and is used to indicate described new software upgrading failure and the information returning back to old software.
12. devices according to claim 11, is characterized in that, indicate described new software upgrading failure and return back to old software by the error code in described wrong structure.
CN201310410997.3A 2013-09-10 2013-09-10 Automatic detection and reporting software backing method and device in ONT Optical Network Terminal Active CN104426601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310410997.3A CN104426601B (en) 2013-09-10 2013-09-10 Automatic detection and reporting software backing method and device in ONT Optical Network Terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310410997.3A CN104426601B (en) 2013-09-10 2013-09-10 Automatic detection and reporting software backing method and device in ONT Optical Network Terminal

Publications (2)

Publication Number Publication Date
CN104426601A true CN104426601A (en) 2015-03-18
CN104426601B CN104426601B (en) 2017-08-25

Family

ID=52974650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310410997.3A Active CN104426601B (en) 2013-09-10 2013-09-10 Automatic detection and reporting software backing method and device in ONT Optical Network Terminal

Country Status (1)

Country Link
CN (1) CN104426601B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899257A (en) * 2015-05-18 2015-09-09 北京京东尚科信息技术有限公司 Data updating method and device in distributed data warehouse
CN110582035A (en) * 2019-08-30 2019-12-17 武汉长光科技有限公司 method for upgrading ONU by using broadband universal service management platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105745A (en) * 2006-07-14 2008-01-16 中兴通讯股份有限公司 Distributed type software system disposition method
CN101639785A (en) * 2009-09-02 2010-02-03 中兴通讯股份有限公司 Method and device for software updating
CN101699399A (en) * 2009-11-03 2010-04-28 中兴通讯股份有限公司 Software update system and method
CN101843129A (en) * 2007-11-02 2010-09-22 艾利森电话股份有限公司 Upgrading software in radio base station nodes
CN101877650A (en) * 2010-05-20 2010-11-03 中兴通讯股份有限公司 Method and system for updating software version automatically

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105745A (en) * 2006-07-14 2008-01-16 中兴通讯股份有限公司 Distributed type software system disposition method
CN101843129A (en) * 2007-11-02 2010-09-22 艾利森电话股份有限公司 Upgrading software in radio base station nodes
CN101639785A (en) * 2009-09-02 2010-02-03 中兴通讯股份有限公司 Method and device for software updating
CN101699399A (en) * 2009-11-03 2010-04-28 中兴通讯股份有限公司 Software update system and method
CN101877650A (en) * 2010-05-20 2010-11-03 中兴通讯股份有限公司 Method and system for updating software version automatically

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899257A (en) * 2015-05-18 2015-09-09 北京京东尚科信息技术有限公司 Data updating method and device in distributed data warehouse
CN104899257B (en) * 2015-05-18 2018-04-13 北京京东尚科信息技术有限公司 Data-updating method and device in Distributed Data Warehouse
CN110582035A (en) * 2019-08-30 2019-12-17 武汉长光科技有限公司 method for upgrading ONU by using broadband universal service management platform
CN110582035B (en) * 2019-08-30 2022-05-13 武汉长光科技有限公司 Method for upgrading ONU by using broadband universal service management platform

Also Published As

Publication number Publication date
CN104426601B (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN105743933B (en) A kind of module updating method and system of router
US20120117557A1 (en) Method and system for upgrading wireless data card
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN104125276A (en) Upgrading method and device
CN106850241A (en) A kind of vehicle-mounted OBD terminals and its remote upgrade method
CN101854623B (en) System and method for remote upgrade of M2M terminal
CN105763345A (en) Network element upgrade management method, device and system
CN103036706A (en) Local processing method of application upgrading abnormity
CN106528214B (en) A kind of installation method of OS, server and system
CN103455359A (en) Method, device and system for patch installation
CN112162770A (en) Firmware version upgrading method and device for realizing integrity verification based on block chain
CN104426601A (en) Automatic detection and software rollback reporting method and device in optical network terminal (ONT)
CN104915234A (en) Android mobile terminal upgrade reported method and system
CN104754410A (en) Safety method and system for cable modulating and demodulating device
CN112532418A (en) Charging equipment of electric transportation tool and automatic fault removing method thereof
CN110990046A (en) Upgrading method based on dynamic file
CN112804071A (en) On-line upgrading method, upgrading file providing method, equipment and storage medium
CN110659052B (en) Method and system for updating system software in network equipment and readable storage medium
CN101854442B (en) Network device and firmware updating method thereof
CN112463208A (en) Version management method and device, electronic equipment and storage medium
CN112596764A (en) Internet of things monitoring method and device based on NB-IoT remote upgrading
CN106250256B (en) Server fault recovery method and device
CN107179917A (en) System architecture and dispositions method for the operating system of installing multiple test systems
CN111338573A (en) Terminal data management method and system, server and communication terminal
CN110865836A (en) Cloud upgrading method and system for firmware of vehicle navigation CAN protocol box

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 201206 Shanghai, Pudong Jinqiao Ning Bridge Road, No. 388, No.

Patentee after: Shanghai NOKIA Baer Limited by Share Ltd

Address before: 201206 Shanghai, Pudong Jinqiao Ning Bridge Road, No. 388, No.

Patentee before: Shanghai Alcatel-Lucent Co., Ltd.