Summary of the invention
A kind of low cost of offer and easy to operate optical fiber and digital OTDR inspection are provided
Survey method and device.
In order to achieve the above object, the present invention proposes a kind of optical fiber and digital OTDR and detects device, is arranged on
On light net main control chip, including: receiver module, sending module, configuration module and memory modules
, wherein:
Described configuration module controls parameter, for described transmission mould for receiving for the configuration of described receiver module
Block configuration sends and controls parameter;
Described receiver module is for receiving send and line number from outside light-receiving and A/D modular converter
According to and cache, according to described receive control parameter, described parallel data is sampled, and will
Sampled data preserves to described memory modules;
Described sending module, for controlling parameter according to described transmission, obtains configuration number from configuration module
Select according to carrying out parallel-serial conversion, odd even control and path, to send sequence transmission to outside light
Sending module.
Preferably, the inside that described sending module is additionally operable to according to described transmission selection of control parameter is returned
Logical
Road, sends described transmission sequence to described receiver module.
Preferably, described configuration module is provided with user's access interface, and described configuration module is additionally operable to pass through
Described user's access interface receives user's input information and carries out parameter configuration.
Preferably, described receive control parameter at least include: receive the RAM degree of depth, receive postpone point and soft
Reset configuration information;The described control parameter that sends at least includes: sends starting point, send sequence
Content, transmission sequence length, transmission sequence rate, inside and outside path and transmission odd even configuration letter
Breath.
Preferably, described receiver module is additionally operable to when described sending module starts and sends start counting up,
Open sampling window when count value reaches and receives the numerical value postponing some configuration and carry out data sampling.
Preferably, described receiver module is additionally operable to when writing address ram less than the number receiving the configuration of the RAM degree of depth
During value, preserve data to the reception RAM of memory modules;When writing address ram equal to receiving the RAM degree of depth
Stop preserving data during the numerical value configured, and export the signal preserved for user's inquiry.
The present invention also proposes a kind of optical fiber and digital OTDR detection method, including:
Receive the parallel data sent from outside light-receiving and A/D modular converter and cache, according to joining
The reception put controls parameter, samples described parallel data, and sampled data is preserved extremely
Memory modules;
Transmission according to described configuration controls parameter, obtains configuration parameter and carry out and go here and there from configuration module
Conversion, odd even control and path selects, to send sequence transmission to outside optical transmission module.
Preferably, the method also includes:
Path is returned in inside according to described transmission selection of control parameter, described transmission sequence is sent extremely
Described receiver module.
Preferably, the parallel data that described reception sends from outside light-receiving and A/D modular converter is also
Also include before the step of caching:
Receive user's input information by described user's access interface and carry out parameter configuration.
Preferably, described receive control parameter at least include: receive the RAM degree of depth, receive postpone point and soft
Reset configuration information;The described control parameter that sends at least includes: sends starting point, send sequence
Content, transmission sequence length, transmission sequence rate, inside and outside path and transmission odd even configuration letter
Breath.
Preferably, the described step sampling parallel data includes: open when starting and sending data
Begin counting, opens sampling window number when count value reaches and receives the numerical value postponing some configuration
According to sampling.
Preferably, the described step by sampled data preservation to memory modules includes:
When writing address ram less than the numerical value receiving the configuration of the RAM degree of depth, to the reception of memory modules
RAM preserves data;Stop preserving number when writing address ram equal to the numerical value receiving the configuration of the RAM degree of depth
According to, and export the signal preserved for user's inquiry.
A kind of optical fiber and digital OTDR detection method of present invention proposition and device, in the way of digital module
, the main control chip of optical-fiber network can realize the function of OTDR, it is not necessary to outside traditional fiber
Detection device, the most easy and simple to handle, and the construction meeting day by day fast-developing optical-fiber network need to
Ask;Compared to existing technology, achieve the progress at digital module design aspect, reached flexible
The changeable effect meeting customization, saves time and the cost of optical fiber detector exploitation,
Improve the flexibility ratio of optical fiber detector, accuracy.
Detailed description of the invention
The solution main thought of the embodiment of the present invention is: owing to mostly existing light net main control chip is
ASIC or fpga chip, can add extra digital module according to user, it can be considered to
(optical fiber and digital OTDR the most of the present invention detects device to add digital module on main control chip
), the function of simulation OTDR.
As it is shown in figure 1, a kind of optical fiber and digital OTDR that one embodiment of the invention proposes detects device, arrange
On light net main control chip, including: receiver module 101, sending module 104, configuration module 10
3 and memory modules 102, wherein:
Receiver module 101 is connected with outside light-receiving and A/D modular converter 105, sending module 104 with
Outside optical transmission module 106 connects.
Described configuration module 103 controls parameter, for described for receiving for the configuration of described receiver module 101
Sending module 104 configuration sends and controls parameter;
Described receiver module 101 sends also from outside light-receiving and A/D modular converter for receiving
Row data also cache, and control parameter according to described reception, sample described parallel data,
And sampled data is preserved to described memory modules 102;
Described sending module 104, for controlling parameter according to described transmission, obtains from configuration module 103
Configuration data carry out parallel-serial conversion, odd even controls and path selects, to send sequence transmission to outward
The light in portion
Sending module 106.
Specifically, the present embodiment optical fiber and digital OTDR detection device can be with the design of digital module
Being added on the main control chip of optical-fiber network, the present embodiment is to this numeral mould with hardware description language
Block is designed, and specifically can be designed with Verilog HDL language, and this digital module can spirit
Live and be divided into above-mentioned several little module, including sending module 104, receiver module 101, configuration module
103 and memory modules 102.
Each little module specific design method and function are as follows:
Configuration module 103 provides user's access interface and internal configuration registers, the such as CP shown in Fig. 1
U interface module, it is also possible to change other interfaces into, to facilitate user to carry out the configuration of some parameters.
Wherein cpu i/f module provides the interface communicated with external chip, and usually cpu bus connects
Mouthful.By this module, user can configure the depositor that some are internal, and transmission as shown in Figure 1 rises
Initial point configuration 0, transmission sequence content 1, transmission sequence length configuration 2, transmission sequence rate configuration
3, inside and outside via configuration 4, reception RAM degree of depth configuration 5, reception postpone some configuration 6, a warm reset
Configuration 7 and transmission odd even configuration 8.
Sending module 104 comprises sending module 1040, sending module 1041, sending module 1042, each
Module is independently controlled by the parameter configured inside module 103, such as, control the length that optical signal sends
, content, speed, starting point etc.;Sending module 1040 upstate machine realizes, parallel-serial conversion
Part can use shift register to realize;Sending module 1041 selects 1 selector to realize with 12;Send out
Sending module 1042 to select 1 selector to realize with 12, user can by configuring inside and outside via configuration 4
To select to use external hardware path or internal loopback path.
Receiver module 101 can be divided into receiver module 1010, receiver module 1011, receiver module 1012, often
Individual module is also by the state modulator configured inside module 103, such as, control the light that sampling is received
The sampling length of signal, sampling time point etc..
Wherein, receiver module 1010 realizes with 1 buffer, the reception parallel data 0 shown in Fig. 1 and connecing
The clock frequency numerical value receiving parallel data 1 should equally, and phase place can be different;Receiver module 1011 can
Use 1 enumerator to realize, start counting up when sending module 1040 starts and sends when, at meter
Numerical value reaches to open sampling window when of receiving the numerical value postponing some configuration 6, it is allowed to sampled data
It is saved in inside reception RAM;Receiver module 1012 can use 1 comparator to realize, when writing RAM ground
Location continues to preserve data toward RAM when that the RAM degree of depth configuring 5 less than receiving;When writing address ram etc.
Stop preserving data in receiving the when that the RAM degree of depth configuring 5, and provide the letter that a preservation completes
Number write_done, when
User by cpu i/f inquire this signal put 1 when, i.e. can read receive RAM data enter
Row is analyzed.
Memory modules 102, uses 1 or multiple false dual port RAM realization, it is not necessary to outside storage core
Sheet, its degree of depth can design according to the actual requirements, such as, to preserve the data of 1024 × 32bit,
Then need to design address width be 10, data width be the false dual port RAM of 32.
The present embodiment passes through such scheme, achieves the progress at digital module design aspect, reaches
The flexible and changeable effect meeting customization, saves time and the one-tenth of optical fiber detector exploitation
This, improve the flexibility ratio of optical fiber detector, accuracy;And this modular set
Meter method, it is easier to develop and safeguard.It addition, this device can use fpga logic chip to design
, it is possible to faster realize the various functions of optical fiber detector.
As in figure 2 it is shown, present pre-ferred embodiments proposes a kind of optical fiber and digital OTDR detection method, foundation
The device of above-described embodiment and implement, the method includes:
Step S201, receives the parallel data sent from outside light-receiving and A/D modular converter and delays
Deposit, control parameter according to the reception of configuration, described parallel data is sampled, and will sampling
Data preserve to memory modules;
Step S202, controls parameter according to the transmission of described configuration, obtains configuration number from configuration module
Select according to carrying out parallel-serial conversion, odd even control and path, to send sequence transmission to outside light
Sending module.
Wherein, receive control parameter at least to include: receive the RAM degree of depth, reception postpones point and warm reset is joined
Confidence ceases;Described send control parameter at least include: send starting point, send sequence content,
Send sequence length, send sequence rate, inside and outside path and send odd even configuration information.
Specifically, the optical fiber and digital OTDR detection device that the present embodiment method is used can be with numeral mould
The design of block is added on the main control chip of optical-fiber network, and the present embodiment is with Hardware description language
This digital module is designed by speech, specifically can be designed with Verilog HDL language, should
Digital module can be divided into several little module flexibly, including sending module, receiver module, configuration mould
Block and memory modules.
Each little module specific design method and function are as follows:
Configuration module provides user's access interface and internal configuration registers, the such as CPU shown in Fig. 1 to connect
Mouth die block, it is also possible to change other interfaces into, to facilitate user to carry out the configuration of some parameters.
Wherein cpu i/f module provides the interface communicated with external chip, and usually cpu bus connects
Mouthful.By this module, user can configure the depositor that some are internal, and transmission as shown in Figure 1 rises
Initial point configuration 0, transmission sequence content 1, transmission sequence length configuration 2, transmission sequence rate configuration
3, inside and outside via configuration 4, reception RAM degree of depth configuration 5, reception postpone some configuration 6, a warm reset
Configuration 7 and transmission odd even configuration 8.
Sending module comprises sending module 0, sending module 1, sending module 2, and each module is by configuring mould
Parameter inside block independently controls, such as control optical signal send length, content, speed,
Starting point etc.;Sending module 0 upstate machine realizes, and parallel-serial conversion part can use shift LD
Device realizes;Sending module 1 selects 1 selector to realize with 12;Sending module 2 selects 1 selection with 12
Device realize, user by configure inside and outside via configuration 4 can select use external hardware path or
Person's internal loopback path.
Receiver module can be divided into receiver module 0, receiver module 1, receiver module 2, each module be also by
State modulator inside configuration module, such as, control the sampling length of the optical signal that sampling is received
, sampling time point etc..
Wherein, receiver module 0 realizes with 1 buffer, the reception parallel data 0 shown in Fig. 1 and reception
The clock frequency numerical value of parallel data 1 should equally, and phase place can be different;Receiver module 1 can use
1 enumerator realizes, and starts counting up, reach in count value when sending module 0 starts and sends when
Sampling window is opened, it is allowed to sampled data is saved in the when of receiving the numerical value postponing some configuration 6
Receive inside RAM;Receiver module 2 can use 1 comparator to realize, when writing address ram less than connecing
Receive and continue to preserve data toward RAM when that the RAM degree of depth configuring 5;When writing address ram equal to receiving RA
The M degree of depth stops preserving data when of configuring 5, and provides the signal write_ that a preservation completes
Done, when user by cpu i/f inquire this signal put 1 when, i.e. can read reception RA
The data of M are analyzed.
Memory modules, uses 1 or multiple false dual port RAM realization, it is not necessary to outside storage chip
, its degree of depth can design according to the actual requirements, such as, to preserve the data of 1024 × 32bit, then
Need to design address width be 10, data width be the false dual port RAM of 32.
Embodiment of the present invention optical fiber and digital OTDR detection method and device, in the way of digital module,
The function of OTDR can be realized, it is not necessary to outside traditional fiber detection on the main control chip of optical-fiber network
Device, the most easy and simple to handle, and meet the construction demand of day by day fast-developing optical-fiber network
;Compared to existing technology, achieve the progress at digital module design aspect, reached the most
Become full the effect of foot customization, save time and the cost of optical fiber detector exploitation, carry
The high flexibility ratio of optical fiber detector,
Accuracy.
The foregoing is only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention
, every equivalent structure utilizing description of the invention and accompanying drawing content to be made or flow process conversion, or
Directly or indirectly it is used in other relevant technical field, is the most in like manner included in the patent of the present invention
In protection domain.