A smart home wiring method and device, electronic equipment and storage medium

By using smart home wiring methods and algorithms to plan the optimal wiring path, the problems of low efficiency, high cost and unreasonable layout in existing technologies are solved. This achieves an automated and rational wiring process, improving construction efficiency and reducing costs.

CN115495821BActive Publication Date: 2026-03-17GUANGDONG SANWEIJIA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing smart home wiring methods are inefficient, costly, and poorly laid out, leading to construction difficulties.

Method used

By obtaining the ceiling-based projection coordinates of smart home devices, and utilizing the Manhattan distance principle and minimum spanning tree algorithm, the system automatically plans the optimal wiring path, avoids pipe crossings, and generates reasonable wiring results.

Benefits of technology

It enables automated wiring, saves manpower, improves efficiency, reduces costs, and ensures the smooth progress of construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115495821B_ABST
    Figure CN115495821B_ABST
Patent Text Reader

Abstract

This application provides a smart home wiring method, device, electronic device, and storage medium, relating to the field of smart home technology. The method includes obtaining the ceiling-based projection coordinates of a smart home unit; obtaining the optimal wiring path for the loops based on the projection coordinates; projecting the coordinates of a reference smart home unit onto the ceiling to obtain projection points of a preset number of reference smart home units; obtaining an intersection-avoiding path based on the projection points and the optimal wiring path for the loops; and connecting the coordinates of the points with the projection coordinates based on the intersection-avoiding path to obtain wiring path data. This method enables automatic wiring, avoids pipe crossings, produces reasonable wiring results, saves manpower, is highly efficient and low-cost, and solves the problems of low efficiency, high cost, and unreasonable layout affecting construction in existing methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and more specifically, to a smart home wiring method, device, electronic device, and storage medium. Background Technology

[0002] Smart home is a residential platform that integrates furniture related to home life using comprehensive wiring technology, network communication technology, security technology, automatic control technology, and audio-visual technology. It builds an efficient management system for residential facilities and daily household affairs, improves home security, convenience, comfort, and aesthetics, and achieves an environmentally friendly and energy-saving living environment.

[0003] However, existing smart home wiring methods are usually designed manually, which is inefficient and costly. Existing wiring algorithms, such as those for strong and weak current wiring, simply connect the smart host to smart devices based on space or loops. The final result has problems such as a large number of pipe intersections, unreasonable wiring (e.g., nearby devices are not connected while devices that are too far apart are connected), and inability to implement construction. Summary of the Invention

[0004] The purpose of this application is to provide a smart home wiring method, device, electronic device, and storage medium that can realize automatic wiring, avoid pipeline crossings, produce reasonable wiring results, save manpower, and is highly efficient and low-cost. It solves the problems of low efficiency, high cost, and unreasonable layout of existing methods that affect the implementation of construction.

[0005] This application provides a smart home wiring method, the method comprising:

[0006] Obtain ceiling-based projection coordinates for smart home devices;

[0007] Based on the projected coordinates, the optimal wiring path for the loop is obtained;

[0008] Project the coordinates of the reference smart home points onto the ceiling to obtain the projection points of the reference smart home with a preset number of loops.

[0009] A cross-avoidance path is obtained based on the projection point and the optimal wiring path of the loop;

[0010] Based on the intersection avoidance path, the point coordinates are connected with the projected coordinates to obtain the wiring path data.

[0011] In the above implementation process, smart home devices are projected onto the ceiling to obtain the optimal wiring path based on the ceiling. Then, based on the projection point and the optimal wiring path, a cross-crossing avoidance path is obtained. This path is then connected to the home devices to obtain wiring path data. This process can achieve automatic wiring, avoid pipe crossings, produce reasonable connection results, save manpower, and is highly efficient and low-cost. It solves the problems of low efficiency, high cost, and unreasonable layout that affect the implementation of existing methods.

[0012] Furthermore, obtaining the ceiling-based projection coordinates of the smart home includes:

[0013] Based on spatial loop information, obtain the location coordinates of smart home devices;

[0014] The coordinates of the points are projected onto the ceiling to obtain ceiling-based projected coordinates.

[0015] In the above implementation process, the location coordinates of smart home points can be collected based on spatial loop information, and then the location coordinates can be projected onto the ceiling to obtain the projection coordinates, so that subsequent wiring and cabling can be carried out based on the projection coordinates.

[0016] Further, obtaining the optimal routing path for the loop based on the projected coordinates includes:

[0017] Based on the projected coordinates, the optimal path is obtained;

[0018] By following the optimal path and connecting the wires based on the Manhattan distance principle, the optimal wiring path for a single space can be obtained.

[0019] Based on the single-space optimal wiring path, the nearest points between the two spaces in each loop are connected according to the Manhattan distance principle to obtain the loop optimal wiring path.

[0020] In the above implementation process, the optimal wiring path of each loop is obtained through the Manhattan distance principle, so that the wiring of home appliances in each loop is reasonable.

[0021] Further, obtaining the optimal path based on the projected coordinates includes:

[0022] Calculate the distance between each projected coordinate and the other projected coordinates based on the projected coordinates, and use the distance as a weight;

[0023] Based on the weights, the optimal path is obtained using the minimum spanning tree algorithm.

[0024] In the above implementation process, the weights are determined by the distance between the projected coordinates, and the minimum spanning tree algorithm is used to obtain the optimal path between the projected coordinates.

[0025] Furthermore, the step of projecting the coordinates of the reference smart home points onto the ceiling to obtain the projection points of the reference smart home with the number of loops includes:

[0026] The coordinates of the points of the benchmark smart home are projected onto the ceiling to obtain the ceiling projection points of the benchmark smart home.

[0027] The ceiling projection points are arrayed along the vertical direction of the reference smart home orientation, with the ceiling projection points as the center, to obtain a preset number of projection points for each loop.

[0028] In the above implementation process, the benchmark smart home can serve as the benchmark for the entire wiring and be arrayed based on its orientation, with the number of arrays being the preset number of loops.

[0029] Further, obtaining the cross-avoidance path based on the projection point and the optimal wiring path of the loop includes:

[0030] Manhattan connections are made between the connection points closest to the projection point in the optimal routing paths of all loops to obtain the routing paths;

[0031] The connecting paths are searched to obtain intersecting or overlapping paths;

[0032] If overlapping paths are on the same loop, they will be merged.

[0033] If the overlapping paths are not the same loop, then any overlapping path will be offset by a preset distance to obtain a path that avoids intersections.

[0034] In the above implementation process, by merging or offsetting, cross-connections or unreasonable connections between smart home devices are avoided, thus achieving the goal of avoiding cross-connections.

[0035] This application embodiment also provides a smart home wiring device, the device comprising:

[0036] The projection module is used to obtain the ceiling-based projection coordinates of smart home devices.

[0037] The loop optimal routing path module is used to obtain the loop optimal routing path based on the projected coordinates;

[0038] The projection point acquisition module is used to project the coordinates of the reference smart home points onto the ceiling to obtain the projection points of the reference smart home with a preset number of loops.

[0039] The cross-crossing path acquisition module is used to obtain the cross-crossing path based on the projection point and the optimal wiring path of the loop.

[0040] The wiring path acquisition module is used to connect the point coordinates with the projected coordinates based on the intersection avoidance path to obtain wiring path data.

[0041] In the above implementation process, smart home devices are projected onto the ceiling to obtain the optimal wiring path based on the ceiling. Then, based on the projection point and the optimal wiring path, a cross-crossing avoidance path is obtained. This path is then connected to the home devices to obtain wiring path data. This process can achieve automatic wiring, avoid pipe crossings, produce reasonable connection results, save manpower, and is highly efficient and low-cost. It solves the problems of low efficiency, high cost, and unreasonable layout that affect the implementation of existing methods.

[0042] Furthermore, the loop optimal wiring path module includes:

[0043] The optimal path acquisition module is used to obtain the optimal path based on the projected coordinates;

[0044] The single-space optimal wiring path module is used to perform wiring according to the optimal path and based on the Manhattan distance principle to obtain the single-space optimal wiring path.

[0045] The loop optimal routing path module is used to connect the nearest points between two spaces in each loop based on the Manhattan distance principle, according to the single-space optimal routing path, to obtain the loop optimal routing path.

[0046] In the above implementation process, the optimal wiring path of each loop is obtained through the Manhattan distance principle, so that the wiring of home appliances in each loop is reasonable.

[0047] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor runs the computer program to enable the electronic device to perform the smart home wiring method described in any one of the above-described embodiments.

[0048] This application also provides a readable storage medium storing computer program instructions, which, when read and executed by a processor, perform the smart home wiring method described above. Attached Figure Description

[0049] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0050] Figure 1 A flowchart illustrating a smart home wiring method provided in this application embodiment;

[0051] Figure 2 A projection flowchart provided for an embodiment of this application;

[0052] Figure 3 This is a projection diagram provided for an embodiment of this application;

[0053] Figure 4 A flowchart illustrating the process of obtaining the optimal routing path in a single space, as provided in an embodiment of this application.

[0054] Figure 5 A flowchart illustrating the optimal path acquisition process provided in this application embodiment;

[0055] Figure 6 A flowchart of the projection point array provided in the embodiments of this application;

[0056] Figure 7 A baseline smart home projection diagram provided for an embodiment of this application;

[0057] Figure 8 A flowchart for obtaining cross paths provided in an embodiment of this application;

[0058] Figure 9 This is a structural block diagram of the smart home wiring device provided in the embodiments of this application;

[0059] Figure 10 A structural block diagram of another smart home wiring device provided in an embodiment of this application.

[0060] icon:

[0061] 100 - Projection Module; 101 - Coordinate Acquisition Module; 102 - Projection Coordinate Acquisition Module; 200 - Loop Optimal Routing Path Module; 210 - Optimal Path Acquisition Module; 211 - Weight Calculation Module; 212 - Optimal Path Calculation Module; 220 - Single Space Optimal Routing Path Module; 230 - Loop Optimal Routing Path Acquisition Module; 300 - Projection Point Acquisition Module; 301 - Projection Point Module; 302 - Array Module; 400 - Cross-Avoidance Path Acquisition Module; 401 - Connection Path Acquisition Module; 402 - Retrieval Module; 403 - Merging Module; 404 - Offset Module; 500 - Routing Path Acquisition Module; Detailed Implementation

[0062] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0063] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0064] Example 1

[0065] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a smart home wiring method provided in an embodiment of this application. The method is applied to the automatic wiring of smart homes (home automation), and specifically includes the following steps:

[0066] Step S100: Obtain the ceiling-based projection coordinates of the smart home;

[0067] Step S200: Based on the projected coordinates, obtain the optimal wiring path for the loop;

[0068] Step S300: Project the coordinates of the reference smart home points onto the ceiling to obtain the projection points of the reference smart home with a preset number of loops.

[0069] Step S400: Obtain an intersection-avoiding path based on the projection point and the optimal wiring path of the loop;

[0070] Step S500: Based on the intersection avoidance path, connect the point coordinates with the projected coordinates to obtain wiring path data.

[0071] This method projects smart home devices onto the ceiling to obtain the optimal wiring path for the loop based on the ceiling. Then, based on the projection point and the optimal wiring path, it obtains a cross-crossing path and connects it to the home devices to obtain wiring path data. This process can achieve automatic wiring, avoid pipe crossings, produce reasonable connection results, save manpower, and is highly efficient and low-cost. It solves the problems of low efficiency, high cost, and unreasonable layout that affect the implementation of existing methods.

[0072] Among them, such as Figure 2 The diagram shown is a projection flowchart. Figure 3 The diagram shown is a projection schematic. Step S100 may specifically include the following steps:

[0073] Step S101: Based on spatial loop information, obtain the location coordinates of smart home devices;

[0074] Step S102: Project the coordinates of the points onto the ceiling to obtain ceiling-based projection coordinates.

[0075] Figure 3 The upper circle represents the projected coordinates of the point coordinates onto the ceiling, and the lower circle represents the point coordinates.

[0076] Based on spatial loop information data, the location coordinates of smart home devices can be collected by loop. By projecting the location coordinates of each space in each loop, ceiling-based projection coordinates can be obtained. Here, a loop refers to an electrical circuit. In a design scheme, different apartment layouts will be divided into one or more electrical circuits, and each electrical circuit has one or more rooms.

[0077] like Figure 4 The diagram shown is a flowchart for obtaining the optimal routing path in a single space. Step S200 may specifically include the following steps:

[0078] Step S210: Obtain the optimal path based on the projected coordinates;

[0079] Step S220: Follow the optimal path and connect the wires based on the Manhattan distance principle to obtain the optimal wiring path in a single space;

[0080] The Manhattan distance principle states that A(x1,y1)->B(x2,y2)=A(x1,y1)->O(x1,y2)->B(x2,y2), where point O is the intersection point of the line passing through point A and the line passing through point B perpendicularly.

[0081] Step S230: Based on the single-space optimal wiring path, connect the nearest points between the two spaces in each loop according to the Manhattan distance principle to obtain the loop optimal wiring path.

[0082] Find the optimal routing path for a single space in each loop, and connect the nearest connection points between spaces using Manhattan connections (based on the Manhattan distance principle) to obtain the optimal routing path for the loop.

[0083] Among them, such as Figure 5 The diagram shown is a flowchart for obtaining the optimal path. Step S210 may specifically include the following steps:

[0084] Step S211: Calculate the distance between each projected coordinate and the other projected coordinates based on the projected coordinates, and use the distance as a weight;

[0085] Step S212: Based on the weights, obtain the optimal path using the minimum spanning tree algorithm.

[0086] For example, if the distance from point A to point B is 10, the weight can be set to 10. If point A and point B are located on opposite sides of the wall, the weight is doubled based on that distance.

[0087] like Figure 6 The diagram shown is a flowchart of the projection point array. Step S300 may specifically include the following steps:

[0088] Step S301: Project the coordinates of the reference smart home points onto the ceiling to obtain the ceiling projection points of the reference smart home.

[0089] Step S302: Arrange the ceiling projection points in an array along the vertical direction of the reference smart home orientation and with the ceiling projection points as the center to obtain a preset number of projection points.

[0090] The baseline smart home is the smart host point, and only one valid smart host will exist in a single apartment layout, such as... Figure 7 The diagram shows a schematic of a baseline smart home projection. The arrows in the diagram indicate the array direction, which is perpendicular to the orientation of the baseline smart home. The array extends towards both ends along the arrow direction. The circles in the diagram represent the projection points of the preset number of loops obtained after the array.

[0091] like Figure 8 The diagram shown is a flowchart for obtaining the cross path. Step S400 may specifically include the following steps:

[0092] Step S401: Connect the connection points closest to the projection point in the optimal routing paths of all loops using Manhattan connections to obtain the routing paths;

[0093] Step S402: Search the connecting paths to obtain intersecting or overlapping paths;

[0094] Step S403: If the overlapping paths are on the same loop, then merge them;

[0095] Step S404: If the overlapping paths are different loops, then offset any overlapping path by a preset distance to obtain an intersection-avoiding path.

[0096] The optimal wiring path for all loops is retrieved and compared with the projection point of the intelligent host. The connection point of each loop that is closest to the projection point of the intelligent host is connected by Manhattan connection. Manhattan connection is a connection based on the Manhattan distance principle.

[0097] Retrieve all connecting paths (all connecting paths generated by Manhattan lines), obtain intersecting or overlapping paths, merge overlapping paths on the same loop, offset overlapping paths on different loops (translate one of them, the translation distance can be set as needed); for intersecting paths, one of the intersecting paths crosses the other path in an arch pattern to obtain an intersection-avoiding path.

[0098] Connect the coordinates of all smart device points to the plane of the ceiling (i.e., connect them to the corresponding projection coordinates), and connect the projection point of the smart host to the smart host to obtain the final connection path data.

[0099] This method projects all home appliances onto the ceiling and obtains cross-connection data based on the Manhattan distance principle. Then, it connects the data with the coordinates of the smart devices to obtain the final connection path data. This method can achieve automatic wiring, save manpower, and is efficient and low-cost. It can avoid pipe crossings, generate reasonable connection results, and facilitates implementation.

[0100] Example 2

[0101] This application provides a smart home wiring device, which is applied to the smart home wiring method described in Embodiment 1, such as... Figure 9 The diagram shown is a structural block diagram of a smart home wiring device, which includes, but is not limited to:

[0102] Projection module 100 is used to obtain ceiling-based projection coordinates for smart home devices;

[0103] The loop optimal routing path module 200 is used to obtain the loop optimal routing path based on the projected coordinates;

[0104] The projection point acquisition module 300 is used to project the coordinates of the points of the reference smart home onto the ceiling to obtain the projection points of the reference smart home with a preset number of loops.

[0105] Cross-crossing path acquisition module 400 is used to obtain a cross-crossing path based on the projection point and the optimal wiring path of the loop.

[0106] The wiring path acquisition module 500 is used to connect the point coordinates with the projected coordinates based on the intersection avoidance path to obtain wiring path data.

[0107] like Figure 10 The diagram shown is a structural block diagram of another smart home wiring device, in which... Figure 9 Based on this, the projection module 100 includes:

[0108] The coordinate acquisition module 101 is used to acquire the location coordinates of smart home devices based on spatial loop information.

[0109] The projection coordinate acquisition module 102 is used to project the coordinates of the point onto the ceiling to obtain ceiling-based projection coordinates.

[0110] The loop-optimized wiring path module 200 includes:

[0111] The optimal path acquisition module 210 is used to obtain the optimal path based on the projected coordinates;

[0112] The single-space optimal wiring path module 220 is used to perform wiring according to the optimal path and based on the Manhattan distance principle to obtain the single-space optimal wiring path.

[0113] The loop optimal wiring path acquisition module 230 is used to connect the nearest points between two spaces in each loop based on the Manhattan distance principle, according to the single-space optimal wiring path, to obtain the loop optimal wiring path.

[0114] The optimal path acquisition module 210 includes:

[0115] The weight calculation module 211 is used to calculate the distance between each projection coordinate and the other projection coordinates based on the projection coordinates, and to use the distance as a weight.

[0116] The optimal path calculation module 212 is used to obtain the optimal path based on the weights using the minimum spanning tree algorithm.

[0117] The projection point acquisition module 300 includes:

[0118] Projection point module 301 is used to project the coordinates of the points of the reference smart home onto the ceiling to obtain the ceiling projection points of the reference smart home.

[0119] The array module 302 is used to array the ceiling projection points in a vertical direction along the orientation of the reference smart home and with the ceiling projection points as the center, to obtain a preset number of projection points.

[0120] The cross-path avoidance acquisition module 400 includes:

[0121] The connection path acquisition module 401 is used to perform Manhattan connection on the connection points closest to the projection point in the optimal wiring path of all loops to obtain the connection path.

[0122] The retrieval module 402 is used to retrieve the connecting paths and obtain intersecting or overlapping paths;

[0123] The merging module 403 is used to merge overlapping paths if they are on the same loop.

[0124] The offset module 404 is used to offset any overlapping path by a preset distance if the overlapping paths are not the same loop, so as to obtain an intersection-avoiding path.

[0125] This device enables automated wiring, saving manpower, and is highly efficient and low-cost. It can avoid pipeline intersections, generate reasonable wiring results, and facilitate on-site construction.

[0126] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor runs the computer program to enable the electronic device to perform the smart home wiring method described in Embodiment 1.

[0127] This application also provides a readable storage medium storing computer program instructions, which are read and executed by a processor to perform the smart home wiring method described in Embodiment 1.

[0128] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0129] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0130] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0131] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0132] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0133] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A smart home wiring method, characterized by, The method comprises: Obtaining projection coordinates of a smart home based on a ceiling; Based on the projection coordinates, obtaining a loop optimal wiring path; Projecting point coordinates of a reference smart home onto a ceiling to obtain projection points of the reference smart home in a preset number of loops; Based on the projection points and the loop optimal wiring path, obtaining an intersection-avoiding path, comprising: Manhattan connecting the closest connecting point of all loop optimal wiring paths to the projection points to obtain a connecting path; searching the connecting path to obtain intersecting or overlapping paths; if the overlapping paths are in the same loop, merging; if the overlapping paths are in different loops, offsetting any one of the overlapping paths by a preset distance to obtain the intersection-avoiding path; Based on the intersection-avoiding path, connecting the point coordinates and the projection coordinates to obtain wiring path data.

2. The smart home wiring method of claim 1, wherein, The method comprises: Based on space loop information, obtaining point coordinates of a smart home; Projecting the point coordinates onto a ceiling to obtain projection coordinates based on the ceiling.

3. The smart home wiring method of claim 1, wherein, The method comprises: Based on the projection coordinates, obtaining an optimal path; According to the optimal path and based on the Manhattan distance principle, connecting to obtain a single-space optimal wiring path; Based on the single-space optimal wiring path, connecting the closest points between two spaces in each loop based on the Manhattan distance principle to obtain a loop optimal wiring path.

4. The smart home wiring method of claim 3, wherein, The method comprises: Based on the projection coordinates, calculating the distance between each projection coordinate and the remaining projection coordinates, and taking the distance as a weight; Based on the weight, obtaining an optimal path using a minimum spanning tree algorithm.

5. The smart home wiring method of claim 1, wherein, The method comprises: Projecting the point coordinates of the reference smart home onto the ceiling to obtain ceiling projection points of the reference smart home; According to the vertical direction of the reference smart home and taking the ceiling projection points as the center, arraying the ceiling projection points to obtain a preset number of projection points.

6. A smart home wiring device, comprising: The device comprises: A projection module for obtaining projection coordinates of a smart home based on a ceiling; A loop optimal wiring path module for obtaining a loop optimal wiring path based on the projection coordinates; A projection point obtaining module for projecting point coordinates of a reference smart home onto a ceiling to obtain projection points of the reference smart home in a preset number of loops; An intersection-avoiding path obtaining module for obtaining an intersection-avoiding path based on the projection points and the loop optimal wiring path, comprising: Manhattan connecting the closest connecting point of all loop optimal wiring paths to the projection points to obtain a connecting path; searching the connecting path to obtain intersecting or overlapping paths; if the overlapping paths are in the same loop, merging; if the overlapping paths are in different loops, offsetting any one of the overlapping paths by a preset distance to obtain the intersection-avoiding path; The wiring path acquisition module is configured to connect the point coordinates and the projection coordinates based on the intersection-avoiding path, and obtain wiring path data.

7. The smart home wiring device of claim 6, wherein, The loop optimal wiring path module comprises: The optimal path acquisition module is configured to obtain an optimal path based on the projection coordinates. The single-space optimal wiring path module is configured to connect lines according to the optimal path and based on a Manhattan distance principle, and obtain a single-space optimal wiring path. The loop optimal wiring path module is configured to connect lines between the nearest points between two spaces in each loop based on the Manhattan distance principle, and obtain a loop optimal wiring path.

8. An electronic device, comprising: The electronic device comprises a memory and a processor, the memory is configured to store a computer program, and the processor is configured to run the computer program to enable the electronic device to perform the smart home wiring method according to any one of claims 1 to 5.

9. A readable storage medium, characterized by, The readable storage medium stores computer program instructions, and the computer program instructions are read and run by a processor to perform the smart home wiring method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Automatic wiring method and device, storage medium and electronic equipment

    CN113111424A

  • Graph model-based indoor lighting loop grading wiring method and system

    CN114943128A