CN108958765A - Upgrade the method and device of optical module firmware - Google Patents
Upgrade the method and device of optical module firmware Download PDFInfo
- Publication number
- CN108958765A CN108958765A CN201810601600.1A CN201810601600A CN108958765A CN 108958765 A CN108958765 A CN 108958765A CN 201810601600 A CN201810601600 A CN 201810601600A CN 108958765 A CN108958765 A CN 108958765A
- Authority
- CN
- China
- Prior art keywords
- optical module
- firmware
- communication equipment
- information
- upgrading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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)
- Optical Communication System (AREA)
Abstract
The application provides a kind of method and device for upgrading optical module firmware.The described method includes: the communication equipment obtains the first version information of the optical module firmware when detecting optical module insertion;Second edition information and the first version information of the communication equipment according to pre-stored optical module firmware, determine whether the optical module firmware is scalable optical module firmware;If it is determined that the optical module firmware is scalable optical module firmware, then the communication equipment obtains the optical module firmware upgrade package of the second edition information instruction;The communication equipment sends the optical module firmware upgrade package to the optical module, carries out the optical module firmware upgrading for the optical module.In this way, optical module firmware upgrading efficiency can be promoted.
Description
Technical field
This application involves optical module technical fields, in particular to a kind of method and device for upgrading optical module firmware.
Background technique
Optical module (English: optical module) is made of, photoelectron opto-electronic device, functional circuit and optical interface etc.
Device includes transmitting terminal and receiving end.The effect of optical module is photoelectric conversion, and transmitting terminal converts electrical signals into optical signal, is passed through
After optical fiber transmission, optical signal is converted into electric signal again by receiving end.
Optical module further include have for handling transmitting-receiving control, the functions such as parameter diagnosis central processing unit (it is English:
Central Processing Unit, referred to as: CPU) and the storage medium of storing data, and on non-volatile memory medium
Solidify the optical module firmware (English: Firmware) having for controlling and coordinating optical module function.Thus, optical module is equivalent to one
Complete small operating system.Wherein, optical module firmware is solidificated in erasable read-only memory (English: Eraseable Read Only
Memory, referred to as: EROM) or electricallyerasable ROM (EEROM) (English: Electrically Erasable
ProgrammableRead Only Memory, referred to as: EEPROM) on.After optical module powers on, on CPU load store medium
Optical module firmware and run the firmware of load, to realize the control and coordination to optical module function.
Optical module firmware in use, need to carry out not timing upgrading with make corrections some defects existing for it and into
Row function renewal.Currently, for C package pluggable (English: C Form-factor Pluggable, abbreviation: CFP)/CFP2/
CFP4 optical module, optical module communication standard can support the online upgrading of optical module firmware.But for Small Form-Factor Pluggable (English
Text: Small Form-factor Pluggables, referred to as: SFP)/SFP+/four-way Small Form-Factor Pluggable (English: Quad
Small Form-factor Pluggables, referred to as: QSFP) QSFP+/QSFP28/CXP optical module etc., optical module communication mark
It is quasi- not support online upgrading also at present.
Thus, such optical module firmware is upgraded, needs to pull away such optical module from communication equipment, send to optical module
Manufacturer, and special equipment is utilized, optical module firmware upgrading is carried out in conjunction with the communication equipment information of insertion, in optical module firmware
After the completion of upgrading, then turn back to communication equipment.But the optical module firmware upgrade method needs manually to participate in maintenance, causes to upgrade institute
The time needed is longer, upgrades low efficiency.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of method and device for upgrading optical module firmware, solves optical mode
The lower technical problem of block firmware upgrade efficiency.
In a first aspect, the embodiment of the present application provides a kind of method for upgrading optical module firmware, the method is applied to logical
Believe equipment, which comprises
When detecting optical module insertion, the communication equipment obtains the first version information of the optical module firmware;
The communication equipment determines the light according to pre-stored second edition information and the first version information
Whether module firmware is scalable optical module firmware;
If it is determined that the optical module firmware is scalable optical module firmware, then the communication equipment obtains the second edition
The optical module firmware upgrade package of information instruction;
The communication equipment sends the optical module firmware upgrade package to the optical module, carries out institute for the optical module
State optical module firmware upgrading.
With reference to first aspect, in the first possible implementation, the communication equipment is according to pre-stored second
Version information and the first version information determine whether the optical module firmware is scalable optical module firmware, comprising:
The communication equipment compares second edition information and the first version information;
If the firmware version of the second edition information instruction is higher than the firmware version of first version information instruction,
The communication equipment determines that the optical module firmware is scalable optical module firmware;
If the firmware version of the second edition information instruction is not higher than the firmware version of first version information instruction,
Then the communication equipment determines that the optical module firmware is non-upgrading optical module firmware.
With reference to first aspect, in the second possible implementation, the communication equipment obtains the optical module firmware
First version information after, further includes:
The communication equipment obtains the optical module characteristic information of the optical module and the communication equipment of the communication equipment
Information;
According to the communication equipment information, optical module characteristic information, from the second edition of pre-stored optical module firmware
In information, the second edition information to match with the communication equipment information and optical module characteristic information is obtained.
With reference to first aspect, the possible implementation of the first of first aspect or second of possible implementation,
In the third possible implementation, the communication equipment sends the optical module firmware upgrade package to the optical module, comprising:
The upgrade command made an appointment with the optical module is written into optical module the communication equipment, for described
The optical module firmware upgrade package is written to the firmware storage media of the optical module optical module, and in the optical module next time
When starting, the optical module firmware upgrade package in the firmware storage media is written in load.
The third possible implementation with reference to first aspect, in the fourth possible implementation, the communication
Equipment obtains the first version information of the optical module firmware, comprising:
The communication equipment obtains the first version information from the first predeterminable area of the optical module, and described first
Predeterminable area is the first area for retaining register in the optical module;
The upgrade command made an appointment with the optical module is written into optical module the communication equipment, comprising:
The communication equipment upgrade command made an appointment with the optical module is written second pre- to the optical module
If in region, second predeterminable area is the second area for retaining register in the optical module;
The optical module firmware upgrade package is written into optical module the communication equipment, comprising:
The communication equipment passes through the integrated circuit interface of the communication equipment, and the optical module firmware upgrade package is written
Into the third predeterminable area of the optical module, the third predeterminable area is the third area for retaining register in the optical module
Domain.
In second aspect, the embodiment of the present application provides a kind of method for upgrading optical module firmware, and the method is applied to light
Module has stored the first version information of optical module firmware in the first predeterminable area of the optical module, and the optical module is inserted
Enter to communication equipment, which comprises
The optical module receives the optical module firmware upgrade package that the communication equipment is sent, the optical module firmware upgrade package
It is the communication equipment according to the first version information, determines the optical module firmware to send out after scalable optical module firmware
It send;
According to the optical module firmware upgrade package, the optical module carries out the optical module firmware upgrading.
In conjunction with second aspect, in the first possible implementation, the optical mode for receiving the communication equipment and sending
Before block firmware upgrade packet, further includes:
The optical module receives the upgrade command that the communication equipment is sent;
According to the upgrade command, upgrading flag bit, the upgrading mark is arranged in the optical module in the reserved area
Position is known for sending the optical module firmware upgrade package when communication equipment being made to detect the upgrading marker.
In conjunction with second aspect, in the second possible implementation, the optical module receives the communication equipment and sends
Upgrade command, comprising:
Second predeterminable area of optical module described in the optical module periodicity poll;
From second predeterminable area, the optical module obtains the upgrade command of the communication equipment write-in;
The optical module receives the optical module firmware upgrade package that the communication equipment is sent, comprising:
From the third predeterminable area of the optical module, the optical module obtains the optical mode of the communication equipment write-in
Block firmware upgrade packet.
It is in the third possible implementation, described according to the optical module firmware upgrade package, institute in conjunction with second aspect
It states optical module and carries out the optical module firmware upgrading, comprising:
Firmware storage media in the optical module is written in the optical module firmware upgrade package by the optical module;
When the firmware storage media all is written in the optical module firmware upgrade package, optical mode is arranged in the optical module
Block firmware upgrade mark;
When optical module next time starting, upgrade according to the optical module firmware and identify, load is written the firmware and deposits
The optical module firmware upgrade package in storage media.
In conjunction with second aspect, second aspect the first possible implementation into the third possible implementation
Any possible implementation, in the fourth possible implementation, the predeterminable area are to retain in the optical module
Region in register;
The first version information is stored in the first area for retaining register;
The upgrade command is stored in the second area for retaining register;
The optical module firmware upgrade package is stored in the third region for retaining register.
In the third aspect, the embodiment of the present application provides a kind of device for upgrading optical module firmware, and described device includes:
Version read module, when detecting optical module insertion, to obtain the first version letter of the optical module firmware
Breath;
Upgrade status determining module is used for according to pre-stored second edition information and the first version information,
Determine whether the optical module firmware is scalable optical module firmware;
Upgrade indicating module, however, it is determined that the optical module firmware is scalable optical module firmware, obtains the second edition
The optical module firmware upgrade package of information instruction sends the optical module firmware upgrade package to the optical module, is used for the optical mode
Block carries out the optical module firmware upgrading.
In conjunction with the third aspect, in the first possible implementation, the upgrade status determining module is specifically used for:
Compare the second edition information and the first version information;
If the firmware version of the second edition information instruction is higher than the firmware version of first version information instruction,
Determine that the optical module firmware is scalable optical module firmware;
If the firmware version of the second edition information instruction is not higher than the firmware version of first version information instruction,
Then determine that the optical module firmware is non-upgrading optical module firmware.
In conjunction with the third aspect, in the second possible implementation, the first version letter of the optical module firmware is obtained
After breath, further includes:
Obtain the optical module characteristic information of the optical module and the communication equipment information of the communication equipment;
According to the communication equipment information, optical module characteristic information, from the second edition of pre-stored optical module firmware
In information, the second edition information to match with the communication equipment information and optical module characteristic information is obtained.
In conjunction with the first possible implementation or second of possible implementation of the third aspect, the third aspect,
In the third possible implementation, the upgrading indicating module is specifically used for:
The upgrade command made an appointment with the optical module is written into optical module;
When detecting the upgrading flag bit that the optical module is arranged according to the upgrade command, by the optical module firmware
Upgrade package is written into optical module, the optical module firmware upgrade package to be written to the optical module for the optical module
Firmware storage media, and in optical module next time starting, load the optical module firmware upgrading in the firmware storage media
Packet.
In conjunction with the third possible implementation of the third aspect, in the fourth possible implementation, described in acquisition
The first version information of optical module firmware, comprising:
The first version information is obtained from the first predeterminable area of the optical module, first predeterminable area is institute
State the first area for retaining register in optical module;
The upgrade command made an appointment with the optical module is written into optical module, comprising:
The upgrade command made an appointment with the optical module is written into the second predeterminable area of the optical module, it is described
Second predeterminable area is the second area for retaining register in the optical module;
The optical module firmware upgrade package is written into optical module, comprising:
By the integrated circuit interface of the communication equipment, the optical module firmware upgrade package is written to the optical module
Third predeterminable area in, the third predeterminable area be the optical module in retain register third region.
In fourth aspect, the embodiment of the present application provides a kind of device for upgrading optical module firmware, and the first of described device is pre-
If having stored the first version information of optical module firmware in region, and described device is inserted into communication equipment, described device includes:
Upgrade package obtains module, the optical module firmware upgrade package sent for receiving the communication equipment, the optical module
Firmware upgrade packet is the communication equipment according to the first version information, determines that the optical module firmware is scalable optical module
It is sent after firmware;
Upgraded module, for carrying out the optical module firmware upgrading according to the optical module firmware upgrade package.
In conjunction with fourth aspect, in the first possible implementation, described device further include:
Flag bit setup module, the upgrade command sent for receiving the communication equipment;
According to the upgrade command, the setting upgrading flag bit in the reserved area, the upgrading marker is for making
When the communication equipment detects the upgrading marker, the optical module firmware upgrade package is sent.
In conjunction with the first possible implementation of fourth aspect, in the second possible implementation, the reception
The upgrade command that the communication equipment is sent, comprising:
Second predeterminable area of optical module described in the optical module periodicity poll;
From second predeterminable area, the optical module obtains the upgrade command of the communication equipment write-in;
The optical module receives the optical module firmware upgrade package that the communication equipment is sent, comprising:
From the third predeterminable area of the optical module, the optical module obtains the optical mode of the communication equipment write-in
Block firmware upgrade packet.
In conjunction with fourth aspect, in the third possible implementation, the upgraded module is specifically used for:
Firmware storage media is written into the optical module firmware upgrade package;
When the firmware storage media all is written in the optical module firmware upgrade package, setting optical module firmware upgrades
Mark;
When starting next time, upgrade according to the optical module firmware and identify, load is written in the firmware storage media
The optical module firmware upgrade package.
In conjunction with fourth aspect, fourth aspect the first possible implementation into the third possible implementation
Any possible implementation, in the fourth possible implementation, the predeterminable area are to retain in the optical module
Region in register;
The first version information is stored in the first area for retaining register;
The upgrade command is stored in the second area for retaining register;
The optical module firmware upgrade package is stored in the third region for retaining register.
At the 5th aspect, the embodiment of the present application provides a kind of computer equipment and includes memory, processor and be stored in institute
The computer program that can be run on memory and on the processor is stated, the processor executes real when the computer program
The step of showing above-mentioned method.
At the 6th aspect, the embodiment of the present application provides a kind of computer readable storage medium, described computer-readable to deposit
Computer program is stored on storage media, the computer program executes above-mentioned method when being run by processor the step of.
In terms of existing technologies, the application has the advantages that
The method and device of upgrading optical module firmware provided by the present application, when communication equipment detects optical module insertion,
The first version information of communication module acquisition optical module firmware.Communication module is by first version information and the pre-stored second edition
This information is compared.After determining that optical module firmware is scalable optical module firmware, the light of second edition information instruction is obtained
Module firmware upgrade package is simultaneously sent to optical module, so that optical module carries out optical module firmware.
In this way, negotiating upgrading using interaction between optical module and communication equipment, without setting to optical module structure and communication
Standby structure is modified, and there are no need to pull away optical module and send to optical module manufacturer to be upgraded.Shorten optical module firmware
Time needed for upgrading can effectively promote optical module firmware upgrading efficiency.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the method flow schematic diagram of upgrading optical module firmware provided by the embodiments of the present application;
Fig. 2 is one of the sub-step flow diagram of step 102 shown in Fig. 1;
Fig. 3 is one of the sub-step flow diagram after step 101 shown in Fig. 1;
Fig. 4 is one of the sub-step flow diagram of step 104 shown in Fig. 1;
Fig. 5 is another flow diagram of method of upgrading optical module firmware provided by the embodiments of the present application;
Fig. 6 is the another flow diagram of method of upgrading optical module firmware provided by the embodiments of the present application;
Fig. 7 is the apparatus structure schematic diagram of upgrading optical module firmware provided by the embodiments of the present application;
Fig. 8 is another structural schematic diagram of device of upgrading optical module firmware provided by the embodiments of the present application;
Fig. 9 is the structural schematic diagram of computer equipment provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed
Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one
Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary
It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition
State the concrete meaning of term in this application.
Embodiment one
Fig. 1 is the method flow schematic diagram of upgrading optical module firmware provided by the embodiments of the present application.The method is applied to
Communication equipment, as shown in Figure 1, the process includes:
Step 101, when detecting optical module insertion, the communication equipment obtains the first version of the optical module firmware
Information;
In the embodiment of the present application, the interface that can be connect with optical module in communication equipment periodicity poll itself, when detecting
When interface level changes, for example, interface level is jumped by " 0 " to " 1 ", communication equipment determines that optical module is inserted into interface.Communication
Equipment is scanned optical module, obtains the first version information of optical module firmware.
It should be noted that in the embodiment of the present application, optical module, can be by the firmware of itself before being inserted into communication equipment
Version information is written into register.Communication equipment obtains optical module firmware when being scanned to optical module from register
First version information.
Step 102, the communication equipment is according to the second edition information of pre-stored optical module firmware and described
One version information determines whether the optical module firmware is scalable optical module firmware;
In the embodiment of the present application, the second edition information of a variety of optical module firmwares can be formerly stored in a communications device.
Communication equipment gets the consistent light of optical module with insertion from the second edition information of a variety of optical module firmwares
The second edition information of module firmware.
The second edition information that communication equipment will acquire is compared with first version information, solid with the determination optical module
Whether part is scalable optical module firmware.
Step 103, however, it is determined that the optical module firmware is scalable optical module firmware, then described in the communication equipment acquisition
The optical module firmware upgrade package of second edition information instruction;
In the embodiment of the present application, communication equipment formerly stores the corresponding optical module firmware upgrading of each second edition information
Packet.According to the description of step 102, communication equipment obtains the optical module firmware of the second edition information obtained in step 102 instruction
Upgrade package.
It is understood that communication equipment also produces optical module firmware upgrade package.In one embodiment, communication is set
It is standby formerly store be the corresponding optical module firmware upgrading of each second edition information file.Communication equipment obtains step 102
The file of the optical module firmware upgrading of middle second edition information instruction, this document is specially binary data.Communication equipment is by two
Binary data compresses binary data according to the compressed format arranged with optical module, generates optical module firmware upgrade package.
Step 104, the communication equipment send the optical module firmware upgrade package to the optical module, are used for the optical mode
Block carries out the optical module firmware upgrading.
In the embodiment of the present application, communication equipment is if it is determined that optical module firmware needs to upgrade, i.e., optical module firmware is that can rise
Grade optical module firmware.The corresponding optical module firmware upgrade package of pre-stored second edition information is then sent to optical module, with
Upgrading processing is carried out for optical module.
In the embodiment of the present application, when communication equipment detects optical module insertion, communication module obtains optical module firmware
First version information.First version information is compared by communication module with pre-stored second edition information.Determining light
Module firmware is simultaneously sent to light after scalable optical module firmware, to obtain the optical module firmware upgrade package of second edition information instruction
Module, so that optical module carries out optical module firmware.
In this way, being believed by the first version information for the optical module firmware for obtaining optical module with the pre-stored second edition
Breath is compared formulates a kind of scheme upgraded automatically between communication equipment.Due to without pulling away optical module from communication equipment
And give to optical module manufacturer and upgraded, the time needed for substantially reducing optical module firmware upgrading, effectively improve light
Module firmware upgrades efficiency, enhances the real-time of optical module firmware upgrading.
Further, without being modified to optical module structure and communication apparatus construction, improve communication equipment can
Maintainability, and without cost additional on hardware.
Embodiment two
Fig. 2 is one of the sub-step flow diagram of step 102 shown in Fig. 1.As shown in Fig. 2, the process includes:
Step 201, the communication equipment second edition information and the first version information;
In the embodiment of the present application, communication equipment extracts the second edition information of storage.As an alternative embodiment, version
Information is identified with version number.In the embodiment of the present application, second edition information representation optical module firmware can be upgraded to most
New optical module firmware upgrade package.
Step 202, if the firmware version of second edition information instruction is higher than consolidating for first version information instruction
Part version, then the communication equipment determines that the optical module firmware is scalable optical module firmware;If the second edition information
The firmware version of instruction is not higher than the firmware version of first version information instruction, then the communication equipment determines the optical mode
Block firmware is non-upgrading optical module firmware.
In the embodiment of the present application, if version number is higher, indicate that the corresponding optical module firmware upgrade package of the version number is newer.Example
Such as, if the second edition information extracted is V1.2.3, the first version information obtained is V1.1.8, since V1.2.3 is higher than
V1.1.8, confirmation optical module firmware are scalable optical module firmware.
Embodiment three
Fig. 3 is one of the sub-step flow diagram after step 101 shown in Fig. 1.As shown in figure 3, being set in the communication
After the standby first version information for obtaining the optical module firmware, which includes:
Step 301, the communication equipment obtains the optical module characteristic information and the communication equipment of the optical module
Communication equipment information;
In the embodiment of the present application, as an alternative embodiment, communication equipment information is used to characterize different type or feature
Communication equipment.Optical module characteristic information includes one of following information or any combination: optical module sequence number, optical module class
Type, optical mode block identification etc..Wherein, optical mode block type can be SFP, SFP+, SFP28 (25G module), QSFP, QSFP+,
QSFP28, CXP etc..
Different types of optical module, corresponding optical module firmware version may be different.
Step 302, according to the communication equipment information, optical module characteristic information, from pre-stored optical module firmware
In second edition information, the second edition information to match with the communication equipment information and optical module characteristic information is obtained.
In the embodiment of the present application, the optical module of different characteristic information, the optical module firmware upgrade package that can be supported may phase
Together, it is also possible to not identical.
Thus, as another alternative embodiment, communication equipment can include that communication equipment is believed by inquiring pre-stored
The mapping relations of breath, optical module characteristic information and second edition information, the communication equipment information obtained and optical mode block feature
The second edition information of information MAP.
Wherein, long-range optical module firmware upgrade server obtains support or compatibility should after issuing second edition information
The communication equipment information and optical module characteristic information of the second edition information of publication, building communication equipment information, optical module are special
The mapping relations of reference breath, second edition information and optical module firmware upgrade package, and the mapping relations of building are issued to each lead to
Believe equipment.After communication equipment receives mapping relations, the mapping relations are stored.
Wherein, as an alternative embodiment, mapping relations can be to use forms mode.Table 1 is the embodiment of the present application
Mapping relations schematic table.
Table 1
In the embodiment of the present application, according to current communication devices information, for example, communication equipment version querying mapping relations, obtain
To current communication devices information MAP comprising optical module characteristic information, second edition information and optical module firmware upgrade package the
Two mapping relations.Again according to the optical module characteristic information obtained, the second mapping relations are inquired, the optical mode block feature letter obtained
Cease the second edition information of mapping.In mapping relations, second edition information and optical module firmware upgrade package are to map one by one.
In the embodiment of the present application, if the firmware version of obtained second edition information instruction is indicated higher than first version information
Firmware version, determine the optical module firmware be scalable optical module firmware, if obtain the second edition information instruction consolidate
Part version is not higher than the firmware version of first version information instruction, determines that the optical module firmware is non-upgrading optical module firmware.
Example IV
In the embodiment of the present application, as an alternative embodiment, the communication equipment obtains the first of the optical module firmware
Version information, comprising:
The communication equipment obtains the first version information from the first predeterminable area of the optical module, and described first
Predeterminable area is the first area for retaining register in the optical module;
The upgrade command made an appointment with the optical module is written into optical module the communication equipment, comprising:
The communication equipment upgrade command made an appointment with the optical module is written second pre- to the optical module
If in region, second predeterminable area is the second area for retaining register in the optical module;
The optical module firmware upgrade package is written into optical module the communication equipment, comprising:
The communication equipment passes through the integrated circuit interface of the communication equipment, and the optical module firmware upgrade package is written
Into the third predeterminable area of the optical module, the third predeterminable area is the third area for retaining register in the optical module
Domain.
It is understood that retaining register in the embodiment of the present application, in optical module can be one or more, it is above-mentioned
Three regions can be in a reservation register, can also be in different reservation registers, and the embodiment of the present application is not done
It limits.
Embodiment five
Fig. 4 is one of the sub-step flow diagram of step 104 shown in Fig. 1.As shown in figure 4, the process includes:
Step 401, the upgrade command made an appointment with the optical module is written into optical module the communication equipment;
In the embodiment of the present application, communication equipment determine optical module firmware need upgrade after, with optical module interact with
The state of both sides is determined, to complete upgrading when both sides are in operating status.
As an alternative embodiment, such as the description in example IV, the upgrade command made an appointment is written communication equipment
Into the second predeterminable area of optical module, the second predeterminable area is the second area for retaining register in optical module.
As an alternative embodiment, upgrade command is the N byte data made an appointment.As another alternative embodiment, lead to
Equipment is believed by internal integrated circuit (English: InterIntegrated Circuit, abbreviation: I2C) interface, by N byte data
Write the second area of the reservation register in optical module.
Step 402, the communication equipment detects the upgrading flag bit that the optical module is arranged according to the upgrade command;
In the embodiment of the present application, optical module detects the second area for retaining register according to pre-set polling cycle,
If detecting upgrade command, upgrading flag bit is set for the upgrade command, to show that optical module is ready for optical module
Firmware upgrade.The second predeterminable area of optical module described in the communication equipment poll, if in the second predeterminable area of the optical module
Upgrade command is provided with upgrading flag bit, executes subsequent step.
In the embodiment of the present application, step 401 and step 402 user communication device are interacted with optical module and are handled each other with confirming
The operating status that can upgrade.Step 401 and step 402 are optional step.In practical application, communication equipment is to the optical module
Step 403 can directly be executed by sending the optical module firmware upgrade package.
Step 403, when the communication equipment detects the upgrading mark that the optical module is arranged according to the upgrade command
When position, the optical module firmware upgrade package is written into optical module the communication equipment, is used for the optical module for the light
Module firmware upgrade package is written to the firmware storage media of the optical module, and in optical module next time starting, loads institute
State the optical module firmware upgrade package in firmware storage media.
In the embodiment of the present application, such as the description of example IV, communication equipment end reads upgrading flag bit, then passes through I2C
Interface, by optical module firmware upgrade package (for example, binary data packets) that second edition information indicates according to the data appointed
Optical module third predeterminable area is written in packet format, and third predeterminable area is the third region for retaining register in optical module.
In the embodiment of the present application, as an alternative embodiment, after optical module third predeterminable area is write completely, optical module
CPU reads the data being written in optical module third predeterminable area, is written in internal firmware storage media, until optical module
Firmware storage media is all written in firmware upgrade packet.
In the embodiment of the present application, optical module is after by optical module firmware upgrade package all write-in firmware storage media, pre-
If position is arranged optical module firmware and upgrades mark.In this way, the optical module firmware liter when optical module in starting next time, according to setting
Grade mark, the optical module firmware upgrade package in the firmware storage media is written in load, to complete the upgrading of optical module firmware.
Embodiment six
Fig. 5 is another flow diagram of method of upgrading optical module firmware provided by the embodiments of the present application.The method is answered
For optical module, the first version information of optical module firmware, and the light have been stored in the first predeterminable area of the optical module
Module is inserted into communication equipment, as shown in figure 5, the process includes:
Step 501, the optical module receives the optical module firmware upgrade package that the communication equipment is sent, and the optical module is solid
Part upgrade package is the communication equipment according to the first version information, determines that the optical module firmware is solid for scalable optical module
It is sent after part;
In the embodiment of the present application, communication equipment determine optical module firmware be scalable optical module firmware after, under optical module
Upgrade command is sent out, and by the interaction with optical module, optical module firmware upgrade package is sent to optical module.
In the embodiment of the present application, as an alternative embodiment, the first predeterminable area of optical module can be to be consulted in advance
Optical module in reservation register first area, i.e., the reserved one or more registers being also not used by present or post
Reserved area in storage is not supported to identify the upgrading of optical module firmware version of storage by optical module communication standard.
For example, if the communication standard of optical module does not support the online upgrading of optical module firmware, optical module that will be solidificated in EROM
Or the first predeterminable area of the first version information write-in optical module of the optical module firmware on the non-volatile memory mediums such as EEPROM.
In this way, may not need and optical module structure is modified using the first area storage version information for retaining register, Ji Keshi
The upgrading of existing optical module firmware.
It is understood that communication equipment determine optical module firmware be scalable optical module firmware detailed process aforementioned
It has been described in detail in embodiment, has no longer repeated herein.
Step 502, according to the optical module firmware upgrade package, the optical module carries out the optical module firmware upgrading.
In the embodiment of the present application, the optical module firmware upgrade package that optical module receiving communication device is sent is upgraded.In this way,
Special upgrade is carried out without being modified to optical module structure and without pulling away optical module, is shortened needed for optical module firmware upgrading
Time, effectively improve optical module firmware upgrading efficiency, and enhance optical module firmware upgrading real-time.
In the embodiment of the present application, as an alternative embodiment, the optical module firmware for receiving the communication equipment and sending
Before upgrade package, further includes:
The optical module receives the upgrade command that the communication equipment is sent;
According to the upgrade command, upgrading flag bit, the upgrading mark is arranged in the optical module in the reserved area
Position is known for sending the optical module firmware upgrade package when communication equipment being made to detect the upgrading marker.
In the embodiment of the present application, as an alternative embodiment, the optical module receives the upgrading that the communication equipment is sent
Instruction, comprising:
A11, the second predeterminable area of optical module described in the optical module periodicity poll;
In the embodiment of the present application, the second predeterminable area of optical module poll optical module, it is determined whether have upgrade command.
A12, from second predeterminable area, the optical module obtains the upgrade command of the communication equipment write-in;
In the embodiment of the present application, the upgrade command being written in the second predeterminable area of optical module is that communication equipment determines optical module
After scalable optical module firmware, the second predeterminable area of optical module will be written to the upgrade command that communication equipment is made an appointment
In.
The optical module receives the optical module firmware upgrade package that the communication equipment is sent, comprising:
From the third predeterminable area of the optical module, the optical module obtains the optical mode of the communication equipment write-in
Block firmware upgrade packet.
In the embodiment of the present application, as an alternative embodiment, communication equipment consolidates the optical module that second edition information indicates
Optical module third predeterminable area is written in part upgrade package, and optical module obtains the optical module of communication equipment write-in from third predeterminable area
Firmware upgrade packet.
It is described according to the optical module firmware upgrade package, the optical mode as an alternative embodiment in the embodiment of the present application
Block carries out the optical module firmware upgrading, comprising:
Firmware storage media in the optical module is written in the optical module firmware upgrade package by the optical module;
When the firmware storage media all is written in the optical module firmware upgrade package, optical mode is arranged in the optical module
Block firmware upgrade mark;
When optical module next time starting, upgrade according to the optical module firmware and identify, load is written the firmware and deposits
The optical module firmware upgrade package in storage media.
In the embodiment of the present application, after optical module firmware upgrade package end of transmission, optical module is arranged optical module firmware and upgrades
Mark, to indicate optical module when restarting next time, the new optical module firmware upgrade package of load and execution.
In the embodiment of the present application, as an alternative embodiment, the predeterminable area is to retain register in the optical module
In region;
The first version information is stored in the first area for retaining register;
The upgrade command is stored in the second area for retaining register;
The optical module firmware upgrade package is stored in the third region for retaining register.
In the embodiment of the present application, as an alternative embodiment, this method further include:
The optical module reflects after successfully loading the optical module firmware upgrade package according to the optical module firmware upgrade package
The second edition information penetrated updates the first version information of the optical module firmware;
Remove the optical module firmware upgrading mark and the upgrade command of setting.
Embodiment seven
Fig. 6 is the another flow diagram of method of upgrading optical module firmware provided by the embodiments of the present application.The method is answered
For communication equipment and optical module, as shown in fig. 6, the process includes:
Step 601, the first version information write-in of optical module firmware is retained the first area of register by optical module;
In the embodiment of the present application, optical module writes the current version of optical module firmware using the first area for retaining register
This number, such as X.Y.Z.Retain the first area pair of register as an alternative embodiment for the safety for ensureing optical module
It outside, is read-only register such as communication equipment, and for inside, it is read-write register.
Step 602, the latest version information and newest upgrade package of the optical module firmware is stored in advance in communication equipment;
In the embodiment of the present application, the latest version information of optical module firmware and newest upgrade package are stored in communication equipment
On and communication equipment information (for example, communication equipment version) be built with mapping relations.Such as: communication equipment A version maps optical mode
Block firmware 1.2.3 version, communication equipment B version map optical module firmware 1.2.4 version.
Step 603, when optical module is inserted into communication equipment, communication equipment reads first from the first area for retaining register
Version information;
Step 604, communication equipment determines that the firmware version of latest version information instruction is higher than the instruction of first version information
Firmware version;
In the embodiment of the present application, when optical module is inserted into communication equipment, communication equipment reads the first edition of optical module firmware
This information latest version information matched with itself compares, if the firmware version of two version informations instruction is inconsistent, and
And the firmware version of first version information instruction is lower than the firmware version of matched latest version information instruction, then starts optical module
Firmware upgrade process.
Step 605, the upgrade command of agreement is write the reservation register of optical module by I2C interface by communication equipment
Second area;
In the embodiment of the present application, upgrade command is the N byte data made an appointment.
Step 606, optical module poll retains the second area of register, if it is confirmed that have upgrade command, write-in upgrading mark
Will position;
In the embodiment of the present application, optical module upgrades flag bit, illustrates to be ready for upgrading.
Step 607, the second area that communication equipment poll retains register passes through I2C if it is confirmed that there is upgrading flag bit
The third region for retaining register is written in newest upgrade package by interface;
In the embodiment of the present application, communication equipment reads upgrading flag bit, by I2C interface, by latest edition mapping
Newest upgrade package, as an alternative embodiment, newest upgrade package is binary data, is written according to the data packet format appointed
The third region of the reservation register of optical module.
Step 608, when the third region for retaining register writes full, write-in is retained the third region of register by optical module
Data store to firmware storage media;
In the embodiment of the present application, the third region for retaining register is often write completely once, and the CPU of optical module is stored data into
In internal firmware storage media, storage operation is executed repeatedly, until newest upgrade package storage finishes.
Step 609, optical module confirms that newest upgrade package has been stored to firmware storage media, and optical module is arranged in predeterminated position
Firmware upgrade mark;
In the embodiment of the present application, optical module upgrades mark by setting optical module firmware, to identify weight optical module next time
The newest upgrade package of load and execution is used after opening.
Step 610, in starting next time, the optical module firmware upgrading mark loading firmware storage according to setting is situated between optical module
Newest upgrade package in matter;
Step 611, it after optical module confirmation loads newest upgrade package success, is updated with latest version information and retains register
First version information in first area.
In the embodiment of the present application, does not need to be modified optical module structure, do not need extended register yet.Using existing
I2C interface and retain register, without cost additional on hardware, sending back to producer's weight again without manually removing optical module
In the case where writing, the automatic upgrading of optical module firmware is realized.It time needed for shortening optical module firmware upgrading, effectively improves
Optical module firmware upgrades efficiency.
Embodiment eight
Fig. 7 is the apparatus structure schematic diagram of upgrading optical module firmware provided by the embodiments of the present application.Described device includes:
Version read module 701, to obtain the first version of the optical module firmware when detecting optical module insertion
Information;
In the embodiment of the present application, as an alternative embodiment, optical module firmware is obtained from the first predeterminable area of optical module
First version information.The first predeterminable area of optical module can be the firstth area of the reservation register in the optical module consulted in advance
Domain.
Upgrade status determining module 702, for believing according to pre-stored second edition information and the first version
Breath, determines whether the optical module firmware is scalable optical module firmware;
Upgrade indicating module 703, however, it is determined that the optical module firmware is scalable optical module firmware, obtains the second edition
The optical module firmware upgrade package of this information instruction sends the optical module firmware upgrade package to the optical module, is used for the light
Module carries out the optical module firmware upgrading.
In the embodiment of the present application, upgrading indicating module 703 will be then stored in advance if it is determined that optical module firmware needs to upgrade
The corresponding optical module firmware upgrade package of second edition information be sent to optical module, with for optical module carry out upgrading processing.
In the embodiment of the present application, version read module is when detecting optical module insertion, from the first predeterminable area of optical module
The first version information of optical module firmware is read, upgrade status determining module is by first version information and the pre-stored second edition
This information is compared, and upgrading indicating module obtains second edition information after determination needs to upgrade optical module firmware
The optical module firmware upgrade package of instruction sends the optical module firmware upgrade package to the optical module, for the optical module into
The row optical module firmware upgrading.In this way, in the case where being not necessarily to be modified optical module structure and communication apparatus construction,
Upgraded without pulling away optical module and sending to optical module manufacturer, the time needed for optical module firmware upgrading can be shortened,
It effectively promotes optical module firmware and upgrades efficiency.
In the embodiment of the present application, as an alternative embodiment, upgrade status determining module 702 is specifically used for:
Compare the second edition information and the first version information;
If the firmware version of the second edition information instruction is higher than the firmware version of first version information instruction,
Determine that the optical module firmware is scalable optical module firmware;
If the firmware version of the second edition information instruction is not higher than the firmware version of first version information instruction,
Then determine that the optical module firmware is non-upgrading optical module firmware.
In the embodiment of the present application, as another alternative embodiment, obtain the optical module firmware first version information it
Afterwards, further includes:
Obtain the optical module characteristic information of the optical module and the communication equipment information of the communication equipment;
According to the communication equipment information, optical module characteristic information, from the second edition of pre-stored optical module firmware
In information, the second edition information to match with the communication equipment information and optical module characteristic information is obtained.
In the embodiment of the present application, as an alternative embodiment, communication equipment information is used to characterize different type or feature
Communication equipment.Optical module characteristic information includes one of following information or any combination: optical module sequence number, optical module class
Type, optical mode block identification etc..Wherein, optical mode block type can be SFP, SFP+, QSFP, QSFP+, QSFP28, CXP etc..
In the embodiment of the present application, as an alternative embodiment, upgrades indicating module 703 and is specifically used for:
The upgrade command made an appointment with the optical module is written into optical module;
When detecting the upgrading flag bit that the optical module is arranged according to the upgrade command, by the optical module firmware
Upgrade package is written into optical module, the optical module firmware upgrade package to be written to the optical module for the optical module
Firmware storage media, and in optical module next time starting, load the optical module firmware upgrading in the firmware storage media
Packet.
In the embodiment of the present application, as an alternative embodiment, upgrade indicating module 703 by I2C interface, by N byte number
According to upgrade command write in optical module reservation register second area.
In the embodiment of the present application, as an alternative embodiment, the first version information of the optical module firmware is obtained, is wrapped
It includes:
The first version information is obtained from the first predeterminable area of the optical module, first predeterminable area is institute
State the first area for retaining register in optical module;
The upgrade command made an appointment with the optical module is written into optical module, comprising:
The upgrade command made an appointment with the optical module is written into the second predeterminable area of the optical module, it is described
Second predeterminable area is the second area for retaining register in the optical module;
The optical module firmware upgrade package is written into optical module, comprising:
By the integrated circuit interface of the communication equipment, the optical module firmware upgrade package is written to the optical module
Third predeterminable area in, the third predeterminable area be the optical module in retain register third region.
In the embodiment of the present application, as an alternative embodiment, the first predeterminable area of optical module is that the reservation in optical module is posted
The first area of storage, the second predeterminable area of optical module are the second area of the reservation register in optical module, optical module third
Predeterminable area is the third region of the reservation register in optical module, is believed the second edition by internal integrated circuit interface
Optical module third predeterminable area is written in the optical module firmware upgrade package of breath instruction.
Embodiment nine
Fig. 8 is another structural schematic diagram of device of upgrading optical module firmware provided by the embodiments of the present application.Described device
The first version information of optical module firmware is stored in first predeterminable area, and described device is inserted into communication equipment, the dress
It sets and includes:
Upgrade package obtains module 801, the optical module firmware upgrade package sent for receiving the communication equipment, the optical mode
Block firmware upgrade packet is the communication equipment according to the first version information, determines that the optical module firmware is scalable optical mode
It is sent after block firmware;
In the embodiment of the present application, communication equipment determine optical module firmware be scalable optical module firmware after, under optical module
Upgrade command is sent out, and by the interaction with optical module, the optical module firmware of pre-stored second edition information instruction is upgraded
Packet is sent to upgrade package by I2C interface and obtains module 801.
Upgraded module 802, for carrying out the optical module firmware upgrading according to the optical module firmware upgrade package.
In the embodiment of the present application, as an alternative embodiment, the device further include:
Flag bit setup module 803, the upgrade command sent for receiving the communication equipment;
According to the upgrade command, the setting upgrading flag bit in the reserved area, the upgrading marker is for making
When the communication equipment detects the upgrading marker, the optical module firmware upgrade package is sent.
In the embodiment of the present application, flag bit setup module 803 is arranged in reserved area and rises according to received upgrade command
Grade flag bit, to indicate to be ready to upgrade.
In the embodiment of the present application, as an alternative embodiment, the upgrade command for receiving the communication equipment and sending, packet
It includes:
Second predeterminable area of optical module described in the optical module periodicity poll;
From second predeterminable area, the optical module obtains the upgrade command of the communication equipment write-in;
The optical module receives the optical module firmware upgrade package that the communication equipment is sent, comprising:
From the third predeterminable area of the optical module, the optical module obtains the optical mode of the communication equipment write-in
Block firmware upgrade packet.
In the embodiment of the present application, as another alternative embodiment, upgraded module 802 is specifically used for:
Firmware storage media is written into the optical module firmware upgrade package;
When the firmware storage media all is written in the optical module firmware upgrade package, setting optical module firmware upgrades
Mark;
When starting next time, upgrade according to the optical module firmware and identify, load is written in the firmware storage media
The optical module firmware upgrade package.
In the embodiment of the present application, as an alternative embodiment, the device further include:
Update module (not shown), for after successfully loading the optical module firmware upgrade package, according to the light
The second edition information of module firmware upgrade package instruction, updates the first version information of the optical module firmware;Remove setting
Upgrade command in optical module firmware upgrading mark and the second predeterminable area of the optical module.
In the embodiment of the present application, as an alternative embodiment, the predeterminable area is to retain register in the optical module
In region;
The first version information is stored in the first area for retaining register;
The upgrade command is stored in the second area for retaining register;
The optical module firmware upgrade package is stored in the third region for retaining register.
In the embodiment of the present application, the first predeterminable area of optical module is the first area of the reservation register in optical module, light
The second predeterminable area of module is the second area of the reservation register in optical module, and optical module third predeterminable area is in optical module
Reservation register third region, optical module third predeterminable area passes through the second edition described in internal integrated circuit interface
The optical module firmware upgrade package of information instruction.
Embodiment ten
Fig. 9 is the structural schematic diagram of computer equipment provided by the embodiments of the present application.As shown in figure 9, the application one is implemented
A kind of computer equipment that example provides, the method for executing upgrading optical module firmware of the Fig. 1 into Fig. 6.The equipment includes depositing
Reservoir 1000, processor 2000 and it is stored in the computer journey that can be run on the memory 1000 and on the processor 2000
Sequence.Wherein, the step of method of above-mentioned upgrading optical module firmware is realized when above-mentioned processor 2000 executes above-mentioned computer program.
Specifically, above-mentioned memory 1000 and processor 2000 can be general memory and processor, not do here
It is specific to limit.When the computer program of 2000 run memory 2000 of processor storage, it is able to carry out above-mentioned upgrading optical module
The method of firmware, so that solving prior art optical module communication standard does not support the upgrading effect of optical module firmware caused by online upgrading
The lower problem of rate, for the application when communication equipment detects optical module insertion, communication module obtains the first of optical module firmware
Version information.First version information is compared by communication module with pre-stored second edition information.Determining optical module
Firmware is simultaneously sent to optical mode after scalable optical module firmware, to obtain the optical module firmware upgrade package of second edition information instruction
Block, so that optical module carries out optical module firmware.It avoids the need for pulling away optical module and sending to optical module manufacturer just can be carried out
The situation of upgrading, time needed for shortening optical module firmware upgrading effectively improve optical module firmware upgrading efficiency.
Corresponding to the method for upgrading optical module firmware of the Fig. 1 into Fig. 6, the embodiment of the present application also provides a kind of computers
Readable storage medium storing program for executing is stored with computer program on the computer readable storage medium, which is run by processor
The step of method of the above-mentioned upgrading optical module firmware of Shi Zhihang.
Specifically, which can be general storage medium, such as mobile disk, hard disk, on the storage medium
Computer program when being run, the method for being able to carry out above-mentioned upgrading optical module firmware, to solve prior art optical module
The problem that communication standard does not support the upgrading of optical module firmware caused by online upgrading efficiency lower, the application are detected when communication equipment
To when optical module insertion, communication module obtains the first version information of optical module firmware.Communication module by first version information with
Pre-stored second edition information is compared.After determining that optical module firmware is scalable optical module firmware, second is obtained
The optical module firmware upgrade package of version information instruction is simultaneously sent to optical module, so that optical module carries out optical module firmware.It avoids
It needs to pull away optical module and send to optical module manufacturer the situation that just can be carried out upgrading, shorten needed for optical module firmware upgrading
Time, effectively improve optical module firmware upgrading efficiency.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other
Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown
According to device, the architectural framework in the cards of method and computer program product, function of multiple embodiments of the application
And operation.In this regard, each box in flowchart or block diagram can represent one of a module, section or code
Point, a part of the module, section or code includes one or more for implementing the specified logical function executable
Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement
The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used
To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart
The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement
The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be subject to the protection scope in claims.
Claims (15)
1. a kind of method for upgrading optical module firmware, which is characterized in that the method is applied to communication equipment, the method packet
It includes:
When detecting optical module insertion, the communication equipment obtains the first version information of the optical module firmware;
Second edition information and the first version information of the communication equipment according to pre-stored optical module firmware, really
Whether the fixed optical module firmware is scalable optical module firmware;
If it is determined that the optical module firmware is scalable optical module firmware, then the communication equipment obtains the second edition information
The optical module firmware upgrade package of instruction;
The communication equipment sends the optical module firmware upgrade package to the optical module, carries out the light for the optical module
Module firmware upgrading.
2. the method according to claim 1, wherein the communication equipment is according to pre-stored optical module firmware
Second edition information and the first version information, determine whether the optical module firmware is scalable optical module firmware,
Include:
The communication equipment second edition information and the first version information;
If the firmware version of the second edition information instruction is higher than the firmware version of first version information instruction, described
Communication equipment determines that the optical module firmware is scalable optical module firmware;
If the firmware version of the second edition information instruction is not higher than the firmware version of first version information instruction, institute
It states communication equipment and determines that the optical module firmware is non-upgrading optical module firmware.
3. the method according to claim 1, wherein the communication equipment obtains the first of the optical module firmware
After version information, further includes:
The communication equipment obtains the optical module characteristic information of the optical module and the communication equipment information of the communication equipment;
According to the communication equipment information, optical module characteristic information, from the second edition information of pre-stored optical module firmware
In, obtain the second edition information to match with the communication equipment information and optical module characteristic information.
4. method according to any one of claims 1 to 3, which is characterized in that the communication equipment is sent out to the optical module
Send the optical module firmware upgrade package, comprising:
The upgrade command made an appointment with the optical module is written into optical module the communication equipment;
When the communication equipment detects the upgrading flag bit that the optical module is arranged according to the upgrade command, the communication
The optical module firmware upgrade package is written into optical module equipment, is used for the optical module for the optical module firmware upgrade package
It is written to the firmware storage media of the optical module, and in optical module next time starting, loads the firmware storage media
In optical module firmware upgrade package.
5. according to the method described in claim 4, it is characterized in that, the communication equipment obtains the first of the optical module firmware
Version information, comprising:
The communication equipment obtains the first version information from the first predeterminable area of the optical module, and described first is default
Region is the first area for retaining register in the optical module;
The upgrade command made an appointment with the optical module is written into optical module the communication equipment, comprising:
The upgrade command made an appointment with the optical module is written to the second preset areas of the optical module communication equipment
In domain, second predeterminable area is the second area for retaining register in the optical module;
The optical module firmware upgrade package is written into optical module the communication equipment, comprising:
The communication equipment passes through the integrated circuit interface of the communication equipment, and the optical module firmware upgrade package is written to institute
It states in the third predeterminable area of optical module, the third predeterminable area is the third region for retaining register in the optical module.
6. a kind of method for upgrading optical module firmware, which is characterized in that the method is applied to optical module, and the of the optical module
The first version information of optical module firmware is stored in one predeterminable area, and the optical module is inserted into communication equipment, the side
Method includes: that the optical module receives the optical module firmware upgrade package that the communication equipment is sent, the optical module firmware upgrade package
It is the communication equipment according to the first version information, determines the optical module firmware to send out after scalable optical module firmware
It send;According to the optical module firmware upgrade package, the optical module carries out the optical module firmware upgrading.
7. according to the method described in claim 6, it is characterized in that, the optical module firmware for receiving the communication equipment and sending
Before upgrade package, further includes:
The optical module receives the upgrade command that the communication equipment is sent;
According to the upgrade command, upgrading flag bit, the upgrading marker is arranged in the optical module in the reserved area
When for making the communication equipment detect the upgrading marker, the optical module firmware upgrade package is sent.
8. the method according to the description of claim 7 is characterized in that the optical module receives the upgrading that the communication equipment is sent
Instruction, comprising:
Second predeterminable area of optical module described in the optical module periodicity poll;
From second predeterminable area, the optical module obtains the upgrade command of the communication equipment write-in;
The optical module receives the optical module firmware upgrade package that the communication equipment is sent, comprising:
From the third predeterminable area of the optical module, the optical module that the optical module obtains the communication equipment write-in is solid
Part upgrade package.
9. according to the method described in claim 6, it is characterized in that, described according to the optical module firmware upgrade package, the light
Module carries out the optical module firmware upgrading, comprising:
Firmware storage media in the optical module is written in the optical module firmware upgrade package by the optical module;When the optical module
When the firmware storage media has all been written in firmware upgrade packet, the optical module setting optical module firmware upgrades mark;
When optical module next time starting, upgrade according to the optical module firmware and identify, load is written the firmware storage and is situated between
The optical module firmware upgrade package in matter.
10. the method according to claim 6, which is characterized in that the predeterminable area is in the optical module
Retain the region in register;
The first version information is stored in the first area for retaining register;
The upgrade command is stored in the second area for retaining register;
The optical module firmware upgrade package is stored in the third region for retaining register.
11. a kind of device for upgrading optical module firmware, which is characterized in that described device includes:
Version read module, to obtain the first version information of the optical module firmware when detecting optical module insertion;
Upgrade status determining module, for determining according to pre-stored second edition information and the first version information
Whether the optical module firmware is scalable optical module firmware;
Upgrade indicating module, however, it is determined that the optical module firmware is scalable optical module firmware, obtains the second edition information
The optical module firmware upgrade package of instruction sends the optical module firmware upgrade package to the optical module, for the optical module into
The row optical module firmware upgrading.
12. device according to claim 11, which is characterized in that obtain the optical module firmware first version information it
Afterwards, further includes:
Obtain the optical module characteristic information of the optical module and the communication equipment information of the communication equipment;
According to the communication equipment information, optical module characteristic information, from the second edition information of pre-stored optical module firmware
In, obtain the second edition information to match with the communication equipment information and optical module characteristic information.
13. device according to claim 11 or 12, which is characterized in that the upgrading indicating module is specifically used for:
The upgrade command made an appointment with the optical module is written into optical module;
When detecting the upgrading flag bit that the optical module is arranged according to the upgrade command, the optical module firmware is upgraded
Packet write-in is into optical module, the optical module firmware upgrade package to be written to the firmware of the optical module for the optical module
Storage medium, and in optical module next time starting, load the optical module firmware upgrade package in the firmware storage media.
14. a kind of device for upgrading optical module firmware, which is characterized in that stored optical mode in the first predeterminable area of described device
The first version information of block firmware, and described device is inserted into communication equipment, described device includes:
Upgrade package obtains module, the optical module firmware upgrade package sent for receiving the communication equipment, the optical module firmware
Upgrade package is the communication equipment according to the first version information, determines that the optical module firmware is scalable optical module firmware
After send;
Upgraded module, for carrying out the optical module firmware upgrading according to the optical module firmware upgrade package.
15. device according to claim 14, which is characterized in that described device further include:
Flag bit setup module, the upgrade command sent for receiving the communication equipment;
According to the upgrade command, the setting upgrading flag bit in the reserved area, the upgrading marker is described for making
When communication equipment detects the upgrading marker, the optical module firmware upgrade package is sent.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810601600.1A CN108958765B (en) | 2018-06-12 | 2018-06-12 | Method and device for upgrading optical module firmware |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810601600.1A CN108958765B (en) | 2018-06-12 | 2018-06-12 | Method and device for upgrading optical module firmware |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108958765A true CN108958765A (en) | 2018-12-07 |
| CN108958765B CN108958765B (en) | 2022-12-09 |
Family
ID=64488463
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810601600.1A Active CN108958765B (en) | 2018-06-12 | 2018-06-12 | Method and device for upgrading optical module firmware |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108958765B (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111966378A (en) * | 2020-08-18 | 2020-11-20 | 深圳市康冠商用科技有限公司 | Board card version upgrading method, device and medium |
| CN114489752A (en) * | 2022-01-27 | 2022-05-13 | 浙江地芯引力科技有限公司 | Differentiated upgrading method and system, memory and computer equipment |
| WO2024060166A1 (en) * | 2022-09-23 | 2024-03-28 | 华为技术有限公司 | Sensor software change method and apparatus, and intelligent driving device |
| CN119781795A (en) * | 2024-12-19 | 2025-04-08 | 山东华芯半导体有限公司 | Firmware updating method for unidirectional transmission equipment with limited space in chip |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101950253A (en) * | 2010-08-12 | 2011-01-19 | 深圳市共进电子有限公司 | Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface |
| CN101989205A (en) * | 2009-08-03 | 2011-03-23 | 杭州国芯科技股份有限公司 | Software system upgrading method for universal serial bus (USB) equipment |
| CN103248424A (en) * | 2012-02-14 | 2013-08-14 | 深圳市卓翼科技股份有限公司 | Optical module firmware upgrading method and system |
| US20140105601A1 (en) * | 2012-10-15 | 2014-04-17 | 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 |
| CN104579719A (en) * | 2013-10-10 | 2015-04-29 | 中兴通讯股份有限公司 | A method and system for updating firmware, upper computer and optical module |
| CN104598279A (en) * | 2015-01-23 | 2015-05-06 | 广州快飞计算机科技有限公司 | Method and device for upgrading firmware based on flight controller |
| CN105162730A (en) * | 2015-09-22 | 2015-12-16 | 上海斐讯数据通信技术有限公司 | Processing system and method for optical module information in switch |
| CN106020875A (en) * | 2016-05-16 | 2016-10-12 | 北京奇虎科技有限公司 | Firmware updating management method and device of embedded terminal |
| US20160352650A1 (en) * | 2014-02-28 | 2016-12-01 | Huawei Technologies Co., Ltd. | Communication Method, Optical Module, and Network Device |
| CN106598632A (en) * | 2015-10-15 | 2017-04-26 | 中兴通讯股份有限公司 | Firmware upgrading method and apparatus for optical module |
| CN107885515A (en) * | 2016-09-29 | 2018-04-06 | 西门子公司 | A kind of firmware upgrade method and device |
| CN108023765A (en) * | 2017-11-03 | 2018-05-11 | 珠海格力电器股份有限公司 | Equipment firmware upgrading method and device and storage medium |
-
2018
- 2018-06-12 CN CN201810601600.1A patent/CN108958765B/en active Active
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101989205A (en) * | 2009-08-03 | 2011-03-23 | 杭州国芯科技股份有限公司 | Software system upgrading method for universal serial bus (USB) equipment |
| CN101950253A (en) * | 2010-08-12 | 2011-01-19 | 深圳市共进电子有限公司 | Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface |
| CN103248424A (en) * | 2012-02-14 | 2013-08-14 | 深圳市卓翼科技股份有限公司 | Optical module firmware upgrading method and system |
| US20140105601A1 (en) * | 2012-10-15 | 2014-04-17 | 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 |
| CN104579719A (en) * | 2013-10-10 | 2015-04-29 | 中兴通讯股份有限公司 | A method and system for updating firmware, upper computer and optical module |
| US20160352650A1 (en) * | 2014-02-28 | 2016-12-01 | Huawei Technologies Co., Ltd. | Communication Method, Optical Module, and Network Device |
| CN104598279A (en) * | 2015-01-23 | 2015-05-06 | 广州快飞计算机科技有限公司 | Method and device for upgrading firmware based on flight controller |
| CN105162730A (en) * | 2015-09-22 | 2015-12-16 | 上海斐讯数据通信技术有限公司 | Processing system and method for optical module information in switch |
| CN106598632A (en) * | 2015-10-15 | 2017-04-26 | 中兴通讯股份有限公司 | Firmware upgrading method and apparatus for optical module |
| CN106020875A (en) * | 2016-05-16 | 2016-10-12 | 北京奇虎科技有限公司 | Firmware updating management method and device of embedded terminal |
| CN107885515A (en) * | 2016-09-29 | 2018-04-06 | 西门子公司 | A kind of firmware upgrade method and device |
| CN108023765A (en) * | 2017-11-03 | 2018-05-11 | 珠海格力电器股份有限公司 | Equipment firmware upgrading method and device and storage medium |
Non-Patent Citations (6)
| Title |
|---|
| FEG4296: "从10g光模块升级到40g光模块,需要用到什么东西?", 《HTTPS://TIEBA.BAIDU.COM/P/5324387673?RED_TAG=1130325652》 * |
| MORIS: "What Is An Optical Module?", 《HTTPS://COMMUNITY.FS.COM/BLOG/WHAT-IS-AN-OPTICAL-MODULE.HTML》 * |
| REGINA CAPUTO等: "Upgrade of the ATLAS Level-1 trigger with an FPGA based Topological Processor", 《2013 IEEE NUCLEAR SCIENCE SYMPOSIUM AND MEDICAL IMAGING CONFERENCE (2013 NSS/MIC)》 * |
| TAKUMI HARADA等: "Dynamic software updating of OLTs without service interruption", 《2017 25TH INTERNATIONAL CONFERENCE ON SOFTWARE, TELECOMMUNICATIONS AND COMPUTER NETWORKS (SOFTCOM)》 * |
| 徐皓: "基于MIPS的GPON系统用户终端的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
| 谢婷等: "SFP+双MCU光收发模块升级的设计与实现", 《电视技术》 * |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111966378A (en) * | 2020-08-18 | 2020-11-20 | 深圳市康冠商用科技有限公司 | Board card version upgrading method, device and medium |
| CN111966378B (en) * | 2020-08-18 | 2024-01-09 | 深圳市康冠商用科技有限公司 | Board version upgrading method, device and medium |
| CN114489752A (en) * | 2022-01-27 | 2022-05-13 | 浙江地芯引力科技有限公司 | Differentiated upgrading method and system, memory and computer equipment |
| WO2024060166A1 (en) * | 2022-09-23 | 2024-03-28 | 华为技术有限公司 | Sensor software change method and apparatus, and intelligent driving device |
| CN119781795A (en) * | 2024-12-19 | 2025-04-08 | 山东华芯半导体有限公司 | Firmware updating method for unidirectional transmission equipment with limited space in chip |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108958765B (en) | 2022-12-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108958765A (en) | Upgrade the method and device of optical module firmware | |
| US20120169479A1 (en) | Rfid system, rfid cable system, and rfid cable laying method | |
| CN102945026B (en) | Method and system for controlling oscilloscope | |
| US20160299826A1 (en) | Device topology definition system | |
| CN109446092A (en) | The method, apparatus and electronic equipment be identified to user interface UI element | |
| JP2005092107A (en) | Management system of transmission component using connector plug with memory | |
| CN104519105A (en) | Method and device for acquiring applications matched with terminals | |
| JP2022515629A (en) | Methods and equipment for establishing optical cable connections | |
| CN111190621A (en) | Firmware burning method, device, system, terminal device and storage medium | |
| CN113233069B (en) | Intelligent warehousing ex-warehouse control method and device, electronic equipment and storage medium | |
| CN103542865A (en) | Testing and controlling method and device | |
| CN115757190B (en) | Production program simulation test method, device, equipment and storage medium | |
| CN112671848A (en) | Method and device for acquiring data of fire fighting equipment and fire fighting management system | |
| CN114978953B (en) | Network card identification method and device and computer readable medium | |
| CN104462189B (en) | Distributed system data management based on planar bar code technology and operation method | |
| CN109635552A (en) | Electronic equipment identity information verification method and device | |
| CN115113016A (en) | System and method for testing circuit board assembly | |
| CN119203555B (en) | 4D millimeter wave radar sensor simulation method for automatic driving simulation test | |
| CN107885515A (en) | A kind of firmware upgrade method and device | |
| CN114817348B (en) | Data processing-based vehicle insurance reconnaissance system and method and electronic tag | |
| CN114138509B (en) | A data interaction method, device and computer-readable storage medium | |
| CN106196497A (en) | The application process of humidifier and system in Internet of Things | |
| CN120066974B (en) | Test case generation method, device, system and medium based on AI model | |
| CN111178463A (en) | Label management method and system for optical fiber distribution cabinet | |
| CN103581879A (en) | Method and system for performing data transmission between terminal and user identification card |
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 |