Disclosure of Invention
The embodiment of the invention aims to provide an optical fiber test data acquisition method based on an industrial Internet platform, and aims to solve the problem in the third part of the background technology.
The embodiment of the invention is realized in such a way that the optical fiber test data acquisition method based on the industrial Internet platform comprises the following steps:
sending detection light to one end of the optical fiber, receiving the detection light at the other end of the optical fiber, generating first detection data, switching the detection end of the optical fiber, repeating the steps to obtain second detection data, wherein the first detection data comprises light sending time, light receiving time, light sending power and light receiving power in the first detection, and the second detection data comprises light sending time, light receiving time, light sending power and light receiving power in the second detection;
uploading the first detection data and the second detection data, calling preset optical fiber information data, and calculating the total length of the optical fiber;
Calculating and determining an abnormal point position of the optical fiber according to the first detection data and the second detection data and the total length of the optical fiber;
and calling the first detection data and the second detection data, and storing the related data for calculating the total length of the optical fiber and determining the abnormal point position of the optical fiber in a server.
Preferably, the step of uploading the first detection data and the second detection data, calling preset optical fiber information data, and calculating the total length of the optical fiber specifically includes:
Uploading the first detection data and the second detection data, and extracting the light emitting time and the light receiving time in the first detection and the light emitting time and the light receiving time in the second detection from the first detection data and the second detection data;
the method comprises the steps of calling preset optical fiber information data, and inquiring according to the current optical fiber type to obtain a corresponding theoretical power loss rate;
And calculating the time difference between the two light transceiving processes, calculating the length of the optical fiber according to the time difference, and taking the average value to obtain the total length of the optical fiber.
Preferably, the step of determining the abnormal point position of the optical fiber according to the first detection data, the second detection data and the total length calculation of the optical fiber specifically includes:
the light emitting power and the light receiving power in the first detection data and the light emitting power and the light receiving power in the second detection data are called;
And calculating the distance between the abnormal point of the optical fiber and the end part of the optical fiber according to the light emitting power and the light receiving power detected twice.
Preferably, the step of retrieving the first detection data and the second detection data, and storing the relevant data for calculating the total length of the optical fiber and determining the abnormal point of the optical fiber in the server specifically includes:
Reading time data of the detection, and determining one-time historical detection with the shortest detection time;
Retrieving data corresponding to the history detection, comparing the data with all data detected at the time, and determining a difference value;
And storing the difference value and drawing a fiber performance change curve.
Preferably, the stored data is encrypted during data storage.
Preferably, the detection is stopped when the detection light cannot pass through the optical fiber.
Another object of an embodiment of the present invention is to provide an optical fiber test data acquisition system based on an industrial internet platform, the system including:
The optical fiber detection module is used for sending detection light to one end of the optical fiber, receiving the detection light at the other end of the optical fiber, generating first detection data, switching the detection end of the optical fiber, repeating the steps to obtain second detection data, wherein the first detection data comprises light sending time, light receiving time, light sending power and light receiving power in the first detection, and the second detection data comprises light sending time, light receiving time, light sending power and light receiving power in the second detection;
The length calculation module is used for uploading the first detection data and the second detection data, calling preset optical fiber information data and calculating the total length of the optical fiber;
the abnormality positioning module is used for calculating and determining an abnormal point position of the optical fiber according to the first detection data, the second detection data and the total length of the optical fiber;
The data acquisition module is used for retrieving the first detection data and the second detection data, and storing the related data for calculating the total length of the optical fiber and determining the abnormal point position of the optical fiber in the server.
Preferably, the length calculation module includes:
The data extraction unit is used for uploading the first detection data and the second detection data and extracting the light emitting time and the light receiving time in the first detection and the light emitting time and the light receiving time in the second detection from the first detection data and the second detection data;
the data query unit is used for retrieving preset optical fiber information data and obtaining a corresponding theoretical power loss rate according to the current optical fiber type query;
and the data calculation unit is used for calculating the time difference between the two light transceiving processes, calculating the length of the optical fiber according to the time difference, and obtaining the average value to obtain the total length of the optical fiber.
Preferably, the anomaly locating module includes:
the data calling unit is used for calling the light emitting power and the light receiving power in the first detection data and the light emitting power and the light receiving power in the second detection data;
and the distance calculating unit is used for calculating the distance between the abnormal point position of the optical fiber and the end part of the optical fiber according to the light emitting power and the light receiving power detected twice.
Preferably, the data acquisition module includes:
the historical information detection unit is used for reading the time data of the detection and determining one-time historical detection with the shortest detection time;
The historical information calling unit is used for calling the data corresponding to the historical detection, comparing the data with all the data detected at the time and determining a difference value;
And the data storage unit is used for storing the difference value and drawing an optical fiber performance change curve.
According to the optical fiber test data acquisition method based on the industrial Internet platform, the detection light is received and transmitted at two ends of the optical fiber for one time, so that the detection data are actively acquired, the acquired detection data are uploaded to the background, the power loss condition of the currently detected optical fiber is calculated according to a preset formula, the fault point position of the optical fiber is primarily judged, the detection personnel is assisted in repairing, the complicated step of manual processing in the whole process is avoided, and the recorded data can be stored.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of this disclosure.
The optical fiber is a short-term optical fiber, which is a fiber made of glass or plastic and can be used as a light transmission tool. The tiny optical fiber is encapsulated in a plastic sheath so that it can bend without breaking. Typically, a transmitting device at one end of the optical fiber uses a light emitting diode or a laser to transmit pulses of light to the optical fiber, and a receiving device at the other end of the optical fiber uses a photosensitive element to detect the pulses. In the current optical fiber equipment, in order to ensure stable use of the optical fiber, the optical fiber needs to be detected so as to judge whether the optical fiber is in a normal working state, but the current optical fiber detection is mainly finished manually, so that on-line detection cannot be performed.
According to the optical fiber test data acquisition method based on the industrial Internet platform, the detection light is received and transmitted at two ends of the optical fiber for one time, so that the detection data are actively acquired, the acquired detection data are uploaded to the background, the power loss condition of the currently detected optical fiber is calculated according to a preset formula, the fault point position of the optical fiber is primarily judged, the detection personnel is assisted in repairing, the complicated step of manual processing in the whole process is avoided, and the recorded data can be stored.
As shown in fig. 1, a flowchart of an optical fiber test data collection method based on an industrial internet platform according to an embodiment of the present invention is provided, where the method includes:
s100, sending out detection light to one end of the optical fiber, receiving the detection light at the other end of the optical fiber, generating first detection data, switching the detection end of the optical fiber, and repeating the steps to obtain second detection data.
In this step, the detection light is detected by using the detection light, which may be red light, and the light guiding property of the optical fiber is used to inject the detection light from one end of the optical fiber at a proper incident angle, at this time, the light emission time and the light emission power of the detection light are recorded, and the detection light is received at the other end of the optical fiber, at this time, the light receiving time and the light receiving power of the detection light are recorded, then the two ends of the optical fiber are turned, that is, the detection light has an end A and an end B, the first detection light enters from the end A and exits from the end B, then the detection light enters from the end B and exits from the end A, and at this time, the power and the time of the detection light are recorded to obtain second detection data, and the second detection data includes the light emission time, the light receiving time, the light emission power and the light receiving power when the detection light cannot pass through the optical fiber, and the detection is stopped.
S200, uploading the first detection data and the second detection data, calling preset optical fiber information data, and calculating the total length of the optical fiber.
In this step, the total length of the detected optical fiber is calculated, because the detected optical fiber may be in a bent state, the difficulty of measuring directly by manpower is extremely high, the error is also high, the length of the optical fiber can be estimated according to the propagation time of the detected light in the optical fiber, because the detected light does not propagate along a straight line in the optical fiber, the detected light continuously reflects and advances in the optical fiber, the propagation speed of the light in the optical fiber can be measured before the detection light, for example, the optical fiber with a fixed length L is set, the propagation speed of the optical fiber in the optical fiber can be obtained by measuring the time of the light passing through the optical fiber, the time difference of the two times of light passing through the optical fiber in the first detection data and the second detection data can be obtained by calculating, and the total length of the two groups of optical fibers can be obtained by adopting an average value obtaining the total length of the optical fiber.
S300, calculating and determining the abnormal point position of the optical fiber according to the first detection data and the second detection data and the total length of the optical fiber.
In this step, the abnormal point position of the optical fiber is determined, and for the optical fiber, the condition that the welding quality of the welding point is unqualified may exist, which will cause the loss of the light to be increased, so the abnormal point position can be estimated through the loss condition that the light passes through the optical fiber from the forward direction and the reverse direction, thereby helping the maintainer to help the maintainer to quickly lock the abnormal point position.
S400, the first detection data and the second detection data are called, and relevant data for calculating the total length of the optical fiber and determining the abnormal point position of the optical fiber are stored in a server.
In this step, all the data contained in the first detection data and the second detection data are called, and the total length of the optical fiber and the related data for determining the abnormal point position of the optical fiber are called at the same time, wherein the related data are parameters, data, calculated values and the like related to determining the abnormal point position, the information needs to be stored, in order to reduce the data storage amount, the information can be stored in a storage variable mode, for example, the data measured for the first time is used as the basis, and then the change value of the data measured for the second time is determined as compared with the change value of the data measured for the first time, so that only the change value is stored, and the problem of large memory occupation caused by storing all the data is avoided.
As shown in fig. 2, as a preferred embodiment of the present invention, the step of uploading the first detection data and the second detection data, calling the preset optical fiber information data, and calculating the total length of the optical fiber specifically includes:
s201, uploading the first detection data and the second detection data, and extracting the light emitting time and the light receiving time in the first detection and the light emitting time and the light receiving time in the second detection from the first detection data and the second detection data.
In this step, the first detection data and the second detection data are uploaded to the background for data processing, and the light emission time and the light receiving time during the first detection and the light emission time and the light receiving time during the second detection are read, so that the time taken for the light to pass through the optical fiber for the two detection can be calculated through the light emission time and the light receiving time for the two detection.
S202, the preset optical fiber information data are called, and the corresponding theoretical power loss rate is obtained according to the current optical fiber type query.
S203, calculating the time difference between the two light transceiving processes, calculating the length of the optical fiber according to the time difference, and obtaining the average value to obtain the total length of the optical fiber.
In this step, the optical fiber information data includes the conversion speed of light propagation in the current type of optical fiber, and the path of light propagation in the optical fiber is nonlinear, so that the conversion speed is converted into the time taken for light to pass through the optical fiber with unit length, the above value is the conversion speed of light propagation in the optical fiber, and the length of the optical fiber is calculated according to the time taken for detecting light to pass through the optical fiber twice, and the total length of the optical fiber is obtained by taking an average value.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of determining the abnormal point of the optical fiber according to the first detection data and the second detection data and the total length calculation of the optical fiber specifically includes:
s301, the light emitting power and the light receiving power in the first detection data and the light emitting power and the light receiving power in the second detection data are called.
S302, calculating the distance between the abnormal point of the optical fiber and the end part of the optical fiber according to the light emitting power and the light receiving power detected twice.
In this step, the light emitting power and the light receiving power in the first detection data and the light emitting power and the light receiving power in the second detection data are called, because there will be loss when the light propagates in the optical fiber, the incident power and the emergent power of the light are different, and the normal propagation loss rate of the light in the optical fiber is determined, if there is an abnormal point in the optical fiber, there will be additional loss at this point, at this point there will be three losses in the optical fiber, for example, the optical fiber is divided into a section and b section by the abnormal point, c is the junction of a section and b section, i.e. c is the abnormal point, then the loss is divided into three parts, the loss value of c point is set as an unknown parameter, the length of a section is set as an unknown parameter, two sets of equations and two unknown parameters can be obtained because of forward and backward detection, and two binary equation solutions can be performed, the length of a section is determined, and the position of the corresponding abnormal point c is also determined correspondingly.
As shown in fig. 4, as a preferred embodiment of the present invention, the steps of retrieving the first detection data and the second detection data, and storing the relevant data for calculating the total length of the optical fiber and determining the abnormal point of the optical fiber in the server specifically include:
s401, reading time data of the current detection, and determining one-time historical detection with the shortest detection time.
In the step, the time data of the current detection is read, namely the current date is determined, and then the history data is consulted to determine the history detection with the shortest detection time.
S402, retrieving data corresponding to the history detection, comparing the data with all data detected at the time, and determining a difference value.
In this step, the data corresponding to the history detection is retrieved, specifically, the time taken for the light detected twice to pass through the optical fiber is compared with the loss condition of the power after passing through the optical fiber, so as to calculate the difference value.
S403, storing the difference value and drawing a fiber performance change curve.
In the step, the difference value is stored, an optical fiber performance change curve is drawn, the change of the optical fiber performance can be evaluated by drawing the optical fiber performance change curve, so that the optical fiber performance change can be overhauled and replaced in time, and the stored data is encrypted during data storage.
As shown in fig. 5, an optical fiber test data acquisition system based on an industrial internet platform according to an embodiment of the present invention includes:
The optical fiber detection module 100 is configured to send detection light to one end of an optical fiber, receive the detection light at the other end of the optical fiber, generate first detection data, switch the detection end of the optical fiber, and repeat the above steps to obtain second detection data.
In this system, the optical fiber detection module 100 detects by using a detection light, which may be red light, and uses the light guiding property of the optical fiber to inject the detection light from one end of the optical fiber at a suitable incident angle, at this time, record the light emission time and the light emission power of the detection light, and receive the detection light at the other end of the optical fiber, record the light receiving time and the light receiving power of the detection light at this time, and then turn over the two ends of the optical fiber, that is, the detection light has an end a and an end B, the first detection light enters from the end a and exits from the end B, after turning over the light, the detection light enters from the end B and exits from the end a, and likewise, at this time, the second detection data including the light emission time, the light receiving time, the light emission power and the light receiving power of the second detection data are also needed to be recorded.
The length calculating module 200 is configured to upload the first detection data and the second detection data, call the preset optical fiber information data, and calculate the total length of the optical fiber.
In this system, the length calculation module 200 calculates the total length of the detected optical fiber, and because the detected optical fiber may be in a bending state, the difficulty of measuring directly by manpower is very high, the error is also high, the length of the optical fiber can be estimated according to the propagation time of the detected light in the optical fiber, and because the detected light does not propagate along a straight line in the optical fiber, it continuously reflects and advances in the optical fiber, so the propagation speed of the light in the optical fiber can be measured before that, for example, the optical fiber with a fixed length L is set, the propagation speed of the optical fiber in the optical fiber can be obtained by measuring the time of the light passing through the optical fiber, and then the time difference of the two times of light passing through the optical fiber in the first detection data and the second detection data can be obtained by calculating the total length of the two groups of optical fibers, and the total length of the optical fiber is obtained by adopting an average value obtaining.
The abnormality locating module 300 is configured to determine an abnormal point position of the optical fiber according to the first detection data, the second detection data, and the total length calculation of the optical fiber.
In the system, the abnormality locating module 300 determines an abnormal point position of the optical fiber, and for the optical fiber, the condition that the welding quality of the welding point is unqualified may exist, which causes the loss of the light to be increased, so that the abnormal point position can be estimated through the loss condition that the light passes through the optical fiber from the forward direction and the reverse direction, thereby helping the maintainer to quickly lock the abnormal point position.
The data acquisition module 400 is configured to retrieve the first detection data and the second detection data, and store relevant data for calculating the total length of the optical fiber and determining the abnormal point location of the optical fiber in the server.
In the system, the data acquisition module 400 retrieves all data contained in the first detection data and the second detection data, and simultaneously retrieves the total length of the optical fiber and related data for determining an abnormal point of the optical fiber, wherein the related data are parameters, data, calculated values and the like related to determining the abnormal point, the information needs to be stored, and in order to reduce the data storage amount, the information can be stored in a storage variable mode, for example, the data measured for the first time is used as a basis, and further, the change value of the data measured for the second time is determined as compared with the change value of the data measured for the first time, so that only the change value is stored, and the problem of large memory occupation caused by storing all the data is avoided.
As shown in fig. 6, as a preferred embodiment of the present invention, the length calculation module 200 includes:
The data extraction unit 201 is configured to upload the first detection data and the second detection data, and extract therefrom a light emission time and a light reception time at the first detection and a light emission time and a light reception time at the second detection.
In this module, the data extraction unit 201 uploads the first detection data and the second detection data to the background for data processing, and reads the light emission time and the light reception time during the first detection and the light emission time and the light reception time during the second detection, and the time taken for the two detection lights to pass through the optical fiber can be calculated by the light emission time and the light reception time during the two detection.
The data query unit 202 is configured to retrieve preset optical fiber information data, and query the preset optical fiber information data according to the current optical fiber type to obtain a corresponding theoretical power loss rate.
The data calculating unit 203 is configured to calculate a time difference between the two light transceiving operations, calculate a length of the optical fiber according to the time difference, and obtain an average value to obtain a total length of the optical fiber.
In this module, the optical fiber information data includes the conversion speed of light propagation in the current type of optical fiber, and because the path of light propagation in the optical fiber is nonlinear, the conversion speed is converted into the time taken for light to pass through the optical fiber with unit length, the above-mentioned numerical value is the conversion speed of light propagation in the optical fiber, and the length of the optical fiber is calculated according to the time taken for detecting light to pass through the optical fiber twice, and the total length of the optical fiber is obtained by taking the average value.
As shown in fig. 7, as a preferred embodiment of the present invention, the anomaly locating module 300 includes:
the data retrieving unit 301 is configured to retrieve the light emitting power and the light receiving power in the first detection data and the light emitting power and the light receiving power in the second detection data.
And a distance calculating unit 302, configured to calculate a distance between the abnormal point of the optical fiber and the end of the optical fiber according to the light emitting power and the light receiving power detected twice.
In the module, the light emitting power and the light receiving power in the first detection data and the light emitting power and the light receiving power in the second detection data are called, because the light has loss when propagating in the optical fiber, the incident power and the emergent power of the light are different, and the normal propagation loss rate of the light in the optical fiber is determined, if an abnormal point exists in the optical fiber, there is extra loss, at this time, the light has three losses in the optical fiber, for example, the optical fiber is divided into an a section and a b section by the abnormal point, c is the junction of the a section and the b section, namely, c is the abnormal point, the loss is divided into three parts, the loss value of the c point is set as an unknown parameter, the length of the a section is set as an unknown parameter, two sets of equations and two unknown parameters can be obtained due to the forward and backward detection, the binary equation is solved, the length of the a section is determined, and the position of the corresponding abnormal point c is correspondingly determined.
As shown in fig. 8, as a preferred embodiment of the present invention, the data acquisition module 400 includes:
the history information detecting unit 401 is configured to read the time data of the current detection and determine a history detection with the shortest detection time.
In this module, the history information detecting unit 401 reads the time data of the current detection, that is, determines the current date, and then refers to the history data to determine the history detection with the shortest distance from the current detection time.
The history information retrieving unit 402 is configured to retrieve data corresponding to the history detection, compare the data with all data detected at this time, and determine a difference value.
In this module, the history information retrieving unit 402 retrieves the data corresponding to the history detection, specifically, compares the time taken for the light detected twice to pass through the optical fiber, and compares the power loss after passing through the optical fiber, so as to calculate the difference value.
And the data storage unit 403 is used for storing the difference value and drawing a fiber performance change curve.
In this module, the data storage unit 403 stores the difference value, and draws a fiber performance change curve, by which the change of the fiber performance can be evaluated, so as to facilitate the repair and replacement of the fiber, and encrypts the stored data during data storage.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.