CN104426601B - Automatic detection and reporting software backing method and device in ONT Optical Network Terminal - Google Patents

Automatic detection and reporting software backing method and device in ONT Optical Network Terminal Download PDF

Info

Publication number
CN104426601B
CN104426601B CN201310410997.3A CN201310410997A CN104426601B CN 104426601 B CN104426601 B CN 104426601B CN 201310410997 A CN201310410997 A CN 201310410997A CN 104426601 B CN104426601 B CN 104426601B
Authority
CN
China
Prior art keywords
software
version number
software version
upgrading
variable
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
CN201310410997.3A
Other languages
Chinese (zh)
Other versions
CN104426601A (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 kind of method and apparatus for being used to detect simultaneously reporting software automatic rollback in the ONT Optical Network Terminal of communication system.First, ONT judges whether new software downloads success;If it is, setting upgrading mark, and prior software release variable is updated with the software version number in current software version variable;If it is not, then the report new software download failure;Then, restart automatically;Then, the current software version variable is updated with the software version number of current installation software;Then, judge whether the upgrading mark has been set;If it is, determining whether whether the software version number in the current software version variable is consistent with the software version number in the prior software release variable;If it is, being retracted to Automatic Configuration Server reporting software, and remove the upgrading mark;If it is not, then removing the upgrading mark, software upgrade success is represented.

Description

Automatic detection and reporting software backing method and device in ONT Optical Network Terminal
Technical field
The present invention relates in communication system, more particularly to the ONT Optical Network Terminal of communication system detection and reporting software retract Method and apparatus.
Background technology
TR069 provides the mode of another remotely managing optical network terminal (ONT) software.It can be asked from matching somebody with somebody automatically Put server (ACS) and download special-purpose software to ONT, and new software is installed to ONU if completion is downloaded.However, current institute Problems faced is, in the case of new software fails to start and retracts (rollback) to old software, TransferComplete message can still be reported and upgraded successfully.
Therefore, operator must obtain software version information from ONT, and artificially by the software version before renewal and newly Software version is compared.If comparative result is identical, show rollback, upgrading failure;If redaction is institute's phase The version of prestige, then show upgrading complete and successfully.Therefore, not yet there are problems that the scheme for effectively solving this in the prior art.
The content of the invention
In order to solve drawbacks described above of the prior art, reporting software it can be retracted automatically this application provides a kind of ONT Scheme.
In TR609 agreements, TransferComplete message is used for the report finish state in software upgrade process.But It is, the problem of it still fails to solve the software rollback in Amendment-4.To support the function, the present invention is to existing Wrong structure (fault structure) in TransferComplete message is extended, and can indicate new software Upgrading failure simultaneously retracts to this situation of old software.In one embodiment, can be to the error code in fault structure (fault code) is extended, for example, can define fault code for 9800 (it is of course also possible to be the number beyond 9800 Value) represent that new software upgrading fails and the old software that retracts, so, when ACS is from the TransferComplete message received When to know fault code be 9800, you can know in ONT new software upgrading unsuccessfully and retracted to old software.
In addition, the present invention is also to (the TR098 agreements are the internet gateway device data of TR069 agreements in TR098 agreements Model) data model be extended, newly defining node InternetGatewayDevice.X_SoftwareMgnt is used for Indicate the software package informatin in ONT.Node InternetGatewayDevice.X_SoftwareMgnt may include two changes Amount is respectively current software version (CurrentSoftwareVersion) variable and prior software release (PreviousSoftwareVersion) variable, wherein, CurrentSoftwareVersion variables be used for identify in CPE when Preceding installed software version number, and PreviousSoftwareVersion variables are used to identify before new software upgrading in CPE Old software version number.
Based on above-mentioned extension, the present invention is in one embodiment it is proposed that a kind of in the ONT Optical Network Terminal of communication system Method for detecting and reporting software retracts, wherein, it the described method comprises the following steps:A. judge whether new software is downloaded into Work(;B. if it is, setting upgrading mark, and prior software release is updated with the software version number in current software version variable Variable;If it is not, then the report new software download failure;C. restart automatically;D. with the software version of current installation software Number update the current software version variable;E. judge whether the upgrading mark has been set;F. if it is, determining whether Software version number in the current software version variable whether with the software version number one in the prior software release variable Cause;G. if it is, being retracted to Automatic Configuration Server reporting software, and the upgrading mark is removed;If it is not, then removing institute State upgrading mark.
Favourable, including the step of rollback to the Automatic Configuration Server reporting software in the step e:Send TransferComplete request messages are to the Automatic Configuration Server, in the TransferComplete request messages Wrong structure includes being used to indicate that the new software upgrading fails and return back to the information of old software.
Favourable, it can indicate that the new software upgrading fails and return back to old soft by the error code in the wrong structure Part.
The present invention is in another embodiment, it is proposed that a kind of to be used to receive in the Automatic Configuration Server of communication system The method of software rollback report, wherein, it the described method comprises the following steps:I. the software rollback report from ONT Optical Network Terminal is received Accuse.
Favourable, the step i includes:The requests of the TransferComplete from the ONT Optical Network Terminal are received to disappear Wrong structure in breath, the TransferComplete request messages includes being used to indicate the new software upgrading failure simultaneously It return back to the information of old software.
Favourable, fail and return back to old soft by the error code instruction new software upgrading in the wrong structure Part.
Various aspects of the invention will be become apparent from by the explanation of embodiment in detail below.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent:
Fig. 1 shows the side that the detection according to an embodiment of the invention in ONT Optical Network Terminal and reporting software retract Method flow chart;
Fig. 2 shows that ONT Optical Network Terminal according to an embodiment of the invention is handed over before restarting with Automatic Configuration Server Mutual flow chart;
Fig. 3 shows that ONT Optical Network Terminal according to an embodiment of the invention is handed over after restarting with Automatic Configuration Server Mutual flow chart.
In figure, same or similar reference represents identical or corresponding part or feature.
Embodiment
Hereinafter, first to TR069Amendment4 extension and TR098 extension is described.
(1) TR069Amendment4 is extended
In one embodiment, can be to the fault in the fault structure in TransferComplete message Code is extended, for indicating that new software upgrading fails and retracted to old software, shown in table specific as follows:
Fail and retract to old software and be only it should be noted that fault code are set to the new software upgrading of 9800 expressions One example, in other examples, fault code can be also set to other values to be used to represent that new software upgrading fails and returned Retreat to the generation of old this situation of software, this be it will be appreciated by those skilled in the art that, therefore not to repeat here.
(2) TR098 is extended
To realize the purpose of the present invention, a node is newly defined in TR098 agreements InternetGatewayDevice.X_SoftwareMgnt.By the node, ONT just can clearly know the software of system Package informatin.Shown in table specific as follows:
It should be noted that it is only an example that the length of character string, which is defined as 64 characters, those skilled in the art can To understand, in actual applications, the length of character string is alternatively the character of any number, as long as software version can be indicated exactly This.
Below by based on the node newly defined in fault code and the TR098 agreements extended in above-mentioned TR069 agreements InternetGatewayDevice.X_SoftwareMgnt, detects and reports to ONT according to an embodiment of the invention The method of software rollback is described.
Reference picture 1, first, in step S101, ONT judges whether new software downloads success.If new software download into Work(, then in step s 102, ONT set upgrading mark (upgrade flag), such as are 1 by upgrading traffic sign placement, and with Software version number in CurrentSoftwareVersion variables updates the software of PreviousSoftwareVersion variables Version number.If new software does not download success, in step s 103, ONT reports new software download failure.
Then, in step S104, ONT is restarted automatically.
Above is the step of ONT is performed before restarting.
After ONT is restarted, in step S105, ONT is updated with the software version number of current installation software Software version number in CurrentSoftwareVersion variables.
The new software installation failure that may occur to be downloaded during by ONT restarting can not be enabled, therefore, The software currently installed under this situation may or before old software.Certainly, if the new software installation downloaded is complete Into and after successfully enabling, it is current software is installed version number be exactly the new software downloaded software version number.
After ONT is restarted, in order to detect whether the situation for occurring software rollback, then, in step s 106, ONT judges Whether upgrading mark has been set, for example, whether upgrading mark is 1.If upgrading mark has been set, in step s 107, ONT Determine whether software version number in CurrentSoftwareVersion variables whether with Software version number in PreviousSoftwareVersion variables is consistent.If upgrading mark is not provided with, terminate the stream Journey.
If ONT judge software version number in CurrentSoftwareVersion variables with Software version number in PreviousSoftwareVersion variables is consistent, then in step S108, and ONT is to ACS reporting softwares Retract, then, into step S109, ONT removes upgrading mark.If ONT judges CurrentSoftwareVersion Software version number in variable is inconsistent with software version number in PreviousSoftwareVersion variables, then ONT is direct Into step S109.
In one embodiment, ONT can be by being sent in ACS TransferComplete request messages Fault code in fault structure to ACS indicate that new software upgrading fails and retracted to this situation of old software Occur.For example, fault code can be set to 9800 by ONT, when ACS receive TransferComplete request messages and from When fault code are known in TransferComplete request messages is 9800, you can know the new software upgrading mistake ONT at Lose and retracted to old software.
Below by from ONT and ACS interactive sessions angle, the present invention is further described.
Reference picture 2, first, in step s 201, ONT initiates Open connection to ACS.Then, in step S202 In, SSLinitiation is carried out between ONT and ACS.
Then, in step S203, ONT sends Inform request to ACS in HTTP Post forms.ACS is in step In S204 Inform response to ONT are sent in HTTP response forms.
Then, in step S205, ONT sends HTTP Post (empty) to ACS.ACS is in step S206 with HTTP Response forms send GetParametervalues request to ONT.Then, in step S207, ONT is with HTTP Post forms send GetParameterValues response to ACS.
Then, in step S208, ACS checks software version and determines to update software kit.Then, in step S209, ACS sends Download request to ONT in HTTP response forms.ONT is in step S210 with HTTP POST shapes Formula sends Download response to ACS.
Then, in step S211, ONT starts from ACS download new softwares and verifies the new software kit, if new software Image file is legal, stores the new software.Afterwards, ONT performs the step S101 to 104 in above-mentioned Fig. 1.
Above is ONT restart before interactive sessions between ONT and ACS.
It should be noted that above-mentioned steps S201 to S210 is existing interactive step in existing protocol, for simplicity, It is not described in detail.
Interactive sessions after restarting hereinafter with reference to Fig. 3 to ONT between ONT and ACS are described.
First, in step S301, ONT performs some steps in above-mentioned Fig. 1 step S105-S109.At the same time, ONT sends Inform request to ACS in HTTP Post forms in step s 302.Then, ACS in step S303 with HTTP response forms send Inform response to ONT.
Then, in step s 304, ONT sends TransferComplete request extremely in HTTP Post forms ACS.If the fault code in the TransferComplete request that ACS is received are 9800, can be known is in ONT Locate new software upgrading failure and retracted to old software, then in step S305, ACS can send alarm.
Then, in step S306, ACS sends TransferComplete response in HTTP response forms To ONT.
Then, in step S307, ONT sends HTTP Post (empty) to ACS.ACS is sent in step S308 HTTP response (empty) to ONT.
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, rather than limitation of the present invention.It is any without departing substantially from this hair The technical scheme of bright spirit all should be fallen under the scope of the present invention, and this including the use of occurring not in different embodiments Same technical characteristic, installation method can be combined, to obtain beneficial effect.In addition, should not will be any attached in claim Icon note is considered as the claim involved by limitation;The word of " comprising " one is not excluded for unlisted in other claims or specification Device or step.

Claims (10)

1. a kind of be used for the method that automatic detection and reporting software retract in the ONT Optical Network Terminal of communication system, wherein, it is described Method comprises the following steps:
A. judge whether new software downloads success;
B. if it is, setting upgrading mark, and previous software version is updated with the software version number in current software version variable Software version number in this variable;
If it is not, then the report new software download failure;
C. restart automatically;
D. the software version number in the current software version variable is updated with the software version number of current installation software;
E. judge whether the upgrading mark has been set;
F. if it is, determine whether software version number in the current software version variable whether with the previous software Software version number in version variable is consistent;
G. if it is, being retracted to Automatic Configuration Server reporting software, and the upgrading mark is removed;
If it is not, then removing the upgrading mark.
2. according to the method described in claim 1, it is characterised in that in the step g to the Automatic Configuration Server report The step of accusing software rollback includes:
- TransferComplete request messages are sent to the Automatic Configuration Server, the TransferComplete please The wrong structure in message is asked to include being used to indicate that the new software upgrading fails and return back to the information of old software.
3. method according to claim 2, it is characterised in that indicated by the error code in the wrong structure described new Software upgrading fails and return back to old software.
4. a kind of method for being used to receive software rollback report in the Automatic Configuration Server of communication system, wherein, the side Method comprises the following steps:
I. the software rollback report from ONT Optical Network Terminal is received, including:Receive from the ONT Optical Network Terminal Wrong structure in TransferComplete request messages, the TransferComplete request messages includes being used to refer to Show that new software upgrading fails and return back to the information of old software.
5. method according to claim 4, it is characterised in that indicated by the error code in the wrong structure described new Software upgrading fails and return back to old software.
6. a kind of device for being used to detect and reporting software retracts in the ONT Optical Network Terminal of communication system, wherein, described device Including:
First judging unit, for judging whether new software downloads success;
First setting/reporting unit, for if it is judged that being yes, then setting upgrading mark, and being become with current software version Software version number in amount updates the software version number in prior software release variable;If it is judged that being no, then institute is reported State new software download failure;
Unit is restarted, for restarting automatically;
Second setting unit, for being updated with the software version number of current installation software in the current software version variable Software version number;
Second judging unit, for judging whether the upgrading mark has been set;
3rd judging unit, for if it is judged that be yes, then determining whether soft in the current software version variable Whether part version number is consistent with the software version number in the prior software release variable;
Second report/clearing cell, for if it is judged that be it is yes, then to Automatic Configuration Server reporting software retract, and Remove the upgrading mark;If it is not, then removing the upgrading mark.
7. device according to claim 6, it is characterised in that second report/clearing cell includes transmitting element, is used In sending TransferComplete request messages to the Automatic Configuration Server, the TransferComplete requests disappear Wrong structure in breath includes being used to indicate that the new software upgrading fails and return back to the information of old software.
8. device according to claim 7, it is characterised in that indicated by the error code in the wrong structure described new Software upgrading fails and return back to old software.
9. a kind of device for being used to receive software rollback report in the Automatic Configuration Server of communication system, wherein, the dress Put including:
Receiving unit, for receiving the software rollback report from ONT Optical Network Terminal, comes wherein the receiving unit is used to receive Mistake from the TransferComplete request messages of the ONT Optical Network Terminal, the TransferComplete request messages Structure is included for indicating that new software upgrading fails and return back to the information of old software by mistake.
10. device according to claim 9, it is characterised in that indicated by the error code in the wrong structure described New software upgrading fails and return back to old software.
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 CN104426601A (en) 2015-03-18
CN104426601B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899257B (en) * 2015-05-18 2018-04-13 北京京东尚科信息技术有限公司 Data-updating method and device in Distributed Data Warehouse
CN110582035B (en) * 2019-08-30 2022-05-13 武汉长光科技有限公司 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

Also Published As

Publication number Publication date
CN104426601A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
US20170249137A1 (en) Method for Upgrading Terminal System, Terminal, and System
CN103685495B (en) The upgrade method and system of software
CN101958799B (en) Method, device and system for updating terminal
WO2014146256A1 (en) Upgrade method, intelligent terminal, and upgrade system
CN101593121A (en) The method of on-line software updating, Apparatus and system
CN106303709B (en) A kind of set-top box and its application program updating method, system
CN106850241A (en) A kind of vehicle-mounted OBD terminals and its remote upgrade method
CN105517015A (en) Upgrading method, device of wifi product by over the air OTA and terminal
CN105912340A (en) Primary device, remote control and overhead upgrading method of remote control
KR101201276B1 (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
CN104918114A (en) Method and device for upgrading operation system
CN113721957B (en) Automatic test method, device and system for firmware deployment upgrade of embedded equipment
CN108881461A (en) A kind of data transmission method, apparatus and system
CN104426601B (en) Automatic detection and reporting software backing method and device in ONT Optical Network Terminal
WO2014134989A2 (en) Android terminal and upgrade method therefor
CN111901142A (en) Firmware silent upgrading method and device for embedded equipment cluster
CN112162770A (en) Firmware version upgrading method and device for realizing integrity verification based on block chain
CN104965747A (en) Method and device for upgrading software
CN105786636A (en) System repairing method and device
CN113542318A (en) Equipment fault repairing method
CN110413341A (en) A kind of starting method, apparatus, terminal and the medium of application program
WO2024041283A1 (en) Client upgrading method and apparatus, terminal device, and storage medium
CN108153537A (en) Mobile application update method and device
CN109901860B (en) Android mobile phone software version control method
CN112256295A (en) Application program updating method, device, equipment and storage medium

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.