Fresnel reflection peak positioning method and device and computing equipment

文档序号:938535 发布日期:2021-03-05 浏览:10次 中文

阅读说明:本技术 菲涅尔反射峰定位方法、装置及计算设备 (Fresnel reflection peak positioning method and device and computing equipment ) 是由 王延长 茹锋 李佳欣 许明 于 2019-08-28 设计创作,主要内容包括:本发明实施例涉及光网络技术领域,公开了一种菲涅尔反射峰定位方法、装置及计算设备。该方法包括:获取反射曲线数据点;根据所述反射曲线数据点,获取头端数据点;从所述头端数据点正向遍历所有所述反射曲线数据点,若确定存在若干上升数据点和若干下降数据点,则记录上升-下降数据点对集合;判断所述上升-下降数据点对集合中是否存在跳变数据点对;若存在所述跳变数据点对,则在所述跳变数据点对中确定峰值坐标,并输出所述峰值坐标。通过上述方式,本发明实施例实现了自动识别菲涅尔发射峰的定位,节省时间。(The embodiment of the invention relates to the technical field of optical networks, and discloses a Fresnel reflection peak positioning method, a Fresnel reflection peak positioning device and computing equipment. The method comprises the following steps: acquiring a reflection curve data point; acquiring a head end data point according to the reflection curve data point; traversing all the reflection curve data points from the head end data point in a forward direction, and recording an ascending-descending data point pair set if a plurality of ascending data points and a plurality of descending data points are determined to exist; judging whether a jumping data point pair exists in the ascending-descending data point pair set or not; and if the jumping data point pair exists, determining a peak coordinate in the jumping data point pair, and outputting the peak coordinate. Through the mode, the embodiment of the invention realizes the positioning of the Fresnel emission peak automatic identification and saves time.)

1. A Fresnel reflection peak positioning method is characterized by comprising the following steps:

acquiring a reflection curve data point;

acquiring a head end data point according to the reflection curve data point;

traversing all the reflection curve data points from the head end data point in a forward direction, and recording an ascending-descending data point pair set if a plurality of ascending data points and a plurality of descending data points are determined to exist;

judging whether a jumping data point pair exists in the ascending-descending data point pair set or not;

and if the jumping data point pair exists, determining a peak coordinate in the jumping data point pair, and outputting the peak coordinate.

2. The method of claim 1, wherein the determining that there are a number of rising data points and a number of falling data points, further comprises:

calculating a derivative and a down-sampled derivative of each of the reflection curve data points;

if the derivative of the reflection curve data point is larger than a first preset threshold value or the down-sampling derivative of the reflection curve data point is larger than a second preset threshold value, determining the reflection curve data point as the rising data point;

and if the derivative of the reflection curve data point is smaller than a third preset threshold or the down-sampling derivative of the reflection curve data point is smaller than a fourth preset threshold, determining that the reflection curve data point is marked as the down data point.

3. The method of claim 2,

the method further comprises the following steps: record the reflectance curve data point as (x)i,yi) Wherein i is an integer greater than or equal to 0;

then said calculating a derivative and a down-sampled derivative of each of said reflection curve data points further comprises:

calculating the derivative of the reflection curve data points according to the following formula:

fi1=yi+1-yi

wherein f isi1Is the derivative of the ith reflection curve data point, yi+1Is the ordinate, y, of the i +1 th reflection curve data pointiIs the ordinate of the ith reflection curve data point;

calculating a down-sampled derivative of the reflection curve data points according to the following formula:

fi2=yi+2-yi

wherein f isi2Down-sampled derivative, y, of the ith reflection curve data pointi+2The ordinate of the i +1 th reflection curve data point.

4. The method of claim 1, wherein the recording sets of up-down data point pairs further comprises:

record the nth rising data point asRecord the nth falling data point as

Recording sets of rising-falling data point pairs

5. The method of claim 4, wherein the determining whether a jumping point pair exists in the set of up-down data point pairs further comprises:

calculating whether each ascending-descending data point pair meets a preset jump condition or not in the ascending-descending data point pair set;

and if the ascending-descending data point pair meets the preset jumping condition, determining that the jumping data point pair exists.

6. The method of claim 5, wherein the calculating whether each of the ascending-descending data point pairs satisfies a predetermined transition condition further comprises:

calculating a fluctuation value of rising data points in the rising-falling data point pair according to the following formula:

wherein f isi3Is the nth rising data pointFluctuation value of yiAs rising data pointsCorresponding reflection curve data point (x)i,yi) Ordinate of (a), yi+NAs rising data pointsLast N data points (x) of the corresponding reflection curve data pointsi+N,yi+N) I is greater than or equal to 0, and N is a first preset interval;

calculating a fluctuation value for a falling data point in the rising-falling data point pair according to the following formula:

wherein f isi4Is the nth falling data pointFluctuation value of yiFor falling data pointsCorresponding reflection curve data point (x)i,yi) Ordinate of (a), yi+NFor falling data pointsLast N data points (x) of the corresponding reflection curve data pointsi+N,yi+N) I is greater than or equal to 0, and N is a first preset interval;

and if the fluctuation value of the ascending data point and the fluctuation value of the descending data point in the ascending-descending data point pair are both smaller than a fifth preset threshold value, the ascending-descending data point pair meets the preset jump condition.

7. The method of claim 6, wherein determining a peak coordinate from the hopping data point pair further comprises:

acquiring a rising data point in the rising-falling data point pair which meets the preset jumping condition in the jumping data point pair as a peak value coordinate;

or, a descending data point in the ascending-descending data point pair, of which the first one in the jumping data point pair satisfies the preset jumping condition, is obtained as a peak coordinate.

8. The method according to any one of claims 1-7, further comprising:

and if the jumping data point pair does not exist, taking the first rising data point as the peak value coordinate, and outputting the peak value coordinate.

9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;

the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the fresnel reflection peak locating method according to any one of claims 1 to 8.

10. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform a fresnel reflection peak locating method according to any one of claims 1-8.

Technical Field

The embodiment of the invention relates to the technical field of optical networks, in particular to a Fresnel reflection peak positioning method, a Fresnel reflection peak positioning device and computing equipment.

Background

With the rapid development of the internet and the rapid increase of the flow, the transmission network is accelerating to evolve to a high-bandwidth full network, and the analysis and optimization of the quality of the optical cable play more and more important roles in the operation of the optical network.

Currently, Optical fiber analysis techniques mainly rely on Optical Time Domain Reflectometer (OTDR) for testing. The OTDR is a precise photoelectric integrated instrument manufactured by using rayleigh scattering when light is transmitted in an optical fiber and back scattering generated by fresnel reflection, and is widely used in maintenance and construction of optical cable lines, and can measure the length of the optical fiber, transmission attenuation of the optical fiber, joint attenuation, fault location, and the like.

In practical applications, it is important to measure the length of the optical fiber or to locate the break point, which is mainly achieved by locating the fresnel reflection in the OTDR measurement data. The length of the optical fiber is measured by a two-point method, namely, the measured optical fiber is connected with one end of a tail fiber, one end of the tail fiber is connected to an OTDR (optical time domain reflectometer), the backscattering peaks of the tail fiber and the measured optical fiber are adjusted and displayed, then, a cursor A is manually placed at the front edge of the first Fresnel reflection peak, a cursor B is placed at the front edge of the last Fresnel reflection peak, and the relative distance difference between the cursor A and the cursor B is the length of the measured optical fiber.

In the prior art, the positioning of the fresnel reflection peak is performed by manually selecting on an OTDR or an analysis software, which is time-consuming.

Disclosure of Invention

In view of the foregoing problems, embodiments of the present invention provide a fresnel reflection peak positioning method, an apparatus, and a computing device, which overcome the foregoing problems or at least partially solve the foregoing problems.

According to an aspect of the embodiments of the present invention, there is provided a fresnel reflection peak positioning method, including:

acquiring a reflection curve data point;

acquiring a head end data point according to the reflection curve data point;

traversing all the reflection curve data points from the head end data point in a forward direction, and recording an ascending-descending data point pair set if a plurality of ascending data points and a plurality of descending data points are determined to exist;

judging whether a jumping data point pair exists in the ascending-descending data point pair set or not;

and if the jumping data point pair exists, determining a peak coordinate in the jumping data point pair, and outputting the peak coordinate.

In an alternative, the determining that there are a number of rising data points and a number of falling data points further comprises:

calculating a derivative and a down-sampled derivative of each of the reflection curve data points;

if the derivative of the reflection curve data point is larger than a first preset threshold value or the down-sampling derivative of the reflection curve data point is larger than a second preset threshold value, determining the reflection curve data point as the rising data point;

and if the derivative of the reflection curve data point is smaller than a third preset threshold or the down-sampling derivative of the reflection curve data point is smaller than a fourth preset threshold, determining that the reflection curve data point is marked as the down data point.

In an optional manner, the method further comprises: record the reflectance curve data point as (x)i,yi) Wherein i is an integer greater than or equal to 0;

then said calculating a derivative and a down-sampled derivative of each of said reflection curve data points further comprises:

calculating the derivative of the reflection curve data points according to the following formula:

fi1=yi+1-yi

wherein f isi1Is the derivative of the ith reflection curve data point, yi+1Is the ordinate, y, of the i +1 th reflection curve data pointiIs the ordinate of the ith reflection curve data point;

calculating a down-sampled derivative of the reflection curve data points according to the following formula:

fi2=yi+2-yi

wherein f isi2Down-sampled derivative, y, of the ith reflection curve data pointi+2The ordinate of the i +1 th reflection curve data point.

In an optional manner, the recording the set of up-down data point pairs further includes:

record the nth rising data point asRecord the nth falling data point as

Recording sets of rising-falling data point pairs

In an optional manner, the determining whether there is a jumping data point pair in the set of up-down data point pairs further includes:

calculating whether each ascending-descending data point pair meets a preset jump condition or not in the ascending-descending data point pair set;

and if the ascending-descending data point pair meets the preset jumping condition, determining that the jumping data point pair exists.

In an optional manner, the calculating whether each of the rising-falling data point pairs satisfies a preset transition condition further includes:

calculating a fluctuation value of rising data points in the rising-falling data point pair according to the following formula:

wherein f isi3Is the nth rising data pointFluctuation value of yiAs rising data pointsCorresponding reflection curve data point (x)i,yi) Ordinate of (a), yi+NAs rising data pointsLast N data points (x) of the corresponding reflection curve data pointsi+N,yi+N) I is greater than or equal to 0, and N is a first preset interval;

calculating a fluctuation value for a falling data point in the rising-falling data point pair according to the following formula:

wherein f isi4Is the nth falling data pointFluctuation value of yiFor falling data pointsCorresponding reflection curve data point (x)i,yi) Ordinate of (a), yi+NFor falling data pointsLast N data points (x) of the corresponding reflection curve data pointsi+N,yi+N) I is greater than or equal to 0, and N is a first preset interval;

and if the fluctuation value of the ascending data point and the fluctuation value of the descending data point in the ascending-descending data point pair are both smaller than a fifth preset threshold value, the ascending-descending data point pair meets the preset jump condition.

In an alternative, the determining a peak coordinate from the hopping data point pair further comprises:

acquiring a rising data point in the rising-falling data point pair which meets the preset jumping condition in the jumping data point pair as a peak value coordinate;

or, a descending data point in the ascending-descending data point pair, of which the first one in the jumping data point pair satisfies the preset jumping condition, is obtained as a peak coordinate.

In an optional manner, the method further comprises:

and if the jumping data point pair does not exist, taking the first rising data point as the peak value coordinate, and outputting the peak value coordinate.

According to another aspect of the embodiments of the present invention, there is provided a fresnel reflection peak locating apparatus, including:

the curve acquisition module is used for acquiring reflection curve data points;

the head end obtaining module is used for obtaining a head end data point according to the reflection curve data point;

an ascending-descending data point pair determining module, configured to traverse all the reflection curve data points from the head-end data point in a forward direction, and if it is determined that a plurality of ascending data points and a plurality of descending data points exist, record an ascending-descending data point pair set;

a jumping data point pair judging module, configured to judge whether a jumping data point pair exists in the ascending-descending data point pair set;

and the first peak coordinate determination module is used for determining a peak coordinate in the jumping data point pair and outputting the peak coordinate if the jumping data point pair exists.

According to still another aspect of an embodiment of the present invention, there is provided a computing device including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;

the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the fresnel reflection peak locating method as described above.

According to another aspect of the embodiments of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to execute the fresnel reflection peak locating method as described above.

According to the embodiment of the invention, the reflection curve data points are obtained, the head end data points are obtained according to the reflection curve data points, all the reflection curve data points are traversed from the head end data points in the forward direction, a plurality of rising data points and a plurality of falling data points are determined to exist, a rising-falling data point pair set is recorded, whether a jumping data point pair exists in the rising-falling data point pair set or not is judged, if the jumping data point pair exists, a peak value coordinate is determined in the jumping data point pair, and the peak value coordinate is output, so that the positioning of the Fresnel reflection peak can be automatically determined, manual selection is not needed, a large amount of time is saved, and basic data can be provided for the measurement of the optical fiber length and the analysis of the breakpoint position, so that.

The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.

Drawings

Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:

fig. 1 shows a flowchart of a fresnel reflection peak positioning method according to an embodiment of the present invention;

FIG. 2 shows a schematic diagram of an OTDR curve;

FIG. 3 is a flow chart illustrating a Fresnel reflection peak locating method according to another embodiment of the present invention;

fig. 4 is a schematic structural diagram of a fresnel reflection peak positioning device according to an embodiment of the present invention;

fig. 5 is a schematic structural diagram of a computing device provided by an embodiment of the present invention.

Detailed Description

Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

Fig. 1 shows a flowchart of a fresnel reflection peak positioning method according to an embodiment of the present invention. The method is applied in a computing device, such as a server in a communication network. As shown in fig. 1, the method comprises the steps of:

step 110, a reflection curve data point is obtained.

And the reflection curve data points are sampling points on the OTDR curve. The specific implementation of the reflection curve data point acquisition may be: according to a test instruction of a tester or external equipment, the optical time domain reflectometer is controlled to send a test signal with preset frequency to the test optical fiber, a reflected signal curve fed back is received and obtained through photoelectric conversion, and the reflected signal curve is sampled, so that a reflected curve data point is obtained. For example, a 100ns pulse is emitted, i.e., the pulse width of the test signal is 10m, the sampling frequency is 100MHz, and a number of reflection curve data points are obtained by determining that one data point is sampled every 1 m.

Wherein, in the present embodiment, the reflection curve data point is represented as (x)i,yi) I is greater than or equal to 0, xiIs a distance, yiRepresenting the corresponding sample value (i.e. the power of the optical signal). For example, when i is 1, (x)1,y1) To sample the 1 st reflection curve data point, (x) when i equals 22,y2) The 2 nd reflection curve data point is sampled.

And step 120, acquiring a head end data point according to the reflection curve data point.

And the head end data point is the peak point of the first Fresnel reflection peak. In this embodiment, the reflection curve data point (x) is obtainedi,yi) Then, when i is 0, (x)0,y0) Which is the head data point.

Step 130, traversing all reflection curve data points from the head data point in the forward direction, and recording a rising-falling data point pair set if a plurality of rising data points and a plurality of falling data points exist.

Wherein, the ascending data point is the data point of the curve in the ascending trend, and the descending data point is the data point of the curve in the descending trend. Determining the upward trend or the downward trend of the data point can be accomplished by taking the slope of the data point.

In this embodiment, step 130 further includes:

step 131, calculating the derivative and the down-sampling derivative of each reflection curve data point;

step 132, if the derivative of the reflection curve data point is greater than a first preset threshold or the down-sampling derivative of the reflection curve data point is greater than a second preset threshold, determining the reflection curve data point as an up-sampling data point;

and step 133, if the derivative of the reflection curve data point is smaller than a third preset threshold or the downsampling derivative of the reflection curve data point is smaller than a fourth preset threshold, determining that the reflection curve data point is a downgraded data point.

In step 131, the specific implementation of calculating the derivative of each reflection curve data point may be:

the derivative of the reflection curve data points is calculated according to the following formula:

fi1=yi+1-yi

wherein f isi1Is the derivative of the ith reflection curve data point, yi+1Is the ordinate, y, of the i +1 th reflection curve data pointiThe ordinate of the ith reflection curve data point. For example, when i is 5, the reflection curveData points (x)5,y5) Has a derivative of f51=y6-y5

In step 131, the specific implementation of calculating the down-sampling derivative of each reflection curve data point may be:

the down-sampled derivative of the reflection curve data points is calculated according to the following formula:

fi2=yi+2-yi

wherein f isi2Down-sampled derivative, y, of the ith reflection curve data pointi+2The ordinate of the i +1 th reflection curve data point. For example, when i is 5, the reflection curve data point (x)5,y5) Down-sampled derivative of f52=y7-y5

In step 132, the first preset threshold and the second preset threshold are both preset thresholds, and may be set according to actual usage. When the derivative of the reflection curve data point is greater than a first preset threshold or the down-sampling derivative of the reflection curve data point is greater than a second preset threshold, if one condition is met, the data point is considered to be a data point of which the curve is in an ascending trend, and the data point is recorded as an ascending data point. For example, if the first predetermined threshold is 5 and the second predetermined threshold is 8, the data point (x) is defined as5,y5) If f is present51>5 or f52>At 8, then data point (x)5,y5) Are rising data points.

In step 133, the third preset threshold and the fourth preset threshold are both preset thresholds, and may be set according to actual use conditions. And when the derivative of the reflection curve data point is smaller than a third preset threshold or the down-sampling derivative of the reflection curve data point is smaller than a fourth preset threshold, if one condition is met, the data point is regarded as the data point of which the curve is in a descending trend, and the data point is recorded as a descending data point. For example, if the third predetermined threshold is-5 and the fourth predetermined threshold is-8, for the data point (x)10,y10) If f is present101<-5 or f102<At-8, then data point (x)10,y10) To descendData points.

In this embodiment, the step 130 further includes:

step 134, record the nth rising data point asRecord the nth falling data point asRecording sets of rising-falling data point pairs

In step 134, during the forward traversal of all the reflection curve data points from the head data point, the 1 st determined rising data point is marked asThe 1 st determined falling data point is notedAnd are recorded as pairs of rising-falling data pointsRecord the 2 nd determined rising data point asThe 2 nd determined falling data point is noted asAnd are recorded as pairs of rising-falling data pointsBy analogy, the nth rising data point is recorded asRecord the nth falling data point asAnd are recorded as pairs of rising-falling data pointsRecording all rising-falling data point pairs as an ordered set Wherein n is an integer greater than 1.

And step 140, judging whether a jumping data point pair exists in the ascending-descending data point pair set.

And the jumping data point pair is a data point pair on the last Fresnel reflection peak. The hopping data point pairs can be several. As shown in fig. 2, since there may be noise before and after the last fresnel reflection peak, the noise is also reflected as a rising-falling data point pair, and the rising-falling data point pair on the noise is filtered out, so as to obtain a rising-falling data point pair on the last fresnel reflection peak.

In this embodiment, step 140 further includes:

step 141, calculating whether each ascending-descending data point pair meets a preset jump condition in the ascending-descending data point pair set;

and 142, if the ascending-descending data points meet the preset jumping condition, determining that jumping data point pairs exist.

The preset jumping condition is a condition that the amplitude of the preset data point changes greatly, and different preset jumping conditions can be set to determine the jumping data point pair.

In this embodiment, calculating whether each ascending-descending data point pair satisfies a predetermined transition condition further includes:

step 1411, calculate a fluctuation value for the rising data point in the rising-falling data point pair according to the following formula:

wherein f isi3Is the nth rising data pointFluctuation value of yiAs rising data pointsCorresponding reflection curve data point (x)i,yi) Ordinate of (a), yi+NAs rising data pointsLast N data points (x) of the corresponding reflection curve data pointsi+N,yi+N) I is greater than or equal to 0, and N is a first preset interval.

Step 1412, calculate a fluctuation value of the falling data point in the rising-falling data point pair according to the following formula:

wherein f isi4Is the nth falling data pointFluctuation value of yiFor falling data pointsCorresponding reflection curve data point (x)i,yi) Ordinate of (a), yi+NFor falling data pointsLast N data points (x) of the corresponding reflection curve data pointsi+N,yi+N) I is greater than or equal to 0, and N is a first preset interval;

and 1413, if the fluctuation value of the ascending data point and the fluctuation value of the descending data point in the ascending-descending data point pair are both smaller than a fifth preset threshold, the ascending-descending data point pair meets a preset jump condition.

In step 1411, data points are raisedCorresponding reflection curve data point (x)i,yi) Refers to the reflection curve data point (x) determined as the rising data pointi,yi). In the present embodiment, the first preset interval N is set to 300. For example, suppose a rising-falling data point pair is calculatedRising data point in (1)A first predetermined interval N of 300, rising data pointsThe corresponding reflection curve data point is (x)5,y5) Then, then

In step 1412, the data point is droppedCorresponding reflection curve data point (x)i,yi) Refers to the reflection curve data point (x) determined as the falling data pointi,yi). For example, suppose a rising-falling data point pair is calculatedFalling data point in (1)A first predetermined interval N of 300, falling data pointsThe corresponding reflection curve data point is (x)10,y10) Then, then

In step 1413, the fifth preset threshold is a preset threshold, and may be set according to the actual use condition, for example, may be set to 3 or 5. And when the fluctuation value of the ascending data point and the fluctuation value of the descending data point in the ascending-descending data point pair are both smaller than a fifth preset threshold value, the ascending-descending data point pair meets a preset jump condition. For example, the fifth preset threshold is 5, assuming that pairs of rising-falling data points are calculatedRising data point in (1)Fluctuation value f of53<5, and descending the data pointFluctuation value f of104<5, then up-down data point pairAnd the preset jump condition is met.

In step 142, a plurality of ascending-descending data point pairs satisfying the preset jump condition are determined from the ascending-descending data point pair set, and noise data point pairs before and after the last fresnel reflection peak are filtered out, so as to obtain a plurality of ascending-descending data point pairs on the last fresnel reflection peak.

And 150, if the jumping data point pair exists, determining a peak coordinate in the jumping data point pair, and outputting the peak coordinate.

And when the peak point of the last Fresnel reflection peak is determined, the distance between the head end data point and the peak point of the last Fresnel reflection peak is the length of the test optical fiber.

In step 150, after obtaining the jumping data point pair, determining a peak coordinate from the jumping data point pair, further comprising: acquiring a rising data point in the last rising-falling data point pair meeting a preset jumping condition in the jumping data point pair as a peak value coordinate; or, a descending data point in a rising-descending data point pair in which the first one of the jumping data points satisfies a preset jumping condition is obtained as a peak coordinate. For example, assume that pairs of hopping data points are obtained as Wherein the content of the first and second substances,the corresponding reflection curve data point is (x)5,y5),The corresponding reflection curve data point is (x)10,y10),The corresponding reflection curve data point is (x)6,y6),The corresponding reflection curve data point is (x)11,y11),The corresponding reflection curve data point is (x)7,y7),Correspond toThe reflection curve data point of (x)12,y12),The corresponding reflection curve data point is (x)8,y8),The corresponding reflection curve data point is (x)13,y13),The corresponding reflection curve data point is (x)9,y9),The corresponding reflection curve data point is (x)14,y14) Acquiring the last jumping data point pair meeting the preset jumping condition asThen the data point is raisedAs the peak coordinate, a rising data point is obtainedThe corresponding reflection curve data point is (x)9,y9) Then (x)9,y9) The peak coordinate.

According to the embodiment of the invention, the reflection curve data points are obtained, the head end data points are obtained according to the reflection curve data points, all the reflection curve data points are traversed from the head end data points in the forward direction, a plurality of rising data points and a plurality of falling data points are determined to exist, a rising-falling data point pair set is recorded, whether a jumping data point pair exists in the rising-falling data point pair set or not is judged, if the jumping data point pair exists, a peak value coordinate is determined in the jumping data point pair, and the peak value coordinate is output, so that the positioning of the Fresnel reflection peak can be automatically determined, manual selection is not needed, a large amount of time is saved, and basic data can be provided for the measurement of the optical fiber length and the analysis of the breakpoint position, so that.

In some embodiments, data point pairs that do not meet the preset hopping condition may not be obtained from the set of up-down data point pairs, as shown in fig. 3, the method further includes:

and step 160, if no jumping data point pair exists, taking the first rising data point as the peak value coordinate.

In this step, when it is determined that no jumping data point pair exists in the set of up-down data point pairs, the up data point in the first up-down data point pair in the set of up-down data point pairs is taken as the peak coordinate, and the peak coordinate is output. For example, the set of pairs of rising-falling data points is Wherein the content of the first and second substances,the corresponding reflection curve data point is (x)4,y4) The peak coordinate is (x)4,y4)。

In some embodiments, when the length of the optical fiber is long or the optical fiber is broken, the fresnel reflection peak is weak, the OTDR curve is relatively smooth, and the up data point and the down data point that meet the condition may not be found, as shown in fig. 3, the method further includes:

step 170, traversing all reflection curve data points from the head data point again in the forward direction, and calculating the fluctuation value and the smooth value of each reflection curve data point;

step 180, if the fluctuation value of the reflection curve data point is greater than a sixth preset threshold value and the smooth value of the reflection curve data point is greater than a seventh preset threshold value, taking the reflection curve data point as a peak coordinate and outputting the peak coordinate;

and 190, if the reflection curve data point with the ordinate of 0 is traversed, and the reflection curve data point with the fluctuation value of the reflection curve data point larger than the sixth preset threshold value and the smooth value of the reflection curve data point larger than the seventh preset threshold value still does not exist, taking the reflection curve data point with the ordinate of 0 as the peak value coordinate and outputting the peak value coordinate.

Wherein, in step 170, the fluctuation value of each reflection curve data point is calculated according to the following formula:

wherein f isi3Fluctuation value, y, of reflection curve data pointsiIs a reflection curve data point (x)i,yi) Ordinate of (a), yi+NThe last N data points (x) of the reflection curve data pointsi+N,yi+N) I is greater than or equal to 0, and N is a first preset interval. In the present embodiment, N is 300.

Wherein, in step 170, the smoothed value of each reflection curve data point is calculated according to the following formula:

fi4=|yi-1+M-yi-1|+|yi+M-yi|+|yi+1+M-yi+1|

wherein f isi4As a smoothed value of the reflection curve data points, yiIs a reflection curve data point (x)i,yi) Ordinate of (a), yi+MThe last M data points (x) of the reflection curve data pointsi+M,yi+M) I is greater than or equal to 0, and M is a second preset interval. In the present embodiment, M is 10.

In this embodiment, the sixth preset threshold may be 15, and the seventh preset threshold may be 3. When the fluctuation value of the reflection curve data point is larger than a sixth preset threshold value and the smooth value of the reflection curve data point is larger than a seventh preset threshold value, taking the first reflection curve data point meeting the condition as a peak coordinate and outputting the peak coordinate; and if the condition is not met after traversing the reflection curve data point with the ordinate of 0, taking the first reflection curve data point with the ordinate of 0 as the peak coordinate and outputting the peak coordinate.

It should be noted that, in fig. 3, step 130 can be divided into step 130a and step 130b, where step 130a is to traverse all the reflection curve data points from the head data point in the forward direction, and whether there are several rising data points and several falling data points, and step 130b is to record a set of pairs of rising-falling data points. In executing 130a, if it is determined that there are a number of rising data points and a number of falling data points, then 130b is executed, and if there are no number of rising data points and a number of falling data points, then step 170 is executed.

In the embodiment of the present invention, by acquiring the reflection curve data points, acquiring the head end data point according to the reflection curve data points, traversing all the reflection curve data points from the head end data points in the forward direction, if there is no ascending data point and no descending data point, traversing all the reflection curve data points from the head end data points in the forward direction again, and calculating the fluctuation value and the smooth value of each reflection curve data point, if there is a reflection curve data point whose fluctuation value is greater than a sixth preset threshold value and whose smooth value is greater than a seventh preset threshold value, the reflection curve data point is taken as the peak coordinate and output, if there is no reflection curve data point whose fluctuation value is greater than the sixth preset threshold value and whose smooth value is greater than the seventh preset threshold value, the reflection curve data point whose vertical coordinate is 0 is taken as the peak coordinate and output. The method can automatically determine the positioning of the Fresnel reflection peak without manual selection, saves a large amount of time, and can provide basic data for the measurement of the length of the optical fiber and the analysis of the breakpoint position, thereby realizing the batch analysis and management of mass optical fibers.

Fig. 4 shows a schematic structural diagram of a fresnel reflection peak positioning device provided in an embodiment of the present invention. As shown in fig. 4, the apparatus 200 includes: a curve acquisition module 210, a head end acquisition module 220, an ascending-descending data point pair determination module 230, a jumping data point pair judgment module 240, and a first peak coordinate determination module 250.

The curve acquisition module 210 is configured to acquire reflection curve data points; the head end obtaining module 220 is configured to obtain a head end data point according to the reflection curve data point; the ascending-descending data point pair determining module 230 is configured to traverse all the reflection curve data points from the head-end data point in the forward direction, and record an ascending-descending data point pair set if it is determined that a plurality of ascending data points and a plurality of descending data points exist; the jumping data point pair determining module 240 is configured to determine whether a jumping data point pair exists in the ascending-descending data point pair set; the first peak coordinate determining module 250 is configured to determine a peak coordinate in the jumping data point pair if the jumping data point pair exists, and output the peak coordinate.

In an alternative manner, the ascending-descending data point pair determination module 230 is further configured to: calculating a derivative and a down-sampled derivative of each of the reflection curve data points; if the derivative of the reflection curve data point is larger than a first preset threshold value or the down-sampling derivative of the reflection curve data point is larger than a second preset threshold value, determining the reflection curve data point as the rising data point; and if the derivative of the reflection curve data point is smaller than a third preset threshold or the down-sampling derivative of the reflection curve data point is smaller than a fourth preset threshold, determining that the reflection curve data point is marked as the down data point.

In an alternative approach, the reflectance curve data points are denoted as (x)i,yi) Wherein i is an integer greater than or equal to 0, calculating a derivative and a down-sampled derivative of each of the reflection curve data points, further comprising: calculating the derivative of the reflection curve data points according to the following formula:

fi1=yi+1-yi

wherein f isi1Is the derivative of the ith reflection curve data point, yi+1Is the ordinate, y, of the i +1 th reflection curve data pointiIs the ordinate of the ith reflection curve data point;

calculating a down-sampled derivative of the reflection curve data points according to the following formula:

fi2=yi+2-yi

wherein f isi2Down sampling for ith reflection curve data pointSample derivative, yi+2The ordinate of the i +1 th reflection curve data point.

In an optional manner, the ascending-descending data point pair determining module 230 is further configured to: record the nth rising data point asRecord the nth falling data point asRecording sets of rising-falling data point pairs

In an optional manner, the jumping data point pair determining module 240 is further configured to: calculating whether each ascending-descending data point pair meets a preset jump condition or not in the ascending-descending data point pair set; and if the ascending-descending data point pair meets the preset jumping condition, determining that the jumping data point pair exists.

In an optional manner, the calculating whether each of the rising-falling data point pairs satisfies a preset transition condition further includes:

calculating a fluctuation value of rising data points in the rising-falling data point pair according to the following formula:

wherein f isi3Is the nth rising data pointFluctuation value of yiAs rising data pointsCorresponding reflection curve data point (x)i,yi) Ordinate of (a), yi+NAs rising data pointsLast N data points (x) of the corresponding reflection curve data pointsi+N,yi+N) I is greater than or equal to 0, and N is a first preset interval;

calculating a fluctuation value for a falling data point in the rising-falling data point pair according to the following formula:

wherein f isi4Is the nth falling data pointFluctuation value of yiFor falling data pointsCorresponding reflection curve data point (x)i,yi) Ordinate of (a), yi+NFor falling data pointsLast N data points (x) of the corresponding reflection curve data pointsi+N,yi+N) I is greater than or equal to 0, and N is a first preset interval;

and if the fluctuation value of the ascending data point and the fluctuation value of the descending data point in the ascending-descending data point pair are both smaller than a fifth preset threshold value, the ascending-descending data point pair meets the preset jump condition.

In an alternative manner, the first peak coordinate determination module 250 is further configured to: acquiring a rising data point in the rising-falling data point pair which meets the preset jumping condition in the jumping data point pair as a peak value coordinate; or, a descending data point in the ascending-descending data point pair, of which the first one in the jumping data point pair satisfies the preset jumping condition, is obtained as a peak coordinate.

In an optional manner, the apparatus further comprises: a second peak coordinate determination module. The second peak coordinate determination module is to: and if the jumping data point pair does not exist, taking the first rising data point as the peak value coordinate, and outputting the peak value coordinate.

It should be noted that the fresnel reflection peak positioning device provided in the embodiment of the present invention is a device capable of executing the above fresnel reflection peak positioning method, and all embodiments of the above fresnel reflection peak positioning method are applicable to the device and can achieve the same or similar beneficial effects.

According to the embodiment of the invention, the reflection curve data points are obtained, the head end data points are obtained according to the reflection curve data points, all the reflection curve data points are traversed from the head end data points in the forward direction, a plurality of rising data points and a plurality of falling data points are determined to exist, a rising-falling data point pair set is recorded, whether a jumping data point pair exists in the rising-falling data point pair set or not is judged, if the jumping data point pair exists, a peak value coordinate is determined in the jumping data point pair, and the peak value coordinate is output, so that the positioning of the Fresnel reflection peak can be automatically determined, manual selection is not needed, a large amount of time is saved, and basic data can be provided for the measurement of the optical fiber length and the analysis of the breakpoint position, so that.

An embodiment of the present invention provides a computer storage medium, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to execute the fresnel reflection peak positioning method in any of the above method embodiments.

According to the embodiment of the invention, the reflection curve data points are obtained, the head end data points are obtained according to the reflection curve data points, all the reflection curve data points are traversed from the head end data points in the forward direction, a plurality of rising data points and a plurality of falling data points are determined to exist, a rising-falling data point pair set is recorded, whether a jumping data point pair exists in the rising-falling data point pair set or not is judged, if the jumping data point pair exists, a peak value coordinate is determined in the jumping data point pair, and the peak value coordinate is output, so that the positioning of the Fresnel reflection peak can be automatically determined, manual selection is not needed, a large amount of time is saved, and basic data can be provided for the measurement of the optical fiber length and the analysis of the breakpoint position, so that.

An embodiment of the present invention provides a computer program product, including a computer program stored on a computer storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to execute the fresnel reflection peak positioning method in any of the above-mentioned method embodiments.

According to the embodiment of the invention, the reflection curve data points are obtained, the head end data points are obtained according to the reflection curve data points, all the reflection curve data points are traversed from the head end data points in the forward direction, a plurality of rising data points and a plurality of falling data points are determined to exist, a rising-falling data point pair set is recorded, whether a jumping data point pair exists in the rising-falling data point pair set or not is judged, if the jumping data point pair exists, a peak value coordinate is determined in the jumping data point pair, and the peak value coordinate is output, so that the positioning of the Fresnel reflection peak can be automatically determined, manual selection is not needed, a large amount of time is saved, and basic data can be provided for the measurement of the optical fiber length and the analysis of the breakpoint position, so that.

Fig. 5 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.

As shown in fig. 5, the computing device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.

Wherein: the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308. A communication interface 304 for communicating with network elements of other devices, such as clients or other servers. The processor 302 is configured to execute the program 310, and may specifically execute the fresnel reflection peak locating method in any of the above-described method embodiments.

In particular, program 310 may include program code comprising computer operating instructions.

The processor 302 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.

And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.

According to the embodiment of the invention, the reflection curve data points are obtained, the head end data points are obtained according to the reflection curve data points, all the reflection curve data points are traversed from the head end data points in the forward direction, a plurality of rising data points and a plurality of falling data points are determined to exist, a rising-falling data point pair set is recorded, whether a jumping data point pair exists in the rising-falling data point pair set or not is judged, if the jumping data point pair exists, a peak value coordinate is determined in the jumping data point pair, and the peak value coordinate is output, so that the positioning of the Fresnel reflection peak can be automatically determined, manual selection is not needed, a large amount of time is saved, and basic data can be provided for the measurement of the optical fiber length and the analysis of the breakpoint position, so that.

The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.

In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.

Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:端口占用测试方法和系统、用户终端、后台系统和介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!