CN110380785A - A kind of digital diagnostic information acquisition methods, device and optical module - Google Patents
A kind of digital diagnostic information acquisition methods, device and optical module Download PDFInfo
- Publication number
- CN110380785A CN110380785A CN201910758222.2A CN201910758222A CN110380785A CN 110380785 A CN110380785 A CN 110380785A CN 201910758222 A CN201910758222 A CN 201910758222A CN 110380785 A CN110380785 A CN 110380785A
- Authority
- CN
- China
- Prior art keywords
- diagnostic information
- digital diagnostic
- preset value
- optical module
- obtains
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/25—Arrangements specific to fibre transmission
- H04B10/2589—Bidirectional transmission
- H04B10/25891—Transmission components
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/40—Transceivers
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
The embodiment of the invention provides a kind of digital diagnostic information acquisition methods, device and optical modules, belong to technical field of optical fiber communication.Method provided in an embodiment of the present invention obtains the instruction that the triggering of enabler flags position externally sends acquisition digital diagnostic information by word diagnostic message, which is loaded into emergent light in a manner of low-frequency modulation signal, is not conflicted with normal data communication service;When receiving accurate digital diagnostic information, obtaining Success Flag position by digital diagnostic information prompts host computer to be read out, the acquisition that Success Flag position prompts optical module that digital diagnostic information is completed is obtained by digital diagnostic information after host computer reading, optical module modification digital diagnostic information obtains enabler flags position to stop the execution of this method;Technical solution provided in an embodiment of the present invention may be implemented to obtain the digital diagnostic information of distal end optical module.
Description
Technical field
This application involves technical field of photo communication more particularly to a kind of digital diagnostic information acquisition methods, device and optical mode
Block.
Background technique
In access network communication system, by establishing mutual light connects between optical line terminal and optical network unit, with reality
Existing data communication.Specifically, there is the first optical module in optical line terminal, there is in optical network unit the second optical module, first
Light connects are established between optical module and the second optical module;Optical line terminal sends light letter to the second optical module by the first optical module
Number, realize that optical line terminal sends data to optical network unit;Optical line terminal is received by the first optical module and comes from the second light
The optical signal of module realizes that optical line terminal receives the data from optical network unit.
In above-mentioned communication system, optical line terminal and optical network unit are the host computers of optical module.Wherein, host computer will
Datagram number inputs in optical module, and the datagram number is converted to optical signal by optical module and is issued, to realize that host computer is sent out
Send data;Optical module will be converted to datagram number from external optical signal, which be inputted host computer, with reality
Existing host computer receives data.
Since optical module is only data transmitter in host computer, optical module can only be manipulated by its host computer, so
It needs manually to manipulate optical module indirectly by host computer.And in access net physical network, optical line terminal and/or optical-fiber network
Unit, which is often positioned in, is not easy to manually-operated environment, for example in high mountain, forest even water body, operates under these circumstances upper
Machine all becomes very difficult using host computer manipulation optical module.
Summary of the invention
This application provides a kind of digital diagnostic information acquisition methods, device and optical modules, so that optical module can be real
Existing remote control.
According to the embodiment of the present application in a first aspect, provide a kind of digital diagnostic information acquisition methods, this method comprises:
Judge that digital diagnostic information obtains whether enabler flags position is modified to the first preset value;
When digital diagnostic information, which obtains enabler flags position, is modified to the first preset value, the instruction of digital diagnostic information will acquire
It is loaded into emergent light in a manner of low-frequency modulation signal;
Digital diagnostic information is obtained Success Flag position when digital diagnostic information is accurate by the digital diagnostic information for receiving passback
It is revised as third preset value;
When digital diagnostic information, which obtains Success Flag position, is modified to four preset values, digital diagnostic information is obtained into enabled mark
It is revised as the second preset value in will position.
According to the second aspect of the embodiment of the present application, a kind of digital diagnostic information acquisition device is provided, which includes
Processor and memory, in which:
The memory, for storing program code;
The processor for reading the program code stored in the memory, and executes the embodiment of the present application first aspect
Provided method.
According to the third aspect of the embodiment of the present application, a kind of optical module is provided, which is characterized in that the optical module includes light
Emitting module, printed circuit board and the MCU being arranged on the printed circuit board, in which:
Data sink provided by the embodiment of the present application second aspect is equipped in the MCU;
The light emission component is connect by printed circuit board with MCU.
As seen from the above-described embodiment, digital diagnostic information acquisition methods, device and optical module provided in this embodiment, number
After diagnostic message acquisition enabler flags position is modified to the first preset value, the instruction of digital diagnostic information will acquire with low frequency modulations
The mode of signal is loaded into emergent light;The digital diagnostic information for receiving passback examines number when digital diagnostic information is accurate
It is revised as third preset value in disconnected acquisition of information Success Flag position;The 4th is modified to when digital diagnostic information obtains Success Flag position
When preset value, the second preset value is revised as in digital diagnostic information acquisition enabler flags position;This method passes through word diagnostic message
It obtains the triggering of enabler flags position and externally sends the instruction for obtaining digital diagnostic information, which is added in a manner of low-frequency modulation signal
It is downloaded in emergent light, does not conflict with normal data communication service;When receiving accurate digital diagnostic information, pass through number
Diagnostic message obtain Success Flag position prompt host computer be read out, after host computer reading after by digital diagnostic information acquisition at
The acquisition of digital diagnostic information is completed in function flag bit prompt optical module, and optical module modifies digital diagnostic information and obtains enabler flags
Position is to stop the execution of this method;The number that technical solution provided in an embodiment of the present invention may be implemented to obtain distal end optical module is examined
Disconnected information.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, letter will be made to attached drawing needed in the embodiment below
Singly introduce, it should be apparent that, for those of ordinary skills, without any creative labor,
It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the host computer basic structure schematic diagram of optical module provided by the embodiments of the present application;
Fig. 2 is the partial structural diagram in host computer provided by the embodiments of the present application;
Fig. 3 is a kind of optical module and optical module joint connecting structure sectional view provided by the embodiments of the present application;
Fig. 4 is electric connector structure schematic diagram in a kind of optical module interface provided by the embodiments of the present application;
Fig. 5 provides optical module golden finger structure schematic diagram for the embodiment of the present application;
Fig. 6 is optical module structure schematic diagram provided by the embodiments of the present application;
Fig. 7 is optical module decomposition texture schematic diagram provided by the embodiments of the present application;
Fig. 8 is a kind of basic procedure schematic diagram of digital diagnostic information acquisition methods provided in this embodiment;
Fig. 9 is the basic procedure schematic diagram of another digital diagnostic information acquisition methods provided in this embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
It can only be manipulated by its host computer for current optical module, that is, need manually to manipulate light indirectly by host computer
Module, brought problem inconvenient for operation can be using a kind of new communication mode, so that optical module is not only controlled by it
The host computer of access also may be implemented remote control, and then can also be realized by the remote control to optical module to host computer
Remote control.
Optical module, which is used in technical field of optical fiber communication, realizes photoelectric converting function, wherein optical signal and electric signal
Mutual conversion is the core function of optical module.Fig. 1 is that the host computer basic structure of optical module 30 provided by the embodiments of the present application is shown
It is intended to.Fig. 2 is the partial structural diagram in host computer provided by the embodiments of the present application.As shown in Figure 1 and Figure 2, host computer includes
Upper cover body 10, lower cover 20, circuit board 40 and optical module 30, upper cover body 10 and lower cover 20 form package circuit board 40 and optical mode
The cavity of block 30 has optical module interface 401 and cable interface 402 on circuit board 40.
Wherein, optical module interface 401 is used to access optical module 30, and electric connector 4011 is provided in optical module interface 401,
For accessing the optical modules power port such as golden finger, it is connect to establish two-way electric signal with optical module 30;Cable interface 402 is used for
Cable is accessed, two-way electric signal is established with cable and connect;Connection is established by host computer between optical module 30 and cable, specifically
Signal from optical module 30 is passed to cable by ground, host computer, and the signal from cable is passed to optical module 30, host computer
Monitor the work of optical module 30.
The optical port of optical module 30 is connect with optical fiber, is established two-way optical signal with optical fiber and is connect;The power port of optical module 30 connects
Enter in host computer, establishes two-way electric signal with optical network unit and connect;Optical module 30 realizes the mutual of optical signal and electric signal
Conversion establishes connection to realize between optical fiber and host computer;Specifically, the optical signals optical module 30 from optical fiber is converted
To be input in host computer after electric signal, the electric signal from host computer is converted to optical signal by optical module 30 and is input to optical fiber
In.
Fig. 3 is a kind of optical module and optical module joint connecting structure sectional view provided by the embodiments of the present application, and Fig. 4 is this Shen
Please electric connector structure schematic diagram in a kind of optical module interface for providing of embodiment, Fig. 5 provides optical module for the embodiment of the present application
Golden finger structure schematic diagram.As shown in figure 3, figure 4 and figure 5, the optical module of 301 end of the circuit board insertion host computer of optical module connects
In mouth 401, being electrically connected between optical module and host computer is realized.Specifically, there is electric connector in optical module interface 401
4011, the bullet that electric connector 4011 has the gap for accommodating optical module circuit board 40 and is pressed together on 40 surface of optical module circuit board
Piece 4012, the surface of 301 end of optical module circuit board have a golden finger 3011 in metal pins shape, in electric connector 4011
Elastic slice contacts to realize and conduct with golden finger.
Fig. 6 is optical module structure schematic diagram provided by the embodiments of the present application.Fig. 7 is optical module provided by the embodiments of the present application
Decomposition texture schematic diagram.As shown in Figure 6, Figure 7, optical module 200 provided by the embodiments of the present application includes circuit board 301, upper housing
302, lower case 303, optical transceiving device 304(include light emission component and light-receiving component) and release lever 307.
Upper housing 302 and lower case 303 form tool there are two the package cavity being open, and specifically can be unidirectional
Both ends open (305,306) is also possible to be open at two in different directions;One of opening is power port 305, for inserting
Enter in the host computers such as optical network unit, another opening is optical port 306, is accessed for external fiber to connect internal optical fiber, electricity
The photoelectric devices such as road plate 301, optical transceiving device 304 are located in package cavity.
Upper housing 302 and lower case 303 generally use metal material, are conducive to realize electromagnetic shielding and heat dissipation.Unlock hand
Handle 303 is located at the outer wall of package cavity/lower case 303, and the end of release lever 307 is pulled release lever 307 can be made to exist
Outer wall surface relative movement;Optical module is fixed on the optical module of host computer by optical module by release lever 307 when being inserted into host computer
In interface 401, by pulling release lever 307 to release the snap-fit relationship of optical module and host computer, so as to by optical module
From the inner extraction of optical module interface 401 of host computer.
The golden finger 3011 on 301 surface of optical module circuit board has I2C pin, can use between host computer and optical module
I2C agreement carries out information transmitting by I2C pin.Information can be written to optical module in host computer, and specifically, host computer can be with
It writes information into the register of optical module;Information can not be written to host computer in optical module, when optical module needs to provide information
When to host computer, optical module can write information into the default register in optical module (such as transmission state of the present embodiment setting
Register, data send failure register etc.), the register is read out by host computer, the register of optical module generally collects
At in the microprocessor of optical module (MCU) 3012, can also be independently arranged on the circuit board 301 of optical module.
Further, during the work time, it is arranged in the present embodiment can be according to from optical line terminal for the optical module
Datagram number issues the data optical signal of relative high frequency, to keep the original outbound data transmission services of optical line terminal, together
When, which issues the manipulation of rather low-frequency also according to non-data electric signal (being not intended to the signal of normal transmission business)
Optical signal is realized and is transmitted while not interrupting regular traffic to far end system to issue manipulation information to the optical module of opposite end
Data are manipulated, for example, realizing the online upgrading of far end system using low frequency message channel conveyer system upgrade package, reporting DDM(number
Word diagnosis monitoring, Digital Diagnostic Monitoring) information etc..
Since the optical module of the optical module and opposite end is all made of an optical fiber external connection, so data optical signal and manipulation
Optical signal is blended in same light beam, and to be transmitted using same root optical fiber, in order to distinguish to unlike signal, the present embodiment is set
Setting data optical signal has different frequencies from manipulation optical signal.It, can be by micro- in optical module on its implementation
The design of processor 3012 and optical transceiving device 304 makes microprocessor 3012 control optical transceiving device 304, in the height that it is issued
Low-frequency modulation signal (manipulation optical signal) is superimposed on frequency signal (data optical signal), the present embodiment low-frequency modulation signal is referred to as low
Frequency message channel.For example, on 10Gbps or 25Gbps signal be superimposed low-frequency modulation signal 50Kbps, wherein 10Gbps or
25Gbps signal is normal service signal, and the low frequency signal of increased another way 50Kbps executes other manipulation functions.
The digital diagnostic information of optical module is usually generated by optical module, is read from optical module by the host computer of optical module,
To realize monitoring of the host computer to optical module working condition.However, the function of part host computer is simpler, does not have and read optical mode
The function of block digital diagnostic information can use low frequency message channel at this time, the digital diagnostic information of optical module is transferred to pair
Optical module is held, the monitoring to local and long-range two optical modules is realized by the host computer of opposite end optical module.
Transmission based on above-mentioned design, below in conjunction with attached drawing, to optical module digital diagnostic information provided in this embodiment
Method describes in detail.Fig. 8 is a kind of basic procedure schematic diagram of digital diagnostic information acquisition methods provided in this embodiment.
As shown in figure 8, this method specifically comprises the following steps:
S101: judge that digital diagnostic information obtains whether enabler flags position is modified to the first preset value.
Carried out data transmission between transmitting terminal optical module and transmitting terminal host computer using the channel I2C, transmitting terminal host computer can
To carry out flag bit modification by optical module of the channel I2C to transmitting terminal.Specifically, flag bit is stored in the memory of optical module
In, transmitting terminal optical module can be by detecting whether the host computer that it is accessed have the movement for changing flag bit;If detection hair
Sending end host computer has change digital diagnostic information to obtain the movement of enabler flags position, then inquires the number of transmitting terminal host computer write-in
Whether the numerical value that word diagnostic message obtains enabler flags position is the first preset value.
Digital diagnostic information obtains enabler flags position and changes between the first preset value and the second preset value, and original state is
It is changed to the first preset value by the second preset value in a particular state by host computer by the second preset value, and optical module is in specific shape
It is changed to the second preset value by the first preset value under state.Generally, the state of flag bit changes between 0 and 1, specific
It can be 0 by the first default settings in scheme, can also be 1 by the first default settings.
S102: when digital diagnostic information, which obtains enabler flags position, is modified to the first preset value, it will acquire numerical diagnostic
The instruction of information is loaded into emergent light in a manner of low-frequency modulation signal.
Digital diagnostic information obtains enabler flags position and is modified to the first preset value, shows that the instruction of transmitting terminal host computer is sent
It holds optical module to issue to receiving end optical module to instruct, which is used to obtain the digital diagnostic information of receiving end optical module.
Transmitting terminal optical module issues the instruction for obtaining digital diagnostic information by its light emission component to receiving end optical module,
The instruction is loaded into the emergent light of transmitting terminal optical module in a manner of low-frequency modulation signal, meanwhile, it further include passing in emergent light
The high-frequency modulation signal of defeated regular traffic data.
Digital diagnostic information be optical module generate monitoring information, common digital diagnostic information include transmitting optical power,
Received optical power, bias current value, operating voltage, operating temperature, laser chip switch state and lose light alarm LOS signal etc..
S103: receiving the digital diagnostic information of passback, when digital diagnostic information is accurate, by digital diagnostic information obtain at
Function flag bit is revised as third preset value.
Transmitting terminal optical module waits the digital diagnostic information of receiving end optical module passback, the number of receiving end optical module passback
Diagnostic message is the feedback of the instruction of the acquisition digital diagnostic information issued for transmitting terminal optical module;Receiving end optical module generates
And these digital diagnostic informations are stored, when receiving end, optical module receives the acquisition digital diagnostic information instruction of transmitting terminal optical module
When, transmitting terminal optical module to is sent these digital diagnostic informations according to the requirement of instruction.
Transmitting terminal optical module carries out accuracy verification for the information of passback, to judge whether the information of passback is accurate
Digital diagnostic information.The information of passback has specific coded format, and specifically, coded format may include data frame head, number
According to length, order code name, valid data, check code and data postamble.In turn, it can be indicated on receiving end according to data length
Position machine reads the data stored in the optical module of receiving end, wherein the data length value can store in number according to the length value
According in length register;It can indicate that this receives the purposes of data using order code name;It receiving end can school according to check code
Test the accuracy of the valid data in received data packet.
Its received digital diagnostic information is stored in preset data memory space by transmitting terminal optical module, the preset data
Memory space can be read out by transmitting terminal host computer.Wherein, which can cache for preset data
The region for storing data opened up in area, multiple registers or some register for storing data.
The digital diagnostic information of transmitting terminal optical mode block check passback, when the digital diagnostic information is accurate, by numerical diagnostic
It is revised as the second preset value in acquisition of information Success Flag position.
Digital diagnostic information obtains Success Flag position and changes between third preset value and the 4th preset value, and original state is
It is changed to the 4th preset value by third preset value in a particular state by the 4th preset value, host computer, and optical module is in particular state
It is lower that it is changed to third preset value by the 4th preset value.Flag bit is the state instruction for logic yes/no, in conjunction with binary system
Mechanism, general to be indicated using 0 and 1, in specific technical solution, third preset value can be 0, or 1.
It is accurate that host computer (referred to as transmitting terminal host computer) to allow transmitting terminal optical module that it to be notified to be accessed is read
Digital diagnostic information, the present embodiment in transmitting terminal optical module be equipped with digital diagnostic information obtain Success Flag position.Transmitting terminal
Host computer can inquire the digital diagnostic information by way of poll and obtain after Success Flag position is set as the second preset value,
The secondary digital diagnostic information will be read.
S104: when digital diagnostic information, which obtains Success Flag position, is modified to four preset values, by digital diagnostic information
It obtains enabler flags position and is revised as the second preset value.
After digital diagnostic information of transmitting terminal host computer completing is read, digital diagnostic information can be obtained to Success Flag position by the
Three preset values are changed to the 4th preset value, and transmitting terminal optical module is detecting that digital diagnostic information obtains Success Flag position and be generalized machine
After being revised as the 4th preset value, the second preset value is revised as in digital diagnostic information acquisition enabler flags position, to stop transmitting terminal
Optical module externally issues the instruction for obtaining digital diagnostic information.
When transmitting terminal optical module does not receive accurate digital diagnostic information, the data retransmission mechanism meeting of transmitting terminal optical module
The instruction that will acquire digital diagnostic information again is loaded into emergent light in a manner of low-frequency modulation signal.The present embodiment also provides
Establish the data retransmission mechanism inside optical module.Fig. 9 is another digital diagnostic information acquisition side provided in this embodiment
The basic procedure schematic diagram of method.As shown in figure 9, this method specifically comprises the following steps:
S101: judge that digital diagnostic information obtains whether enabler flags position is modified to the first preset value.
Wherein, digital diagnostic information is set in the register of optical module and obtains enabler flags position.If inquiring number
Diagnostic message acquisition enabler flags position has been generalized machine and has been changed to the first preset value, thens follow the steps S202, is retransmitted with log-on data
Mechanism;Otherwise, then can continue to inquire the state that the digital diagnostic information obtains enabler flags position after prefixed time interval.
S202: when digital diagnostic information, which obtains enabler flags position, is modified to the first preset value, data is retransmitted and are indicated
Position is changed to the 5th preset value by the 6th preset value.
Wherein, data are set in the register of optical module and retransmit flag bit g_SendMessageAble, work as numerical diagnostic
When acquisition of information enabler flags position is generalized machine and is changed to the first preset value, then the data can be retransmitted flag bit by the 6th by optical module
Preset value is changed to the 5th preset value, such as sets 1, with log-on data retransmission mechanism.
After data re-transmission flag bit is set as the 5th preset value by optical module, the instruction of digital diagnostic information will acquire with low frequency
The mode of modulated signal is loaded into emergent light, is sent to receiving end optical module.Meanwhile the present embodiment is also set inside optical module
It sets transmission times register sendcounter and sends gap periods register Runcounter, wherein optical module initial power-on
When, the two registers are default value 0.After optical module every time sends the instruction of above-mentioned acquisition digital diagnostic information, then
The count value of transmission times register sendcounter can add up 1, meanwhile, send gap periods register Runcounter phase
When starting timing in timer, every to pass through a software cycle, which will add 1, also, the present embodiment is set
Setting can first check that data retransmit whether flag bit is the 5th preset value before the count value of the register adds 1, if so, just meeting
It, otherwise, then can be by the counting value returns of the register by count value plus 1.It is of course also possible to will reach pre- in its count value
It is only above-mentioned to check data in each software cycle if when threshold value, first checking that data retransmit whether flag bit is the 5th preset value
Flag bit mode is retransmitted compared with which, each software cycle checks that data retransmit flag bit mode, can make it earlier
It can be in init state in use next time, and end data earlier retransmit.
S203: judge whether the digital diagnostic information of passback is accurate.
Wherein it is possible to which when the register value is not up to preset threshold, (this is pre- using the count value of Runcounter register
It receives the digital diagnostic information of passback if the threshold value corresponding time is greater than transmitting terminal optical module under normal condition and carries out quasi-
The true property verification time used) when, the digital diagnostic information of passback is accurate, thens follow the steps S204;Otherwise, if then reaching default
Threshold value does not receive accurate digital diagnostic information also, thens follow the steps S205.
It should be noted that the preset time in this step can not also utilize the corresponding setting of Runcounter register
Preset threshold, such as carry out timing using the timer in optical module MCU, and corresponding set a time threshold, wherein if
Accurate digital diagnostic information is not received also when reaching the time threshold of setting, then first checks that data retransmit flag bit and are
No is the 5th preset value, if so, then follow the steps S205, only which and setting Runcounter register mode phase
Than needing the data processing amount of MCU bigger.
S204: if receiving accurate digital diagnostic information, the data are retransmitted into flag bit by the 5th preset value
It is changed to the 6th preset value.
When receiving accurate digital diagnostic information, then transmitting terminal optical module has reached purpose, and data retransmission mechanism can be with
Stop, and then data is retransmitted into flag bit, the 6th preset value is changed to by the 5th preset value, to terminate data re-transmission, while can be with
Runcounter, sendcounter register clearly, allow in use next time in init state.
S205: if not receiving accurate digital diagnostic information, judge to have sent acquisition digital diagnostic information instruction
Number whether be less than preset times threshold value.
If so, thening follow the steps S101.Otherwise, S206 is thened follow the steps.
S206: if having sent the number for obtaining digital diagnostic information instruction more than preset times threshold value, by the number
The 6th preset value is changed to by the 5th preset value according to re-transmission flag bit, sets transmitting terminal optical module bottom re-transmission failure flags position to
7th preset value.
Show still there is no accurate digital diagnostic information after transmitting terminal optical module repeats to send instruction repeatedly,
Show data transmission (also known as module bottom layer data are transmitted) utter failure between the secondary optical module, and then data are retransmitted and are indicated
Position g_SendMessageAble is changed to the 4th preset value by third preset value, is changed to optical module bottom re-transmission failure flags position
7th preset value and by the counting value returns of transmission times register sendcounter and Runcounter register, is used for
Terminate the data retransmission mechanism of optical module and its internal each register is made to be in init state.
If having sent and having obtained the number of digital diagnostic information instruction is more than preset times threshold value, optical module can will be digital
Diagnostic message obtains enabler flags position and is revised as the second preset value, sends instruction to stop optical module;It can also be by numerical diagnostic
The 4th preset value is revised as in acquisition of information Success Flag position, to promote optical module that digital diagnostic information is further obtained enabled mark
The second preset value is revised as in will position, sends instruction to stop optical module;Host computer can also retransmit failure flags position according to bottom
The 4th preset value is revised as in digital diagnostic information acquisition Success Flag position, it is direct failure flags position can also to be retransmitted according to bottom
The second preset value is revised as in digital diagnostic information acquisition enabler flags position.
The present embodiment can realize the school that data are transmitted in module level by establishing the data retransmission mechanism inside optical module
It tests, erroneous retransmissions, transmission reporting failure function, and then mitigates burden when realizing the mechanism by host computer, and improve entirety
Efficiency when system is using message channel transmission data.
Based on inventive concept same as the above method, the present embodiment additionally provides a kind of data sending device, the device
It mainly include processor and memory, in which: memory is for storing program code;Processor, for reading the memory
The program code of middle storage, and execute: judge that digital diagnostic information obtains whether enabler flags position is modified to the first preset value;
When digital diagnostic information, which obtains enabler flags position, is modified to the first preset value, the instruction of digital diagnostic information will acquire
It is loaded into emergent light in a manner of low-frequency modulation signal;
Digital diagnostic information is obtained Success Flag position when digital diagnostic information is accurate by the digital diagnostic information for receiving passback
It is revised as third preset value;
When digital diagnostic information, which obtains Success Flag position, is modified to four preset values, digital diagnostic information is obtained into enabled mark
It is revised as the second preset value in will position.
Alternatively, processor can execute: judging that digital diagnostic information obtains whether enabler flags position is modified to first in advance
If value;When digital diagnostic information, which obtains enabler flags position, is modified to the first preset value, data are retransmitted into flag bit by the 6th
Preset value is changed to the 5th preset value;Judge whether the digital diagnostic information of passback is accurate;If receiving accurate numerical diagnostic
The data are then retransmitted flag bit and are changed to the 6th preset value by the 5th preset value by information;If not receiving accurate number
Diagnostic message then judges to have sent whether the number for obtaining digital diagnostic information instruction is less than preset times threshold value;If
Sending and obtaining the number of digital diagnostic information instruction is more than preset times threshold value, then it is pre- by the 5th the data to be retransmitted flag bit
If value is changed to the 6th preset value, sets the 7th preset value for transmitting terminal optical module bottom re-transmission failure flags position.
Based on inventive concept same as the above method, the present embodiment additionally provides a kind of digital diagnostic information acquisition dress
It sets, the device mainly includes processors and memory, in which:
Memory, for storing program code;Processor for reading the program code stored in the memory, and executes
Above-mentioned digital diagnostic information acquisition methods.
The present embodiment additionally provides a kind of optical module, and specific structure can refer to structure and correspondence of the Fig. 3 into Fig. 7
Verbal description, meanwhile, in its MCU be equipped with data sink provided by the above embodiment.
It should be noted that transmitting terminal optical module, optical module and its corresponding host computer that the present embodiment improves, only
The angle sent from enabled data proposed, in actual use, optical module both can be used as transmitting terminal optical module or
It can be used as optical module use.In addition, its specific representation of the first preset value and the second preset value of different flag bits can
It can also be different with identical.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
Those skilled in the art will readily occur to of the invention its after considering specification and the invention invented here of practice
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
The common knowledge in the art that person's adaptive change follows general principle of the invention and do not invent including the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (6)
1. a kind of digital diagnostic information acquisition methods, which is characterized in that the described method includes:
Judge that digital diagnostic information obtains whether enabler flags position is modified to the first preset value;
When the digital diagnostic information, which obtains enabler flags position, is modified to first preset value, numerical diagnostic letter will acquire
The instruction of breath is loaded into emergent light in a manner of low-frequency modulation signal;
Digital diagnostic information is obtained and is successfully marked when the digital diagnostic information is accurate by the digital diagnostic information for receiving passback
It is revised as third preset value in will position;
When the digital diagnostic information, which obtains Success Flag position, is modified to four preset values, the digital diagnostic information is obtained
Enabler flags position is taken to be revised as the second preset value.
2. the method according to claim 1, wherein further including
When the digital diagnostic information, which obtains enabler flags position, is modified to first preset value, data are retransmitted into flag bit
5th preset value is changed to by the 6th preset value;
If receiving accurate digital diagnostic information, the data is retransmitted into flag bit, institute is changed to by the 5th preset value
State the 6th preset value.
3. according to the method described in claim 2, it is characterized in that, further including
If not receiving accurate digital diagnostic information, judge whether sent the number for obtaining digital diagnostic information instruction
It is less than preset times threshold value;
If the number for obtaining digital diagnostic information instruction that sent is more than the preset times threshold value, by the data
Re-transmission flag bit is changed to the 6th preset value by the 5th preset value, the digital diagnostic information is obtained enabler flags position
It is revised as second preset value, sets the 7th preset value for bottom re-transmission failure flags position;
If described sent obtains the number of digital diagnostic information instruction and is less than the preset times threshold value, described in judgement
Digital diagnostic information obtains whether enabler flags position is modified to first preset value.
4. according to the method described in claim 3, it is characterized in that, further including
After setting the 7th preset value for bottom re-transmission failure flags position, judge that the digital diagnostic information obtains
Whether Success Flag position is modified to the 4th preset value;
When the digital diagnostic information, which obtains Success Flag position, is modified to four preset value, the numerical diagnostic is believed
Breath obtains enabler flags position and is revised as second preset value.
5. a kind of digital diagnostic information acquisition device, which is characterized in that described device includes processor and memory, in which:
The memory, for storing program code;
The processor for reading the program code stored in the memory, and is executed as any in Claims 1-4
Method described in.
6. a kind of optical module, which is characterized in that the optical module includes light emission component, printed circuit board and is arranged in institute
State the MCU on printed circuit board, in which:
Data sink described in claim 5 is equipped in the MCU;
The light emission component is connect by printed circuit board with MCU.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910758222.2A CN110380785A (en) | 2019-08-16 | 2019-08-16 | A kind of digital diagnostic information acquisition methods, device and optical module |
PCT/CN2020/093229 WO2021031653A1 (en) | 2019-08-16 | 2020-05-29 | Digital diagnosis information acquisition method and device, and optical module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910758222.2A CN110380785A (en) | 2019-08-16 | 2019-08-16 | A kind of digital diagnostic information acquisition methods, device and optical module |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110380785A true CN110380785A (en) | 2019-10-25 |
Family
ID=68259420
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910758222.2A Withdrawn CN110380785A (en) | 2019-08-16 | 2019-08-16 | A kind of digital diagnostic information acquisition methods, device and optical module |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110380785A (en) |
WO (1) | WO2021031653A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112198863A (en) * | 2020-09-23 | 2021-01-08 | 江铃汽车股份有限公司 | Diagnostic function control method, system, storage medium, vehicle-mounted communication box and vehicle |
WO2021031653A1 (en) * | 2019-08-16 | 2021-02-25 | 青岛海信宽带多媒体技术有限公司 | Digital diagnosis information acquisition method and device, and optical module |
CN113098596A (en) * | 2021-03-31 | 2021-07-09 | 青岛海信宽带多媒体技术有限公司 | Optical module and method for acquiring remote monitoring data based on double-MCU optical module |
CN113300773A (en) * | 2020-02-24 | 2021-08-24 | 青岛海信宽带多媒体技术有限公司 | Optical module |
CN113364523A (en) * | 2020-03-06 | 2021-09-07 | 青岛海信宽带多媒体技术有限公司 | Data sending method and optical module |
CN113364524A (en) * | 2020-03-06 | 2021-09-07 | 青岛海信宽带多媒体技术有限公司 | Data receiving method and optical module |
CN113824492A (en) * | 2020-06-19 | 2021-12-21 | 青岛海信宽带多媒体技术有限公司 | Optical link self-checking method and optical module |
CN114866140A (en) * | 2022-06-17 | 2022-08-05 | 苏州熹联光芯微电子科技有限公司 | Optical module, electronic equipment and control method of optical module |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302484A (en) * | 2015-10-19 | 2016-02-03 | 上海斐讯数据通信技术有限公司 | Apparatus and method for batch reading of digital diagnosis information in optical modules of Ethernet card |
CN106533976A (en) * | 2016-11-07 | 2017-03-22 | 深圳怡化电脑股份有限公司 | Data packet processing method and device |
CN107615684A (en) * | 2015-03-20 | 2018-01-19 | Oe解决方案美国股份有限公司 | The enhancing of the digital remote diagnostic monitoring information of optical transceiver sends and receives |
CN107707640A (en) * | 2017-09-25 | 2018-02-16 | 深圳市盛路物联通讯技术有限公司 | A kind of Point-to-Point Data Transmission method and apparatus |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120288274A1 (en) * | 2011-05-15 | 2012-11-15 | Wen Li | Optical network system and devices enabling data, diagnosis, and management communications |
CN107104727B (en) * | 2014-05-16 | 2021-03-02 | 青岛海信宽带多媒体技术有限公司 | Method and device for reporting state of optical module of optical line terminal |
CN109743105A (en) * | 2019-01-08 | 2019-05-10 | 郑州云海信息技术有限公司 | Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium |
CN110380785A (en) * | 2019-08-16 | 2019-10-25 | 青岛海信宽带多媒体技术有限公司 | A kind of digital diagnostic information acquisition methods, device and optical module |
-
2019
- 2019-08-16 CN CN201910758222.2A patent/CN110380785A/en not_active Withdrawn
-
2020
- 2020-05-29 WO PCT/CN2020/093229 patent/WO2021031653A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107615684A (en) * | 2015-03-20 | 2018-01-19 | Oe解决方案美国股份有限公司 | The enhancing of the digital remote diagnostic monitoring information of optical transceiver sends and receives |
CN105302484A (en) * | 2015-10-19 | 2016-02-03 | 上海斐讯数据通信技术有限公司 | Apparatus and method for batch reading of digital diagnosis information in optical modules of Ethernet card |
CN106533976A (en) * | 2016-11-07 | 2017-03-22 | 深圳怡化电脑股份有限公司 | Data packet processing method and device |
CN107707640A (en) * | 2017-09-25 | 2018-02-16 | 深圳市盛路物联通讯技术有限公司 | A kind of Point-to-Point Data Transmission method and apparatus |
Non-Patent Citations (1)
Title |
---|
周凤金: "SFP光模块的监测***研究与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021031653A1 (en) * | 2019-08-16 | 2021-02-25 | 青岛海信宽带多媒体技术有限公司 | Digital diagnosis information acquisition method and device, and optical module |
CN113300773A (en) * | 2020-02-24 | 2021-08-24 | 青岛海信宽带多媒体技术有限公司 | Optical module |
CN113364523A (en) * | 2020-03-06 | 2021-09-07 | 青岛海信宽带多媒体技术有限公司 | Data sending method and optical module |
CN113364524A (en) * | 2020-03-06 | 2021-09-07 | 青岛海信宽带多媒体技术有限公司 | Data receiving method and optical module |
CN113364523B (en) * | 2020-03-06 | 2022-06-28 | 青岛海信宽带多媒体技术有限公司 | Data sending method and optical module |
CN113364524B (en) * | 2020-03-06 | 2022-06-28 | 青岛海信宽带多媒体技术有限公司 | Data receiving method and optical module |
CN113824492A (en) * | 2020-06-19 | 2021-12-21 | 青岛海信宽带多媒体技术有限公司 | Optical link self-checking method and optical module |
CN112198863A (en) * | 2020-09-23 | 2021-01-08 | 江铃汽车股份有限公司 | Diagnostic function control method, system, storage medium, vehicle-mounted communication box and vehicle |
CN113098596A (en) * | 2021-03-31 | 2021-07-09 | 青岛海信宽带多媒体技术有限公司 | Optical module and method for acquiring remote monitoring data based on double-MCU optical module |
CN114866140A (en) * | 2022-06-17 | 2022-08-05 | 苏州熹联光芯微电子科技有限公司 | Optical module, electronic equipment and control method of optical module |
Also Published As
Publication number | Publication date |
---|---|
WO2021031653A1 (en) | 2021-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110380785A (en) | A kind of digital diagnostic information acquisition methods, device and optical module | |
CN110430017A (en) | A kind of data transmission method for uplink, device and optical module | |
CN110430016A (en) | A kind of data receiver method, device and optical module | |
CN110519666B (en) | Optical module wavelength configuration method and device and optical module | |
CN110430025A (en) | A kind of data transmission method for uplink, device and optical module | |
US20070113133A1 (en) | System and method for testing a serial port | |
CN109558371B (en) | Method for communicating with a microcontroller, and computing system | |
CN105263155B (en) | The method and system of remote real time monitoring intelligent mobile terminal baseband processor operating status | |
IL98077A (en) | Method and coupler for interfacing a portable data carrier with a host processor | |
CN111327758B (en) | Camera sharing method and device | |
CN109768970A (en) | It is a kind of based on configurable puppy parc generation method | |
WO2021169463A1 (en) | Data sending method, data receiving method, and optical module | |
CN113364523B (en) | Data sending method and optical module | |
CN113852610B (en) | Message processing method, device, computer equipment and storage medium | |
CN113098621B (en) | Optical module and wavelength automatic polling method based on double-MCU optical module | |
CN113704032A (en) | Embedded heterogeneous multi-core processor architecture parallel debugging system and method | |
CN112486877A (en) | Outfield guarantee and test platform of universal FC conversion interface module | |
CN111367729A (en) | Debug method, system and equipment combining CPLD and UART | |
CN101645804A (en) | Veneer, communication system and method for detecting connection state of communication interface | |
CN205621035U (en) | Power transmission and distribution technology card management system | |
WO2023071384A1 (en) | Optical module and upgrading method therefor | |
Simunovic | using fuzzing approach to stress the security of iso7816 communication protocol drivers implemented in smartcards | |
CN117834750B (en) | Device, method, system, equipment, medium and server for acquiring protocol data | |
KR20010019740A (en) | Signal converting circuit for debugging of microprocessor | |
CN214586864U (en) | Debugging device and debugging system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20191025 |
|
WW01 | Invention patent application withdrawn after publication |