CN103825649A - Optical module information restoration method and apparatus - Google Patents

Optical module information restoration method and apparatus Download PDF

Info

Publication number
CN103825649A
CN103825649A CN201210462365.7A CN201210462365A CN103825649A CN 103825649 A CN103825649 A CN 103825649A CN 201210462365 A CN201210462365 A CN 201210462365A CN 103825649 A CN103825649 A CN 103825649A
Authority
CN
China
Prior art keywords
optical module
data
verified
memory
information
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.)
Pending
Application number
CN201210462365.7A
Other languages
Chinese (zh)
Inventor
宗凯
龚翔宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210462365.7A priority Critical patent/CN103825649A/en
Publication of CN103825649A publication Critical patent/CN103825649A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Optical Communication System (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The embodiments of the invention provide an optical module information restoration method and apparatus. The method comprises: obtaining data to be verified from the memory of an optical module and an original verification sum of the data to be verified, obtaining the verification sum of the data to be verified through calculation, comparing the calculated verification sum with the original verification sum, and if the two sums are different, obtaining type identification information from the memory, the type identification information being used for identifying the type of the optical module; obtaining optical module data corresponding to the type identification information from an optical module information base; and rewriting the optical module data into the memory. The method and apparatus provided by the embodiments of the invention are used for restoring abnormally rewritten optical module information again.

Description

The restorative procedure of optical module information and device
Technical field
The embodiment of the present invention relates to communication technical field, relates in particular to a kind of restorative procedure and device of optical module information.
Background technology
In optical network communication system, the network equipment carries out reception and the transmission of light signal conventionally by optical module.In the memory of optical module, store the information of optical module, in communication process, the network equipment can read the relevant information of storing in optical module, to carry out the configuration of relevant work parameter.
In prior art, the network equipment is by integrated circuit (Inter-Integrated Circuit, below be abbreviated as IIC) bus reads canned data in the memory of optical module, the memory of optical module is generally EEPROM (Electrically Erasable Programmable Read Only Memo) (Electrically Erasable Programmable Read-Only Memory, is below abbreviated as EEPROM).In the read-write operation code of IIC signal form, high level represents read operation, and low level represents write operation.But iic bus, as a kind of low frequency communication bus, is subject to external interference, reliability is lower, therefore reading by iic bus in the process of information of optical module, in the time that IIC signal is interfered, easily there is signal saltus step and become write operation code in read operation code, cause canned data in the memory in optical module to be modified, the network equipment cannot read correct information, causes the access failure of optical module, and then cannot carry out correct active configuration, cause flow interrupt, affect business.
Summary of the invention
The embodiment of the present invention provides a kind of restorative procedure and device of optical module information, again repairs for the optical module information that memory is rewritten extremely.
First aspect, the embodiment of the present invention provides a kind of restorative procedure of optical module information, comprising:
From the memory of optical module, obtain data to be verified and described data to be verified original checksums and, calculate described data to be verified verification and, by the verification calculating and with described original checksums and comparing, if different, from described memory, obtain type identification information, wherein, described type identification information is for identifying the type of described optical module;
Obtain the optical module data corresponding with described type identification information from optical module information storehouse;
Described optical module data are re-write to described memory.
In the possible implementation of the first, described in calculate described data to be verified verification and, be specifically as follows:
Described data to be verified are sued for peace take byte as unit, using described and the data of lowest byte as described verification and.
In the possible implementation of the second, the described original checksums of data to be verified and described data to be verified and before obtained from the memory of optical module, described method also comprises:
Set up described optical module information storehouse, wherein, in described optical module information storehouse, record the optical module data corresponding to type difference of multiple optical modules.
In the third possible implementation, the described original checksums of obtaining data to be verified and described data to be verified from the memory of optical module and, be specifically as follows:
Obtain from the memory of described optical module with Preset Time interval data to be verified and described data to be verified original checksums and; Or,
Obtain from the memory of described optical module by interrupt mode data to be verified and described data to be verified original checksums and.
In conjunction with first to the 3rd any possible implementation of first aspect or first aspect, in the 4th kind of possible implementation, described type identification information can be:
Product export sequence number; Or,
The combination of producer's title, wavelength, operating rate, transmission range and mode of operation.
In conjunction with first to the 3rd any possible implementation of first aspect or first aspect, in the 5th kind of possible implementation, the data of storing in the 0th byte to the 62 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 63rd byte in described the first section; Or,
The data of storing in the 64th byte to the 94 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the first section; Or,
The data of storing in the 0th byte to the 94 bytes in the second section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the second section.
Second aspect, the embodiment of the present invention provides a kind of prosthetic device of optical module information, comprising:
Calculate identification module, for from the memory of optical module obtain data to be verified and described data to be verified original checksums and, calculate described data to be verified verification and, by the verification calculating and with described original checksums and comparing, if different, from described memory, obtain type identification information, wherein, described type identification information is for identifying the type of described optical module;
Acquisition module, for obtaining the optical module data corresponding with described type identification information from optical module information storehouse;
Repair module, for described optical module data are re-write to described memory.
In the possible implementation of the first, described calculating identification module, specifically for:
Described data to be verified are sued for peace take byte as unit, using described and the data of lowest byte as described verification and.
In the possible implementation of the second, the prosthetic device of described optical module information, can also comprise:
Build library module, for setting up described optical module information storehouse, wherein, in described optical module information storehouse, record the optical module data corresponding to type difference of multiple optical modules.
In the third possible implementation, described acquisition module, specifically can be for:
Obtain from the memory of described optical module with Preset Time interval data to be verified and described data to be verified original checksums and; Or,
Obtain from the memory of described optical module by interrupt mode data to be verified and described data to be verified original checksums and.
In conjunction with first to the 3rd any possible implementation of first aspect or first aspect, in the 4th kind of possible implementation, described type identification information can be:
Product export sequence number; Or,
The combination of producer's title, wavelength, operating rate, transmission range and mode of operation.
In conjunction with first to the 3rd any possible implementation of first aspect or first aspect, in the 5th kind of possible implementation, the data of storing in the 0th byte to the 62 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 63rd byte in described the first section; Or,
The data of storing in the 64th byte to the 94 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the first section; Or,
The data of storing in the 0th byte to the 94 bytes in the second section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the second section.
The restorative procedure of the optical module information of the embodiment of the present invention and device, by calculate the data to be verified in optical module memory verification and, with the optical module of original checksums and relative discern data exception to be verified, and by obtaining optical module type identification information, optical module data corresponding with described type identification information in optical module information storehouse are re-write to described memory, to realize the reparation again of the optical module information to being modified in memory.The embodiment of the present invention has solved in prior art for the information in optical module memory because being occurred after optical module fault by abnormal rewriting, can only manually change fault optical module and the problem that cannot repair.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of the restorative procedure embodiment mono-of optical module information of the present invention;
Fig. 2 is the flow chart of the restorative procedure embodiment bis-of optical module information of the present invention;
Fig. 3 is the schematic diagram that a kind of memorizer information in Fig. 2 embodiment of the present invention distributes;
Fig. 4 is the structural representation of the prosthetic device embodiment mono-of optical module information of the present invention;
Fig. 5 is the structural representation of the prosthetic device embodiment bis-of optical module information of the present invention;
Fig. 6 is the structural representation of the prosthetic device embodiment tri-of optical module information of the present invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the flow chart of the restorative procedure embodiment mono-of optical module information of the present invention, and as shown in Figure 1, the embodiment of the present invention provides the restorative procedure of optical module information, specifically can be applied to detection and repair process to the optical module in optical network system.The restorative procedure of the optical module information that the present embodiment provides can be carried out by the prosthetic device of optical module information, and the prosthetic device of this optical module information can be integrated in the network equipment of communicating by letter with optical module, also can arrange separately.
The method that the present embodiment provides specifically comprises:
S101, from the memory of optical module, obtain data to be verified and described data to be verified original checksums and, calculate described data to be verified verification and, by the verification calculating and with described original checksums and comparing, if different, from described memory, obtain type identification information, wherein, described type identification information is for identifying the type of described optical module;
Concrete, what in the memory of optical module, store is the information of optical module, generally adopts EEPROM to realize.The information of optical module can comprise basic identifying information, and basic identifying information comprises producer's name, the optical module fundamental type identifying informations such as sequence number, wavelength, operating rate, transmission range, mode of operation that dispatch from the factory, and can also comprise other running parameters.Fundamental type identifying information can pilot light module type.For the optical module of enhancement mode, the information of optical module can also comprise diagnostic message, diagnostic message specifically can comprise temperature parameter, voltage parameter, transmitted power parameter, received power parameter and bias current parameter etc., and the type of above-mentioned parameter is specifically as follows design factor or alarm door limit value etc.In actual applications, optical module can gather the information such as temperature, voltage, transmitted power and the bigoted electric current of self, and those information are stored in memory, optical module can judge by above-mentioned parameter and the information collecting the operating state of optical module, in the time that appearance is abnormal, reports to the police.
Memory is divided multiple memory blocks, and the information of optical module can be stored in different memory blocks.There is its corresponding check digit each memory block, and this check digit is for example a byte, for store verification and, verification and the data for the minimum byte of all data in this memory block after suing for peace take byte as unit.Data to be verified are the data of storing in each memory block.When optical module occurs when abnormal, can repair optical module by the prosthetic device of this optical module information, the prosthetic device of this optical module information also can detect optical module with Preset Time interval, when detecting when abnormal, optical module is repaired, can also detect optical module by interrupt mode, when detecting when abnormal, optical module be repaired.
The prosthetic device of optical module information reads data to be verified from a memory block of memory, and from check digit corresponding to this memory block, read original checksums and, calculate data to be verified verification and, if the data in this memory block are not modified, the verification calculating and with read the original checksums that obtains and identical, if the data in this memory block are modified, the verification calculating and with read the original checksums that obtains and not identical, therefore, by by the verification calculating and with read the original checksums that obtains and compare, whether the data that can determine this memory block are modified.
S102, obtain the optical module data corresponding with described type identification information from optical module information storehouse;
Concrete, be modified if be stored the data in district, can read type identification information from memory, because type identification information is the sub-fraction of the data of storing in memory, therefore, the probability that type identification information is modified is less.According to the type identifying information, optical module information storehouse is inquired about, to obtain the optical module data that the type identifying information is corresponding.Optical module information storehouse is specially and sets in advance, preferred, stores the data of all dissimilar optical modules, and can search by type identification information in this optical module information storehouse.Optical module information storehouse can be arranged in the prosthetic device of this optical mode information, also can be arranged in the network equipment or other network equipments of communicating by letter with this optical module.
S103, described optical module data are re-write to described memory.
Concrete, the memory of optical module is carried out to write operation, correct information is re-write in optical module, complete data and recover.In this data recovery procedure, the total data of optical module can be re-write to memory, also can only the data corresponding memory block being modified be written in this memory block to the specific aim of repairing to improve data.
The restorative procedure of the optical module information of the embodiment of the present invention, the prosthetic device of optical module information from the memory of optical module, obtain data to be verified and data to be verified original checksums and, calculate data to be verified verification and, by the verification calculating and with original checksums and comparing, if different, from memory, obtain type identification information, obtain the optical module data corresponding with type identification information from optical module information storehouse, optical module data are re-write to memory.When the network equipment reads the data in the memory in optical module by iic bus, while causing data in memory to be modified due to IIC jitter, can by twin check and mode determine that the data of memory are modified, and will the data of revising be repaired, realize the timely of corrupted information in the memory of optical module and effectively recovered, having guaranteed the normal operation of optical network system.
Wherein, the method in above-described embodiment, described in calculate described data to be verified verification and, be specifically as follows:
Described data to be verified are sued for peace take byte as unit, using described and the data of lowest byte as described verification and.
Concrete, verification and finally only store the data of a minimum byte, as described verification and, the data of other overflow position are no longer stored,
Further, the method in above-described embodiment, the described original checksums of data to be verified and described data to be verified and before obtained from the memory of optical module, described method can also comprise:
Set up described optical module information storehouse, wherein, in described optical module information storehouse, record the optical module data corresponding to type difference of multiple optical modules.
Particularly, in optical module information storehouse, store the data of all dissimilar optical modules, and can search by type identification information.The mode of setting up optical module information storehouse can adopt the banking process of existing database to realize.
Fig. 2 is the flow chart of the restorative procedure embodiment bis-of optical module information of the present invention, Fig. 3 is the schematic diagram that a kind of memorizer information in Fig. 2 embodiment of the present invention distributes, the present embodiment is specifically with SFP (Small Form-factor Pluggables, SFP) optical module of encapsulated type is that example describes, wherein the memorizer information distribution map shown in Fig. 3 is only one of them memory schematic diagram of the embodiment of the present invention, this memorizer information distribution map is that the optical module of other types can be variant for the optical module of SFP encapsulated type.How partitioned storage of memory institute's canned data in the embodiment of the present invention and partition holding, comprises the corresponding relation of each information and address etc., is not limited to this.
As shown in Figures 2 and 3, for instance, optical module uses EEPROM to store basic identifying information and diagnostic message.The network equipment is accessed the built-in EEPROM of optical module by iic bus, and iic bus is a kind of twin wire universal serial bus, is widely used in connects microcontroller and ancillary equipment thereof in microelectronics Control on Communication field.The present embodiment can conveniently obtain the information of optical module in EEPROM by iic bus, first information in EEPROM is described below respectively below:
As shown in Figure 3, be illustrated as the distribution situation of the optical module information relevant to the embodiment of the present invention, specifically comprise following information: optical module type identification information and other diagnostic message, these information can be stored in different subregions, for the optical module of enhancement mode, also can comprise the eigenvalue of parameter to be detected, such as design factor or the alarm door limit value etc. of a parameter.
Wherein, the method in the present embodiment, optical module type identification information can be:
Product export sequence number; Or, the combination of producer's title, wavelength, operating rate, transmission range and mode of operation.
While detecting optical module, the data of above information are data to be tested.Above-mentioned data to be tested can be the data of storing in the 0th byte to the 62 bytes in the first section of memory, original checksums and the data for storing in the 63rd byte in described the first section; Or,
The data of storing in the 64th byte to the 94 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the first section; Or,
The data of storing in the 0th byte to the 94 bytes in the second section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the second section.
Specifically, take SFP optical module as example, according to optical module industry SFF-8472 standard, the general built-in EEPROM of optical module contains two region A0, A2, is respectively above-mentioned the first section and the second section.The basic identifying information of optical module is mainly stored in A0 section, as address 9 mark optical module mode of operations, address 12 mark optical module operating rates, address 14-17 mark optical module transmission range, address 20-35 mark optical module producer title, the sequence number that dispatches from the factory of address 40-55 mark optical module, the transmission wavelength of 60-61 mark optical module.The diagnostic message of optical module is mainly stored in A2 section, comprises temperature, transmitting-receiving luminous power, the information such as current/voltage.
Verification and the data of A0 section 63byte storage 0 ~ 62byte, verification and the data of 95byte storage 64 ~ 94byte.For enhancement mode optical module, carry out the data accuracy of verification 0 ~ 94byte with the 95byte of A2 section.
According to SFF-8472 standard, the check sum algorithm on optical module is, by all data field to be verified data accumulations, minimum 1 byte data value of getting cumulative sum as verification and.
The specific implementation process of the restorative procedure of the optical module information below in conjunction with Fig. 2 to the present embodiment is elaborated.
S201, software timing detect optical module, obtain from the memory of optical module with Preset Time interval data to be verified and data to be verified original checksums and, the time interval of this timing detection can be set arbitrarily as required; Or,
On S202, the network equipment, insert optical module, trigger optical module and insert interruption processing procedure detection optical module, in the time that optical network device normally moves, insert optical module to equipment, trigger optical module and insert and interrupt processing procedure, triggers by interrupt mode the original checksums of obtaining data to be verified and data to be verified from the memory of optical module with.
Concrete, detect with optical module and insert and interrupt combining by software timing, insert in interruption processing function at timer processing function and optical module, use certain algorithm calculate regional in the built-in EEPROM of optical module verification and, comprising verification and the data of 0 ~ 62byte of A0 section 63byte storage, the verification of 64 ~ 94byte of 95byte storage and data.For enhancement mode optical module, also comprise verification 0 ~ 94byte verification and the data of the 95byte storage of A2 section.
In actual application, can preset detection mode, can select timing to detect or interrupt the mode detecting, also can the two cooperation.Step 201 and step 202 do not have inevitable sequential relationship.
S203, calculate data to be verified verification and, by the verification calculating and with original checksums and comparing, judge that whether optical module normal.
To the above-mentioned data to be verified of obtaining by S201 or any detection mode of S202, calculate the verification that for example A0 section 0th ~ 62byte obtains of optical module type identification information memory block and, and compare with the original checksums and the data that read in for example A0 section 63byte of check digit corresponding in the built-in EEPROM of above-mentioned optical module, if the data in optical module characteristic information memory block are not modified, the verification calculating and with read the original checksums that obtains and identical, if the data in memory block are modified, the verification calculating and with read the original checksums that obtains and not identical.If verification and be relatively identical, illustrates that optical module information is normal, carry out to detect and finish S208; If different, illustrate that optical module information is abnormal, continue to carry out following step, by calculate and twin check and mode, just realization that can be timely, stable detects the accuracy of optical module information, find early the abnormal conditions of optical module information.
S204, from described memory, obtain type identification information, identify abnormal optical module type.
Wherein, described type identification information, for identifying the type of described optical module, can comprise the unique identifying information of following optical module type.Concrete, after detecting that module is abnormal, can pass through the unique identifying information of optical module type, as the combination of producer's name+wavelength+operating rate+transmission range+mode of operation or use separately the optical module sequence number that dispatches from the factory, identify the model of concrete fault optical module, for example first adopt the optical module sequence number that dispatches from the factory to have or not corresponding optical module type, then carry out following step if can normally identify, if can not identify, check and have or not corresponding optical module type by the combination of producer's name+wavelength+operating rate+transmission range+mode of operation again, if still can not identify, turn and carry out following S207 step.
S205, obtain the optical module data corresponding with described type identification information from optical module information storehouse, access optical module information storehouse, obtain correct optical module information.
Specifically access optical module information storehouse, the optical module model identifying is carried out to search comparison in information bank, take out the correct information of the type optical module, the EEPROM of optical module is carried out to write operation, correct information is re-write in optical module, complete data and recover.
S206, repairs optical module.
Specifically described optical module data are re-write to described memory.
S207, prompting user.Comprise and can not identify or repair successful information, corresponding with above-mentioned S204 and S206 respectively.Further also can, in above-mentioned reparation, point out user by modes such as abnormal printing, system journals, facilitate positioning problems.
S208, detection finish.
The design philosophy of the present embodiment software section is: detect in time optical module and identify extremely, fast optical module type, accurately repair abnormal optical module.
It is a kind of in the time that the network equipment uses optical module that the present embodiment provides, the abnormal method of the built-in EEPROM information of timely, effective, stable detection optical module, and provided the scheme of repairing optical module data exception.
The impaired phenomenon of even interrupting of business that can make the network equipment cause due to the problems referred to above by the method for this embodiment is repaired timely, client's traffic lost can be dropped to minimumly, better promotes the satisfaction of client to the network equipment.
Fig. 4 is the structural representation of the prosthetic device embodiment mono-of optical module information of the present invention, as shown in Figure 4, the prosthetic device of the optical module information that the present embodiment provides specifically can be realized each step of the restorative procedure of the optical module information that any embodiment of the present invention provides, specific implementation process does not repeat them here, and the prosthetic device of the optical module information that the present embodiment provides specifically comprises:
Calculate identification module 401, for from the memory of optical module obtain data to be verified and described data to be verified original checksums and, calculate described data to be verified verification and, by the verification calculating and with described original checksums and comparing, if different, from described memory, obtain type identification information, wherein, described type identification information is for identifying the type of described optical module;
Acquisition module 402, for obtaining the optical module data corresponding with described type identification information from optical module information storehouse;
Repair module 403, for described optical module data are re-write to described memory.
The device of the present embodiment, can be for the technical scheme of embodiment of the method shown in execution graph 1, and it is similar that it realizes principle, repeats no more herein.
The present embodiment by calculate identification module 401 calculate the data to be verified in the memory of optical module verification and, with the optical module of original checksums and relative discern data exception to be verified, and by obtaining optical module type identification information, acquisition module 402 re-writes described memory with reparation module 403 by optical module data corresponding with described type identification information in optical module information storehouse, to realize the reparation again of the optical module information to being modified in memory.The embodiment of the present invention has solved in prior art for the information in optical module memory because being occurred after optical module fault by abnormal rewriting, can only manually change fault optical module and the problem that cannot repair.
Further, the device in above-described embodiment, described calculating identification module 401, specifically for:
Described data to be verified are sued for peace take byte as unit, using described and the data of lowest byte as described verification and.
Device in above-described embodiment, described acquisition module 402, specifically can be for:
Obtain from the memory of described optical module with Preset Time interval data to be verified and described data to be verified original checksums and; Or,
Obtain from the memory of described optical module by interrupt mode data to be verified and described data to be verified original checksums and.
Device in above-described embodiment, described type identification information can be:
Product export sequence number; Or,
The combination of producer's title, wavelength, operating rate, transmission range and mode of operation.
Device in above-described embodiment, wherein,
The data of storing in the 0th byte to the 62 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 63rd byte in described the first section; Or,
The data of storing in the 64th byte to the 94 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the first section; Or,
The data of storing in the 0th byte to the 94 bytes in the second section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the second section.
Fig. 5 is the structural representation of the prosthetic device embodiment bis-of optical module information of the present invention, and as shown in Figure 5, the present embodiment and difference embodiment illustrated in fig. 4 are further can also comprise:
Build library module 404, for setting up described optical module information storehouse, wherein, in described optical module information storehouse, record the optical module data corresponding to type difference of multiple optical modules.
The embodiment of the present invention, for because iic bus is abnormal, causes the built-in EEPROM information of optical module to be rewritten, and affects the correct situation about using of optical module, carries out the identification of fault optical module, and automatically repairs fault optical module.Use the embodiment of the present invention can effectively identify, solve optical module fault, strengthen the maintainability of equipment and greatly reduce equipment maintenance cost.
Fig. 6 is the structural representation of the prosthetic device embodiment tri-of optical module information of the present invention, and as shown in Figure 6, the prosthetic device 100 of the optical module information that the embodiment of the present invention provides is repaired for the information in the EEPROM 300 to optical module 100.This prosthetic device comprises at least one processor 400, memory 500.Processor 400 comprises above-mentioned calculating identification module 401, acquisition module 402, repairs module 403, builds library module 404, and each functions of modules is identical with above-described embodiment with effect.Memory 500 comprises optical module information storehouse 501, and this memory 500 can be high-speed RAM memory, the also possibility unsettled memories of right and wrong (non-volatile memory), for example at least one magnetic disc store.Memory 500 optionally can comprise at least one and be positioned at the storage device away from optical module.In some embodiments, memory 500 has been stored following element, the data of the type identification information of optical module and relative photo module.
The prosthetic device 100 of above-mentioned optical module information can independently exist or can be integrated with other network equipment.In the various embodiments described above, the type of optical module does not also limit simultaneously.
In sum, the restorative procedure of the optical module information of the embodiment of the present invention and device, by calculate the data to be verified in optical module memory verification and, with the optical module of original checksums and relative discern data exception to be verified, and by obtaining optical module type identification information, optical module data corresponding with described type identification information in optical module information storehouse are re-write to described memory, to realize the reparation again of the optical module information to being modified in memory.The embodiment of the present invention has solved in prior art for the information in optical module memory and has been occurred after optical module fault because rewriting, and can only manually change fault optical module and the problem that cannot repair.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, in the time carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (12)

1. a restorative procedure for optical module information, is characterized in that, comprising:
From the memory of optical module, obtain data to be verified and described data to be verified original checksums and, calculate described data to be verified verification and, by the verification calculating and with described original checksums and comparing, if different, from described memory, obtain type identification information, wherein, described type identification information is for identifying the type of described optical module;
Obtain the optical module data corresponding with described type identification information from optical module information storehouse;
Described optical module data are re-write to described memory.
2. the restorative procedure of optical module information according to claim 1, is characterized in that, described in calculate described data to be verified verification and, be specially:
Described data to be verified are sued for peace take byte as unit, using described and the data of lowest byte as described verification and.
3. the restorative procedure of optical module information according to claim 1, is characterized in that, the described original checksums of data to be verified and described data to be verified and before obtained from the memory of optical module, and described method also comprises:
Set up described optical module information storehouse, wherein, in described optical module information storehouse, record the optical module data corresponding to type difference of multiple optical modules.
4. the restorative procedure of optical module information according to claim 1, is characterized in that, the described original checksums of obtaining data to be verified and described data to be verified from the memory of optical module and, be specially:
Obtain from the memory of described optical module with Preset Time interval data to be verified and described data to be verified original checksums and; Or,
Obtain from the memory of described optical module by interrupt mode data to be verified and described data to be verified original checksums and.
5. according to the restorative procedure of the arbitrary described optical module information of claim 1-4, it is characterized in that, described type identification information is:
Product export sequence number; Or,
The combination of producer's title, wavelength, operating rate, transmission range and mode of operation.
6. according to the restorative procedure of the arbitrary described optical module information of claim 1-4, it is characterized in that:
The data of storing in the 0th byte to the 62 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 63rd byte in described the first section; Or,
The data of storing in the 64th byte to the 94 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the first section; Or,
The data of storing in the 0th byte to the 94 bytes in the second section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the second section.
7. a prosthetic device for optical module information, is characterized in that, comprising:
Calculate identification module, for from the memory of optical module obtain data to be verified and described data to be verified original checksums and, calculate described data to be verified verification and, by the verification calculating and with described original checksums and comparing, if different, from described memory, obtain type identification information, wherein, described type identification information is for identifying the type of described optical module;
Acquisition module, for obtaining the optical module data corresponding with described type identification information from optical module information storehouse;
Repair module, for described optical module data are re-write to described memory.
8. the prosthetic device of optical module information according to claim 7, is characterized in that, described calculating identification module, specifically for:
Described data to be verified are sued for peace take byte as unit, using described and the data of lowest byte as described verification and.
9. the prosthetic device of optical module information according to claim 7, is characterized in that, also comprises:
Build library module, for setting up described optical module information storehouse, wherein, in described optical module information storehouse, record the optical module data corresponding to type difference of multiple optical modules.
10. the prosthetic device of optical module information according to claim 7, is characterized in that, described acquisition module, specifically for:
Obtain from the memory of described optical module with Preset Time interval data to be verified and described data to be verified original checksums and; Or,
Obtain from the memory of described optical module by interrupt mode data to be verified and described data to be verified original checksums and.
11. according to the prosthetic device of the arbitrary described optical module information of claim 7-10, it is characterized in that, described type identification information is:
Product export sequence number; Or,
The combination of producer's title, wavelength, operating rate, transmission range and mode of operation.
12. according to the prosthetic device of the arbitrary described optical module information of claim 7-10, it is characterized in that:
The data of storing in the 0th byte to the 62 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 63rd byte in described the first section; Or,
The data of storing in the 64th byte to the 94 bytes in the first section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the first section; Or,
The data of storing in the 0th byte to the 94 bytes in the second section that described data to be tested are described memory, described original checksums and the data for storing in the 95th byte in described the second section.
CN201210462365.7A 2012-11-16 2012-11-16 Optical module information restoration method and apparatus Pending CN103825649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210462365.7A CN103825649A (en) 2012-11-16 2012-11-16 Optical module information restoration method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210462365.7A CN103825649A (en) 2012-11-16 2012-11-16 Optical module information restoration method and apparatus

Publications (1)

Publication Number Publication Date
CN103825649A true CN103825649A (en) 2014-05-28

Family

ID=50760512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210462365.7A Pending CN103825649A (en) 2012-11-16 2012-11-16 Optical module information restoration method and apparatus

Country Status (1)

Country Link
CN (1) CN103825649A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936653A (en) * 2015-12-30 2017-07-07 华为数字技术(苏州)有限公司 A kind of recognition methods of optical mode block type and device
CN107068181A (en) * 2017-04-05 2017-08-18 青岛海信宽带多媒体技术有限公司 The method for writing data and device of driving chip in optical module
CN109100116A (en) * 2018-05-24 2018-12-28 烽火通信科技股份有限公司 A kind of optical module fault diagnosis system and method
WO2019000510A1 (en) * 2017-06-30 2019-01-03 杭州旗捷科技有限公司 Data protection method for chip rewriting equipment, electronic equipment and storage medium
CN110535674A (en) * 2018-05-25 2019-12-03 中兴通讯股份有限公司 Optical module threshold regulating method, device, equipment and the storage medium of the network equipment
CN113727208A (en) * 2021-08-30 2021-11-30 杭州云合智网技术有限公司 Communication method, device, equipment and medium for quickly reading and writing parameter information of optical module

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1650267A (en) * 2002-04-25 2005-08-03 甲骨文国际公司 Enhancements to data integrity verification mechanism
CN1949687A (en) * 2006-11-20 2007-04-18 杭州华为三康技术有限公司 Method and apparatus for processing light module information in communication apparatus
US20110138240A1 (en) * 2001-10-11 2011-06-09 Altera Corporation Error detection on programmable logic resources

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110138240A1 (en) * 2001-10-11 2011-06-09 Altera Corporation Error detection on programmable logic resources
CN1650267A (en) * 2002-04-25 2005-08-03 甲骨文国际公司 Enhancements to data integrity verification mechanism
CN1949687A (en) * 2006-11-20 2007-04-18 杭州华为三康技术有限公司 Method and apparatus for processing light module information in communication apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936653A (en) * 2015-12-30 2017-07-07 华为数字技术(苏州)有限公司 A kind of recognition methods of optical mode block type and device
CN106936653B (en) * 2015-12-30 2020-04-28 华为数字技术(苏州)有限公司 Optical module type identification method and device
CN107068181A (en) * 2017-04-05 2017-08-18 青岛海信宽带多媒体技术有限公司 The method for writing data and device of driving chip in optical module
CN107068181B (en) * 2017-04-05 2020-09-29 青岛海信宽带多媒体技术有限公司 Data writing method and device for driving chip in optical module
WO2019000510A1 (en) * 2017-06-30 2019-01-03 杭州旗捷科技有限公司 Data protection method for chip rewriting equipment, electronic equipment and storage medium
CN109100116A (en) * 2018-05-24 2018-12-28 烽火通信科技股份有限公司 A kind of optical module fault diagnosis system and method
CN110535674A (en) * 2018-05-25 2019-12-03 中兴通讯股份有限公司 Optical module threshold regulating method, device, equipment and the storage medium of the network equipment
CN113727208A (en) * 2021-08-30 2021-11-30 杭州云合智网技术有限公司 Communication method, device, equipment and medium for quickly reading and writing parameter information of optical module

Similar Documents

Publication Publication Date Title
CN103825649A (en) Optical module information restoration method and apparatus
CN102890657B (en) The method that the reading and writing data of a kind of EEPROM of minimizing is made mistakes
US7240178B2 (en) Non-volatile memory and non-volatile memory data rewriting method
CN100511484C (en) Storage device, life monitoring device and monitoring method thereof
CN105843699B (en) Dynamic random access memory device and method for error monitoring and correction
CN103392208A (en) Semiconductor storage apparatus and method for controlling semiconductor storage apparatus
CN103049354B (en) Data recovery method, data restore device and storage system
CN103631721A (en) Method and system for isolating bad blocks in internal storage
JP2008511832A (en) Firmware power cycle routine
CN112817527A (en) Power failure data storage method, single chip microcomputer and computer readable storage medium
CN104282342A (en) Flash memory device, memory controller and control method of flash memory
CN109426440A (en) The data store system and method for non-volatile memory
CN103703447A (en) Mram field disturb detection and recovery
CN109240622A (en) A kind of method and system of EEPROM data write-in
CN112256499A (en) Power failure monitoring method and device, electronic equipment and computer readable storage medium
CN103430178A (en) Method, apparatus and product of data updating
CN101253485A (en) Memory arrangement and method for the operation thereof
CN103890739A (en) Electronic control apparatus
CN112270945A (en) Method, device, storage medium and terminal for recording power failure during erasing
CN102968089B (en) Programmable logic controller and implementing method
CN102520223A (en) Software anti-interference method used for electric energy meter
CN104081299A (en) Programmable controller, programmable controller system, and provision system for programmable controller
JP2003036209A (en) Nonvolatile memory and data rewriting method thereof
CN109686397A (en) Memory with self-checking function and its checking method
CN101341469A (en) Method for recognizing a power outage in a data memory and recovering the data memory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140528

RJ01 Rejection of invention patent application after publication