A method and system for generating a fire alarm system diagram for loop wiring
By acquiring the sets of wires and cables and equipment in the planar layout, automatically recording the types and quantities of equipment, and generating an automatic fire alarm system diagram, the problem of missed or misjudged connections that is easily caused by manual judgment of connection relationships in ring wiring design is solved, and the accuracy and automated generation of system diagrams are achieved.
Patent Information
- Application Number
- CN202510793641.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2045-06-13
AI Technical Summary
In building electrical design, designers often make mistakes in judging the equipment connection relationships in fire alarm system diagrams with loop wiring by visual inspection, which can lead to inaccurate system diagrams.
By acquiring the sets of connected wires and cables and the sets of equipment in the planar layout, the types and quantities of equipment are automatically recorded. The resulting dictionary is used to generate an automatic fire alarm system diagram and construct a star-shaped ring topology diagram to realize the automatic generation of equipment connection relationships.
It realizes the automated generation of fire alarm system diagrams, avoiding omissions or misjudgments caused by manual judgment, and ensuring the accuracy of the system diagrams.
Smart Images

Figure CN120671307B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of engineering system diagram generation technology, specifically to a method and system for generating automatic fire alarm system diagrams for ring wiring. Background Technology
[0002] In building electrical design, the construction drawings for electrical fire alarm systems need to include floor plans of automatic fire alarm systems on each floor and corresponding automatic fire alarm system diagrams. The floor plans are used to arrange the terminal points and the wiring relationships of each terminal device, while the corresponding system diagrams are used to understand the components of the automatic fire alarm system and clarify the control relationships between each device. Although traditional tree-type automatic fire alarm systems have the advantages of being economical and efficient, more and more buildings, such as airports and hotels, are choosing ring-type automatic fire alarm systems due to their reliability.
[0003] However, in actual building electrical design, designers typically use manual CAD copying to compare architectural, structural, plumbing, and HVAC data point-by-point with the fire alarm system floor plan. They visually assess the connections between devices on the floor plan and mentally visualize the logical relationships between devices in the fire alarm system diagram. However, prolonged manual comparison can easily lead to omissions or misjudgments. Furthermore, due to the use of ring wiring, designers need to determine which outgoing circuits from the same fire alarm terminal box belong to the same ring circuit before manually drawing a rough fire alarm system diagram. Finally, based on the outgoing circuit relationships of each fire alarm terminal box on the fire alarm floor plan, they count the number of devices to adjust the corresponding number of devices in the fire alarm system diagram.
[0004] Therefore, the present invention aims to provide a method and system for generating diagrams of automatic fire alarm systems with ring wiring, in order to solve the aforementioned problems. Summary of the Invention
[0005] The technical problem this invention aims to solve is that designers often rely on manual visual judgment to determine the connection relationships between each piece of equipment in a planar layout, as well as the loop circuit connections within the same fire terminal box. This leads to omissions or misjudgments, resulting in inaccurate system diagrams. The invention provides a method and system for generating fire alarm system diagrams with loop wiring. By acquiring the sets of connected wires and cables of the planar layout equipment and the sets of equipment connected to those wires and cables, the connection relationships of each piece of equipment in the entire fire alarm planar layout are easily obtained, providing access routes for subsequent access records. Simultaneously, by sequentially accessing all planar electrical equipment and wires and cables on different loop circuits, and sequentially accessing multiple fire terminal boxes, the types and quantities of planar layout equipment are automatically recorded to generate a result dictionary. Finally, the fire alarm system diagram is automatically generated from the result dictionary, thus achieving automated generation of the fire alarm system diagram. This solves the problem of designers relying on manual visual judgment to determine the connection relationships between each piece of equipment in a planar layout, as well as the loop circuit connections within the same fire terminal box, which easily leads to omissions or misjudgments and inaccurate system diagrams.
[0006] This invention is achieved through the following technical solution:
[0007] A method for generating a diagram of an automatic fire alarm system for ring wiring, the method comprising:
[0008] Obtain the set of connected wires and cables for the planar layout equipment and the set of connected equipment for the wires and cables, wherein the planar layout equipment includes fire terminal boxes and planar electrical equipment;
[0009] Extract multiple fire terminal boxes with non-empty connected wire and cable sets, and access one wire and cable in the connected wire and cable set of one of the fire terminal boxes, and record the accessed fire terminal box; extract an unaccessed planar electrical device from the connected device set of the accessed wire and cable, and sequentially access and record all planar electrical devices and wires and cables on the loop containing the planar electrical device; after accessing and recording all loops of one fire terminal box, access the next fire terminal box with non-empty connected wire and cable set;
[0010] After visiting all fire terminal boxes where the connected wire and cable sets are not empty, a result dictionary is generated based on all the floor plan equipment and wires and cables visited. The result dictionary is used to generate an automatic fire alarm system diagram.
[0011] Furthermore, the method also includes:
[0012] Identify the graphic elements of the equipment and electrical cables in the fire alarm system plan.
[0013] Based on the graphic information of the planar layout equipment and the graphic information of the wires and cables, a star-shaped ring topology graph representing the connection relationship between the planar layout equipment is constructed, with the planar layout equipment as nodes and the wires and cables between the planar layout equipment as edges.
[0014] Specifically, constructing a star-shaped ring topology diagram representing the connection relationship between planar equipment involves: taking a fire terminal box as the central node and the planar electrical equipment connected to the central node as child nodes to construct a star-shaped topology diagram; then, in each child node of the star-shaped topology diagram, constructing a ring topology structure of the child node and the remaining planar electrical equipment connected to the child node.
[0015] Obtain the set of connected wires and cables of the planar equipment from the star-shaped ring topology diagram, as well as the set of equipment connected to the wires and cables.
[0016] Furthermore, extract an unvisited planar electrical device from the set of connected devices of the visited wires and cables, and sequentially visit and record all planar electrical devices and wires and cables on the loop containing that planar electrical device, specifically:
[0017] Extract an unvisited planar electrical device from the set of connected devices of the visited wires and cables, visit and record that planar electrical device;
[0018] Extract an unvisited wire or cable from the set of connected wires and cables of the planar electrical device. If there is no unvisited planar electrical device in the set of connected devices of the wire or cable, then visit and record the wire or cable.
[0019] If there is an unvisited planar electrical device in the set of connected devices of the wire and cable, then the planar electrical device and the wire and cable are visited and recorded, and the process continues to visit down the set of connected wires and cables of the planar electrical device until there are no unvisited planar electrical devices in the set of connected devices of the visited wires and cables.
[0020] Furthermore, based on all the accessed floor plan layout devices and wires and cables, a result dictionary is generated, with the type of floor plan layout device as the key and the quantity of each type of floor plan layout device as the value, specifically:
[0021] Retrieve all accessed fire terminal boxes and planar electrical devices, including isolators, smoke detectors, heat detectors, manual alarm buttons, audible and visual alarms, fire hydrant pump start buttons, and fire telephones; and set multiple result dictionary keys according to the types of all fire terminal boxes and planar electrical devices;
[0022] Count the number of all fire terminal boxes and planar electrical devices accessed, and use the number of all fire terminal boxes and planar electrical devices as the value of the corresponding key.
[0023] Furthermore, after generating a dictionary with the type of equipment in the floor plan as the key and the quantity of each type of equipment as the value, the method also includes:
[0024] The order of each key in the resulting dictionary is adjusted using pre-built key-value weights to obtain the adjusted result dictionary.
[0025] Furthermore, before identifying the graphic element information of the equipment arranged in the fire alarm floor plan and the graphic element information of the wires and cables, the method also includes:
[0026] Based on the design requirements for automatic fire alarm systems, the equipment is arranged on the building floor plan, and the corresponding equipment is connected by wires and cables to construct the automatic fire alarm floor plan.
[0027] The present invention also provides a fire alarm system diagram generation system for ring wiring, which is used in the fire alarm system diagram generation method for ring wiring described in any one of the above claims, the system comprising:
[0028] The information acquisition module is used to acquire the set of connected wires and cables of the planar layout equipment and the set of connected equipment of the wires and cables. The planar layout equipment includes fire terminal boxes and planar electrical equipment.
[0029] The access search module is used to extract multiple fire terminal boxes with non-empty connected wire and cable sets, access one wire and cable in the connected wire and cable set of one of the fire terminal boxes, and record the accessed fire terminal boxes; extract an unaccessed planar electrical device in the connected device set of the accessed wire and cable, and sequentially access and record all planar electrical devices and wires and cables on the loop line containing the planar electrical device; after accessing and recording all loop lines of one fire terminal box, the next fire terminal box with non-empty connected wire and cable set is accessed.
[0030] The system diagram generation module is used to generate a result dictionary based on all the floor plan equipment and wires and cables visited after accessing all fire terminal boxes with non-empty connected wire and cable sets. The result dictionary is used to generate an automatic fire alarm system diagram.
[0031] The present invention also provides a computer device, including a system memory and a processor, wherein the system memory stores a computer program, and the processor executes the computer program to implement the steps of any of the methods described above.
[0032] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any of the methods described above.
[0033] The present invention also provides a computer program product containing instructions that, when executed by a cluster of computer devices, cause the cluster of computer devices to perform the method described in any of the preceding claims.
[0034] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0035] In this invention, by acquiring the set of connected wires and cables of the planar layout equipment and the set of connected equipment of the wires and cables, it is convenient to obtain the connection relationship of each planar layout equipment in the entire automatic fire alarm plan diagram, providing access lines for the planar layout equipment for subsequent access records; at the same time, by sequentially accessing all planar electrical equipment and wires and cables on different loop lines, and sequentially accessing multiple fire terminal boxes, and automatically recording the type and quantity of planar layout equipment, a result dictionary is generated; finally, the automatic fire alarm system diagram is automatically generated through the result dictionary, thereby realizing the automated generation of the automatic fire alarm system diagram, thus solving the technical problem that designers rely on manual visual judgment of the connection relationship between each planar layout equipment and the loop circuit connection relationship in the same fire terminal box, which is prone to omissions or misjudgments, resulting in inaccurate system diagrams. Attached Figure Description
[0036] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be considered 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. In the drawings:
[0037] Figure 1 This is a flowchart illustrating a method for generating a fire alarm system diagram for ring wiring in this embodiment.
[0038] Figure 2 This is a schematic diagram of the automatic fire alarm system with a ring wiring configuration in this embodiment.
[0039] Figure 3This is a schematic diagram of the result dictionary generated in a method for generating a fire alarm system diagram for ring wiring in this embodiment;
[0040] Figure 4 This is a schematic diagram of the adjusted result dictionary in a method for generating a fire alarm system diagram for ring wiring in this embodiment;
[0041] Figure 5 This is a fire alarm system diagram generated in a method for generating a fire alarm system diagram for ring wiring in this embodiment;
[0042] Figure 6 This is a schematic diagram of the system module connection of an automatic fire alarm system diagram generation system for ring wiring in this embodiment;
[0043] Figure 7 This is a schematic diagram of the structure of a computer device in this embodiment. Detailed Implementation
[0044] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0045] In this disclosure, unless otherwise stated, the use of terms such as "first," "second," etc., to describe various elements is not intended to limit the positional, temporal, or importance relationships of these elements; such terms are merely used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of that element, while in other cases, based on the context, they may refer to different instances.
[0046] The terminology used in the description of the various examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context explicitly indicates otherwise, an element may be one or more unless the number of elements is specifically limited. Furthermore, the term "and / or" as used in this disclosure covers any one of the listed items and all possible combinations thereof.
[0047] Example 1
[0048] This embodiment uses a fire alarm system diagram with a ring wiring configuration to automatically generate a fire alarm system diagram. (See attached diagram.) Figure 2As shown, the ring connection method connects the detectors, alarms, linkage modules, etc. in the loop to the fire alarm controller in sequence through the bus, and finally returns to the fire alarm controller to form a ring path.
[0049] Therefore, this technical solution, to generate a fire alarm system diagram with a ring connection, firstly, based on the fire alarm design requirements (i.e., according to existing professional specifications and architectural, structural, water supply and drainage, HVAC, and electrical data), arranges the planar equipment in the building plan and connects the corresponding planar equipment using wires and cables to construct the fire alarm plan. Next, it identifies the graphic information of the planar equipment and the graphic information of the wires and cables in the fire alarm plan. Based on the graphic information of the planar equipment and the graphic information of the wires and cables, it constructs a star-shaped ring topology diagram representing the connection relationship between the planar equipment, using the planar equipment as nodes and the wires and cables between the planar equipment as edges. Specifically, constructing the star-shaped ring topology diagram represents the connection relationship between the planar equipment by: using a fire terminal box as the central node and the planar electrical equipment connected to the central node as child nodes, constructing a star topology diagram; then, in each child node of the star topology diagram, constructing a ring topology structure of the child node and the remaining planar electrical equipment connected to the child node; and obtaining the set of connected wires and cables of the planar equipment and the set of connected devices of the wires and cables from the star-shaped ring topology diagram.
[0050] Based on this, see Figure 1 As shown in the figure, this embodiment provides a method for generating a fire alarm system diagram for ring wiring, the method including:
[0051] S1: Obtain the set of connected wires and cables of the planar layout equipment and the set of connected equipment of the wires and cables, wherein the planar layout equipment includes fire terminal boxes and planar electrical equipment;
[0052] It should be noted that, in this embodiment, the set of connected wires and cables of the planar layout device includes the wires and cables connected to the corresponding planar layout device. The set of connected wires and cables of a planar layout device may contain one wire or cable or multiple wires and cables, and the specific number depends on the connection relationship of the corresponding planar layout device.
[0053] S2: Extract multiple fire terminal boxes with non-empty connected wire and cable sets, and access one wire and cable in the connected wire and cable set of one of the fire terminal boxes, and record the accessed fire terminal box; extract an unaccessed planar electrical device in the connected device set of the accessed wire and cable, and sequentially access and record all planar electrical devices and wires and cables on the loop containing the planar electrical device; after accessing and recording all loops of one fire terminal box, access the next fire terminal box with non-empty connected wire and cable set;
[0054] It should be noted that in this embodiment, there may be fire terminal boxes without wires and cables due to user or designer errors, i.e., fire terminal boxes with empty connected wire and cable sets. Such fire terminal boxes do not need to be added to the system diagram, so they are not processed. At the same time, in this embodiment, a fire terminal box set is constructed in advance to store the extracted fire terminal boxes with non-empty connected wire and cable sets; and an visited set is constructed to record and store the visited fire terminal boxes, planar electrical equipment, and wires and cables.
[0055] Specifically, in this embodiment, multiple fire terminal boxes with non-empty connected wire and cable sets are extracted and stored in the fire terminal box set; then, one fire terminal box in the fire terminal box set is accessed and recorded, and then one wire and cable in the connected wire and cable set of that fire terminal box is accessed; it should be noted that in this embodiment, after accessing and recording one wire and cable in the connected wire and cable set of that fire terminal box, the system returns to that fire terminal box to access other unaccessed wires and cables in its connected wire and cable set;
[0056] Extract an unvisited planar electrical device from the set of connected devices of the visited wires and cables, visit and record the planar electrical device; extract an unvisited wire or cable from the set of connected wires and cables of the planar electrical device. If there is no unvisited planar electrical device in the set of connected devices of the wire or cable, visit and record the wire or cable. At this point, the entire loop has been visited. The set of connected devices of the wire or cable at this point is connected to the first planar electrical device, which means we have returned to the starting node of the loop.
[0057] It should also be noted that after visiting an entire loop, the loop counter automatically counts and eventually automatically generates the number of loops in the fire alarm floor plan.
[0058] If there is an unvisited planar electrical device in the set of connected devices of the wire and cable, then the planar electrical device and the wire and cable are visited and recorded, and the process continues to visit down the set of connected wires and cables of the planar electrical device until there are no unvisited planar electrical devices in the set of connected devices of the visited wires and cables.
[0059] It should be noted that in this embodiment, since the processing object of this solution is a fire alarm floor plan with a ring connection, most of the connected wires and cables of the planar electrical equipment have only two wires and cables (one "head" wire and one "tail" wire and cable). However, a small number of planar electrical equipment have branch lines, that is, their connected wires and cables have more than two wires and cables (one "head" wire and multiple "tail" wires and cables). In this case, the depth-first algorithm is followed. First, the algorithm visits down along one unvisited wire and cable of the planar electrical equipment until there is no unvisited wire and cable in the connected wire and cable set of the last planar electrical equipment on that line. Then, it returns to another unvisited wire and cable of the planar electrical equipment and visits down until there are no unvisited planar electrical equipment in the connected equipment set of the visited wire and cable.
[0060] For example, first, a fire terminal box A1 in the fire terminal box set is accessed and recorded. Then, a wire a1 in the set of connected wires and cables of fire terminal box A1 is accessed and recorded. Next, an unaccessed planar electrical device B1 in the set of connected devices of wire a1 is accessed and recorded. An unaccessed wire b1 is extracted from the set of connected wires and cables of planar electrical device B1. If there is no unaccessed planar electrical device B2 in the set of connected devices of wire b1, then wire b1 is accessed and recorded, thus ending the access and recording of a loop circuit. At the same time, the process returns to fire terminal box A1. If there is no unaccessed wire a2 in the set of connected wires and cables of fire terminal box A1, then fire terminal box A2 in the fire terminal box set is accessed. If there is an unaccessed wire a2 in the set of connected wires and cables of fire terminal box A1, then the access continues along wire a2 according to the above steps until there are no unaccessed wires in the set of connected wires and cables of fire terminal box A1.
[0061] If there is an unvisited planar electrical device B2 in the set of connected devices of wire / cable b1, then wire / cable b1 and planar electrical device B2 are visited and recorded, and the process continues downwards along the set of unvisited wires / cables connected to planar electrical device B2 until there are no unvisited planar electrical devices in the set of connected devices of the visited wires / cables.
[0062] S3: After visiting all fire terminal boxes where the connected wire and cable sets are not empty, based on all the floor plan equipment and wires and cables visited, generate a result dictionary with the type of floor plan equipment as the key and the quantity of each type of floor plan equipment as the value, and use the result dictionary to generate an automatic fire alarm system diagram.
[0063] Specifically, in this embodiment, after accessing all fire terminal boxes whose connected wire and cable sets are not empty, all accessed fire terminal boxes and planar electrical devices are obtained. The planar electrical devices include isolators, smoke detectors, heat detectors, manual alarm buttons, audible and visual alarms, fire hydrant pump start buttons, and fire telephones. Multiple result dictionary keys are set according to the types of all fire terminal boxes and planar electrical devices. The number of all accessed fire terminal boxes and planar electrical devices is counted, and the number of all fire terminal boxes and planar electrical devices is used as the value of the corresponding key.
[0064] For example, in this embodiment, see Figure 3 As shown, the generated dictionary is: {(isolation device, 6), (smoke detector, 14), (audible and visual alarm, 3), (fire telephone, 2), (fire hydrant pump start button, 6), (heat detector, 4), (manual alarm button, 3)}.
[0065] In another embodiment, after generating a result dictionary with the type of planar layout equipment as the key and the quantity of each type of planar layout equipment as the value, the method further includes: adjusting the order of each key in the result dictionary using pre-constructed key-value weights to obtain an adjusted result dictionary.
[0066] It should be noted that in this embodiment, the statistical order and position of each device in the system diagram will vary due to different requirements from different companies, projects, and designers. To meet practical needs, key-value weights are added to the final result dictionary to set the sorting. The specific key-value weights can be determined according to the actual situation, and no further restrictions are imposed here.
[0067] For example, in this embodiment, see Figure 4 As shown, the result dictionary after adjustment using key-value weights is: {(Isolator, 6), (Smoke Detector, 14), (Heat Detector, 4), (Manual Alarm Button, 3), (Audible and Visual Alarm, 3), (Fire Hydrant Pump Start Button, 6), (Fire Telephone, 2)}. Using the adjusted result dictionary, the signal bus, fire telephone line, fire power supply line, and label text for the fire terminal box, isolator equipment, and ring-wire automatic fire alarm system diagram are generated based on user-specified locations. See the generated automatic fire alarm system diagram below. Figure 5 As shown.
[0068] It should also be noted that in a fire alarm system with a ring connection, a short-circuit isolator is required for system protection. Therefore, this technical solution automatically adds a short-circuit isolator to the generated fire alarm system diagram according to the design requirements and generates a short-circuit isolator to the fire power supply. Furthermore, due to the special nature of the ring connection, the signal bus connecting all devices needs to return to the outgoing terminal box through the short-circuit isolator. Therefore, each time a system diagram for each device is generated, the offset distance is accumulated, and finally, the signal bus between the last device and the fire terminal box is connected.
[0069] Example 2
[0070] See Figure 6 As shown, the present invention also provides a fire alarm system diagram generation system for ring wiring, which is used in any of the above-described fire alarm system diagram generation methods for ring wiring, the system comprising:
[0071] The information acquisition module 100 is used to acquire the set of connected wires and cables of the planar layout equipment and the set of connected equipment of the wires and cables, wherein the planar layout equipment includes fire terminal boxes and planar electrical equipment;
[0072] The access search module 200 is used to extract multiple fire terminal boxes with non-empty connected wire and cable sets, access one wire and cable in the connected wire and cable set of one of the fire terminal boxes, and record the accessed fire terminal boxes; extract an unaccessed planar electrical device in the connected device set of the accessed wire and cable, and sequentially access and record all planar electrical devices and wires and cables on the loop line containing the planar electrical device; after accessing and recording all loop lines of one fire terminal box, the next fire terminal box with non-empty connected wire and cable set is accessed.
[0073] The system diagram generation module 300 is used to generate a result dictionary based on all the floor plan equipment and wires and cables visited after accessing all fire terminal boxes with non-empty connected wire and cable sets. The result dictionary is used to generate an automatic fire alarm system diagram.
[0074] It should be noted that the modules in the system of Embodiment 2 correspond to the steps in the method of Embodiment 1. The steps in the method of Embodiment 1 have been described in detail in Embodiment 1, and the module content in the system will not be described in detail in this Embodiment 2.
[0075] Example 3
[0076] See Figure 7As shown, this embodiment also provides a computer device, including a system memory 1005 and a processor 1001. The system memory 1005 stores a computer program, and the processor 1001 executes the computer program to implement the steps of any of the methods described above.
[0077] It should be noted that the processor 1001 is used to execute the steps in the above method embodiments according to the instructions in the program code. Alternatively, when the processor 1001 executes the computer program, it implements the functions of each module / unit in the above system / device embodiments.
[0078] Specifically, in this embodiment, the computer program can be divided into one or more modules / units. One or more modules / units are stored in the system memory 1005 and executed by the processor 1001 to complete this application. One or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the terminal device.
[0079] The terminal device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor 1001 and a system memory 1005. Those skilled in the art will understand that this does not constitute a limitation on the terminal device, which may include more or fewer components than shown, or a combination of certain components, or different components. For example, the terminal device may also include an input / output device 1003, a network access device 1002, a bus 1006, etc.
[0080] The processor 1001 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0081] System memory 1005 can be an internal storage unit of the terminal device, such as a hard drive or RAM. System memory 1005 can also be a storage device 1004 of the terminal device, such as an external hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, or FlashCard. Furthermore, system memory 1005 can include both internal storage units and storage device 1004. System memory 1005 is used to store computer programs and other programs and data required by the terminal device. System memory 1005 can also be used to temporarily store data that has been output or will be output.
[0082] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0083] Example 4
[0084] This embodiment provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described above.
[0085] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof, or any other form of computer-readable storage medium in the art.
[0086] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside within an application-specific integrated circuit (ASIC). In embodiments of the invention, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device.
[0087] Example 5
[0088] This embodiment also provides a computer program product containing instructions that, when executed by a cluster of computer devices, cause the cluster of computer devices to perform the method described in Embodiment 1.
[0089] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for generating a diagram of an automatic fire alarm system for ring wiring, characterized in that, The methods include: Obtain the set of connected wires and cables for the planar layout equipment and the set of connected equipment for the wires and cables, wherein the planar layout equipment includes fire terminal boxes and planar electrical equipment; Extract multiple fire terminal boxes with non-empty connected wire and cable sets, and access one wire and cable in the connected wire and cable set of one of the fire terminal boxes, and record the accessed fire terminal box; extract an unaccessed planar electrical device from the connected device set of the accessed wire and cable, and sequentially access and record all planar electrical devices and wires and cables on the loop containing the planar electrical device; after accessing and recording all loops of one fire terminal box, access the next fire terminal box with non-empty connected wire and cable set; After visiting all fire terminal boxes where the connected wire and cable sets are not empty, a result dictionary is generated based on all the floor plan equipment and wires and cables visited. The result dictionary is used to generate an automatic fire alarm system diagram.
2. The method for generating a fire alarm system diagram for ring wiring according to claim 1, characterized in that, The method also includes: Identify the graphic elements of the equipment and electrical cables in the fire alarm system plan. Based on the graphic information of the planar layout equipment and the graphic information of the wires and cables, a star-shaped ring topology graph representing the connection relationship between the planar layout equipment is constructed, with the planar layout equipment as nodes and the wires and cables between the planar layout equipment as edges. Specifically, constructing a star-shaped ring topology diagram representing the connection relationship between planar equipment involves: taking a fire terminal box as the central node and the planar electrical equipment connected to the central node as child nodes to construct a star-shaped topology diagram; then, in each child node of the star-shaped topology diagram, constructing a ring topology structure of the child node and the remaining planar electrical equipment connected to the child node. Obtain the set of connected wires and cables of the planar equipment from the star-shaped ring topology diagram, as well as the set of equipment connected to the wires and cables.
3. The method for generating a fire alarm system diagram for ring wiring according to claim 1, characterized in that, Extract an unvisited planar electrical device from the set of connected devices of the visited wires and cables, and sequentially visit and record all planar electrical devices and wires and cables on the loop containing that planar electrical device, specifically: Extract an unvisited planar electrical device from the set of connected devices of the visited wires and cables, visit and record that planar electrical device; Extract an unvisited wire or cable from the set of connected wires and cables of the planar electrical device. If there is no unvisited planar electrical device in the set of connected devices of the wire or cable, then visit and record the wire or cable. If there is an unvisited planar electrical device in the set of connected devices of the wire and cable, then the planar electrical device and the wire and cable are visited and recorded, and the process continues to visit down the set of connected wires and cables of the planar electrical device until there are no unvisited planar electrical devices in the set of connected devices of the visited wires and cables.
4. The method for generating a fire alarm system diagram for ring wiring according to claim 1, characterized in that, Based on all the accessed floor plan layout devices and wires and cables, generate a result dictionary with the type of floor plan layout device as the key and the quantity of each type of floor plan layout device as the value, specifically: Retrieve all accessed fire terminal boxes and planar electrical devices, including isolators, smoke detectors, heat detectors, manual alarm buttons, audible and visual alarms, fire hydrant pump start buttons, and fire telephones; and set multiple result dictionary keys according to the types of all fire terminal boxes and planar electrical devices; Count the number of all fire terminal boxes and planar electrical devices accessed, and use the number of all fire terminal boxes and planar electrical devices as the value of the corresponding key.
5. The method for generating a fire alarm system diagram for ring wiring according to claim 1, characterized in that, After generating a dictionary with the type of equipment in the floor plan as the key and the quantity of each type of equipment as the value, the method also includes: The order of each key in the resulting dictionary is adjusted using pre-constructed key-value weights to obtain the adjusted result dictionary.
6. A method for generating a fire alarm system diagram for ring wiring according to claim 2, characterized in that, Before identifying the graphic element information of the equipment layout and the graphic element information of wires and cables in the fire alarm floor plan, the method further includes: Based on the design requirements for automatic fire alarm systems, the equipment is arranged on the building floor plan, and the corresponding equipment is connected by wires and cables to construct the automatic fire alarm floor plan.
7. A fire alarm system diagram generation system for ring wiring, characterized in that, This system is used in the method for generating a fire alarm system diagram for ring wiring as described in any one of claims 1-6, wherein the system comprises: The information acquisition module is used to acquire the set of connected wires and cables of the planar layout equipment and the set of connected equipment of the wires and cables. The planar layout equipment includes fire terminal boxes and planar electrical equipment. The access search module is used to extract multiple fire terminal boxes with non-empty connected wire and cable sets, access one wire and cable in the connected wire and cable set of one of the fire terminal boxes, and record the accessed fire terminal boxes; extract an unaccessed planar electrical device in the connected device set of the accessed wire and cable, and sequentially access and record all planar electrical devices and wires and cables on the loop line containing the planar electrical device; after accessing and recording all loop lines of one fire terminal box, the next fire terminal box with non-empty connected wire and cable set is accessed. The system diagram generation module is used to generate a result dictionary based on all the floor plan equipment and wires and cables visited after accessing all fire terminal boxes with non-empty connected wire and cable sets. The result dictionary is used to generate an automatic fire alarm system diagram.
8. A computer device comprising a system memory and a processor, wherein the system memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 6.
10. A computer program product containing instructions, characterized in that, When the instruction is executed by a cluster of computer devices, the cluster of computer devices causes the cluster of computer devices to perform the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method and equipment for automatically drawing electrical drawing and storage medium
CN114445518A
Method and system for automatically generating automatic fire alarm system diagram based on BIM (Building Information Modeling)
CN118468494A