OTDR data processing method, system, electronic equipment and computer storage medium
By collecting and processing OTDR data in frame units, including analog-to-digital conversion, accumulation, averaging, noise floor calculation and positive and negative judgment, the problem of abnormal data in OTDR data is solved and the data quality and analysis accuracy are improved.
Patent Information
- Application Number
- CN202411044986.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-08-01
AI Technical Summary
There are abnormal data in OTDR data, which affects the accuracy and quality of data analysis.
OTDR data is collected in frame units for analog-to-digital conversion, accumulation and averaging, noise floor data is calculated for noise reduction processing, and positive and negative judgments and logarithmic processing are performed on OTDR point data to remove negative data and improve data quality.
It effectively solves some background noise anomalies in OTDR data and directly filters out data less than 0, improving the signal-to-noise ratio of the data and the accuracy of analysis.
Smart Images

Figure CN118568422B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and more specifically, to an OTDR data processing method, system, electronic equipment and computer storage medium. Background Art
[0002] OTDR (Optical Time-Domain Reflectometer) is a device based on the backscattering and Fresnel reverse principle of light, which uses the backscattered light generated when light propagates in the optical fiber to obtain attenuation information. It is generally used to measure optical fiber attenuation, joint loss, optical fiber fault point location, and understand the loss distribution along the length of the optical fiber.
[0003] The data collected by the OTDR usually contains abnormal data, which needs to be processed before corresponding data analysis can be performed. Summary of the invention
[0004] The present invention aims to overcome at least one defect (deficiency) of the above-mentioned prior art and provides an OTDR data processing method, system, electronic device and computer storage medium, which can process abnormal data existing in the collected OTDR data.
[0005] According to a first aspect of the present application, there is provided an OTDR data processing method, the method comprising:
[0006] Collect OTDR data in frames and perform analog-to-digital conversion to obtain OTDR point data corresponding to each frame;
[0007] Accumulating a preset number of OTDR point data to obtain an accumulated value;
[0008] Performing an average processing according to the accumulated values to obtain averaged OTDR point data;
[0009] Calculate corresponding background noise data according to the averaged OTDR point data;
[0010] Performing noise reduction processing on the averaged OTDR point data according to the background noise data to obtain noise-reduced OTDR point data;
[0011] Performing a positive and negative judgment on the noise-reduced OTDR point data, retaining it if it is a positive number, and setting it to 0 if it is a negative number, to obtain the OTDR point data after positive and negative judgment processing;
[0012] The OTDR point data after the positive and negative judgment processing is logarithmically processed to obtain an OTDR index curve.
[0013] Optionally, collecting OTDR data in frames and performing analog-to-digital conversion to obtain OTDR point data corresponding to each frame specifically includes:
[0014] Transmitting pulse signals into the optical fiber in units of times;
[0015] Collecting the reflected light signal corresponding to a pulse signal in the optical fiber to obtain OTDR data, wherein the OTDR data corresponding to the pulse signal is used as a frame of OTDR data;
[0016] Each frame of OTDR data is converted into digital form according to the acquisition sequence to obtain the OTDR point data corresponding to each frame.
[0017] Optionally, the step of accumulating a preset number of OTDR point data to obtain an accumulated value specifically includes:
[0018] Inputting the OTDR point data corresponding to each frame after analog-to-digital conversion into an accumulation queue;
[0019] Preset the cumulative time period threshold as the preset number;
[0020] The OTDR point data corresponding to each frame input into the accumulation queue within the accumulation time period threshold are accumulated to obtain the accumulated OTDR point data as the accumulated value.
[0021] Optionally, the method further comprises:
[0022] The OTDR point data that has completed the accumulation processing is removed from the accumulation queue.
[0023] Optionally, calculating corresponding background noise data according to the averaged OTDR point data specifically includes:
[0024] Preset a noise floor coefficient n, where n is less than the number of OTDR point data corresponding to each frame;
[0025] From the tail of the averaged OTDR point data corresponding to each frame, n point data are taken for accumulation, and after accumulation, average value processing is performed to obtain the background noise data corresponding to each frame.
[0026] Optionally, performing noise reduction processing on the averaged OTDR point data according to the background noise data to obtain noise-reduced OTDR point data specifically includes:
[0027] The noise floor data of the corresponding frame is subtracted from each point data in the averaged OTDR point data to obtain the noise-reduced OTDR point data.
[0028] According to a second aspect of the present application, an OTDR data processing system is provided, the system comprising:
[0029] An acquisition module, used for acquiring OTDR data in frames;
[0030] The analog-to-digital conversion module is used to perform analog-to-digital conversion on each frame of collected OTDR data to obtain OTDR point data corresponding to each frame;
[0031] An accumulation module, used for accumulating a preset number of OTDR point data to obtain an accumulated value;
[0032] An averaging processing module, used for performing an averaging process according to the accumulated value to obtain averaged OTDR point data;
[0033] A background noise processing acquisition module is used to calculate corresponding background noise data according to the averaged OTDR point data;
[0034] A noise reduction processing module, used for performing noise reduction processing on the averaged OTDR point data according to the background noise data to obtain noise-reduced OTDR point data;
[0035] A positive and negative judgment module is used to make a positive and negative judgment on the OTDR point data after noise reduction, and if it is a positive number, it is retained, and if it is a negative number, it is set to 0, so as to obtain the OTDR point data after positive and negative judgment processing;
[0036] The logarithmic processing module is used to perform logarithmic processing on the OTDR point data after the positive and negative judgment processing to obtain an OTDR index curve.
[0037] Optionally, the background noise processing acquisition module is specifically used for:
[0038] Preset a noise floor coefficient n, where n is less than the number of OTDR point data corresponding to each frame;
[0039] N point data are taken from the tail of the OTDR point data corresponding to each frame for accumulation, and average value processing is performed after accumulation to obtain the background noise data corresponding to each frame.
[0040] According to a third aspect of the present application, an electronic device is provided, including:
[0041] a memory for storing one or more computer programs;
[0042] The processor implements the OTDR data processing method as described in the first aspect above when the one or more computer programs are executed by the processor.
[0043] According to a third aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the OTDR data processing method as described in the first aspect above when executed.
[0044] Based on any one of the above aspects, the OTDR data processing method, system, electronic device and computer storage medium provided in the embodiments of the present application can perform analog-to-digital conversion on the collected OTDR data lines, accumulate and average them after converting them into digital signals, calculate the background noise data after averaging, perform noise reduction processing based on the background noise data, and then judge the positive and negative values of each OTDR point data before logarithmic processing to set the negative OTDR point data to 0. This method can remove abnormally low OTDR point data. On the one hand, it solves the problem that there is some background noise abnormality in the OTDR point data. On the other hand, it directly filters out all OTDR point data less than 0, reduces the probability of encountering other abnormal background noise, and thus improves the data quality of the OTDR data. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 A flowchart of an OTDR data processing method provided in an embodiment of the present application.
[0047] Figure 2 This is a flowchart of sub-steps of step S110 in an OTDR data processing method provided in an embodiment of the present application.
[0048] Figure 3 A flowchart of sub-steps of step S120 in an OTDR data processing method provided in an embodiment of the present application.
[0049] Figure 4 This is a flowchart of sub-steps of step S140 in an OTDR data processing method provided in an embodiment of the present application.
[0050] Figure 5 An architectural diagram of an OTDR data processing system provided in an embodiment of the present application.
[0051] Figure 6 An architectural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The drawings of this application are only used for illustrative purposes and should not be construed as limiting the present application. In order to better illustrate the following embodiments, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product; it is understandable to those skilled in the art that some well-known structures and their descriptions in the drawings may be omitted.
[0053] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0055] Example 1
[0056] like Figure 1 As shown, this embodiment provides an OTDR data processing method, and the specific steps of the method include:
[0057] S110 , collecting OTDR data in frames and performing analog-to-digital conversion to obtain OTDR point data corresponding to each frame.
[0058] In an optional embodiment, if Figure 2 As shown, the specific steps of step S110 may include:
[0059] S111, transmitting a pulse signal into the optical fiber in units of times;
[0060] S112, collecting a reflected light signal corresponding to a pulse signal in the optical fiber to obtain OTDR data, wherein the OTDR data corresponding to the pulse signal is used as a frame of OTDR data;
[0061] S113, performing analog-to-digital conversion on each frame of OTDR data according to the acquisition sequence to obtain OTDR point data corresponding to each frame.
[0062] In this embodiment, the OTDR data is obtained by sending a pulse signal to the optical fiber through the OTDR device. The pulse signal will generate backscattered light during the propagation of the optical fiber. The OTDR data can be obtained by collecting the backscattered light.
[0063] The analog-to-digital conversion can be implemented by using an analog-to-digital conversion chip, and the collected OTDR data is converted into a digital signal through the analog-to-digital conversion to form the OTDR point data.
[0064] S120: Accumulate a preset number of OTDR point data to obtain an accumulated value.
[0065] In this embodiment, waveform data with a higher signal-to-noise ratio can be obtained by accumulating a certain preset number of OTDR point data, thereby facilitating subsequent analysis and processing of the OTDR data.
[0066] In an optional embodiment, if Figure 3 As shown, the step S120 may specifically include the following steps:
[0067] S121, inputting the OTDR point data corresponding to each frame after analog-to-digital conversion into an accumulation queue.
[0068] By setting a temporary accumulation queue, the OTDR point data after the analog-to-digital conversion is sequentially stored in the accumulation queue for temporary storage, waiting for accumulation processing.
[0069] S122. Preset the cumulative time period threshold as a preset number.
[0070] In this embodiment, the accumulation time period threshold may be preset to be used as a count of the OTDR point data in the accumulation queue.
[0071] S123, accumulating the OTDR point data corresponding to each frame input into the accumulation queue within the accumulation time period threshold, and obtaining the accumulated OTDR point data as the accumulated value.
[0072] In this embodiment, the first frame data stored in the accumulation queue can be used as the starting time of the accumulation time period threshold, and the accumulated OTDR point data can be obtained by accumulating the OTDR point data corresponding to each frame stored in the accumulation time period threshold.
[0073] In a specific implementation process, the accumulation is performed on each sampling position in the OTDR point data corresponding to each frame. For example, , wherein the represents the point value of the i-th sampling position in the OTDR point data of the first frame, Indicates the point value of the i-th sampling position in the OTDR point data of the second frame, Represents the point value of the i-th sampling position in the OTDR point data of the m-th frame, Represents the accumulated value of the i-th sampling position point value.
[0074] In a specific implementation process, the accumulation process can be performed by taking out data from the accumulation queue and then accumulating the data, and the taken out data is deleted from the accumulation queue at the same time so that it can be temporarily stored next time.
[0075] S130, performing an average processing according to the accumulated values to obtain averaged OTDR point data.
[0076] In this embodiment, after the OTDR point data are accumulated and averaged, they are smoother than single-frame OTDR point data, contain fewer interference signals and burrs, and are more conducive to subsequent analysis and processing of the OTDR point data.
[0077] In an optional implementation manner, the process of calculating the average value is specifically as follows:
[0078] Each sampling position point value in the OTDR point data corresponding to each frame is divided by the accumulated value. Exemplarily, the following formula may be used for calculation:
[0079]
[0080] Where i = 1,2,..., represents the number of sampling points in the OTDR point data corresponding to each frame; It represents the point value corresponding to the i-th sampling position in the OTDR point data after averaging.
[0081] S140: Calculate corresponding background noise data according to the averaged OTDR point data.
[0082] In this embodiment, the noise reduction process needs to obtain the background noise data in advance, and the noise reduction process is performed based on the background noise data.
[0083] In an optional embodiment, if Figure 4 As shown, the specific steps of step S140 may include:
[0084] S141, presetting a noise floor coefficient n, wherein n is less than the number of OTDR point data corresponding to each frame;
[0085] S142, taking n point data from the tail of the averaged OTDR point data corresponding to each frame, and accumulating them, and performing average value processing after accumulation to obtain background noise data corresponding to each frame.
[0086] It can be understood that the background noise data in this embodiment is extracted from the averaged OTDR point data, and specifically is calculated from the tail value of the averaged OTDR point data corresponding to each frame.
[0087] In another optional implementation, the background noise data may also be obtained by taking n point data from any part of the OTDR point data corresponding to each frame after averaging and accumulating them to obtain the background noise data. The arbitrary part may be the beginning part or the middle part of the OTDR point data corresponding to each frame, etc., which is not limited here.
[0088] In this embodiment, the method for obtaining the background noise data can be determined according to the actual collected OTDR point data, and a unique method for obtaining the data can also be preset for execution, which is not limited here.
[0089] In the specific implementation process, the value of n can be set according to actual needs.
[0090] S150: Perform noise reduction processing on the averaged OTDR point data according to the background noise data to obtain noise-reduced OTDR point data.
[0091] In an optional implementation, the specific operation of step S150 may be to subtract the background noise data of the corresponding frame from each point data in the averaged OTDR point data to obtain the noise-reduced OTDR point data.
[0092] S160, performing a positive or negative judgment on the noise-reduced OTDR point data, retaining it if it is a positive number, and setting it to 0 if it is a negative number, to obtain the OTDR point data after the positive or negative judgment processing.
[0093] In this embodiment, since in the OTDR data collection process, the valid data are basically positive values, and only some lower noise floors are negative values, in order to suppress the excessively low noise floors more directly, the embodiment of the present application directly makes a positive or negative judgment on the noise-reduced OTDR point data. If the value is greater than zero, it is retained and output; if it is less than zero, it is set to zero and then output. This can retain all valid values and noise floors greater than 0 while sacrificing some noise floor data less than 0, thereby improving the quality of the OTDR data.
[0094] S130, performing logarithmic processing on the OTDR point data after the positive and negative judgment processing to obtain an OTDR index curve.
[0095] In this embodiment, linear data can be converted into an exponential curve through logarithmic processing, so that the change of data is more obvious, which facilitates the observation, analysis and processing of the OTDR data.
[0096] The OTDR data processing method provided in the embodiment of the present application can perform analog-to-digital conversion on the collected OTDR data lines, accumulate and average them after converting them into digital signals, calculate the background noise data after averaging, perform noise reduction processing based on the background noise data, and then judge the positive and negative values of each OTDR point data before logarithmic processing to set the negative OTDR point data to 0. This method can remove abnormally low OTDR point data, on the one hand, solve the problem of partial background noise abnormalities in the OTDR point data, and on the other hand directly filter out all OTDR point data less than 0, reduce the probability of encountering other abnormal background noise, and thus improve the data quality of the OTDR data.
[0097] Example 2
[0098] like Figure 5 As shown, an embodiment of the present application provides an OTDR data processing system 200, the system comprising:
[0099] The acquisition module 210 is used to acquire OTDR data in frames.
[0100] In this embodiment, the OTDR data is transmitted through an OTDR device to send a pulse signal to the optical fiber. The pulse signal generates backscattered light during the propagation of the optical fiber. The OTDR data can be obtained by collecting the backscattered light through the acquisition module 210. The OTDR data corresponding to one pulse signal is regarded as one frame of OTDR data.
[0101] The analog-to-digital conversion module 220 is used to perform analog-to-digital conversion on each frame of collected OTDR data to obtain OTDR point data corresponding to each frame.
[0102] In this embodiment, the analog-to-digital conversion module 220 may be implemented by an analog-to-digital conversion chip, and the collected OTDR data may be converted into digital signals through analog-to-digital conversion to form the OTDR point data.
[0103] In specific implementation, the analog-to-digital conversion module 220 can perform analog-to-digital conversion on each frame of OTDR data according to the acquisition sequence to obtain OTDR point data corresponding to each frame.
[0104] The accumulation module 230 is used to accumulate a preset number of OTDR point data to obtain an accumulated value.
[0105] In this embodiment, waveform data with a higher signal-to-noise ratio can be obtained by accumulating a certain preset number of OTDR point data, thereby facilitating subsequent analysis and processing of the OTDR data.
[0106] In an optional implementation, the accumulation module 230 may specifically include:
[0107] The OTDR point data corresponding to each frame after analog-to-digital conversion is input into the accumulation queue; by setting a temporary accumulation queue, the OTDR point data after analog-to-digital conversion is sequentially stored in the accumulation queue for temporary storage, waiting for accumulation processing.
[0108] The accumulated time period threshold is preset as the preset number. In this embodiment, the accumulated time period threshold can be preset to be used as a count of the accumulated OTDR point data in the queue.
[0109] The OTDR point data corresponding to each frame input into the accumulation queue within the accumulation time period threshold are accumulated to obtain the accumulated OTDR point data as the accumulated value. The first frame data stored in the accumulation queue can be used as the starting time of the accumulation time period threshold, and the OTDR point data corresponding to each frame stored within the accumulation time period threshold can be accumulated to obtain the accumulated OTDR point data.
[0110] In a specific implementation process, the accumulation is performed on each sampling position in the OTDR point data corresponding to each frame. For example, , wherein the represents the point value of the i-th sampling position in the OTDR point data of the first frame, Indicates the point value of the i-th sampling position in the OTDR point data of the second frame, Represents the point value of the i-th sampling position in the OTDR point data of the m-th frame, Represents the accumulated value of the i-th sampling position point value.
[0111] In a specific implementation process, the accumulation process can be performed by taking out data from the accumulation queue and then accumulating the data, and the taken out data is deleted from the accumulation queue at the same time so that it can be temporarily stored next time.
[0112] The averaging processing module 240 is used to perform an averaging process according to the accumulated values to obtain averaged OTDR point data.
[0113] In this embodiment, after the OTDR point data are accumulated and averaged, they are smoother than single-frame OTDR point data, contain fewer interference signals and burrs, and are more conducive to subsequent analysis and processing of the OTDR point data.
[0114] In an optional implementation manner, the averaging processing module 240 performs the averaging process as follows:
[0115] Each sampling position point value in the OTDR point data corresponding to each frame is divided by the accumulated value. Exemplarily, the following formula may be used for calculation:
[0116]
[0117] Where i = 1,2,..., represents the number of sampling points in the OTDR point data corresponding to each frame; It represents the point value corresponding to the i-th sampling position in the OTDR point data after averaging.
[0118] The background noise processing and acquisition module 250 is used to calculate the corresponding background noise data according to the averaged OTDR point data.
[0119] In this embodiment, the noise reduction process needs to obtain the background noise data in advance, and the noise reduction process is performed based on the background noise data.
[0120] In an optional implementation, specific operations of the background noise processing acquisition module 250 may include:
[0121] Preset a noise floor coefficient n, where n is less than the number of OTDR point data corresponding to each frame;
[0122] N point data are taken from the tail of the OTDR point data corresponding to each frame for accumulation, and average value processing is performed after accumulation to obtain the background noise data corresponding to each frame.
[0123] It can be understood that the background noise data is extracted from the averaged OTDR point data, and specifically is calculated from the tail value of the averaged OTDR point data corresponding to each frame.
[0124] In another optional implementation, the background noise data may also be obtained by taking n point data from any part of the OTDR point data corresponding to each frame after averaging and accumulating them to obtain the background noise data. The arbitrary part may be the beginning part or the middle part of the OTDR point data corresponding to each frame, etc., which is not limited here.
[0125] In this embodiment, the method for obtaining the background noise data can be determined according to the actual collected OTDR point data, and a unique method for obtaining the data can also be preset for execution, which is not limited here.
[0126] In the specific implementation process, the value of n can be set according to actual needs.
[0127] The noise reduction processing module 260 is used to perform noise reduction processing on the averaged OTDR point data according to the background noise data to obtain noise-reduced OTDR point data.
[0128] In an optional implementation, the specific operation of the noise reduction processing module 260 may be to subtract the background noise data of the corresponding frame from each point data in the averaged OTDR point data to obtain the noise-reduced OTDR point data.
[0129] The positive and negative judgment module 230 is used to perform positive and negative judgment on the noise-reduced OTDR point data. If it is a positive number, it is retained; if it is a negative number, it is set to 0, so as to obtain the OTDR point data after positive and negative judgment processing.
[0130] In this embodiment, since in the OTDR data collection process, the valid data are basically positive values, and only some lower noise floors are negative values, in order to suppress the excessively low noise floors more directly, the embodiment of the present application directly makes a positive or negative judgment on the noise-reduced OTDR point data. If the value is greater than zero, it is retained and output; if it is less than zero, it is set to zero and then output. This can retain all valid values and noise floors greater than 0 while sacrificing some noise floor data less than 0, thereby improving the quality of the OTDR data.
[0131] The logarithmic processing module 280 is used to perform logarithmic processing on the OTDR point data after the positive and negative judgment processing to obtain an OTDR index curve.
[0132] In this embodiment, linear data can be converted into an exponential curve through logarithmic processing, so that the change of data is more obvious, which facilitates the observation, analysis and processing of OTDR data.
[0133] The OTDR data processing system provided in the embodiment of the present application can perform analog-to-digital conversion on the collected OTDR data lines, accumulate and average them after converting them into digital signals, calculate the background noise data after averaging, perform noise reduction processing based on the background noise data, and then judge the positive and negative values of each OTDR point data before logarithmic processing to set the negative OTDR point data to 0. This method can remove abnormally low OTDR point data, on the one hand, solve the problem of partial background noise abnormalities in the OTDR point data, and on the other hand directly filter out all OTDR point data less than 0, reduce the probability of encountering other abnormal background noise, thereby improving the data quality of the OTDR data.
[0134] It can be understood that the above-mentioned system embodiment and the above-mentioned method embodiment can correspond to each other, and similar descriptions of the system embodiment can refer to the method embodiment. To avoid repetition, it will not be repeated here. An OTDR data processing system 200 provided in an embodiment of the present application can execute an OTDR data processing method provided in any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method. The functional modules of the OTDR data processing system 200 can be implemented in the form of hardware, can be implemented by instructions in the form of software, and can also be implemented by a combination of hardware and software modules.
[0135] Specifically, each step of the method embodiment of the present application can be completed by the hardware integrated logic circuit and / or software instructions in the processor, and the steps of the OTDR data processing method in the embodiment of the present application can be directly embodied as a hardware encoding processor, or a combination of hardware and software modules in the encoding processor. Optionally, the software module can be located in a random access memory, a read-only memory, a programmable read-only memory, a flash memory, an electrically erasable programmable memory, a register, and other storage media. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in combination with its hardware.
[0136] The present application embodiment provides an electronic device 300, whose structure is as follows: Figure 6 shown.
[0137] like Figure 6 As shown, the electronic device 300 includes a memory 311, a processor 312, a communication module 313 and an input / output interface 314, etc. Optionally, the memory 311, the processor 312, the communication module 313 and the input / output interface 314 can be connected and communicated through a bus 315.
[0138] The memory 311 is used to store one or more computer programs and transmit the codes of the computer programs to the processor 312; when the one or more computer programs are executed by the processor 312, the OTDR data processing method in the embodiment of the present application is implemented.
[0139] Optionally, the electronic device 300 can be connected to a network through a communication module 313 to communicate with other devices, such as a terminal or a server, through the network to achieve data interaction. The electronic device 300 can be various forms of digital computers, such as desktop computers, servers, workstations, mainframe computers or other types of computers. The electronic device 300 can also be various forms of mobile terminals, such as smart phones, tablet computers, wearable devices (such as helmets, glasses, watches, etc.) and other similar mobile terminals.
[0140] Optionally, the electronic device 300 can be connected to the required input / output devices, such as a keyboard, a display device, etc., through the input / output interface 314. The electronic device 300 itself can have a display device, and can also be connected to other display devices through the input / output interface 314. Optionally, a storage device, such as a hard disk, can also be connected through the input / output interface 314, so that data in the electronic device 300 can be stored in the storage device, or data in the storage device can be read, and data in the storage device can also be stored in the memory 311. It can be understood that the input / output interface 314 can be a wired interface or a wireless interface. Depending on the actual application scenario, the device connected to the input / output interface 314 can be a component of the electronic device 300, or it can be an external device connected to the electronic device 300 when needed.
[0141] Optionally, the memory 311 may be a volatile memory and / or a non-volatile memory, the volatile memory may be a random access memory, etc., and the non-volatile memory may be a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory or a flash memory, etc.
[0142] Optionally, the computer program stored in the processor 312 may be divided into one or more modules, which are stored in the memory 311 and executed by the processor 312 to complete the method provided in the embodiment. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the computer program instruction segments are used to describe the execution process of the computer program in the electronic device 300.
[0143] Optionally, the processor 312 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 312 include, but are not limited to, a central processing unit, a graphics processing unit, a digital signal processor, various special artificial intelligence computing chips, various processors running machine learning model algorithms, and may also be any appropriate controller, microcontroller, processor, etc. The processor 312 executes the various methods and processes of this embodiment, illustratively, such as a video data processing method in an embodiment of the present application.
[0144] Optionally, the bus 315 may include a path for transmitting information. The bus 315 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. According to different functions, the bus 315 may be divided into an address bus, a data bus, a control bus, etc.
[0145] In an optional implementation, the embodiment of the present application further provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. Part or all of the computer program can be loaded and / or installed on the memory 311 of the electronic device 300. When the computer program is executed by the processor 312, one or more steps of a video data processing method of the embodiment of the present application can be performed.
[0146] Optionally, the computer-readable storage medium may be a random access memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or the like.
[0147] Obviously, the above embodiments of the present application are merely examples for clearly illustrating the technical solution of the present application, and are not intended to limit the specific implementation methods of the present application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the claims of the present application shall be included in the protection scope of the claims of the present application.
[0148] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation methods of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the claims of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. An OTDR data processing method, characterized in that: The method comprises: Collect OTDR data in frames and perform analog-to-digital conversion to obtain OTDR point data corresponding to each frame; Accumulating a preset number of OTDR point data to obtain an accumulated value; Performing an average processing according to the accumulated values to obtain averaged OTDR point data; Calculate corresponding background noise data according to the averaged OTDR point data; Performing noise reduction processing on the averaged OTDR point data according to the background noise data to obtain noise-reduced OTDR point data; Performing a positive and negative judgment on the noise-reduced OTDR point data, retaining it if it is a positive number, and setting it to 0 if it is a negative number, to obtain the OTDR point data after positive and negative judgment processing; Performing logarithmic processing on the OTDR point data after the positive and negative judgment processing to obtain an OTDR index curve; The calculating corresponding background noise data according to the averaged OTDR point data specifically includes: Preset a noise floor coefficient n, where n is less than the number of OTDR point data corresponding to each frame; From the tail of the averaged OTDR point data corresponding to each frame, n point data are taken for accumulation, and after accumulation, average value processing is performed to obtain the background noise data corresponding to each frame.
2. An OTDR data processing method according to claim 1, characterized in that, The method of collecting OTDR data in frames and performing analog-to-digital conversion to obtain OTDR point data corresponding to each frame specifically includes: Transmitting pulse signals into the optical fiber in units of times; Collecting the reflected light signal corresponding to a pulse signal in the optical fiber to obtain OTDR data, wherein the OTDR data corresponding to the pulse signal is used as a frame of OTDR data; Each frame of OTDR data is converted into digital form according to the acquisition sequence to obtain the OTDR point data corresponding to each frame.
3. An OTDR data processing method according to claim 1, characterized in that, The step of accumulating a preset number of OTDR point data to obtain an accumulated value specifically includes: Inputting the OTDR point data corresponding to each frame after analog-to-digital conversion into an accumulation queue; Preset the cumulative time period threshold as the preset number; The OTDR point data corresponding to each frame input into the accumulation queue within the accumulation time period threshold are accumulated to obtain the accumulated OTDR point data as the accumulated value.
4. An OTDR data processing method according to claim 3, characterized in that: The method further comprises: The OTDR point data that has completed the accumulation processing is removed from the accumulation queue.
5. An OTDR data processing method according to claim 1, characterized in that: The performing noise reduction processing on the averaged OTDR point data according to the background noise data to obtain the noise-reduced OTDR point data specifically includes: The noise floor data of the corresponding frame is subtracted from each point data in the averaged OTDR point data to obtain the noise-reduced OTDR point data.
6. An OTDR data processing system, characterized in that: The system comprises: An acquisition module, used for acquiring OTDR data in frames; The analog-to-digital conversion module is used to perform analog-to-digital conversion on each frame of collected OTDR data to obtain OTDR point data corresponding to each frame; An accumulation module, used for accumulating a preset number of OTDR point data to obtain an accumulated value; An averaging processing module, used for performing an averaging process according to the accumulated value to obtain averaged OTDR point data; A noise floor processing acquisition module is used to calculate corresponding noise floor data according to the averaged OTDR point data; the calculation of corresponding noise floor data according to the averaged OTDR point data specifically includes: Preset a noise floor coefficient n, where n is less than the number of OTDR point data corresponding to each frame; Take n point data from the tail of the averaged OTDR point data corresponding to each frame and add them up, and then perform average processing after accumulation to obtain the background noise data corresponding to each frame; A noise reduction processing module, used for performing noise reduction processing on the averaged OTDR point data according to the background noise data to obtain noise-reduced OTDR point data; A positive and negative judgment module is used to make a positive and negative judgment on the OTDR point data after noise reduction, and if it is a positive number, it is retained, and if it is a negative number, it is set to 0, so as to obtain the OTDR point data after positive and negative judgment processing; The logarithmic processing module is used to perform logarithmic processing on the OTDR point data after the positive and negative judgment processing to obtain an OTDR index curve.
7. An OTDR data processing system according to claim 6, characterized in that: The background noise processing acquisition module is specifically used for: Preset a noise floor coefficient n, where n is less than the number of OTDR point data corresponding to each frame; N point data are taken from the tail of the OTDR point data corresponding to each frame for accumulation, and average value processing is performed after accumulation to obtain the background noise data corresponding to each frame.
8. An OTDR data processing system according to claim 6, characterized in that: The accumulation module is specifically used for: Inputting the OTDR point data corresponding to each frame after analog-to-digital conversion into an accumulation queue; Preset the cumulative time period threshold as the preset number; The OTDR point data corresponding to each frame input into the accumulation queue within the accumulation time period threshold are accumulated to obtain the accumulated OTDR point data as the accumulated value.
9. An electronic device, characterized in that: include: a memory for storing one or more computer programs; The processor implements the OTDR data processing method according to any one of claims 1 to 5 when the one or more computer programs are executed by the processor.
10. A computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a processor to implement the OTDR data processing method according to any one of claims 1 to 5 when executed.
