Optical cable routing information maintenance method and device
By detecting and correcting the differences between the optical cable routing and inspection paths, and performing point-by-point verification based on optical cable duct and pole routing information and optical cable lengths, the problems of low efficiency and insufficient accuracy of the existing optical cable routing detection solutions are solved, and the Automatic discovery and correction of optical cable routing information.
Patent Information
- Application Number
- CN202411434465.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-01-21
AI Technical Summary
The existing optical cable routing detection scheme has low detection efficiency and insufficient accuracy, resulting in large differences between the existing optical cable routing data and actual conditions.
By detecting the routing information storage status of the target optical cable, obtain the route information and inspection path information of the optical cable segment, determine the difference between the optical cable route and the inspection path, and correct the optical cable information based on the on -site verification results. At the same time, the target optical cable path is generated through the optical cable pipeline and rod route information, and the length of the optical cable, and the optical cable laying status is verified one by one to update the optical cable route information.
The automatic discovery and correction of the optical cable information is realized, the detection efficiency and accuracy are improved, and the problem of large differences between the routing data of the existing optical cable and the actual situation.
Smart Images

Figure CN119341645A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of optical cable maintenance, and in particular to an optical cable routing information maintenance method and device. Background Art
[0002] Due to factors such as frequent splicing of existing optical cables and untimely updates of optical cable routes, there is a large difference between the existing optical cable route data and the actual situation. How to realize the automatic discovery and correction of existing optical cable routes has always been the focus and difficulty in the field of optical cable maintenance. At present, optical cable maintenance personnel mainly rely on existing text materials and update optical cable route information by on-site section-by-section investigation. This method is not only inefficient, but also time-consuming and labor-intensive. In addition, there are currently few effective algorithms for automatic discovery and correction of existing optical cable routes that can be used in this field.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method and device for maintaining optical cable routing information, so as to at least solve the technical problems of low detection efficiency and insufficient accuracy of related optical cable routing detection solutions.
[0005] According to one aspect of an embodiment of the present application, a method for maintaining optical cable routing information is provided, comprising: detecting a routing information storage state of a target optical cable, wherein the target optical cable comprises: a first optical cable segment storing optical cable routing information and / or a second optical cable segment lacking optical cable routing information; for the first optical cable segment, obtaining first optical cable routing information and inspection path information corresponding to the first optical cable segment; determining a difference path between an optical cable route indicated by the first optical cable routing information and an inspection path indicated by the inspection path information; correcting the first optical cable routing information according to an on-site verification result of an optical cable laying state of the difference path; for the second optical cable segment, obtaining The invention also includes the routing information of the optical cable duct and the pole line in the target area of the optical cable starting point and the optical cable end point of the second optical cable segment; measuring the optical cable length of the second optical cable segment, and generating the target optical cable path according to the routing information of the optical cable duct and the pole line and the optical cable length; generating the second optical cable routing information corresponding to the second optical cable segment according to the point-by-point verification result of the optical cable laying status of each verification point in the target optical cable path, wherein when the optical cable is not detected at any verification point, it is determined that the verification of the verification point has failed, and the path in the target optical cable path that has not been verified is updated according to the routing information of the optical cable duct and the pole line, the optical cable length and the length of the path in the target optical cable path that has been verified.
[0006] Optionally, the difference path includes a first difference path corresponding to the optical cable routing and a second difference path corresponding to the inspection path, and determining the difference path between the optical cable routing indicated by the first optical cable routing information and the inspection path indicated by the inspection path information includes: determining a first linear path corresponding to the optical cable routing indicated by the first optical cable routing information, and extending each point in the first linear path to both sides of the path by a preset distance to obtain a strip path surface; determining a second linear path corresponding to the inspection path indicated by the inspection path information; determining each path segment in the second linear path that is not located in the strip path surface as a second difference path; and determining each path in the strip path surface corresponding to each segment of the second difference path in the first linear path as the first difference path.
[0007] Optionally, the first optical cable routing information is corrected based on the on-site verification result of the optical cable laying status of the difference path, including: for each pair of the first difference path and the second difference path, instructing the target object to conduct an on-site verification of the optical cable laying status of the first difference path and the second difference path, and receiving the verification result fed back by the target object; if the verification result indicates that the optical cable is laid on the first difference path, keeping the first optical cable routing information unchanged; if the verification result indicates that the optical cable is laid on the second difference path, replacing the routing information corresponding to the first difference path in the first optical cable routing information with the routing information corresponding to the second difference path.
[0008] Optionally, if the verification result indicates that the optical cable is laid on the first difference path, inspection path error information is sent to the target object, wherein the inspection path error information is used to prompt that there is an error in the inspection path and the second difference path in the inspection path needs to be replaced with the first difference path.
[0009] Optionally, a target optical cable path is generated based on the optical cable duct and pole line routing information and the optical cable length, including: generating a network topology map based on the optical cable duct and pole line routing information; using a depth-first algorithm to determine multiple first optical cable paths connecting the optical cable starting point and the optical cable end point from the network topology map, and determining a first path length of each first optical cable path; multiplying the optical cable length by a preset coefficient to obtain a first target path length; and determining the first optical cable path corresponding to the first path length that has the smallest difference with the first target path length as the target optical cable path.
[0010] Optionally, second optical cable routing information corresponding to the second optical cable segment is generated based on the point-by-point verification results of the optical cable laying status of each verification point in the target optical cable path, including: instructing the target object to conduct on-site verification of the optical cable laying status of each verification point in the target optical cable path starting from the optical cable starting point, and determining that the path between the optical cable starting point in the target optical cable path and the verification point that has passed the verification is the path that has completed the verification; when the verification at any verification point fails, the path in the target optical cable path that has not completed the verification is updated based on the optical cable pipeline and pole line routing information, the optical cable length and the length of the path that has completed the verification in the target optical cable path, and instructing the target object to conduct on-site verification of the optical cable laying status of each verification point in the updated path starting from the previous verification point of the verification point that failed the verification; when the verification reaches the optical cable end point, the second optical cable routing information corresponding to the second optical cable segment is generated based on the verified path.
[0011] Optionally, the paths in the target optical cable path that have not completed verification are updated based on the routing information of the optical cable duct and the pole line, the length of the optical cable and the length of the path in the target optical cable path that has completed verification, including: using a depth-first algorithm to determine from the network topology map a plurality of second optical cable paths that connect the previous verification point of the verification point that failed the verification and the end point of the optical cable, and determining the second path length of each second optical cable path; determining the difference between the first target path length and the length of the path in the target optical cable path that has completed verification as the second target path length; and replacing the path in the target optical cable path that has not completed verification with the second optical cable path corresponding to the second path length that has the smallest difference with the second target path length.
[0012] According to another aspect of the embodiment of the present application, there is also provided an optical cable routing information maintenance device, comprising: a detection module, used to detect the routing information storage status of a target optical cable, wherein the target optical cable comprises: a first optical cable segment storing optical cable routing information and / or a second optical cable segment lacking optical cable routing information; a correction module, used to obtain, for the first optical cable segment, first optical cable routing information and inspection path information corresponding to the first optical cable segment; determine a difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information; and correct the first optical cable routing information according to the on-site verification result of the optical cable laying status of the difference path; and a generation module, used to obtain, for the first optical cable segment, first optical cable routing information and inspection path information corresponding to the first optical cable segment; determine a difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information; and correct the first optical cable routing information according to the on-site verification result of the optical cable laying status of the difference path; and For the second optical cable segment, the optical cable duct and pole line routing information in the target area including the optical cable starting point and the optical cable end point of the second optical cable segment is obtained; the optical cable length of the second optical cable segment is measured, and the target optical cable path is generated according to the optical cable duct and pole line routing information and the optical cable length; the second optical cable routing information corresponding to the second optical cable segment is generated according to the point-by-point verification result of the optical cable laying status of each verification point in the target optical cable path, wherein, when the optical cable is not detected at any verification point, it is determined that the verification of the verification point has failed, and the path in the target optical cable path that has not been completed is updated according to the optical cable duct and pole line routing information, the optical cable length and the length of the path in the target optical cable path that has been completed.
[0013] According to another aspect of an embodiment of the present application, a computer program product is further provided, the computer program product comprising: a computer program, wherein when the computer program is executed by a processor, the above-mentioned optical cable routing information maintenance method is implemented.
[0014] According to another aspect of an embodiment of the present application, an electronic device is further provided, the electronic device comprising: a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the above-mentioned optical cable routing information maintenance method through the computer program.
[0015] In an embodiment of the present application, the routing information storage state of the target optical cable is detected, wherein the target optical cable includes: a first optical cable segment storing the optical cable routing information and / or a second optical cable segment lacking the optical cable routing information; for the first optical cable segment, the first optical cable routing information and the inspection path information corresponding to the first optical cable segment are obtained; the difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information is determined; the first optical cable routing information is corrected according to the on-site verification result of the optical cable laying state of the difference path; for the second optical cable segment, the optical cable starting point including the second optical cable segment is obtained and the optical cable duct and pole route information in the target area of the optical cable terminal; measure the optical cable length of the second optical cable segment, and generate the target optical cable path based on the optical cable duct and pole route information and the optical cable length; generate the second optical cable route information corresponding to the second optical cable segment based on the point-by-point verification results of the optical cable laying status of each verification point in the target optical cable path, wherein, when the optical cable is not detected at any verification point, it is determined that the verification of the verification point has failed, and the unverified path in the target optical cable path is updated based on the optical cable duct and pole route information, the optical cable length and the length of the verified path in the target optical cable path. In terms of automatic correction of optical cable routes, by comparing the optical cable route with the inspection path of the maintenance personnel, the wrong optical cable route information can be automatically corrected; in terms of automatic discovery of optical cable routes, by combining the optical cable length of the optical cable segment, the routing information of the duct and pole with the path planning algorithm, combined with on-site verification, the missing optical cable route information is automatically discovered, solving the technical problems of low detection efficiency and insufficient accuracy of related optical cable route detection schemes. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 It is a flowchart of an optional optical cable routing information maintenance method according to an embodiment of the present application;
[0018] Figure 2 is a schematic structural diagram of an optional optical cable routing information maintenance device according to an embodiment of the present application;
[0019] Figure 3 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0020] 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.
[0021] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present application 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.
[0022] Example 1
[0023] According to an embodiment of the present application, a method for maintaining optical cable routing information is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0024] Figure 1 is a flow chart of a method for maintaining optical cable routing information provided according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0025] Step S102, detecting the storage status of routing information of the target optical cable, wherein the target optical cable includes: a first optical cable segment storing the optical cable routing information and / or a second optical cable segment lacking the optical cable routing information;
[0026] Step S104, for the first optical cable segment, obtaining first optical cable routing information and inspection path information corresponding to the first optical cable segment; determining a difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information; and correcting the first optical cable routing information according to the on-site verification result of the optical cable laying status of the difference path;
[0027] Step S106, for the second optical cable segment, obtain the optical cable duct and pole line routing information in the target area including the optical cable starting point and the optical cable end point of the second optical cable segment; measure the optical cable length of the second optical cable segment, and generate the target optical cable path based on the optical cable duct and pole line routing information and the optical cable length; generate the second optical cable routing information corresponding to the second optical cable segment based on the point-by-point verification result of the optical cable laying status of each verification point in the target optical cable path, wherein, when no optical cable is detected at any verification point, it is determined that the verification of the verification point has failed, and the path in the target optical cable path that has not been completed is updated based on the optical cable duct and pole line routing information, the optical cable length and the length of the path in the target optical cable path that has been completed.
[0028] The following describes the various steps of the optical cable routing information maintenance method in conjunction with a specific implementation process.
[0029] Due to various factors such as frequent splicing of existing optical cables and untimely updates of optical cable routes, there is a large difference between the existing optical path routing data and the actual optical cable routing. This application compares the optical cable routing with the inspection path of maintenance personnel, and automatically discovers and corrects erroneous optical cable routing information by analyzing the difference data between the two, thereby helping to improve the accuracy of optical cable routing data.
[0030] First, the routing information storage status of the target optical cable is detected, wherein the target optical cable includes: a first optical cable segment storing the optical cable routing information and / or a second optical cable segment lacking the optical cable routing information.
[0031] For the first optical cable segment, first optical cable routing information and inspection path information corresponding to the first optical cable segment are obtained.
[0032] Generally, when analyzing the routing information of the first optical cable, when the routing information of the first optical cable is completely consistent with the inspection path information of the maintenance personnel, it means that the routing information of the optical cable is accurate. However, due to the influence of various external environmental factors, it is impossible for the inspection personnel to inspect completely along the path where the optical cable is located. There must be a certain distance between the routing information of the first optical cable and the inspection path information of the maintenance personnel in space. Therefore, after obtaining the routing information of the first optical cable and the inspection path information, it is necessary to determine the difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information.
[0033] Optionally, the difference path includes a first difference path corresponding to the optical cable routing and a second difference path corresponding to the inspection path. The difference path between the optical cable routing indicated by the first optical cable routing information and the inspection path indicated by the inspection path information can be determined by the following steps: determine the first linear path corresponding to the optical cable routing indicated by the first optical cable routing information, and extend each point in the first linear path to both sides of the path by a preset distance to obtain a strip path surface; determine the second linear path corresponding to the inspection path indicated by the inspection path information; determine each path segment in the second linear path that is not located in the strip path surface as the second difference path; determine the path in each strip path surface corresponding to each segment of the second difference path in the first linear path as the first difference path.
[0034] For example, based on the geometric principle of whether a line is within a surface, the built-in function ST_DWithin(geom1 geometry,geom2 geometry,Rdouble_precision) of the PG database is used to determine whether the maintenance personnel's inspection path geom1 is completely within the first linear path, forming a strip path surface geom2 after extending R (the default value is 50, which can be set manually) meters to both ends. If it is completely within, it means that the two paths are consistent and the optical cable routing information is accurate. If it is not completely within, it means that there is an error in the optical cable routing or inspection path of the difference part.
[0035] By combining and transforming the built-in functions ST_Difference(geom1 geometry,geom2 geometry), ST_Buffer(geom1 geometry,distance double_precision), and ST_Dump(geom1 geometry) of the PG database, the optical cable routing information and the inspection path information of the difference path between the optical cable routing and the inspection path can be obtained respectively. The formula is as follows:
[0036] Create a strip path surface: The ST_Buffer(geomX,R) function is used to create a buffer around a given geometry. The size of the buffer is determined by the distance parameter R.
[0037] Create a buffer for the cable route: ST_Buffer(geomA,R). This buffer represents an area of R meters on both sides of the cable route.
[0038] Create a buffer for the inspection path: ST_Buffer(geomB,R);
[0039] Calculate the difference path: ST_Difference(geomX,geomY) function is used to obtain the remaining part of geomX that intersects geomY but is not completely contained in geomY;
[0040] Calculate the second difference path: ST_Difference(geomB,ST_Buffer(geomA,R)), calculate the difference between the cable route and the inspection path buffer, and find the part of the inspection path that exceeds the cable route buffer;
[0041] Calculate the first difference path: ST_Difference(geomA,ST_Buffer(geomB,R)), calculate the difference between the cable route and the inspection path buffer, and find the part of the cable route that exceeds the inspection path buffer;
[0042] Use ST_Dump() to convert the result into a collection of geometric objects;
[0043] geomDifCable[]=ST_Dump(ST_Difference(geomA,ST_Buffer(geomB,R)));
[0044] geomDifInspect[]=ST_Dump(ST_Difference(geomB,ST_Buffer(geomA,R)));
[0045] Among them, geomA represents the path information of the optical cable routing; geomB represents the path information of the inspection path.
[0046] As an optional implementation, the first optical cable routing information may be corrected based on the on-site verification results of the optical cable laying status of the difference paths, and the correction may be performed according to the following steps: for each pair of the first difference path and the second difference path, instruct the target object to conduct an on-site verification of the optical cable laying status of the first difference path and the second difference path, and receive the verification results fed back by the target object; if the verification result indicates that the optical cable is laid on the first difference path, keep the first optical cable routing information unchanged; if the verification result indicates that the optical cable is laid on the second difference path, replace the routing information corresponding to the first difference path in the first optical cable routing information with the routing information corresponding to the second difference path.
[0047] Optionally, if the verification result indicates that the optical cable is laid on the first difference path, inspection path error information may also be sent to the target object, wherein the inspection path error information is used to prompt that an error exists in the inspection path and the second difference path in the inspection path needs to be replaced with the first difference path.
[0048] For example, the optical cable route information geomDifCable[] and the inspection path information geomDifInspect[] of the difference between the optical cable route (geomA) and the inspection trajectory information (geomB) are presented based on the geographic information system GIS map, and on-site verification is performed one by one based on the presentation results of the GIS map. If the inspection path information geomDifInspect[i] of the difference part is consistent with the actual optical cable route, the geomDifCable[i] part of the optical cable route is automatically replaced with geomDifInspect[i] to correct the optical cable route information. The correction formula is as follows: if the optical cable route information geomDifCable[i] of the difference part is consistent with the actual optical cable route, it means that the inspection trajectory is wrong, and an inspection rectification work order is automatically sent to the relevant inspection personnel to improve the inspection quality;
[0049] geomAL = ST_GeometryN(ST_Split(geomA,ST_StartPoint(geomDifCable[i])),1); / / Left routing information of abnormal optical cable routing;
[0050] geomAR = ST_GeometryN(ST_Split(geomA,ST_EndPoint(geomDifCable[i])),2); / / Right routing information of abnormal optical cable routing;
[0051] geomAN = ST_Union(ST_Union(geomAL, geomDifInspect[i]), geomAR); / / Optical cable routing corrected by geomDifInspect;
[0052] in:
[0053] The ST_StartPoint(geom) function is used to obtain the starting point of a linear graphic;
[0054] The ST_EndPoint(geom) function is used to obtain the end point of a linear graphic;
[0055] The ST_Split(line_geom,a_point) function is used to split a line line_geom into two lines according to the point a_point on the line;
[0056] The ST_GeometryN(multilinestring,N) function is used to obtain the Nth line information from multilinestring;
[0057] The ST_Union(geomA,geomB) function is used to merge geomA and geomB into one geometry.
[0058] For the second optical cable segment, optical cable duct and pole line routing information in a target area including an optical cable start point and an optical cable end point of the second optical cable segment is obtained.
[0059] Optionally, the optical cable length of the second optical cable segment is measured, and a target optical cable path is generated based on the optical cable duct and pole line routing information and the optical cable length, wherein: first, a network topology map is generated based on the optical cable duct and pole line routing information; then, a depth-first algorithm is used to determine from the network topology map a plurality of first optical cable paths connecting the optical cable start point and the optical cable end point, and a first path length of each first optical cable path is determined; then, the optical cable length is multiplied by a preset coefficient to obtain a first target path length; finally, the first optical cable path corresponding to the first path length having the smallest difference with the first target path length is determined as the target optical cable path.
[0060] For example, for a fiber optic cable with completely missing routing information, the lighting distance S of the starting and ending points of the fiber optic cable is obtained based on the lighting capability of the optical time domain reflectometer (OTDR). Considering that there are reserved optical cables at some nodes of the fiber optic cable route, the actual fiber optic cable length S ‘ = S*P (P defaults to 0.9, and the value of P depends on the type, specification, use environment, application requirements, and specific engineering requirements of the optical cable, and can be manually configured). Based on the optical cable starting point start_id, the optical cable end point end_id, and the routing information of the existing pipelines and poles, the network topology space information Routepath is created, combined with the OTDR equipment lighting and the calculated optical cable length S ‘ The built-in shortest path function pgr_dijkstra(('SELECT id, source, target, cost FROM Routepath', start_id, end_id, directed:=true) of PostGis is modified, and all possible optical cable routing paths between the starting point and the end point of the optical cable are calculated by combining the depth-first algorithm DFS, that is, multiple first optical cable paths, and a routing length closest to the optical cable length S is obtained from these optical cable routing paths. ‘ The path defaults to the actual routing information of the current optical cable, that is, the target optical cable path.
[0061] As an optional implementation, second optical cable routing information corresponding to a second optical cable segment is generated based on the point-by-point verification results of the optical cable laying status of each verification point in the target optical cable path, specifically: the target object is instructed to conduct on-site verification of the optical cable laying status of each verification point in the target optical cable path starting from the starting point of the optical cable, and the path between the starting point of the optical cable in the target optical cable path and the verification point that has passed the verification is determined to be the verified path; when no optical cable is detected at any verification point, it is determined that the verification point has failed the verification, and the path in the target optical cable path that has not completed the verification is updated based on the routing information of the optical cable duct and pole line, the length of the optical cable and the length of the path that has completed the verification in the target optical cable path, and the target object is instructed to conduct on-site verification of the optical cable laying status of each verification point in the updated path starting from the previous verification point of the verification point that failed the verification; when the verification reaches the end point of the optical cable, the second optical cable routing information corresponding to the second optical cable segment is generated based on the verified path.
[0062] Among them, when updating the paths that have not completed verification in the target optical cable path based on the routing information of the optical cable pipeline and the pole line, the optical cable length and the length of the path that has completed verification in the target optical cable path, a depth-first algorithm can be used to determine from the network topology diagram a plurality of second optical cable paths connecting the previous verification point of the verification point that failed the verification and the optical cable end point, and determine the second path length of each second optical cable path; then determine that the difference between the first target path length and the length of the path that has completed verification in the target optical cable path is the second target path length; finally, use the second optical cable path corresponding to the second path length with the smallest difference from the second target path length to replace the path that has not completed verification in the target optical cable path.
[0063] For example, the maintenance personnel use the cable patrol instrument to tap and verify the verification points in the target optical cable path point by point starting from the starting point of the optical cable. If the verification point passes, the verification point is recorded as part of the verified path. If the verification point PointN of the optical cable routing information calculated by the system is inconsistent with the on-site routing information, that is, the verification fails, the verification point PointN is removed from the network topology space information Routepath, and the previous verification point PointN-1 of the verification point PointN is used as the starting point. The optical cable end_id remains unchanged, and the second target path length S2 of the remaining second optical cable path to be verified is ′ =S ′ -S1 ′ (Where S ′ To combine the OTDR equipment lighting and the calculated optical cable path length, i.e. the first target path length, S1 ′The path length between the starting point and the verification point PointN-1, that is, the length of the path that has been verified in the target optical cable path), and finally, the second optical cable path corresponding to the second path length with the smallest difference from the second target path length is used to replace the unverified path in the target optical cable path as the new optical cable path length to jump to the second step to recalculate, and after obtaining the new optical cable routing information, continue to perform tapping verification until the verification reaches the optical cable end point end_id.
[0064] In an embodiment of the present application, the routing information storage state of the target optical cable is detected, wherein the target optical cable includes: a first optical cable segment storing the optical cable routing information and / or a second optical cable segment lacking the optical cable routing information; for the first optical cable segment, the first optical cable routing information and the inspection path information corresponding to the first optical cable segment are obtained; the difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information is determined; the first optical cable routing information is corrected according to the on-site verification result of the optical cable laying state of the difference path; for the second optical cable segment, the optical cable starting point including the second optical cable segment is obtained and the optical cable duct and pole route information in the target area of the optical cable terminal; measure the optical cable length of the second optical cable segment, and generate the target optical cable path based on the optical cable duct and pole route information and the optical cable length; generate the second optical cable route information corresponding to the second optical cable segment based on the point-by-point verification results of the optical cable laying status of each verification point in the target optical cable path, wherein, when the optical cable is not detected at any verification point, it is determined that the verification of the verification point has failed, and the unverified path in the target optical cable path is updated based on the optical cable duct and pole route information, the optical cable length and the length of the verified path in the target optical cable path. In terms of automatic correction of optical cable routes, by comparing the optical cable route with the inspection path of the maintenance personnel, the wrong optical cable route information can be automatically corrected; in terms of automatic discovery of optical cable routes, by combining the optical cable length of the optical cable segment, the routing information of the duct and pole with the path planning algorithm, combined with on-site verification, the missing optical cable route information is automatically discovered, solving the technical problems of low detection efficiency and insufficient accuracy of related optical cable route detection schemes.
[0065] Example 2
[0066] According to an embodiment of the present application, there is also provided an optical cable routing information maintenance device for implementing the optical cable routing information maintenance method in embodiment 1, such as Figure 2 As shown, the optical cable routing information maintenance device at least includes: a detection module 21, a correction module 22 and a generation module 23, wherein:
[0067] The detection module 21 is used to detect the routing information storage status of the target optical cable, wherein the target optical cable includes: a first optical cable segment storing the optical cable routing information and / or a second optical cable segment lacking the optical cable routing information;
[0068] The correction module 22 is used to obtain, for the first optical cable segment, first optical cable routing information and inspection path information corresponding to the first optical cable segment; determine a difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information; and correct the first optical cable routing information according to the on-site verification result of the optical cable laying status of the difference path;
[0069] A generation module 23 is used to obtain, for the second optical cable segment, the optical cable duct and pole line routing information in the target area including the optical cable starting point and the optical cable end point of the second optical cable segment; measure the optical cable length of the second optical cable segment, and generate a target optical cable path based on the optical cable duct and pole line routing information and the optical cable length; generate the second optical cable routing information corresponding to the second optical cable segment based on the point-by-point verification result of the optical cable laying status of each verification point in the target optical cable path, wherein, when no optical cable is detected at any verification point, it is determined that the verification of the verification point has failed, and the path in the target optical cable path that has not been verified is updated based on the optical cable duct and pole line routing information, the optical cable length and the length of the path in the target optical cable path that has been verified.
[0070] The functions of each module of the optical cable routing information maintenance device are described below in conjunction with a specific implementation process.
[0071] Due to various factors such as frequent splicing of existing optical cables and untimely updates of optical cable routes, there is a large difference between the existing optical path routing data and the actual optical cable routing. This application compares the optical cable routing with the inspection track of maintenance personnel, and automatically discovers and corrects erroneous optical cable routing information by analyzing the difference data between the two, thereby helping to improve the accuracy of optical cable routing data.
[0072] First, the detection module detects the routing information storage status of the target optical cable, wherein the target optical cable includes: a first optical cable segment storing the optical cable routing information and / or a second optical cable segment lacking the optical cable routing information.
[0073] For the first optical cable segment, the correction module obtains first optical cable routing information and inspection path information corresponding to the first optical cable segment.
[0074] Generally, when analyzing the routing information of the first optical cable, when the routing information of the first optical cable is completely consistent with the inspection path information of the maintenance personnel, it means that the routing information of the optical cable is accurate. However, due to the influence of various external environmental factors, it is impossible for the inspection personnel to inspect completely along the path where the optical cable is located. There must be a certain distance between the routing information of the first optical cable and the inspection path information of the maintenance personnel in space. Therefore, after obtaining the routing information of the first optical cable and the inspection path information, it is necessary to determine the difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information.
[0075] Optionally, the difference path includes a first difference path corresponding to the optical cable routing and a second difference path corresponding to the inspection path. The difference path between the optical cable routing indicated by the first optical cable routing information and the inspection path indicated by the inspection path information can be determined by the following steps: determine the first linear path corresponding to the optical cable routing indicated by the first optical cable routing information, and extend each point in the first linear path to both sides of the path by a preset distance to obtain a strip path surface; determine the second linear path corresponding to the inspection path indicated by the inspection path information; determine each path segment in the second linear path that is not located in the strip path surface as the second difference path; determine the path in each strip path surface corresponding to each segment of the second difference path in the first linear path as the first difference path.
[0076] As an optional implementation, the correction module corrects the first optical cable routing information based on the on-site verification result of the optical cable laying status of the difference path, and can be performed according to the following steps: for each pair of the first difference path and the second difference path, instruct the target object to conduct an on-site verification of the optical cable laying status of the first difference path and the second difference path, and receive the verification result fed back by the target object; if the verification result indicates that the optical cable is laid on the first difference path, keep the first optical cable routing information unchanged; if the verification result indicates that the optical cable is laid on the second difference path, replace the routing information corresponding to the first difference path in the first optical cable routing information with the routing information corresponding to the second difference path.
[0077] Optionally, if the verification result indicates that the optical cable is laid on the first difference path, inspection path error information may also be sent to the target object, wherein the inspection path error information is used to prompt that an error exists in the inspection path and the second difference path in the inspection path needs to be replaced with the first difference path.
[0078] For the second optical cable segment, the generation module obtains the optical cable duct and pole line routing information in the target area including the optical cable start point and the optical cable end point of the second optical cable segment.
[0079] Optionally, the generation module measures the optical cable length of the second optical cable segment, and generates a target optical cable path based on the optical cable duct and pole line routing information and the optical cable length, wherein: first, a network topology map is generated based on the optical cable duct and pole line routing information; then, a depth-first algorithm is used to determine from the network topology map a plurality of first optical cable paths connecting the optical cable starting point and the optical cable end point, and a first path length of each first optical cable path is determined; then, the optical cable length is multiplied by a preset coefficient to obtain a first target path length; finally, the first optical cable path corresponding to the first path length having the smallest difference with the first target path length is determined as the target optical cable path.
[0080] Optionally, the generation module generates second optical cable routing information corresponding to the second optical cable segment based on the point-by-point verification results of the optical cable laying status of each verification point in the target optical cable path, specifically: instructing the target object to conduct on-site verification of the optical cable laying status of each verification point in the target optical cable path starting from the starting point of the optical cable, and determining that the path between the starting point of the optical cable in the target optical cable path to the verification point that has passed the verification is the path that has completed the verification; when no optical cable is detected at any verification point, it is determined that the verification point has failed the verification, and the path in the target optical cable path that has not completed the verification is updated based on the optical cable pipeline and pole line routing information, the optical cable length and the length of the path that has completed the verification in the target optical cable path, and instructing the target object to conduct on-site verification of the optical cable laying status of each verification point in the updated path starting from the previous verification point of the verification point that failed the verification; when the verification reaches the end point of the optical cable, the second optical cable routing information corresponding to the second optical cable segment is generated based on the path that has completed the verification.
[0081] Among them, when updating the paths that have not completed verification in the target optical cable path based on the routing information of the optical cable pipeline and the pole line, the optical cable length and the length of the path that has completed verification in the target optical cable path, a depth-first algorithm can be used to determine from the network topology diagram a plurality of second optical cable paths connecting the previous verification point of the verification point that failed the verification and the optical cable end point, and determine the second path length of each second optical cable path; then determine that the difference between the first target path length and the length of the path that has completed verification in the target optical cable path is the second target path length; finally, use the second optical cable path corresponding to the second path length with the smallest difference from the second target path length to replace the path that has not completed verification in the target optical cable path.
[0082] It should be noted that the modules in the optical cable routing information maintenance device in the embodiment of the present application correspond one-to-one to the implementation steps of the optical cable routing information maintenance method in Example 1. Since a detailed description has been given in Example 1, some details not reflected in this embodiment can be referred to Example 1 and will not be repeated here.
[0083] Example 3
[0084] According to an embodiment of the present application, a computer program product is also provided. The computer program product includes a computer program, wherein when the computer program is executed by a processor, the optical cable routing information maintenance method in Embodiment 1 is implemented.
[0085] According to an embodiment of the present application, a non-volatile storage medium is also provided, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the optical cable routing information maintenance method in Example 1 by running the computer program.
[0086] According to an embodiment of the present application, a processor is further provided, which is used to run a computer program, wherein the optical cable routing information maintenance method in Example 1 is executed when the computer program is running.
[0087] According to an embodiment of the present application, an electronic device is also provided, which includes: a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the optical cable routing information maintenance method in Example 1 through the computer program.
[0088] Specifically, when the computer program is running, the following steps are executed: detecting the storage state of the routing information of the target optical cable, wherein the target optical cable includes: a first optical cable segment storing the optical cable routing information and / or a second optical cable segment lacking the optical cable routing information; for the first optical cable segment, obtaining the first optical cable routing information and the inspection path information corresponding to the first optical cable segment; determining the difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information; correcting the first optical cable routing information according to the on-site verification result of the optical cable laying state of the difference path; for the second optical cable segment, obtaining the first optical cable routing information including the second optical cable; The optical cable duct and pole line routing information in the target area of the optical cable starting point and the optical cable end point of the segment is measured; the optical cable length of the second optical cable segment is measured, and the target optical cable path is generated according to the optical cable duct and pole line routing information and the optical cable length; the second optical cable routing information corresponding to the second optical cable segment is generated according to the point-by-point verification result of the optical cable laying status of each verification point in the target optical cable path, wherein, when the optical cable is not detected at any verification point, it is determined that the verification of the verification point has failed, and the path in the target optical cable path that has not been completed with the verification is updated according to the optical cable duct and pole line routing information, the optical cable length and the length of the path in the target optical cable path that has been completed with the verification.
[0089] As an optional implementation, the electronic device may be in the form of a mobile terminal, a computer terminal or a similar computing device. Figure 3 The hardware structure block diagram of an electronic device for implementing the optical cable routing information maintenance method is shown. Figure 3 As shown, the electronic device 30 may include one or more (302a, 302b, ..., 302n are used to illustrate) processors 302 (the processor 302 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 304 for storing data, and a transmission device 306 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 3The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown.
[0090] It should be noted that the one or more processors 302 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the electronic device 30. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0091] The memory 304 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the optical cable routing information maintenance method in the embodiment of the present application. The processor 302 executes various functional applications and data processing by running the software programs and modules stored in the memory 304, that is, realizing the vulnerability detection method of the above-mentioned application. The memory 304 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 304 may further include a memory remotely arranged relative to the processor 302, and these remote memories may be connected to the electronic device 30 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0092] The transmission device 306 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the electronic device 30. In one example, the transmission device 306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 306 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0093] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the electronic device 30 .
[0094] The serial numbers of the above embodiments are only for description and do not represent the advantages or disadvantages of the embodiments.
[0095] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0096] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0097] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0098] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0099] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0100] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for maintaining optical cable routing information, characterized in that: include: Detecting a storage state of routing information of a target optical cable, wherein the target optical cable includes: a first optical cable segment storing optical cable routing information and / or a second optical cable segment lacking optical cable routing information; For the first optical cable segment, obtaining first optical cable routing information and inspection path information corresponding to the first optical cable segment; determining a difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information; and correcting the first optical cable routing information according to an on-site verification result of the optical cable laying status of the difference path; For the second optical cable segment, obtain the optical cable duct and pole line routing information in the target area including the optical cable start point and the optical cable end point of the second optical cable segment; measure the optical cable length of the second optical cable segment, and generate a target optical cable path based on the optical cable duct and pole line routing information and the optical cable length; generate the second optical cable routing information corresponding to the second optical cable segment based on the point-by-point verification result of the optical cable laying status of each verification point in the target optical cable path, wherein, when no optical cable is detected at any verification point, it is determined that the verification of the verification point has failed, and the path in the target optical cable path that has not been verified is updated based on the optical cable duct and pole line routing information, the optical cable length and the length of the path in the target optical cable path that has been verified.
2. The method according to claim 1, characterized in that The difference path includes a first difference path corresponding to the optical cable route and a second difference path corresponding to the inspection path, and determining the difference path between the optical cable route indicated by the first optical cable route information and the inspection path indicated by the inspection path information includes: Determine a first linear path corresponding to the optical cable route indicated by the first optical cable route information, and extend each point in the first linear path to both sides of the path by a preset distance to obtain a strip path surface; Determine a second linear path corresponding to the inspection path indicated by the inspection path information; Determine each path segment in the second linear path that is not located in the belt-shaped path surface as the second difference path; A path within each strip-shaped path surface corresponding to each segment of the second difference path in the first linear path is determined as the first difference path.
3. The method according to claim 1, characterized in that The difference path includes a first difference path corresponding to the optical cable route and a second difference path corresponding to the inspection path, and determining the difference path between the optical cable route indicated by the first optical cable route information and the inspection path indicated by the inspection path information includes: Determine a first linear path corresponding to the optical cable route indicated by the first optical cable routing information, and divide the first linear path into a preset number of first sub-linear paths; Determine a second linear path corresponding to the inspection path indicated by the inspection path information, and divide the second linear path into a preset number of second sub-linear paths, wherein the preset number of first sub-linear paths corresponds to the preset number of second sub-linear paths in one-to-one correspondence; The vertical distance between each pair of the first sub-linear path and the second sub-linear path is determined in sequence. If the vertical distance is greater than a preset distance, the first sub-linear path is determined to be the first difference path, and the second sub-linear path is determined to be the second difference path.
4. The method according to claim 2 or 3, characterized in that: Correcting the first optical cable routing information according to the on-site verification result of the optical cable laying status of the difference path, including For each pair of the first difference path and the second difference path, instruct the target object to perform on-site verification of the optical cable laying status of the first difference path and the second difference path, and receive the verification result fed back by the target object; If the verification result indicates that the optical cable is laid on the first difference path, keeping the first optical cable routing information unchanged; If the verification result indicates that the optical cable is laid on the second differential path, the routing information corresponding to the first differential path in the first optical cable routing information is replaced with the routing information corresponding to the second differential path.
5. The method according to claim 4, characterized in that The method further comprises: If the verification result indicates that the optical cable is laid on the first difference path, an inspection path error message is sent to the target object, wherein the inspection path error message is used to prompt that there is an error in the inspection path and the second difference path in the inspection path needs to be replaced with the first difference path.
6. The method according to claim 1, characterized in that Generating a target optical cable path according to the optical cable duct and pole route information and the optical cable length, including: Generating a network topology diagram based on the optical cable duct and pole line routing information; Determine a plurality of first optical cable paths connecting the optical cable start point and the optical cable end point from the network topology map by using a depth-first algorithm, and determine a first path length of each of the first optical cable paths; Multiplying the optical cable length by a preset coefficient to obtain a first target path length; A first optical cable path corresponding to a first path length having a minimum difference from the first target path length is determined as the target optical cable path.
7. The method according to claim 6, characterized in that Generating second optical cable routing information corresponding to the second optical cable segment according to the point-by-point verification results of the optical cable laying status of each verification point in the target optical cable path, including: Instruct the target object to conduct on-site verification of the optical cable laying status of each verification point in the target optical cable path starting from the optical cable starting point, and determine that the path between the optical cable starting point and the verification point that passed the verification in the target optical cable path is the verified path; When any verification point fails to pass the verification, the unverified path in the target optical cable path is updated according to the optical cable duct and pole route information, the optical cable length and the length of the verified path in the target optical cable path, and the target object is instructed to conduct on-site verification of the optical cable laying status of each verification point in the updated path starting from the previous verification point of the verification point that failed the verification; When the optical cable end point is verified, second optical cable routing information corresponding to the second optical cable segment is generated according to the verified path.
8. The method according to claim 7, characterized in that The unverified paths in the target optical cable path are updated according to the optical cable duct and pole route information, the optical cable length, and the length of the verified paths in the target optical cable path, including: Determine, from the network topology diagram, a plurality of second optical cable paths connecting a previous verification point of the verification point that failed the verification and the optical cable end point by using a depth-first algorithm, and determine a second path length of each of the second optical cable paths; Determine a difference between the first target path length and the length of the verified path in the target optical cable path as a second target path length; The unverified path in the target optical cable path is replaced by a second optical cable path corresponding to a second path length having the smallest difference from the second target path length.
9. An optical cable routing information maintenance device, characterized in that: include: A detection module, used for detecting the storage status of routing information of a target optical cable, wherein the target optical cable includes: a first optical cable segment storing the optical cable routing information and / or a second optical cable segment lacking the optical cable routing information; A correction module is used to obtain, for the first optical cable segment, first optical cable routing information and inspection path information corresponding to the first optical cable segment; determine a difference path between the optical cable route indicated by the first optical cable routing information and the inspection path indicated by the inspection path information; and correct the first optical cable routing information according to an on-site verification result of the optical cable laying status of the difference path; A generation module is used to obtain, for the second optical cable segment, the optical cable duct and pole line routing information in the target area including the optical cable starting point and the optical cable end point of the second optical cable segment; measure the optical cable length of the second optical cable segment, and generate a target optical cable path based on the optical cable duct and pole line routing information and the optical cable length; generate the second optical cable routing information corresponding to the second optical cable segment based on the point-by-point verification result of the optical cable laying status of each verification point in the target optical cable path, wherein, when no optical cable is detected at any verification point, it is determined that the verification of the verification point has failed, and the path in the target optical cable path that has not been verified is updated based on the optical cable duct and pole line routing information, the optical cable length and the length of the path in the target optical cable path that has been verified.
10. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the optical cable routing information maintenance method according to any one of claims 1 to 8 through the computer program.