CN106294040A - The acquisition methods of optical module status information and device - Google Patents
The acquisition methods of optical module status information and device Download PDFInfo
- Publication number
- CN106294040A CN106294040A CN201510321411.5A CN201510321411A CN106294040A CN 106294040 A CN106294040 A CN 106294040A CN 201510321411 A CN201510321411 A CN 201510321411A CN 106294040 A CN106294040 A CN 106294040A
- Authority
- CN
- China
- Prior art keywords
- optical module
- place
- status information
- state
- level signal
- 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; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Optical Communication System (AREA)
Abstract
The invention provides acquisition methods and the device of a kind of optical module status information, wherein, the method includes: obtain the signal being used for indicating the state in place of optical module;When the signal designation optical module of state in place is in place, obtain the status information that optical module is locally stored.Pass through the present invention, solve in correlation technique when optical module generation severely subnormal, cause status information such as interrupt signal correctly to send or optical module itself is not inserted on veneer, but the interrupt signal mistake caused due to extraneous interference reports and causes the problem that optical module state information report accuracy rate is low.
Description
Technical field
The present invention relates to the communications field, in particular to acquisition methods and the dress of a kind of optical module status information
Put.
Background technology
Optical module is the Primary Component that all can use on current most of interface board, when optical module breaks down,
Need reliable mechanism and the generation of fault detected.Especially when one piece of veneer uses multiple optical module,
Need when fault occurs, navigate to rapidly specifically which optical module and break down.
Current technology is that the interrupt signal utilizing optical module to provide occurs abnormal to get optical module, Fig. 1
It is the annexation schematic diagram of optical module interrupt line and logical device in correlation technique, as it is shown in figure 1, this connection
Relation is optical module, and interrupt signal line unidirectional between logical device and processor connects.When optical module occurs different
Chang Shi, can export a low level signal to interrupt line.After logical device receives this signal, this signal is transmitted
To processor, the exception register of the IIC interface accessing optical module that processor is simulated by logical device again, fixed
Position is to abnormal cause;
Hardware aspect, the interrupt signal (INT) of optical module is connected to logical device, and logical device has signal even
Receive the interrupt pin of CPU.When optical module occurs abnormal generation interrupt signal, this signal will be via logic device
Part is sent to the interrupt pin of CPU, informs that CPU optical module has abnormal generation.
Software aspects, has depositor storage 1~the interrupt flag of n optical module, during CPU receives in logical device
Have no progeny, can in the depositor of logical device mark-sense value, and determine it is which light in 1~n according to this value
Module creates interruption.
For in correlation technique when optical module generation severely subnormal, cause the status information such as interrupt signal cannot be correct
Send or optical module itself is not inserted on veneer, but the interrupt signal mistake caused due to extraneous interference
Report and cause the problem that optical module state information report accuracy rate is low, the most not yet propose effective solution.
Summary of the invention
Embodiments provide acquisition methods and the device of a kind of optical module status information, at least to solve phase
When optical module generation severely subnormal in the technology of pass, status information such as interrupt signal is caused correctly to send or optical mode
Block is not inserted on veneer itself, but the interrupt signal mistake caused due to extraneous interference reports and causes
The technical problem that optical module state information report accuracy rate is low.
An aspect according to embodiments of the present invention, it is provided that the acquisition methods of a kind of optical module status information, bag
Include: obtain the signal being used for indicating the state in place of described optical module;Signal designation institute in described state in place
State optical module in place time, obtain the status information that described optical module is locally stored.
Further, described acquisition is for indicating the signal of the state in place of described optical module to include: obtain logic
The level signal of the state in place for indicating described optical module that device is locally stored, wherein, described level is believed
Number including: low level signal and high level signal, described low level signal indicates described optical module in place, described
High level signal indicates described optical module the most in place.
Further, described optical module is connected with described logical device by holding wire in place.
Further, when described level signal is low level signal, the described optical module of described acquisition is locally stored
Status information include: read the status information that described optical module is locally stored;It is abnormal in described status information
Time, report this abnormal state information;When described status information is not abnormal, continue to read described optical module originally
The status information of ground storage.
Further, described method also includes: when described level signal is high level, periodically obtains and is used for
Indicate the signal of the state in place of described optical module.
Another aspect according to embodiments of the present invention, additionally provides the acquisition device of a kind of optical module status information,
It is characterized in that, including: the first acquisition module, for acquisition for indicating the state in place of described optical module
Signal;Second acquisition module, for when optical module described in the signal designation of described state in place is in place, obtains
The status information that described optical module is locally stored.
Further, described first acquisition module, be additionally operable to obtain logical device locally stored for indicating
Stating the level signal of the state in place of optical module, wherein, described level signal includes: low level signal and height electricity
Ordinary mail number, described low level signal indicates described optical module in place, and described high level signal indicates described optical module
The most in place.
Further, described optical module is connected with described logical device by holding wire in place.
Further, when described level signal is low level signal, described second acquisition module includes: first
Read unit, for reading the status information that described optical module is locally stored;Report unit, at described shape
When state information is abnormal, report this abnormal state information;Second reads unit, in described status information not
For time abnormal, continue to read the status information that described optical module is locally stored.
Further, described device also includes: the 3rd acquisition module, and being used in described level signal is high level
Time, periodically obtain the signal being used for indicating the state in place of described optical module.
In embodiments of the present invention, the signal of the state in place obtaining optical module is used, by the letter of state in place
Number determine that optical module is in place, then obtain optical module in place and be stored in the status information of this locality, learn that optical module is
No occur abnormal, it is to avoid optical module generation severely subnormal or cannot be reported by status information during external interference
Status information or the situation of state information report mistake, it is achieved thereby that it is accurate to improve optical module state information report
The technique effect that really rate is low, and then solve in solution correlation technique when optical module generation severely subnormal, cause shape
State information such as interrupt signal cannot correctly be sent or optical module itself is not inserted on veneer, but due to the external world
The interrupt signal mistake that causes of interference report and cause the problem that optical module state information report accuracy rate is low.
Accompanying drawing explanation
The accompanying drawing of the part constituting the application is used for providing a further understanding of the present invention, the signal of the present invention
Property embodiment and explanation thereof are used for explaining the present invention, are not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the annexation schematic diagram of optical module interrupt line and logical device in correlation technique;
Fig. 2 is the flow chart of the acquisition methods of optical module status information according to embodiments of the present invention;
Fig. 3 is the optional flow chart one of the acquisition methods of optical module status information according to embodiments of the present invention;
Fig. 4 is the optional flowchart 2 of the acquisition methods of optical module status information according to embodiments of the present invention;
Fig. 5 is the structured flowchart of the acquisition device of optical module status information according to embodiments of the present invention;
Fig. 6 is the optional structured flowchart one of the acquisition device of optical module status information according to embodiments of the present invention;
Fig. 7 is the optional structured flowchart two of the acquisition device of optical module status information according to embodiments of the present invention;
Fig. 8 be according to embodiments of the present invention in optical module interrupt line and the annexation schematic diagram of logical device;With
And
Fig. 9 is the software processing flow figure of the acquisition methods of optical module status information according to embodiments of the present invention.
Detailed description of the invention
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can
To be mutually combined.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described
Embodiment be only the present invention part embodiment rather than whole embodiments.Based in the present invention
Embodiment, the every other reality that those of ordinary skill in the art are obtained under not making creative work premise
Execute example, all should belong to the scope of protection of the invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing,
" second " etc. are for distinguishing similar object, without being used for describing specific order or precedence.Should
The data that this understanding so uses can be exchanged in the appropriate case, in order to embodiments of the invention described herein.
Additionally, term " includes " and " having " and their any deformation, it is intended that cover non-exclusive bag
Contain, such as, contain series of steps or the process of unit, method, system, product or equipment are not necessarily limited to
Those steps clearly listed or unit, but can include the most clearly listing or for these processes,
Other step that method, product or equipment are intrinsic or unit.
Embodiment 1
According to embodiments of the present invention, it is provided that the acquisition methods of a kind of optical module status information, Fig. 2 is according to this
The flow chart of the acquisition methods of the optical module status information of inventive embodiments, as in figure 2 it is shown, the embodiment of the present invention
Method include step S102-S104:
Step S102: obtain the signal being used for indicating the state in place of above-mentioned optical module;
Alternatively, the signal of the state in place of above-mentioned optical module can be saved in local storage and external memory storage
In, in one optional embodiment of the present embodiment, the signal of the state in place of optical module is saved in outside storage
In device, external memory storage is positioned in logical device.In another optional embodiment, obtain and be used for indicating
The signal of the state in place of above-mentioned optical module also include obtain logical device locally stored for indicating above-mentioned light
The level signal of the state in place of module, level signal, according to the height of the level of optical module place interface, is wrapped again
Include: low level signal and high level signal, depending on arranging with specific reference to the physical property of optical module interface and level,
In this embodiment, when optical module is in place, the level signal of optical module place interface is low level, on the contrary, when
When optical module is not in place, the level signal of optical module place interface is high level, say, that above-mentioned low level
The above-mentioned optical module of signal designation is in place, and above-mentioned high level signal indicates above-mentioned optical module the most in place.
Alternatively, above-mentioned optical module is connected with above-mentioned logical device, according to concrete application by holding wire in place
Scene, logical device can be connected with single optical module by holding wire in place, it is also possible to by holding wire in place
Being connected with multiple optical modules, holding wire in place can be independent IC bus IIC, simply citing at this
Illustrate, do not do any restriction.In an optional embodiment, logical device passes through iic bus with many
Individual optical module connects, in the signal process obtaining the state in place indicating above-mentioned optical module, according to optical module institute
At the physical address of interface, give and connect the IIC line numbering that above-mentioned optical module is corresponding, further according to numbering according to necessarily
Sequential obtain the signal of state in place indicating above-mentioned optical module successively, or obtain simultaneously and indicate above-mentioned light
The signal of the state in place of module.
Step S104: when the above-mentioned optical module of signal designation of above-mentioned state in place is in place, obtain above-mentioned optical mode
The status information that block is locally stored.
Alternatively, indicate the signal of the state in place of above-mentioned optical module, obtain the state in place of optical module, wherein,
State in place includes: optical module is in place and optical module is the most in place;The above-mentioned light of signal designation in above-mentioned state in place
When module is in place, when i.e. optical module is in place, obtaining above-mentioned optical module status information, the status information of optical module can
To be stored in this locality or to be stored in external memory storage, with specific reference to different scenes and the optical mode of different manufacturers
Depending on block, the present embodiment does not do any restriction, in an optional embodiment, and reaction optical module work shape
The status information of state is stored in local storage, obtains the status information that above-mentioned optical module is locally stored.
Fig. 3 is the optional flow chart one of the acquisition methods of optical module status information according to embodiments of the present invention, as
Shown in Fig. 3, when above-mentioned level signal is low level signal, when i.e. indicating above-mentioned optical module in place, the present invention
The method of embodiment includes step S202-S206:
Step S202: read the status information that above-mentioned optical module is locally stored;
Alternatively, the status information of optical module is stored in local storage, by reading above-mentioned local storage,
Obtain the status information that above-mentioned optical module is locally stored.
Step S204: when above-mentioned status information is abnormal, report this abnormal state information;
Alternatively, the status information of optical module includes real time status information and historic state information, believes according to state
Time or the priority of status information that breath produces are stored in local storage, and one according to the present invention can
The embodiment of choosing, obtains the real time status information of above-mentioned optical module, shows above-mentioned at the real time status information obtained
When optical module is abnormality, report this abnormal state information, it is also possible to produce warning message and abnormality letter
The diagnostic message of breath.
Step S206: when above-mentioned status information is not abnormal, continue to read above-mentioned optical module locally stored
Status information.
Alternatively, when the above-mentioned status information read is not abnormal, when i.e. optical module is in normal condition,
According to certain cycle, such as 0.1S, continue training in rotation and read the status information that above-mentioned optical module is locally stored, directly
It is abnormal to the status information read.
As an optional embodiment, when the above-mentioned status information read is not abnormal, i.e. optical module is place
When normal condition, it is also possible to first obtain the signal of state in place for indicating above-mentioned optical module, above-mentioned
When the above-mentioned optical module of signal designation of position state is in place, obtain the status information that above-mentioned optical module is locally stored, or
Person, reads after some cycles continuing training in rotation, such as 10 cycles, after 1S, then goes back to obtain for instruction
State the signal of the state in place of optical module, when the above-mentioned optical module of signal designation of above-mentioned state in place is in place, obtain
Take the status information that above-mentioned optical module is locally stored, the most back and forth, until the status information read is abnormal.
Fig. 4 is the optional flowchart 2 of the acquisition methods of optical module status information according to embodiments of the present invention,
In this example, obtain for indicating the signal of the state in place of above-mentioned optical module to can also is that acquisition logical device originally
The level signal of the state in place for indicating above-mentioned optical module of ground storage.As shown in Figure 4, at above-mentioned level
When signal is high level signal, when i.e. indicating above-mentioned optical module not in place, the method for the embodiment of the present invention includes step
Step S102 in rapid S302 and above-described embodiment:
Step S302, periodically obtains the signal being used for indicating the state in place of above-mentioned optical module.
Alternatively, it is high level signal in the level signal obtained, when the most above-mentioned optical module is not in place, according to one
In the fixed cycle, such as 0.2S, continue training in rotation and read the signal of the state in place for indicating above-mentioned optical module, directly
Above-mentioned optical module is indicated to be state in place to the level signal read.
In embodiments of the present invention, the signal of the state in place obtaining optical module is used, by the letter of state in place
Number determine that optical module is in place, then obtain optical module in place and be stored in the status information of this locality, learn that optical module is
No occur abnormal, it is to avoid optical module generation severely subnormal or cannot be reported by status information during external interference
Status information or the situation of state information report mistake, it is achieved thereby that it is accurate to improve optical module state information report
The technique effect that really rate is low, and then solve in solution correlation technique when optical module generation severely subnormal, cause shape
State information such as interrupt signal cannot correctly be sent or optical module itself is not inserted on veneer, but due to the external world
The interrupt signal mistake that causes of interference report and cause the technology that optical module state information report accuracy rate is low to be asked
Topic.
Embodiment 2
Another aspect according to embodiments of the present invention, additionally provides the acquisition device of optical module status information.Fig. 5
It is the structured flowchart of the acquisition of optical module status information according to embodiments of the present invention, as it is shown in figure 5, this device
Including: the first acquisition module 40;Second acquisition module 42, is of coupled connections with the first acquisition module 40.
First acquisition module 40, for obtaining the signal of the state in place for indicating above-mentioned optical module;
Alternatively, the signal of the state in place of above-mentioned optical module can be saved in local storage and external memory storage
In, in one optional embodiment of the present embodiment, the signal of the state in place of optical module is saved in outside storage
In device, being positioned in logical device in external memory storage, it is locally stored that the first acquisition module 40 obtains logical device
The level signal of state in place for indicating above-mentioned optical module, level signal is according to optical module place interface
The height of level, includes again: low level signal and high level signal, with specific reference to the physical property of optical module interface
Depending on matter and level are arranged, in this embodiment, when optical module is in place, the level signal of optical module place interface
For low level, on the contrary, when optical module is not in place, the level signal of optical module place interface is high level, also
That is, above-mentioned low level signal indicates above-mentioned optical module in place, and above-mentioned high level signal indicates above-mentioned optical module
The most in place.
Alternatively, above-mentioned optical module is connected with above-mentioned logical device by holding wire in place, according to concrete scene,
Logical device can be connected with single optical module by holding wire in place, it is also possible to by holding wire in place with multiple
Optical module connects, and holding wire in place can be independent IC bus IIC, is merely illustrative at this,
Do not do any restriction.In an optional embodiment, logical device is by iic bus and multiple optical modules
Connecting, the first acquisition module 40 indicates in the signal process of the state in place of above-mentioned optical module in acquisition, according to
The physical address of optical module place interface, gives and connects the IIC line numbering that above-mentioned optical module is corresponding, further according to numbering
Obtain the signal of the state in place indicating above-mentioned optical module according to certain sequential successively, or acquisition refers to simultaneously
Show the signal of the state in place of above-mentioned optical module.
Second acquisition module 42, for when the above-mentioned optical module of signal designation of above-mentioned state in place is in place, obtains
Take the status information that above-mentioned optical module is locally stored.
Alternatively, indicate the signal of the state in place of above-mentioned optical module, obtain the state in place of optical module, in place
State includes: optical module is in place and optical module is not in place, at the above-mentioned optical module of signal designation of above-mentioned state in place
Time in place, when i.e. optical module is in place, the second acquisition module 42 obtains above-mentioned optical module status information, optical module
Status information can not be stored in this locality or be stored in external memory storage, with specific reference to different scenes and not
Depending on the optical module of producer, the present embodiment does not do any restriction, in an optional embodiment, and reaction
The status information of optical module duty is stored in local storage, and the second acquisition module 42 obtains above-mentioned light
The status information of module local storage.
Fig. 6 is the optional structured flowchart one of the acquisition of optical module status information according to embodiments of the present invention, such as figure
Shown in 6, the second acquisition module 42 also includes: first reads unit 50;Report unit 52, read with first
Unit 50 is of coupled connections;Second reads unit 52, reads unit 50 with first and is of coupled connections.
First reads unit 50, for reading the status information that above-mentioned optical module is locally stored;
Alternatively, the status information of optical module is stored in local storage, and first reads unit 50 by reading
Take above-mentioned local storage, obtain the status information that above-mentioned optical module is locally stored.
Report unit 52, for when above-mentioned status information is abnormal, reporting this abnormal state information;
Alternatively, the status information of optical module includes real time status information and historic state information, believes according to state
Time or the priority of status information that breath produces are stored in local storage, and one according to the present invention can
The embodiment of choosing, obtains the real time status information of above-mentioned optical module, and the first reading unit 50 is real-time read
Status information shows when above-mentioned optical module is abnormality, reports unit 52 to report this abnormal state information, also
The diagnostic message of warning message and abnormal state information can be produced.
Second reads unit 54, for when above-mentioned status information is not abnormal, continuing to read above-mentioned optical module
Locally stored status information.
Alternatively, when the first above-mentioned status information reading unit 50 reading is not abnormal, i.e. optical module is
When being in normal condition, the second reading unit 54, according to certain cycle, such as 0.1S, continues training in rotation and reads
State the status information that optical module is locally stored, until the status information read is abnormal.
As an optional embodiment, when the above-mentioned status information read is not abnormal, i.e. optical module is place
When normal condition, it is also possible to first obtain the signal of state in place for indicating above-mentioned optical module, above-mentioned
When the above-mentioned optical module of signal designation of position state is in place, obtain the status information that above-mentioned optical module is locally stored, or
Person, reads after some cycles continuing training in rotation, such as 10 cycles, after 1S, then goes back to obtain for instruction
State the signal of the state in place of optical module, when the above-mentioned optical module of signal designation of above-mentioned state in place is in place, obtain
Take the status information that above-mentioned optical module is locally stored, the most back and forth, until the status information read is abnormal.
Fig. 7 is the optional structured flowchart two of the acquisition of optical module status information according to embodiments of the present invention, such as figure
Shown in 7, this device includes: the 3rd acquisition module 60 is of coupled connections with the first acquisition module 40.
3rd acquisition module 60, for when above-mentioned level signal is high level, periodically obtains and is used for indicating
The signal of the state in place of above-mentioned optical module.
Alternatively, the level signal obtained at the first acquisition module 40 is high level signal, the most above-mentioned optical module
Time in place, the 3rd acquisition module 60, according to certain cycle, such as 0.2S, continues training in rotation reading and is used for indicating
The signal of the state in place of above-mentioned optical module, until the level signal read indicates above-mentioned optical module to be state in place.
In embodiments of the present invention, the signal of the state in place obtaining optical module is used, by the letter of state in place
Number determine that optical module is in place, then obtain optical module in place and be stored in the status information of this locality, learn that optical module is
No occur abnormal, it is to avoid optical module generation severely subnormal or cannot be reported by status information during external interference
Status information or the situation of state information report mistake, it is achieved thereby that it is accurate to improve optical module state information report
The technique effect that really rate is low, and then it is low to solve optical module state information report accuracy rate in solution correlation technique
Technical problem.
Embodiment 3
Fig. 8 be according to embodiments of the present invention in optical module interrupt line and the annexation schematic diagram of logical device, as
Shown in Fig. 8, this enforcement provides a set of IIC interface, is used for accessing optical module internal register.At hardware even
Connecting, cast out the connection of interrupt signal line, the mode using holding wire in place to connect high level is connected to logical device.
Aspect is set at logical device depositor, casts out interrupt register, use at bit status register, only focus on light
Module is the most in place, is not concerned with whether optical module has interrupt signal to export.Connect based on foregoing circuit, processor
The situation in place of poll optical module, then continues poll for optical module the most in place at set intervals, for
The optical module of position is then read out the operation of optical module internal abnormality depositor.Abnormal when reading certain optical module
When depositor is abnormality or IIC accesses unsuccessfully, directly report user.
Optical module has a lot of standard, as a example by the present embodiment parallel optical module CXP under Infiniband architecture,
But it is merely illustrative, in the actual application of this programme, it is not only limited in this kind of optical module, other standards
Optical module device all can use the technical program to realize.
Optical module is connected to logical device by iic bus, and the most all optical modules all have independent IIC interface
It is connected to logical device.Logical device is connected to processor, processor by parallel data bus line and address bus
The depositor within logical device can be accessed by data/address bus and address bus.The signal in place of optical module is even
Receive logical device.The signal in place of optical module is pulled upward to high level.
By the hardware plan of the present embodiment, circuit connection eliminates the interrupt signal line in correlation technique, only
Use holding wire in place.Signal in place is connected to high level by resistance, when optical module inserts light inlet, due to
This level is pulled down to low level by optical module shell, it is possible to reads in bit register at corresponding optical module and changes
Module information in place is by becoming in place the most in place.
Being above hardware connection scheme, software scenario is as follows:
Logical device one group of depositor of internal definition, is used for storing the information in place of optical module.Optical module in place
Signal is usually high level when optical module is not inserted into interface, is usually low level when inserting interface.Depositor
The current level value of interior storage all optical modules interface signal in place, in place with 0 for optical module, 1 is optical module
The most in place.Processor can by read and write logical device depositor, analog access optical module IIC interface time
Sequence.Processor can read the internal register of optical module by the way.The internal register of optical module must
Must be the depositor depositing optical module abnormality, the exception that optical module occurs be deposited by this depositor.Processor is every
Every a period of time poll at bit register, obtain the optical module state in place of current all light mouths.Register value is
(1) not in place, repeat the operation at bit register of the above-mentioned poll.Register value is (0) in place,
Processor accesses the exception register of optical module by logical device.Above-mentioned register value is not have exception, weight
The above-mentioned poll of new execution is in the operation of bit register.Above-mentioned register value be have abnormal, first by abnormal information
Report, then re-execute the operation at bit register of the above-mentioned poll.
The scheme provided according to this enforcement, first can reduce optical module and be connected to the signal number of logical device, in
Break signal can connect, and processor is also without opening up the process of interrupt response exclusively for optical module and being correlated with
Depositor.Holding wire in place, relative to interrupt signal line, is more not easily disturbed, and reason is only at light
When module is inserted into or extracts system board, this signal just has the change of level.Even if by external interference
In the case of judge by accident, optical module the most in place is thought in place, subsequently through IIC interface accessing optical module
The operation of depositor also can find that this optical module reality is not in place immediately, and reliability is higher than common scheme.Need
Bright, for aforesaid each method embodiment, in order to be briefly described, therefore it is all expressed as a series of dynamic
Combining, but those skilled in the art should know, the present invention is not limited by described sequence of movement,
Because according to the present invention, some step can use other orders or carry out simultaneously.Secondly, art technology
Personnel also should know, embodiment described in this description belongs to preferred embodiment, involved action and
Necessary to the module not necessarily present invention.
Fig. 9 is the software processing flow figure of the acquisition methods of optical module status information according to embodiments of the present invention,
As shown in Figure 9:
Step S902: read the optical module within logical device at bit status register;
Step S904: judge that optical module is the most in place, when judged result is for being, performs step S906,
When judged result is no, perform step S902;
Step S906: read the exception register within corresponding optical module by IIC;
Step S908: judge whether readings has exception, when judged result is for being, performs step S910;?
When judged result is no, directly perform step S912;
Step S910: abnormal information reported, performs step S902 afterwards;
Step S912: time delay a period of time, performs step S902 afterwards.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not describe in detail in certain embodiment
Part, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, can be passed through other
Mode realize.Such as, device embodiment described above is only schematically, such as said units
Dividing, be only a kind of logic function and divide, actual can have other dividing mode when realizing, the most multiple
Unit or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not holds
OK.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be to pass through
The INDIRECT COUPLING of some interfaces, device or unit or communication connection, can be being electrical or other form.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, as list
The parts of unit's display can be or may not be physical location, i.e. may be located at a place, or also may be used
To be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs
Realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also
Can be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.
Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit is real
Existing.
If above-mentioned integrated unit realizes using the form of SFU software functional unit and as independent production marketing or
During use, can be stored in a computer read/write memory medium.Based on such understanding, the present invention's
Part that correlation technique is contributed by technical scheme the most in other words or the whole or portion of this technical scheme
Dividing and can embody with the form of software product, this computer software product is stored in a storage medium,
Including some instructions with so that computer equipment (can be personal computer, mobile terminal, server or
Person's network equipment etc.) perform each embodiment said method of the present invention all or part of step.And aforesaid deposit
Storage media includes: USB flash disk, read only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can store program code
Medium.
These are only the alternative embodiment of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, institute
Any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.
Claims (10)
1. the acquisition methods of an optical module status information, it is characterised in that including:
Obtain the signal being used for indicating the state in place of described optical module;
When optical module described in the signal designation of described state in place is in place, obtains described optical module this locality and deposit
The status information of storage.
Method the most according to claim 1, it is characterised in that described acquisition is for indicating described optical module
The signal of state in place includes:
Obtain the level signal of the locally stored state in place for indicating described optical module of logical device,
Wherein, described level signal includes: low level signal and high level signal, and described low level signal indicates
Described optical module is in place, and described high level signal indicates described optical module the most in place.
Method the most according to claim 2, it is characterised in that described optical module passes through holding wire in place and institute
State logical device to connect.
Method the most according to claim 3, it is characterised in that when described level signal is low level signal,
The locally stored status information of the described optical module of described acquisition includes:
Read the status information that described optical module is locally stored;
When described status information is abnormal, report the status information of this exception;
When described status information is not abnormal, continue to read the status information that described optical module is locally stored.
Method the most according to claim 3, it is characterised in that described method also includes:
When described level signal is high level, periodically obtain the shape in place for indicating described optical module
The signal of state.
6. the acquisition device of an optical module status information, it is characterised in that including:
First acquisition module, for obtaining the signal of the state in place for indicating described optical module;
Second acquisition module, for when optical module described in the signal designation of described state in place is in place, obtains
Take the status information that described optical module is locally stored.
Device the most according to claim 6, it is characterised in that
Described first acquisition module, be additionally operable to obtain logical device locally stored for indicating described optical mode
The level signal of the state in place of block, wherein, described level signal includes: low level signal and high level
Signal, described low level signal indicates described optical module in place, and described high level signal indicates described optical mode
Block is the most in place.
Device the most according to claim 7, it is characterised in that described optical module passes through holding wire in place and institute
State logical device to connect.
Device the most according to claim 8, it is characterised in that when described level signal is low level signal,
Described second acquisition module includes:
First reads unit, for reading the status information that described optical module is locally stored;
Report unit, for when described status information is abnormal, reporting the status information of this exception;
Second reads unit, for when described status information is not abnormal, continuing to read described optical module
Locally stored status information.
Device the most according to claim 8, it is characterised in that described device also includes:
3rd acquisition module, for when described level signal is high level, periodically obtains and is used for indicating
The signal of the state in place of described optical module.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510321411.5A CN106294040B (en) | 2015-06-11 | 2015-06-11 | Method and device for acquiring optical module state information |
PCT/CN2016/071211 WO2016197606A1 (en) | 2015-06-11 | 2016-01-18 | Method and device for acquiring optical module state information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510321411.5A CN106294040B (en) | 2015-06-11 | 2015-06-11 | Method and device for acquiring optical module state information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106294040A true CN106294040A (en) | 2017-01-04 |
CN106294040B CN106294040B (en) | 2020-07-03 |
Family
ID=57502837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510321411.5A Active CN106294040B (en) | 2015-06-11 | 2015-06-11 | Method and device for acquiring optical module state information |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106294040B (en) |
WO (1) | WO2016197606A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108667515A (en) * | 2018-04-23 | 2018-10-16 | 新华三技术有限公司 | Port configuration method and communication equipment |
CN109100116A (en) * | 2018-05-24 | 2018-12-28 | 烽火通信科技股份有限公司 | A kind of optical module fault diagnosis system and method |
CN109450530A (en) * | 2018-12-21 | 2019-03-08 | 安徽皖兴通信息技术有限公司 | A kind of optical module received optical power overload protective device and guard method |
CN109814045A (en) * | 2017-11-17 | 2019-05-28 | 中兴通讯股份有限公司 | A kind of device and method for testing optical interface |
WO2019128953A1 (en) * | 2017-12-29 | 2019-07-04 | 华为技术有限公司 | Single board of optical line terminal and optical line terminal |
CN110417464A (en) * | 2019-07-18 | 2019-11-05 | 锐捷网络股份有限公司 | A kind of fault handling method and device, computer installation and readable storage medium storing program for executing |
CN111147320A (en) * | 2019-11-29 | 2020-05-12 | 苏州浪潮智能科技有限公司 | Port information monitoring method, device, equipment and readable storage medium |
CN111224715A (en) * | 2019-11-29 | 2020-06-02 | 四川天邑康和通信股份有限公司 | Method for rapidly screening LOS state abnormality based on 10G PON optical module |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1584790A (en) * | 2004-06-11 | 2005-02-23 | Ut斯达康通讯有限公司 | Pick up device and method for data in plugable optical modular inner memory |
CN101867488A (en) * | 2010-06-11 | 2010-10-20 | 中兴通讯股份有限公司 | Single board in-place information monitoring and recording device and method |
CN102590689A (en) * | 2011-01-14 | 2012-07-18 | 中兴通讯股份有限公司 | Device for detecting in-place of small form-factor pluggable (SFP) optical modules |
JP2012160027A (en) * | 2011-02-01 | 2012-08-23 | Hitachi Ltd | Diagnostic method for channel device |
CN104063296A (en) * | 2014-06-30 | 2014-09-24 | 华为技术有限公司 | Veneer in-place state detection method and device |
CN104639375A (en) * | 2015-03-03 | 2015-05-20 | 大唐移动通信设备有限公司 | Interface management method and network equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006087805A1 (en) * | 2005-02-18 | 2006-08-24 | Fujitsu Limited | Optical communication device and optical communication control method |
JP2006313071A (en) * | 2005-05-06 | 2006-11-16 | Seikoh Giken Co Ltd | Optical electric field sensor with abnormality detection function |
-
2015
- 2015-06-11 CN CN201510321411.5A patent/CN106294040B/en active Active
-
2016
- 2016-01-18 WO PCT/CN2016/071211 patent/WO2016197606A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1584790A (en) * | 2004-06-11 | 2005-02-23 | Ut斯达康通讯有限公司 | Pick up device and method for data in plugable optical modular inner memory |
CN101867488A (en) * | 2010-06-11 | 2010-10-20 | 中兴通讯股份有限公司 | Single board in-place information monitoring and recording device and method |
CN102590689A (en) * | 2011-01-14 | 2012-07-18 | 中兴通讯股份有限公司 | Device for detecting in-place of small form-factor pluggable (SFP) optical modules |
JP2012160027A (en) * | 2011-02-01 | 2012-08-23 | Hitachi Ltd | Diagnostic method for channel device |
CN104063296A (en) * | 2014-06-30 | 2014-09-24 | 华为技术有限公司 | Veneer in-place state detection method and device |
CN104639375A (en) * | 2015-03-03 | 2015-05-20 | 大唐移动通信设备有限公司 | Interface management method and network equipment |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109814045A (en) * | 2017-11-17 | 2019-05-28 | 中兴通讯股份有限公司 | A kind of device and method for testing optical interface |
WO2019128953A1 (en) * | 2017-12-29 | 2019-07-04 | 华为技术有限公司 | Single board of optical line terminal and optical line terminal |
CN109995436A (en) * | 2017-12-29 | 2019-07-09 | 北京华为数字技术有限公司 | The veneer and optical line terminal of optical line terminal |
US11429551B2 (en) | 2017-12-29 | 2022-08-30 | Huawei Technologies Co., Ltd. | Board of optical line terminal and optical line terminal |
CN108667515A (en) * | 2018-04-23 | 2018-10-16 | 新华三技术有限公司 | Port configuration method and communication equipment |
CN109100116A (en) * | 2018-05-24 | 2018-12-28 | 烽火通信科技股份有限公司 | A kind of optical module fault diagnosis system and method |
CN109450530A (en) * | 2018-12-21 | 2019-03-08 | 安徽皖兴通信息技术有限公司 | A kind of optical module received optical power overload protective device and guard method |
CN110417464A (en) * | 2019-07-18 | 2019-11-05 | 锐捷网络股份有限公司 | A kind of fault handling method and device, computer installation and readable storage medium storing program for executing |
CN111147320A (en) * | 2019-11-29 | 2020-05-12 | 苏州浪潮智能科技有限公司 | Port information monitoring method, device, equipment and readable storage medium |
CN111224715A (en) * | 2019-11-29 | 2020-06-02 | 四川天邑康和通信股份有限公司 | Method for rapidly screening LOS state abnormality based on 10G PON optical module |
CN111224715B (en) * | 2019-11-29 | 2020-10-23 | 四川天邑康和通信股份有限公司 | Method for rapidly screening LOS state abnormality based on 10G PON optical module |
Also Published As
Publication number | Publication date |
---|---|
CN106294040B (en) | 2020-07-03 |
WO2016197606A1 (en) | 2016-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106294040A (en) | The acquisition methods of optical module status information and device | |
CN105068929A (en) | Test script generation method, test script generation device, testing method, testing device and testing system | |
CN108683562A (en) | Abnormality detection localization method, device, computer equipment and storage medium | |
CN103631688B (en) | A kind of method and system of test interface signal | |
CN109656767A (en) | A kind of acquisition methods, system and the associated component of CPLD status information | |
CN105335570A (en) | Method for netlist comparison based on connection relationship of pins of components | |
CN103345439B (en) | A kind of full link monitoring method of health state of information system and device | |
CN105988905A (en) | Exception processing method and apparatus | |
CN109684166A (en) | Method, apparatus, terminal and the storage medium of automatic test Sensor log normalization | |
CN109918246A (en) | A kind of disk state detection method, system, terminal and storage medium | |
CN109217922A (en) | A kind of method and device that optical module reports Received Loss Of Signal to alert | |
CN107331421A (en) | A kind of SD card test system and method based on FPGA | |
CN109739700A (en) | A kind of interface test method and device | |
CN104809250B (en) | A kind of loose formula data consistency verification method | |
CN106199381A (en) | The automatic testing method of convertible frequency air-conditioner mainboard and device | |
CN109407655A (en) | A kind of method and device for debugging chip | |
CN109408304A (en) | Block chain introduces test method, device, equipment and readable storage medium storing program for executing | |
CN109522263A (en) | A kind of I2C link monitoring system | |
CN109067605A (en) | A kind of storage subsystem method for diagnosing faults, device, terminal and storage medium | |
CN103995765B (en) | A kind of LED control card Auto-Test System and method | |
CN109426598A (en) | A kind of hard disk state indicator lamp control method and device | |
CN104678292B (en) | A kind of complex programmable logic device (CPLD) test method and device | |
CN104572515B (en) | Tracking module, method, system and on-chip system chip | |
CN110020780A (en) | The method, apparatus and electronic equipment of information output | |
CN109697310A (en) | A kind of function verification method and system applied to ahb bus matrix design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |