Intelligent optical fiber wiring method and system based on relay technology
Technical Field
The invention relates to the technical field of optical fiber management, in particular to an intelligent optical fiber wiring method and system based on a relay technology.
Background
The optical fiber wiring refers to the process of connecting and distributing optical fibers according to certain rules and standards, the conventional manual optical fiber wiring always faces two problems of high optical fiber winding and labor cost, in order to solve the problems, a series of intelligent optical fiber wiring systems are invented in the industry, two technical routes of a beam steering technology and an electromechanical technology are the most common, when a machine room is powered off, the intelligent optical fiber wiring system based on the beam steering technology can generate light connection interruption, and the intelligent optical fiber wiring system based on the electromechanical technology can keep connection when the machine room is powered off, but the connector of the intelligent optical fiber wiring system based on the electromechanical technology is completely incompatible with the existing optical fiber wiring frame, the transformation cost is difficult to accept, the design is complex, the fault points are too many, the maintenance is difficult, the connection scale is also very limited, for example, an automatic optical fiber management system AFM (Automated Fiber Management) published by Fiberzone-Network corporation in 2006 adopts a longitudinal and transverse exchange mode, and a customized sheet optical fiber connector is adopted in order to increase the capacity of the system, the scheme is small in size and convenient to carry, but the capacity cannot be lifted, and a manufacturer subsequently loses use.
Disclosure of Invention
The invention provides an intelligent optical fiber wiring method and system based on relay technology, which is to overcome the prior art, add and weld L-shaped wire arranging column based on the prior optical fiber distribution frame, make the jumper wire bypass L-shaped wire arranging column instead of natural sagging, facilitate distinguishing the inside and outside areas of the jumper wire and make the jumper wire more orderly, the non-winding jumper planning method of the invention connects the edge characteristics of the jumper wire and the connection line between the starting port and the target port of the jumper wire together and regards the jumper wire as a closed loop, then prohibits the subsequent jumper fiber wire from passing through the inside of the closed loop, thereby making the subsequent jumper fiber wire and the previous jumper fiber wire form the topological relation of the same embryo outside, the invention also comprises using the lowest loss virtual path method, searching all potential optical fiber paths through breadth first searching method when the optical fiber relay network fails, adopting no-winding jump path planning method to carry out jump path planning to all jumps of all potential optical fiber paths one by one so as to predict extrinsic optical fiber loss caused by the jumps, finally calculating the expected optical fiber loss of all potential optical fiber paths through a multi-layer perceptron and selecting the one with the least expected optical fiber loss as the new path with the lowest loss.
The invention provides an intelligent optical fiber wiring method based on a relay technology, which is applied to an intelligent optical fiber wiring system based on the relay technology, wherein the intelligent optical fiber wiring system based on the relay technology comprises an optical fiber relay network and a network management module, the optical fiber relay network comprises optical fiber relay nodes and optical cables, the optical fiber relay nodes are connected with each other through the optical cables, the network management module is in communication connection with the optical fiber relay nodes, and the optical fiber relay nodes comprise a jumper optical fiber line, an optical fiber UWB tag, a camera, an UWB positioning module, an improved optical fiber distribution frame and an optical fiber jumper mechanical arm, and the intelligent optical fiber wiring method based on the relay technology specifically comprises the following steps:
step S1, acquiring past optical fiber loss data through a network management module, and constructing an optical fiber loss data set;
s2, constructing a multi-layer perceptron through a network management module, and training the multi-layer perceptron by using the optical fiber loss data set;
S3, collecting fault conditions in the optical fiber relay network through a network management module;
s4, determining a new path with the lowest loss by adopting a virtual path method with the lowest loss through a network management module;
and S5, performing optical fiber jumper according to the new path with the lowest loss by the optical fiber jumper connection mechanical arm.
Further, the improved optical fiber distribution frame comprises an L-shaped wire arranging post and an optical fiber distribution frame, wherein the L-shaped wire arranging post is welded on the front edge of the optical fiber distribution frame, a first post arm of the L-shaped wire arranging post is vertical to the front of the optical fiber distribution frame and parallel to the ground, and a second post arm of the L-shaped wire arranging post is parallel to the front of the optical fiber distribution frame and the ground;
The optical fiber UWB tag is sleeved at the middle part of the jumper optical fiber line through the rubber ring.
Further, the step S1 specifically includes the following steps:
S11, collecting the difference between the input optical power and the output optical power of the past optical fiber path as the optical fiber loss of the past optical fiber path, collecting the number of nodes and the total length of the optical cable which the past optical fiber path passes, and collecting the total length and the total curvature of the jumper connection optical fiber line of the past optical fiber path;
And step S12, summarizing the optical fiber loss of the past optical fiber path, the number of nodes and the total length of the optical cable of the past optical fiber path, the total length and the total curvature of the jumper optical fiber line of the past optical fiber path into an optical fiber loss data set.
Further, the step S2 specifically includes the following steps:
s21, constructing a multi-layer perceptron;
And S22, dividing the optical fiber loss data set into a training set and a testing set according to the proportion of 8:2, designating the number of nodes and the total length of an optical cable passing through the past optical fiber path and the total length and the total curvature of a jumper optical fiber line of the past optical fiber path as inputs of the multi-layer perceptron, designating the optical fiber loss of the past optical fiber path as target outputs of the multi-layer perceptron, and training the multi-layer perceptron.
Further, the step S4 specifically includes the following steps:
S41, extracting a starting point node and an end point node of a fault and a node capable of operating normally from the fault condition in the optical fiber relay network;
Step S42, searching all potential optical fiber paths between a starting point node and an end point node by adopting a breadth-first search method;
Step S43, performing jumper route planning on all jumpers of all potential optical fiber paths one by adopting a non-winding jumper planning method, and calculating the total length and the total curvature of respective jumper optical fiber lines of all the potential optical fiber paths;
Step S44, collecting the total length of the optical cables and the number of nodes passing through each potential optical fiber path in the optical fiber relay network;
Step S45, calculating to obtain the respective expected fiber loss of all the potential fiber paths by adopting a multi-layer perceptron;
Step S46, selecting the path with the least expected fiber loss from all the potential fiber paths as the new path with the lowest loss.
Further, the step S43 specifically includes the following steps:
step S431, selecting an optical fiber path instance from all the potential optical fiber paths;
Step S432, determining which optical fiber relay nodes need to be jumped, namely, taking the minimum Hamming distance as the standard that a starting point node and an ending point node are the same, finding out an optical fiber path closest to the optical fiber path example from the existing optical fiber paths in the optical fiber relay network as the closest optical fiber path, and determining which optical fiber relay nodes need to be jumped for realizing the optical fiber path example according to the difference between the optical fiber path example and the closest optical fiber path;
Step S433, selecting an optical fiber relay node instance from optical fiber relay nodes needing to be jumped, and determining a starting port and a target port of the jumped according to the layout of the improved optical fiber distribution frame of the optical fiber relay node instance and the optical fiber path instance;
Step S434, a camera collects the picture of the improved optical fiber distribution frame of the optical fiber relay node example and inputs the picture into a network management module, the network management module constructs a non-winding route-seeking three-dimensional model according to the picture, and a UWB positioning module identifies the position of an optical fiber UWB label of the latest jumper fiber wire in the existing jumper fiber wires and marks the latest jumper fiber wire in the non-winding route-seeking three-dimensional model;
Step S435, the network management module identifies the area where the L-shaped wire arranging post is located and the edge characteristic of the latest jumper optical fiber wire in the picture, connects the edge characteristic of the latest jumper optical fiber wire with the connecting line between the first end and the second end of the latest jumper optical fiber wire and regards the connecting line as a closed loop, and marks the internal area of the closed loop and the area where the L-shaped wire arranging post is located as an obstacle area in the non-winding route three-dimensional model;
step S436, marking the position of a jumper starting port and the position of a jumper target port in the non-winding route-seeking three-dimensional model, setting jumper wire spacing, and setting the position of the latest jumper fiber wire, which bypasses an L-shaped wire arranging column, to be a position which is far to the left jumper wire spacing as a necessary point;
step S437, randomly generating sampling points in the non-winding path-finding three-dimensional model, removing the sampling points in the obstacle area, finding the nearest points of each sampling point and connecting, checking whether the connection interferes with the obstacle area, deleting the interference connection, and adding the position of the starting port of the jump connection, the position of the target port of the jump connection and the necessary passing point into the sampling points;
Step S438, searching all possible routes between the starting port of the jump joint and the target port of the jump joint by adopting a breadth-first search method, deleting the route which does not pass through the point, taking the shortest route in the rest routes as the optimal non-winding jump joint route, smoothing the optimal non-winding jump joint route in a cubic spline interpolation mode, and calculating the length and the total curvature of the optimal non-winding jump joint route;
Step S439, repeating the steps S433 to S438 until all the optical fiber relay nodes needing to be jumpered in the optical fiber path example have an optimal non-winding jumpered route, and summing the lengths and the total curvatures of all the optimal non-winding jumpered routes of the optical fiber path example to obtain the total length and the total curvature of the optical fiber path example;
Step S4310, repeat steps S431 through S439 until all potential fiber paths have corresponding total lengths and total curvatures.
Further, the step S5 specifically includes the following steps:
Step S51, extracting an optical fiber relay node which needs to be jumped from the new path with the lowest loss;
Step S52, respectively picking up the optimal non-winding jumper route of the optical fiber relay node to be subjected to jumper connection in the new path with the lowest loss, and transmitting the optimal non-winding jumper route to an optical fiber jumper connection mechanical arm of the corresponding optical fiber relay node;
step S53, the optical fiber jumper arm inserts the first end of the jumper optical fiber line into the jumper starting port, clamps the second end of the jumper optical fiber line, and sends the second end into the jumper target port along the optimal non-winding jumper route;
and S54, each camera of the optical fiber relay node needing to be jumped acquires the picture of the improved optical fiber distribution frame after being jumped, and the network management module performs connectivity test on the new path with the lowest loss.
By adopting the scheme, the beneficial effects obtained by the invention are as follows:
(1) The invention adds and welds L-shaped wire arranging post on the basis of the existing optical fiber distribution frame, makes the jumper wire bypass the L-shaped wire arranging post instead of naturally drooping, makes the jumper wire more orderly while being convenient to distinguish the inside and outside areas of the jumper wire, the invention uses the non-winding jumper planning method to connect the edge characteristics of the jumper wire and the connecting wire between the starting port and the target port of the jumper wire together and consider a closed loop, then prohibits the subsequent jumper wire from passing through the inside of the closed loop, thus the subsequent jumper wire and the previous jumper wire form a topological relation with the same embryo as the outside, playing the technical effect of preventing the jumper wire from intertwining, and also comprises using a lowest-loss virtual path method, searching all potential optical fiber paths through a breadth-first searching method when the optical fiber relay network fails, adopting the non-winding jumper method to carry out jumper route planning to predict the extrinsic loss caused by jumper connection, finally calculating all potential optical fiber paths through a multilayer perceptron and selecting the expected loss of all the potential optical fibers and taking the expected loss as an intelligent distribution frame with the lowest-loss, and the intelligent distribution frame is realized by the intelligent and has the advantages of improving the intelligent distribution frame.
(2) The minimum loss virtual path method provided by the invention is characterized by the number of nodes through which an optical fiber path passes and the total curvature of a jumper optical fiber line, thus the extrinsic optical fiber loss caused by butt joint and bending is characterized by the total length of the optical cable and the total length of the jumper optical fiber line of the optical fiber path, the inherent intrinsic loss of an optical fiber material is characterized by the specific characteristic engineering, the priori knowledge of optics and materials is introduced, the predictive performance of a multilayer perceptron on the expected optical fiber loss is effectively improved, and the minimum loss virtual path method is different from the multilayer perceptron alone, the total curvature and the total length of the jumper optical fiber line are estimated by using a non-winding jumper planning method, the optical fiber loss caused by the jumper optical fiber line in the real jumper process is effectively fitted, and the minimum loss new path selection combining machine learning and physical simulation is realized.
(3) The intelligent optical fiber wiring system based on the relay technology provided by the invention is different from the existing automatic optical fiber management system in that the existing automatic optical fiber management system adopts an electromechanical or optical structure which cannot be compatible with the existing optical fiber distribution frame to prevent the optical fiber winding problem, and the intelligent optical fiber wiring system based on the relay technology only needs to weld an L-shaped wire arrangement column on the existing optical fiber distribution frame and install a mechanical arm in a machine room, so that the intelligent optical fiber wiring system based on the relay technology has obvious economical advantage, the fault point is concentrated on the mechanical arm, and is convenient for maintenance personnel to check, can still support manual wire jumper even if the mechanical arm fails, has high expandability, and cannot be achieved by the existing automatic optical fiber management system.
Drawings
FIG. 1 is a schematic diagram of a frame of an improved optical fiber distribution frame;
FIG. 2 is a schematic illustration of an obstacle region in a three-dimensional model of an unwrapped road;
FIG. 3 is a schematic illustration of an optimal non-wrap jumper route;
fig. 4 is a schematic diagram of a frame of the modified optical fiber distribution frame after the jumper connection.
Detailed Description
The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments, and all other embodiments obtained by those skilled in the art without making any inventive effort based on the embodiments of the present invention are within the scope of protection of the present invention.
The first embodiment of the invention provides an intelligent optical fiber wiring method based on a relay technology, which is applied to an intelligent optical fiber wiring system based on the relay technology, wherein the intelligent optical fiber wiring system based on the relay technology comprises an optical fiber relay network and a network management module, the optical fiber relay network comprises optical fiber relay nodes and optical cables, the optical fiber relay nodes are mutually connected through the optical cables, the network management module is in communication connection with the optical fiber relay nodes, and the optical fiber relay nodes comprise a jumper-connected optical fiber line, an optical fiber UWB (ultra-wideband) label, a camera, an UWB positioning module, an improved optical fiber distribution frame and an optical fiber jumper-connected mechanical arm, and the intelligent optical fiber wiring method based on the relay technology specifically comprises the following steps:
step S1, acquiring past optical fiber loss data through a network management module, and constructing an optical fiber loss data set;
s2, constructing a multi-layer perceptron through a network management module, and training the multi-layer perceptron by using the optical fiber loss data set;
S3, collecting fault conditions in the optical fiber relay network through a network management module;
s4, determining a new path with the lowest loss by adopting a virtual path method with the lowest loss through a network management module;
and S5, performing optical fiber jumper according to the new path with the lowest loss by the optical fiber jumper connection mechanical arm.
In a second embodiment, the improved optical fiber distribution frame includes an L-shaped wire-arranging post and an optical fiber distribution frame, the L-shaped wire-arranging post is welded to the front edge of the optical fiber distribution frame, the first post arm of the L-shaped wire-arranging post is perpendicular to the front of the optical fiber distribution frame and parallel to the ground, and the second post arm of the L-shaped wire-arranging post is parallel to the front of the optical fiber distribution frame and the ground;
The optical fiber UWB tag is sleeved at the middle part of the jumper optical fiber line through the rubber ring.
Embodiment three, which is based on the foregoing embodiment, wherein the step S1 specifically includes the following steps:
S11, collecting the difference between the input optical power and the output optical power of the past optical fiber path as the optical fiber loss of the past optical fiber path, collecting the number of nodes and the total length of the optical cable which the past optical fiber path passes, and collecting the total length and the total curvature of the jumper connection optical fiber line of the past optical fiber path;
And step S12, summarizing the optical fiber loss of the past optical fiber path, the number of nodes and the total length of the optical cable of the past optical fiber path, the total length and the total curvature of the jumper optical fiber line of the past optical fiber path into an optical fiber loss data set.
Embodiment four, which is based on the above embodiment, wherein the step S2 specifically includes the following steps:
Step S21, constructing a multi-layer perceptron, wherein in the embodiment, a sklearn library is adopted to realize the multi-layer perceptron;
And S22, dividing the optical fiber loss data set into a training set and a testing set according to the proportion of 8:2, designating the number of nodes and the total length of an optical cable passing through the past optical fiber path and the total length and the total curvature of a jumper optical fiber line of the past optical fiber path as inputs of the multi-layer perceptron, designating the optical fiber loss of the past optical fiber path as target outputs of the multi-layer perceptron, and training the multi-layer perceptron.
Embodiment five, which is based on the foregoing embodiment, the step S4 specifically includes the following steps:
S41, extracting a starting point node and an end point node of a fault and a node capable of operating normally from the fault condition in the optical fiber relay network;
Step S42, searching all potential optical fiber paths between a starting point node and an end point node by adopting a breadth-first search method, wherein in the embodiment, the breadth-first search method is realized by adopting a NetworkX library;
Step S43, performing jumper route planning on all jumpers of all potential optical fiber paths one by adopting a non-winding jumper planning method, and calculating the total length and the total curvature of respective jumper optical fiber lines of all the potential optical fiber paths;
Step S44, collecting the total length of the optical cables and the number of nodes passing through each potential optical fiber path in the optical fiber relay network;
Step S45, calculating to obtain the respective expected fiber loss of all the potential fiber paths by adopting a multi-layer perceptron;
Step S46, selecting the path with the least expected fiber loss from all the potential fiber paths as the new path with the lowest loss.
Embodiment six, referring to fig. 1,2 and 3, the embodiment is based on the above embodiment, and the step S43 specifically includes the following steps:
step S431, selecting an optical fiber path instance from all the potential optical fiber paths;
Step S432, determining which optical fiber relay nodes need to be jumped, namely, taking the minimum Hamming distance as the standard that a starting point node and an ending point node are the same, finding out an optical fiber path closest to the optical fiber path example from the existing optical fiber paths in the optical fiber relay network as the closest optical fiber path, and determining which optical fiber relay nodes need to be jumped for realizing the optical fiber path example according to the difference between the optical fiber path example and the closest optical fiber path;
Step S433, selecting an optical fiber relay node instance from optical fiber relay nodes needing to be jumped, and determining a starting port and a target port of the jumped according to the layout of the improved optical fiber distribution frame of the optical fiber relay node instance and the optical fiber path instance;
Step S434, a camera collects the picture of the improved optical fiber distribution frame of the optical fiber relay node example and inputs the picture into a network management module, the network management module constructs a non-winding route-seeking three-dimensional model according to the picture, a UWB positioning module identifies the position of an optical fiber UWB label of the latest route-seeking optical fiber in the existing route-seeking optical fiber and marks the latest route-seeking optical fiber in the non-winding route-seeking three-dimensional model, and in the embodiment, a Transform library of an ROS frame is adopted to identify the position of the optical fiber UWB label of the latest route-seeking optical fiber in the existing route-seeking optical fiber;
Step S435, the network management module identifies the area where the L-shaped wire arranging column is located and the edge characteristic of the latest jumper optical fiber wire in the picture, connects the edge characteristic of the latest jumper optical fiber wire with the connecting line between the first end and the second end of the latest jumper optical fiber wire and is regarded as a closed loop, the internal area of the closed loop and the area where the L-shaped wire arranging column is located are marked as barrier areas in the non-winding route three-dimensional model, and in the embodiment, the area where the L-shaped wire arranging column is located and the edge characteristic of the latest jumper optical fiber wire in the picture are identified by using an OpenCV library;
step S436, marking the position of a jumper starting port and the position of a jumper target port in the non-winding route-seeking three-dimensional model, setting jumper wire spacing, and setting the position of the latest jumper fiber wire, which bypasses an L-shaped wire arranging column, to be a position which is far to the left jumper wire spacing as a necessary point;
step S437, randomly generating sampling points in the non-winding path-finding three-dimensional model, removing the sampling points in the obstacle area, finding the nearest points of each sampling point and connecting, checking whether the connection interferes with the obstacle area, deleting the interference connection, and adding the position of the starting port of the jump connection, the position of the target port of the jump connection and the necessary passing point into the sampling points;
step S438, searching all possible routes between a jumped starting port and a jumped target port by adopting a breadth-first search method, deleting routes which do not pass through points, taking the shortest route in the rest routes as an optimal non-winding jumpers route, smoothing the optimal non-winding jumpers route in a cubic spline interpolation mode, and then calculating the length and the total curvature of the optimal non-winding jumpers route, wherein in the embodiment, the breadth-first search method is realized by adopting a NetworkX library, and the total curvature calculation is realized by adopting a SciPy library;
Step S439, repeating the steps S433 to S438 until all the optical fiber relay nodes needing to be jumpered in the optical fiber path example have an optimal non-winding jumpered route, and summing the lengths and the total curvatures of all the optimal non-winding jumpered routes of the optical fiber path example to obtain the total length and the total curvature of the optical fiber path example;
Step S4310, repeat steps S431 through S439 until all potential fiber paths have corresponding total lengths and total curvatures.
Embodiment seven, referring to fig. 4, the embodiment is based on the above embodiment, and the step S5 specifically includes the following steps:
Step S51, extracting an optical fiber relay node which needs to be jumped from the new path with the lowest loss;
Step S52, respectively picking up the optimal non-winding jumper route of the optical fiber relay node to be subjected to jumper connection in the new path with the lowest loss, and transmitting the optimal non-winding jumper route to an optical fiber jumper connection mechanical arm of the corresponding optical fiber relay node;
step S53, the optical fiber jumper arm inserts the first end of the jumper optical fiber line into the jumper starting port, clamps the second end of the jumper optical fiber line, and sends the second end into the jumper target port along the optimal non-winding jumper route;
and S54, each camera of the optical fiber relay node needing to be jumped acquires the picture of the improved optical fiber distribution frame after being jumped, and the network management module performs connectivity test on the new path with the lowest loss.
According to the embodiment eight, the optical fiber jumper mechanical arm operates under the Windows operating system environment, depends on the Anaconda3 environment, is UR5e in type, adopts ROS as a programming frame of the optical fiber jumper mechanical arm, and completes construction work of an optical fiber loss data set by utilizing Pandas library and Numpy library.