The method of upgrading optical module firmware in optical network unit by utilizing WEB webpage interface
Technical field
The invention belongs to passive fiber communication system field, relate to the upgrade method of optical module in optical network, specifically, is a kind of method that realizes the upgrading optical module firmware by the WEB web-page interface.
Background technology
At present optical fiber access technology develop rapidly, the optical network unit ONU demand is growing, day by day amplification along with user side network application demand, the functional requirement of optical network unit ONU also from strength to strength and its structure also become increasingly complex, the upgrading of the system network management software of optical network unit ONU has been had fairly simple processing mode.
Optical module--the core devices in the optical network unit ONU just becomes very complicated if relate to the firmware upgrade of optical module, and especially after optical module had been installed to above the system board, we need to upgrade to it, just became very thorny.
Optical module of the prior art upgrading mode is more original, generally is that optical module is disassembled, burning firmware again on the test board of optical module then, and this method wastes time and energy, and damages easily again device.
Summary of the invention
Problem to be solved by this invention is: break the original upgrading mode of optical module, realize a kind of optical module that need not to pull down from optical network unit ONU, need not just can finish by the testing tool plate again the method for optical module firmware upgrading.
The present invention for realizing the technical scheme that goal of the invention adopts is: the method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface, above method is by the upgrade service program being saved in the storage unit of optical module MCU inside, realize the master routine of optical module firmware or the renewal of parameter by the upgrade service program, in optical network unit, increase the WEB web-page interface, and in optical module, increase and optical network unit between the I of communication
2C interface, carry out following steps on this basis:
A, by the WEB web-page interface on the optical network unit, the upgrade file of optical module is uploaded, is stored in the storage space of optical network unit;
B, pass through I
2C interface and matching interface translation-protocol are downloaded to the upgrade file in the optical network unit storage space in the storage unit of optical module MCU inside, and concrete steps are as follows:
B1, optical network unit send the upgrade request order, simultaneously predefined upgrading banner string are stored in the mailbox memory of optical module;
B2, optical module MCU reset, and start operation upgrade service program;
B3, upgrade service program are by WEB web-page interface and I
2The matching interface translation-protocol of C interface is downloaded upgrade file and is stored in the storage unit of optical module MCU inside;
C, download completely, optical module MCU resets.
Wherein, when each optical module MCU resets, at first start operation upgrade service program, and check whether the mailbox memory of optical module stores predefined upgrading banner string, if having, execution in step B3 if do not have, skips to and carries out the optical module master routine.
In step C, download complete after, optical module MCU wipes the upgrading banner string in the mailbox memory.
The storage unit of optical module MCU inside is divided into the first storage unit, the second storage unit of depositing the optical module master routine of depositing the upgrade service program, the 3rd storage unit of depositing optical module parameter.
The storage unit of optical module MCU inside is programmable FLASH storage unit.
Utilize the inventive method, the flow processs such as dismounting optical module, burning, testing tool plate of passing through that the staff need not be wasted time and energy are again finished updating operation, and only need to obtain the upgrade file that this is inputted manually by the WEB web-page interface that ONU provides, at the I through optical module
2C interface and supporting agreement are sent to upgrade file in the storage space of optical module MCU inside, carry out afterwards master routine or the parameter of upgrading optical module firmware, finish escalation process.Obviously, the inventive method has successfully realized the upgrading mode of a kind of intelligence, robotization.
The present invention is described in detail below in conjunction with accompanying drawing.
Description of drawings
Fig. 1 is method flow diagram of the present invention.
Embodiment
Referring to Fig. 1, the method of upgrading optical module firmware in optical network unit by utilizing WEB webpage interface, above method is by upgrade file being saved in the storage unit of optical module MCU inside, realize the master routine of optical module firmware or the renewal of parameter by the upgrade service program, in optical network unit, increase the WEB web-page interface, and in optical module, increase and optical network unit between the I of communication
2C interface, carry out following steps on this basis:
A, by the WEB web-page interface on the optical network unit, the upgrade file of optical module is uploaded, is stored in the storage space of optical network unit;
B, pass through I
2C interface and matching interface translation-protocol are downloaded to the upgrade file in the optical network unit storage space in the storage unit of optical module MCU inside, and concrete steps are as follows:
B1, optical network unit send the upgrade request order, simultaneously predefined upgrading banner string are stored in the mailbox memory of optical module;
B2, optical module MCU reset, and start operation upgrade service program;
B3, upgrade service program are by WEB web-page interface and I
2The matching interface translation-protocol of C interface is downloaded upgrade file and is stored in the storage unit of optical module MCU inside;
C, download completely, optical module MCU wipes the upgrading banner string in the mailbox memory, and optical module MCU resets.
Wherein, when each optical module MCU resets, at first start operation upgrade service program, and check whether the mailbox memory of optical module stores predefined upgrading banner string, if having, execution in step B3 if do not have, skips to and carries out the optical module master routine.
The WEB web-page interface of ONU self gets access to after the upgrade data, send upgrading optical module request command, require the optical module MCU banner string of will upgrading to write in storage unit one mailbox memory in a fixed address space, optical module MCU resets and starts the upgrade service program, MCU checks from the storage unit in above-mentioned fixed address space whether the upgrading banner string is arranged, if inspection is not to the just normal optical module master routine that starts of banner string of upgrading, if inspection is to there being the upgrading banner string just to carry out upgrading, after upgrading is finished, remove the upgrading banner string in fixed address space, optical module MCU automatically resets, electrifying startup upgrade service program, detect the banner string of not upgrading in the fixed address space this moment, automatically skips to operation optical module master routine.Realize so the automatic controlled loading of upgrade service program, concrete loading procedure need not manual intervention.
Wherein, the storage unit of optical module MCU inside is programmable FLASH storage unit, and the storage unit of optical module MCU inside is divided into the first storage unit, the second storage unit of depositing the optical module master routine of depositing the upgrade service program, the 3rd storage unit of depositing optical module parameter.Utilize FLASH have erasable convenience, programming often, programming need not the advantage such as applying high voltage, can satisfy the demand of our online upgrading optical module, subregion process can the space of raising own the space availability ratio of very little optical module MCU storage unit just.
During this method implementation, the inventive method is based on optical network unit, reaches the core component optical module in the optical network unit.The inventive method is that the storage unit with the MCU inside of optical module is divided into the first storage unit, the second storage unit of depositing the optical module master routine of depositing the upgrade service program, the 3rd storage unit of depositing optical module parameter.By the WEB web-page interface of optical network unit self, the upgrade file of optical module is stored in the storage space of optical network unit; Then optical network unit MCU sends upgrading optical module request command, simultaneously predefined upgrading banner string is stored in the mailbox memory of optical module; Optical module MCU resets, and starts operation upgrade service program, and the upgrade service program is passed through I
2C interface and matching interface translation-protocol are downloaded upgrade file and are stored in the storage unit of optical module MCU inside; Carry out the upgrade file that upgrades optical module firmware; Finish renewal process, optical module MCU wipes the upgrading banner string in the mailbox memory, and optical module MCU resets.
After optical module MCU resets, all the time start from the first storage unit, operation upgrade service program, then check mailbox memory, content in the mailbox memory and predefined upgrading banner string are compared, must be checked through the banner string of not upgrading in the mailbox memory this moment, then skips to carry out the optical module master routine.
Adopt such upgrade method; no longer need optical module is dismantled; avoided in the disassembly process damage to device; namely realized a kind of protection to device; alleviated simultaneously staff's burden; make the firmware upgrade of optical module no longer thorny, but become more simple, quick, can satisfy users to the continuous renewal of optical module firmware, the demand of upgrading.