A method, device, equipment, medium and program product for controlling optical fiber shifting

By comparing the optical fiber numbers and utilizing the different directions of movement of the multi-plug and pull-out mechanism, the problem of entanglement in optical fiber wiring is solved, the smooth movement and exchange of optical fibers is realized, and the efficiency of fiber migration is improved.

CN118276263BActive Publication Date: 2024-09-17BEIJING RUIQI HAODI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410703076.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-17
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

During the optical fiber wiring process, the optical fiber is easily tangled, making it difficult to connect signals during movement.

Method used

By comparing the fiber number of the port on the fiber migration path with the fiber number of the fiber to be moved, the movement direction is determined, and two plug-in and pull-out mechanisms are used to move from different directions to ensure that the fibers move in a fixed order to avoid entanglement, and at the same time, the hand-back mechanism is used Temporarily store optical fibers, simplify paths and improve fiber migration efficiency.

Benefits of technology

It effectively prevents the optical fiber from being entangled during the fiber migration process, ensures the smooth movement and exchange of optical fibers, and improves the efficiency and accuracy of fiber migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118276263B
    Figure CN118276263B
Patent Text Reader

Abstract

The embodiments of the present application provide a method, device, equipment, medium and program product for controlling optical fiber shifting, the method comprising: in response to a fiber shifting instruction, controlling a plug-in mechanism to take the optical fiber to be moved from a source port, wherein the plug-in mechanism is used to plug and unplug the optical fiber and carry the optical fiber to move between the gaps of the port; sequentially comparing the optical fiber number of the port on the fiber shifting path with the optical fiber number of the optical fiber to be moved to determine the moving direction, wherein the moving direction includes the left direction of the port or the right direction of the port; controlling the plug-in mechanism to move to a destination port according to the moving direction, and inserting the optical fiber to be moved into the destination port. Some embodiments of the present application can prevent the occurrence of optical fiber entanglement during the fiber shifting process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of optical fiber wiring, and specifically to a method, device, equipment, medium and program product for controlling optical fiber shifting. Background Art

[0002] At present, with the popularization of optical fiber access, the application of optical fiber resources is becoming more and more intensive. Optical fiber distribution equipment is used to carry the connection between multiple optical fibers and ports, so as to ensure that the signal can be connected normally. In the related technology, in the process of exchanging the optical fibers of two ports, the optical fibers are usually taken out and exchanged directly along the shortest route. However, since many optical fibers are usually placed on the optical fiber distribution equipment, this leads to the problem of optical fiber entanglement.

[0003] Therefore, how to prevent the entanglement of optical fibers during the fiber transfer process becomes a problem that needs to be solved. Summary of the invention

[0004] Embodiments of the present application provide a method, device, equipment, medium and program product for controlling optical fiber transfer. Some embodiments of the present application can at least prevent the optical fiber from being entangled during the transfer process.

[0005] In a first aspect, the present application provides a method for controlling optical fiber moving, the method comprising: in response to a fiber moving instruction, controlling a plug-in and pull-out mechanism to take the optical fiber to be moved from a source port, wherein the plug-in and pull-out mechanism is used to plug and unplug the optical fiber and to carry the optical fiber to move between the gaps of the ports; sequentially comparing the optical fiber number of the port on the fiber moving path with the optical fiber number of the optical fiber to be moved to determine a moving direction, wherein the moving direction includes a left direction of the port or a right direction of the port; controlling the plug-in and pull-out mechanism to move to a destination port according to the moving direction, and inserting the optical fiber to be moved into the destination port.

[0006] Therefore, unlike the technical solution in the related art of directly exchanging the optical fiber of the source port with the optical fiber of the destination port, the embodiment of the present application can ensure that the optical fiber is moved in a fixed order by comparing the optical fiber number of the fiber transfer path port with the optical fiber number of the source optical fiber in sequence, thereby preventing the optical fiber from getting entangled during the movement.

[0007] In combination with the first aspect, in one embodiment of the present application, the plug-in mechanism includes a first plug-in mechanism and a second plug-in mechanism, wherein the first plug-in mechanism is located on the left side of the second plug-in mechanism; the optical fiber number of the port on the fiber transfer path is compared with the optical fiber number of the optical fiber to be moved in turn to determine the moving direction, including: when the optical fiber number of the optical fiber to be moved is greater than the optical fiber number of the current port on the fiber transfer path, controlling the first plug-in mechanism to move from the left side of the current port; when the optical fiber number of the optical fiber to be moved is less than the optical fiber number of the current port on the fiber transfer path, controlling the second plug-in mechanism to move from the right side of the current port.

[0008] Therefore, the embodiment of the present application provides two plug-in and pull-out mechanisms, and uses the two plug-in and pull-out mechanisms to execute paths in different directions, thereby simplifying the path and preventing the optical fiber from getting tangled during the movement.

[0009] In combination with the first aspect, in one embodiment of the present application, after controlling the first plug-in mechanism to move from the left side of the current port, the method further includes: when the moving direction of the next port of the current port is to the right, temporarily storing the optical fiber to be moved on the first plug-in mechanism in a hand-over mechanism; and taking out the optical fiber to be moved from the hand-over mechanism by the second plug-in mechanism, and moving it from the right side of the next port.

[0010] Therefore, the embodiment of the present application temporarily stores the optical fiber through the hand-over mechanism, which can provide convenience for the process of switching the optical fiber between the two plug-in and pull-out mechanisms.

[0011] In combination with the first aspect, in one embodiment of the present application, after comparing the optical fiber numbers of the ports on the fiber transfer path with the optical fiber numbers of the optical fibers to be moved in sequence to determine the direction of movement, the method further includes: offsetting adjacent partial paths with opposite directions to obtain a target moving path; controlling the plug-in mechanism to move to the destination port according to the moving direction, includes: controlling the plug-in mechanism to move to the destination port according to the target moving path.

[0012] In combination with the first aspect, in one embodiment of the present application, the offsetting of adjacent partial paths with opposite directions to obtain the target moving path includes: storing all steps on the fiber transfer path in an action preparation queue; offsetting two adjacent actions with opposite directions according to the step sorting, and adding the subsequent steps of the two adjacent actions to the vacant positions of the offset; continuing the above-mentioned step offsetting operation until there are no steps that can be offset in the action preparation queue, and obtaining the target moving path.

[0013] Therefore, the embodiment of the present application can simplify the path by offsetting the adjacent partial paths in opposite directions, thereby improving the fiber transfer efficiency.

[0014] In combination with the first aspect, in one embodiment of the present application, before the control plug-in mechanism takes the optical fiber to be moved from the source port, the method also includes: determining the port corresponding to the smaller port number of the two port numbers as the source port in the order of port numbers, and determining the port corresponding to the larger port number of the two port numbers as the destination port.

[0015] In combination with the first aspect, in one embodiment of the present application, before inserting the optical fiber to be moved into the destination port, the method also includes: determining the plugging and unplugging mechanism currently holding the optical fiber to be moved based on the optical fiber number of the optical fiber to be moved and the optical fiber number of the destination port.

[0016] Therefore, the embodiment of the present application can prevent the optical fiber from being entangled when inserting the optical fiber to be moved by determining the plugging and unplugging mechanism currently holding the optical fiber to be moved before inserting the optical fiber to be moved.

[0017] In combination with the first aspect, in one implementation of the present application, after inserting the optical fiber to be moved into the destination port, the method further includes: inserting the original optical fiber of the destination port into the source port.

[0018] Therefore, the embodiment of the present application can implement the exchange of the optical fiber of the source port and the optical fiber of the destination port by inserting the original optical fiber of the destination port into the source port.

[0019] In a second aspect, the present application provides a device for controlling optical fiber shifting, the device comprising:

[0020] A fiber taking module is configured to control the plugging and unplugging mechanism to take the optical fiber to be moved from the source port in response to the fiber moving instruction, wherein the plugging and unplugging mechanism is used to plug and unplug the optical fiber and carry the optical fiber to move between the gaps of the ports;

[0021] A moving module is configured to sequentially compare the fiber number of the port on the fiber moving path with the fiber number of the optical fiber to be moved to determine a moving direction, wherein the moving direction includes a left direction of the port or a right direction of the port;

[0022] The fiber plugging module is configured to control the plugging and unplugging mechanism to move to the destination port according to the moving direction, and plug the optical fiber to be moved into the destination port.

[0023] In combination with the second aspect, in one embodiment of the present application, the plug-in mechanism includes a first plug-in mechanism and a second plug-in mechanism, wherein the first plug-in mechanism is located on the left side of the second plug-in mechanism; the moving module is also configured to: when the fiber number of the optical fiber to be moved is greater than the fiber number of the current port on the fiber transfer path, control the first plug-in mechanism to move from the left side of the current port; when the fiber number of the optical fiber to be moved is less than the fiber number of the current port on the fiber transfer path, control the second plug-in mechanism to move from the right side of the current port.

[0024] In combination with the second aspect, in one embodiment of the present application, the moving module is also configured to: when the moving direction of the next port of the current port is to the right, temporarily store the optical fiber to be moved on the first plug-in mechanism in the hand-over mechanism; and take out the optical fiber to be moved from the hand-over mechanism by the second plug-in mechanism, and move it from the right side of the next port.

[0025] In combination with the second aspect, in one embodiment of the present application, the moving module is also configured to: offset adjacent partial paths with opposite directions to obtain a target moving path; and controlling the plug-in mechanism to move to the destination port according to the moving direction includes: controlling the plug-in mechanism to move to the destination port according to the target moving path.

[0026] In combination with the second aspect, in one embodiment of the present application, the moving module is further configured to: store all steps on the fiber transfer path in an action preparation queue; cancel two adjacent actions with opposite directions according to the step sorting, and add the subsequent steps of the two adjacent actions to the vacant positions of the cancellation; continue the above-mentioned step cancellation operation until there are no steps that can be cancelled in the action preparation queue, and obtain the target moving path.

[0027] In combination with the second aspect, in one embodiment of the present application, the fiber extraction module is also configured to: before controlling the plug-in mechanism to take the optical fiber to be moved from the source port, determine the port corresponding to the smaller port number of the two port numbers as the source port, and determine the port corresponding to the larger port number of the two port numbers as the destination port in the order of port numbers.

[0028] In combination with the second aspect, in one embodiment of the present application, the fiber plugging module is further configured to: determine the plugging and unplugging mechanism currently holding the optical fiber to be moved based on the optical fiber number of the optical fiber to be moved and the optical fiber number of the destination port.

[0029] In combination with the second aspect, in an implementation manner of the present application, the fiber insertion module is further configured to: insert the original optical fiber of the destination port into the source port.

[0030] In a third aspect, the present application provides an electronic device comprising: a processor, a memory and a bus; the processor is connected to the memory via the bus, the memory stores a computer program, and when the computer program is executed by the processor, it can implement the method described in any embodiment of the first aspect.

[0031] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed, can implement the method described in any embodiment of the first aspect.

[0032] In a fifth aspect, the present application provides a computer program product, including a computer program / instructions, which, when executed, can implement the method described in any embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of a scene composition of controlling optical fiber shifting shown in an embodiment of the present application;

[0034] Figure 2 This is one of the flow charts of a method for controlling optical fiber transfer shown in an embodiment of the present application;

[0035] Figure 3 This is a schematic diagram of the port number arrangement shown in the embodiment of the present application;

[0036] Figure 4 This is a second flow chart of a method for controlling optical fiber shifting shown in an embodiment of the present application;

[0037] Figure 5 A schematic diagram of the movement direction of the Z motor shown in an embodiment of the present application;

[0038] Figure 6 A schematic diagram of the movement direction of the X motor and the Y motor shown in an embodiment of the present application;

[0039] Figure 7 This is one of the schematic diagrams of the fiber transfer path shown in the embodiment of the present application;

[0040] Figure 8 This is a flowchart of a method for controlling optical fiber transfer shown in an embodiment of the present application;

[0041] Fig. 9 This is a second schematic diagram of a fiber transfer path shown in an embodiment of the present application;

[0042] Fig.10 The third schematic diagram of the fiber transfer path shown in the embodiment of the present application;

[0043] Fig.11A schematic diagram of a device for controlling optical fiber shifting according to an embodiment of the present application;

[0044] Fig.12 A schematic diagram of the composition of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme 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, rather than all the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0046] The embodiment of the present application can be applied to the scenario of moving optical fibers on optical fiber distribution equipment (i.e., fiber shifting operation). In one embodiment of the present application, the action to be completed by the processor after receiving the fiber shifting instruction is: remove the optical fiber of the source port, and then compare the optical fiber number of each port on the path one by one according to the fiber shifting path, and follow the principle that if the optical fiber number of the source port is greater than the optical fiber number of the current port, go to the left side of the current port, and if the optical fiber number of the source port is less than the optical fiber number of the current port, go to the right side of the current port until reaching the destination port, and then exchange the optical fiber of the source port with the optical fiber of the destination port, and then move the optical fiber of the destination port back to the source port according to the fiber shifting path and insert it into the source port, and the above principle is also executed in the return process.

[0047] The method steps in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0048] Figure 1 A scenario of controlling optical fiber shifting in some embodiments of the present application is provided, and the scenario includes: an instruction sending device 110, a processor 120, and a plug-in mechanism 130. Specifically, a user sends a fiber shifting instruction (for example, swapping the optical fiber of port 1 with the optical fiber of port 10) on the instruction sending device 110, and sends the fiber shifting instruction to the processor 120 on the optical fiber distribution device. After receiving the fiber shifting instruction, the processor 120 controls the plug-in mechanism 130 to perform an optical fiber switching operation according to the fiber shifting path according to the fiber shifting instruction.

[0049] The following uses the processor as the execution subject to exemplify a method for controlling optical fiber transfer provided by some embodiments of the present application. It can be understood that the processor in the present application can be any electronic device that can control the plug-in mechanism to complete the fiber transfer operation. The processor can be integrated in the optical fiber distribution equipment or in the plug-in mechanism, and the present application does not limit this.

[0050] At least to solve the problems in the background technology, such as Figure 2 As shown, some embodiments of the present application provide a method for controlling optical fiber shifting, the method comprising:

[0051] S210, in response to the fiber moving instruction, controlling the plugging and unplugging mechanism to take the optical fiber to be moved from the source port.

[0052] It can be understood that the source port and the optical fiber to be moved are in a connected state before the fiber shifting operation is performed, and the signal connection can be achieved after the source port and the optical fiber to be moved are connected. Therefore, during the fiber shifting operation, the optical fiber number corresponding to the source port can also be called the optical fiber number of the optical fiber to be moved.

[0053] The ports are arranged in rows and columns. The processor assigns row and column numbers to each port accordingly, clarifies the position of each port and the fiber number of the optical fiber connected to each port. When moving the fiber, the port comparison order is from the outer layer to the inner layer.

[0054] For example, Figure 3 As shown, each port is arranged in the form of rows and columns, for example, column 0 row 0 corresponds to port 1, column 1 row 0 corresponds to port 2, and the fiber number of the fiber currently connected to each port is stored (for example, the fiber number of the fiber corresponding to port 1 is 7). The order of comparing the light numbers corresponding to the source ports is performed according to the arrows in the figure, that is, the order of comparing the fiber numbers of each port is: port 5 (source port)-port 19-port 14-port 9-port 4-port 18-port 13-port 8-port 3-port 17-port 12-port 7-port 2-port 16 (destination port).

[0055] In an implementation manner of the present application, before S210, a source port and a destination port need to be determined.

[0056] In one method, the port corresponding to the smaller port number of the two port numbers is determined as the source port, and the port corresponding to the larger port number of the two port numbers is determined as the destination port in the order of the port numbers.

[0057] That is to say, before S220, preparation operations for fiber transfer need to be performed, including: first, determining the order of the two ports for fiber transfer, which is to number all ports in ascending order according to the comparison order, obtain the port number, and use the port with the smaller port number as the source port and the port with the larger port number as the destination port. Secondly, initialize and clear the logic action queue cache and motor action queue cache used in the fiber transfer process, and then switch the device working state to enter the fiber removal stage.

[0058] In another manner, the source port and the destination port are specified in the fiber shift instruction, and the processor can directly obtain the location of the source port and the location of the destination port after obtaining the fiber shift instruction.

[0059] Next, we enter the fiber removal stage, that is, remove the optical fiber connected to the source port. The specific steps are as follows:

[0060] like Figure 4 As shown, the fiber taking stage executes S401-S406.

[0061] S401, determine whether the source port is the first row, if not, execute S402, if yes, directly execute S404;

[0062] S402, locate the first row port of the column;

[0063] S403, moving from the current position to the source port, wherein, when the source port is located in the first row, the current position is the origin (the starting point of the plug-in device is the origin, which can also be called the initial position); when the source port is located at a position other than the first row, the current position is the port in the first row of the column where the source port is located;

[0064] S404, comparing the fiber number of the source port with the fiber number of the next port;

[0065] S405, determining the fiber plugging and unplugging mechanism according to the fiber number;

[0066] S406, grab the optical fiber of the source port.

[0067] Specifically, the fiber extraction stage mainly completes the action of removing the optical fiber from the source port and placing it on any plug-in mechanism. Since the source port may be in any position, after combing and merging, the ports are divided into two categories: one is the port in the first row (outermost layer), and the other is the port not in the first row.

[0068] The fiber removal action of the first row port is: first, Figure 5The plug-in and pull-out mechanism shown in the figure determines the fiber-taking mechanical arm (i.e., the plug-in and pull-out mechanism). If the fiber number of the source port is greater than the fiber number of the next port in the fiber transfer sequence, the left arm is used to take the fiber (i.e., the first plug-in and pull-out mechanism 52), otherwise the right arm is used to take the fiber (i.e., the second plug-in and pull-out mechanism 51), and then two logical actions are generated, one is to locate the port, and the second is to take the fiber. Among them, the positioning action mainly completes the X motors of the left and right mechanical arms to move to the left and right sides of the source port respectively, and the Z motor sinks to align with the fiber head to be taken. The fiber-taking logical action controls the mechanical arm to complete the action sequence of X aligning with the center of the port, Y advancing to the port position, and Z lifting according to the left arm or right arm determined in the previous sequence, and completes the fiber-taking action.

[0069] It is understandable that if Figure 5 As shown, the Z motor controls the robot arm to move in the vertical direction of the optical fiber distribution equipment, such as Figure 6 As shown, the X motor controls the mechanical arm to move horizontally along the base of the optical fiber distribution equipment, and the Y motor controls the mechanical arm to move vertically along the tangent of the circumference of the base.

[0070] Fiber picking action for ports other than the first row: The fiber picking action for ports other than the first row inserts a forward movement action between the positioning logic and the fiber picking logic of the first row fiber picking action, that is, three logical actions: positioning, forward movement, and fiber picking. Among them, the forward movement action is mainly completed after the robot arm locates the first row of the column where the port is located, and moves the robot arm to the row where the inner layer port is located. The subsequent actions are the same as the fiber picking action for the first row, which will not be repeated here.

[0071] S220, sequentially comparing the fiber numbers of the ports on the fiber moving path with the fiber number of the optical fiber to be moved to determine the moving direction.

[0072] It should be noted that the plug-in mechanism in the present application may be composed of two sub-plug-in mechanisms, namely a first plug-in mechanism and a second plug-in mechanism, wherein the first plug-in mechanism is located on the left side of the second plug-in mechanism, and the second plug-in mechanism is located on the right side of the first plug-in mechanism. It can be understood that the plug-in mechanism in the present application may be a robotic arm.

[0073] In an implementation of S220, first, when the fiber number of the optical fiber to be moved is greater than the fiber number of the current port on the fiber transfer path, the first plugging and unplugging mechanism is controlled to carry the optical fiber to be moved and move from the left side of the current port.

[0074] Then, when the moving direction of the next port of the current port is to the right, the optical fiber to be moved on the first plug-in mechanism is temporarily stored in the hand-over mechanism, and the second plug-in mechanism takes out the optical fiber to be moved from the hand-over mechanism and moves it from the right side of the next port.

[0075] That is to say, in order to ensure that the optical fiber is not entangled, it is necessary to determine the direction of movement of the plug-in mechanism on the moving path, and compare the fiber number of the optical fiber to be moved with the fiber number of each port on the path. When the fiber number of the optical fiber to be moved is greater than the fiber number of the current port on the fiber moving path, use the first plug-in mechanism located on the left to carry the optical fiber and move it from the left side of the current port. It can be understood that the movement includes forward and backward.

[0076] For example, Figure 7 As shown, Figure 7 The numbers in the figure show the corresponding fiber numbers of each port and the moving path. Fiber numbers 22 and 19 are smaller than fiber number 37 of the source port, so the fiber is carried by the plug-in mechanism and moved from the left side of the ports corresponding to fiber numbers 35, 17, 30, 22, and 19.

[0077] It can be understood that the plug-in mechanism can take fiber on the left and right sides of the port corresponding to optical fiber No. 1. The first plug-in mechanism is on the left side of the port corresponding to optical fiber No. 1, and the second plug-in mechanism is on the right side of the port corresponding to optical fiber No. 1. The second plug-in mechanism takes the optical fiber with optical fiber number 37.

[0078] At the same time, when in the process of comparing the optical fiber number of the current port, it appears that the current fiber-holding plug-in mechanism is the first plug-in mechanism on the left, and the optical fiber number held is smaller than the optical fiber number on the current port, the optical fiber of the first plug-in mechanism needs to be temporarily stored on the hand-over mechanism, and then taken from the hand-over mechanism by the second plug-in mechanism on the right, and then moved forward.

[0079] In another implementation of S220, first, when the fiber number of the optical fiber to be moved is smaller than the fiber number of the current port on the fiber transfer path, the second plugging mechanism is controlled to move from the right side of the current port.

[0080] Then, when the moving direction of the next port of the current port is to the left, the optical fiber to be moved on the second plug-in mechanism is temporarily stored in the hand-over mechanism, and the first plug-in mechanism takes out the optical fiber to be moved from the hand-over mechanism and moves it from the left side of the next port.

[0081] That is to say, in order to ensure that the optical fiber is not entangled, it is necessary to determine the direction of movement of the plug-in mechanism on the moving path, and compare the fiber number of the optical fiber to be moved with the fiber number of each port on the path. When the fiber number of the optical fiber to be moved is smaller than the fiber number of the current port on the fiber moving path, use the second plug-in mechanism located on the right side to carry the optical fiber and move it from the right side of the current port. It can be understood that the movement includes forward and backward.

[0082] For example, Figure 7As shown, the fiber number 39 is larger than the fiber number 37 of the source port, and the second plug-in mechanism located on the right side can be used to carry the fiber and move it from the right side of the port corresponding to the fiber number 39. In other words, if the result of the optical fiber number comparison changes, the plug-in mechanism holding the fiber needs to be replaced.

[0083] At the same time, when in the process of comparing the optical fiber number of the current port, it appears that the current fiber-holding plug-in mechanism is the second plug-in mechanism on the right, and the optical fiber number held is greater than the optical fiber number on the current port, the optical fiber of the second plug-in mechanism needs to be temporarily stored on the hand-over mechanism, and then taken from the hand-over mechanism by the first plug-in mechanism on the left, and then moved forward.

[0084] It should be noted that when the last port in the column is matched, the current optical fiber needs to be moved to the first port in the next column, that is, a column switching action is performed. During the moving process, if the next port is the destination port, the next stage is entered: the switching stage.

[0085] As a specific embodiment of the present application, Figure 8 As shown, the two plug-in and pull-out mechanisms pass through the current port according to the fiber transfer path, and the fiber transfer process executes S501-S507.

[0086] S501, determine whether the next port is the destination port, if so, execute S502, if not, execute S503;

[0087] S502, exchange optical fiber;

[0088] S503, determine whether the source port fiber number is smaller than the next port fiber number, if so, execute S506, if not, execute S504;

[0089] S504, determining whether the first plugging and unplugging mechanism is currently holding the fiber, if yes, executing S507, if no, executing S505;

[0090] S505, the fiber insertion mechanism is exchanged;

[0091] S506, determining whether the second plugging and unplugging mechanism is currently holding the fiber, if yes, executing S507, if no, executing S505;

[0092] S507, moving the fiber insertion mechanism forward or backward.

[0093] As a specific embodiment of the present application, Figure 3As shown, fiber No. 37 (the fiber of the source port, that is, the fiber to be moved) needs to be moved to the position of fiber No. 50 (the fiber of the destination port). According to the fiber moving control principle, fiber No. 37 is first taken out and then moved to the end of the previous column. Then, the fiber numbers on the corresponding ports are compared in order from the end of the column to the beginning of the column. According to the principle of "larger than the port fiber number, bypass from the left side of the port; smaller than the port number, bypass from the right side of the port", all ports in the column are compared in turn, and then the comparison of the next column is looped according to this method. Figure 3 The corresponding logic actions generated in the entire comparison process are shown in FIG. 1 , where F means moving forward one port, B means moving backward one port, L2R means moving from left to right one port, and R2L means moving from right to left one port.

[0094] It should be noted that the moving direction obtained by the method of S220 can be used to move to the destination port according to the moving direction and the fiber transfer path. In order to further simplify the fiber transfer path, the adjacent and oppositely directed partial paths on the fiber transfer path can be offset to obtain the target moving path, and then the plugging and unplugging mechanism is controlled to move to the destination port according to the target moving path.

[0095] That is to say, the moving path and moving direction obtained above can realize the movement and exchange of optical fibers. However, in the overall moving path, some paths can offset each other, such as Figure 3 The F and B actions shown in the dotted boxes are a set of adjacent forward and backward actions (i.e., two adjacent actions with opposite directions) between the ports. If they are not optimized, a backward movement is performed at the same column position, followed by a forward movement, causing the plug-in mechanism to perform a meaningless telescopic action. Although it complies with the fiber moving principle, it reduces efficiency and increases losses.

[0096] Therefore, the present application optimizes the generated moving path and moving direction by offsetting adjacent logical actions with opposite attributes to obtain a target moving path.

[0097] For example, Fig. 9 As shown, the F action and the B action in opposite directions can be offset, and the other two R2L actions become adjacent actions after the F action and the B action are offset, and can be merged into one R2L action, so that it can move directly from the right side of optical fiber 33 to the left side of optical fiber 31.

[0098] Specifically, first, all steps on the fiber transfer path are stored in an action preparation queue.

[0099] Then, two adjacent actions with opposite directions are cancelled according to the step order, and the subsequent steps of the two adjacent actions are added to the cancelled vacant positions.

[0100] Finally, continue to perform the above step offset operation until there are no steps that can be offset in the action preparation queue, and obtain the target moving path.

[0101] That is to say, the implementation of the device optimization path is divided into two steps. The first step is to put the generated fiber transfer full path steps into the action queue of the device, as shown in Table 1 below.

[0102] Table 1 Action team list

[0103]

[0104] In the second step, the data stored in the queue is traversed in order from low to high, and the adjacent B and F are offset and deleted (for example, the B action in step 10 and the F action in step 11 can be eliminated), as shown in Table 2. Then the data is traversed again until there is nothing in the queue that meets the optimization conditions.

[0105] Table 2 Action queue optimization table

[0106]

[0107] Among them, after the B action and the F action are offset, the subsequent steps are supplemented forward, that is, the steps after 12 fill the gaps of steps 10 and 11, and the optimization continues. The above steps are repeated until there is nothing in the queue that meets the optimization conditions.

[0108] Furthermore, not only can repeated actions on the same port be offset, but adjacent actions can also be merged. For example, steps 10, 11, and 12 in Table 2 correspond to F actions. These three F actions can be merged into one. Fig.10 As shown in the figure, we only need to determine the position of the port corresponding to fiber 30, without considering the coordinate position of the middle port, which further improves the fiber transfer efficiency. The final path optimization result is shown in Fig.10 shown.

[0109] S230, controlling the plugging and unplugging mechanism to move to the destination port according to the moving direction, and plugging the optical fiber to be moved into the destination port.

[0110] In one implementation of the present application, before S230, based on the fiber number of the fiber to be moved and the fiber number of the destination port, the plugging and unplugging mechanism currently holding the fiber to be moved is determined.

[0111] Afterwards, the optical fiber to be moved is inserted into the destination port, and the original optical fiber of the destination port is inserted into the source port, that is, the stage of switching and inserting the optical fiber back to the source port is completed.

[0112] Specifically, after the plug-in mechanism reaches the destination port, the optical fiber held is exchanged with the optical fiber of the destination port. After moving to the destination port and entering the exchange stage during the fiber transfer process, the fiber holding plug-in mechanism has met the aforementioned comparison principle (i.e., if the fiber number of the optical fiber to be moved is larger than the fiber number of the destination port, the fiber holding arm is the first plug-in mechanism on the left; if the fiber number of the optical fiber to be moved is smaller than the fiber number of the destination port, the fiber holding arm is the second plug-in mechanism on the right), and therefore, a logical exchange action is directly generated.

[0113] Furthermore, the specific switching process includes: the fiber-holding plug-in mechanism moves one port distance to the left (right) to make operating space for the idle plug-in mechanism, the idle plug-in mechanism moves the X-axis to the center of the destination port, aligns with the optical fiber of the destination port to be removed, and then performs the same operation as fiber removal to remove the optical fiber from the port, after which the idle plug-in mechanism (already holding the optical fiber of the destination port) makes operating space, the fiber-holding plug-in mechanism inserts the optical fiber of the source port into the destination port and updates the record information of the port optical fiber number to complete the switching action.

[0114] After the switching action is completed, the backward fiber migration phase (i.e., returning to the source port) follows the direction opposite to the forward fiber migration path, compares the fiber numbers of the ports on the path one by one, generates the same logical actions as the forward direction, and finally moves to the source port to enter the next phase: insertion back.

[0115] In the insertion phase, the plug-in mechanism has moved the destination port fiber to the source port position, and only needs to insert the fiber into the source port and update the port fiber number record. After the insertion phase is completed, the control program has completed all actions, and the processor system re-enters the waiting state.

[0116] It is understandable that during the fiber moving process, the plug-in and pull-out mechanism will contact the remaining optical fibers during the lateral movement. When the plug-in and pull-out mechanism moves from the outer ring to the innermost ring, it will move in the opposite direction along the path of movement to the inner ring and retreat to the outermost layer after completing the action, thereby avoiding entanglement with the optical fiber.

[0117] A specific embodiment of a method for controlling optical fiber shifting is described above, and a device for controlling optical fiber shifting will be described below.

[0118] like Fig.11 As shown, some embodiments of the present application provide a device 800 for controlling optical fiber moving, the device comprising: a fiber taking module 810 , a moving module 820 and a fiber inserting module 830 .

[0119] The fiber taking module 810 is configured to control the plugging and unplugging mechanism to take the optical fiber to be moved from the source port in response to the fiber moving instruction, wherein the plugging and unplugging mechanism is used to plug and unplug the optical fiber and carry the optical fiber to move between the gaps of the ports;

[0120] The moving module 820 is configured to sequentially compare the fiber number of the port on the fiber moving path with the fiber number of the optical fiber to be moved to determine the moving direction, wherein the moving direction includes the left direction of the port or the right direction of the port;

[0121] The fiber insertion module 830 is configured to control the insertion and removal mechanism to move to the destination port according to the moving direction, and insert the optical fiber to be moved into the destination port.

[0122] In one embodiment of the present application, the plug-in mechanism includes a first plug-in mechanism and a second plug-in mechanism, wherein the first plug-in mechanism is located on the left side of the second plug-in mechanism; the moving module 820 is also configured to: when the fiber number of the optical fiber to be moved is greater than the fiber number of the current port on the fiber transfer path, control the first plug-in mechanism to move from the left side of the current port; when the fiber number of the optical fiber to be moved is less than the fiber number of the current port on the fiber transfer path, control the second plug-in mechanism to move from the right side of the current port.

[0123] In one embodiment of the present application, the moving module 820 is also configured to: when the moving direction of the next port of the current port is to the right, temporarily store the optical fiber to be moved on the first plug-in mechanism in the hand-over mechanism; and take out the optical fiber to be moved from the hand-over mechanism by the second plug-in mechanism, and move it from the right side of the next port.

[0124] In one embodiment of the present application, the moving module 820 is also configured to: offset adjacent partial paths with opposite directions to obtain a target moving path; and control the plug-in mechanism to move to the destination port according to the moving direction, including: controlling the plug-in mechanism to move to the destination port according to the target moving path.

[0125] In one embodiment of the present application, the moving module 820 is also configured to: store all steps on the fiber transfer path in an action preparation queue; cancel two adjacent actions with opposite directions according to the step sorting, and add the subsequent steps of the two adjacent actions to the vacant positions of the cancellation; continue the above-mentioned step cancellation operation until there are no steps that can be cancelled in the action preparation queue, and obtain the target moving path.

[0126] In one embodiment of the present application, the fiber extraction module 810 is further configured to: determine the port corresponding to the smaller port number of the two port numbers as the source port, and determine the port corresponding to the larger port number of the two port numbers as the destination port in the order of port numbers.

[0127] In one embodiment of the present application, the fiber insertion module 830 is further configured to determine the insertion and removal mechanism currently holding the optical fiber to be moved based on the optical fiber number of the optical fiber to be moved and the optical fiber number of the destination port.

[0128] In one implementation of the present application, the fiber insertion module 830 is further configured to: insert the original optical fiber of the destination port into the source port.

[0129] In the embodiments of the present application, Fig.11 The modules shown can achieve Figures 1 to 10 Each process in the method embodiment. Fig.11 The operations and / or functions of each module in Figures 1 to 10 For details, please refer to the description in the above method embodiment. To avoid repetition, detailed description is appropriately omitted here.

[0130] like Fig.12 As shown, an embodiment of the present application provides an electronic device 900, including: a processor 910, a memory 920 and a bus 930, wherein the processor is connected to the memory via the bus, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, they are used to implement a method as described in any one of the above embodiments. For details, please refer to the description in the above method embodiments. To avoid repetition, the detailed description is appropriately omitted here.

[0131] Among them, the bus is used to realize the direct connection and communication of these components. Among them, the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0132] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method described in the above embodiment may be executed.

[0133] Understandably, Fig.12 The structure shown is for illustration only and may also include Fig.12 More or fewer components as shown, or with Fig.12 Different configurations are shown. Fig.12 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0134] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a server, any method described in any of the above-mentioned embodiments is implemented. For details, please refer to the description in the above-mentioned method embodiments. To avoid repetition, the detailed description is appropriately omitted here.

[0135] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for controlling optical fiber shifting, characterized in that: The method comprises: In response to the fiber moving instruction, the plugging and unplugging mechanism is controlled to take the optical fiber to be moved from the source port, wherein the plugging and unplugging mechanism is used to plug and unplug the optical fiber and carry the optical fiber to move between the gaps of the ports; Comparing the fiber numbers of the ports on the fiber transfer path with the fiber numbers of the optical fibers to be moved in sequence to determine a moving direction, wherein the moving direction includes a left direction of the port or a right direction of the port; Controlling the plugging and unplugging mechanism to move to a destination port according to the moving direction and the target moving path, and plugging the optical fiber to be moved into the destination port; The target moving path is obtained by offsetting adjacent partial paths with opposite directions in the overall moving path and merging adjacent actions; the target moving path includes a port number corresponding to the hand-over mechanism.

2. The method according to claim 1, characterized in that The plug-in mechanism comprises a first plug-in mechanism and a second plug-in mechanism, wherein the first plug-in mechanism is located on the left side of the second plug-in mechanism; The step of sequentially comparing the fiber numbers of the ports on the fiber moving path with the fiber numbers of the optical fibers to be moved to determine the moving direction includes: When the fiber number of the optical fiber to be moved is greater than the fiber number of the current port on the fiber transfer path, controlling the first plugging and unplugging mechanism to move from the left side of the current port; When the fiber number of the optical fiber to be moved is smaller than the fiber number of the current port on the fiber transfer path, the second plugging and unplugging mechanism is controlled to move from the right side of the current port.

3. The method according to claim 2, characterized in that After controlling the first plugging and unplugging mechanism to move from the left side of the current port, the method further includes: When the moving direction of the next port of the current port is rightward, temporarily storing the optical fiber to be moved on the first plug-in mechanism in the hand-over mechanism; The second plug-in / pull-out mechanism takes out the optical fiber to be moved from the hand-over mechanism and moves it from the right side of the next port.

4. The method according to claim 1, characterized in that: The target moving path is obtained by the following method: storing all steps on the fiber transfer path in an action preparation queue; Two adjacent actions with opposite directions are cancelled according to the step order, and the subsequent steps of the two adjacent actions are added to the vacant positions of the cancellation; Continue to perform the above-mentioned step offset operation until there are no steps that can be offset in the action preparation queue, and obtain the target moving path.

5. The method according to any one of claims 1 to 3, characterized in that: Before the control plug-in mechanism takes the optical fiber to be moved from the source port, the method further includes: According to the order of the optical fiber numbers, the port corresponding to the smaller optical fiber number of the two optical fiber numbers is determined as the source port, and the port corresponding to the larger optical fiber number of the two optical fiber numbers is determined as the destination port.

6. The method according to any one of claims 1 to 3, characterized in that: Before inserting the optical fiber to be moved into the destination port, the method further includes: Based on the optical fiber number of the optical fiber to be moved and the optical fiber number of the destination port, the plugging and unplugging mechanism currently holding the optical fiber to be moved is determined.

7. The method according to any one of claims 1 to 3, characterized in that: After inserting the optical fiber to be moved into the destination port, the method further includes: The original optical fiber of the destination port is inserted into the source port.

8. A device for controlling optical fiber shifting, characterized in that: The device comprises: A fiber taking module is configured to control the plugging and unplugging mechanism to take the optical fiber to be moved from the source port in response to the fiber moving instruction, wherein the plugging and unplugging mechanism is used to plug and unplug the optical fiber and carry the optical fiber to move between the gaps of the ports; A moving module is configured to sequentially compare the fiber number of the port on the fiber moving path with the fiber number of the optical fiber to be moved to determine a moving direction, wherein the moving direction includes a left direction of the port or a right direction of the port; A fiber plugging module is configured to control the plugging and unplugging mechanism to move to a destination port according to the moving direction and the target moving path, and plug the optical fiber to be moved into the destination port; The target moving path is obtained by offsetting adjacent partial paths with opposite directions in the overall moving path and merging adjacent actions; the target moving path includes a port number corresponding to the hand-over mechanism.

9. An electronic device, characterized in that: include: processor, memory, and bus; The processor is connected to the memory via the bus, the memory stores a computer program, and the computer program, when executed by the processor, can implement the method as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed, can implement the method as claimed in any one of claims 1 to 7.

11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed, the method according to any one of claims 1 to 7 can be implemented.