A port automatic connection method, device and readable storage medium
By creating a 3D model in the digital twin platform and enabling automatic port connection, the problem of traditional resource management methods being unable to intuitively display complex wiring within the data center is solved, improving operation and maintenance efficiency and accuracy, and reducing operation and maintenance risks.
Patent Information
- Application Number
- CN202411455663.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2044-10-17
AI Technical Summary
Traditional resource management methods cannot intuitively display the complex wiring and equipment layout in communication equipment rooms, resulting in low operation and maintenance efficiency, difficulty in problem localization, and increased operation and maintenance risks due to delayed data updates.
By collecting data from the data center's resource management system, network management system, and ledgers, basic information about devices and ports is obtained, the connection relationships between ports are analyzed, link data at the port level is formed, and a three-dimensional model is created in the digital twin platform to display devices and ports, enabling automatic port-to-port connections.
It enables automatic generation and intuitive management of port connections, improving operational efficiency and accuracy, ensuring that operational decisions are based on real-time data, and reducing operational risks.
Smart Images

Figure CN119363802B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of resource management, and in particular to a port automatic connection method, device and readable storage medium. BACKGROUND
[0002] With the popularity of smart phones and the rapid development of mobile network technology, especially the widespread application of 4G and 5G networks, the number of mobile network element devices and ODF (Optical Distribution Frame) devices in the communication room has increased dramatically. However, the traditional resource management methods, such as account books and traditional network management systems, have been unable to meet the high efficiency and intuitive needs of modern operation and maintenance, mainly due to the following limitations:
[0003] (1) Resource management limitations: Traditional communication room resource management relies on account books and network management systems, which have obvious limitations in resource retrieval and data searching, and cannot intuitively display the complex wiring and device layout in the room.
[0004] (2) Low operation efficiency: Due to the lack of intuitive resource display, maintenance personnel often need to spend a lot of time searching for information in complex two-dimensional drawings and data tables when troubleshooting and problem positioning, resulting in low operation efficiency.
[0005] (3) Difficulty in problem positioning: Under the existing management method, it is difficult for maintenance personnel to quickly and accurately locate problems, especially in 4G and 5G mobile network core rooms with a large number of devices.
[0006] (4) Data update lag: Traditional systems often have the problem of not updating data in time, which leads to outdated information-based operation decisions and operations, increasing the risk of operation and maintenance. SUMMARY
[0007] The technical problem to be solved by the present application is to solve the above-mentioned deficiencies of the prior art, and to provide a port automatic connection method, device and readable storage medium to at least solve the problem that the traditional resource management method cannot intuitively display the complex wiring and device layout in the room.
[0008] In a first aspect, the present application provides a port automatic connection method, which comprises:
[0009] Collecting data in the resource management system, network management system and account book of the room to obtain basic information of each device and port in the room;
[0010] According to the basic information of each device and port in the room, the connection relationship between each port of the devices is analyzed to form link data in the port dimension;
[0011] calculating a connection path between ports based on the port-dimension link data;
[0012] creating a three-dimensional model corresponding to the machine room in the digital twin platform, showing the equipment and ports of the machine room;
[0013] rendering the calculated connection path into the three-dimensional model to achieve automatic connection between ports.
[0014] Further, the basic information of each device and port in the machine room is obtained by collecting data from the resource management system, network management system and account book of the machine room, specifically including:
[0015] collecting data from the resource management system, network management system and account book using a web crawler or application programming interface (API);
[0016] associating cabinet data with machine room data, associating device data with cabinet data, and associating ports between devices through circuit data based on the collected data to obtain the basic information of each device and port in the machine room.
[0017] Further, after collecting data from the resource management system, network management system and account book using a web crawler or application programming interface (API), the method further includes:
[0018] cleaning the collected data to remove invalid or duplicate data items, and integrating data of different devices and ports to form a unified data format.
[0019] Further, the port-dimension link data includes a port table and a link table, the port table includes port identification, physical space coordinate data of the port, the link table includes link identification and port identification of both ends of the link, and the connection path between ports is calculated based on the port-dimension link data, specifically including:
[0020] According to the port identification and its corresponding physical space coordinate data of both ends of each link in the link table, the three-dimensional space coordinates of the ports at both ends of the link in the digital twin platform are calculated, and the port starting point and the port ending point are determined according to the three-dimensional space coordinates;
[0021] According to the port starting point and the port ending point corresponding to each link, the key turning point coordinates of the connection between the port starting point and the port ending point are calculated;
[0022] According to the key turning point coordinates and the port starting point and the port ending point of each link, the connection path between ports is determined.
[0023] Further, the method further comprises:
[0024] The preset height of the machine room distribution frame and an extension parameter are obtained, the extension parameter representing a distance of the cable extending from the port;
[0025] According to the X-axis, Y-axis and Z-axis coordinates of the port start point and the port end point corresponding to each link, and the height of the machine room distribution frame and the extension parameter, the key turning point coordinates of the cable between the port start point and the port end point are calculated.
[0026] Further, the method further comprises:
[0027] A user interaction interface is designed, which allows users to view detailed information of different devices and ports through clicking and / or dragging.
[0028] Further, the method further comprises:
[0029] According to the real-time data of each device and port in the machine room, the three-dimensional model in the digital twin platform is updated.
[0030] In a second aspect, the present application provides a port automatic cabling device, the device comprising:
[0031] A basic information acquisition module is configured to acquire basic information of each device and port in the machine room by collecting data in the resource management system, network management system and account book of the machine room;
[0032] A link data acquisition module is connected with the basic information acquisition module and configured to analyze the connection relationship between each port of the devices according to the basic information of each device and port in the machine room, so as to form link data in the port dimension;
[0033] A cabling path calculation module is connected with the link data acquisition module and configured to calculate the cabling path between the ports based on the link data in the port dimension;
[0034] A three-dimensional model creation module is connected with the cabling path calculation module and configured to create a three-dimensional model corresponding to the machine room in a digital twin platform, and display the devices and ports of the machine room;
[0035] A port automatic cabling module is connected with the three-dimensional model creation module and configured to render the calculated cabling path into the three-dimensional model, so as to realize automatic cabling of the ports.
[0036] In a third aspect, the present application provides a port automatic connection device, comprising a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to implement the port automatic connection method of the first aspect.
[0037] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the port automatic connection method of the first aspect.
[0038] The present application provides a port automatic connection method, device and readable storage medium. First, the basic information of each device and port in the machine room is obtained by collecting the data in the resource management system, network management system and account book of the machine room; then, the connection relationship between each port of the devices is analyzed according to the basic information of each device and port in the machine room, so as to form link data in the port dimension; and the connection path between the ports is calculated based on the link data in the port dimension; then, a three-dimensional model corresponding to the machine room is created in the digital twin platform, and the devices and ports of the machine room are displayed; and the calculated connection path is rendered into the three-dimensional model to realize the automatic connection of the ports to the ports. The present application automatically generates link data in the port dimension by collecting data, and calculates the connection path between the ports, so as to realize the automatic generation of port connection. At the same time, the present application intuitively displays the devices and their ports in the machine room in the digital twin platform, so that intuitive management and rapid retrieval of resources are possible, which greatly improves the efficiency and accuracy of operation and maintenance. At least the problem that the traditional resource management mode cannot intuitively display the complex wiring and device layout in the machine room is solved. BRIEF DESCRIPTION OF DRAWINGS
[0039] Figure 1 A flowchart of a port automatic connection method according to the first embodiment of the present application;
[0040] Figure 2 A structural diagram of a port automatic connection method according to the first embodiment of the present application;
[0041] Figure 3 A flowchart of another port automatic connection method according to the first embodiment of the present application;
[0042] Figure 4 A schematic diagram of automatic generation of connection according to the first embodiment of the present application;
[0043] Figure 5 A schematic diagram after three-dimensional rendering according to the first embodiment of the present application;
[0044] Figure 6 A structural schematic diagram of a port automatic connection device according to the second embodiment of the present application;
[0045] Figure 7 Fig. 3 is a structural schematic diagram of a port automatic connection device according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the skilled in the art better understand the technical solutions of the present application, the embodiments of the present application will be further described in detail below with reference to the drawings.
[0047] It can be understood that the specific embodiments and drawings described herein are only used to explain the present application, but not to limit the present application.
[0048] It can be understood that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0049] It can be understood that, for the convenience of description, only the parts related to the present application are shown in the drawings of the present application, and the parts unrelated to the present application are not shown in the drawings.
[0050] It can be understood that each unit and module involved in the embodiments of the present application can only correspond to one entity structure, or can be composed of multiple entity structures, or multiple units and modules can be integrated into one entity structure.
[0051] It can be understood that the terms "first", "second" and the like in the embodiments of the present application are used to distinguish different objects, or to distinguish different treatments of the same object, but not to describe a specific order of the object.
[0052] It can be understood that the functions and steps marked in the flowcharts and block diagrams of the present application can occur in an order different from that marked in the drawings without conflict.
[0053] It can be understood that in the flowcharts and block diagrams of the present application, the system, device, equipment, method according to the embodiments of the present application are shown as possible implementation architecture, function and operation. Each block in the flowchart or block diagram can represent a unit, module, program segment, code, which contains executable instructions for realizing the specified function. Moreover, each block or combination of blocks in the block diagram and flowchart can be realized by a hardware-based system for realizing the specified function, or by a combination of hardware and computer instructions.
[0054] It can be understood that the units and modules involved in the embodiments of the present application can be realized by software or hardware, for example, the units and modules can be located in a processor.
[0055] Embodiment 1:
[0056] The embodiment provides a port automatic connection method, as shown in the following formula (1), the method comprises: Figure 1 The embodiment provides a port automatic connection method, as shown in the following formula (1), the method comprises:
[0057] Step S101: Obtain the basic information of each device and port in the machine room by collecting data from the resource management system, network management system and account book of the machine room.
[0058] In this embodiment, the devices include network shifting network element devices and ODF devices. The basic information of each device and port in the machine room includes but is not limited to device type, location coordinates, port state, connection relationship, etc.
[0059] Optionally, the obtaining of the basic information of each device and port in the machine room by collecting data from the resource management system, network management system and account book of the machine room specifically includes:
[0060] collecting data from the resource management system, network management system and account book by using a web crawler or an API (Application Programming Interface, application programming interface).
[0061] associating cabinet data with machine room data, associating device data with cabinet data, and associating ports between devices through circuit data to obtain the basic information of each device and port in the machine room.
[0062] In this embodiment, the type, model, manufacturer, IP, port and other data information of the device are obtained from the resource management system of the machine room by using a web crawler or an API interface, and the port-to-port data information of the machine room circuit is obtained. The online state of the device and the port connection state are obtained through the network management system. The machine room room structure diagram, cabinet model, cabinet layout diagram and the position of the device in the cabinet are obtained through the account book.
[0063] In this embodiment, the cabinet data is associated with the machine room data, the device data is associated with the cabinet data, and the ports between devices are associated through the circuit data based on the collected data, so as to obtain the basic information of each device and port in the machine room.
[0064] Optionally, after the data is collected from the resource management system, network management system and account book by using a web crawler or an API (application programming interface, API), the method further includes:
[0065] cleaning the collected data to remove invalid or duplicate data items, and integrating the data of different devices and ports to form a unified data format.
[0066] In this embodiment, in order to ensure the consistency and accuracy of the data, the collected data is cleaned to remove invalid or duplicate data items, and the data of different devices and ports is integrated to form a unified data format, so as to facilitate subsequent processing.
[0067] Step S102: According to the basic information of each device and port in the machine room, the connection relationship between each port of the device is analyzed, and link data in the port dimension is formed.
[0068] In the embodiment, by analyzing the connection relationship between the ports, the link data in the port dimension is formed, which is used to indicate the logical connection relationship between the ports.
[0069] Step S103: Calculate the connection path between the ports based on the link data in the port dimension.
[0070] In the embodiment, based on the logical connection relationship between the ports in the link data in the port dimension, the connection path between the ports is calculated to ensure the rationality and accuracy of the connection. At the same time, an optimization connection algorithm can be used to reduce the intersection and overlap, and improve the aesthetics and readability of the connection.
[0071] Optionally, the link data in the port dimension includes a port table and a link table, the port table includes port identification, physical space coordinate data of the port, the link table includes link identification and port identification of both ends of the link, and the calculation of the connection path between the ports based on the link data in the port dimension specifically includes:
[0072] According to the port identification of both ends of each link in the link table and the corresponding physical space coordinate data, the three-dimensional space coordinates of the ports at both ends of the link in the digital twin platform are calculated, and the port starting point and the port ending point are determined according to the three-dimensional space coordinates;
[0073] According to the port starting point and the port ending point corresponding to each link, the key fold point coordinates of the connection between the port starting point and the port ending point are calculated;
[0074] According to the key fold point coordinates and the port starting point and the port ending point of each link, the connection path between the ports is determined.
[0075] In the embodiment, the port identification can be a port ID or a port name, the physical space coordinate data of the port can include physical space X-axis, Y-axis and Z-axis coordinates of the port, and the link identification can be a link ID or a link name. For example, the port table can be as shown in Table 1, and the link table can be as shown in Table 2:
[0076] Table 1: Port table
[0077] Field Type Description PORT ID Long Port ID PORT NAME Varchar Port Name PORT X Double Port Spatial X Coordinate PORT Y Double Port Spatial Y Coordinate PORT Z Double Port Spatial Z Coordinate
[0078] Table 2: Link table
[0079] Field Type Description LINK ID Long Link ID LINK NAME Varchar Link Name LINK PORT A ID Long Link A Port ID LINK PORT B ID Long Link B Port ID
[0080] Optionally, the calculating the key fold point coordinates of the connection line between the port start point and the port end point according to the port start point and the port end point corresponding to each link specifically comprises:
[0081] acquiring a preset height of a wiring frame of the machine room and an extension parameter, the extension parameter representing a distance of the connection line extending from the port;
[0082] calculating the key fold point coordinates of the connection line between the port start point and the port end point according to the X-axis, Y-axis and Z-axis coordinates of the port start point and the port end point corresponding to each link and the height of the wiring frame and the extension parameter.
[0083] In the embodiment, the port start point is set as P1=(x1,y1,z1) and the port end point is set as P2=(x2,y2,z2), and then the key fold point coordinates can be calculated as follows:
[0084] Z1=(x1+s,y1,z1)
[0085] Z2=(x1+s,y max ,z1)
[0086] Z3=(x2+s,y max ,z1)
[0087] Z4=(x2+s,y max ,z2)
[0088] Z5=(x2+s,y2,z2)
[0089] In the formula, s represents the extension parameter, y max represents the height of the wiring frame of the machine room.
[0090] When the X-axis coordinate of the P1 point is equal to the X-axis coordinate of the P2 point, the Z2 point will coincide with the Z3 point to form one point; when the Z-axis coordinate of the P1 point is equal to the Z-axis coordinate of the P2 point, the Z3 point will coincide with the Z4 point to form one point.
[0091] It should be noted that defining s as 0.5 has better display effect, and in actual application scenarios, s can also be adjusted or set according to specific needs.
[0092] Step S104: creating a three-dimensional model corresponding to the machine room in the digital twin platform to display the equipment and ports of the machine room;
[0093] Step S105: rendering the calculated connection line path into the three-dimensional model to realize automatic connection of ports to ports.
[0094] In this embodiment, a three-dimensional model of the digital twin platform is constructed using the three.js engine technology, the equipment and ports of the machine room are displayed, and the calculated connection path is rendered into the three-dimensional model to realize automatic connection from port to port. This innovation presents a visual and interactive resource management interface for users, greatly helping maintenance personnel to quickly locate problems and simplifying the wiring management process.
[0095] Optionally, the method further comprises:
[0096] A user interaction interface is designed, which allows users to view detailed information of different devices and ports through clicking and / or dragging.
[0097] In this embodiment, a user interaction interface is designed to allow users to view detailed information of different devices and ports through clicking, dragging, etc., thereby improving maintenance efficiency.
[0098] Optionally, the method further comprises:
[0099] The three-dimensional model in the digital twin platform is updated according to real-time data of each device and port in the machine room.
[0100] In this embodiment, the digital twin platform has real-time data updating capability, ensuring that the information displayed is synchronized with the actual device status, thereby effectively preventing maintenance risks caused by delayed data updates.
[0101] The port automatic connection method provided by the embodiment of the application uses digital twin technology to collect resource data in existing account, resource management system and network management system, and further processes these data to form link data in the port dimension. Then these resource data are rendered to the digital twin platform, and the port automatic connection is generated and rendered according to the three-dimensional space coordinate position of the link data on the digital twin platform. This technical solution not only provides a visual resource management view, but also realizes the automation and intelligentization of port wiring, greatly improving the maintenance efficiency and accuracy. Through this way, maintenance personnel can quickly and accurately locate problems and optimize the wiring process, thereby significantly improving the maintenance management level of the communication machine room.
[0102] In one specific embodiment, a port automatic connection method between mobile network element devices and ODF devices in a mobile network core machine room is designed based on digital twin technology, the structural diagram of the method is as shown in Figure 2 The flowchart of the method is as shown in Figure 3 The method mainly consists of the following steps:
[0103] S1, Data Collection
[0104] (1) Condition Requirements:
[0105] The resource management system, network management system, and import account that need to access the machine room are required to obtain device resource data, circuit data, device status data, and equipment layout in the machine room.
[0106] The collected data is analyzed and processed by the data processing module, which associates cabinet data with machine room data, associates device data with cabinet data, and associates devices with each other through port data.
[0107] It is necessary to ensure the integrity and accuracy of the data to facilitate subsequent processing and analysis.
[0108] (2) Role:
[0109] Collect resource data of all network element devices and ODF devices in the machine room, including but not limited to device type, location coordinates, port status, connection relationship, etc.
[0110] It should be noted that the port status includes online and offline states, and the connection relationship includes the connection relationship between network element devices and ODF devices, the connection relationship between network element devices, and the connection relationship between ODF devices.
[0111] Through data collection, a basic information library of devices and ports is established, providing necessary data support for subsequent data processing and visualization display.
[0112] (3) Detailed Content:
[0113] Use web crawlers or API interfaces to obtain device type, model, manufacturer, IP, port, and other data information from the resource management system of the machine room, and port-to-port data information of the machine room circuit; obtain device online status and port connectivity status through the network management system; obtain machine room room structure diagram, cabinet model, cabinet layout diagram, and device location in the cabinet through the account.
[0114] Preliminary cleaning and verification of the collected data are performed to ensure data consistency and accuracy.
[0115] Store data in local databases or cloud storage systems for convenient access for subsequent processing.
[0116] S2, Data Processing
[0117] (1) Condition Requirements:
[0118] The collected data needs to be cleaned, integrated, and analyzed to form link data in the port dimension.
[0119] It requires certain data processing capabilities to handle complex data relationships and logic.
[0120] (2) Role:
[0121] In-depth analysis of collected device and port data to determine the logical connection relationship between ports.
[0122] Through data processing, generate port-to-port link data to provide data support for automatic wiring.
[0123] (3) Detailed content:
[0124] Clean the data, remove invalid or duplicate data items, and ensure data accuracy.
[0125] Integrate data from different devices and ports into a unified data format for subsequent processing.
[0126] Analyze the connection relationship between ports, determine the logical connection path of the port, and generate port-dimension link data, including the port table shown in Table 1 and the link table shown in Table 2.
[0127] S3, line calculation
[0128] (1) Condition requirements:
[0129] Get the spatial coordinates of two ports.
[0130] It requires three-dimensional spatial calculation capabilities to automatically connect ports.
[0131] (2) Role:
[0132] According to the logical connection relationship of the port, calculate the three-dimensional spatial coordinate position of the port on the digital twin platform.
[0133] Realize the automatic connection of port-to-port, improve the accuracy and efficiency of wiring.
[0134] (3) Detailed content:
[0135] Use spatial geometry algorithms to determine the position in three-dimensional space based on the port coordinate data (physical space coordinate data) queried from the database.
[0136] According to the connection relationship of the port, calculate the connection path between the ports to ensure the rationality and accuracy of the connection.
[0137] Optimize the connection algorithm to reduce intersection and overlap, improve the aesthetics and readability of the connection.
[0138] (4) Coordinate algorithm:
[0139] The default unit of the space coordinate system in the three.js engine is meter, and the height y of the general machine room distribution frame is assumed max = 3; the connection is performed as a polyline after extending s = 0.5 from the port, which is convenient for aesthetics and observation.
[0140] Port starting point:
[0141] P1 = (x1, y1, z1)
[0142] Port end point:
[0143] P2 = (x2, y2, z2)
[0144] Key breakpoint coordinates of the line between the port starting point and the end point:
[0145] Z1 = (x1 + s, y1, z1)
[0146] Z2 = (x1 + s, y max , z1)
[0147] Z3 = (x2 + s, y max , z1)
[0148] Z4 = (x2 + s, y max , z2)
[0149] Z5 = (x2 + s, y2, z2)
[0150] When the X-axis coordinate of P1 point is equal to the X-axis coordinate of P2 point, Z2 point will coincide with Z3 point to form a point;
[0151] When the Z-axis coordinate of P1 point is equal to the Z-axis coordinate of P2 point, Z3 point will coincide with Z4 point to form a point.
[0152] It should be noted that defining s as 0.5 has better display effect, and in actual application scenarios, s can also be adjusted or set according to specific needs.
[0153] Finally, the coordinate algorithm corresponds to the automatically generated schematic diagram of the line as Figure 4 shown.
[0154] S4, visual display
[0155] (1) Condition requirement:
[0156] The processed data needs to be rendered to the digital twin platform using the three.js engine technology.
[0157] It needs to have three-dimensional rendering capability and user interaction design capability to provide intuitive user experience, for example, the schematic diagram after three-dimensional rendering can be as Figure 5 shown.
[0158] (2) Action:
[0159] Display the machine room resources and port connections in three-dimensional space, and realize automatic wiring and rendering of ports to ports.
[0160] Provide an intuitive resource management view to help operations personnel quickly locate problem points and simplify wiring processes.
[0161] (3) Detailed content:
[0162] Use three.js engine technology to build a three-dimensional model of the digital twin platform, showing the equipment and ports of the machine room.
[0163] Render the processed link data to the three-dimensional model to realize automatic wiring of ports to ports.
[0164] Design a user interaction interface that allows users to view detailed information about different devices and ports by clicking, dragging, and other methods.
[0165] Provide real-time data update function to ensure that the information displayed on the digital twin platform is consistent with the actual device status.
[0166] The relationship and role between the above steps are as follows:
[0167] Data collection is the foundation of the entire process. It ensures that we have comprehensive and accurate equipment and port information, providing the necessary raw data for subsequent steps.
[0168] Data processing relies on the output of the data collection stage. In this stage, raw data is cleaned, integrated, and analyzed in depth to identify the logical connection relationship between ports, laying the foundation for automated wiring.
[0169] Wiring calculation calculates the specific position of the port in the three-dimensional space and determines the connection path between the ports according to the link data generated in the data processing stage. This step is the core of realizing automated wiring and directly affects the accuracy of the final visual display.
[0170] Visualization is the final output of the entire process. It uses three.js engine technology to render the calculated three-dimensional model and port wiring to the digital twin platform, providing users with an intuitive, interactive resource management view, allowing operations personnel to quickly locate problems and simplify wiring processes.
[0171] It should be noted that the port automatic wiring method provided by the present application has the following beneficial effects:
[0172] a) Improve resource management intuitiveness: The present application aims to create a three-dimensional virtual model corresponding to the actual machine room through digital twin technology, realizing intuitive management and quick retrieval of resources.
[0173] b) Improve operation and maintenance efficiency: By using automated port wiring and intelligent resource management, the present application can significantly improve operation and maintenance efficiency and reduce the time consumption of operation and maintenance personnel in finding and positioning problems.
[0174] c) Realize quick problem positioning: Through real-time rendering and automatic port connection generation of the three-dimensional digital twin platform, the present application can enable operation and maintenance personnel to quickly and accurately locate problems and optimize the troubleshooting process.
[0175] d) Ensure real-time data update: The data module of the present application can collect and update resource data in real time, ensuring that operation and maintenance decisions and operations are based on the latest information, reducing operation and maintenance risks.
[0176] The port automatic connection method provided by the embodiment of the present application first collects the data in the resource management system, network management system and account of the machine room to obtain the basic information of each device and port in the machine room; then analyzes the connection relationship between each port of the devices according to the basic information of each device and port in the machine room, thereby forming link data in the port dimension; and calculates the connection path between the ports based on the link data in the port dimension; then creates a three-dimensional model corresponding to the machine room in the digital twin platform to display the devices and ports of the machine room; and renders the calculated connection path into the three-dimensional model to realize automatic connection of ports to ports. The present application automatically generates link data in the port dimension by collecting data and calculates the connection path between the ports, thereby realizing automatic generation of port connection, at the same time, the present application intuitively displays the devices and their ports in the machine room in the digital twin platform, making intuitive management and quick retrieval of resources possible, greatly improving the efficiency and accuracy of operation and maintenance. At least solve the problem that the traditional resource management method cannot intuitively display the complex wiring and device layout in the machine room.
[0177] Embodiment 2:
[0178] As shown in Figure 6 , the present embodiment provides a port automatic connection device for executing the above-mentioned port automatic connection method, comprising:
[0179] The basic information acquisition module 11 is used to collect the data in the resource management system, network management system and account of the machine room to obtain the basic information of each device and port in the machine room;
[0180] The link data acquisition module 12 is connected with the basic information acquisition module 11, and is used for analyzing the connection relationship between ports between devices according to the basic information of each device and port in the machine room, so as to form link data in the port dimension;
[0181] The connection path calculation module 13 is connected with the link data acquisition module 12, and is used for calculating the connection path between ports based on the link data in the port dimension;
[0182] The three-dimensional model creation module 14 is connected with the connection path calculation module 13, and is used for creating a three-dimensional model corresponding to the machine room in the digital twin platform, and displaying the devices and ports of the machine room;
[0183] The port automatic connection module 15 is connected with the three-dimensional model creation module 14, and is used for rendering the calculated connection path into the three-dimensional model to realize automatic connection of ports to ports.
[0184] Optionally, the basic information acquisition module 11 comprises:
[0185] The data collection unit is used for collecting data from the resource management system, the network management system and the account book by using a web crawler or an application programming interface (API);
[0186] The information acquisition unit is used for associating cabinet data with machine room data, associating device data with cabinet data, and associating ports between devices through circuit data, so as to obtain the basic information of each device and port in the machine room.
[0187] Optionally, the device further comprises:
[0188] The data cleaning module is used for cleaning the collected data, removing invalid or duplicate data items, and integrating data of different devices and ports to form a unified data format.
[0189] Optionally, the link data in the port dimension comprises a port table and a link table, the port table comprises a port identifier, physical space coordinate data of the port, the link table comprises a link identifier and port identifiers of two ends of the link, and the connection path calculation module 13 comprises:
[0190] The starting point coordinate calculation unit is used for calculating three-dimensional space coordinates of the two end ports of the link in the digital twin platform according to the port identifiers of the two ends of the link in the link table and the corresponding physical space coordinate data, and determining a port starting point and a port ending point according to the three-dimensional space coordinates;
[0191] The turning point coordinate calculation unit is used for calculating key turning point coordinates of a connection line between the port starting point and the port ending point according to the port starting point and the port ending point corresponding to each link.
[0192] a connection path determining unit configured to determine a connection path between ports according to the key fold point coordinates and the port start points and the port end points of the links.
[0193] Optionally, the fold point coordinate calculating unit comprises:
[0194] a first obtaining unit configured to obtain a preset machine room distribution frame height and an extension parameter, the extension parameter representing a distance of a connection extending from a port;
[0195] a first calculating unit configured to calculate key fold point coordinates of a connection between a port start point and a port end point according to X-axis, Y-axis and Z-axis coordinates of the port start point and the port end point corresponding to a link, and the machine room distribution frame height and the extension parameter.
[0196] Optionally, the apparatus further comprises:
[0197] a user interaction module configured to design a user interaction interface, the user interaction interface allowing a user to view detailed information of different devices and ports through a clicking and / or dragging manner.
[0198] Optionally, the apparatus further comprises:
[0199] a real-time updating module configured to update the three-dimensional model in the digital twin platform according to real-time data of devices and ports in a machine room.
[0200] Embodiment 3:
[0201] Reference Figure 7 The embodiment provides an apparatus for automatically connecting ports, comprising a memory 21 and a processor 22, the memory 21 stores a computer program, and the processor 22 is configured to run the computer program to perform the method for automatically connecting ports in the embodiment 1.
[0202] The memory 21 is connected with the processor 22, the memory 21 can adopt a flash memory or a read-only memory or other memories, and the processor 22 can adopt a central processing unit or a single-chip microcomputer.
[0203] Embodiment 4:
[0204] The embodiment provides a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method for automatically connecting ports in the embodiment 1.
[0205] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, computer program modules or other data. The computer-readable storage medium includes, but is not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disc (DVD) or other optical disc storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0206] In summary, the port automatic connection method, device and readable storage medium provided by the embodiment of the present application first acquire the basic information of each device and port in the machine room by collecting the data in the resource management system, network management system and account book of the machine room; then analyze the connection relationship between each port between the devices according to the basic information of each device and port in the machine room, so as to form the link data in the port dimension; and calculate the connection path between the ports based on the link data in the port dimension; then create a three-dimensional model corresponding to the machine room in the digital twin platform, display the devices and ports of the machine room; and render the calculated connection path into the three-dimensional model to realize the automatic connection of the ports to the ports. The present application automatically generates the link data in the port dimension and calculates the connection path between the ports by collecting the data, thereby realizing the automatic generation of the port connection, at the same time, the present application intuitively displays the devices and their ports in the machine room in the digital twin platform, so that the intuitive management and rapid retrieval of resources become possible, greatly improving the efficiency and accuracy of operation and maintenance. At least the problem that the traditional resource management mode cannot intuitively display the complex wiring and device layout in the machine room is solved.
[0207] It can be understood that the above embodiments are only exemplary embodiments adopted for illustrating the principles of the present application, and the present application is not limited thereto. Various modifications and improvements can be made by those skilled in the art without departing from the spirit and essence of the present application, and these modifications and improvements are also regarded as the protection scope of the present application.
Claims
1. A method of automatically connecting ports, characterized by, The method comprises: Obtaining basic information of each device and port in the machine room by collecting data in the resource management system, network management system and account book of the machine room; According to the basic information of each device and port in the machine room, the connection relationship between the ports of the devices is analyzed, so as to form link data in the port dimension; Based on the link data in the port dimension, the connection path between the ports is calculated; A three-dimensional model corresponding to the machine room is created in the digital twin platform to display the devices and ports of the machine room; The calculated connection path is rendered into the three-dimensional model to realize automatic connection of ports to ports; The link data in the port dimension includes a port table and a link table, the port table includes port identification, physical space coordinate data of the port, the link table includes link identification and port identification of both ends of the link, and the connection path between the ports is calculated based on the link data in the port dimension, specifically including: According to the port identification and its corresponding physical space coordinate data of both ends of each link in the link table, the three-dimensional space coordinates of both ends of the link in the digital twin platform are calculated, and the port starting point and the port ending point are determined according to the three-dimensional space coordinates; Obtaining a preset machine room distribution rack height and an extension parameter, the extension parameter representing the distance of the connection extending from the port; According to the X-axis, Y-axis and Z-axis coordinates of the port starting point and the port ending point corresponding to each link, as well as the machine room distribution rack height and the extension parameter, the key fold point coordinates of the connection between the port starting point and the port ending point are calculated; According to the key fold point coordinates and the port starting point and the port ending point of each link, the connection path between the ports is determined.
2. The method of claim 1, wherein, The basic information of each device and port in the machine room is obtained by collecting data in the resource management system, network management system and account book of the machine room, specifically including: Data is collected from the resource management system, network management system and account book by using a web crawler or an application programming interface (API); According to the collected data, cabinet data is associated with machine room data, device data is associated with cabinet data, and ports between devices are associated through circuit data to obtain the basic information of each device and port in the machine room.
3. The method of claim 2, wherein, After collecting data from the resource management system, network management system and account book by using a web crawler or an application programming interface (API), the method further comprises: Cleaning the collected data to remove invalid or duplicate data items, and integrating the data of different devices and ports to form a unified data format.
4. The method of claim 1, wherein, The method further comprises: Designing a user interaction interface, which allows users to view detailed information of different devices and ports by clicking and / or dragging.
5. The method of claim 1, wherein, The method further comprises: According to the real-time data of each device and port in the machine room, the three-dimensional model in the digital twin platform is updated.
6. A port automating connecting device, characterized by, The device comprises: A basic information acquisition module for obtaining basic information of each device and port in the machine room by collecting data in the resource management system, network management system and account book of the machine room; The link data acquisition module is connected with the basic information acquisition module, and is configured to analyze connection relationships between ports of devices according to the basic information of the devices and the ports in the machine room, so as to form link data in the port dimension; The connection path calculation module is connected with the link data acquisition module, and is configured to calculate connection paths between ports based on the link data in the port dimension; The three-dimensional model creation module is connected with the connection path calculation module, and is configured to create a three-dimensional model corresponding to the machine room in the digital twin platform, and display devices and ports of the machine room; The port automatic connection module is connected with the three-dimensional model creation module, and is configured to render the calculated connection paths into the three-dimensional model, so as to realize automatic connection of ports to ports; The link data in the port dimension includes a port table and a link table, the port table includes port identifiers and physical space coordinate data of the ports, the link table includes link identifiers and port identifiers at both ends of the links, and the connection path calculation module includes: A starting point coordinate calculation unit is configured to calculate three-dimensional space coordinates of ports at both ends of the links in the digital twin platform according to the port identifiers at both ends of the links in the link table and corresponding physical space coordinate data, and determine port starting points and port ending points according to the three-dimensional space coordinates; A first acquisition unit is configured to acquire a preset machine room distribution frame height and an extension parameter, the extension parameter representing a distance of connection extension from a port; A first calculation unit is configured to calculate key fold point coordinates of a connection between a port starting point and a port ending point according to X-axis, Y-axis and Z-axis coordinates of the port starting point and the port ending point, and the machine room distribution frame height and the extension parameter; A connection path determination unit is configured to determine a connection path between ports according to the key fold point coordinates and the port starting point and the port ending point of each link.
7. A port automating connecting device, characterized by, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the port automatic connection method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the port automatic connection method according to any one of claims 1-5.
Citation Information
Patent Citations
Power grid center and distribution substation cable resource unified management and planning method
CN104967534A
Electric power communication resource operation and maintenance management and control method based on digital twinning
CN116227103A