A method for automatically generating strong and weak current wiring design schemes
By automatically generating strong and weak current wiring design solutions, the problem of time-consuming and professional knowledge is solved in traditional designs, and a fast and standardized wiring design is achieved, suitable for non-professional personnel to operate, shortening the decoration construction cycle.
Patent Information
- Application Number
- CN202210284208.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-03-22
AI Technical Summary
Traditional strong and weak current wiring design requires a lot of time, affecting the decoration construction cycle, and requires professional knowledge, making it difficult to take into account both the apartment structure and construction specifications.
The method of automatically generating strong and weak current wiring design schemes is adopted, including obtaining component information, marshaling loops, sorting components, connecting components, using density clustering algorithms to obtain the shortest wiring path, building the main path, and generating a complete strong and weak current wiring design scheme.
It greatly improves the design efficiency of strong and weak current wiring, standardizes strong power wiring, shortens the decoration construction cycle, and is suitable for non-professional personnel to operate.
Smart Images

Figure CN114462176B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of interior decoration, and in particular to a method for automatically generating a strong and weak current wiring design scheme. Background Art
[0002] In the whole process of interior decoration, water and electricity engineering is one of the most important and complex projects in the decoration process, which is directly related to the safety of the house and family life. And strong and weak current wiring is a key link in water and electricity engineering, which affects the safety and convenience of subsequent electricity use.
[0003] Traditional high-voltage wiring requires professional electrical and wiring knowledge to meet the standards for high-voltage and low-voltage wiring to ensure the safety of electricity use; at the same time, it is necessary to take into account the structure of the house to ensure the convenience of electricity use for users; it is necessary to take into account the on-site construction conditions and not affect the layout and construction of high-voltage and low-voltage pipelines.
[0004] The design of strong and weak current wiring requires comprehensive consideration of many aspects, which means that the design process of strong and weak current wiring for a house type needs to take several days or even a week to complete the wiring design, which is not only time-consuming and labor-intensive, but also affects the entire decoration construction cycle. Summary of the invention
[0005] The purpose of the present invention is to propose a method for automatically generating a strong and weak current wiring design scheme, taking into account the structural characteristics of the house type and the construction specifications, and intelligently generating a strong current wiring design scheme for the entire house type.
[0006] To achieve this purpose, the present invention adopts the following technical solution: a method for automatically generating a strong and weak current wiring design scheme, comprising the following steps:
[0007] Get component information: Get and check the installation information of all the strong and weak electrical components in the house;
[0008] Get power box information: Get the location information of the strong and weak power boxes;
[0009] Conduct circuit grouping for components: conduct circuit grouping for strong current components and conduct circuit grouping for weak current components;
[0010] Sort the strong electric components: Sort the strong electric components in the strong electric circuit group;
[0011] Connecting components: Connect components in the same circuit to build strong and weak current branches;
[0012] Obtain the shortest wiring path: among the strong and weak electric branches, select the starting point of the strong and weak electric branches, use the density clustering algorithm to obtain the cluster center point, and route the wires based on the cluster center point;
[0013] Construct the main route of strong and weak electricity: calculate and obtain the shortest path between the strong and weak electricity branch and the electric box to form the main route of strong and weak electricity;
[0014] Construct a wiring design plan: connect the main circuit and branch circuit connected to the electrical box to form a complete strong and weak current wiring design plan.
[0015] Preferably, in the step of obtaining component information, the types and locations of strong and weak current components in the whole house are obtained, divided into two categories: strong current and weak current, and the locations of the components are checked for abnormalities and compliance with wiring specifications.
[0016] Preferably, in the step of grouping the components into circuits, the high-voltage components are grouped into circuits according to the circuit settings, and each low-voltage component is grouped into circuits as a separate circuit.
[0017] Preferably, in the step of sorting the high-voltage components, after loop grouping, the high-voltage components in the grouping are sorted in a counterclockwise direction according to the positions of the components on the outline of the room where the components are located.
[0018] Preferably, in the step of connecting elements, the connecting step comprises:
[0019] Project the two component position points onto the floor of the house as the starting point and the ending point;
[0020] Use heuristic algorithms to find the shortest path between two points in the whole house;
[0021] The actual position of connecting two elements constitutes the final connection of the two elements;
[0022] The part that completes the connection between strong and weak current components serves as the strong and weak current branches of the circuit.
[0023] Preferably, in the step of obtaining the shortest wiring path, the density clustering algorithm includes the following steps:
[0024] Step a: Mark all branch starting points as unprocessed;
[0025] Step b: Select a branch starting point p in an unprocessed state and mark it as a processed state;
[0026] Step c: Find all branch starting points within the domain radius r from the branch starting point p. If the number of branch starting points included in the range is less than the minimum number of points in the domain min, they are marked as noise points; if the number of included points is greater than or equal to the minimum number of points in the domain min, the included points form a branch cluster C, and the branch cluster C is added to the branch to-be-processed set N;
[0027] Step d: For the unprocessed branch starting point q in the branch processing set N, find all the branch starting points within the domain radius r of this branch starting point q. If the number of branch starting points included in the range is less than the minimum number of domain points min, add it to the branch cluster C; if the number is greater than or equal to the minimum number of domain points min, add it to the branch processing set N;
[0028] Step e: repeat step d to determine whether there are any unprocessed objects in the branch to-be-processed set N, until there are no objects in the branch to-be-processed set N;
[0029] Step f: Repeat steps a to d until all branch starting points belong to branch clusters or noise points.
[0030] Preferably, in the step of constructing the main road of strong and weak electricity, the obtained branch road clustering center points are specifically calculated to obtain the shortest path between the clustering center points of the strong and weak electricity branches and the electric box as the main road of strong and weak electricity;
[0031] Check the position of the strong-current main road and the weak-current main road. If the distance between the strong-current main road and the weak-current main road is less than the preset value, adjust the strong-current main road and the weak-current main road to offset so that the distance between them is greater than the preset value.
[0032] Preferably, the method further includes the step of reducing the crossing of loops, specifically, sorting the loops in a counterclockwise order according to the positions of the starting points of the loop branches on the outline of the whole house, so as to reduce the crossing of the loops.
[0033] The beneficial effects of a technical solution of the present invention are as follows: it can take into account the structural characteristics of the house type and the construction specifications, intelligently generate the high-voltage wiring design plan for the whole house type, greatly improve the design efficiency of the high-voltage and low-voltage wiring, standardize the high-voltage wiring, better guide the on-site high-voltage and low-voltage wiring construction, and shorten the decoration construction period. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a flow chart of an embodiment of the present invention;
[0035] Figure 2 It is a connection diagram of two components of an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.
[0037] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0038] In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0039] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0040] See also Figure 1 and Figure 2 As shown, a method for automatically generating a strong and weak current wiring design scheme comprises the following steps:
[0041] Get component information: Get and check the installation information of all the strong and weak electrical components in the house;
[0042] Get power box information: Get the location information of the strong and weak power boxes;
[0043] Conduct circuit grouping for components: conduct circuit grouping for strong current components and conduct circuit grouping for weak current components;
[0044] Sort the strong electric components: Sort the strong electric components in the strong electric circuit group;
[0045] Connecting components: Connect components in the same circuit to build strong and weak current branches;
[0046] Obtain the shortest wiring path: among the strong and weak electric branches, select the starting point of the strong and weak electric branches, use the density clustering algorithm to obtain the cluster center point, and route the wires based on the cluster center point;
[0047] Construct the main route of strong and weak electricity: calculate and obtain the shortest path between the strong and weak electricity branch and the electric box to form the main route of strong and weak electricity;
[0048] Construct a wiring design plan: connect the main circuit and branch circuit connected to the electrical box to form a complete strong and weak current wiring design plan.
[0049] Without requiring too much expertise in high-voltage electricity, the system takes into account the structural characteristics of the house and construction specifications, and intelligently generates a high-voltage wiring design plan for the entire house, greatly improving the efficiency of high-voltage and low-voltage wiring design, standardizing high-voltage wiring, better guiding on-site high-voltage and low-voltage wiring construction, and shortening the decoration construction period.
[0050] Arrange electrical components, power and weak current boxes, power and weak current sockets, switches and lamp positions throughout the house, then set up lamp groups. For multiple lamps connected in series, multiple lamps are bound in series into a group and controlled by a switch, which is common in downlight groups. According to the previously set lamp groups, set switches and bind the control relationship between lamp positions and switches. Then set loops, set the number of loops, and add the arranged electrical components to the corresponding loops. Finally, automatically generate power and weak current wiring design plans based on the set loop information.
[0051] Specifically, in the step of obtaining component information, the types and locations of strong and weak current components in the whole house are obtained, divided into two categories: strong current and weak current, and the locations of the components are checked for abnormalities and compliance with wiring specifications.
[0052] Check whether there is any abnormality in the position of components, specifically check whether the distribution of strong and weak current components conforms to the actual outline of the house and whether it conforms to the specifications for strong and weak current wiring construction.
[0053] Get the location of the strong and weak electricity boxes as the main outlet for strong and weak electricity wiring. If the locations of the strong and weak electricity boxes overlap in two dimensions, they need to be offset to avoid dense overlap of strong and weak electricity outlet pipelines, so that the strong and weak electricity outlet pipelines meet construction safety requirements.
[0054] Preferably, in the step of grouping the components into circuits, the high-voltage components are grouped into circuits according to the circuit settings, and each low-voltage component is grouped into circuits as a separate circuit.
[0055] In the step of sorting the strong electric components, after the loop grouping is performed, the strong electric components in the grouping are sorted in a counterclockwise direction according to the positions of the components on the outline formed by the rooms where the components are located.
[0056] In the step of connecting elements, the connecting step includes:
[0057] Project the two component position points onto the floor of the house as the starting point and the ending point;
[0058] Use heuristic algorithms to find the shortest path between two points in the whole house;
[0059] The actual position of connecting two elements constitutes the final connection of the two elements;
[0060] The part that completes the connection between strong and weak current components serves as the strong and weak current branches of the circuit.
[0061] After the components of the circuit are arranged and connected in pairs, because they have not yet been finally connected to the electrical box and only constitute part of the complete circuit, we call this part the branch of the circuit. Through this step, all the strong and weak current branches are constructed.
[0062] In the step of obtaining the shortest wiring path, the density clustering algorithm includes the following steps:
[0063] Step a: Mark all branch starting points as unprocessed;
[0064] Step b: Select a branch starting point p in an unprocessed state and mark it as a processed state;
[0065] Step c: Find all branch starting points within the domain radius r from the branch starting point p. If the number of branch starting points included in the range is less than the minimum number of points in the domain min, they are marked as noise points; if the number of included points is greater than or equal to the minimum number of points in the domain min, the included points form a branch cluster C, and the branch cluster C is added to the branch to-be-processed set N;
[0066] Step d: For the unprocessed branch starting point q in the branch processing set N, find all the branch starting points within the domain radius r of this branch starting point q. If the number of branch starting points included in the range is less than the minimum number of domain points min, add it to the branch cluster C; if the number is greater than or equal to the minimum number of domain points min, add it to the branch processing set N;
[0067] Step e: repeat step d to determine whether there are any unprocessed objects in the branch to-be-processed set N, until there are no objects in the branch to-be-processed set N;
[0068] Step f: Repeat steps a to d until all branch starting points belong to branch clusters or noise points.
[0069] Among all the strong and weak current branches obtained, the starting points of the strong and weak current branches are selected, and density clustering is performed to obtain the cluster center points of these sample points; the density clustering here is to solve the shortest distance from a point to each branch, so as to achieve the shortest wiring path and the least consumption of pipes; in the branch density clustering algorithm, the input data is: Points: the starting point of all strong and weak current branches; r: neighborhood radius; min: the minimum number of points in the field; the output result is: density-based branch cluster set.
[0070] Specifically, in the step of constructing the main road of strong and weak electricity, the obtained branch road cluster center points are specifically calculated to obtain the shortest path between the cluster center points of the strong and weak electricity branches and the electric box as the main road of strong and weak electricity;
[0071] Check the position of the strong-current main road and the weak-current main road. If the distance between the strong-current main road and the weak-current main road is less than the preset value, adjust the strong-current main road and the weak-current main road to offset so that the distance between them is greater than the preset value.
[0072] In the step of obtaining the shortest wiring path, the cluster center of the branch is obtained, and the shortest path between it and the electrical box is obtained as the main road of strong and weak electricity. It is necessary to check the location of the strong and weak main roads. If the distance between the strong and weak main roads is too close, it is necessary to adjust. If the distance between the strong and weak main roads is less than 300mm, the strong and weak main roads are offset so that the interval is greater than 300mm. The corresponding distance is offset according to the number of loops. For example, if there are 6 loops with a spacing of linespace = 30mm, the main roads need to be offset by i*linespace distances, i = 0, 1, 2, 3, 4, 5, respectively, to obtain a set of main road wiring distances.
[0073] Preferably, the method further includes the step of reducing the crossing of loops, specifically, sorting the loops in a counterclockwise order according to the positions of the starting points of the loop branches on the outline of the whole house to reduce the crossing of the loops.
[0074] In the description of this specification, the description with reference to the terms "embodiment", "example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0075] The technical principle of the present invention is described above in conjunction with specific embodiments. These descriptions are only for explaining the principle of the present invention and cannot be interpreted as limiting the scope of protection of the present invention in any way. Based on the explanations herein, those skilled in the art can associate other specific implementations of the present invention without paying creative labor, and these methods will fall within the scope of protection of the present invention.
Claims
1. A method for automatically generating a strong and weak current wiring design scheme, characterized in that: The steps include: Get component information: Get and check the installation information of all the strong and weak electrical components in the house; Get power box information: Get the location information of the strong and weak power boxes; Conduct circuit grouping for components: conduct circuit grouping for strong current components and conduct circuit grouping for weak current components; Sort the strong electric components: Sort the strong electric components in the strong electric circuit group; Connecting components: Connect components in the same circuit to build strong and weak current branches; Obtain the shortest wiring path: among the strong and weak electric branches, select the starting point of the strong and weak electric branches, use the density clustering algorithm to obtain the cluster center point, and route the wires based on the cluster center point; Construct the main route of strong and weak electricity: calculate and obtain the shortest path between the strong and weak electricity branch and the electric box to form the main route of strong and weak electricity; Constructing a wiring design plan: Connect the main circuit and branch circuit connected to the electrical box to form a complete wiring design plan for strong and weak electricity; In the step of connecting elements, the connecting step includes: Project the two component position points onto the floor of the house as the starting point and the ending point; Use heuristic algorithms to find the shortest path between two points in the whole house; The actual position of connecting two elements constitutes the final connection of the two elements; The part that completes the connection of strong and weak current components serves as the strong and weak current branch of the circuit; In the step of obtaining the shortest wiring path, the density clustering algorithm includes the following steps: Step a: Mark all branch starting points as unprocessed; Step b: Select a branch starting point p in an unprocessed state and mark it as a processed state; Step c: Find all branch starting points within the domain radius r from the branch starting point p. If the number of branch starting points included in the range is less than the minimum number of points in the domain min, they are marked as noise points; if the number of included points is greater than or equal to the minimum number of points in the domain min, the included points form a branch cluster C, and the branch cluster C is added to the branch to-be-processed set N; Step d: For the unprocessed branch starting point q in the branch processing set N, find all the branch starting points within the domain radius r of this branch starting point q. If the number of branch starting points included in the range is less than the minimum number of domain points min, add it to the branch cluster C; if the number is greater than or equal to the minimum number of domain points min, add it to the branch processing set N; Step e: repeat step d to determine whether there are any unprocessed objects in the branch to-be-processed set N, until there are no objects in the branch to-be-processed set N; Step f: Repeat steps a to d until all branch starting points belong to branch clusters or noise points; In the step of constructing the main road of strong and weak electricity, specifically, the obtained branch road clustering center points are calculated to obtain the shortest path between the clustering center points of the strong and weak electricity branches and the electric box as the main road of strong and weak electricity; Check the position of the strong-current main road and the weak-current main road. If the distance between the strong-current main road and the weak-current main road is less than the preset value, adjust the strong-current main road and the weak-current main road to offset so that the distance between them is greater than the preset value.
2. The method for automatically generating a strong and weak current wiring design scheme according to claim 1, characterized in that: In the step of obtaining component information, the types and locations of strong and weak current components in the whole house are obtained, divided into two categories: strong current and weak current, and the locations of the components are checked for abnormalities and whether they comply with wiring specifications.
3. The method for automatically generating a strong and weak current wiring design scheme according to claim 1, characterized in that: In the step of grouping the components into loops, the strong current components are grouped into loops according to the loop settings, and each weak current component is grouped into loops as a separate loop.
4. The method for automatically generating a strong and weak current wiring design scheme according to claim 1, characterized in that: In the step of sorting the strong electric components, after the loop grouping is performed, the strong electric components in the grouping are sorted in a counterclockwise direction according to the positions of the components on the outline formed by the rooms where the components are located.
5. The method for automatically generating a strong and weak current wiring design scheme according to claim 1, characterized in that: The method also includes the step of reducing the crossing of loops, specifically, sorting the loops in a counterclockwise order according to the positions of the starting points of the loop branches on the outline of the whole house to reduce the crossing of the loops.
