Automatic fire alarm system diagram generation method and system for annular wiring

By obtaining and recording the equipment connection relationships in the automatic fire alarm system diagram and using the resulting dictionary to generate the automatic fire alarm system diagram, the problem of designers manually judging the ring wiring connection relationships and easily missing or misjudging them is solved, and the automatic generation and accuracy of the system diagram are achieved.

CN120671307AActive Publication Date: 2025-09-19CHINA SOUTHWEST ARCHITECTURAL DESIGN & RES INST CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510793641.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-19
Estimated Expiration
2045-06-13

AI Technical Summary

Technical Problem

In building electrical design, designers use the naked eye to judge the equipment connection relationship in the ring-connected automatic fire alarm system diagram, which is prone to omission or misjudgment, resulting in inaccurate system diagrams.

Method used

By obtaining the connected wire and cable sets and equipment sets of the plane layout equipment, automatically recording the types and quantities of equipment, using the result dictionary to generate the automatic fire alarm system diagram, constructing a star-shaped ring topology diagram, and realizing the automatic generation of equipment connection relationships.

Benefits of technology

The automatic generation of fire alarm system diagrams is realized, avoiding missed or misjudgment caused by manual judgment and ensuring the accuracy of the system diagrams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120671307A_ABST
    Figure CN120671307A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic fire alarm system diagram generation method and system for annular wiring, and particularly relates to the technical field of engineering system diagram generation, and the technical key points are as follows: extracting an unaccessed planar electrical device from a connected device set of accessed wires and cables; accessing and recording all the planar electrical equipment and wires and cables on the annular line containing the planar electrical equipment in sequence; after all the annular lines of one fire-fighting terminal box are accessed and recorded, accessing the next fire-fighting terminal box of which the connected wire and cable set is not empty; after all the fire-fighting terminal boxes of which the connected wire and cable sets are not empty are accessed, a result dictionary with the types of the plane arrangement devices as keys and the number of the types of the plane arrangement devices as values is generated based on all the accessed plane arrangement devices and the wires and cables, and an automatic fire alarm system diagram is generated through the result dictionary.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of engineering system diagram generation, and in particular to a method and system for generating a fire automatic alarm system diagram for ring wiring. Background Art

[0002] In building electrical design, the construction drawings for electrical fire alarm systems need to include floor plans of automatic fire alarms on each floor and corresponding automatic fire alarm system diagrams. The floor plans are used to arrange terminal points and the connection relationships between each terminal device, while the corresponding system diagrams are used to understand the components of the automatic fire alarm system diagram and clarify the control relationships between each device. Although the traditional tree-type wiring automatic fire alarm system has the advantages of economy and efficiency, more and more buildings, such as airports and hotels, choose ring-type wiring automatic fire alarm systems for reliability.

[0003] However, in the actual building electrical design process, designers usually use manual CAD copying to compare the architectural, structural, water supply and drainage, and HVAC professional data with the fire alarm plan point by point, judge the connection relationship between the plan equipment by visual observation, and sort out the logical relationship between the equipment in the fire alarm system diagram in their minds. However, long-term manual comparison is prone to missed judgments or misjudgments. At the same time, because of the ring wiring form, designers need to judge which of the multiple loop outputs of the same fire terminal box belong to the same ring line, and then manually draw a rough fire alarm system diagram. Finally, according to the relationship between the output lines of each fire terminal box on the fire alarm plan, the number of equipment is counted to modify the corresponding number of equipment in the fire alarm system diagram.

[0004] Therefore, the present invention aims to provide a method and system for generating a fire alarm system diagram for ring wiring to solve the above-mentioned related problems. Summary of the Invention The technical problem to be solved by the present invention is that designers use the naked eye to judge the connection relationship between each plane layout device and the connection relationship of the loop line in the same fire terminal box, which is prone to missed judgment or misjudgment, resulting in an inaccurate system diagram. The purpose is to provide a fire alarm system diagram generation method and system for ring wiring. By obtaining the connected wire and cable set of the plane layout device and the connected device set of the wire and cable, it is convenient to obtain the connection relationship of each plane layout device in the entire fire alarm plan, and provide the plane layout device access line for subsequent access records; at the same time, by sequentially accessing all the plane electrical equipment and wires and cables on different ring lines, and sequentially accessing multiple fire terminal boxes, and automatically recording the type and quantity of the plane layout equipment to generate a result dictionary; finally, the fire alarm system diagram is automatically generated through the result dictionary, thereby realizing the automatic generation of the fire alarm system diagram, thereby solving the technical problem that designers use the naked eye to judge the connection relationship between each plane layout device and the loop line connection relationship in the same fire terminal box, which is prone to missed judgment or misjudgment, resulting in an inaccurate system diagram.

[0005] The present invention is achieved through the following technical solutions: A method for generating a fire automatic alarm system diagram for ring wiring, the method comprising: Obtaining a set of connected wires and cables of planarly arranged equipment and a set of connected equipment of the wires and cables, wherein the planarly arranged equipment includes a fire terminal box and planar electrical equipment; Extract multiple fire terminal boxes whose connected wire and cable sets are not empty, access a wire and cable in the connected wire and cable set of one of the fire terminal boxes, and record the visited fire terminal box; extract an unvisited planar electrical device from the connected device set of the visited wire and cable, and sequentially access and record all planar electrical devices and wires and cables on the ring line containing the planar electrical device; after accessing and recording all the ring lines of one of the fire terminal boxes, access the next fire terminal box whose connected wire and cable set is not empty; After visiting all fire terminal boxes whose connected wire and cable collections are not empty, based on all the visited floor plan equipment and wires and cables, a result dictionary is generated with the floor plan equipment type as the key and the number of floor plan equipment of each type as the value, and the result dictionary is used to generate the automatic fire alarm system diagram.

[0006] Furthermore, the method further comprises: Identify the graphic element information of the layout equipment and the graphic element information of the wires and cables in the automatic fire alarm plan; Based on the graphic element information of the plane layout equipment and the graphic element information of the wires and cables, a star-shaped ring topology diagram representing the connection relationship between the plane layout equipment is constructed with the plane layout equipment as nodes and the wires and cables between the plane layout equipment as edges; Among them, a star-shaped ring topology diagram is constructed to represent the connection relationship between the plane layout equipment. Specifically, a fire terminal box is used as the central node, and the plane electrical equipment connected to the central node is used as the child node to construct a star topology diagram; then, in each child node of the star topology diagram, a ring topology structure of the child node and the remaining plane electrical equipment connected to the child node is constructed; Obtain the connected wire and cable sets of the devices in the plan layout and the connected device sets of the wires and cables from the star-ring topology diagram.

[0007] Furthermore, an unvisited planar electrical device is extracted from the connected device set of the visited wires and cables, and all planar electrical devices and wires and cables on the ring line containing the planar electrical device are sequentially visited and recorded, specifically: Extracting an unvisited planar electrical device from the connected device set of the visited wire and cable, and visiting and recording the planar electrical device; Extracting an unvisited wire and cable from the connected wire and cable set of the planar electrical device; if the unvisited planar electrical device does not exist in the connected device set of the wire and cable, accessing and recording the wire and cable; If there is an unvisited planar electrical device in the connected device set of the wire and cable, the planar electrical device and the wire and cable are visited and recorded, and the access is continued downward along the unvisited wires and cables in the connected device set of the planar electrical device until there is no unvisited planar electrical device in the connected device set of the visited wire and cable.

[0008] Furthermore, based on all the accessed layout equipment and wires and cables, a result dictionary is generated with the layout equipment type as the key and the number of each type of layout equipment as the value, specifically: Obtain all accessed fire terminal boxes and flat electrical equipment, including isolators, smoke detectors, heat detectors, manual alarm buttons, sound and light alarms, fire hydrant pump start buttons, and fire telephones. Set multiple result dictionary keys based on the types of all fire terminal boxes and flat electrical equipment. Count the number of all fire terminal boxes and flat electrical equipment visited, and use the number of all fire terminal boxes and flat electrical equipment as the value of the corresponding key.

[0009] Furthermore, after generating a result dictionary with the types of floor plan devices as keys and the number of each type of floor plan devices as values, the method further includes: The order of the keys in the result dictionary is adjusted using the pre-built key-value weights to obtain an adjusted result dictionary.

[0010] Furthermore, before identifying the graphic element information of the planar layout equipment and the graphic element information of the wires and cables in the automatic fire alarm plan, the method further includes: Based on the design requirements of the automatic fire alarm, the floor plan equipment is arranged in the building plan, and the corresponding floor plan equipment is connected with wires and cables to construct the automatic fire alarm floor plan.

[0011] The present invention further provides a system for generating a diagram of an automatic fire alarm system for ring wiring, the system being used in any one of the above-mentioned methods for generating a diagram of an automatic fire alarm system for ring wiring, the system comprising: An information acquisition module is used to acquire a set of connected wires and cables of planarly arranged equipment and a set of connected equipment of the wires and cables, wherein the planarly arranged equipment includes a fire terminal box and planar electrical equipment; The access search module is used to extract multiple fire terminal boxes whose connected wire and cable sets are not empty, and access a 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 ring line containing the planar electrical device; after accessing and recording all the ring lines of one of the fire terminal boxes, access the next fire terminal box whose connected wire and cable set is not empty; The system diagram generation module is used to generate a result dictionary with the type of planar layout equipment as the key and the number of planar layout equipment of each type as the value based on all the planar layout equipment and wires and cables visited after visiting all the fire terminal boxes whose connected wire and cable sets are not empty, and use the result dictionary to generate a fire automatic alarm system diagram.

[0012] The present invention also provides a computer device, comprising a system memory and a processor, wherein the system memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0013] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the methods described above are implemented.

[0014] The present invention also provides a computer program product comprising instructions, which, when executed by a computer device cluster, enables the computer device cluster to perform any of the above methods.

[0015] Compared with the prior art, the present invention has the following advantages and beneficial effects: In the present invention, by obtaining the connected wire and cable sets of the planar layout equipment and the connected equipment sets of the wires and cables, it is convenient to obtain the connection relationship of each planar layout equipment in the entire fire automatic alarm plan, and provide the planar layout equipment access line for subsequent access records; at the same time, by sequentially accessing all the planar electrical equipment and wires and cables on different ring lines, and sequentially accessing multiple fire terminal boxes, and automatically recording the types and quantities of the planar layout equipment, a result dictionary is generated; finally, the fire automatic alarm system diagram is automatically generated through the result dictionary, thereby realizing the automatic generation of the fire automatic alarm system diagram, thereby solving the technical problem that designers use manual naked eye to judge the connection relationship between each planar layout equipment and the loop connection relationship in the same fire terminal box, which is prone to missed judgment or misjudgment, resulting in inaccurate system diagrams. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the examples. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be considered as limiting the scope. A person of ordinary skill in the art can also derive other relevant drawings based on these drawings without inventive effort. In the drawings: Figure 1 1 is a flow chart of a method for generating a ring-connected automatic fire alarm system diagram in this embodiment; Figure 2 This is a schematic plan view of the automatic fire alarm system with ring wiring in this embodiment; Figure 3 This is a schematic diagram of a result dictionary generated in a method for generating a diagram of an automatic fire alarm system with ring wiring according to this embodiment; Figure 4 This is a schematic diagram of the result dictionary after adjustment in a method for generating a diagram of an automatic fire alarm system with ring wiring according to this embodiment; Figure 5 This is the automatic fire alarm system diagram generated in the method for generating an automatic fire alarm system diagram for ring wiring in this embodiment; Figure 6 This is a schematic diagram showing the connection of system modules of a fire automatic alarm system diagram generation system for ring wiring in this embodiment; Figure 7 This is a structural diagram of a computer device in this embodiment. DETAILED DESCRIPTION

[0017] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0018] In this disclosure, unless otherwise specified, the use of terms such as "first" and "second" to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, while in some cases, based on the context of the description, they may also refer to different instances.

[0019] The terms used in the descriptions of various examples in this disclosure are for the purpose of describing specific examples only and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element may be one or more. In addition, the term "and / or" used in this disclosure encompasses any one and all possible combinations of the listed items.

[0020] Example 1 This embodiment is based on the fire automatic alarm plan diagram in the form of ring wiring to automatically generate the fire automatic alarm system diagram, see Figure 2 As shown, the ring connection method is to connect the detectors, alarms, linkage modules, etc. in the loop to the fire alarm controller through the bus in sequence, and finally return to the fire alarm controller to form a ring path.

[0021] Therefore, the present technical solution is to complete the generation of a fire alarm system diagram in the form of a ring wiring. First, based on the fire alarm design requirements (i.e., in accordance with the professional specifications in the existing technology and the architectural, structural, water supply and drainage, HVAC and electrical data), the planar layout equipment is arranged in the building plan, and the corresponding planar layout equipment is connected with wires and cables to construct the fire alarm plan; then, the graphic element information of the planar layout equipment and the graphic element information of the wires and cables in the fire alarm plan are identified; based on the graphic element information of the planar layout equipment and the graphic element information of the wires and cables, a star-shaped ring topology diagram 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; wherein, the star-shaped ring topology diagram representing the connection relationship between the planar layout equipment is constructed as follows: a fire terminal box is taken as the central node, and the planar electrical equipment connected to the central node is taken as the child node to construct a star topology diagram; then, in each child node of the star topology diagram, a ring topology structure of the child node and the remaining planar electrical equipment connected to the child node is constructed; the set of connected wires and cables of the planar layout equipment and the set of connected equipment of the wires and cables are obtained from the star-shaped ring topology diagram; Based on this, see Figure 1 As shown, this embodiment provides a method for generating a fire automatic alarm system diagram for ring wiring, the method comprising: S1: Obtaining a set of connected wires and cables of planarly arranged equipment and a set of connected equipment of the wires and cables, wherein the planarly arranged equipment includes a fire terminal box and planar electrical equipment; It should be noted that, in this embodiment, the connected wire and cable set of the plane layout device includes the wires and cables connected to the corresponding plane layout device. A connected wire and cable set of a plane layout device may have one wire and cable or multiple wires and cables. The specific number depends on the connection relationship of the corresponding plane layout device.

[0022] S2: Extract multiple fire terminal boxes whose connected wire and cable sets are not empty, and access a wire and cable in the connected wire and cable set of one of the fire terminal boxes, and record the visited fire terminal box; extract an unvisited 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 ring line containing the planar electrical device; after accessing and recording all the ring lines of one of the fire terminal boxes, access the next fire terminal box whose connected wire and cable set is not empty; It should be noted that in this embodiment, there may be fire terminal boxes without wires and cables due to user or designer's misoperation, that is, 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 such fire terminal boxes are not processed; at the same time, in this embodiment, a fire terminal box set is constructed in advance, which is used to store the extracted multiple fire terminal boxes whose connected wire and cable sets are not empty; and an visited set is constructed to record and store the visited fire terminal boxes, planar electrical equipment and wires and cables.

[0023] Specifically, in this embodiment, multiple fire terminal boxes whose connected wire and cable sets are not empty 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 the 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 the fire terminal box, the fire terminal box is returned to access other unaccessed wires and cables in its connected wire and cable set; Extract an unvisited planar electrical device from the connected device set of the visited wire and cable, visit and record the planar electrical device; extract an unvisited wire and cable from the connected wire and cable set of the planar electrical device, and if there is no unvisited planar electrical device in the connected device set of the wire and cable, visit and record the wire and cable. At this time, the entire ring line has been visited, and the connected device set of the wire and cable is now connected to the first planar electrical device, that is, returning to the starting node of the ring line; At the same time, it should be noted that after accessing a whole ring line, the ring counter automatically counts and eventually automatically generates the number of ring lines of the automatic fire alarm plan.

[0024] If there is an unvisited planar electrical device in the connected device set of the wire and cable, the planar electrical device and the wire and cable are visited and recorded, and the access is continued downward along the unvisited wires and cables in the connected device set of the planar electrical device until there is no unvisited planar electrical device in the connected device set of the visited wire and cable.

[0025] It should be noted that in this embodiment, since the processing object of this scheme is the fire automatic alarm plan with ring wiring, the connected wire and cable sets of most planar electrical equipment have only two wires and cables (one "head end" wire and cable, and one "tail end" wire and cable), but a small number of planar electrical equipment have branch lines, that is, their connected wire and cable sets have more than two wires and cables (one "head end" wire and cable, and multiple "tail end" wire and cables). At this time, the depth-first algorithm is followed, and an unvisited wire and cable of the planar electrical equipment is first visited downward until there is no unvisited wire and cable position in the connected wire and cable set of the last planar electrical equipment on the line, and then return to another unvisited wire and cable of the planar electrical equipment and visit downward until there is no unvisited planar electrical equipment in the connected equipment set of the visited wire and cable.

[0026] Exemplarily, first access and record a fire terminal box A1 in the fire terminal box set, then access and record a wire and cable a1 in the connected wire and cable set of the fire terminal box A1, then access and record an unvisited planar electrical device B1 in the connected device set of the wire and cable a1, extract an unvisited wire and cable b1 from the connected wire and cable set of the planar electrical device B1, if there is no unvisited planar electrical device B2 in the connected device set of the wire and cable b1, then access and record the wire and cable b1, thus ending the access and recording of a ring circuit; at the same time, return to the fire terminal box A1, if there is no unvisited wire and cable a2 in the connected wire and cable set of the fire terminal box A1, then access the fire terminal box A2 in the fire terminal box set; if there is an unvisited wire and cable a2 in the connected wire and cable set of the fire terminal box A1, then continue accessing along the wire and cable a2 according to the above steps until there are no unvisited wires and cables in the connected wire and cable set of the fire terminal box A1; If there is an unvisited planar electrical device B2 in the connected device set of the wire and cable b1, then the wire and cable b1 and the planar electrical device B2 are visited and recorded, and the unvisited wires and cables in the connected wire and cable set of the planar electrical device B2 are continued to be visited downward until there are no unvisited planar electrical devices in the connected device set of the visited wire and cable.

[0027] S3: After visiting all fire terminal boxes whose connected wire and cable sets are not empty, based on all the visited floor plan equipment and wires and cables, generate a result dictionary with the floor plan equipment type as the key and the number of floor plan equipment of each type as the value, and use the result dictionary to generate an automatic fire alarm system diagram.

[0028] Specifically, in this embodiment, after visiting all fire terminal boxes whose connected wire and cable collections are not empty, all fire terminal boxes and planar electrical equipment visited are obtained, where the planar electrical equipment includes isolators, smoke detectors, temperature detectors, manual alarm buttons, sound and light alarms, fire hydrant pump start buttons and fire telephones; and multiple result dictionary keys are set according to the types of all fire terminal boxes and planar electrical equipment; the number of all fire terminal boxes and planar electrical equipment visited is counted, and the number of all fire terminal boxes and planar electrical equipment is used as the value of the corresponding key.

[0029] For example, in this embodiment, see Figure 3 As shown, the resulting dictionary is: {(isolator, 6), (smoke detector, 14), (sound and light alarm, 3), (fire phone, 2), (fire hydrant pump start button, 6), (heat detector, 4), (manual alarm button, 3)}.

[0030] In another embodiment, after generating a result dictionary with the types of floor plan devices as keys and the number of each type of floor plan devices as values, the method further includes: adjusting the order of each key in the result dictionary using pre-built key value weights to obtain an adjusted result dictionary.

[0031] It should be noted that in this embodiment, due to different requirements of different companies, projects, and designers, the statistical order and position of each device in the system diagram may vary. To meet practical needs, key weights are added to the final result dictionary to set the sorting. The specific key weights can be determined according to actual conditions and are not subject to excessive restrictions here.

[0032] For example, in this embodiment, see Figure 4 As shown in the figure, the result dictionary after key-value weight adjustment is: {(isolator, 6), (smoke detector, 14), (heat detector, 4), (manual alarm button, 3), (sound and light alarm, 3), (fire hydrant pump start button, 6), (fire telephone, 2)}; using the adjusted result dictionary, the fire terminal box, isolator equipment, and the signal bus, fire telephone line, fire power line and annotation text of the ring wiring automatic fire alarm system diagram are generated based on the user-specified location. The generated automatic fire alarm system diagram can be seen in Figure 5 shown.

[0033] At the same time, it should be noted that in the automatic fire alarm system with a ring wiring form, a short-circuit isolator needs to be added to protect the system. Therefore, this technical solution automatically adds a short-circuit isolator to the generated automatic fire alarm system diagram according to the design requirements, and generates a short-circuit isolator to the fire power supply; at the same time, due to the special nature of the ring wiring form, the signal bus connecting all devices needs to pass through the short-circuit isolator back to the outlet terminal box. Therefore, each time the system diagram of 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.

[0034] Example 2 See also Figure 6 As shown, the present invention further provides a system for generating a fire alarm system diagram for a ring connection, the system being used in any one of the above-mentioned methods for generating a fire alarm system diagram for a ring connection, the system comprising: An information acquisition module 100 is used to acquire a set of connected wires and cables of a planarly arranged device and a set of connected devices of the wires and cables, wherein the planarly arranged device includes a fire terminal box and planar electrical equipment; The access search module 200 is used to extract multiple fire terminal boxes whose connected wire and cable sets are not empty, and access a 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 ring line containing the planar electrical device; after accessing and recording all ring lines of one of the fire terminal boxes, access the next fire terminal box whose connected wire and cable set is not empty; The system diagram generation module 300 is used to generate a result dictionary with the type of planar layout equipment as the key and the number of planar layout equipment of each type as the value after visiting all fire terminal boxes whose connected wire and cable collections are not empty, based on all the planar layout equipment and wires and cables visited, and use the result dictionary to generate an automatic fire alarm system diagram.

[0035] It should be noted that the modules in the system of Example 2 correspond to the steps in the method of Example 1. The steps in the method of Example 1 have been described in detail in Example 1, and the contents of the modules in the system will not be described in detail in this Example 2.

[0036] Example 3 See also Figure 7 As shown, this embodiment further provides a computer device, including a system memory 1005 and a processor 1001, wherein the system memory 1005 stores a computer program, and the processor 1001 implements the steps of any of the above methods when executing the computer program.

[0037] It should be noted that the processor 1001 is configured to execute the steps of the above method embodiments according to the instructions in the program code. Alternatively, the processor 1001 implements the functions of the modules / units in the above system / device embodiments when executing the computer program.

[0038] Specifically, in this embodiment, the computer program may be divided into one or more modules / units, one or more modules / units being stored in the system memory 1005 and executed by the processor 1001 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.

[0039] The terminal device may be a computing device such as a desktop computer, laptop, PDA, or cloud server. The terminal device may include, but is not limited to, a processor 1001 and a system memory 1005. Those skilled in the art will appreciate that this does not limit the terminal device and 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, and the like.

[0040] The processor 1001 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0041] The system memory 1005 can be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The system memory 1005 can also be the storage device 1004 of the terminal device, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the terminal device. Furthermore, the system memory 1005 can also include both the internal storage unit of the terminal device and the storage device 1004. The system memory 1005 is used to store computer programs and other programs and data required by the terminal device. The system memory 1005 can also be used to temporarily store data that has been output or is about to be output.

[0042] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0043] Example 4 This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of any one of the above methods are implemented.

[0044] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, system or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with 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), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art.

[0045] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In an embodiment of the present invention, a 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.

[0046] Example 5 This embodiment further provides a computer program product comprising instructions. When the instructions are executed by a computer device cluster, the computer device cluster executes the method described in Embodiment 1.

[0047] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method 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 in the scope of protection of the present invention.

Claims

1. A method for generating a fire alarm system diagram for a ring connection, characterized in that: Methods include: Obtaining a set of connected wires and cables of planarly arranged equipment and a set of connected equipment of the wires and cables, wherein the planarly arranged equipment includes a fire terminal box and planar electrical equipment; Extract multiple fire terminal boxes whose connected wire and cable sets are not empty, access a wire and cable in the connected wire and cable set of one of the fire terminal boxes, and record the visited fire terminal box; extract an unvisited planar electrical device from the connected device set of the visited wire and cable, and sequentially access and record all planar electrical devices and wires and cables on the ring line containing the planar electrical device; after accessing and recording all the ring lines of one of the fire terminal boxes, access the next fire terminal box whose connected wire and cable set is not empty; After visiting all fire terminal boxes whose connected wire and cable collections are not empty, based on all the visited floor plan equipment and wires and cables, a result dictionary is generated with the floor plan equipment type as the key and the number of floor plan equipment of each type as the value, and the result dictionary is used to generate the automatic fire alarm system diagram.

2. A 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 element information of the layout equipment and the graphic element information of the wires and cables in the automatic fire alarm plan; Based on the graphic element information of the plane layout equipment and the graphic element information of the wires and cables, a star-shaped ring topology diagram representing the connection relationship between the plane layout equipment is constructed with the plane layout equipment as nodes and the wires and cables between the plane layout equipment as edges; Among them, a star-shaped ring topology diagram is constructed to represent the connection relationship between the plane layout equipment. Specifically, a fire terminal box is used as the central node, and the plane electrical equipment connected to the central node is used as the child node to construct a star topology diagram; then, in each child node of the star topology diagram, a ring topology structure of the child node and the remaining plane electrical equipment connected to the child node is constructed; Obtain the connected wire and cable sets of the devices in the plan layout and the connected device sets of the wires and cables from the star-ring topology diagram.

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 connected device set of the visited wires and cables, and sequentially visit and record all planar electrical devices and wires and cables on the ring line containing the planar electrical device, specifically: Extracting an unvisited planar electrical device from the connected device set of the visited wire and cable, and visiting and recording the planar electrical device; Extracting an unvisited wire and cable from the connected wire and cable set of the planar electrical device; if the unvisited planar electrical device does not exist in the connected device set of the wire and cable, accessing and recording the wire and cable; If there is an unvisited planar electrical device in the connected device set of the wire and cable, the planar electrical device and the wire and cable are visited and recorded, and the access is continued downward along the unvisited wires and cables in the connected device set of the planar electrical device until there is no unvisited planar electrical device in the connected device set of the visited wire and cable.

4. The method for generating a fire alarm system diagram for ring wiring according to claim 1, characterized in that: Based on all the floor plan equipment and wires and cables accessed, a result dictionary is generated with the floor plan equipment type as the key and the quantity of each type of floor plan equipment as the value, specifically: Obtain all accessed fire terminal boxes and flat electrical equipment, including isolators, smoke detectors, heat detectors, manual alarm buttons, sound and light alarms, fire hydrant pump start buttons, and fire telephones. Set multiple result dictionary keys based on the types of all fire terminal boxes and flat electrical equipment. Count the number of all fire terminal boxes and flat electrical equipment visited, and use the number of all fire terminal boxes and flat electrical equipment 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 result dictionary with the type of floor plan equipment as a key and the quantity of each type of floor plan equipment as a value, the method further includes: The order of the keys in the result dictionary is adjusted using the pre-built key-value weights to obtain an adjusted result dictionary.

6. The 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 planar layout equipment and the graphic element information of the wires and cables in the automatic fire alarm plan, the method further includes: Based on the design requirements of the automatic fire alarm, the floor plan equipment is arranged in the building plan, and the corresponding floor plan equipment is connected with 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: The system is used in a method for generating a fire automatic alarm system diagram for ring wiring according to any one of claims 1 to 6, and the system comprises: An information acquisition module is used to acquire a set of connected wires and cables of planarly arranged equipment and a set of connected equipment of the wires and cables, wherein the planarly arranged equipment includes a fire terminal box and planar electrical equipment; The access search module is used to extract multiple fire terminal boxes whose connected wire and cable sets are not empty, and access a 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 ring line containing the planar electrical device; after accessing and recording all the ring lines of one of the fire terminal boxes, access the next fire terminal box whose connected wire and cable set is not empty; The system diagram generation module is used to generate a result dictionary with the type of planar layout equipment as the key and the number of planar layout equipment of each type as the value based on all the planar layout equipment and wires and cables visited after visiting all the fire terminal boxes whose connected wire and cable sets are not empty, and use the result dictionary to generate a fire automatic alarm system diagram.

8. A computer device comprising a system memory and a processor, wherein the system memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising instructions, characterized in that When the instructions are executed by a computer device cluster, the computer device cluster is caused to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Debugging method for fire-fighting coordinated control system of high-rise residential community

    CN103186135A

  • Method and equipment for automatically drawing electrical drawing and storage medium

    CN114445518A

  • Method for automated inspection of fire alarm system

    CN116018625A

  • Method and system for automatically generating automatic fire alarm system diagram based on BIM (Building Information Modeling)

    CN118468494A

  • Alarm check valve that allows self-cleaning of foreign substances

    KR102604391B1