Optical module installation processing method and device of switch
By identifying the switch identification code and optical module interface, and automatically identifying and installing optical modules, the inefficiency and compatibility of optical module installation in the existing technology are solved, and efficient and accurate optical module installation and fault detection are achieved.
Patent Information
- Application Number
- CN202410857202.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2025-05-13
AI Technical Summary
In the prior art, the installation efficiency of optical modules is inefficient and error-prone, and there are compatibility problems with optical modules of different rates, standards and brands, resulting in inconvenient installation of optical modules.
By identifying the switch identification code and optical module interface, the types and number of optical modules that need to be installed are automatically identified, and out-of-store and installation requests are sent to realize automatic installation and fault detection of optical modules.
It improves the efficiency of optical module installation, reduces manual errors, ensures the correct installation and rapid entry of optical modules, and ensures the normal operation of optical modules through fault detection.
Smart Images

Figure CN119996348A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent operation and maintenance technology, and in particular to a method and device for installing and processing an optical module of a switch. Background Art
[0002] At present, data center-level computer rooms have become a common choice for various organizations to store servers. Switches with 10 Gigabit bandwidth and above can no longer meet the network bandwidth requirements through network cables. Therefore, fiber optic communication is widely used. Corresponding optical modules are required on both sides of the optical fiber to send and receive optical signals. The number of optical module resources in medium and large companies is very large, and the speed, standards, and brands of optical modules are diverse. For example, common speeds are divided into 10GE, 25GE, and 40GE, and the types are divided into single-mode or multi-mode SFP\SFP+\SFP28\QSFP. The brands are also diverse. Optical modules with different speeds and standards cannot communicate, and even modules of the same standard between different brands have compatibility issues. In addition, some brands have private module protocols and can only communicate with their own modules, which brings inconvenience to the installation of optical modules.
[0003] For example, when a network needs to be installed in a new computer room, people need to carry optical modules to the site and install the appropriate optical modules for each switch. Since the switch equipment information is diverse, and the information of the optical modules that adapt to it requires manual experience and business needs to be determined, especially if the optical modules are missed or taken incorrectly, a large amount of time is wasted on the staff to travel back and forth to the site, and the staff need to manually install the optical modules for the switches, which is not only inefficient but also prone to errors. Summary of the invention
[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method and device for installing and processing an optical module of a switch, which can at least partially solve the problems in the prior art.
[0005] On the one hand, the present invention provides a method for installing an optical module of a switch, comprising:
[0006] Identify the switch image including the switch identification code and the optical module interface to obtain the type of optical module that needs to be installed corresponding to each switch model;
[0007] Obtain the number of optical modules corresponding to each type of optical module to be installed, and send an optical module outbound request to an execution mechanism, so that the execution mechanism transports optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module outbound request;
[0008] The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information;
[0009] Sending an optical module installation request to the actuator, so that the actuator installs an optical module of a corresponding optical module type onto an optical module interface of a corresponding switch at the target location and according to the optical module installation request;
[0010] The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
[0011] The step of identifying the switch image including the switch identification code and the optical module interface to obtain the optical module type to be installed corresponding to each switch model includes:
[0012] Identify the switch identification code in the switch shooting image to obtain the switch models; identify the optical module interface corresponding to the same switch model to obtain the optical module type to be selected that is supported by each switch model;
[0013] According to the pre-configuration information, the optical module types that need to be installed and that correspond to the respective switch models are screened from the candidate optical module types that are supported by the respective switch models.
[0014] The pre-configuration information includes first pre-configuration information adapted to the network environment requirements, and second pre-configuration information adapted to the optical fiber connected to the optical module; accordingly, the optical module types to be installed corresponding to each switch model are obtained by screening from the candidate optical module types supported by each switch model according to the pre-configuration information, including:
[0015] According to the first pre-configuration information, a first candidate optical module type adapted to the network environment requirement is selected from the candidate optical module types supported by each switch model;
[0016] According to the second pre-configuration information, the optical module types that need to be installed and are adapted to the optical module connection optical fiber and correspond to the respective switch models are selected from the first candidate optical module types.
[0017] The method of selecting, according to the pre-configuration information, from the candidate optical module types supported by each switch model to obtain the optical module types that need to be installed and that correspond to each switch model, further includes:
[0018] According to the second pre-configuration information, a second candidate optical module type adapted to the optical fiber connected to the optical module is obtained from the candidate optical module types respectively supported by each switch model;
[0019] According to the first pre-configuration information, the optical module types that need to be installed and that are adapted to the network environment requirements and correspond to the respective switch models are selected from the second candidate optical module types.
[0020] Wherein, after the step of installing the optical module of the corresponding optical module type onto the optical module interface of the corresponding switch, the optical module installation processing method of the switch further includes:
[0021] In response to the light transmission / reception information of the optical module read after the processing action of connecting the optical fiber to the optical module, the optical module is detected for failure based on the light transmission / reception information.
[0022] The reading of the optical module's transmit and receive information includes:
[0023] Use the automated script to read the transmit and receive information of the optical module.
[0024] Wherein, after the step of detecting a fault of the optical module according to the light-receiving and light-emitting information, the optical module installation processing method of the switch further includes:
[0025] The target optical module whose fault detection result is determined to be abnormal is recycled.
[0026] In one aspect, the present invention provides an optical module installation processing device for a switch, comprising:
[0027] The identification unit is used to identify the switch image including the switch identification code and the optical module interface, and obtain the type of optical module to be installed corresponding to each switch model;
[0028] an acquisition unit, used for acquiring the number of optical modules corresponding to each type of optical module to be installed, and sending an optical module out-of-stock request to an execution mechanism, so that the execution mechanism transports optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module out-of-stock request;
[0029] The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information;
[0030] An installation unit, used for sending an optical module installation request to the actuator, so that the actuator installs an optical module of a corresponding optical module type onto an optical module interface of a corresponding switch at the target position according to the optical module installation request;
[0031] The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
[0032] In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein:
[0033] The processor and the memory communicate with each other via the bus;
[0034] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following method:
[0035] Identify the switch image including the switch identification code and the optical module interface to obtain the type of optical module that needs to be installed corresponding to each switch model;
[0036] Obtain the number of optical modules corresponding to each type of optical module to be installed, and send an optical module outbound request to an execution mechanism, so that the execution mechanism transports optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module outbound request;
[0037] The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information;
[0038] Sending an optical module installation request to the actuator, so that the actuator installs an optical module of a corresponding optical module type onto an optical module interface of a corresponding switch at the target location and according to the optical module installation request;
[0039] The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
[0040] An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
[0041] The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the following method:
[0042] Identify the switch image including the switch identification code and the optical module interface to obtain the type of optical module that needs to be installed corresponding to each switch model;
[0043] Obtain the number of optical modules corresponding to each type of optical module to be installed, and send an optical module outbound request to an execution mechanism, so that the execution mechanism transports optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module outbound request;
[0044] The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information;
[0045] Sending an optical module installation request to the actuator, so that the actuator installs an optical module of a corresponding optical module type onto an optical module interface of a corresponding switch at the target location and according to the optical module installation request;
[0046] The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
[0047] The optical module installation processing method and device of the switch provided by the embodiment of the present invention identify the switch captured image including the switch identification code and the optical module interface, obtain the optical module type that needs to be installed corresponding to each switch model; obtain the number of optical modules corresponding to each optical module type that needs to be installed, send an optical module out-of-warehouse request to the execution mechanism, so that the execution mechanism transports the optical modules equal to the total number of optical modules corresponding to all optical module types to the target position according to the optical module out-of-warehouse request; wherein the optical module out-of-warehouse request carries the number of optical modules corresponding to each optical module type and the target position information; send an optical module installation request to the execution mechanism, so that the execution mechanism installs the optical module of the corresponding optical module type on the optical module interface of the corresponding switch at the target position and according to the optical module installation request; wherein the optical module installation request carries the optical module type that needs to be installed corresponding to each switch model, which can improve the efficiency of installing optical modules for the switch and ensure that the computer room can be put into use quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0049] Figure 1 The present invention is a flowchart of a method for installing an optical module of a switch provided by an embodiment of the present invention.
[0050] Figure 2 It is a schematic diagram of the modular structure of the optical module transportation provided by an embodiment of the present invention.
[0051] Figure 3 It is a schematic diagram of the structure of the module resource library 101 provided in an embodiment of the present invention.
[0052] Figure 4 It is a schematic diagram of the structure of the module magnetic loading and unloading device 102 provided in an embodiment of the present invention.
[0053] Figure 5 It is a structural diagram of the optical module resource information management and control module 103 provided in an embodiment of the present invention.
[0054] Figure 6It is a structural schematic diagram of an optical module installation processing device for a switch provided by an embodiment of the present invention.
[0055] Figure 7 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.
[0057] Figure 1 FIG. 1 is a flow chart of a method for installing an optical module of a switch provided by an embodiment of the present invention. Figure 1 As shown, the optical module installation processing method of the switch provided by the embodiment of the present invention includes:
[0058] Step S1: Identify the switch image including the switch identification code and the optical module interface to obtain the optical module type that needs to be installed corresponding to each switch model.
[0059] Step S2: obtaining the number of optical modules corresponding to each type of optical module to be installed, and sending an optical module outbound request to an execution mechanism, so that the execution mechanism delivers optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module outbound request;
[0060] The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information.
[0061] Step S3: sending an optical module installation request to the actuator, so that the actuator installs the optical module of the corresponding optical module type to the optical module interface of the corresponding switch at the target position according to the optical module installation request;
[0062] The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
[0063] In the above step S1, the device identifies the switch image including the switch identification code and the optical module interface, and obtains the optical module type that needs to be installed corresponding to each switch model. The device can be a computer device that executes the method, for example, it can include a server. It should be noted that the information collected in the embodiments of the present invention is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0064] Provide users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0065] The switch identification code, also known as the switch device identifier, is a unique identifier of the switch device, which is used to distinguish different switch devices, similar to a person's ID number.
[0066] The optical module port is an port on the switch used to connect an optical module.
[0067] Since a new computer room requires more switches, each switch needs to be installed with more optical modules. Therefore, the switch images correspond to all switches that need to install optical modules. Each switch can correspond to multiple switch images. These switch images need to capture the switch identification code and the optical module interface.
[0068] The switch model can be determined by identifying the switch identification code, and switches of the same switch model can be clustered to obtain the switch models. The same switch model needs to install the same type of optical modules.
[0069] The method of identifying the switch image including the switch identification code and the optical module interface to obtain the optical module type to be installed corresponding to each switch model includes:
[0070] Identify the switch identification code in the image captured by the switch to obtain the models of each switch; identify the optical module interface corresponding to the same switch model to obtain the types of optical modules to be selected that are supported by each switch model; and identify the types of optical modules to be selected that are supported by each switch model through features such as interface size and shape.
[0071] According to the pre-configuration information, the optical module types to be installed corresponding to the switch models are selected from the candidate optical module types supported by the switch models. The optical module types to be installed are the optical module types that need to meet the network environment requirements and the optical module connection optical fiber requirements.
[0072] The pre-configuration information includes first pre-configuration information adapted to the requirements of the network environment and second pre-configuration information adapted to the optical fiber connected to the optical module; correspondingly, the step of screening the types of optical modules to be installed corresponding to each switch model from the types of candidate optical modules supported by each switch model according to the pre-configuration information includes:
[0073] Screening a first alternative type of optical module adapted to the requirements of the network environment from the types of candidate optical modules supported by each switch model according to the first pre-configuration information; the first pre-configuration information can be configured independently according to the requirements of the network environment. For example, according to the network speed requirements of the network environment, the corresponding relationship between the values of each preset network speed interval and each preset type of optical module can be configured. According to the known network speed interval value and the above corresponding relationship, the type of optical module corresponding to the known network speed interval value can be determined, and the type of optical module that is the same as the type of optical module corresponding to the known network speed interval value is selected from the types of candidate optical modules as the first alternative type of optical module.
[0074] Screening the types of optical modules to be installed corresponding to each switch model and adapted to the optical fiber connected to the optical module from the first alternative types of optical modules according to the second pre-configuration information. The second pre-configuration information can be configured independently according to the requirements of the optical fiber to be connected. For example, the optical fiber interface has a preset first optical fiber interface similar to two "mouth" shapes connected side by side, and a preset second optical fiber interface similar to a "field" shape. The preset first type of optical module corresponding to the preset first optical fiber interface can be configured, and the preset second type of optical module corresponding to the preset second optical fiber interface can be configured. If the known optical fiber interface is similar to the "field" - shaped optical fiber interface, then according to the above corresponding relationship, the type of optical module corresponding to it can be determined as the preset second type of optical module, and the type of optical module that is the same as the preset second type of optical module is selected from the first alternative types of optical modules as the type of optical module to be installed.
[0075] The step of screening the types of optical modules to be installed corresponding to each switch model from the types of candidate optical modules supported by each switch model according to the pre-configuration information further includes:
[0076] Screening a second alternative type of optical module adapted to the optical fiber connected to the optical module from the types of candidate optical modules supported by each switch model according to the second pre-configuration information;
[0077] Screening the types of optical modules to be installed corresponding to each switch model and adapted to the requirements of the network environment from the second alternative types of optical modules according to the first pre-configuration information. The description of the above embodiment can be referred to, and the only difference is the screening order.
[0078] Taking two types of switch models, namely 10GE switch and 25GE access switch, as an example, further explanation is as follows:
[0079] The optical module types supported by the 10G switch include SFP10, 10G SFP+ and 40G QSFP+SFP10, 10G SFP+ and 40G QSFP+;
[0080] The optical module types supported by the 25GE access switch include 10G SFP+ and 100G QSFP28. According to the installation requirements, the optical module types that need to be installed for the 10G switch are 10G SFP+ and 40G QSFP+SFP10, and the optical module type that needs to be installed for the 25GE access switch is 100G QSFP28.
[0081] In the above step S2, the device obtains the number of optical modules corresponding to each type of optical module to be installed, and sends an optical module out-of-stock request to the execution mechanism, so that the execution mechanism transports the optical modules equal to the total number of optical modules corresponding to all optical module types to the target location according to the optical module out-of-stock request;
[0082] The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and the target location information. Referring to the above description, the types of optical modules to be installed include 10G SFP+, 40G QSFP+SFP10 and 100G QSFP28. The quantity of optical modules corresponding to 10G SFP+ is recorded as S1, the optical module data corresponding to 40G QSFP+SFP10 is recorded as S2, and the optical module data corresponding to 100G QSFP28 is recorded as S3.
[0083] The actuator can be selected as the module magnetic loading and unloading device 102, which sends an optical module out-of-stock request carrying "the quantity of 10G SFP+ required is S1, the quantity of 40G QSFP+SFP10 required is S2, the quantity of 100G QSFP28 required is S3, and (X, Y)" to the module magnetic loading and unloading device 102, where (X, Y) is the location coordinates (target location information) of the location where the optical module is installed.
[0084] The actuator receives the request to remove the optical modules from the warehouse, goes to the warehouse where these optical modules are stored, obtains the corresponding optical modules according to the required quantity, and then pulls these optical modules to (X, Y). The required quantity is S=S1+S2+S3.
[0085] In the above step S3, the device sends an optical module installation request to the actuator, so that the actuator installs the optical module of the corresponding optical module type to the optical module interface of the corresponding switch at the target position according to the optical module installation request;
[0086] The optical module installation request carries the optical module types that need to be installed corresponding to the switch models. After the execution mechanism transports these optical modules to (X, Y), the server sends the optical module installation request to the execution mechanism, and the execution mechanism installs 10G SFP+ equal to S1 on the optical module interface for installing 10G SFP+ of the 10G switch at (X, Y), installs 40G QSFP+SFP10 equal to S2 on the optical module interface for installing 40G QSFP+SFP10 of the 10G switch, and installs 100G QSFP28 equal to S3 on the optical module interface for installing 100G QSFP28 of the 25GE access switch, thus completing the automated installation of all optical modules.
[0087] After the step of installing the optical module of the corresponding optical module type onto the optical module interface of the corresponding switch, the optical module installation processing method of the switch further includes:
[0088] In response to the light-receiving and light-emitting information of the optical module read after the processing action of connecting the optical module to the optical fiber, the optical module is fault-detected according to the light-receiving and light-emitting information. The optical fiber can be inserted into the optical fiber interface of the optical module manually or through an actuator. The optical module after connecting to the optical fiber will generate light-receiving and light-emitting information, which may specifically include light color, light flashing frequency, etc. Different light-receiving and light-emitting information may correspond to different detection states (including normal or abnormal) of the optical module.
[0089] Read the transmit and receive information of the optical module, including:
[0090] The automatic script is used to read the light transmission and receiving information of the optical module. The automatic script can be pre-written and imported into the server executing the method to realize automatic reading of the light transmission and receiving information of the optical module.
[0091] After the step of detecting a fault of the optical module according to the light-receiving and light-emitting information, the optical module installation processing method of the switch further includes:
[0092] The target optical modules whose fault detection results are determined to be abnormal are recycled. After all the target optical modules that need to be recycled are determined, the optical module types of the target optical modules and the number of optical modules corresponding to each optical module type are counted, and then the execution structure is controlled to obtain these target optical modules at one time.
[0093] The present invention can realize the transportation of optical modules based on magnetic force, such as Figure 2 As shown, the description is as follows:
[0094] It includes a module resource library 101, a module magnetic loading and unloading device 102, an optical module resource information management and control module 103, a magnetic suspension device track 104, and a charging device 105. In detail, the module resource library 101 is provided with a classified storage area inside, which can be classified and stored according to the type or status of the optical module. The module resource library 101 is also provided with a magnetic identification device. When the optical module is inserted into the slot, it can automatically identify and record the stored optical module information, which is convenient for subsequent management and deployment. Each slot has a magnetic adsorption function for fixing the optical module. The cabinet door can be opened by a magnetic signal of the device or the administrator's magnetic card; the module magnetic loading and unloading device 102 has the function of providing magnetic adsorption of the optical module through an electromagnet to realize the out-of-warehouse and shelving of the optical module, and realizes the movement of the designated position through the module moving forward, backward and up and down. The installed camera can identify the speed, standard, brand and other information of the optical module by reading the QR code of the module, and send the module update information to the optical module resource information management and control module 103; the magnetic levitation device track 104 is installed in a suspended position between the module resource library 101 and the computer room cabinet, and is used to install the module magnetic loading and unloading device 102 so that it can move freely in the front and back dimensions; the charging device 105 charges the module magnetic loading and unloading device 102.
[0095] There are M layers and N columns of optical module placement slots inside the module resource library 101, and a classified storage area is set. Different colors and sizes correspond to different areas, corresponding to areas A, B, C, and D respectively. For example, area A is used to place 40GE large single-mode modules, area B is used to place 40GE large multi-mode modules, area C is used to place small 10GE single-mode modules, and area D is used to place small 10GE multi-mode modules. Each area corresponds to a different range of M and N values. The cabinet door is locked by magnetic force. When the module magnetic loading and unloading device 102 or the magnetic card of the computer room administrator provides magnetic information matching the ID value, the cabinet door is opened and sent to the optical module resource information management and control module 103 to record the information of the person opening and closing the door. The optical module that enters the warehouse for the first time presets the module rate S, standard Z, and brand P. Each slot provides magnetic force through a permanent magnet to ensure the stability of the optical module. When the person or the magnetic device takes out the optical module, the resource cabinet recognizes that the optical module at a specific location is out of the warehouse, and sends the out-of-warehouse information to the optical module resource information management and control module 103.
[0096] The module magnetic loading and unloading device 102 is installed on the magnetic suspension device track 104, and realizes forward and backward magnetic suspension movement by controlling the magnetic force of the electromagnet, and the moving distance is L. The device has an upper and lower telescopic module to realize the upper and lower movement H. When it moves to the door of the module resource library 101, the magnetic tentacles can open the door of the resource library by sending magnetic signals, and the camera is opened according to the optical module information of the optical module resource information management and control module 103 to identify the area of the required optical module, and the magnetic tentacles are used to absorb and take the corresponding optical module. The camera identifies the two-dimensional code information of the optical module and sends it to the optical module resource information management and control module 103, and moves to the L and H positions specified by the optical module resource information management and control module 103. The camera identifies the switch image to find the corresponding port number, and the magnetic tentacles insert the optical module into the corresponding port. After the magnetic force is disconnected, the optical module is automatically connected to the switch, and the module magnetic loading and unloading device 102 feeds back the installed information to the optical module resource information management and control module 103, and the optical module can be disassembled and withdrawn from the warehouse on the contrary.
[0097] The optical module resource information management and control module 103 stores the optical module information. The initial state is "in stock" by entering the resource information of all optical modules in the storage resource library. When receiving the out-of-stock signal of the module resource library 101 and matching the out-of-stock module information provided by the module magnetic loading and unloading device 102, the optical module in-stock state is changed to "out-of-stock". The optical module "in-stock" stored in the optical module resource information management and control module 103 includes the resource library location area A / B / C / D, slots M and N, rate S, standard Z, brand P. The optical module "out-of-stock" includes cabinet J, height U (calculated by the moving distance L and the up and down distance H of the module magnetic loading and unloading device 102) and port number D, rate S, standard Z, brand P. The administrator can use the optical module resource information management and control module 103 to propose the following requirements:
[0098] (1) A request for outbound delivery is sent to the module magnetic handling device 102 with the following information: the source location resource library location area A / B / C / D, slots M and N, the destination location switch cabinet J, height U, port number D, module speed S, standard Z, brand P, and the module magnetic handling device 102 automatically identifies and implements outbound delivery and installation, and feeds back a signal that the shelving has been completed.
[0099] (2) A request for delisting is sent to the module magnetic handling device 102 with the following information: the cabinet J, height U, and port number D of the source switch; the location area A / B / C / D, slots M and N of the destination resource library; the speed S, standard Z, and brand P of the module; the module magnetic handling device 102 automatically identifies and implements delisting and destocking, and feeds back a signal that the destocking has been completed.
[0100] (3) To meet query needs, the computer room administrator can query the corresponding module information based on the location, or query the current location and historical usage of the module.
[0101] The magnetic suspension device track 104 is installed with permanent magnetic blocks, so that the electromagnet of the module magnetic loading and unloading device 102 can realize magnetic suspension movement when the power is on, and automatically decelerate and stop at the specified L and H positions when the power is off.
[0102] The charging device 105 is installed at one end of the monitoring device track. When the module magnetic loading and unloading device 102 approaches, the electromagnet generates magnetic force, and the charging port of the device is adsorbed to achieve automatic power-on, and automatic disconnection when fully charged.
[0103] like Figure 3 As shown, the module resource library 101 includes a magnetic cabinet door 201, a magnetic slot storage area 202, and a magnetic induction recognition module 203, wherein:
[0104] The magnetic cabinet door 201 can be magnetically locked. When the module magnetic loading and unloading device 102 or the magnetic card of the computer room administrator provides magnetic information matching the ID value, the cabinet door is opened and sent to the optical module resource information management and control module 103 to record the information of the person opening and closing the door.
[0105] The magnetic slot storage area 202 has M layers and N columns of optical module placement slots and is provided with a number of classified storage areas. Each slot provides magnetic force through a permanent magnet to ensure the stability of the optical module.
[0106] When a person or a magnetic device takes out an optical module, the magnetic induction recognition module 203 recognizes that the optical module at a specific location has been removed from the warehouse, and sends the removal information to the optical module resource information management and control module 103 .
[0107] like Figure 4 As shown, the module magnetic loading and unloading device 102 includes a magnetic suspension moving module 301, an up and down telescopic module 302, a magnetic tentacle module 303, a motor control module 304, a camera module 305, and an image recognition module 306, wherein:
[0108] The magnetic suspension movement module 301 is installed on the track of the magnetic suspension device, and realizes forward and backward magnetic suspension movement by controlling the magnetic force of the electromagnet.
[0109] The vertical telescopic module 302 moves up and down under the control of the motor control module 304 .
[0110] The magnetic tentacle module 303 , under the control of the motor control module 304 , has the functions of opening the cabinet door of the module resource library 101 , taking out and putting in optical modules, and putting and removing optical modules.
[0111] The camera module 305 captures the slot map, switch port image, and optical module information QR code of the module resource library 101 , and sends the information to the image recognition module 306 .
[0112] The image recognition module 306 determines the slot information of the module resource library 101 and the port information of the switch through image recognition, and sends the position information to the motor control module 304 to control the magnetic tentacle module 303 to move to the specified position for operation.
[0113] like Figure 5 As shown, the optical module resource information management and control module 103 includes a module status and information storage module 401, an optical module entry and exit control module 402, and a module information query module 403, wherein:
[0114] The module status and information storage module 401 stores the initial module status in the library and all module information, updates the database information when receiving the completion signal of "out of the library" or "back out of the library" fed back by the module resource library 101, and retains the historical information.
[0115] The optical module in-and-out storage control module 402 receives the control information input by the administrator, performs in-and-out storage operations on the designated optical modules, and sends a “out-and-out storage” or “in-and-out storage” signal to the module status and information storage module 401 .
[0116] The module information query module 403 supports the computer room administrator to query the corresponding module information according to the location, or according to the current location and historical usage of the query module.
[0117] The optical module installation processing method of the switch provided by the embodiment of the present invention identifies the switch captured image including the switch identification code and the optical module interface, obtains the optical module type that needs to be installed corresponding to each switch model; obtains the number of optical modules corresponding to each optical module type that needs to be installed, sends an optical module out-of-warehouse request to the execution mechanism, so that the execution mechanism transports the optical modules equal to the total number of optical modules corresponding to all optical module types to the target position according to the optical module out-of-warehouse request; wherein the optical module out-of-warehouse request carries the number of optical modules corresponding to each optical module type and the target position information; sends an optical module installation request to the execution mechanism, so that the execution mechanism installs the optical module of the corresponding optical module type on the optical module interface of the corresponding switch at the target position and according to the optical module installation request; wherein the optical module installation request carries the optical module type that needs to be installed corresponding to each switch model, which can improve the efficiency of installing optical modules for the switch and ensure that the computer room can be put into use quickly.
[0118] Furthermore, the switch captured image including the switch identification code and the optical module interface is identified to obtain the type of optical module to be installed corresponding to each switch model, including:
[0119] Identify the switch identification code in the switch shooting image to obtain the switch models; identify the optical module interface corresponding to the same switch model to obtain the optical module type supported by each switch model; refer to the above embodiment for description and no further details will be given.
[0120] According to the pre-configuration information, the optical module types to be installed corresponding to the respective switch models are screened from the candidate optical module types supported by the respective switch models.
[0121] The optical module installation processing method of the switch provided by the embodiment of the present invention can further accurately obtain the type of optical module that needs to be installed.
[0122] Further, the pre-configuration information includes first pre-configuration information adapted to the network environment requirements, and second pre-configuration information adapted to the optical fiber connected to the optical module; accordingly, the optical module types to be installed corresponding to each switch model are obtained by screening from the types of optical modules to be selected supported by each switch model according to the pre-configuration information, including:
[0123] According to the first pre-configuration information, a first candidate optical module type adapted to the network environment requirements is obtained by screening from the candidate optical module types supported by each switch model; the description can be made with reference to the above embodiment and will not be repeated here.
[0124] According to the second pre-configuration information, the optical module types that need to be installed and are adapted to the optical module connection optical fiber and correspond to the switch models are screened from the first candidate optical module types.
[0125] The optical module installation processing method of the switch provided by the embodiment of the present invention can further accurately obtain the type of optical module that needs to be installed.
[0126] Further, the method of selecting, according to the pre-configuration information, from the candidate optical module types respectively supported by each switch model to obtain the optical module types that need to be installed and that correspond to each switch model respectively, further includes:
[0127] According to the second pre-configuration information, a second candidate optical module type adapted for the optical module connecting optical fiber is obtained by screening from the candidate optical module types supported by each switch model; the description can be made with reference to the above embodiment and will not be repeated here.
[0128] According to the first pre-configuration information, the optical module types that need to be installed and that are adapted to the network environment requirements and correspond to the switch models are screened from the second candidate optical module types.
[0129] The optical module installation processing method of the switch provided by the embodiment of the present invention can further accurately obtain the type of optical module that needs to be installed.
[0130] Furthermore, after the step of installing the optical module of the corresponding optical module type onto the optical module interface of the corresponding switch, the optical module installation processing method of the switch further includes:
[0131] In response to the optical module's light transmission and reception information read after the optical module is connected to the optical fiber, the optical module is fault-checked according to the light transmission and reception information.
[0132] The optical module installation processing method of the switch provided by the embodiment of the present invention can realize fault detection of the optical module.
[0133] Furthermore, reading the light transmission and receiving information of the optical module includes:
[0134] Use an automated script to read the light transmission and receiving information of the optical module. Please refer to the above embodiment for description, which will not be repeated here.
[0135] The optical module installation processing method of the switch provided by the embodiment of the present invention can automatically obtain the light transmission and reception information.
[0136] Further, after the step of performing fault detection on the optical module according to the transmitted and received optical information, the optical module installation processing method of the switch further includes:
[0137] The target optical module whose fault detection result is determined to be abnormal is recycled. The above description can be referred to in the above embodiment, which will not be repeated here.
[0138] The optical module installation processing method of the switch provided by the embodiment of the present invention further ensures that the optical module connected to the switch can be used normally by recycling the target optical module.
[0139] It should be noted that the optical module installation processing method for a switch provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the optical module installation processing method for a switch.
[0140] Figure 6 FIG. 1 is a schematic diagram of the structure of an optical module installation processing device for a switch provided by an embodiment of the present invention. Figure 6As shown, the optical module installation processing device of the switch provided by the embodiment of the present invention includes an identification unit 601, an acquisition unit 602 and an installation unit 603, wherein:
[0141] The identification unit 601 is used to identify the switch shooting image including the switch identification code and the optical module interface, and obtain the optical module type that needs to be installed corresponding to each switch model; the acquisition unit 602 is used to obtain the number of optical modules corresponding to each optical module type that needs to be installed, and send an optical module outbound request to the execution mechanism, so that the execution mechanism transports the optical modules equal to the total number of optical modules corresponding to all optical module types to the target location according to the optical module outbound request; wherein the optical module outbound request carries the number of optical modules corresponding to each optical module type and the target location information; the installation unit 603 is used to send an optical module installation request to the execution mechanism, so that the execution mechanism installs the optical module of the corresponding optical module type on the optical module interface of the corresponding switch at the target location and according to the optical module installation request; wherein the optical module installation request carries the type of optical module that needs to be installed corresponding to each switch model.
[0142] Specifically, the identification unit 601 in the device is used to identify the switch shooting image including the switch identification code and the optical module interface, and obtain the optical module type that needs to be installed corresponding to each switch model; the acquisition unit 602 is used to obtain the number of optical modules corresponding to each optical module type that needs to be installed, and send an optical module out-of-warehouse request to the execution mechanism, so that the execution mechanism transports the optical modules equal to the total number of optical modules corresponding to all optical module types to the target location according to the optical module out-of-warehouse request; wherein the optical module out-of-warehouse request carries the number of optical modules corresponding to each optical module type and the target location information; the installation unit 603 is used to send an optical module installation request to the execution mechanism, so that the execution mechanism installs the optical module of the corresponding optical module type on the optical module interface of the corresponding switch at the target location and according to the optical module installation request; wherein the optical module installation request carries the type of optical module that needs to be installed corresponding to each switch model.
[0143] The optical module installation processing device of the switch provided by the embodiment of the present invention identifies the switch captured image including the switch identification code and the optical module interface, obtains the optical module type that needs to be installed corresponding to each switch model; obtains the number of optical modules corresponding to each optical module type that needs to be installed, and sends an optical module out-of-warehouse request to the execution mechanism, so that the execution mechanism transports the optical modules equal to the total number of optical modules corresponding to all optical module types to the target position according to the optical module out-of-warehouse request; wherein the optical module out-of-warehouse request carries the number of optical modules corresponding to each optical module type and the target position information; sends an optical module installation request to the execution mechanism, so that the execution mechanism installs the optical module of the corresponding optical module type on the optical module interface of the corresponding switch at the target position and according to the optical module installation request; wherein the optical module installation request carries the optical module type that needs to be installed corresponding to each switch model, which can improve the efficiency of installing optical modules for the switch and ensure that the computer room can be put into use quickly.
[0144] Furthermore, the identification unit 601 is specifically used for:
[0145] Identify the switch identification code in the switch shooting image to obtain the switch models; identify the optical module interface corresponding to the same switch model to obtain the optical module type to be selected that is supported by each switch model;
[0146] According to the pre-configuration information, the optical module types to be installed corresponding to the respective switch models are screened from the candidate optical module types respectively supported by the respective switch models.
[0147] The optical module installation processing device for a switch provided by the embodiment of the present invention can further accurately obtain the type of optical module that needs to be installed.
[0148] Further, the pre-configuration information includes first pre-configuration information adapted to the network environment requirements, and second pre-configuration information adapted to the optical fiber connected to the optical module; accordingly, the identification unit 601 is further specifically used for:
[0149] According to the first pre-configuration information, a first candidate optical module type adapted to the network environment requirements is selected from the candidate optical module types supported by each switch model;
[0150] According to the second pre-configuration information, the optical module types that need to be installed and are adapted to the optical module connection optical fiber and correspond to the respective switch models are selected from the first candidate optical module types.
[0151] The optical module installation processing device for a switch provided by the embodiment of the present invention can further accurately obtain the type of optical module that needs to be installed.
[0152] Furthermore, the identification unit 601 is further specifically configured to:
[0153] According to the second pre-configuration information, a second candidate optical module type adapted to the optical fiber connected to the optical module is obtained from the candidate optical module types respectively supported by each switch model;
[0154] According to the first pre-configuration information, the optical module types that need to be installed and that are adapted to the network environment requirements and correspond to the respective switch models are selected from the second candidate optical module types.
[0155] The optical module installation processing device for a switch provided by the embodiment of the present invention can further accurately obtain the type of optical module that needs to be installed.
[0156] Further, after the step of installing the optical module of the corresponding optical module type onto the optical module interface of the corresponding switch, the optical module installation processing device of the switch is further used for:
[0157] In response to the light transmission / reception information of the optical module read after the processing action of connecting the optical fiber to the optical module, the optical module is detected for failure based on the light transmission / reception information.
[0158] The optical module installation processing device of a switch provided by the embodiment of the present invention can realize fault detection of the optical module.
[0159] Furthermore, the optical module installation processing device of the switch is also specifically used for:
[0160] Use the automated script to read the transmit and receive information of the optical module.
[0161] The optical module installation processing device of the switch provided by the embodiment of the present invention can automatically obtain the information of transmitting and receiving light.
[0162] Further, after the step of performing fault detection on the optical module according to the transmitted and received optical information, the optical module installation processing device of the switch is further used for:
[0163] The target optical module whose fault detection result is determined to be abnormal is recycled.
[0164] The optical module installation processing device of the switch provided by the embodiment of the present invention further ensures that the optical module connected to the switch can be used normally by recycling the target optical module.
[0165] The embodiment of the optical module installation processing device of the switch provided by the embodiment of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions are not repeated here, and reference can be made to the detailed description of the above-mentioned method embodiments.
[0166] Figure 7A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 7 As shown, the electronic device includes: a processor (processor) 701, a memory (memory) 702 and a bus 703;
[0167] The processor 701 and the memory 702 communicate with each other via a bus 703;
[0168] The processor 701 is used to call the program instructions in the memory 702 to execute the methods provided by the above method embodiments, for example, including:
[0169] Identify the switch image including the switch identification code and the optical module interface to obtain the type of optical module that needs to be installed corresponding to each switch model;
[0170] Obtain the number of optical modules corresponding to each type of optical module to be installed, and send an optical module outbound request to an execution mechanism, so that the execution mechanism transports optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module outbound request;
[0171] The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information;
[0172] Sending an optical module installation request to the actuator, so that the actuator installs an optical module of a corresponding optical module type onto an optical module interface of a corresponding switch at the target location and according to the optical module installation request;
[0173] The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
[0174] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the methods provided by the above method embodiments, for example, including:
[0175] Identify the switch image including the switch identification code and the optical module interface to obtain the type of optical module that needs to be installed corresponding to each switch model;
[0176] Obtain the number of optical modules corresponding to each type of optical module to be installed, and send an optical module outbound request to an execution mechanism, so that the execution mechanism transports optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module outbound request;
[0177] The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information;
[0178] Sending an optical module installation request to the actuator, so that the actuator installs an optical module of a corresponding optical module type onto an optical module interface of a corresponding switch at the target location and according to the optical module installation request;
[0179] The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
[0180] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables the computer to execute the methods provided by the above method embodiments, for example, including:
[0181] Identify the switch image including the switch identification code and the optical module interface to obtain the type of optical module that needs to be installed corresponding to each switch model;
[0182] Obtain the number of optical modules corresponding to each type of optical module to be installed, and send an optical module outbound request to an execution mechanism, so that the execution mechanism transports optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module outbound request;
[0183] The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information;
[0184] Sending an optical module installation request to the actuator, so that the actuator installs an optical module of a corresponding optical module type onto an optical module interface of a corresponding switch at the target location and according to the optical module installation request;
[0185] The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
[0186] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0187] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0188] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0189] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0190] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0191] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for installing an optical module of a switch, characterized in that: include: Identify the switch image including the switch identification code and the optical module interface to obtain the type of optical module that needs to be installed corresponding to each switch model; Obtain the number of optical modules corresponding to each type of optical module to be installed, and send an optical module outbound request to an execution mechanism, so that the execution mechanism transports optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module outbound request; The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information; Sending an optical module installation request to the actuator, so that the actuator installs an optical module of a corresponding optical module type onto an optical module interface of a corresponding switch at the target location and according to the optical module installation request; The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
2. The optical module installation processing method of the switch according to claim 1 is characterized in that: The method of identifying the switch image including the switch identification code and the optical module interface to obtain the optical module type to be installed corresponding to each switch model includes: Identify the switch identification code in the switch shooting image to obtain the switch models; identify the optical module interface corresponding to the same switch model to obtain the optical module type to be selected that is supported by each switch model; According to the pre-configuration information, the optical module types that need to be installed and that correspond to the respective switch models are screened from the candidate optical module types that are supported by the respective switch models.
3. The optical module installation processing method of a switch according to claim 2, characterized in that: The preconfiguration information includes first preconfiguration information adapted to the network environment requirements, and second preconfiguration information adapted to the optical fiber connected to the optical module; accordingly, the optical module types to be installed corresponding to each switch model are obtained by screening from the candidate optical module types supported by each switch model according to the preconfiguration information, including: According to the first pre-configuration information, a first candidate optical module type adapted to the network environment requirement is selected from the candidate optical module types supported by each switch model; According to the second pre-configuration information, the optical module types that need to be installed and are adapted to the optical module connection optical fiber and correspond to the respective switch models are selected from the first candidate optical module types.
4. The method for installing and processing an optical module of a switch according to claim 3, characterized in that: The method of selecting, according to the pre-configuration information, from the candidate optical module types supported by each switch model to obtain the optical module types that need to be installed and that correspond to each switch model, further includes: According to the second pre-configuration information, a second candidate optical module type adapted to the optical fiber connected to the optical module is obtained from the candidate optical module types respectively supported by each switch model; According to the first pre-configuration information, the optical module types that need to be installed and that are adapted to the network environment requirements and correspond to the respective switch models are selected from the second candidate optical module types.
5. The optical module installation processing method of a switch according to any one of claims 1 to 4, characterized in that: After the step of installing the optical module of the corresponding optical module type onto the optical module interface of the corresponding switch, the optical module installation processing method of the switch further includes: In response to the light transmission / reception information of the optical module read after the processing action of connecting the optical module to the optical fiber, the optical module is detected for failure based on the light transmission / reception information.
6. The method for installing an optical module of a switch according to claim 5, characterized in that: Read the transmit and receive information of the optical module, including: Use the automated script to read the transmit and receive information of the optical module.
7. The method for installing an optical module of a switch according to claim 5, characterized in that: After the step of detecting a fault of the optical module according to the light-receiving and light-emitting information, the optical module installation processing method of the switch further includes: The target optical module whose fault detection result is determined to be abnormal is recycled.
8. An optical module installation processing device for a switch, characterized in that: include: The identification unit is used to identify the switch image including the switch identification code and the optical module interface, and obtain the type of optical module to be installed corresponding to each switch model; an acquisition unit, used for acquiring the number of optical modules corresponding to each type of optical module to be installed, and sending an optical module out-of-stock request to an execution mechanism, so that the execution mechanism transports optical modules equal to the total number of optical modules corresponding to all optical module types to a target location according to the optical module out-of-stock request; The optical module outbound request carries the quantity of optical modules corresponding to each type of optical module and target location information; An installation unit, used for sending an optical module installation request to the actuator, so that the actuator installs an optical module of a corresponding optical module type onto an optical module interface of a corresponding switch at the target position according to the optical module installation request; The optical module installation request carries the optical module types that need to be installed corresponding to the switch models.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.