CN109495798A - ONU method for upgrading system, device, equipment and computer readable storage medium - Google Patents

ONU method for upgrading system, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109495798A
CN109495798A CN201811539393.8A CN201811539393A CN109495798A CN 109495798 A CN109495798 A CN 109495798A CN 201811539393 A CN201811539393 A CN 201811539393A CN 109495798 A CN109495798 A CN 109495798A
Authority
CN
China
Prior art keywords
code
onu
plant
head
upgraded
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
CN201811539393.8A
Other languages
Chinese (zh)
Other versions
CN109495798B (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 Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201811539393.8A priority Critical patent/CN109495798B/en
Publication of CN109495798A publication Critical patent/CN109495798A/en
Application granted granted Critical
Publication of CN109495798B publication Critical patent/CN109495798B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of ONU method for upgrading system and devices, equipment and computer readable storage medium, this method comprises: obtaining the bootstrap and system head code in optical network unit ONU system, and the system head code is verified by the bootstrap;If the system head code verification success starts the ONU system based on the enabled instruction that user in the ONU system inputs, and judges whether the ONU system is upgraded;If the ONU system is upgraded, the system firmware header code downloaded in the ONU system is obtained, and verify to the system firmware header code;If the system firmware header code is proved to be successful, the ONU system is upgraded.The technical issues of present invention can arbitrarily upgrade to the system of other manufacturers when solving ONU system upgrade.

Description

ONU method for upgrading system, device, equipment and computer readable storage medium
Technical field
The present invention relates to Internet technical field more particularly to a kind of ONU method for upgrading system, device, equipment and meters Calculation machine readable storage medium storing program for executing.
Background technique
PON (Passive Optical Network, passive optical-fiber network) includes one and is installed on console for centralized control OLT (Optical Line Terminal, optical line terminal), and the matched ONU for being installed on customer site of a batch (Optical Network Unit, optical network unit).ODN (Optical Distribution between OLT and ONU Network, Optical Distribution Network) contain optical fiber and passive optical splitters or coupler.PON is connected to OLT using single fiber, Then OLT is connected to ONU.ONU provides data, IPTV (i.e. Interactive Internet TV), and voice (uses IAD, i.e. Integrated Access Device integrated access equipment) etc. business.
Currently, with the increasingly innovation of PON technology and various businesses, it is necessary to ONU system has more and more functions, Namely need often to upgrade ONU system, and as the use of ONU system is more and more wider, protect the copyright of ONU system just outstanding aobvious It is important.Therefore, how to avoid user that the system that ONU system upgrade is other manufacturers is become technology urgently to be resolved at present Problem.
Summary of the invention
The main purpose of the present invention is to provide the storages of a kind of ONU method for upgrading system, device, equipment and computer to be situated between Matter, it is intended to the technical issues of can arbitrarily upgrading to the system of other manufacturers when solving ONU system upgrade.
To achieve the above object, the present invention provides a kind of ONU method for upgrading system, the ONU method for upgrading system, packet It includes:
The bootstrap and system head code in optical network unit ONU system are obtained, and passes through the bootstrap pair The system head code is verified;
If the system head code verification success, the enabled instruction starting inputted based on user in the ONU system The ONU system, and judge whether the ONU system is upgraded;
If the ONU system is upgraded, the system firmware head generation downloaded in the ONU system is obtained Code, and the system firmware header code is verified;
If the system firmware header code is proved to be successful, the ONU system is upgraded.
Optionally, described to obtain the system firmware header code downloaded in the ONU system, and to the system firmware The step of header code is verified, comprising:
The system firmware header code downloaded in the ONU system is obtained, and judges the system firmware header code In whether there is the first plant code;
If there are the first plant code in the system firmware header code, judge first plant code whether and The second plant code matching in the system head code;
If the first plant code is not present in the system firmware header code, the system firmware header code verifying Failure.
Optionally, it is described judge first plant code whether with the second plant code in the system head code After the step of matching, comprising:
If first plant code and second plant code matching, obtain first plant code described The first deviation post in system firmware header code;
Second deviation post of second plant code in the system head code is obtained, and judges described first Whether deviation post and second deviation post match;
If first deviation post and second deviation post matching, system firmware header code verifying at Function;
If first deviation post and second deviation post mismatch, the system firmware header code verifying Failure.
Optionally, the described the step of system head code is verified by the bootstrap, comprising:
Judged in the system head code by the bootstrap with the presence or absence of the second plant code;
If there are the second plant code, the system head code verification successes in the system head code;
If the second plant code is not present in the system head code, the system head code verification failure.
Optionally, if there are the second plant code in the system head code, the system head code is tested Demonstrate,prove successful step, comprising:
If there are the second plant codes in the system head code, second plant code is obtained in the system The second deviation post in header code, and judge the default bias position in second deviation post and the bootstrap It is matched;
If second deviation post and default bias location matches, the system head code verification success;
If second deviation post and default bias position mismatch, the system head code verification failure.
Optionally, if second deviation post and default bias position mismatch, the system head code After the step of authentication failed, comprising:
Obtain the recovery system mechanism in the ONU system;
The system head code is restored by the recovery system mechanism.
Optionally, if the step of system firmware header code is proved to be successful, and the ONU system is upgraded Later, comprising:
If the ONU system upgrade is completed, the system head code in the ONU system for having upgraded completion is verified again;
If the system head code check success in the ONU system for having upgraded completion, opens the ONU system.
In addition, to achieve the above object, the present invention also provides a kind of ONU system upgrade device, the ONU system upgrade dress It sets and includes:
Module is obtained, for obtaining bootstrap and system head code in optical network unit ONU system, and passes through institute Bootstrap is stated to verify the system head code;
Judgment module, if being inputted for system head code verification success based on user in the ONU system Enabled instruction starts the ONU system, and judges whether the ONU system is upgraded;
Authentication module, if being upgraded for the ONU system, obtain downloaded in the ONU system be System fastener heads code, and the system firmware header code is verified;
Upgraded module, if being proved to be successful for the system firmware header code, the ONU system is upgraded.
In addition, to achieve the above object, the present invention also provides a kind of ONU system upgrade equipment;
The ONU system upgrade equipment includes: memory, processor and is stored on the memory and can be at the place The computer program run on reason device, in which:
The computer program realizes the step of ONU method for upgrading system as described above when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a kind of computer readable storage mediums;
Computer program is stored on the computer readable storage medium, when the computer program is executed by processor It realizes such as the step of above-mentioned ONU method for upgrading system.
The present invention is passed through described by obtaining bootstrap and system head code in optical network unit ONU system Bootstrap verifies the system head code;If the system head code verification success, is based on the ONU system The enabled instruction that user inputs in system starts the ONU system, and judges whether the ONU system is upgraded;If institute It states ONU system to be upgraded, then obtains the system firmware header code downloaded in the ONU system, and to the system System fastener heads code is verified;If the system firmware header code is proved to be successful, the ONU system is upgraded. By being verified to system head code when starting ONU system, to ensure that the ONU system run is producer's release always System also can first verify system firmware header code and when upgrading ONU system, just can be to ONU after being proved to be successful System is upgraded, to be effectively prevented the ONU that piracy software uses producer, maintains the copyright and the market share of producer, The technical effect for the upgrading for preventing user from carrying out other vendor systems is reached.
Detailed description of the invention
Fig. 1 be the hardware running environment that the embodiment of the present invention is related to terminal apparatus structure schematic diagram;
Fig. 2 is the flow diagram of ONU method for upgrading system first embodiment of the present invention;
Fig. 3 is the flow diagram of ONU method for upgrading system second embodiment of the present invention;
Fig. 4 is the functional block diagram of ONU system upgrade device of the present invention;
Fig. 5 is the outline flowchart of ONU method for upgrading system of the present invention.
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention is ONU system upgrade equipment.
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
Optionally, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio Circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically, light Sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can according to the light and shade of ambient light come The brightness of display screen is adjusted, proximity sensor can close display screen and/or backlight when terminal device is moved in one's ear.Certainly, Terminal device can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, herein no longer It repeats.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and ONU system upgrade program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for calling the ONU system upgrade program stored in memory 1005, and execute following operation:
The bootstrap and system head code in optical network unit ONU system are obtained, and passes through the bootstrap pair The system head code is verified;
If the system head code verification success, the enabled instruction starting inputted based on user in the ONU system The ONU system, and judge whether the ONU system is upgraded;
If the ONU system is upgraded, the system firmware head generation downloaded in the ONU system is obtained Code, and the system firmware header code is verified;
If the system firmware header code is proved to be successful, the ONU system is upgraded.
Referring to Fig. 2, the present invention provides a kind of ONU method for upgrading system, in ONU method for upgrading system first embodiment, ONU method for upgrading system the following steps are included:
Step S10 obtains bootstrap and system head code in optical network unit ONU system, and is drawn by described System head code described in lead ordered pair is verified;
ONU (Optical Network Unit, optical network unit) ONU points are active optical network unit and passive optical network Unit.Generally it is called light section the equipment including photoreceiver, uplink optical sender, multiple bridging amplifier network monitorings is equipped with Point.PON is connected to OLT using single fiber, and then OLT is connected to ONU.ONU provides data, IPTV (i.e. interactive network electricity Depending on), the business such as voice (using IAD, i.e. Integrated Access Device integrated access equipment).
In the present embodiment, when user selects to open ONU system, it is necessary first to obtain and obtain guidance in ONU system Program and system head code, and the plant code in system head code is verified by bootstrap, come with this true Before settled ONU system to be run whether be genuine man system, rather than piracy systems.And in system head code Plant code when being verified, in addition to whether the plant code in verifying system head code is the special generation for indicating producer Code, it is also necessary to whether correct verify position of the plant code in system head code.I.e. when in discovery system head code Plant code is the special code for indicating producer, and when position of this plant code in system head code is also correct It waits, the edition system it may be considered that ONU system currently to be run is positive, but when the plant code in discovery system head code It is not that the position and scheduled position of the special code or plant code of mark producer in system head code are not met When, it may be considered that ONU system at this time is not that positive edition system or this ONU system have broken down.At this point, will be automatic The starting recovery system mechanism in ONU system is triggered, and ONU system is restored by this system Restoration Mechanism, i.e., by ONU System reverts to positive edition system.
Step S20, if system head code verification success, the starting inputted based on user in the ONU system Instruction starts the ONU system, and judges whether the ONU system is upgraded;
When by judging discovery system head code verification success, then it can be originally input based on user in ONU system Enabled instruction starts ONU system, and after the starting of ONU system, can judge automatically whether ONU system is upgraded, if By judging that this ONU system needs to upgrade, then the new version with system firmware can be downloaded automatically, and begin preparing and carry out ONU System upgrade, but when by judging that discovery ONU system does not need to be upgraded, then keep the operating status of ONU system.Its In, the mode of ONU system upgrade can be to be upgraded by WEB (World Wide Web, global wide area network), is also possible to Upgraded by OLT, or upgraded by bootstrap, specifically upgrades mode herein with no restrictions, but not By be any upgrading mode all can first verify in ONU system mark producer special code.
Step S30 obtains the system firmware downloaded in the ONU system if the ONU system is upgraded Header code, and the system firmware header code is verified;
When by judgement discovery, when ONU system is upgraded, then can be obtained in ONU system downloaded be System firmware, and determine whether there is a segment table in system firmware header code and show the special code of producer, if detecting system There are this special codes in fastener heads code, then whether the position that can verify special code is normal, if detecting special code Position in system firmware header code is also correct, then can determine that system firmware header code is proved to be successful, and can be with ONU system upgrade is carried out, until upgrading successfully.But judge that there is no this special codes in discovery system when passing through, either When malposition of this special code in system firmware header code, it may be considered that this system firmware header code is verified Failure can export the prompt information of upgrading failure, automatically at this time to inform that the current ONU system of user does not upgrade successfully.Wherein, Special code be user before downloading, by producer shift to an earlier date the default bias position compiling in system firmware code enter it is default Plant code.
Step S40, if the system firmware header code is proved to be successful, the ONU system is upgraded.
It is proved to be successful when by judgement discovery system firmware header code, it may be considered that user's downloading is legal soft Part, to upgrade to ONU system, until upgrading successfully.
Supplemented by assistant solve ONU method for upgrading system of the invention, be exemplified below.
As shown in figure 5, can then carry out check system header code automatically by bootstrap, such as when ONU system is activated Fruit verification failure, i.e., when system head code is undesirable, then can start recovery system mechanism automatically and carry out recovery system.If It is proved to be successful, i.e., when system head code meets the requirements, then will start ONU system, and judge whether to need upgrade-system, if needing Want upgrade-system, then can download system firmware, and this system firmware has been compiled addition plant code, when user selects to carry out When upgrade-system, check system header code again is understood, that is, determine whether the system firmware of downloading is copyrighted software, rather than its The software of its producer can then carry out ONU system upgrade when verifying out system head code and meeting the requirements, and when upgrading at After function, the prompt information upgraded successfully can be exported, but when by judging that discovery check system header code is undesirable, The prompt information of upgrading failure can then be exported.
The present embodiment passes through institute by obtaining bootstrap and system head code in optical network unit ONU system Bootstrap is stated to verify the system head code;If the system head code verification success, is based on the ONU The enabled instruction that user inputs in system starts the ONU system, and judges whether the ONU system is upgraded;If The ONU system is upgraded, then obtains the system firmware header code downloaded in the ONU system, and to described System firmware header code is verified;If the system firmware header code is proved to be successful, the ONU system is risen Grade.By being verified to system head code when starting ONU system, to ensure that the ONU system run is that producer releases always The system put, and when upgrading ONU system, system firmware header code also can be first verified, it, just can be right after being proved to be successful ONU system is upgraded, to be effectively prevented the ONU that piracy software uses producer, maintains copyright and the market part of producer Volume has reached the technical effect for the upgrading for preventing user from carrying out other vendor systems.
Further, on the basis of first embodiment of the invention, the second of ONU method for upgrading system of the present invention is proposed Embodiment, the present embodiment are the step S30 of first embodiment of the invention, obtain the system firmware downloaded in the ONU system Header code, and the refinement for the step of system firmware header code is verified, referring to Fig. 3, comprising:
Step S31 obtains the system firmware header code downloaded in the ONU system, and judges the system firmware It whether there is the first plant code in header code;
First plant code can be the special code that a segment mark shows producer.In ONU system, what acquisition had been downloaded is System firmware, and extraction system fastener heads code, then judged whether there is for first producer's generation in system firmware header code Code, if it exists the first plant code, it is determined that whether the position where the first plant code meets the requirements, if meeting the requirements, It is considered that system firmware header code is proved to be successful, can be upgraded.But when by judgement discovery system firmware head When the first plant code being not present in code, it may be considered that system firmware header code authentication failed, it at this time also can be automatic defeated Upgrade the prompt information of failure out.
Step S32 judges first producer generation if there are the first plant codes in the system firmware header code Whether code matches with the second plant code in the system head code;
Second plant code can be the special code with producer's mark being present in ONU system head code.If By there are when the first plant code in judgement discovery system firmware header code, it is also necessary to obtain the in system head code Two plant codes, and the first plant code and the second plant code are matched, if the first plant code and second producer's generation Code matching, it may be considered that there is the special code with producer's mark in system firmware header code.But when by judgement It was found that when the first plant code and the second plant code mismatch, it may be considered that there is no have in system firmware header code The special code of producer's mark, that is, at this time it is considered that user prepares to be updated with the software of other producers, then it can be with Prompt upgrading failure.
Step S33, if the first plant code, the system firmware head are not present in the system firmware header code Code verification failure.
When by judging that the first plant code is not present in discovery system firmware header code, it may be considered that system is solid Part header code authentication failed can upgrade the prompt information of failure at this time with output system.Wherein, output system upgrading fails The mode of prompt information can be to be exported in such a way that voice plays, and is also possible to carry out by way of pattern displaying Output, specifically the way of output is herein with no restrictions.
In the present embodiment, sentence in the system firmware header code by determining downloading with the presence or absence of the first plant code Whether the system firmware software of disconnected downloading and the manufacturer for the ONU system being currently running are same, to be effectively prevented ONU system upgrade is the system of other manufacturers by user.
Specifically, judge whether first plant code matches with the second plant code in the system head code The step of after, comprising:
Step S34, if first plant code and second plant code matching, obtain first producer generation First deviation post of the code in the system firmware header code;
First deviation post can be deviation post of first plant code in system firmware header code.When by sentencing When the first plant code of disconnected discovery and the second plant code match, then need to obtain the first plant code in system firmware head generation The first deviation post in code.
Step S35 obtains second deviation post of second plant code in the system head code, and judges Whether first deviation post and second deviation post match;
Second deviation post can be deviation post of second plant code in system head code.Obtain the second producer Second deviation post of the code in system head code, and the first deviation post that will acquire and the second deviation post carry out Matching, judges whether the first deviation post and the second deviation post are identical, and different operations is executed according to judging result.
Step S36, if first deviation post and second deviation post matching, system firmware head generation Code is proved to be successful;
When by judging that the first deviation post of discovery and the second deviation post match, it may be considered that system firmware head Code verification success, can carry out ONU system upgrade, and after upgrading successfully, can issue the prompt information upgraded successfully automatically.
Step S37, if first deviation post and second deviation post mismatch, the system firmware head Code verification failure.
When by judging that the first deviation post of discovery and the second deviation post mismatch, it may be considered that system firmware head The failure of portion's code verification, then can terminate ONU system automatically and be upgraded, and can also upgrade mentioning for failure at this time with output system Show information.
In the present embodiment, by determining that corresponding first deviation post of the first plant code and the second plant code are corresponding The second deviation post whether match, thus to determine whether system firmware header code is proved to be successful, and ONU system is determined with this Whether system is able to carry out upgrading, to improve the accuracy for judging ONU system upgrade.
Further, the present invention first to second embodiment any one on the basis of, propose ONU system of the present invention The 3rd embodiment of upgrade method, the present embodiment is the step S10 of first embodiment of the invention, by the bootstrap to institute State the refinement for the step of system head code is verified, comprising:
Step S11 is judged in the system head code by the bootstrap with the presence or absence of the second plant code;
It, can be automatically according to this bootstrap in system head code after getting bootstrap in ONU system Each code is judged, it is determined whether there are the second plant code, the second plant code if it exists, it may be considered that system head Portion's code verification success, so as to allow ONU system to open ONU system according to the enabled instruction that user inputs, but when by sentencing When the second plant code is not present in disconnected discovery system head code, it may be considered that system head code verification fails, need Starting recovery system mechanism restores system.
Step S12, if there are the second plant code in the system head code, the system head code verification at Function;
When by judging in discovery system head code there are when the second plant code, it may be considered that system head code It is proved to be successful, ONU system can be allowed to open ONU system according to the enabled instruction that user inputs.
Step S13, if the second plant code, the system head code verification are not present in the system head code Failure.
But when by judging that the second plant code is not present in discovery system head code, it may be considered that system head The failure of portion's code verification, needs to start recovery system mechanism and restores to system.
In the present embodiment, by judging in system head code with the presence or absence of second producer's generation when ONU system starts Code, and according to judging result determine currently running system whether be producer release system, so as at any time determination transporting Capable system is the system of producer's release always.
Specifically, if there are the second plant code in the system head code, the system head code verification at The step of function, comprising:
Step S121 obtains second plant code if there are the second plant codes in the system head code The second deviation post in the system head code, and judge pre- in second deviation post and the bootstrap If deviation post is matched;
Default bias position can be producer and any one position for placing the special code with producer's label be arranged in advance It sets.When by judging that there are when the second plant code in discovery system head code, it is also necessary to determine that the second plant code is being The second deviation post united in header code, also needs to determine at the same time default bias position by bootstrap, and by the Two deviation posts and default bias position are matched, and the offset of the second plant code in system head code is judged with this Whether position is accurate.
Step S122, if second deviation post and default bias location matches, the system head code verification Success;
When by judging the second deviation post of discovery and default bias location matches, it may be considered that system head code It is proved to be successful, it can ONU system is started according to the enabled instruction of user's input.
Step S123, if second deviation post and default bias position mismatch, the system head code is tested Card failure.
When by judging that the second deviation post of discovery and default bias position mismatch, it may be considered that system head generation Code authentication failed, needs to start recovery system mechanism and restores to system.
In the present embodiment, by judge position of second plant code in system head code whether and default bias Location matches, so as to determine that in the system of operation be the system of producer's release always at any time.
Specifically, if second deviation post and default bias position mismatch, the system head code verification After the step of failure, comprising:
Step S124 obtains the recovery system mechanism in the ONU system;
Step S125 restores the system head code by the recovery system mechanism.
After judgement discovery system head code verification failure, then need to obtain recovery system machine in ONU system System, then again restores system head code by this recovery system mechanism.Wherein, recovery system mechanism is exactly not break System is set to be restored to state when just starting installation under the premise of bad data file.
In the present embodiment, when being worked normally before being restored the system to by the recovery system mechanism in ONU system State, the system of ensure that can run with the system of producer's release always.
Further, if the step of system firmware header code is proved to be successful, and the ONU system is upgraded it Afterwards, comprising:
Step S60 verifies the system head in the ONU system for having upgraded completion if the ONU system upgrade is completed again Portion's code;
Step S70, if the system head code check success of the ONU system for having upgraded completion, opens the ONU System.
When by judging that discovery ONU system upgrade is completed, then the prompt information upgraded successfully can be exported automatically, and The system head code in the ONU system for having upgraded completion can be verified again, that is, is judged whether to exist in default bias position and be marked Show the special code of producer, if discovery has upgraded the system head code check success of the ONU system of completion, can automatically turn on ONU system is for users to use, if the system head code check for the ONU system that discovery has upgraded completion is unsuccessful, to need This system is restored, with the system for being restored to producer's release.
In the present embodiment, by after the completion of system upgrade, it is also necessary to detect the system head generation in ONU system again Code also effectively prevents piracy software and uses factory to be effectively prevented from system of the user by ONU system upgrade for other manufacturers The ONU of family, maintains the copyright and the market share of producer.
In addition, the embodiment of the present invention also proposes a kind of ONU system upgrade device, the ONU system upgrade dress referring to Fig. 4 It sets and includes:
Module is obtained, for obtaining bootstrap and system head code in optical network unit ONU system, and passes through institute Bootstrap is stated to verify the system head code;
Judgment module, if being inputted for system head code verification success based on user in the ONU system Enabled instruction starts the ONU system, and judges whether the ONU system is upgraded;
Authentication module, if being upgraded for the ONU system, obtain downloaded in the ONU system be System fastener heads code, and the system firmware header code is verified;
Upgraded module, if being proved to be successful for the system firmware header code, the ONU system is upgraded.
Optionally, the authentication module, is also used to:
The system firmware header code downloaded in the ONU system is obtained, and judges the system firmware header code In whether there is the first plant code;
If there are the first plant code in the system firmware header code, judge first plant code whether and The second plant code matching in the system head code;
If the first plant code is not present in the system firmware header code, the system firmware header code verifying Failure.
Optionally, the authentication module, is also used to:
If first plant code and second plant code matching, obtain first plant code described The first deviation post in system firmware header code;
Second deviation post of second plant code in the system head code is obtained, and judges described first Whether deviation post and second deviation post match;
If first deviation post and second deviation post matching, system firmware header code verifying at Function;
If first deviation post and second deviation post mismatch, the system firmware header code verifying Failure.
Optionally, the acquisition module, is also used to:
Judged in the system head code by the bootstrap with the presence or absence of the second plant code;
If there are the second plant code, the system head code verification successes in the system head code;
If the second plant code is not present in the system head code, the system head code verification failure.
Optionally, the acquisition module, is also used to:
If there are the second plant codes in the system head code, second plant code is obtained in the system The second deviation post in header code, and judge the default bias position in second deviation post and the bootstrap It is matched;
If second deviation post and default bias location matches, the system head code verification success;
If second deviation post and default bias position mismatch, the system head code verification failure.
Optionally, the acquisition module, is also used to:
Obtain the recovery system mechanism in the ONU system;
The system head code is restored by the recovery system mechanism.
Optionally, the ONU system upgrade device, further includes:
If the ONU system upgrade is completed, the system head code in the ONU system for having upgraded completion is verified again;
If the system head code check success in the ONU system for having upgraded completion, opens the ONU system.
Wherein, the step of each Implement of Function Module of ONU system upgrade device can refer to the system upgrade side ONU of the present invention Each embodiment of method, details are not described herein again.
The present invention also provides a kind of ONU system upgrade equipment, the ONU system upgrade equipment includes: memory, processing Device, communication bus and the ONU system upgrade program being stored on the memory:
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing the ONU system upgrade program, to realize that above-mentioned ONU method for upgrading system is respectively implemented The step of example.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has one Perhaps more than one program the one or more programs can also be executed by one or more than one processor with The step of embodiment each for realizing above-mentioned ONU method for upgrading system.
Computer readable storage medium specific embodiment of the present invention and above-mentioned each embodiment of ONU method for upgrading system are basic Identical, details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of ONU method for upgrading system, which is characterized in that the ONU method for upgrading system the following steps are included:
The bootstrap and system head code in optical network unit ONU system are obtained, and by the bootstrap to described System head code is verified;
If the system head code verification success, described in the enabled instruction starting inputted based on user in the ONU system ONU system, and judge whether the ONU system is upgraded;
If the ONU system is upgraded, the system firmware header code downloaded in the ONU system is obtained, and The system firmware header code is verified;
If the system firmware header code is proved to be successful, the ONU system is upgraded.
2. ONU method for upgrading system as described in claim 1, which is characterized in that described obtain has been downloaded in the ONU system System firmware header code, and the step of system firmware header code is verified, comprising:
Obtain the system firmware header code downloaded in the ONU system, and judge be in the system firmware header code It is no that there are the first plant codes;
If there are the first plant code in the system firmware header code, judge first plant code whether with it is described The second plant code matching in system head code;
If the first plant code is not present in the system firmware header code, the system firmware header code verifying is lost It loses.
3. ONU method for upgrading system as claimed in claim 2, which is characterized in that described to judge that first plant code is After the step of the second plant code in the no and described system head code matches, comprising:
If first plant code and second plant code matching, obtain first plant code in the system The first deviation post in fastener heads code;
Second deviation post of second plant code in the system head code is obtained, and judges first offset Whether position and second deviation post match;
If first deviation post and second deviation post matching, the system firmware header code are proved to be successful;
If first deviation post and second deviation post mismatch, the system firmware header code verifying is lost It loses.
4. ONU method for upgrading system as described in claim 1, which is characterized in that it is described by the bootstrap to described The step of system head code is verified, comprising:
Judged in the system head code by the bootstrap with the presence or absence of the second plant code;
If there are the second plant code, the system head code verification successes in the system head code;
If the second plant code is not present in the system head code, the system head code verification failure.
5. ONU method for upgrading system as claimed in claim 4, which is characterized in that if being deposited in the system head code In the second plant code, then the successful step of the system head code verification, comprising:
If there are the second plant codes in the system head code, second plant code is obtained in the system head The second deviation post in code, and judge that the default bias position in second deviation post and the bootstrap carries out Matching;
If second deviation post and default bias location matches, the system head code verification success;
If second deviation post and default bias position mismatch, the system head code verification failure.
6. ONU method for upgrading system as claimed in claim 5, which is characterized in that if second deviation post and pre- After the step of if deviation post mismatches, then the system head code verification fails, comprising:
Obtain the recovery system mechanism in the ONU system;
The system head code is restored by the recovery system mechanism.
7. ONU method for upgrading system as described in claim 1, which is characterized in that if the system firmware header code It is proved to be successful, then after the step of ONU system is upgraded, comprising:
If the ONU system upgrade is completed, the system head code in the ONU system for having upgraded completion is verified again;
If the system head code check success in the ONU system for having upgraded completion, opens the ONU system.
8. a kind of ONU system upgrade device, which is characterized in that the ONU system upgrade device includes:
Module is obtained, is drawn for obtaining bootstrap and system head code in optical network unit ONU system, and by described System head code described in lead ordered pair is verified;
Judgment module, if for system head code verification success, the starting inputted based on user in the ONU system Instruction starts the ONU system, and judges whether the ONU system is upgraded;
It is solid to obtain the system downloaded in the ONU system if being upgraded for the ONU system for authentication module Part header code, and the system firmware header code is verified;
Upgraded module, if being proved to be successful for the system firmware header code, the ONU system is upgraded.
9. a kind of ONU system upgrade equipment, which is characterized in that the ONU system upgrade equipment include: memory, processor and The ONU system upgrade program that is stored on the memory and can run on the processor, the ONU system upgrade program The step of ONU method for upgrading system as described in any one of claims 1 to 7 is realized when being executed by the processor.
10. a kind of computer readable storage medium, which is characterized in that be stored with ONU system on the computer readable storage medium System upgrade procedure, is realized as described in any one of claims 1 to 7 when the ONU system upgrade program is executed by processor The step of ONU method for upgrading system.
CN201811539393.8A 2018-12-14 2018-12-14 ONU system upgrading method, device, equipment and computer readable storage medium Active CN109495798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811539393.8A CN109495798B (en) 2018-12-14 2018-12-14 ONU system upgrading method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811539393.8A CN109495798B (en) 2018-12-14 2018-12-14 ONU system upgrading method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109495798A true CN109495798A (en) 2019-03-19
CN109495798B CN109495798B (en) 2021-10-22

Family

ID=65710535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811539393.8A Active CN109495798B (en) 2018-12-14 2018-12-14 ONU system upgrading method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109495798B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965461A (en) * 2020-07-02 2022-01-21 大唐移动通信设备有限公司 Active antenna unit upgrading method and device
CN115174392A (en) * 2022-09-07 2022-10-11 武汉长光科技有限公司 Upgrading method of optical network unit ONU, server and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859182A (en) * 2005-12-25 2006-11-08 华为技术有限公司 Method for edition upgrading of optical network unit ONU
US20100067908A1 (en) * 2005-09-29 2010-03-18 Broadlight, Ltd. Enhanced Passive Optical Network (PON) Processor
CN102098590A (en) * 2009-12-15 2011-06-15 中兴通讯股份有限公司 Automatic upgrading method and system of firmware version of optical network unit
CN102571462A (en) * 2012-04-06 2012-07-11 烽火通信科技股份有限公司 Self-protecting method for long-distance upgrading of optical network unit
CN102681871A (en) * 2012-04-25 2012-09-19 广州致远电子股份有限公司 Firmware upgrading system based on communication interfaces
CN103488501A (en) * 2013-09-09 2014-01-01 青岛海信宽带多媒体技术有限公司 Optical network terminal equipment and system software upgrade method thereof
CN106375406A (en) * 2016-08-31 2017-02-01 浙江创佳数字技术有限公司 Terminal system upgrading method
CN107102871A (en) * 2017-03-30 2017-08-29 建荣半导体(深圳)有限公司 The method and apparatus of embedded system upgrading
CN107943499A (en) * 2017-11-27 2018-04-20 深圳创维数字技术有限公司 A kind of method for upgrading system, device, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100067908A1 (en) * 2005-09-29 2010-03-18 Broadlight, Ltd. Enhanced Passive Optical Network (PON) Processor
CN1859182A (en) * 2005-12-25 2006-11-08 华为技术有限公司 Method for edition upgrading of optical network unit ONU
CN102098590A (en) * 2009-12-15 2011-06-15 中兴通讯股份有限公司 Automatic upgrading method and system of firmware version of optical network unit
CN102571462A (en) * 2012-04-06 2012-07-11 烽火通信科技股份有限公司 Self-protecting method for long-distance upgrading of optical network unit
CN102681871A (en) * 2012-04-25 2012-09-19 广州致远电子股份有限公司 Firmware upgrading system based on communication interfaces
CN103488501A (en) * 2013-09-09 2014-01-01 青岛海信宽带多媒体技术有限公司 Optical network terminal equipment and system software upgrade method thereof
CN106375406A (en) * 2016-08-31 2017-02-01 浙江创佳数字技术有限公司 Terminal system upgrading method
CN107102871A (en) * 2017-03-30 2017-08-29 建荣半导体(深圳)有限公司 The method and apparatus of embedded system upgrading
CN107943499A (en) * 2017-11-27 2018-04-20 深圳创维数字技术有限公司 A kind of method for upgrading system, device, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
M.-K. HONG: "Slow Adaptive OFDMA-PON Through Channel Stabilization Employing Seed Carrier Clipping", 《IEEE PHOTONICS TECHNOLOGY LETTERS》 *
张利等: "EPON中ONU大规模软件升级技术研究与设计", 《光通信技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965461A (en) * 2020-07-02 2022-01-21 大唐移动通信设备有限公司 Active antenna unit upgrading method and device
CN113965461B (en) * 2020-07-02 2022-09-27 大唐移动通信设备有限公司 Active antenna unit upgrading method and device
CN115174392A (en) * 2022-09-07 2022-10-11 武汉长光科技有限公司 Upgrading method of optical network unit ONU, server and storage medium

Also Published As

Publication number Publication date
CN109495798B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN107193612B (en) Version upgrading method and device for mobile terminal
CN104133709B (en) The upgrade method and device of embedded system
CN113110852A (en) Firmware upgrading method and device and storage medium
KR101082628B1 (en) Firmware upgrade system of audio/video/navigation(avn) system for vehicle using bluetooth mobile communication terminal and the method
CN105307195B (en) A kind of method and device updating access point name parameter
CN107832065A (en) Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN109947449A (en) Method for upgrading system, device, storage medium and electronic equipment
CN109495798A (en) ONU method for upgrading system, device, equipment and computer readable storage medium
US10825039B2 (en) Communication of reward data between applications
CN102810077A (en) Abnormal hardware detecting method and device
CN105045671B (en) The method for upgrading system and device of a kind of intelligent terminal
CN108280341A (en) Channel number addition, installation kit method of calibration and device
CN104850427A (en) Method and device for upgrading code
CN108572848A (en) The bottom firmware on line upgrading method, apparatus and storage medium of interactive system
CN101170765B (en) Generation and authentication method for telecommunication intelligent card
KR101558301B1 (en) Apparatus and method for changing language in mobile communication terminal
CN112463199A (en) System upgrading method and terminal
CN105468420B (en) Operating system update method and apparatus
CN104598281B (en) The method of system for upgrading electronic equipment
CN115515012A (en) Key burning method and device, electronic equipment board card and storage medium
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
KR101206639B1 (en) Server and Method for updating firmware in Mobile communication terminal
CN109885317B (en) Information processing method, server and terminal
CA3075444C (en) Method for validating a medical application, end user device and medical system
CN112040320B (en) Television fruit application upgrading method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant