Invention content
The invention mainly solves the technical problem of providing a kind of fiber-optic signal processing method and processing devices, can improve optical fiber
The recognition accuracy of environmental aspect.
In order to solve the above technical problems, one aspect of the present invention is:A kind of fiber-optic signal processing side is provided
Method, including:The fiber-optic signal that processing terminal reception optical fiber sensor detects;The fiber-optic signal is sampled, to obtain
Obtain the sampled signal of multiple setting time length, wherein adjacent sampling time difference is less than the setting time length;It will be each
The sampled signal is compared and analyzed with preset signals model;And if there are the sampled signals and preset signals model
Match, then calculates the corresponding fiber position of the matched sampled signal, and the environmental aspect of the fiber position is determined as
The corresponding default environmental aspect of the matched preset signals model.
Wherein, before the fiber-optic signal that the processing terminal reception optical fiber sensor detects the step of, the side
Method includes:Obtain the signal time length of the preset signals model;It sets and the signal setting time length to
Time span difference is less than setting value.
Wherein, the adjacent sampling time difference is less than a quarter of the setting time length.
Wherein, described that the fiber-optic signal is sampled, to obtain the step of the sampled signal of multiple setting time length
Suddenly, it specifically includes:The envelope of the fiber-optic signal is determined by the peak value of the fiber-optic signal;To the envelope of the fiber-optic signal
Line is sampled, to obtain the sampled signal of multiple setting time length.
Wherein, the preset signals model includes the default characteristic of signal;It is described will each sampled signal with
The step of preset signals model compares and analyzes include:The characteristic of the sampled signal is extracted, and the sampling is believed
Number characteristic be compared with the default characteristic;If the characteristic of the sampled signal and the default feature
Data Matching, the then sampled signal and preset signals Model Matching.
In order to solve the above technical problems, one aspect of the present invention is:A kind of fiber-optic signal processing dress is provided
It sets, including:Receiving module, the fiber-optic signal detected for reception optical fiber sensor;Sampling module, for the optical fiber
Signal is sampled, to obtain the sampled signal of multiple setting time length, wherein adjacent sampling time difference is less than described set
It fixes time length;Analysis module, for comparing and analyzing each sampled signal with preset signals model;And it calculates
Module is corresponded to for when there are the sampled signal and preset signals Model Matching, calculating the matched sampled signal
Fiber position, and the environmental aspect of the fiber position is determined as the corresponding default ring of the matched preset signals model
Border situation.
Wherein, further include setup module, the signal time length for obtaining the preset signals model;By the setting
Time span, which is set as differing with the signal time length, is less than setting value.
Wherein, the adjacent sampling time difference is less than a quarter of the setting time length.
Wherein, the sampling module is specifically used for determining the envelope of the fiber-optic signal by the peak value of the fiber-optic signal
Line;The envelope of the fiber-optic signal is sampled, to obtain the sampled signal of multiple setting time length.
Wherein, the preset signals model includes the default characteristic of signal;The analysis module is specifically used for extraction
The characteristic of the sampled signal, and the characteristic of the sampled signal is compared with the default characteristic;
If the characteristic of the sampled signal is matched with the default characteristic, the sampled signal and preset signals model
Match.
Said program, processing terminal are sampled by the fiber-optic signal detected to fibre optical sensor using sliding window, and right
Sampled signal is identified, when recognizing sampled signal with preset signals Model Matching, by the environment shape of corresponding fiber position
Condition is determined as the corresponding default environmental aspect of the preset signals model.The sliding window sample mode is i.e. every less than setting time length
Sampling time difference fiber-optic signal is sampled to obtain the sampled signal of the setting time length so that sampled signal includes
Data it is more abundant, improve the possibility that sampled signal include enough valid data, when fiber-optic signal in the presence of and default letter
When the valid data of number Model Matching, above-mentioned sample mode there may be sampled signal includes greatly complete valid data,
So that by identifying that the sampled signal can accurately determine corresponding environmental aspect, therefore the identification for improving optic fibre environment situation is accurate
Degree.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as specific system structure, interface, technology it
The detail of class, so as to provide a thorough understanding of the present application.However, it will be clear to one skilled in the art that there is no these specific
The application can also be realized in the other embodiment of details.In other situations, omit to well-known device, circuit with
And the detailed description of method, so as not to obscure the description of the present application with unnecessary details.
Referring to Fig. 2, the flow chart of one embodiment of fiber-optic signal processing method of the present invention, this method include:
S21:The fiber-optic signal that processing terminal reception optical fiber sensor detects.
Incorporated by reference to Fig. 3 for example, fibre optical sensor 31 is connect with processing terminal 32.The ring that optical fiber 33 is arranged and need to monitor
Such as underground in border, to monitor the environmental aspect.Fibre optical sensor 31 sends out the first optical signal from one end of optical fiber 33, first light
Signal can be a pulse signal, first optical signal the second light letter that each position is formed by Rayleigh scattering in optical fiber 33
Number, and second optical signal is reflected back one end of the optical fiber 33.Fibre optical sensor 31 from one end of the optical fiber 33 obtain this
Two optical signals.
Due to the optical signal of backscattering and its faint, and its noise is smaller, difficult during to optical signal prosessing
Spend that larger, precision is smaller, therefore the second optical signal is converted to the processing that electric signal is convenient for signal by fibre optical sensor 33.Here may be used
To be converted by general photoelectric converter, such as APD etc..
Transformed electric signal is sent to processing terminal 32 by fibre optical sensor 31.Certainly, in other embodiments, the light
Electric switch process can be executed by processing terminal 32, i.e., the second light letter that the detection of 32 reception optical fiber sensor 31 of processing terminal obtains
Number, and electric signal is converted thereof into, to carry out following samplings.
S22:Processing terminal samples the fiber-optic signal, to obtain the sampled signal of multiple setting time length,
Wherein, adjacent sampling time difference is less than the setting time length.
In conjunction with the fiber-optic signal that with reference to figure 4, processing terminal receives signal f as shown in Figure 4, the ends r of signal f are
One end of processing terminal is reached at first.Processing terminal therefore is sequentially obtained every the signal of t1 time sampling setting time length t2
(Fig. 4 only demonstrations show that A-F is sampled by sampled signal A, sampled signal C, sampled signal D, sampled signal E, sampled signal F ...
Signal actually can be continued for constantly being sampled on the fiber-optic signal) wherein, the time interval t1 sampled every time is i.e.
It is poor for the adjacent sampling time, it is less than setting time length t2.That is, the present invention uses similar sliding window mode to sample, every time
Forward slip is less than one section of signal length and continues to sample after sampling, and such gradually forward slip mode is relative to Fig. 1 institutes
The sample mode shown so that sampled signal is more rich, and then improves the probability for obtaining complete recognizable sampled signal.
In a preferred embodiment, which is less than a quarter of setting time length t2.Its
The reason is that, the signal model that following step is established is usually sinusoidal or cosine signal, if meeting above-mentioned condition, necessity can
Collect the sampled signal including at least 3/4ths complete sines or cosine signal, thus processing terminal can according to this four/
Three complete sines or cosine signal may recognize that corresponding sinusoidal or cosine signal.
Optionally, this S22 steps may also include:The envelope of the fiber-optic signal is determined by the peak value of the fiber-optic signal
Line;The envelope of the fiber-optic signal is sampled, to obtain the sampled signal of multiple setting time length.Incorporated by reference to Fig. 5,
The envelope s for forming the signal is connected by the peak value of fiber-optic signal, processing terminal is every t1 time sampling setting time length t2
Envelope s, therefore sequentially obtain sampled signal A ', sampled signal C ', sampled signal D ', sampled signal E ', sampled signal
Wherein, which is that adjacent sampling time difference t1 is less than setting time length t2 to F ' ....
S23:Processing terminal compares and analyzes each sampled signal with preset signals model.
For example, being preset with multiple signal models in the model database of processing terminal, wherein the first preset signals model is
Fiber-optic signal waveform when pedestrian passes through, fiber-optic signal waveform when the second preset signals model passes through for vehicle, third are default
Fiber-optic signal waveform when signal model is by metal strike.Processing terminal is by collected sampled signal A, C, D, E, F ... points
It is not compared with each signal model in database.If there is the Waveform Matching of sampled signal and preset signals model,
Then execute S24.
Optionally, above-mentioned preset signals model includes the default characteristic of signal, for example, the period of the preset signals,
Amplitude variations etc..Above-mentioned S23 steps include:Extract the characteristic of the sampled signal, and by the feature of the sampled signal
Data are compared with the default characteristic;If the characteristic of the sampled signal and the default characteristic
Match, then the sampled signal and preset signals Model Matching.
Optionally, setting time length t1 can be adjusted according to the time span of preset signals model, be adopted with improving
The data precision and smoothness of sample signal.For example, before above-mentioned S21 steps, the method further includes:Obtain the default letter
The signal time length of number model;The setting time length is set as being differed with the signal time length less than setting
Value.The specific above example illustrates, and the signal time length of the first, second, third preset signals model is respectively T1, T2, T3,
Wherein, T3 is maximum, then processing terminal can set t1 to T3 sizes, or the T3 sizes less than a quarter are differed with T3.
S24:If there are the sampled signal and preset signals Model Matching, processing terminal calculates described matched adopt
The corresponding fiber position of sample signal, and the environmental aspect of the fiber position is determined as the matched preset signals model pair
The default environmental aspect answered.
Continue the above example to illustrate, if the waveform of the first preset signals model ends b envelope as shown in Figure 5, processing
Terminal judges that the period of sampled signal E ' and amplitude variations match with the period of the first preset signals model b and amplitude variations, then
Can regard as the corresponding fiber positions of sampled signal E ' has pedestrian's process.Specifically, processing terminal is calculated according to sampled signal E '
Obtain its corresponding fiber position, for example, according to formula L=(c*T/n)/2 calculate the corresponding fiber position of sampled signal E with it is upper
State the distance between optical fiber one end;Wherein, c is the speed of light in a vacuum, and T is the sampling time of sampled signal E ', and n is described
The refractive index of optical fiber.Processing terminal obtains the first preset signals model and corresponds to the environmental aspect preserved to there is pedestrian's process, therefore
Determine that the above-mentioned corresponding fiber positions of sampled signal E ' being calculated have pedestrian's process.
Further, when processing terminal determines environmental aspect, alarm can accordingly be sent to remote equipment as being located at sampling
Signal E corresponds to the remote equipment of fiber position, and with notice, corresponding user checks its environment.
From the foregoing, it will be observed that processing terminal is identified can just judge its environmental aspect with the sampled signal of preset signals model,
Therefore it is of crucial importance to the accurately sampling of signal.Only sliding is less than sampling when processing terminal of the present invention is sampled every time using sliding window mode
The time gap of signal length so that sampled signal is more rich, and a bit of new data is only filled between adjacent sampled signal, is easy
The signal for including data needed for identification enough is collected, namely is easy can go out with the signal acquisition of preset signals Model Matching
Come, such as what above-mentioned sampled signal E included is valid data with the first preset signals Model Matching, therefore knows conducive to accurate
Not, identification and the whether matched accuracy rate of preset signals model are improved, that is, improves the recognition accuracy of optic fibre environment situation.
Refering to Fig. 6, the structural schematic diagram of one embodiment of fiber-optic signal processing unit of the present invention, which includes:
Receiving module 61, the fiber-optic signal detected for reception optical fiber sensor.
Sampling module 62, for being sampled to the fiber-optic signal, the sampling to obtain multiple setting time length is believed
Number, wherein adjacent sampling time difference is less than the setting time length.
Analysis module 63, for comparing and analyzing each sampled signal with preset signals model.
Computing module 64, for when there are the sampled signal and preset signals Model Matching, calculating the matching
The corresponding fiber position of sampled signal, and the environmental aspect of the fiber position is determined as the matched preset signals mould
The corresponding default environmental aspect of type.
Optionally, which further includes setup module, the signal time length for obtaining the preset signals model;It will
The setting time length, which is set as differing with the signal time length, is less than setting value.
Optionally, the adjacent sampling time difference is less than a quarter of the setting time length.
Optionally, which is specifically used for determining the envelope of the fiber-optic signal by the peak value of the fiber-optic signal
Line;The envelope of the fiber-optic signal is sampled, to obtain the sampled signal of multiple setting time length.
Optionally, the preset signals model includes the default characteristic of signal;The analysis module 63 is specifically used for
The characteristic of the sampled signal is extracted, and the characteristic of the sampled signal and the default characteristic are compared
Compared with;If the characteristic of the sampled signal is matched with the default characteristic, the sampled signal and preset signals mould
Type matches.
Wherein, the above-mentioned module of the processing terminal is respectively used to execute the corresponding steps in above method embodiment, specifically
Implementation procedure embodiment of the method explanation as above, therefore not to repeat here.
Refering to Fig. 7, the structural schematic diagram of another embodiment of breakpoints of optical fiber position detecting device of the present invention, the device 70 packet
Include processor 71, memory 72, receiver 73 and bus 74.Wherein, processor 71, memory 72, receiver 73 may each be
One or more, in Fig. 7 only for one.
Receiver 73 is used to receive the information of external equipment transmission.For example, the optical fiber that reception optical fiber sensor detects
Signal.
Memory 72 provides the computer program for storing computer program to processor 71, and can store place
The data that device 71 is handled are managed, such as the fiber-optic signal lamp that receiver 73 receives.Wherein, memory 72 may include read-only storage
At least one of device, random access memory and nonvolatile RAM (NVRAM).
The computer program that memory 72 stores includes following element, executable modules or data structures or it
Subset or their superset:
Operational order:Including various operational orders, for realizing various operations.
Operating system:Including various system programs, for realizing various basic businesses and the hardware based task of processing.
In embodiments of the present invention, (operational order can by calling the operational order of the storage of memory 72 for processor 71
Storage is in an operating system), to execute operation below.
Specifically, processor 71 can perform the computer program in memory 72, be used for:
The fiber-optic signal detected by 73 reception optical fiber sensor of receiver;
The fiber-optic signal is sampled, to obtain the sampled signal of multiple setting time length, wherein adjacent adopts
The sample time difference is less than the setting time length;
Each sampled signal is compared and analyzed with preset signals model;And
If there are the sampled signal and preset signals Model Matching, it is corresponding to calculate the matched sampled signal
Fiber position, and the environmental aspect of the fiber position is determined as the corresponding default environment of the matched preset signals model
Situation.
Optionally, processor 71 is additionally operable to:Obtain the signal time length of the preset signals model;When by the setting
Between length be set as differing with the signal time length and be less than setting value.
Optionally, the adjacent sampling time difference is less than a quarter of the setting time length.
Optionally, processor 71 execute it is described the fiber-optic signal is sampled, to obtain multiple setting time length
Sampled signal the step of specifically include:The envelope of the fiber-optic signal is determined by the peak value of the fiber-optic signal;To described
The envelope of fiber-optic signal is sampled, to obtain the sampled signal of multiple setting time length.
Optionally, the preset signals model includes the default characteristic of signal;Processor 71 execute it is described will be each
The step of sampled signal is compared and analyzed with preset signals model include:The characteristic of the sampled signal is extracted,
And the characteristic of the sampled signal is compared with the default characteristic;If the characteristic of the sampled signal
It is matched with the default characteristic, then the sampled signal and preset signals Model Matching.
Above-mentioned processor 71 can also be known as CPU (Central Processing Unit, central processing unit).Specifically
Application in, the various components of terminal are coupled by bus 74, and wherein bus 74 may be used also in addition to including data/address bus
To include power bus, controlling bus and status signal bus in addition etc..But for the sake of clear explanation, by various buses in figure
All it is designated as bus 74.
The method that aforementioned present invention embodiment discloses can also be applied in processor 71, or real by processor 71
It is existing.Processor 71 may be a kind of IC chip, the processing capacity with signal.During realization, the above method
Each step can be completed by the integrated logic circuit of the hardware in processor 71 or the instruction of software form.Above-mentioned processing
Device 71 can be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), ready-made programmable gate array
(FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.May be implemented or
Person executes disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be microprocessor or
Person's processor can also be any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be straight
Connect and be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination executed
At.Software module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically-erasable can
In the storage medium of this fields such as programmable memory, register maturation.The storage medium is located at memory 72, and processor 71 is read
Information in respective memory, in conjunction with the step of its hardware completion above method.
In said program, processing terminal is sampled by the fiber-optic signal detected to fibre optical sensor using sliding window, and
Sampled signal is identified, when recognizing sampled signal with preset signals Model Matching, by the environment of corresponding fiber position
Situation is determined as the corresponding default environmental aspect of the preset signals model.The sliding window sample mode is i.e. every long less than setting time
The sampling time difference of degree samples fiber-optic signal to obtain the sampled signal of the setting time length so that sampled signal packet
The data contained are more abundant, improve the possibility that sampled signal includes enough valid data, when fiber-optic signal exists and presets
When the matched valid data of signal model, above-mentioned sample mode there may be sampled signal includes greatly complete significant figure
According to so that by identifying that the sampled signal can accurately determine corresponding environmental aspect, therefore improve the identification of optic fibre environment situation
Accuracy.
In several embodiments provided by the present invention, it should be understood that disclosed method and device, Ke Yitong
Other modes are crossed to realize.For example, device embodiments described above are only schematical, for example, the module or
The division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize present embodiment scheme
Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also may be used
It, can also be during two or more units be integrated in one unit to be that each unit physically exists alone.It is above-mentioned integrated
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit in above-mentioned other embodiment is realized in the form of SFU software functional unit and as independence
Product sale or in use, can be stored in a computer read/write memory medium.Based on this understanding, of the invention
Technical solution substantially all or part of the part that contributes to existing technology or the technical solution can be in other words
It is expressed in the form of software products, which is stored in a storage medium, including some instructions are used
So that a computer equipment (can be personal computer, server or the network equipment etc.) or processor
(processor) all or part of step of each embodiment the method for the present invention is executed.And storage medium packet above-mentioned
It includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), the various media that can store program code such as magnetic disc or CD.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, every to utilize this
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field is included within the scope of the present invention.