A cable automated layout method, system, electronic device, and medium

CN117034844BActive Publication Date: 2026-10-30INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310898769.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-21
Publication Date
2026-10-30
Estimated Expiration
2043-07-21

Smart Images

  • Figure CN117034844B_ABST
    Figure CN117034844B_ABST
Patent Text Reader

Abstract

The application discloses a cable automatic layout method, relates to the technical field of cable layout, and comprises the following steps: obtaining an initial diagram of the internal structure of a server and simplifying the internal structure to obtain a simplified internal structure diagram; specifying a starting surface in the simplified internal structure diagram as a first wall surface and sequentially selecting an extended wall surface according to the wiring wall surface sequence; specifying an arbitrary point in the first wall surface as a starting node, sequentially extending to the extended wall surface in combination with the starting node and a predetermined extension direction until extending to a terminal node in a terminal wall surface, and sequentially flexibly connecting all the nodes to obtain a cable layout path. The internal structure diagram of the server is simplified to obtain the simplified internal structure diagram, then the extension method in the embodiment is used to calculate and extend according to the shortest path and the predetermined extension direction, automatic point distribution is realized, and finally, all the points are sequentially connected to form a complete cable layout path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of server cables, specifically to an automated cable layout method, system, electronic device, and medium. Background Technology

[0002] To ensure high server speed, strong data throughput, and reliable long-term operation, higher requirements are placed on server cable layout design. The cable layout within a server not only affects its internal structure but also its operational performance. A disorganized cable layout can result in a cluttered and disorganized overall system appearance, make the cable structure incompatible with the server structure, lead to difficulties in production and installation, hinder efficiency, and may also obstruct airflow and affect the insertion and removal of sub-modules.

[0003] Current cable layouts are typically done by engineers manually adjusting the cable layout point by point and segment by segment based on their experience. This cabling method is inefficient and has limited scope for evaluating cabling methods that can be implemented within a preset time, resulting in less than ideal cabling results, such as excessively long cable lengths, poor aesthetics, and difficulty in disassembly and assembly. Summary of the Invention

[0004] To address at least one of the problems mentioned in the background art, this application provides an automated cable layout method, system, electronic device, and medium.

[0005] The specific technical solutions provided in this application are as follows:

[0006] Firstly, an automated cable layout method is provided for use in server internal cabling, the method comprising:

[0007] Obtain an initial diagram of the server's internal structure, and simplify the initial diagram to obtain a simplified diagram of the internal structure;

[0008] The starting surface in the simplified internal structure diagram is designated as the first wall surface, and the extension walls are selected sequentially according to the wiring wall surface order;

[0009] Designate any point in the first wall as the starting node, and extend sequentially to the extension wall in combination with the starting node and the predetermined extension direction until the extension reaches the termination node in the termination wall.

[0010] Calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

[0011] In one specific embodiment, the process of obtaining a simplified internal structure diagram from the initial simplified server internal structure diagram specifically includes:

[0012] Obtain the initial diagram of the internal structure, and simplify the initial diagram of the internal structure using the maximum rectangle envelope method to obtain the simplified diagram of the internal structure;

[0013] The simplified diagram of the internal structure is placed in the system's absolute coordinate system.

[0014] In one specific embodiment, any point in the first wall is designated as the starting node, and the extension is sequentially extended towards the extending wall in combination with the starting node and a preset extension direction until the extension reaches the ending node in the ending wall, specifically including:

[0015] S101: Specify any point in the first wall as the starting node, and obtain the coordinates of the starting node;

[0016] S102: Calculate the coordinates of the next bending node based on the coordinates of the starting node and the predetermined extension direction;

[0017] S103: Calculate the coordinates of the next extension node based on the coordinates of the bending node;

[0018] The predetermined extension direction is determined by the normal unit vector of the first wall and the normal unit vector of the sequentially extending second wall.

[0019] Wherein, the extension node extends in a straight line relative to the starting node;

[0020] Use the extended node as the new starting node, and repeat steps S102 to S103 to calculate other nodes until the extension reaches the termination node.

[0021] In one specific embodiment, the formula for calculating the coordinates of the next bend node based on the coordinates of the starting node and the predetermined extension direction is as follows:

[0022] L1=|N start ·a|+R (1)

[0023] L2=|N start ·b|+R (2)

[0024] Where L1 is the length extended along the unit vector a; L2 is the length extended along the unit vector b; N start For N start (x1, y1, z1) represents the coordinates of the starting point; a is the normal unit vector of the first wall; b is the normal unit vector of the second wall; R is the minimum bending radius of the cable; M1 is the coordinates of the next bend node;

[0025] M1 relative to N is calculated using formulas (1) and (2). startGiven the relative position of (x1, y1, z1), and keeping the remaining directional coordinates unchanged, calculate the coordinates of M1.

[0026] In one specific embodiment, the formula for calculating the coordinates of the next extension node based on the coordinates of the bending node is as follows:

[0027] |M1-M2|=|(M1-Q1)·b|-R (3)

[0028] Where M1 is the coordinate of the next bend node; Q1 is any point on the second wall; b is the normal unit vector of the second wall; and R is the minimum bending radius of the cable.

[0029] In one specific embodiment, the method further includes:

[0030] Customize the location of the termination node;

[0031] The connector flexibly connects all nodes sequentially from the starting node to the ending node according to the coordinates of each node.

[0032] In one specific embodiment, after obtaining the cable layout path, the method further includes:

[0033] Determine whether the cable layout path is the optimal path;

[0034] If so, then directly output the cable layout path;

[0035] If not, then re-specify the starting wall or modify the wiring wall order, and re-output the cable layout path.

[0036] Secondly, an automated cable layout system is provided, the system comprising:

[0037] A simplification module is used to obtain an initial diagram of the server's internal structure and simplify the initial diagram to obtain a simplified diagram of the internal structure.

[0038] The wall setting module is used to specify the starting surface in the simplified internal structure diagram as the first wall surface, and to select the extension walls in sequence according to the wiring wall surface order;

[0039] The extension module is used to designate any point in the first wall as the starting node, and extend sequentially to the extension wall in combination with the starting node and a predetermined extension direction until it extends to the termination node in the termination wall.

[0040] The connection module is used to calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

[0041] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0042] Step A: Obtain an initial diagram of the server's internal structure, and simplify the initial diagram to obtain a simplified diagram of the internal structure;

[0043] Step B: Designate the starting surface in the simplified internal structure diagram as the first wall surface, and select the extension walls in sequence according to the wiring wall surface order;

[0044] Step C: Designate any point in the first wall as the starting node, and extend it sequentially to the extension wall in combination with the starting node and the predetermined extension direction until it reaches the termination node in the termination wall.

[0045] Step D: Calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

[0046] Fourthly, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, performs the following steps:

[0047] Step A: Obtain an initial diagram of the server's internal structure, and simplify the initial diagram to obtain a simplified diagram of the internal structure;

[0048] Step B: Designate the starting surface in the simplified internal structure diagram as the first wall surface, and select the extension walls in sequence according to the wiring wall surface order;

[0049] Step C: Designate any point in the first wall as the starting node, and extend it sequentially to the extension wall in combination with the starting node and the predetermined extension direction until it reaches the termination node in the termination wall.

[0050] Step D: Calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

[0051] The embodiments of this application have the following beneficial effects:

[0052] 1. The method provided in this application for obtaining the internal structure diagram of a server uses the maximum rectangle envelope method to simplify the initial internal structure diagram to obtain a simplified internal structure diagram. The starting surface in the simplified internal structure diagram is designated as the first wall surface, and extension walls are selected sequentially according to the wiring wall surface order. Any point in the first wall surface is designated as the starting node. The extension is carried out sequentially along the extension wall surface in combination with the starting node and the predetermined extension direction until the termination node in the termination wall surface is reached. Then, the coordinates of each node are calculated and extended sequentially until the termination node in the termination wall surface is reached. By simplifying the structure diagram, the wall surface that needs to be wired is specified on the simplified diagram. The extension is carried out sequentially through the nodes to the termination node. All nodes are flexibly connected sequentially using connectors to form a complete cable layout path, thereby efficiently obtaining the optimal cable layout path in the server to be laid out.

[0053] 2. By specifying the coordinates of the cable's start and end points, and then selecting the walls along which the cabling will run in sequence, the cable will preferentially run along these walls. In the actual structure, cable management brackets can be placed on these walls to organize and manage the network cables.

[0054] 3. After obtaining the cable layout path, it can be determined whether the cable layout path is the optimal path. If it is not the optimal path and the layout line has excessively long wiring lengths, and if it is necessary to use different wiring schemes for comparison, then it is only necessary to redefine the wall or change the wall order and then output a new cable layout path. Attached Figure Description

[0055] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 A schematic diagram of the automated cable layout method according to this application is shown;

[0057] Figure 2 A schematic diagram showing an initial view of the internal structure of the server according to this application;

[0058] Figure 3 A schematic diagram showing a simplified internal structure of a server according to this application is provided.

[0059] Figure 4 A schematic diagram showing the extension of the first wall surface to the second wall surface according to this application is shown;

[0060] Figure 5 A schematic diagram of the automated cable layout system according to this application is shown;

[0061] Figure 6 A schematic diagram of an electronic device according to this application is shown. Detailed Implementation

[0062] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0063] Current cable layout methods typically involve manual adjustments by staff, point by point, based on past experience. This approach is inefficient, has limited scope for evaluating cabling options within a given timeframe, and is prone to issues such as excessively long cables, cable stacking, impaired heat dissipation, and difficulty in assembly and disassembly. To address these problems, this application proposes an automated cable layout method, system, electronic device, and medium.

[0064] Example 1

[0065] An automated cable layout method, applied to internal server cabling, such as... Figure 1 As shown, the method includes:

[0066] Step S1: Obtain an initial diagram of the server's internal structure, and simplify the initial diagram to obtain a simplified diagram of the internal structure.

[0067] In one specific embodiment, the process of obtaining a simplified internal structure diagram from the initial simplified server internal structure diagram specifically includes:

[0068] The initial internal structure diagram is obtained, and the simplified internal structure diagram is obtained by using the maximum rectangle envelope method; wherein the simplified internal structure diagram is placed in the system absolute coordinate system.

[0069] like Figure 2 The diagram shown is a general initial diagram of the internal structure of a server. It clearly shows the components and connection ports included in the unsimplified internal structure diagram. The principle of maximizing the envelope size of the local structure is used to obtain the minimum rectangular space occupied by each structural component; as shown... Figure 3The diagram shown is a simplified model of the server. This model is placed in an absolute coordinate system. The maximum length, width, and height of the complex components relative to the coordinate system are the simplified rectangular envelope dimensions. The simplified model can extract internal wiring space and nodes with minimal resources, and simplify and rationalize the wiring path to the greatest extent. The simplified internal structure diagram completely covers the internal structural features of the server, so that wiring within the wiring space will not cause interference.

[0070] Step S2: Designate the starting surface in the simplified internal structure diagram as the first wall surface, and select the extension walls in sequence according to the wiring wall surface order.

[0071] like Figure 4 As shown, the simplified internal structure diagram obtained in step S1 is placed in the system's absolute coordinate system. The starting wall is designated as the first wall for the required wiring. Then, the following sequence is followed: determine the extension direction from the first wall—calculate the bending node—calculate the extension node—extend to the next extension wall. The entire extension calculation process is carried out in the system's absolute coordinate system, and the coordinates of each extension node are calculated sequentially.

[0072] Step S3: Designate any point in the first wall as the starting node, and extend it sequentially to the extension wall in combination with the starting node and the predetermined extension direction until it reaches the termination node in the termination wall.

[0073] In a specific embodiment, such as Figure 4 As shown, specify the coordinates of the cable's starting point on the first wall surface, and select the extension walls sequentially according to the wiring order. The cable will preferentially run along these walls, specifically including:

[0074] S101: Specify any point in the first wall as the starting node, and obtain the coordinates of the starting node;

[0075] S102: Calculate the coordinates of the next bending node based on the coordinates of the starting node and the predetermined extension direction;

[0076] S103: Calculate the coordinates of the next extension node based on the coordinates of the bending node;

[0077] S104: Take the extended node as the new starting node, and repeat steps S102 to S103 to calculate other nodes until the extension reaches the termination node.

[0078] The predetermined extension direction is determined by the normal unit vector of the first wall and the normal unit vector of the second wall that extends sequentially; and the extension node extends in a straight line relative to the starting node.

[0079] Define the position coordinates N of the starting point start(x1, y1, z1) is the starting node, which is located on the first wall.

[0080] In one specific embodiment, the step is based on the coordinates N of the starting node. start The formula for calculating the coordinates of the next bend node based on (x1, y1, z1) and the predetermined extension direction is as follows:

[0081] L1=|N start ·a|+R (1)

[0082] L2=|N start ·b|+R (2)

[0083] Where L1 is the length extended along the unit vector a; L2 is the length extended along the unit vector b; N start For N start (x1, y1, z1) represents the coordinates of the starting point; a is the normal unit vector of the first wall; b is the normal unit vector of the second wall; R is the minimum bending radius of the cable; M1 is the coordinates of the next bend node;

[0084] M1 relative to N is calculated using formulas (1) and (2). start The relative positions of (x1, y1, z1) are determined, and the coordinates of the remaining directions are kept unchanged, so that the coordinate values ​​of the three points of M1 can be calculated.

[0085] In a specific embodiment, the coordinates of the next extension point M2 are obtained based on the coordinates of M1. M2 extends in a straight line relative to M1, meaning there is only a relative distance in the direction of the normal unit vector b of the second wall. Taking any point Q1 on the plane containing the second wall, the distance between M1 and Q1 in the direction of the unit vector b, minus the bending radius of the cable, gives the extension length. The formula for calculating the coordinates of the next extension point based on the coordinates of the bending node is as follows:

[0086] |M1-M2|=|(M1-Q1)·b|-R (3)

[0087] Where M1 is the coordinate of the next bend node; Q1 is any point on the second wall; b is the normal unit vector of the second wall; and R is the minimum bending radius of the cable.

[0088] The coordinates of M2 are calculated using the above formula. Steps S102 to S103 are repeated to calculate other nodes until the endpoint is reached.

[0089] In one specific embodiment, the termination point can be set by the user. Those skilled in the art can select the termination wall according to the wiring space required for routing, and specify any point in the termination wall as the termination node.

[0090] Step S4: Calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

[0091] In one specific embodiment, all nodes are flexibly connected sequentially from the starting node to the ending node using a connector based on the coordinates of each node; specifically, the starting node is used as the starting connector head position, extending to the connector ending node N. end The coordinates of each node are calculated, and then each node is flexibly connected in the order of extension to obtain the cable layout path. Furthermore, the simplified model diagram can extract the internal wiring space and nodes with minimal resources, and simplify and rationalize the path to the greatest extent.

[0092] In one specific embodiment, after obtaining the cable layout path, the method further includes: determining whether the cable layout path is the optimal path;

[0093] If so, then directly output the cable layout path;

[0094] If not, then re-specify the starting wall or modify the wiring wall order, and re-output the cable layout path.

[0095] The solution in this embodiment simplifies the server's internal structure diagram to obtain a simplified internal structure diagram. Then, using the extension method described in this embodiment, the extension is calculated according to the shortest path and a predetermined extension direction to achieve automatic point placement. Finally, a complete cable layout path is formed by sequentially connecting the points. Furthermore, after obtaining the cable layout path, it can be determined whether the cable layout path is the optimal path. If it is not the optimal path, and the layout line has excessively long cable lengths, and if it is necessary to compare different cabling schemes, then it is only necessary to redefine the wall layout or change the wall layout order and output a new cable layout path.

[0096] Example 2

[0097] Corresponding to the above embodiments, this application provides an automated cable layout system for use in server internal cabling, such as... Figure 5 As shown, the system includes:

[0098] A simplification module is used to obtain an initial diagram of the server's internal structure and simplify the initial diagram to obtain a simplified diagram of the internal structure.

[0099] The wall setting module is used to specify the starting surface in the simplified internal structure diagram as the first wall surface, and to select the extension walls in sequence according to the wiring wall surface order;

[0100] The extension module is used to designate any point in the first wall as the starting node, and extend sequentially to the extension wall in combination with the starting node and a predetermined extension direction until it extends to the termination node in the termination wall.

[0101] The connection module is used to calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

[0102] In one specific embodiment, the simplification module is specifically used to obtain the initial diagram of the internal structure and to simplify the initial diagram of the internal structure using the maximum rectangle envelope method to obtain a simplified diagram of the internal structure;

[0103] The simplified diagram of the internal structure is placed in the system's absolute coordinate system.

[0104] In one specific embodiment, the wall setting module specifically includes a specifying module and a calculation module;

[0105] The designated module is used to execute step S101, which specifies any point in the first wall as the starting node and obtains the coordinates of the starting node;

[0106] The calculation module is used to perform steps S102 to S104 to calculate the coordinates of the next bending node based on the coordinates of the starting node and the predetermined extension direction; calculate the coordinates of the next extension node based on the coordinates of the bending node; take the extension node as the new starting node, and repeat steps S102 to S103 to calculate other nodes until the extension reaches the termination node.

[0107] The predetermined extension direction is determined by the normal unit vector of the first wall and the normal unit vector of the second wall that extends sequentially; and the extension node extends in a straight line relative to the starting node.

[0108] In a specific embodiment, the formula for calculating the coordinates of the next bend node based on the coordinates of the starting node and the predetermined extension direction is as follows:

[0109] L1=|N start ·a|+R (1)

[0110] L2=|N start ·b|+R (2)

[0111] Where L1 is the length extended along the unit vector a; L2 is the length extended along the unit vector b; N start For N start (x1, y1, z1) represents the coordinates of the starting point; a is the normal unit vector of the first wall; b is the normal unit vector of the second wall; R is the minimum bending radius of the cable; M1 is the coordinates of the next bend node;

[0112] M1 relative to N is calculated using formulas (1) and (2). start Given the relative position of (x1, y1, z1), and keeping the remaining directional coordinates unchanged, calculate the coordinates of M1.

[0113] In one specific embodiment, the formula for calculating the coordinates of the next extension node based on the coordinates of the bending node is as follows:

[0114] |M1-M2|=|(M1-Q1)·b|-R (3)

[0115] Where M1 is the coordinate of the next bend node; Q1 is any point on the second wall; b is the normal unit vector of the second wall; and R is the minimum bending radius of the cable.

[0116] In one specific embodiment, the system further includes a custom module for customizing the position of the termination node; the connection module is specifically used to flexibly connect all nodes from the starting node to the termination node sequentially according to the coordinates of each node through a connector.

[0117] In one specific embodiment, the system further includes a layout module, which is used to determine whether the cable layout path is the optimal path; if so, the cable layout path is directly output; if not, the starting wall is re-specified or the wiring wall order is modified, and the cable layout path is re-output.

[0118] Specific limitations regarding the automated cable layout system can be found in the limitations of the automated cable layout method described above, and will not be repeated here. Each module in the aforementioned automated cable layout system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0119] Example 3

[0120] An electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps:

[0121] Step 201: Obtain an initial diagram of the server's internal structure, and simplify the initial diagram to obtain a simplified diagram of the internal structure;

[0122] Step 202: Designate the starting surface in the simplified internal structure diagram as the first wall surface, and select the extension walls in sequence according to the wiring wall surface order;

[0123] Step 203: Designate any point in the first wall as the starting node, and extend it sequentially to the extension wall in combination with the starting node and the predetermined extension direction until it reaches the termination node in the termination wall.

[0124] Step 204: Calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

[0125] In a specific embodiment, the process of simplifying the initial internal structure diagram of the server in step 201 to obtain a simplified internal structure diagram specifically includes: obtaining the initial internal structure diagram and simplifying the initial internal structure diagram using the maximum rectangle envelope method to obtain a simplified internal structure diagram;

[0126] The simplified diagram of the internal structure is placed in the system's absolute coordinate system.

[0127] In one specific embodiment, step 203 specifically includes,

[0128] S101: Specify any point in the first wall as the starting node, and obtain the coordinates of the starting node;

[0129] S102: Calculate the coordinates of the next bending node based on the coordinates of the starting node and the predetermined extension direction;

[0130] S103: Calculate the coordinates of the next extension node based on the coordinates of the bending node;

[0131] S104: Take the extended node as the new starting node, and repeat steps S102 to S103 to calculate other nodes until the extension reaches the termination node.

[0132] The predetermined extension direction is determined by the normal unit vector of the first wall and the normal unit vector of the sequentially extending second wall.

[0133] The extension node extends in a straight line relative to the starting node.

[0134] In a specific embodiment, the coordinates of the next bending node are calculated in step S102 based on the coordinates of the starting node and the predetermined extension direction, using the following formula:

[0135] L1=|N start ·a|+R (1)

[0136] L2=|N start ·b|+R (2)

[0137] Where L1 is the length extended along the unit vector a; L2 is the length extended along the unit vector b; N start For N start(x1, y1, z1) represents the coordinates of the starting point; a is the normal unit vector of the first wall; b is the normal unit vector of the second wall; R is the minimum bending radius of the cable; M1 is the coordinates of the next bend node;

[0138] M1 relative to N is calculated using formulas (1) and (2). start Given the relative position of (x1, y1, z1), and keeping the remaining directional coordinates unchanged, calculate the coordinates of M1.

[0139] In a specific embodiment, the calculation formula for calculating the coordinates of the next extension node based on the coordinates of the bending node in step S103 is as follows:

[0140] |M1-M2|=|(M1-Q1)·b|-R (3)

[0141] Where M1 is the coordinate of the next bend node; Q1 is any point on the second wall; b is the normal unit vector of the second wall; and R is the minimum bending radius of the cable.

[0142] In one specific embodiment, the following steps are also included:

[0143] Customize the location of the termination node;

[0144] The connector flexibly connects all nodes sequentially from the starting node to the ending node according to the coordinates of each node.

[0145] In one specific embodiment, after obtaining the cable layout path, the method further includes:

[0146] Determine whether the cable layout path is the optimal path;

[0147] If so, then directly output the cable layout path;

[0148] If not, then re-specify the starting wall or modify the wiring wall order, and re-output the cable layout path.

[0149] In one embodiment, an electronic device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6As shown, this electronic device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores the coordinate data of each node. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements an automated cable layout method.

[0150] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0151] Example 4

[0152] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0153] Step 301: Obtain an initial diagram of the server's internal structure, and simplify the initial diagram to obtain a simplified diagram of the internal structure;

[0154] Step 302: Designate the starting surface in the simplified internal structure diagram as the first wall surface, and select the extension walls in sequence according to the wiring wall surface order;

[0155] Step 303: Designate any point in the first wall as the starting node, and extend it sequentially to the extension wall in combination with the starting node and the predetermined extension direction until it reaches the termination node in the termination wall.

[0156] Step 304: Calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

[0157] In a specific embodiment, the process of simplifying the initial internal structure diagram of the server in step 301 to obtain a simplified internal structure diagram specifically includes: obtaining the initial internal structure diagram and simplifying the initial internal structure diagram using the maximum rectangle envelope method to obtain a simplified internal structure diagram;

[0158] The simplified diagram of the internal structure is placed in the system's absolute coordinate system.

[0159] In one specific embodiment, step 303 specifically includes,

[0160] S101: Specify any point in the first wall as the starting node, and obtain the coordinates of the starting node;

[0161] S102: Calculate the coordinates of the next bending node based on the coordinates of the starting node and the predetermined extension direction;

[0162] S103: Calculate the coordinates of the next extension node based on the coordinates of the bending node;

[0163] S104: Take the extended node as the new starting node, and repeat steps S102 to S103 to calculate other nodes until the extension reaches the termination node.

[0164] The predetermined extension direction is determined by the normal unit vector of the first wall and the normal unit vector of the sequentially extending second wall.

[0165] The extension node extends in a straight line relative to the starting node.

[0166] In a specific embodiment, the coordinates of the next bending node are calculated in step S102 based on the coordinates of the starting node and the predetermined extension direction, using the following formula:

[0167] L1=|N start ·a|+R (1)

[0168] L2=|N start ·b|+R (2)

[0169] Where L1 is the length extended along the unit vector a; L2 is the length extended along the unit vector b; N start For N start (x1, y1, z1) represents the coordinates of the starting point; a is the normal unit vector of the first wall; b is the normal unit vector of the second wall; R is the minimum bending radius of the cable; M1 is the coordinates of the next bend node;

[0170] M1 relative to N is calculated using formulas (1) and (2). start Given the relative position of (x1, y1, z1), and keeping the remaining directional coordinates unchanged, calculate the coordinates of M1.

[0171] In a specific embodiment, the calculation formula for calculating the coordinates of the next extension node based on the coordinates of the bending node in step S103 is as follows:

[0172] |M1-M2|=|(M1-Q1)·b|-R (3)

[0173] Where M1 is the coordinate of the next bend node; Q1 is any point on the second wall; b is the normal unit vector of the second wall; and R is the minimum bending radius of the cable.

[0174] In one specific embodiment, the following steps are also included:

[0175] Customize the location of the termination node;

[0176] The connector flexibly connects all nodes sequentially from the starting node to the ending node according to the coordinates of each node.

[0177] In one specific embodiment, after obtaining the cable layout path, the method further includes:

[0178] Determine whether the cable layout path is the optimal path;

[0179] If so, then directly output the cable layout path;

[0180] If not, then re-specify the starting wall or modify the wiring wall order, and re-output the cable layout path.

[0181] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0182] Although preferred embodiments have been described in this application, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of this application.

[0183] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. An automated cable layout method, applied to internal server cabling, characterized in that, The method includes: Obtaining an initial diagram of the server's internal structure and simplifying the initial diagram to obtain a simplified diagram includes: obtaining the initial diagram of the internal structure and simplifying the initial diagram of the internal structure using the maximum rectangle envelope method to obtain a simplified diagram of the internal structure, such that each structural component occupies the minimum rectangular space. The simplified internal structure diagram is placed in the system's absolute coordinate system. The maximum length, width, and height of the complex components in the structure relative to the coordinate system are the simplified rectangular envelope size. The simplified model can extract internal wiring space and nodes with minimal resources. The starting surface in the simplified internal structure diagram is designated as the first wall surface, and the extension walls are selected sequentially according to the wiring wall surface order; Designating any point in the first wall as the starting node, and extending sequentially along the extending wall in conjunction with the starting node and a predetermined extension direction until reaching the ending node in the ending wall, specifically including: S101: Designate any point in the first wall surface as the starting node and obtain the coordinates of the starting node; S102: Calculate the coordinates of the next bending node based on the coordinates of the starting node and the predetermined extension direction, using the following formula: (1) (2) in, The length is the extension along the direction of the unit vector a; The length is the extension along the direction of the unit vector b; for The coordinates of the starting point are represented; a is the normal unit vector of the first wall; b is the normal unit vector of the second wall; R is the minimum bending radius of the cable. The coordinates of the next bend node are obtained by formulas (1) and (2). Compared to The relative position is calculated by keeping the remaining direction coordinates unchanged. The coordinates; the second wall is the extended wall selected sequentially according to the wiring order after specifying the coordinate position of the cable starting point in the first wall; S103: Calculate the coordinates of the next extension node based on the coordinates of the bending node; S104: Take the extension node as the new starting node, and repeat steps S102~S103 to calculate other nodes until the extension reaches the termination node. Calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

2. The automated cable layout method according to claim 1, characterized in that, in, The predetermined extension direction is determined by the normal unit vector of the first wall and the normal unit vector of the second wall that extends sequentially. The extension node extends in a straight line relative to the starting node.

3. The automated cable layout method according to claim 2, characterized in that, The formula for calculating the coordinates of the next extension node based on the coordinates of the bending node is as follows: (3) in, The coordinates of the next bend node; Let be any point on the second wall; b is the normal unit vector of the second wall; R is the minimum bending radius of the cable.

4. The automated cable layout method according to claim 1 or 2, characterized in that, The method further includes: Customize the location of the termination node; The connector flexibly connects all nodes sequentially from the starting node to the ending node according to the coordinates of each node.

5. The automated cable layout method according to claim 1 or 2, characterized in that, After obtaining the cable layout path, the method further includes: Determine whether the cable layout path is the optimal path; If so, then directly output the cable layout path; If not, then re-specify the starting wall or modify the wiring wall order, and re-output the cable layout path.

6. An automated cable layout system based on the method of any one of claims 1 to 5, characterized in that, The system includes: A simplification module is used to obtain an initial diagram of the server's internal structure and simplify the initial diagram to obtain a simplified diagram of the internal structure. The wall setting module is used to specify the starting surface in the simplified internal structure diagram as the first wall surface, and to select the extension walls in sequence according to the wiring wall surface order; The extension module is used to designate any point in the first wall as the starting node, and extend sequentially to the extension wall in combination with the starting node and a predetermined extension direction until it extends to the termination node in the termination wall. The connection module is used to calculate the coordinates of each node and flexibly connect all nodes in sequence to obtain the cable layout path.

7. 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, it implements the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.