Method, device, electronic device and storage medium for determining the number of wires in wiring tube
By extracting information from power construction drawings, determining the power supply path and calculating the number of wires, it solves the problem of manual calculations relying on experience, achieves fast and accurate determination of the number of wires in the wiring tube, improves work efficiency and reduces costs.
Patent Information
- Application Number
- CN202111261610.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-10-28
AI Technical Summary
In the existing technology, manual calculation of the number of wires in the wiring duct relies on experience, which results in long time, high error rate, and increased project cost and construction period.
By extracting connection information and control information from power construction drawings, the power supply path is determined, and the number of wires is calculated based on the power supply path to achieve automated calculations.
Quickly and accurately determine the number of wires in the wiring duct, reducing manual error rates, improving work efficiency, and reducing project costs and construction periods.
Smart Images

Figure CN114021293B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of engineering wiring technology, and in particular to a method, device, electronic device and storage medium for determining the number of wires in a wiring tube. Background Art
[0002] With the development of electric power technology, people cannot live without electricity in their lives and work. When building places where people live and work, they will consider installing a lot of electrical equipment. The electrical equipment needs to be connected to the distribution box through wires, so that the distribution box can supply power to the electrical equipment.
[0003] In order to reduce exposed wires in a place, when building a living or working place, the wires are arranged in wiring tubes, and then the wiring tubes are hidden in walls, under floors, etc. At present, when arranging wires, the staff will manually calculate the number of wires required to be arranged in each wiring tube according to the construction drawings.
[0004] Manual calculation of the number of wires in wiring ducts relies heavily on the personal experience of workers, which is not friendly to less experienced workers. In addition, the calculation takes a long time, has a high error rate, and is prone to rework, which increases project costs and extends construction time. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for determining the number of wires in a wiring conduit, so as to achieve the purpose of quickly and accurately determining the number of wires in a wiring conduit according to an electric power construction drawing.
[0006] In a first aspect, an embodiment of the present application provides a method for determining the number of wires in a wiring tube, the method comprising:
[0007] Extracting connection information and control information between switches and electrical equipment under the target distribution box from pre-acquired power construction drawings;
[0008] Determine, according to the control information and the connection information, a power supply path from the target distribution box to each electrical device through the switch;
[0009] Based on the power supply path, the number of wires in the wiring conduit between the switch and the electrical equipment and in the wiring conduit between electrical equipment are determined.
[0010] In a second aspect, an embodiment of the present application further provides a device for determining the number of wires in a wiring tube, the device for determining the number of wires in a wiring tube comprising:
[0011] An extraction module is used to extract connection information and control information between switches and electrical equipment under the target distribution box from pre-acquired power construction drawings;
[0012] A first determining module, configured to determine a power supply path from the target distribution box to each electrical device through the switch according to the control information and the connection information;
[0013] The second determination module is used to determine the number of wires in the wiring tube between the switch and the electrical equipment and in the wiring tube between electrical equipment based on the power supply path.
[0014] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the number of wires in a wiring tube as provided in any embodiment of the present application.
[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements a method for determining the number of wires in a wiring tube as provided in any embodiment of the present application.
[0019] The technical solution of the embodiment of the present application extracts the connection information and control information between the switch and the electrical equipment under the target distribution box from the pre-acquired power construction drawings; determines the power supply path from the target distribution box through the switch to each electrical equipment based on the control information and the connection information; and determines the number of wires in the wiring tube between the switch and the electrical equipment and in the wiring tube between electrical equipment based on the power supply path, thereby avoiding relying on manual experience to determine the number of wires in the wiring tube, and achieving the purpose of quickly and accurately determining the number of wires in the wiring tube based on the power construction drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram of a flow chart of a method for determining the number of wires in a wiring tube provided in Embodiment 1 of the present application;
[0021] Figure 2 This is a schematic diagram of a power supply path provided in Embodiment 1 of the present application;
[0022] Figure 3 This is a flow chart of extracting connection information between switches and electrical equipment under a target distribution box, provided in Embodiment 2 of the present application;
[0023] Figure 4This is a schematic diagram of a flow chart for determining a power supply path provided in Embodiment 3 of the present application;
[0024] Figure 5 This is a schematic diagram of a flow chart of determining a power supply circuit corresponding to a switch control circuit provided in Embodiment 3 of the present application;
[0025] Figure 6 This is a schematic diagram of a process for determining the number of wires based on a power supply path provided in Embodiment 4 of the present application;
[0026] Figure 7 A schematic diagram of the structure of a device for determining the number of wires in a wiring tube provided in Embodiment 5 of the present application;
[0027] Figure 8 A schematic diagram of the structure of an electronic device provided in Example 6 of the present application. DETAILED DESCRIPTION
[0028] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0029] Embodiment 1
[0030] Figure 1 This is a flow chart of a method for determining the number of wires in a wiring tube provided in the first embodiment of the present application. This embodiment can be applied to the scenario of determining the number of wires in a wiring tube. The method can be performed by a device for determining the number of wires in a wiring tube. The device can be implemented in hardware and / or software and can generally be integrated in an electronic device such as a computer with data computing capabilities. Specifically, the method includes the following steps:
[0031] Step 101: extract connection information and control information between switches and electrical equipment under a target distribution box from pre-acquired power construction drawings.
[0032] In this step, the power construction drawings may be wiring diagrams, circuit diagrams and other drawings, and the target distribution box refers to any distribution box included in the power construction drawings, and the distribution box is used to supply power to subordinate electrical equipment.
[0033] In addition, the electrical equipment referred to in this step can be any equipment that requires electricity to work, such as electric lights, electric fans, televisions, water heaters, and of course, sockets. Although in a strict sense, sockets do not consume electrical energy, sockets are used to plug in devices. In the wiring scenario, the wiring of sockets is the same as the wiring of electrical equipment. Therefore, the electrical equipment in this step may include sockets.
[0034] Step 102: Determine the power supply path from the target distribution box to each electrical device through the switch based on the control information and the connection information.
[0035] In this step, the power supply path refers to the circuit path that the target distribution box needs to pass through to supply power to the electrical equipment. Generally, each electrical equipment will correspond to a power supply path. However, due to the different connections between electrical equipment, the power supply paths of some electrical equipment will partially overlap. For example, electrical equipment A, electrical equipment B, and electrical equipment C connected in parallel are controlled by switch A. For details, please refer to Figure 2 , Figure 2 This is a schematic diagram of a power supply path provided in Example 1 of the present application.
[0036] Figure 2 The connection shown in is mainly the connection of the live wire between the electrical devices, and the neutral wire and the ground wire are pre-arranged in the wiring tube by default. That is to say, the live wire led out of the target distribution box will be connected to the access end of switch A, and then led out from the control end of switch A, and connected to electrical devices A, electrical devices B and electrical devices C in sequence. Therefore, the power supply path from the target distribution box through switch A to the live wire of electrical device A exists in the power supply paths of electrical devices B and electrical devices C, and the power supply path from the target distribution box through switch A to the live wire of electrical device B also exists in the power supply path of electrical device C.
[0037] In addition, the control information in this step refers to the control relationship information between the switch and the electrical equipment, such as Figure 2 In the schematic diagram shown, switch A controls electrical equipment A, electrical equipment B and electrical equipment C at the same time. Generally, the control information can be marked in advance in the power construction drawing, for example, the identification code of the corresponding control switch is marked in the information of each electrical equipment, and the extracted control information can be shown in Table 1.
[0038] switch Controlled electrical equipment Switch A-single Electrical equipment A1, B1, C1, D1 Switch A-Double Electrical equipment A2, B2, C2, D2 Switch A-Triple Electrical equipment A3, B3, C3, D3 Switch B-1 Electrical equipment E1, F1, G1, H1 Switch B-Double Electrical equipment E2, F2, G2, H2 …… ……
[0039] Table 1
[0040] It should be noted that the one-gang, two-gang, and three-gang shown in Table 1 indicate that switch A is a three-gang single-control switch. Similarly, switch B is a two-gang single-control switch.
[0041] In addition, connection information refers to information related to the connection between a switch and an electrical device, or between electrical devices, such as connection relationship, connection distance, etc.
[0042] Step 103: Based on the power supply path, determine the number of wires in the wiring conduit between the switch and the electrical equipment and in the wiring conduit between the electrical equipment.
[0043] It should be noted that when wiring, neutral wires and ground wires are generally arranged in the wiring tubes between electrical equipment. For the arrangement of different power supply paths, the difference in the number of wires in the wiring tube is mainly reflected in the number of live wires. The number of live wires arranged in the wiring tube is closely related to the equipment connected to both ends of the wiring tube. For example, if the two ends of the wiring tube are switches and electrical equipment, then the control wires led out from the switch are arranged in the wiring tube. Generally, the switch is a single-control wire with several gangs, and the wires in the wiring tube need to be "several wires + 1".
[0044] For example, if the switch is a three-way single control, then "3+1" wires are needed in the wiring tube. The reason for "+1" is that in conventional wiring, the live wire from the target distribution box is generally first led to the first electrical device connected to the switch, and then the wire is led from the first electrical device to the input end of the switch. Since this method is a well-known practice in the industry, "+1" can be used as a preset value in subsequent technical implementation, and "+1" can be implemented using program code.
[0045] Furthermore, the connection conditions at both ends of the wiring tube are determined based on the power supply circuit obtained above. The specific determination process will be described in subsequent embodiments and will not be repeated here.
[0046] In this embodiment, the connection information and control information between the switches and electrical equipment under the target distribution box are extracted from the pre-acquired power construction drawings; the power supply path from the target distribution box through the switch to each electrical equipment is determined based on the control information and connection information; based on the power supply path, the number of wires in the wiring pipe between the switch and the electrical equipment and in the wiring pipe between the electrical equipment is determined, avoiding relying on manual experience to determine the number of wires in the wiring pipe, thereby achieving the purpose of quickly and accurately determining the number of wires in the wiring pipe according to the power construction drawings.
[0047] Embodiment 2
[0048] See also Figure 3 , Figure 3 It is a flow chart of extracting connection information between switches and electrical equipment under a target distribution box, provided in the second embodiment of the present application.
[0049] like Figure 3 As shown, in this embodiment, the process of extracting the connection information between the switch and the electrical equipment under the target distribution box may include:
[0050] Step 301: Acquire key connection points between switches and electrical equipment under a target distribution box and information on connection lines between the key connection points from pre-acquired power construction drawings.
[0051] It should be noted that, generally in the power construction drawings, there will be key connection points between switches and electrical equipment. The specific degree of the key connection points may vary in different power construction drawings. For example, in the wiring diagram, the electrical equipment usually has only two key connection points, which are used to indicate the connection relationship of the live wire between the two; and in the circuit diagram, the various connection points of the electrical equipment are usually indicated, such as the connection point of the live wire, the connection point of the neutral wire, and the connection point of the ground wire. In this step, only the connection point of the live wire needs to be taken as the key connection point.
[0052] In addition, in the power construction drawings, there may be connection line information between key connection points, that is, indicating which key connection points are connected by connection lines. This information can be directly extracted from the power construction drawings.
[0053] Step 302: Determine the connection information between the switches and the electrical equipment under the target distribution box according to the connection key points and the connection line information.
[0054] In this step, the connection information between the switches and electrical equipment under the target distribution box can be obtained by scanning. For example, the lead-out line of the target distribution box is connected to the connection key point 1 of switch A, and then the connection key point 2 of switch A is connected to the connection key point 1 of electrical equipment A, and the connection key point 2 of the electrical equipment is connected to the connection key point 1 of electrical equipment B, ... In this way, according to the connection point information between the key connection points, the connection information between the switches and electrical equipment can be scanned.
[0055] Embodiment 3
[0056] See also Figure 4 , Figure 4 This is a flowchart of determining a power supply path provided in Embodiment 3 of the present application.
[0057] like Figure 4 As shown, the process of determining the power supply path provided in this embodiment may include:
[0058] Step 401: Determine the switch control loop controlled by each switch and the electrical equipment respectively included in each switch control loop according to the control information.
[0059] In this step, still taking the control information shown in Table 1 mentioned in the above-mentioned embodiment 1 as an example, each switch will have its own controlled electrical equipment to form a switch control loop. For example, one connection of switch A and electrical equipment A1, B1, C1, and D1 form a switch control loop.
[0060] Step 402: For any switch control loop, determine the power supply path corresponding to the switch control loop according to the connection information between the switch and the electrical equipment.
[0061] In this step, the connection information may include the connection distance and the connection relationship. The specific process of determining the power supply circuit corresponding to the switch control circuit can be referred to. Figure 5 , Figure 5 It is a schematic diagram of a flow chart of determining a power supply circuit corresponding to a switch control circuit provided in the third embodiment of the present application.
[0062] like Figure 5 As shown, the process of determining the power supply circuit corresponding to the switch control circuit provided in this embodiment may include:
[0063] Step 501: For any switch control loop, the connection relationship between the switch and the electrical equipment and between the electrical equipment is used to scan the pending power supply branches from the target distribution box to the switch and from the switch to the electrical equipment.
[0064] In this step, the method of scanning to obtain connection information is similar to that in the aforementioned step 302, except that in this step, based on the aforementioned scan, the switches or electrical devices scanned and the order in which they are scanned are recorded, thereby forming a pending power supply branch.
[0065] It should be noted that since the connections between electrical equipment are diverse, for a certain electrical equipment, there may be multiple pending power supply branches in terms of connection form, and the power supply branch actually used for power supply is only one of the pending power supply branches, which requires subsequent confirmation.
[0066] In subsequent confirmation, the principle of closest distance can generally be followed, as shown in the following steps.
[0067] Step 502: Calculate the path distance of each pending power supply branch according to the connection distance.
[0068] In this step, since the connection distance between electrical devices has been extracted in the previous step, for any pending power supply branch, this step can start from the connection distance between the first electrical device and the connection distance between the first electrical device and the next electrical device according to the connection order in the pending power supply branch, and accumulate until the last electrical device is accumulated to obtain the path distance of the pending power supply branch.
[0069] Step 503: determine the shortest pending power supply branch from the target distribution box to the switch as the power supply branch from the target distribution box to the switch.
[0070] Since the path distance has been obtained before, in this step, the undetermined power supply branch with the shortest path distance from the target distribution box to the switch can be directly used as the power supply branch from the target distribution box to the switch.
[0071] Step 504: For any electrical device, determine the shortest pending power supply branch from the switch to the electrical device, and connect the power supply branch from the target distribution box to the switch and the shortest pending power supply branch from the switch to the electrical device in series to obtain the power supply path from the target distribution box to the electrical device through the switch.
[0072] In this step, the shortest pending power supply branch from the switch to the electrical equipment can still be obtained according to the aforementioned determined path distance, and then serialized with the power supply branch obtained in step 503 to obtain the power supply path from the target distribution box to the electrical equipment through the switch.
[0073] Of course, in this step, the number of power consumption nodes can also be used to determine the shortest pending power supply branch from the switch to the power consumer. Specifically, for any power consumer, scan the power consumption nodes existing in each pending power supply branch between the switch and the power consumer; and determine the pending power supply branch with the least power consumption nodes as the shortest pending power supply branch from the switch to the power consumer.
[0074] It should be noted that the power consumption node refers to the power consumption equipment that needs to be passed through in the to-be-determined power supply circuit from the switch to the power consumption equipment.
[0075] Embodiment 4
[0076] See also Figure 6 , Figure 6 This is a flow chart of determining the number of wires based on a power supply path provided in Embodiment 4 of the present application.
[0077] like Figure 6 As shown, in this embodiment, the process of determining the number of wires based on the power supply path may include:
[0078] Step 601: For any switch, determine the arrangement information of all power supply paths controlled by the switch, and determine the number of wires in the wiring tube between the switch and the electrical equipment according to the arrangement information of the power supply paths.
[0079] In this step, since the switch may be a multi-gang single-control switch, a switch may have multiple switch control loops, that is, multiple power supply paths. For example, switch A in Table 1 in the above embodiment is a triple-gang single-control switch with three power supply paths.
[0080] Specifically, for any switch, the power supply path including the switch is determined as the power supply path of the switch interlocking control; the connection distance between the first electrical equipment and the switch in each power supply path is determined, and the power supply paths of the switch interlocking control are sorted from near to far according to the connection distance; the sorting of the power supply paths of the switch interlocking control is determined as the arrangement information of all the power supply paths of the switch interlocking control.
[0081] In a specific example, among the three power supply paths provided by switch A, the distances between the first power consumer and switch A are arranged as power consumer A2, power consumer A1, and power consumer A3. If the power supply path where power consumer A1 is located is called power supply path 1, the power supply path where A2 is located is called power supply path 2, and the power supply path where A3 is located is called power supply path 3, then the arrangement information of the power supply paths is power supply path 2, power supply path 1, and power supply path 3.
[0082] In addition, when determining the number of wires in the wiring tube between the switch and the electrical equipment based on the arrangement information, the target number of power supply paths for switch linkage control can be extracted from the arrangement information, and then the sum of the target number and the second preset basic number can be determined as the number of wires in the wiring tube between the switch and the electrical equipment.
[0083] It should be noted that the switch only needs to control the on and off of the live wire. Therefore, only the live wire needs to be arranged in the wiring tube between the switch and the electrical equipment. The number of arranged live wires needs to be obtained according to the joint control information of the switch. For example, for a three-gang single-control switch, "3+1" wires need to be arranged in the wiring tube between the switch and the electrical equipment. The specific reason can be referred to the explanation of "+1" mentioned in the previous embodiment. Then 1 here is the second preset basic number.
[0084] Step 602: Determine the number of newly added wirings in the wiring conduit between the electrical devices according to the arrangement information of the power supply path.
[0085] In this step, the number of newly added wiring roots actually refers to the number of live wires to be arranged, that is, the number of live wires that need to be arranged. In the same power supply path, the number of newly added wiring roots between electrical equipment is usually 1. In other words, as long as the electrical equipment is in the same power supply path, the number of newly added wiring roots in the wiring tubes between them is determined to be 1.
[0086] For electrical equipment in different power supply paths, there is actually only a wiring tube between the first electrical equipment in the power supply path controlled by the same switch. For any wiring tube between electrical equipment, it is first necessary to determine whether the wiring tube is the first target wiring tube between the first electrical equipment in the power supply path; if the wiring tube is the first target wiring tube, the number of newly added wiring roots in the first target wiring tube is determined according to the number of power supply paths arranged after the first target wiring tube in the arrangement information; if the wiring tube is not the first target wiring tube, the preset newly added value is determined as the number of newly added wiring roots in the wiring tube.
[0087] Among them, the preset additional data is 1. In addition, if the wiring tube is the first target wiring tube, the number of additional wiring roots in the first target wiring tube is determined according to the number of power supply paths arranged after the first target wiring tube in the arrangement information. Taking the three power supply paths of the aforementioned switch A as an example, for the wiring tube between power supply path 2 and power supply path 1, since there is also power supply path 3 after power supply path 1, that is, an additional live wire is required to supply power supply path 3, therefore, the number of additional wiring roots of the wiring tube between power supply path 2 and power supply path 1 needs to be 1+1, that is, 1 is added on the basis of one live wire in this application. If there is also power supply path 4 after power supply path 3, then here it needs to be 1+2.
[0088] In addition, this embodiment will also involve the situation of multiple switches. For example, there is also a switch B, and the circuit carried by switch B is the lower-level power supply circuit of switch A. At this time, it is necessary to determine the target power supply path through which the lower-level power supply circuit supplies power from the power supply path of the switch linkage control, and determine the wiring tube between the electrical equipment and the electrical equipment in the target power supply path as the second target wiring tube; increase the number of newly added wiring roots of the second target wiring tube by the preset lower-level circuit newly added value.
[0089] It should be noted that the preset value of the added value of the lower-level circuit can be 1, which is mainly a live wire connected to 1.
[0090] For the judgment of the lower-level power supply circuit, it can be determined based on the control information that the electrical devices controlled by the two switches are different, but based on the connection information, it can be determined that there is a connection relationship between the electrical devices controlled by each of the two switches. In this case, the power supply path in the upper-level power supply circuit passing through the electrical device is the target power supply path.
[0091] Step 603: For any wiring conduit between the electrical devices, the sum of the number of newly added wirings and the first preset basic number is determined as the number of wires in the wiring conduit between the electrical devices.
[0092] In this step, the first preset basic number refers to the pre-arranged neutral wire and ground wire, that is, 2. For the arrangement of the neutral wire and the ground wire, please refer to the contents mentioned in the previous embodiment, which will not be repeated here.
[0093] Embodiment 5
[0094] Figure 7 This is a schematic diagram of the structure of a device for determining the number of wires in a wiring conduit provided in Embodiment 5 of the present application. The device for determining the number of wires in a wiring conduit provided in the embodiment of the present application can execute the method for determining the number of wires in a wiring conduit provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as Figure 7As shown, the device for determining the number of wires in a wiring tube specifically includes: an extraction module 701 , a first determination module 702 , and a second determination module 703 .
[0095] The extraction module is used to extract the connection information and control information between the switches and the electrical equipment under the target distribution box from the pre-acquired power construction drawings;
[0096] A first determination module is used to determine the power supply path from the target distribution box to each electrical device through the switch according to the control information and the connection information;
[0097] The second determination module is used to determine the number of wires in the wiring tube between the switch and the electrical equipment and in the wiring tube between the electrical equipment based on the power supply path.
[0098] The extraction module extracts the connection information and control information between the switch and the electrical equipment under the target distribution box from the pre-acquired power construction drawings; the first determination module determines the power supply path from the target distribution box to each electrical equipment through the switch based on the control information and connection information; the second determination module determines the number of wires in the wiring tube between the switch and the electrical equipment and in the wiring tube between the electrical equipment based on the power supply path, avoiding relying on manual experience to determine the number of wires in the wiring tube, and achieving the purpose of quickly and accurately determining the number of wires in the wiring tube according to the power construction drawings.
[0099] Furthermore, the extraction module includes:
[0100] An acquisition unit, used to acquire key connection points between switches and electrical equipment under the target distribution box and information on connection lines between the key connection points from pre-acquired power construction drawings;
[0101] The first determination unit is used to determine the connection information of the switches and electrical equipment under the target distribution box according to the connection key points and the connection line information.
[0102] Furthermore, the first determining module includes:
[0103] A second determining unit, configured to determine a switch control loop controlled by each switch and electrical devices respectively included in each switch control loop according to the control information;
[0104] The third determining unit is used to determine, for any switch control loop, a power supply path corresponding to the switch control loop according to connection information between the switch and the electrical equipment.
[0105] Furthermore, the connection information includes connection distance and connection relationship;
[0106] The third determining unit includes:
[0107] The scanning subunit is used to scan the pending power supply branches from the target distribution box to the switch and from the switch to each power consumption device for any switch control loop by using the connection relationship between the switch and the power consumption device and between each power consumption device;
[0108] A calculation subunit, used for calculating the path distance of each pending power supply branch according to the connection distance;
[0109] A first determining subunit, used to determine the shortest pending power supply branch from the target distribution box to the switch as the power supply branch from the target distribution box to the switch;
[0110] The second determination subunit is used to determine the shortest pending power supply branch from the switch to the power consumer for any power consumer, and to serialize the power supply branch from the target distribution box to the switch with the shortest pending power supply branch from the switch to the power consumer to obtain the power supply path from the target distribution box to the power consumer through the switch.
[0111] Further, the second determining subunit includes:
[0112] A scanning slave unit is used to scan, for any power-consuming device, the power-consuming nodes existing in each pending power supply branch between the switch and the power-consuming device;
[0113] The slave unit is determined to determine the pending power supply branch with the least number of existing power consumption nodes as the shortest pending power supply branch from the switch to the power consumption device.
[0114] Furthermore, the second determination module includes:
[0115] A fourth determining unit is used to determine, for any switch, the arrangement information of all power supply paths controlled by the switch, and determine the number of wires in the wiring tube between the switch and the electrical equipment according to the arrangement information of the power supply paths;
[0116] A fifth determining unit, configured to determine the number of newly added wirings in the wiring tube between the electrical devices according to the arrangement information of the power supply path;
[0117] The sixth determining unit is used to determine, for any wiring tube between the electrical devices, the sum of the number of newly added wirings and the first preset basic number as the number of wires in the wiring tube between the electrical devices.
[0118] Furthermore, the fourth determining unit includes:
[0119] A third determining subunit is used to determine, for any switch, a power supply path including the switch as a switch-interconnected power supply path;
[0120] A sorting subunit is used to determine the connection distance between the first power-consuming device and the switch in each power supply path, and sort the power supply paths of the switch linkage control from near to far according to the connection distance;
[0121] The fourth determining subunit is configured to determine the order of the power supply paths of the switch-controlled system as the arrangement information of all the power supply paths of the switch-controlled system.
[0122] Furthermore, the fourth determining unit also includes:
[0123] An extraction subunit, used for extracting a target number of switch-interconnected power supply paths from the arrangement information;
[0124] A fifth determining subunit, configured to determine the sum of the target number and the second preset basic number as the number of wires in the wiring tube between the switch and the electrical equipment;
[0125] A sixth determining subunit is used to determine, for any wiring tube between electrical devices, whether the wiring tube is a first target wiring tube between the first electrical devices in the power supply path;
[0126] a seventh determining subunit, configured to determine the number of newly added wirings in the first target wiring tube according to the number of power supply paths arranged after the first target wiring tube in the arrangement information if the wiring tube is the first target wiring tube;
[0127] The eighth determining subunit is configured to determine the preset additional value as the number of additional wirings in the wiring tube if the wiring tube is not the first target wiring tube.
[0128] Further, if the switch has a lower-level power supply circuit, the fifth determining unit further includes:
[0129] A ninth determination subunit is used to determine, from the switch-interconnected power supply path, a target power supply path through which the lower power supply circuit supplies power, and determine a wiring conduit between power-consuming devices in the target power supply path as a second target wiring conduit;
[0130] The number increasing subunit is used to increase the number of newly added wiring roots of the second target wiring tube by a preset lower-level loop newly added value.
[0131] Embodiment 6
[0132] Figure 8 A schematic diagram of the structure of an electronic device provided in Example 6 of the present application is shown in FIG. Figure 8 As shown, the electronic device includes a processor 810, a memory 820, an input device 830 and an output device 840; the number of the processor 810 in the electronic device can be one or more. Figure 8 A processor 810 is taken as an example; the processor 810, the memory 820, the input device 830 and the output device 840 in the electronic device can be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.
[0133] The memory 820, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the method for determining the number of wires in the wiring tube in the embodiment of the present application (for example, the extraction module 701, the first determination module 702, and the second determination module 703 in the device for determining the number of wires in the wiring tube). The processor 810 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 820, that is, implements the above-mentioned method for determining the number of wires in the wiring tube.
[0134] That is, the connection information and control information between the switches and the electrical equipment under the target distribution box are extracted from the pre-acquired power construction drawings;
[0135] According to the control information and connection information, determine the power supply path from the target distribution box to each electrical device through the switch;
[0136] Based on the power supply path, determine the number of wires in the wiring conduit between the switch and the electrical equipment and in the wiring conduit between the electrical equipment.
[0137] The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 820 may further include a memory remotely arranged relative to the processor 810, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0138] The input device 830 may be used to receive input power construction drawings and generate key signal inputs related to user settings and function control of the electronic device. The output device 840 may include display devices such as display screens.
[0139] Embodiment 7
[0140] Embodiment 7 of the present application further provides a storage medium including computer executable instructions, which are used to execute a method for determining the number of wires in a wiring tube when executed by a computer processor. The method includes:
[0141] Extracting connection information and control information between switches and electrical equipment under the target distribution box from pre-acquired power construction drawings;
[0142] According to the control information and connection information, determine the power supply path from the target distribution box to each electrical device through the switch;
[0143] Based on the power supply path, determine the number of wires in the wiring conduit between the switch and the electrical equipment and in the wiring conduit between the electrical equipment.
[0144] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the above method operations, and the computer executable instructions can also execute the related operations in the method for determining the number of wires in the wiring tube provided in any embodiment of the present application.
[0145] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0146] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.
[0147] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A method for determining the number of wires in a wiring tube, characterized in that: The method comprises: Extracting connection information and control information between switches and electrical equipment under the target distribution box from pre-acquired power construction drawings; Determine, according to the control information and the connection information, a power supply path from the target distribution box to each electrical device through the switch; Based on the power supply path, the number of wires in the wiring conduit between the switch and the electrical equipment and in the wiring conduit between electrical equipment are determined.
2. The method according to claim 1, characterized in that The step of extracting connection information between switches and electrical equipment under the target distribution box from the pre-acquired power construction drawings includes: Acquire key connection points between switches and electrical equipment under the target distribution box and connection line information between the key connection points from pre-acquired power construction drawings; The connection information between the switches and the electrical equipment under the target distribution box is determined according to the key connection points and the connection line information.
3. The method according to claim 1, characterized in that The step of determining, according to the control information and the connection information, a power supply path from the target distribution box to each of the electrical devices through the switch includes: Determine, according to the control information, a switch control circuit controlled by each of the switches and electrical equipment respectively included in each of the switch control circuits; For any of the switch control loops, a power supply path corresponding to the switch control loop is determined according to connection information between the switch and the electrical equipment.
4. The method according to claim 3, characterized in that The connection information includes connection distance and connection relationship; For any of the switch control loops, determining a power supply path corresponding to the switch control loop according to connection information between the switch and the electrical equipment includes: For any of the switch control loops, using the connection relationship between the switch and the electrical equipment and between the electrical equipment, scan the pending power supply branches from the target distribution box to the switch and from the switch to the electrical equipment; According to the connection distance, calculating the path distance of each of the pending power supply branches; Determine the shortest pending power supply branch from the target distribution box to the switch as the power supply branch from the target distribution box to the switch; For any of the electrical equipment, determine the shortest pending power supply branch from the switch to the electrical equipment, and connect the power supply branch from the target distribution box to the switch in series with the shortest pending power supply branch from the switch to the electrical equipment to obtain the power supply path from the target distribution box to the electrical equipment through the switch.
5. The method according to claim 4, characterized in that For any of the electrical devices, determining the shortest pending power supply branch from the switch to the electrical device includes: For any of the power-consuming devices, scanning the power-consuming nodes existing in each pending power supply branch between the switch and the power-consuming device; The pending power supply branch with the least existing power consumption nodes is determined as the shortest pending power supply branch from the switch to the power consumption device.
6. The method according to claim 1, characterized in that The determining, based on the power supply path, the number of wires in the wiring conduit between the switch and the electrical device and in the wiring conduit between the electrical devices comprises: For any switch, determine the arrangement information of all power supply paths controlled by the switch, and determine the number of wires in the wiring tube between the switch and the electrical equipment according to the arrangement information of the power supply paths; The number of newly added wirings in the wiring tube between the electrical devices is determined according to the arrangement information of the power supply path; For any wiring tube between electrical devices, the sum of the number of newly added wirings and the first preset basic number is determined as the number of wires in the wiring tube between the electrical devices.
7. The method according to claim 6, characterized in that The step of determining, for any switch, arrangement information of all power supply paths controlled by the switch includes: For any switch, determining the power supply path including the switch as the power supply path for the switch interlocking control; Determine the connection distance between the first power-consuming device in each power supply path and the switch, and sort the power supply paths controlled by the switch from near to far according to the connection distance; The order of the power supply paths of the switch-controlled system is determined as arrangement information of all the power supply paths of the switch-controlled system.
8. The method according to claim 7, characterized in that The determining the number of wires in the wiring tube between the switch and the electrical equipment according to the arrangement information of the power supply path includes: Extracting a target number of power supply paths for the switch linkage control from the arrangement information; Determine the sum of the target number and the second preset basic number as the number of wires in the wiring tube between the switch and the electrical equipment; The number of newly added wirings in the wiring tube between the electrical devices determined according to the arrangement information of the power supply path includes: For any wiring tube between electric devices, determining whether the wiring tube is a first target wiring tube between the first electric devices in the power supply path; If the wiring tube is the first target wiring tube, determining the number of newly added wirings in the first target wiring tube according to the number of power supply paths arranged after the first target wiring tube in the arrangement information; If the wiring tube is not the first target wiring tube, the preset additional value is determined as the number of additional wirings in the wiring tube.
9. The method according to claim 8, characterized in that If the switch has a lower-level power supply circuit, the number of newly added wirings in the wiring tube between the electrical devices determined according to the arrangement information of the power supply path also includes: From the switch-interconnected power supply path, determine a target power supply path through which the lower power supply circuit supplies power, and determine a wiring conduit between power-consuming devices in the target power supply path as a second target wiring conduit; The number of newly added wiring roots of the second target wiring tube is increased by a preset lower-level loop newly added value.
10. A device for determining the number of wires in a wiring tube, characterized in that: The device comprises: An extraction module is used to extract connection information and control information between switches and electrical equipment under the target distribution box from pre-acquired power construction drawings; A first determining module, configured to determine a power supply path from the target distribution box to each electrical device through the switch according to the control information and the connection information; The second determination module is used to determine the number of wires in the wiring tube between the switch and the electrical equipment and in the wiring tube between electrical equipment based on the power supply path.
11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the number of wires in a wiring tube as described in any one of claims 1-9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for determining the number of wires in a wiring tube as described in any one of claims 1 to 9 is implemented.
