CN108108174A - Optical module and its method of firmware upgrade - Google Patents
Optical module and its method of firmware upgrade Download PDFInfo
- Publication number
- CN108108174A CN108108174A CN201611044081.0A CN201611044081A CN108108174A CN 108108174 A CN108108174 A CN 108108174A CN 201611044081 A CN201611044081 A CN 201611044081A CN 108108174 A CN108108174 A CN 108108174A
- Authority
- CN
- China
- Prior art keywords
- firmware
- optical module
- code
- firmware upgrade
- upgrade
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
This disclosure relates to the method for optical module and its firmware upgrade a kind of, the method for the optical module firmware upgrading, including:Receive firmware upgrade request;It responds the firmware upgrade request to back up the operating parameter of the optical module, and firmware upgrade code is run into default upgrade procedure area in memory block;It jumps to the main program area in the memory block and runs newer firmware code, by the operating parameter of the operation loading backup of the firmware code, with the operation of optical module described in generation configuration state modulator.The optical module and its method of firmware upgrade provided using the disclosure can not restart optical module when optical module carries out firmware upgrade, with this communication service be avoided to be interrupted.
Description
Technical field
This disclosure relates to technical field of optical fiber communication more particularly to a kind of optical module and its method of firmware upgrade.
Background technology
With the rapid development of Fibre Optical Communication Technology, user is to the important component in fiber optic communication --- optical module
The requirement of performance and index is also higher and higher.
When optical module is applied to communication system, its performance indicator is promoted if necessary, alternatively, repairing therein
Known defect increases new function etc., then needs to carry out firmware upgrade to it, especially carry out online firmware upgrade, kept away with this
Exempt from optical module return light module manufacturer, so as to greatly save time cost, improve firmware upgrade efficiency.
At present, the firmware upgrade process of optical module generally includes:Host sends firmware upgrade request, optical module to optical module
It is then asked to download firmware upgrade code by host according to firmware upgrade, firmware generation is completed by running the firmware upgrade code downloaded
The update of code, and run updated firmware code by restarting optical module so that optical mode firmware version in the block is by legacy version
New version is upgraded to, so as to complete the process of firmware upgrade.
However, due to needing to restart optical module in existing optical module firmware escalation process, it will so that optical module early period
Operating parameter in operational process is all lost, and causes to be interrupted using the communication service that the optical module is carried out, and then is led
Cause poor user experience.
The content of the invention
Based on this, one of the disclosure is designed to provide a kind of method of optical module firmware upgrading, existing for solving
The problem of optical module carries out due to optical module is restarted communication service being caused to be interrupted during firmware upgrade in technology.
In addition, another object of the present disclosure is to provide a kind of device of optical module firmware upgrading, it is existing for solving
The problem of optical module carries out due to optical module is restarted communication service being caused to be interrupted during firmware upgrade in technology.
In order to solve the above-mentioned technical problem, technical solution is used by the disclosure:
A kind of method of optical module firmware upgrading, including:Receive firmware upgrade request;Respond the firmware upgrade request pair
The operating parameter of the optical module is backed up, and runs firmware upgrade code into default upgrade procedure area in memory block;
It jumps to the main program area in the memory block and runs newer firmware code, backup is loaded by the operation of the firmware code
Operating parameter, with generation configuration state modulator described in optical module operation.
A kind of optical module, including:Request receiving module, for receiving firmware upgrade request;Parameter backup module, for ringing
The firmware upgrade request is answered to back up the operating parameter of the optical module, and enters default upgrade procedure in memory block
Run firmware upgrade code in area;First firmware code runs module, for jumping to the operation of the main program area in the memory block
Newer firmware code, by the operating parameter of the operation loading backup of the firmware code, with generation configuration state modulator institute
State the operation of optical module.
Compared with prior art, the disclosure has the advantages that:
By jumping directly to main program area by default upgrade procedure area, to run newer firmware generation in main program area
Code is realized and restarts identical function with optical module, avoids the restarting of optical module;And by the operating parameter to optical module into
Row backup, in order to the operating parameter of the loading backup in newer firmware code in running main program area so that optical module exists
Identical operating status can be kept before and after firmware upgrade, is needed so as to solve when optical module in the prior art carries out firmware upgrade
Restart optical module, and operating parameter in optical module operational process early period caused all to be lost, cause using the optical module into
The problem of capable communication service is interrupted avoids communication service with this and is interrupted, effectively improve user experience.
It should be appreciated that above general description and following detailed description are only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and in specification together for explaining the principle of the disclosure.
Fig. 1 is the schematic diagram according to the implementation environment involved by the disclosure;
Fig. 2 is the hardware block diagram according to a kind of optical module shown in an exemplary embodiment;
Fig. 3 is the flow chart of the method upgraded according to a kind of optical module firmware shown in an exemplary embodiment;
Fig. 4 is the schematic diagram divided according to the storage area structure in the block of the optical mode involved by the disclosure;
Fig. 5 is the flow chart of the method upgraded according to another optical module firmware shown in an exemplary embodiment;
Fig. 6 is that Fig. 3 is corresponded in embodiment into default upgrade procedure area operation firmware upgrade code steps in memory block
In the flow chart of one embodiment;
Fig. 7 is the flow chart of the method upgraded according to another optical module firmware shown in an exemplary embodiment;
Fig. 8 is a kind of specific implementation schematic diagram of the method for optical module firmware upgrading in an application scenarios;
Fig. 9 is the block diagram according to a kind of optical module shown in an exemplary embodiment;
Figure 10 is that Fig. 9 corresponds in embodiment ask respond module in the block diagram of one embodiment;
Figure 11 is the block diagram according to another optical module shown in an exemplary embodiment.
Pass through above-mentioned attached drawing, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail, these attached drawings
The scope for limiting the disclosure by any mode and conceiving is not intended to word description, but is by reference to specific embodiment
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Here explanation will be performed to exemplary embodiment in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is the implementation environment involved by a kind of method of optical module firmware upgrading.The implementation environment is exchanged including core
Machine 110, convergence switch 120,130,140, server 151,152,153 and router 160.Wherein, optical module 200 should
For in core switch 110, i.e., core switch 110 to can be considered 200 corresponding host of optical module.
Specifically, communicated using the core switch 110 of optical module 200 by fiber optic network with router 160, Jin Ertong
The realization of router 160 is crossed to interact with the data (such as video, audio, recording, video recording etc.) of Internet network.Meanwhile the number
According to can store to server 151~153, with for users to use.
Convergence switch 120,130,140 be each connected to respectively at least PC machine (computer, 121,131,141),
An at least phone (122,132,142) and at least television set (123,133,143) etc..
User can get the various numbers stored in server 151~153 by PC machine, phone or television set
According to enjoying video in the various network services that Internet network provided, such as shared network, audio, recording, record with this
The Internet resources such as picture.
Referring to Fig. 2, Fig. 2 is the hardware block diagram according to a kind of optical module shown in an exemplary embodiment.This is hard
Part structure is an example for being applicable in the disclosure, it is impossible to it is considered any restrictions to the use scope of the disclosure, it can not
The disclosure is construed to need to rely on optical module illustrated in fig. 2.
As shown in Fig. 2, the optical module 200 includes the laser transceiver 210, the laser-driven chip that are used for transmission optical signal
220th, micro-control unit 230, power supply 240 and the electric signal interface 250 to communicate with host 100.
Wherein, micro-control unit 230, which is realized, matches somebody with somebody the logical signal of optical module 200 monitoring, laser-driven chip 220
It puts, the functions such as the communication control of the power supply management of power supply 240, host 100 and optical module 230.
It is appreciated that structure shown in Fig. 2 is only to illustrate, optical module 200 can also include than more shown in Fig. 2
Or less component or have and different component illustrated in fig. 2.Each component shown in Fig. 2 may be employed hardware,
Software or combination are realized.
In conjunction with Fig. 1 to Fig. 2, the mistake by micro-control unit 230 exemplified by microcontroller, to upgrade to existing optical module firmware
Journey is illustrated as follows.
The memory block of microcontroller is usually by FLASH (Flash Memory, flash memory) areas and RAM (Random Access
Memory, random access memory) district's groups into.Wherein, FLASH areas are for store code data (such as firmware code, firmware upgrade generation
Code), configuration data (such as initiation parameter) etc., even if loss of data will not be caused after power down.RAM areas are used to store firmware
Generated stacked data, variable data (including global variable, local variable, static variable) etc. when code is run, after power down
It will cause loss of data.
The firmware upgrade process of optical module 200 is the firmware code for updating and being stored in FLASH areas, and then passes through operation
Newer firmware code completes the firmware upgrade of optical module 200 in FLASH areas.
Specifically, microcontroller carries Boot guiding functions, when microcontroller detects that default hardware pins export low electricity
Ordinary mail number, while when the numerical value for reading default internal register is full F, microcontroller is i.e. into Boot areas.
Into after Boot areas, microcontroller realizes the interface (such as I2C interface, MDIO interfaces etc.) to communicate with host 100
The firmware upgrade instruction sent by host will be received, can be realized by firmware upgrade instruction under firmware upgrade code
It carries, and the firmware upgrade code of download is stored to FLASH areas.
After the download of firmware upgrade code finishes, by the boot program loads FLASH areas stored in Boot areas, to enter
FLASH areas are brought into operation firmware upgrade code by specified memory address (that is, storage address of firmware upgrade code), and then
The firmware code stored in FLASH areas is updated by the operation of firmware upgrade code.It is finished when firmware code updates, i.e.,
The numerical value of default internal register is revised as full 0, makes the condition that microcontroller enters Boot areas invalid, and then leaves Boot
Area.
Microcontroller, which leaves, to be restarted after Boot areas, microcontroller understand during restarting to optical module 200 into
Row initialization, for example, being connect to the GPIO (General Purpose Input/Output, universal input output) of optical module 200
Mouth is initialized, and laser-driven chip 220 is reconfigured, to RAM areas initialization etc..
After treating that the initialization of optical module 200 is completed, microcontroller reenters FLASH areas, by (that is, the firmware of memory address 0
The storage address of code) bring into operation newer firmware code, and by being read just in FLASH areas in firmware code operational process
By loading operation of the initiation parameter read for firmware code, state modulator light is configured with generation for beginningization parameter
The firmware upgrade of optical module is completed in the operation of module with this.
However, in the firmware upgrade process of optical module 200, due to the optical mode conducted in microcontroller restarting procedure
Initialization block will cause operating parameter in optical module operational process early period all to lose, and influence optical module other units
The monitoring function of (such as laser-driven chip 220), so that the communication service that host 100 is transmitted by the optical module 200
It is interrupted, until the initialization of optical module 200 is completed, microcontroller reenters FLASH areas and brings into operation newer firmware code, and
Initiation parameter is loaded by the operation of firmware code, with the operation of generation configuration state modulator optical module, host could be recovered
100 normal communications carried out by optical module 200.
If it is appreciated that the optical module 200 is used for primary data communication server or base station, it will cause relative
All-network interrupts, and then causes the communication service of large area user that can not be normally carried out, and causes poor user experience.
Therefore, communication service is interrupted when upgrading in order to avoid optical module firmware, and spy proposes a kind of optical module firmware liter
The method of grade, optical module 200 of the method that this kind of optical module firmware upgrades suitable for implementation environment illustrated in fig. 1.
Referring to Fig. 3, in one exemplary embodiment, the method for this kind of optical module firmware upgrading can be by optical module 200
It performs, may comprise steps of:
Step 310, firmware upgrade request is received.
As previously mentioned, when optical module is applied to communication system, when user need to be promoted optical module performance indicator or
Person when repairing optical mode known defect in the block, increasing the new function of optical module, will send firmware upgrade by host to optical module
Request, to realize the firmware upgrade to optical module by firmware upgrade request.
After host sends firmware upgrade request, optical module can pass through the interface that inside is set to the firmware liter
Grade request.
Further, the inside set interface can be I2C interface, MDIO interfaces or other can realize
With the low-speed communication interface of main-machine communication.
Step 330, respond firmware upgrade request to back up the operating parameter of optical module, and enter in memory block and preset
Upgrade procedure area operation firmware upgrade code.
In order to avoid the loss of the operating parameter in optical module operational process early period, it is asked receiving firmware upgrade
Afterwards, optical module will be by asking the firmware upgrade to be responded the backup for completing operating parameter.In other words, it is possible that
Causing the operating parameter that communication service is interrupted will all be saved after firmware upgrade request is received.
Wherein, operating parameter results from optical module operational process, i.e., in firmware code operational process, reflects optical module with this
Operating status.For example, the operating parameter can include:DDMI(DigitalDiagnostic Monitor
Information, digital diagnostic monitoring information), laser-driven chip monitoring information, laser-driven chip register monitoring letter
Various status informations in breath, power supply control information, optical module remaining element etc..
Operating parameter is backed up in the memory block of optical module, so that optical module is read out after firmware upgrade.
As shown in figure 4, the memory block of optical module include RAM areas, the RAM areas include program variable area, stacked data area and
Backup Data area.Wherein, program variable area is used to store the variable data generated during firmware code operation, and stacked data area is used for
The stacked data generated during storage firmware code operation, and operating parameter then backs up the Backup Data area in RAM areas.
Further, which is arranged on last block memory address block in RAM areas.Ensureing program variable area
On the premise of there is enough memory spaces with stacked data area, avoid operating parameter and variable data and stacked data are mutual
The problem of conflicting, and operating parameter caused to be written over, so as to improve the backup validity of operating parameter.
While operating parameter is backed up, it is solid that optical module will also enter default upgrade procedure area operation in memory block
Part upgrade code.
In the present embodiment, by pre-setting a upgrade procedure area in memory block, to realize firmware upgrade code with consolidating
Part code is stored separately.That is, after the firmware upgrade code for receiving host transmission in optical module, you can by firmware upgrade generation
Code is stored in designated memory space --- upgrade procedure area.
Specifically, as shown in figure 4, the memory block of optical module further includes FLASH areas, the FLASH areas include main program area,
Configuration data area and upgrade procedure area.Wherein, for storing firmware code, upgrade procedure area is used to store firmware liter for main program area
Grade code, configuration data area then can be used for the initiation parameter generated in storage optical module initialization procedure.
Further, upgrade procedure area is arranged on last block memory address block in FLASH areas, ensure main program area and
On the premise of configuration data area has enough memory spaces, avoid firmware upgrade code and firmware code and configuration data are mutual
The problem of mutually conflicting, and firmware upgrade code caused to be written over, so as to improve the storage validity of firmware upgrade code.
For example, the occupied memory space in FLASH areas of microcontroller is 64K bytes, wherein, main program area occupies most
The 32K bytes of beginning, upgrade procedure area occupy last 4K bytes, and intermediate 28K bytes are then under the jurisdiction of configuration data area, with this
It ensure that the storage that there is sufficient memory space to carry out firmware upgrade code in microcontroller.
After the storage of firmware upgrade code is completed, you can pass through the firmware wherein stored into the operation of upgrade procedure area
Upgrade code so that the firmware code stored in main program area is updated.
By setting as described above, when firmware upgrade code is run in upgrade procedure area, consolidating in main program area
Part code will not be run so that optical module remains at operating status during main program area operation early period, without influencing to communicate
Business is interrupted.
Further, since the upgrade procedure area independently of main program area is set so that the backup and firmware upgrade of operating parameter
The operation of code can be carried out at the same time, and the efficiency of optical module firmware upgrading is effectively improved with this.
Certainly, finish and then carry out firmware upgrade code in other embodiments or in operating parameter backup
Operation, the backup integrality of operating parameter is advantageously ensured that with this.
Step 350, jump to the main program area in memory block and run newer firmware code, pass through the operation of firmware code
The operating parameter of backup is loaded, with the operation of generation configuration state modulator optical module.
It is completed by running firmware upgrade code update in main program area after the firmware code that stores, optical module will be by
Upgrade procedure area jumps to main program area, and bring into operation newer firmware code.
Specifically, since the memory address of main program area usually starts at memory address 0 (storage address of firmware code),
Then redirecting by memory address, i.e., so that memory address is by memory address (the firmware upgrade code specified in upgrade procedure area
Storage address) jump directly to the memory address 0 of main program area, and then realize and restart identical function with optical module, i.e., by
Memory address 0 starts to perform code command backward successively, and the operation of newer firmware code is realized with this.
Further, by ensureing optical module not power down optical module is avoided to reinitialize, thus also avoids backing up
The loss of the operating parameter backed up in data field, therefore, when newer firmware code runs to parameter loading, optical module will be by
The operating parameter of backup is read in Backup Data area, for the operation of newer firmware code.
By being required when directly the operating parameter backed up before firmware upgrade is run as newer firmware code add
The parameter of load rather than by the use of the initiation parameter generated during optical mode initialization block as newer firmware code run when it is required
The parameter of loading, optical module can keep identical operating status before and after ensure that firmware upgrade with this, and then avoid communication
Business is interrupted.
After the loading of operating parameter of backup is completed, configuration parameter will be generated by continuing to run with newer firmware code,
And then can the firmware upgrade of optical module be completed with this by the operation of the configuration state modulator optical module.
Further, after the redirecting of main program area is completed, it is firmware liter that optical module, which can also judge that this is redirected,
Redirecting after redirecting after grade or electrification reset, judges whether to initialize optical module, and then ensures firmware liter with this
The accuracy of grade.
Wherein, realization can be identified by electrification reset by redirecting judgement, for example, when electrification reset mark is effective, represent light
Module has carried out electrification reset, and correspondingly, main program area redirects redirecting after being determined to be electrification reset.
By process as described above, do not restart optical module when realizing optical module firmware upgrading, avoid restarting process
The problem of communication service is caused to be interrupted, so as to effectively improve user experience.
Referring to Fig. 5, in one exemplary embodiment, before step 330, method as described above can also include following
Step:
Step 410, other requests not responded are judged whether according to default rule of response.
It should be appreciated that the more than firmware upgrade request of request that host is sent to optical module, can also be other requests, example
Such as, configuring request is changed.If optical module is responding other requests, it is likely that in time firmware upgrade can not be asked to carry out
Response.
Based on this, in the present embodiment, by pre-setting rule of response, to determine whether timely responding to the firmware received
Upgrade request.The default rule of response can be carried out according to the priority of request, can also according to receive time of request into
Row.
For example, it is to be carried out according to the priority of request to preset rule of response, and then is judged according to the priority of request
With the presence or absence of other requests not responded.Wherein, the priority of other requests not responded is asked higher than firmware upgrade.
If the highest priority of firmware upgrade request, as long as receiving firmware upgrade request, that is, 330 are entered step, it is right
Firmware upgrade request is responded.
If conversely, there are priority higher and do not responded other request, enter step 430, ignore what is received
Firmware upgrade is asked, that is, is not responding to the firmware upgrade received request, and other that preferential answering is not responded are asked.
It is asked at this point, host will constantly send firmware upgrade to optical module, until there is no do not responded in optical module
Other request when, the firmware upgrade of optical module can be carried out.
Step 430, other requests that response is not responded.
By process as described above, the reasonable response to firmware upgrade request is realized, not only avoid optical module while ring
The problem of answering a variety of different requests and causing treatment effeciency low effectively improves the treatment effeciency of optical module, and can
So that firmware upgrade asks to be timely responded to.
Referring to Fig. 6, in one exemplary embodiment, into default upgrade procedure area fortune in memory block in step 330
The step of row firmware upgrade code, may comprise steps of:
Step 331, into upgrade procedure area, firmware upgrade is obtained by the matching that firmware upgrade agreement is carried out with host and is referred to
Order.
Firmware upgrade functionality generally includes a firmware upgrade agreement, for carrying out firmware upgrade between host and optical module
The transmission of code.The firmware upgrade agreement can be defined by optical module manufacturer and be supplied to host manufacturer, be produced by host
Business is according to the firmware upgrade protocol development firmware upgrade functionality;Alternatively, it is defined by host manufacturer and optical module is supplied to produce
Business, according to the firmware upgrade agreement customized firmware upgrade function;Again alternatively, consulting firmware upgrade agreement by the two, so as to common
Make relevant firmware upgrade functionality.
In other words, which can be standard, for example, I2C basic communication protocols or nonstandard
Accurate, it is customized by manufacturer.As long as the firmware upgrade agreement can be completed to match between host and optical module, you can real
The transmission of existing firmware upgrade code.
Based on this, before the transmission of firmware upgrade code is carried out, the matching of firmware upgrade agreement will be carried out, and then passed through
Matching obtains the firmware upgrade instruction for carrying firmware upgrade code.
Specifically, while the operating parameter of optical module is backed up in response firmware upgrade request, optical module is also
The relevant information of firmware upgrade agreement can be sent to host, for example, the version number of firmware upgrade agreement, host should by receiving
The version number of firmware upgrade agreement carries out the matching of firmware upgrade agreement.If matching, will carry consolidating for firmware upgrade code
Part upgrade command is back to optical module, so that optical module instructs the download for completing firmware upgrade code according to the firmware upgrade.
Step 333, firmware upgrade code is extracted in being instructed by firmware upgrade, and is stored to upgrade procedure area.
Optical module is after firmware upgrade instruction is got, you can is sent to upgrade procedure area by wherein extracting to obtain host
Firmware upgrade code.
Further, after firmware upgrade code is obtained, optical module will carry out data verification to the firmware upgrade code,
Ensure the validity of its firmware upgrade code downloaded with this.
For example, data verification can by CRC32 verify realize, i.e., firmware upgrade code in a manner of data packet into
Row extraction, all bits in each data packet extracted carry out respectively mutually with if mutually with result and extracting most
All bits in the latter data packet are consistent, then it represents that data verification success, firmware upgrade code are downloaded successfully.Conversely,
Firmware upgrade code failed download abandons the firmware upgrade code that extraction obtains.
After data verification success, firmware upgrade code is stored to upgrade procedure area, for subsequently carrying out firmware
Firmware upgrade code is run during code update.
Step 335, the firmware upgrade code stored in upgrade procedure area is run.
Treat that firmware upgrade code storage finishes, you can start the operation of firmware upgrade code, realized with this to main program area
The update of the firmware code of middle storage, so that the firmware version of optical module upgrades to new version by legacy version, so as to fulfill
The firmware upgrade of optical module.Referring to Fig. 7, in one exemplary embodiment, pass through the fortune of the operation loading backup of firmware code
Row parameter, with before generating the step of operation for configuring state modulator optical module, method as described above can also include following
Step:
Step 510, judge that the firmware upgrade in memory block identifies whether effectively.
Wherein, firmware upgrade identifies to judge whether to carry out initially optical module afterwards in redirecting for completion main program area
Change, firmware upgrade mark is what is be configured according to the backup of operating parameter.
Specifically, if optical module is by responding firmware upgrade request and the backup for carrying out operating parameter, firmware upgrade
Mark is arranged to effective, conversely, firmware upgrade mark then is arranged to invalid.
Further, determine firmware upgrade mark it is effective when, that is, represent that jump to main program area be by firmware upgrade
Driving, then the operating parameter of the operation loading backup of firmware code is entered through, with generation configuration state modulator optical module
The step of operation.
Further, while the operating parameter of loading backup, it is invalid to be also identified as modification firmware upgrade, is kept away with this
Exempt from the generation that redirects subsequently with the main program area carried out during electrification reset to conflict.
Conversely, determine firmware upgrade mark it is invalid when, that is, represent that jump to main program area be by being replied by cable on optical module
Position driving, then by the initiation parameter generated during the operation loading optical mode initialization block of firmware code, with generation configuration ginseng
The operation of number control optical module.
Wherein, firmware upgrade mark can represent effective by setting the numerical value of register for 1, may be set to be numerical value
0 represents effective, alternatively, being exported by hardware pins, high pulse signal represents effectively or output low pulse signal represents
Effectively.
Further, as shown in fig. 7, in one exemplary embodiment, method as described above can also include following step
Suddenly:
Step 530, when firmware upgrade mark is invalid, generated when initializing optical module by the operation loading of firmware code
Initiation parameter, with generation configuration state modulator optical module operation.
Specifically, the initialization of optical module includes initializing the GPIO interface of optical module, and laser therein is driven
Dynamic chip reconfigures, to RAM areas initialization etc..
During optical mode initialization block, initiation parameter will be generated, which is stored in memory block
In FLASH areas, for the operation of follow-up firmware code.
After the initialization of optical module is completed, i.e., into the firmware stored in main program area and the main program area that brings into operation
Code.When firmware code runs to parameter loading, optical module will be completed initially by reading initiation parameter in FLASH areas
After the loading for changing parameter, configuration parameter will be generated by continuing to run with firmware code, and then can pass through the configuration state modulator light
The operation of module, so as to fulfill the communication between optical module and host, so that host can be carried out just by the optical module
Normal service communication.
It is noted that due to being generated when read loading parameter is optical mode initialization block when firmware code is run
Initiation parameter, and the operating parameter not backed up, therefore, the operating status of optical module can change, correspondingly, host profit
The communication service carried out with the optical module will be interrupted.
In other words, the setting identified by firmware upgrade, optical module are to be initialized when can know parameter loading
The loading for the operating parameter that the loading of parameter is still backed up judges whether to need the operating status for ensureing optical module not with this
It changes, is interrupted to avoid communication service.
By process as described above, on the premise of the redirecting of main program area is realized, avoid firmware upgrade and driven
Redirect and conflicted with each other with electrification reset redirecting of being driven, so as to improve the accuracy of firmware upgrade.
Fig. 8 is a kind of specific implementation schematic diagram of the method for optical module firmware upgrading in an application scenarios, in conjunction with Fig. 8 institutes
The method that the concrete application scene shown upgrades optical module firmware in the embodiment of the present disclosure is described.
When optical module needs to carry out firmware upgrade, for host by performing step 601, sending firmware upgrade to optical module please
It asks so that optical module receives firmware upgrade request, that is, performs step 602.
Before response firmware upgrade request, it will be judged whether to by performing step 603 according to default rule of response
The response of firmware upgrade request.If it has not, then return to step 602, continue the reception of firmware upgrade request.Conversely, if it has, then
Step 604 is performed, carries out the backup of the operating parameter of optical module.
Meanwhile by performing step 605, firmware upgrade mark is arranged to effective, in follow-up operation main program area
The judgement of optical mode initialization block is carried out during newer firmware code.
Parameter backup to be run finishes, then performs step 606 into upgrade procedure area, and pass through and perform step 607 by leading
Firmware upgrade instruction is obtained in machine, and then firmware upgrade code is extracted in being instructed by firmware upgrade and is stored.
After the firmware upgrade code operation being stored in upgrade procedure area finishes, the firmware code in main program area is
Update finishes, then jumps to main program area by performing step 608, newer firmware code in the main program area that brings into operation.
Judge that this redirects what is driven by firmware upgrade according to effective firmware upgrade mark is arranged to, then pass through execution
Step 609, the operating parameter in Backup Data area is read, loads what this read by the firmware code run in main program area
Operating parameter, at the same firmware upgrade mark is invalid by being effectively revised as.
Finally, by performing step 610, firmware code is continued to run with, with the operation of generation configuration state modulator optical module,
The firmware upgrade of optical module is completed with this.
In addition, after optical module is powered on or restarted, redirecting for main program area will be also carried out, and according to being arranged to nothing
The firmware upgrade mark of effect determines this and redirects what is driven by electrification reset, then loads optical mode by the operation of firmware code
With the operation of generation configuration state modulator optical module, optical module and master are realized with this for the initiation parameter generated during initialization block
Communication between machine, so that host can carry out normal communication service by the optical module.
In each embodiment of the disclosure, in the firmware upgrade process of optical module, it is not necessary to by plugging optical module in host, i.e.,
The restarting of optical module is avoided, ensures that communication service is not disrupted with this, user experience is effectively improved, especially in light
Module application no longer occurs to cause in large area user network due to the firmware upgrade of optical module when backbone grade network service
The failure that disconnected, communication service can not be normally carried out, so as to efficiently avoid the potential economic loss of user.
Following is embodiment of the present disclosure, can be used for performing the side of the optical module firmware upgrading involved by the disclosure
Method.For the details not disclosed in embodiment of the present disclosure, the side of the optical module firmware upgrading involved by the disclosure refer to
Method embodiment.
Referring to Fig. 9, in one exemplary embodiment, a kind of optical module 700 includes but not limited to:Request receiving module
710th, 730 and first firmware code of ask respond module operation module 750.
Wherein, the firmware upgrade request that request receiving module 710 sends for optical module receiving host.
Ask respond module 730 backs up the operating parameter of optical module for responding firmware upgrade request, and enters
Default upgrade procedure area operation firmware upgrade code in memory block.Firmware upgrade code is sent to upgrade procedure area by host.
First firmware code operation module 750 is used to jump to the operation of the main program area in memory block newer firmware generation
Code, by the operating parameter of the operation loading backup of firmware code, with the operation of generation configuration state modulator optical module.
In one exemplary embodiment, optical module 700 is further included but is not limited to:Ask judgment module.
Wherein, judgment module is asked to be used to judge whether other requests not responded according to default rule of response.
If being not present, ask respond module is notified.
Referring to Fig. 10, in one exemplary embodiment, ask respond module 730 includes but not limited to:Updating protocol
With unit 731, upgrade code storage unit 733 and upgrade code running unit 735.
Wherein, updating protocol matching unit 731 is used for into upgrade procedure area, by carrying out firmware upgrade agreement with host
Matching obtain firmware upgrade instruction.
Upgrade code storage unit 733 is used to extract firmware upgrade code in being instructed by firmware upgrade, and stores to upgrading
Program area.
Upgrade code running unit 735 is used to run the firmware upgrade code stored in upgrade procedure area.
1 is please referred to Fig.1, in one exemplary embodiment, optical module 700 is further included but is not limited to:Upgrading mark judges mould
Block 810.
Wherein, upgrading mark judgment module 810 is used to judge that the firmware upgrade in memory block identifies whether effectively.Firmware liter
Grade mark is being configured according to the backup of operating parameter.
If it is effective to determine firmware upgrade mark, the first firmware code is notified to run module 750.
Further, as shown in figure 11, in one exemplary embodiment, optical module 700 is further included but is not limited to:Second is solid
Part code runs module 830.
Wherein, if determine firmware upgrade mark it is invalid, notify the second firmware code run module 830.
Second firmware code operation module 830 is used for what is generated during the operation loading initialization optical module by firmware code
Initiation parameter, with the operation of generation configuration state modulator optical module.
It should be noted that the optical module that above-described embodiment is provided is when carrying out firmware upgrade, only with above-mentioned each function
The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application
Block is completed, i.e., the internal structure of optical module will be divided into different function modules, described above all or part of to complete
Function.
In addition, optical module and the embodiment of the method for optical module firmware upgrading that above-described embodiment is provided belong to same structure
Think, wherein modules perform the concrete mode operated and are described in detail in embodiment of the method, no longer superfluous herein
It states.
The preferable examples embodiment of the above, the only disclosure, the embodiment for being not intended to limit the disclosure, this
Field those of ordinary skill can very easily carry out corresponding flexible or repair according to the central scope and spirit of the disclosure
Change, therefore the protection domain of the disclosure should be subject to the protection domain required by claims.
Claims (10)
- A kind of 1. method of optical module firmware upgrading, which is characterized in that including:Receive firmware upgrade request;It responds the firmware upgrade request to back up the operating parameter of the optical module, and enters default liter in memory block Grade program area operation firmware upgrade code;It jumps to the main program area in the memory block and runs newer firmware code, loaded by the operation of the firmware code The operating parameter of backup, with the operation of optical module described in generation configuration state modulator.
- 2. the method as described in claim 1, which is characterized in that the memory block includes flash memory area and random access memory area, institute It states firmware upgrade code and firmware code is stored in the flash memory area, the operating parameter backup is in the random access memory area.
- 3. the method as described in claim 1, which is characterized in that the response firmware upgrade request is to the optical module Before the step of operating parameter is backed up, the method further includes:Other requests for judging whether not responded according to default rule of response;If being not present, the step backed up to the operating parameter of the optical module is asked into the response firmware upgrade Suddenly.
- 4. the method as described in claim 1, which is characterized in that described solid into default upgrade procedure area operation in memory block The step of part upgrade code, includes:Into the upgrade procedure area, firmware upgrade is obtained by the matching that firmware upgrade agreement is carried out with the host and is instructed;The firmware upgrade code is extracted in being instructed by the firmware upgrade, and is stored to the upgrade procedure area;Run the firmware upgrade code stored in the upgrade procedure area.
- 5. the method as described in claim 1, which is characterized in that the fortune of the operation loading backup by the firmware code Before the step of row parameter, the method further includes:Judge that the firmware upgrade in the memory block identifies whether effectively, the firmware upgrade mark is according to the standby of operating parameter What part was configured;When firmware upgrade mark is effective, into the operating parameter of the operation loading backup by the firmware code The step of.
- 6. method as claimed in claim 5, which is characterized in that the method further includes:When firmware upgrade mark is invalid, generated when initializing the optical module by the operation loading of the firmware code Initiation parameter, with generation configuration state modulator described in optical module operation.
- 7. a kind of optical module, which is characterized in that including:Request receiving module, for receiving firmware upgrade request;Ask respond module backs up the operating parameter of the optical module for responding the firmware upgrade request, goes forward side by side Enter default upgrade procedure area operation firmware upgrade code in memory block;First firmware code runs module, and newer firmware code is run for jumping to the main program area in the memory block, By the operating parameter of the operation loading backup of the firmware code, with the operation of optical module described in generation configuration state modulator.
- 8. optical module as claimed in claim 7, which is characterized in that the optical module further includes:Judgment module is asked, for other requests for judging whether not responded according to default rule of response;If being not present, the parameter backup module is notified.
- 9. optical module as claimed in claim 7, which is characterized in that the optical module further includes:Upgrading mark judgment module, for judging that the firmware upgrade in the memory block identifies whether effectively, the firmware upgrade Mark is configured according to the backup of operating parameter;If it is effective to determine the firmware upgrade mark, the first firmware code operation module is notified.
- 10. optical module as claimed in claim 9, which is characterized in that the optical module further includes:If it is invalid to determine the firmware upgrade mark, the second firmware code is notified to run module;Second firmware code runs module, when initializing the optical module for being loaded by the operation of the firmware code The initiation parameter of generation, with the operation of optical module described in generation configuration state modulator.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611044081.0A CN108108174A (en) | 2016-11-24 | 2016-11-24 | Optical module and its method of firmware upgrade |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611044081.0A CN108108174A (en) | 2016-11-24 | 2016-11-24 | Optical module and its method of firmware upgrade |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108108174A true CN108108174A (en) | 2018-06-01 |
Family
ID=62204861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611044081.0A Withdrawn CN108108174A (en) | 2016-11-24 | 2016-11-24 | Optical module and its method of firmware upgrade |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108108174A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110609763A (en) * | 2018-06-15 | 2019-12-24 | 伊姆西Ip控股有限责任公司 | Method, electronic device and computer program product for managing and executing data backup jobs |
CN112256596A (en) * | 2020-10-23 | 2021-01-22 | 英业达科技有限公司 | Method for refreshing signal repeater in electronic device firmware |
CN112379901A (en) * | 2020-11-04 | 2021-02-19 | 深圳市科信通信技术股份有限公司 | Singlechip firmware upgrading method and device, computer equipment and storage medium |
CN112567338A (en) * | 2018-08-10 | 2021-03-26 | 株式会社电装 | Electronic control device, electronic control system for vehicle, active execution control method, and active execution control program |
CN112836230A (en) * | 2021-03-02 | 2021-05-25 | 北京睿芯高通量科技有限公司 | Mirror image encryption method and system in industrial router |
CN113377392A (en) * | 2020-03-09 | 2021-09-10 | 瑞昱半导体股份有限公司 | System capable of upgrading firmware in background and method for upgrading firmware in background |
CN113641378A (en) * | 2021-07-13 | 2021-11-12 | 烽火通信科技股份有限公司 | Optical module program upgrading method, device, equipment and readable storage medium |
CN113672246A (en) * | 2021-08-27 | 2021-11-19 | 广东九联科技股份有限公司 | Optical module upgrading device, system and method |
CN114466260A (en) * | 2020-11-10 | 2022-05-10 | 青岛海信宽带多媒体技术有限公司 | Optical module upgrading method and optical module |
WO2023071384A1 (en) * | 2021-10-28 | 2023-05-04 | 青岛海信宽带多媒体技术有限公司 | Optical module and upgrading method therefor |
CN117785248A (en) * | 2024-02-28 | 2024-03-29 | 上海励驰半导体有限公司 | Registration method and device of key variables in program upgrading, storage medium and chip |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101004691A (en) * | 2007-01-23 | 2007-07-25 | 北京映翰通网络技术有限公司 | Method and device for updating firmware program |
US9078054B2 (en) * | 2012-10-15 | 2015-07-07 | Sumitomo Electric Industries, Ltd. | Optical module used in optical communication systems, method of updating firmware of optical module used in optical communication systems, and trouble tracing system |
CN105988851A (en) * | 2015-05-15 | 2016-10-05 | 乐视致新电子科技(天津)有限公司 | Terminal setting method and device |
CN106095480A (en) * | 2016-05-31 | 2016-11-09 | 青岛海信宽带多媒体技术有限公司 | A kind of method and device of optical module firmware upgrading |
-
2016
- 2016-11-24 CN CN201611044081.0A patent/CN108108174A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101004691A (en) * | 2007-01-23 | 2007-07-25 | 北京映翰通网络技术有限公司 | Method and device for updating firmware program |
US9078054B2 (en) * | 2012-10-15 | 2015-07-07 | Sumitomo Electric Industries, Ltd. | Optical module used in optical communication systems, method of updating firmware of optical module used in optical communication systems, and trouble tracing system |
CN105988851A (en) * | 2015-05-15 | 2016-10-05 | 乐视致新电子科技(天津)有限公司 | Terminal setting method and device |
CN106095480A (en) * | 2016-05-31 | 2016-11-09 | 青岛海信宽带多媒体技术有限公司 | A kind of method and device of optical module firmware upgrading |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110609763A (en) * | 2018-06-15 | 2019-12-24 | 伊姆西Ip控股有限责任公司 | Method, electronic device and computer program product for managing and executing data backup jobs |
CN110609763B (en) * | 2018-06-15 | 2023-05-05 | 伊姆西Ip控股有限责任公司 | Method, electronic device, and computer-readable medium for managing and executing data backup jobs |
CN112567338A (en) * | 2018-08-10 | 2021-03-26 | 株式会社电装 | Electronic control device, electronic control system for vehicle, active execution control method, and active execution control program |
CN113377392B (en) * | 2020-03-09 | 2024-03-29 | 瑞昱半导体股份有限公司 | System capable of updating firmware in background and method for updating firmware in background |
CN113377392A (en) * | 2020-03-09 | 2021-09-10 | 瑞昱半导体股份有限公司 | System capable of upgrading firmware in background and method for upgrading firmware in background |
CN112256596B (en) * | 2020-10-23 | 2022-07-05 | 英业达科技有限公司 | Method for refreshing signal repeater in electronic device firmware |
CN112256596A (en) * | 2020-10-23 | 2021-01-22 | 英业达科技有限公司 | Method for refreshing signal repeater in electronic device firmware |
CN112379901A (en) * | 2020-11-04 | 2021-02-19 | 深圳市科信通信技术股份有限公司 | Singlechip firmware upgrading method and device, computer equipment and storage medium |
CN114466260B (en) * | 2020-11-10 | 2023-11-03 | 青岛海信宽带多媒体技术有限公司 | Optical module upgrading method and optical module |
CN114466260A (en) * | 2020-11-10 | 2022-05-10 | 青岛海信宽带多媒体技术有限公司 | Optical module upgrading method and optical module |
CN112836230A (en) * | 2021-03-02 | 2021-05-25 | 北京睿芯高通量科技有限公司 | Mirror image encryption method and system in industrial router |
CN112836230B (en) * | 2021-03-02 | 2024-05-03 | 北京中科通量科技有限公司 | Mirror image encryption method and system in industrial router |
CN113641378A (en) * | 2021-07-13 | 2021-11-12 | 烽火通信科技股份有限公司 | Optical module program upgrading method, device, equipment and readable storage medium |
CN113641378B (en) * | 2021-07-13 | 2024-01-26 | 烽火通信科技股份有限公司 | Optical module program upgrading method, device, equipment and readable storage medium |
CN113672246A (en) * | 2021-08-27 | 2021-11-19 | 广东九联科技股份有限公司 | Optical module upgrading device, system and method |
WO2023071384A1 (en) * | 2021-10-28 | 2023-05-04 | 青岛海信宽带多媒体技术有限公司 | Optical module and upgrading method therefor |
CN117785248A (en) * | 2024-02-28 | 2024-03-29 | 上海励驰半导体有限公司 | Registration method and device of key variables in program upgrading, storage medium and chip |
CN117785248B (en) * | 2024-02-28 | 2024-05-24 | 上海励驰半导体有限公司 | Registration method and device of key variables in program upgrading, storage medium and chip |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108174A (en) | Optical module and its method of firmware upgrade | |
CN104579719B (en) | A kind of upgrade method and system, host computer and optical module of firmware | |
CN105071948B (en) | The automatic deployment method and device of a kind of access switch | |
CN106201563A (en) | The method and apparatus that the collocation method of start-up parameter and device, mainboard start | |
CN101622600A (en) | Boot negotiation between a plurality of equipment with guidance capability | |
CN112328440B (en) | Hard disk physical position determining method and device | |
CN106612192A (en) | An equipment upgrading method, apparatus and system | |
CN110427385A (en) | Block chain data-updating method, interdependent node and block chain | |
WO2011088701A1 (en) | Method and device for online upgrading cross-platform version | |
CN108804117A (en) | The method and system of hard disk is updated by Management Controller | |
CN103024782A (en) | Base station software version management method and system | |
CN102880478B (en) | Oftware updating method | |
CN101388792B (en) | Single board plug-and-use processing method, device and telecommunication system | |
WO2022199335A1 (en) | Method, apparatus and device for controlling firmware upgrade of server component, and storage medium | |
CN114995852A (en) | Equipment upgrading method, equipment and computer readable storage medium | |
CN104158709A (en) | Optical module identification method and port extender | |
CN114035831A (en) | CPLD upgrading method, system and computer readable storage medium | |
WO2011158367A1 (en) | Technology for updating active program | |
US10007529B2 (en) | Data terminal running mode switching method, device, and data terminal | |
CN109376072A (en) | Application development method and apparatus based on third party's Component Gallery | |
CN112423068A (en) | Smart television debugging method and device, mobile terminal and readable storage medium | |
CN110474891A (en) | Business access control method and device based on multisystem smart machine | |
CN118276887A (en) | Set top box cross-system upgrading method and device, set top box and storage medium | |
CN105760193B (en) | A kind of production method and device | |
CN105760389A (en) | Equipment upgrading method and transport network equipment |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180601 |
|
WW01 | Invention patent application withdrawn after publication |