Fire-fighting linkage control method and device, electronic equipment and storage medium
By obtaining the linkage relationship structure linkage list and automatically determining the value of the linkage control object based on the results of the target linkage expression members, the problem of low automation of existing fire linkage control technology is solved, and intelligent control of fire linkage is realized.
Patent Information
- Application Number
- CN202411737305.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-04-18
AI Technical Summary
The existing fire linkage control technology relies too much on human control, resulting in a lower degree of automation.
By obtaining the linkage relationship structure linkage list, the linkage control needs to be automatically determined based on the results of the target linkage expression members, and the value of the target linkage control object is set to achieve automatic linkage control.
The degree of automation of fire linkage control has been improved, intelligent control of fire linkage has been realized, and the level of automation and intelligence of the system has been enhanced.
Smart Images

Figure CN119846995A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fire control technology, and in particular to a fire linkage control method, device, electronic equipment and storage medium. Background Art
[0002] Fire linkage control is a series of automatic controls after the fire alarm is triggered. Fire linkage control can ensure the safety of life and property. Therefore, it is particularly important to implement a fire linkage control method.
[0003] In the related art, when a fire alarm is performed, it is usually necessary to manually determine the components of the linkage control and manually trigger these components to realize the fire linkage control. However, the above fire linkage control is overly dependent on human control, resulting in a low degree of automation of the fire linkage control. Summary of the invention
[0004] The present invention provides a fire linkage control method, device, electronic equipment and storage medium, which are used to solve the defect of low automation degree of fire linkage control in the prior art.
[0005] The present invention provides a fire linkage control method, comprising the following steps.
[0006] Acquire a linkage relationship structure linked list, wherein the linkage relationship structure linked list includes element information related to fire linkage, and the element information includes a linkage control object member and a linkage expression member; In the case where it is determined that linkage control is required based on the result of the target linkage expression member, setting the value of the target linkage control object member corresponding to the target linkage expression member; Determining a target linkage control object based on the numerical value of the target linkage control object member; The target linkage control object is subjected to linkage control.
[0007] According to a fire linkage control method provided by an embodiment of the present invention, the element information further includes a timed start member and a timed shut down member; The performing linkage control on the target linkage control object includes: In the case where the numerical representation of the target timed start member corresponding to the target linkage expression member requires timed start linkage control, when the start timing duration corresponding to the numerical value of the target timed start member arrives, the target linkage control object is started; In the case where the numerical representation of the target timed closing member corresponding to the target linkage expression member requires timed closing linkage control, when the closing timing duration corresponding to the numerical value of the target timed closing member arrives, the target linkage control object is closed.
[0008] According to a fire linkage control method provided by an embodiment of the present invention, the element information further includes a feedback timeout member and a feedback expression member; the method further includes: In the case where the numerical representation of the target feedback timeout member corresponding to the target linkage expression member needs to be feedback detected, the numerical value of the target feedback timeout member and the result of the target feedback expression member corresponding to the target linkage expression member are added to the feedback detection structure linked list; Traversing the values of the target feedback timeout members in the feedback detection structure linked list; Within the feedback detection duration represented by the numerical value of the target feedback timeout member in the feedback detection structure linked list, detecting the result of the target feedback expression member in the feedback detection structure linked list; When the result of the target feedback expression member in the feedback detection structure linked list is equal to a preset value, it is determined that the linkage control of the target linkage control object is successful.
[0009] According to a fire linkage control method provided by an embodiment of the present invention, the element information further includes linkage successful processing members; The method further comprises: When it is determined that the linkage control of the target linkage control object is successful, an operation corresponding to the value of the target linkage success processing member corresponding to the target linkage expression member is executed.
[0010] According to a fire linkage control method provided by an embodiment of the present invention, the element information further includes linkage successful processing members; The method further comprises: When the numerical representation of the target feedback timeout member corresponding to the target linkage expression member does not need feedback detection, the operation corresponding to the numerical value of the target linkage successful processing member corresponding to the target linkage expression member is performed.
[0011] According to a fire linkage control method provided by an embodiment of the present invention, the element information further includes a linkage feedback timeout processing member; the method further includes: When the result of the target feedback expression member in the feedback detection structure linked list is not equal to the preset value, it is determined that the linkage control of the target linkage control object has failed, and the operation corresponding to the value of the target linkage feedback timeout processing member corresponding to the target linkage expression member is executed.
[0012] According to a fire linkage control method provided by an embodiment of the present invention, the step of obtaining a linkage relationship structure linked list includes: Loading a database file, wherein the database file is obtained by converting the linkage configuration file into a new format; The database file is parsed to obtain the linkage relationship structure linked list.
[0013] The present invention also provides a fire linkage control device, comprising the following modules: A first acquisition unit is used to acquire a linkage relationship structure linked list, wherein the linkage relationship structure linked list includes element information related to fire linkage, and the element information includes a linkage control object member and a linkage expression member; A second acquisition unit is used to set a value of a target linkage control object member corresponding to the target linkage expression member when it is determined that linkage control needs to be performed based on the result of the target linkage expression member; A first determining unit, configured to determine a target linkage control object based on a numerical value of the target linkage control object member; A control unit is used to perform linkage control on the target linkage control object.
[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any of the fire linkage control methods described above is implemented.
[0015] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the fire linkage control method as described above is implemented.
[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the fire linkage control method as described above is implemented.
[0017] The fire linkage control method, device, electronic device and storage medium provided by the embodiment of the present invention obtain a linkage relationship structure linked list, and when it is determined that linkage control is required based on the result of the target linkage expression member in the linkage relationship structure linked list, obtain the value of the target linkage control object member in the linkage relationship structure linked list; determine the target linkage control object based on the value of the target linkage control object member, and perform linkage control on the target linkage control object. It can be seen that the present invention can automatically determine whether linkage control is required and the linkage control object that needs linkage control based on the value of the target linkage control object member in the linkage relationship structure linked list and the result of the target linkage expression member, thereby realizing automatic control of fire linkage, thereby improving the degree of automation of fire linkage control, that is, realizing the intelligence of fire linkage control. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 It is a block diagram of the fire linkage control provided by an embodiment of the present invention.
[0020] Figure 2 It is a schematic diagram of program deployment provided by an embodiment of the present invention.
[0021] Figure 3 It is one of the flow charts of the fire linkage control method provided in the embodiment of the present invention.
[0022] Figure 4 It is a linkage analysis flow chart provided by an embodiment of the present invention.
[0023] Figure 5 This is the second flow chart of the fire linkage control method provided in the embodiment of the present invention.
[0024] Figure 6 It is a schematic diagram of the fire linkage control process provided by an embodiment of the present invention.
[0025] Figure 7 It is a schematic diagram of the fire linkage feedback process provided by an embodiment of the present invention.
[0026] Figure 8 It is a structural schematic diagram of a fire linkage control device provided in an embodiment of the present invention.
[0027] Fig. 9 It is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] OPC Unified Architecture (OPC UA) is an open communication standard that includes an information model for data transmission. It is open, platform-independent, and easily extensible, and can be used for data storage and transmission. In a client / server (C / S) system, information is transmitted using OPC UA and vendor-defined data types. An OPC UA server defines object nodes that can be dynamically discovered by an OPC UA client. OPC UA object nodes are used to define instances of information, types of instances, and data types. An OPC UA client can call request or response services to perform specific tasks on one or more nodes of an OPC UA server and return a response. An OPC UA client also obtains notifications from an OPC UA server, including events, alarms, data changes, and program outputs, by calling subscription services.
[0030] Figure 1 is a block diagram of the fire linkage control provided by an embodiment of the present invention, such as Figure 1 As shown, the present invention realizes fire linkage control based on OPC UA technology, and the program is composed of linkage logic analysis, linkage control, linkage feedback, OPC UA client and OPC UA server. The OPC UA client communicates with the OPC UA server through the OPC UA protocol. The OPC UA server is used to control the fire equipment and collect data from various points, for example, collect the value of the remote reset point, the value of the reset forwarding point, the value of the BAS fire mode point, etc., and send the collected values of each point to the OPC UA client. The OPC UA client writes the received values of each point into the linkage configuration file. The linkage logic analysis process is used to realize the analysis function of the linkage configuration file; the linkage control process is used to realize the functions of linkage logic processing and starting linkage control; the linkage feedback process is used to realize the functions of judging whether the linkage control is successful.
[0031] Figure 2 is a schematic diagram of program deployment provided by an embodiment of the present invention, such as Figure 2 As shown, the linkage control software of the fire linkage control method provided by the embodiment of the present invention can be deployed on the operating system of the central processing unit (CPU) in the intelligent all-in-one machine. The intelligent all-in-one machine has functions such as computing, storage, network switching, substrate management and display, and requires certain rules for automatic operation and maintenance management. The CPU in the intelligent all-in-one machine is connected to devices such as a storage module, an interface conversion module, an operation panel, a human-machine interface (HMI) display, a switch and an interface board.
[0032] The OPC UA client stores a pre-set linkage configuration file, which is used to configure the internal and external linkage relationships of the intelligent all-in-one device. The linkage configuration file includes two types of tables, namely the linkage relationship table shown in Table 1 and Table 2, the linkage partition table shown in Table 3 and Table 4, and the function linkage partition table shown in Table 5.
[0033] Table 1
[0034] Table 2
[0035] It should be noted that the members corresponding to the same sequence numbers in Table 1 and Table 2 belong to the members corresponding to the same linkage description.
[0036] Among them, the Name member indicates the name of the linkage control object or the name of the linkage partition. The Tstart member indicates how long it takes to start the linkage control after the linkage expression is established. For example, when the value of the Tstart member is 0, it means that the linkage control is started immediately after the linkage expression is established. The Tclose member indicates how long it takes to automatically close the linkage control after the linkage is started. For example, when the value of the Tclose member is 0, it means that the linkage control is not automatically closed. The Value member indicates the default value set for all linkage control objects when the linkage control is started, and it will be set to the corresponding mutually exclusive value when the linkage control is stopped. For example, the value of the Value member is 1, which indicates the value set for all linkage control objects when the linkage control is started. The value of the Value member is 0, which indicates the value set for all linkage control objects when the linkage control is stopped, that is, the value set when the linkage control is started is mutually exclusive with the value set when the linkage control is stopped.
[0037] The precondition member indicates the control state under which linkage control is started. 0 indicates no precondition, 1 indicates the precondition is "automatic control state", 2 indicates the precondition is "automatic control state"||"linkage is allowed (linkage start key is pressed)", 3 indicates the precondition is "manual control state", and 4 indicates the precondition is "manual control state"&&"linkage is allowed (linkage start key is pressed)". The linkage expression member indicates the conditions for linkage control triggering. The linkage expression is usually represented by arithmetic operators such as "and, or, not, addition, subtraction, multiplication, and division" between the point names, for example, HMICM.aoRemoteReset||HMICM.aoResetForward||MIKeyboard.aiDo Reset. In addition, specific function expressions can also be used. For example, the CycleTime function expression is used to represent cyclic triggering. For example: CycleTime(600,5), which means that linkage control is triggered every 5 minutes at 10 o'clock (the 600th minute) every day. The SingleTime function expression is used to indicate a specific time trigger, for example: SingleTime(23 / 7 / 13 12:00:00), which means that the linkage control is triggered at 12:00 on July 13, 2023. The An function expression is used to indicate a conditional trigger, for example: A5(D00 1.diHJ, Y[002~010].diHJ), which means that the linkage control is triggered when the values of any 5 of the 10 points are non-zero. The Feedback Timeout member indicates that after the linkage control is started, feedback detection needs to be performed within a certain period of time. If the detection fails, the linkage control is judged to have failed. The Feedback Expression member indicates the condition for successful feedback. The Linkage Feedback Timeout Processing member indicates the processing performed after the feedback detection times out. The Linkage Success Processing member indicates the processing performed after the linkage control is successful.
[0038] The content corresponding to sequence number 1 in Table 1 and Table 2 indicates that when HMICM.aoRemoteReset (indicating the remote reset point) is not 0, or HMICM.aoResetForward (indicating the reset forwarding point) is not 0, or HMIKeyboard.aiDoReset (indicating the reset button of the HMI operation panel) is not 0, the linkage partition FZoneSimulator.FZ001 is immediately started, and after successful startup, HMICM.aoRemote Reset and HMICM.aoResetForward are set to 0. The specific meaning is: after the reset button on the HMI operation panel of the intelligent all-in-one machine is pressed or the remote reset point or reset forwarding point is set to 1, the system of the intelligent all-in-one machine is reset, and then the corresponding point is set back to 0 to prepare for the next reset.
[0039] The content corresponding to sequence number 2 in Table 1 and Table 2 indicates that when HMIKeyboard.aiDoAlarm (indicating the alarm button on the HMI operation panel) is not 0, InternalCan.doControlAlarm (indicating all sound and light alarms) is immediately set to 1. The specific meaning is: after the alarm button on the HMI operation panel of the intelligent all-in-one machine is pressed, all sound and light alarms are activated.
[0040] Table 3
[0041] Table 4
[0042] It should be noted that the members corresponding to the same sequence number in Table 3 and Table 4 belong to the members corresponding to the same linkage description.
[0043] The content corresponding to sequence number 1 in Table 3 and Table 4 indicates that when M1001.diHJ is equal to 1, the BAS01.diMode01 point is immediately set to 1, and the BAS01.doModeFeedback01 point is repeatedly detected to be equal to 1 within 10 seconds. If the BAS01.doModeFeedback01 point is detected to be equal to 1 within 10 seconds, it is determined that the linkage control is successful; if the BAS01.doModeFeedback01 point is not equal to 1 within 10 seconds, it indicates a timeout, and the linkage control is determined to have failed. The specific meaning is: when the manual alarm button is pressed, the BAS is immediately controlled to enter BAS fire mode 1, and the execution condition of the BAS is detected to be equal to 1 within 10 seconds. If the execution condition of the BAS is not detected to be equal to 1 within 10 seconds, it is determined that the linkage control of the BAS has failed, and the fault information of the BAS is displayed on the HMI display.
[0044] The content corresponding to sequence number 2 in Table 3 and Table 4 indicates that among the 102 points from D1001.diHJ to D1102.diHJ, as long as one point is not 0, the BAS01.diMode02 point is immediately set to 1, and the BAS01.doModeFeedback02 point is repeatedly checked within 10s to see if it is equal to 1. If the BAS01.doModeFeedback02 point is detected to be equal to 1 within 10s, the linkage control is determined to be successful; if the BAS01.doModeFeedback02 point is not detected to be equal to 1 within 10s, it indicates a timeout, and the linkage control is determined to have failed. The specific meaning is: when one of the smoke sensors from D1001 to D1102 generates a fire alarm, the BAS is immediately controlled to enter BAS fire mode 2, and within 10 seconds, it is detected whether the execution condition of the BAS is equal to 1. If the execution condition of the BAS is not detected to be equal to 1 within 10 seconds, it is determined that the linkage control of the BAS has failed, and the fault information of the BAS is displayed on the HMI display.
[0045] Table 5
[0046] The content corresponding to sequence number 1 in Table 5 indicates that in the linkage partition FZoneSimulator.FZ001, the InternalCan.doReset point (indicating the interface card), BusKeyboard.doReset point (indicating the bus disk) and MKB01.doReset=1 point (indicating) are all set to 1. The specific meaning is: reset each interface card, bus disk and manual disk of the intelligent integrated machine respectively.
[0047] It should be noted that the values or results in Tables 1 to 5 are all examples. In practical applications, the values or results can be configured based on actual needs, and the present invention is not limited to this.
[0048] Combine the following Figure 3-Figure 7 The fire fighting linkage control method of the present invention is described.
[0049] Figure 3 is one of the flow charts of the fire linkage control method provided by the embodiment of the present invention, which is applied to electronic equipment, such as Figure 3 As shown, the fire linkage control method includes the following steps: Step 301: Obtain a linkage relationship structure linked list, wherein the linkage relationship structure linked list includes element information related to fire linkage, and the element information includes a linkage control object member and a linkage expression member.
[0050] Optionally, a database file is loaded, where the database file is obtained by converting the linkage configuration file into a format; and the database file is parsed to obtain the linkage relationship structure linked list.
[0051] For example, Figure 4 is a linkage analysis flow chart provided by an embodiment of the present invention, such as Figure 4 As shown, the acquired pre-set linkage configuration file is converted into a database file, such as a sqlite3 database file, and then the database file is loaded into the linkage control software using the fire linkage control method, and the text format content in the database file is parsed by the linkage control software, and the text format content is parsed into specific structure data, thereby obtaining a linkage relationship structure linked list, and the linkage relationship structure linked list includes all element information related to the fire linkage in the database file, and the element information at least includes a linkage control object member and a linkage expression member, and there is a corresponding relationship between the linkage control object member and the linkage expression member. It should be noted here that the element information included in the linkage relationship structure linked list corresponds one-to-one to the text format content in the database file.
[0052] Step 302: When it is determined that linkage control is required based on the result of the target linkage expression member, a value of the target linkage control object member corresponding to the target linkage expression member is set.
[0053] For example, when the linkage relationship structure linked list is obtained, the results of the linkage expression members are traversed from the linkage relationship structure linked list to determine whether there is a non-zero value in the results of the linkage expression members. When there is a non-zero value, the linkage expression member corresponding to the non-zero value is determined as the target linkage expression member, and it is determined that linkage control is required. At this time, the numerical value Value of the target linkage control object member corresponding to the target linkage expression member is set.
[0054] Step 303: Determine the target linkage control object based on the numerical values of the target linkage control object members.
[0055] For example, after setting the value of the target linkage control object member corresponding to the target linkage expression member, the OPCUA server can determine the target linkage control object based on the value of the target linkage control object member. For example, taking the linkage partition FZoneSimulator.FZ001 as an example, the value Value of FZoneSimulator.FZ001 is set to 1, and the target linkage control object is determined to be all linkage points in the linkage partition FZoneSimulator.FZ001, that is, the target linkage control object includes the interface board InternalCan.doReset, bus disk BusKeyboard.doReset and manual disk MKB01.doReset shown in Table 5.
[0056] Step 304: performing linkage control on the target linkage control object.
[0057] For example, when the target linkage control object is determined, the target linkage control object is controlled to perform linkage control. Taking the content corresponding to the sequence number 2 shown in Tables 1 and 2 above as an example, when the result of the linkage expression member HMIKeyboard.aiDoAlarm is not 0, it means that the alarm button on the HMI operation panel of the intelligent all-in-one machine is pressed, and based on the value Value of the linkage control object member InternalCan.doControlAlarm corresponding to HMIKeyboard.aiDoAlarm is equal to 1, it is determined that the target linkage control object is all sound and light alarms, and then all sound and light alarms are started to realize linkage control of the target linkage control object.
[0058] It should be noted that the electronic device may include an OPC UA client and an OPC UA server at the same time, the above steps 301 and 302 are executed by the OPC UA client, and the above steps 303 and 304 are executed by the OPC UA server.
[0059] The fire linkage control method provided by the embodiment of the present invention obtains a linkage relationship structure linked list, and when it is determined that linkage control is required based on the result of the target linkage expression member in the linkage relationship structure linked list, obtains the value of the target linkage control object member in the linkage relationship structure linked list; determines the target linkage control object based on the value of the target linkage control object member, and performs linkage control on the target linkage control object. It can be seen that the present invention can automatically determine whether linkage control is required and the linkage control object that needs linkage control based on the value of the target linkage control object member in the linkage relationship structure linked list and the result of the target linkage expression member, thereby realizing automatic control of fire linkage, thereby improving the degree of automation of fire linkage control, that is, realizing intelligent fire linkage control. In addition, since the present invention is a fire linkage control implemented based on a linkage configuration file, the linkage configuration is relatively simple, and the linkage configuration file can also be expanded based on demand, thereby improving the scalability of fire linkage control.
[0060] In one embodiment, the element information further includes a timed start member and a timed stop member; the above step 304 performs linkage control on the target linkage control object, which can be specifically implemented in the following manner: In the case where the numerical representation of the target timed start member corresponding to the target linkage expression member requires timed start linkage control, when the start timing duration corresponding to the numerical value of the target timed start member arrives, the target linkage control object is started.
[0061] In the case where the numerical representation of the target timed closing member corresponding to the target linkage expression member requires timed closing linkage control, when the closing timing duration corresponding to the numerical value of the target timed closing member arrives, the target linkage control object is closed.
[0062] For example, the linkage relationship structure linked list also includes a timed start member and a timed shutdown member. When it is determined that linkage control is required based on the result of the target linkage expression member, it is also necessary to find the value of the target timed start member corresponding to the target linkage expression member. When the value of the target timed start member is 0, it is determined that timed start linkage control is not required, and the target linkage control object is directly started; when the value of the target timed start member is not 0, it is determined that timed start linkage control is required, and the target linkage control object is started when the start timing duration corresponding to the value of the target timed start member arrives.
[0063] After starting the target linkage control object, find the value of the target timed closing member corresponding to the target linkage expression member. When the value of the target timed closing member is 0, it is determined that timed closing linkage control is not required, and the target linkage control object is always started. When the value of the target timed closing member is not 0, it is determined that timed closing linkage control is required, then when the start closing time corresponding to the value of the target timed closing member is reached, the target linkage control object is closed.
[0064] In this embodiment, it is possible to determine whether the linkage control needs to be started and whether the linkage control needs to be turned off based on the values of the target timed start members and the target timed stop members, thereby realizing automatic determination of the opening and closing of the linkage control and further improving the intelligence of the linkage control.
[0065] In one embodiment, the element information further includes a feedback timeout member and a feedback expression member; Figure 5 FIG. 2 is a flow chart of the fire linkage control method provided by an embodiment of the present invention. Figure 5 As shown, after the above step 304, the fire linkage control method further includes the following steps: Step 305: When the numerical representation of the target feedback timeout member corresponding to the target linkage expression member requires feedback detection, the numerical value of the target feedback timeout member and the result of the target feedback expression member corresponding to the target linkage expression member are added to the feedback detection structure linked list.
[0066] For example, the linkage relationship structure linked list also includes a feedback timeout member and a feedback expression member. After the target linkage control object is linked and controlled, it is also necessary to find the value of the target feedback timeout member corresponding to the target linkage expression member. When the value of the target feedback timeout member is 0, it is determined that no feedback detection is required, and the linkage success processing is directly performed; when the value of the target feedback timeout member is not 0, it is determined that feedback detection is required. At this time, the value of the target feedback timeout member and the result of the target feedback expression member are added to the empty feedback detection structure linked list.
[0067] Step 306: traverse the values of the target feedback timeout members in the feedback detection structure linked list.
[0068] For example, the value of the target feedback timeout member added to the feedback detection structure linked list is traversed, and the value of the target feedback timeout member is the allowed feedback detection duration.
[0069] Step 307: within the feedback detection duration represented by the numerical value of the target feedback timeout member in the feedback detection structure linked list, detect the result of the target feedback expression member in the feedback detection structure linked list.
[0070] For example, within the feedback detection duration represented by the numerical value of the target feedback timeout member, the result of the target feedback expression member in the feedback detection structure linked list is detected to determine whether the result of the target feedback expression member is a preset value, which may be 1.
[0071] Step 308: When the result of the target feedback expression member in the feedback detection structure linked list is equal to a preset value, determine that the linkage control of the target linkage control object is successful.
[0072] For example, when the result of the target feedback expression member is equal to the preset value 1, it is determined that the linkage control of the target linkage control object is successful. Taking the content corresponding to the sequence number 1 in the above Tables 3 and 4 as an example, when the value of the linkage expression member M1001.diHJ is equal to 1, it means that the manual alarm button is pressed, and the value Value of the linkage control object member BAS01.diMode01 is set to 1. The OPC UA server determines that the target linkage control object is BAS fire mode 1 based on the value Value of the linkage control object member BAS01.diMode01 being equal to 1, and then controls the BAS to enter BAS fire mode 1, and determines that feedback detection is required based on the value 10s (seconds) of the target feedback timeout member, and the feedback detection duration is 10s, then detect whether the execution condition of the BAS is equal to 1 within 10s, and when it is detected within 10s that the execution condition of the BAS is equal to 1, it is determined that the linkage control of BAS fire mode 1 is successful.
[0073] In this embodiment, it is possible to determine whether feedback detection is needed based on the value of the target feedback timeout member. When feedback detection is needed, it is possible to determine whether the linkage control of the target linkage control object is successful based on whether the result of the target feedback expression member is detected as a preset value within the feedback detection duration. This realizes automatic determination of whether the linkage control is successful, further improving the intelligence of the linkage control.
[0074] In one embodiment, the element information also includes linkage successful processing members; after the above step 308, the fire linkage control method further includes the following steps: When it is determined that the linkage control of the target linkage control object is successful, an operation corresponding to the value of the target linkage success processing member corresponding to the target linkage expression member is executed.
[0075] For example, when it is determined that the linkage control of the target linkage control object is successful, the value of the target linkage successful processing member corresponding to the target linkage expression member may be searched, and the operation corresponding to the value of the target linkage successful processing member may be executed.
[0076] In this embodiment, when it is determined that the linkage control of the target linkage control object is successful, the operation corresponding to the numerical value of the target linkage successful processing member is executed, thereby realizing the automatic execution of related operations after the linkage control is successful, and further improving the intelligence level of the linkage control.
[0077] In one embodiment, the element information also includes linkage successful processing members; after the above step 304, the fire linkage control method further includes the following steps: When the numerical representation of the target feedback timeout member corresponding to the target linkage expression member does not need feedback detection, the operation corresponding to the numerical value of the target linkage successful processing member corresponding to the target linkage expression member is performed.
[0078] For example, when the value of the target feedback timeout member is 0, it is determined that feedback detection is not required, and the operation corresponding to the value of the target linkage successful processing member is directly executed. Taking the content corresponding to sequence number 1 in Table 1 and Table 2 as an example, if the value of the feedback timeout member is 0, it is determined that feedback detection is not required, and the values of the linkage successful processing members traversed are HMICM.aoRemoteReset=0, HMICM.aoResetForward=0, then the operation is directly executed: the values of HMICM.aoRemoteReset and HMICM.aoResetForward are both set to 0, ready for the next reset.
[0079] In this embodiment, when the numerical representation of the target feedback timeout member does not need feedback detection, the operation corresponding to the numerical value of the target linkage successful processing member is directly executed, thereby realizing the automatic execution of related operations after linkage control and further improving the intelligence of linkage control.
[0080] In one embodiment, the element information further includes a linkage feedback timeout processing member; when the numerical representation of the target feedback timeout member requires feedback detection, the fire linkage control method further includes the following steps: When the result of the target feedback expression member in the feedback detection structure linked list is not equal to the preset value, it is determined that the linkage control of the target linkage control object has failed, and the operation corresponding to the value of the target linkage feedback timeout processing member corresponding to the target linkage expression member is executed.
[0081] For example, when the result of the target feedback expression member is not equal to the preset value 1, it is determined that the linkage control of the target linkage control object has failed, and the operation corresponding to the value of the target linkage feedback timeout processing member corresponding to the target linkage expression member is executed. For example, the value of the target linkage feedback timeout processing member represents display fault information, and the operation executed is to display the fault information on the HMI display to indicate that the linkage control has failed.
[0082] In this embodiment, when the result of the target feedback expression member in the feedback detection structure linked list is not equal to the preset value, it is determined that the linkage control of the target linkage control object has failed, and the operation corresponding to the numerical value of the target linkage feedback timeout processing member corresponding to the target linkage expression member is executed, thereby realizing the automatic execution of related operations after the linkage control fails, and further improving the intelligence of the linkage control.
[0083] Figure 6 FIG. 1 is a schematic diagram of a fire linkage control flow chart provided by an embodiment of the present invention. Figure 6 As shown, the fire linkage control process mainly includes the following steps: 1) Loop through the linked list of linkage relationship structures.
[0084] 2) Determine whether linkage control is required based on the result of the linkage expression member in the linkage relationship structure linked list. If linkage control is required, execute 3). If linkage control is not required, continue looping.
[0085] 3) Determine whether timed start linkage control is required based on the value of the timed start member. If timed start linkage control is required, set the timer parameter based on the start timing duration corresponding to the value of the timed start member, and execute 4). If timed start linkage control is not required, execute 5).
[0086] 4) Start the timer. When the start timer duration is reached, execute 5).
[0087] 5) Start the target linkage control object.
[0088] 6) Determine whether timed closing linkage control is required based on the value of the timed closing member. If timed closing linkage control is required, set the timer parameters based on the closing timing duration corresponding to the value of the timed closing member. When the closing timing duration is reached, execute 7). If timed closing linkage control is not required, execute 7 directly.
[0089] 7) Determine whether feedback detection is required based on the value of the feedback timeout member. If feedback detection is required, execute 8). If feedback detection is not required, execute 9).
[0090] 8) The value of the feedback timeout member and the result of the feedback expression member are added to the feedback detection structure linked list, and the loop traversal continues.
[0091] 9) The linkage control is successfully processed and the loop continues.
[0092] Figure 7 FIG. 1 is a schematic diagram of a fire linkage feedback process provided by an embodiment of the present invention. Figure 7 As shown in the figure, the fire linkage feedback process mainly includes the following steps: 1) Loop through the feedback detection structure linked list.
[0093] 2) Determine whether the feedback detection has timed out based on the value of the feedback timeout member. If it is determined that the feedback detection has timed out, execute 3). If it is determined that the feedback detection has not timed out, execute 4).
[0094] 3) Execute linkage timeout processing and execute 6).
[0095] 4) Determine whether the result of the feedback expression member is equal to the preset value. If it is equal to the preset value, execute 5), otherwise continue the loop traversal.
[0096] 5) Execute linkage control successfully and execute 6).
[0097] 6) Delete the value of the feedback timeout member and the result of the feedback expression member from the feedback detection structure linked list.
[0098] The fire linkage control device provided in an embodiment of the present invention is described below. The fire linkage control device described below and the fire linkage control method described above can be referenced to each other.
[0099] Figure 8 FIG. 1 is a schematic diagram of the structure of a fire linkage control device provided by an embodiment of the present invention. Figure 8 As shown, the fire linkage control device 800 includes a first acquisition unit 801, a second acquisition unit 802, a first determination unit 803 and a control unit 804; wherein: A first acquisition unit 801 is used to acquire a linkage relationship structure linked list, wherein the linkage relationship structure linked list includes element information related to fire linkage, and the element information includes a linkage control object member and a linkage expression member; The second acquisition unit 802 is used to acquire the value of the target linkage control object member corresponding to the target linkage expression member when it is determined that linkage control needs to be performed based on the result of the target linkage expression member; A first determining unit 803, configured to determine a target linkage control object based on a value of the target linkage control object member; The control unit 804 is used to perform linkage control on the target linkage control object.
[0100] The fire linkage control device provided by the embodiment of the present invention obtains a linkage relationship structure linked list, and when it is determined that linkage control needs to be performed based on the result of the target linkage expression member in the linkage relationship structure linked list, obtains the value of the target linkage control object member in the linkage relationship structure linked list; determines the target linkage control object based on the value of the target linkage control object member, and performs linkage control on the target linkage control object. It can be seen that the present invention can automatically determine whether linkage control is required and the linkage control object that needs linkage control based on the value of the target linkage control object member in the linkage relationship structure linked list and the result of the target linkage expression member, thereby realizing automatic control of fire linkage, thereby improving the degree of automation of fire linkage control, that is, realizing the intelligence of fire linkage control.
[0101] Based on any of the above embodiments, the element information further includes a timed start member and a timed stop member; the control unit 804 is specifically configured to: In the case where the numerical representation of the target timed start member corresponding to the target linkage expression member requires timed start linkage control, when the start timing duration corresponding to the numerical value of the target timed start member arrives, the target linkage control object is started; In the case where the numerical representation of the target timed closing member corresponding to the target linkage expression member requires timed closing linkage control, when the closing timing duration corresponding to the numerical value of the target timed closing member arrives, the target linkage control object is closed.
[0102] Based on any of the above embodiments, the element information further includes a feedback timeout member and a feedback expression member; the fire linkage control device 800 further includes: an adding unit, configured to add the value of the target feedback timeout member and the result of the target feedback expression member corresponding to the target linkage expression member to a feedback detection structure linked list when the value representation of the target feedback timeout member corresponding to the target linkage expression member needs to be feedback detected; A traversal unit, used for traversing the value of the target feedback timeout member in the feedback detection structure linked list; A detection unit, configured to detect a result of a target feedback expression member in the feedback detection structure linked list within a feedback detection duration represented by a numerical value of a target feedback timeout member in the feedback detection structure linked list; The second determining unit is used to determine that the linkage control of the target linkage control object is successful when the result of the target feedback expression member in the feedback detection structure linked list is equal to a preset value.
[0103] Based on any of the above embodiments, the element information further includes linkage successful processing members; the fire linkage control device 800 further includes: The first execution unit is used to execute the operation corresponding to the value of the target linkage success processing member corresponding to the target linkage expression member when it is determined that the linkage control of the target linkage control object is successful.
[0104] Based on any of the above embodiments, the element information further includes linkage successful processing members; the fire linkage control device 800 further includes: The second execution unit is used to execute the operation corresponding to the numerical value of the target linkage successful processing member corresponding to the target linkage expression member when the numerical value representation of the target feedback timeout member corresponding to the target linkage expression member does not need feedback detection.
[0105] Based on any of the above embodiments, the element information further includes a linkage feedback timeout processing member; the fire linkage control device 800 further includes: The third execution unit is used to determine that the linkage control of the target linkage control object has failed when the result of the target feedback expression member in the feedback detection structure linked list is not equal to the preset value, and execute the operation corresponding to the numerical value of the target linkage feedback timeout processing member corresponding to the target linkage expression member.
[0106] Based on any of the foregoing embodiments, the first acquiring unit 801 is specifically configured to: Loading a database file, wherein the database file is obtained by converting the linkage configuration file into a new format; The database file is parsed to obtain the linkage relationship structure linked list.
[0107] Fig. 9 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention, such as Fig. 9 As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the fire linkage control method, the method comprising: obtaining a linkage relationship structure linked list, the linkage relationship structure linked list comprising element information related to fire linkage, the element information comprising a linkage control object member and a linkage expression member; In the case where it is determined that linkage control needs to be performed based on the result of the target linkage expression member, obtaining a value of a target linkage control object member corresponding to the target linkage expression member; Determining a target linkage control object based on the numerical value of the target linkage control object member; The target linkage control object is subjected to linkage control.
[0108] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0109] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the fire linkage control method provided by the above methods, the method includes: obtaining a linkage relationship structure linked list, the linkage relationship structure linked list includes element information related to fire linkage, the element information includes a linkage control object member and a linkage expression member; In the case where it is determined that linkage control needs to be performed based on the result of the target linkage expression member, obtaining a value of a target linkage control object member corresponding to the target linkage expression member; Determining a target linkage control object based on the numerical value of the target linkage control object member; The target linkage control object is subjected to linkage control.
[0110] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the fire linkage control method provided by the above methods, the method comprising: obtaining a linkage relationship structure linked list, the linkage relationship structure linked list comprising element information related to fire linkage, the element information comprising a linkage control object member and a linkage expression member; In the case where it is determined that linkage control needs to be performed based on the result of the target linkage expression member, obtaining a value of a target linkage control object member corresponding to the target linkage expression member; Determining a target linkage control object based on the numerical value of the target linkage control object member; The target linkage control object is subjected to linkage control.
[0111] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A fire linkage control method, characterized in that: include: Acquire a linkage relationship structure linked list, wherein the linkage relationship structure linked list includes element information related to fire linkage, and the element information includes a linkage control object member and a linkage expression member; In the case where it is determined that linkage control needs to be performed based on the result of the target linkage expression member, setting the value of the target linkage control object member corresponding to the target linkage expression member; Determining a target linkage control object based on the numerical value of the target linkage control object member; The target linkage control object is subjected to linkage control.
2. The fire linkage control method according to claim 1, characterized in that: The element information also includes a timed start member and a timed close member; The performing linkage control on the target linkage control object includes: In the case where the numerical representation of the target timed start member corresponding to the target linkage expression member requires timed start linkage control, when the start timing duration corresponding to the numerical value of the target timed start member arrives, the target linkage control object is started; In the case where the numerical representation of the target timed closing member corresponding to the target linkage expression member requires timed closing linkage control, when the closing timing duration corresponding to the numerical value of the target timed closing member arrives, the target linkage control object is closed.
3. The fire linkage control method according to claim 1, characterized in that: The element information also includes a feedback timeout member and a feedback expression member; the method also includes: In the case where the numerical representation of the target feedback timeout member corresponding to the target linkage expression member needs to be feedback detected, the numerical value of the target feedback timeout member and the result of the target feedback expression member corresponding to the target linkage expression member are added to the feedback detection structure linked list; Traversing the values of the target feedback timeout members in the feedback detection structure linked list; Within the feedback detection duration represented by the numerical value of the target feedback timeout member in the feedback detection structure linked list, detecting the result of the target feedback expression member in the feedback detection structure linked list; When the result of the target feedback expression member in the feedback detection structure linked list is equal to a preset value, it is determined that the linkage control of the target linkage control object is successful.
4. The fire linkage control method according to claim 3, characterized in that: The element information also includes linkage successful processing members; The method further comprises: When it is determined that the linkage control of the target linkage control object is successful, an operation corresponding to the value of the target linkage success processing member corresponding to the target linkage expression member is executed.
5. The fire linkage control method according to claim 3, characterized in that: The element information also includes linkage successful processing members; The method further comprises: When the numerical representation of the target feedback timeout member corresponding to the target linkage expression member does not need feedback detection, the operation corresponding to the numerical value of the target linkage successful processing member corresponding to the target linkage expression member is performed.
6. The fire linkage control method according to claim 3, characterized in that: The element information also includes a linkage feedback timeout processing member; the method also includes: When the result of the target feedback expression member in the feedback detection structure linked list is not equal to the preset value, it is determined that the linkage control of the target linkage control object has failed, and the operation corresponding to the value of the target linkage feedback timeout processing member corresponding to the target linkage expression member is executed.
7. The fire linkage control method according to any one of claims 1 to 6, characterized in that: The step of obtaining a linkage relationship structure linked list includes: Loading a database file, wherein the database file is obtained by converting the linkage configuration file into a new format; The database file is parsed to obtain the linkage relationship structure linked list.
8. A fire linkage control device, characterized in that: include: A first acquisition unit is used to acquire a linkage relationship structure linked list, wherein the linkage relationship structure linked list includes element information related to fire linkage, and the element information includes a linkage control object member and a linkage expression member; A second acquisition unit is used to set a value of a target linkage control object member corresponding to the target linkage expression member when it is determined that linkage control needs to be performed based on the result of the target linkage expression member; A first determining unit, configured to determine a target linkage control object based on a numerical value of the target linkage control object member; A control unit is used to perform linkage control on the target linkage control object.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the fire linkage control method as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fire linkage control method as claimed in any one of claims 1 to 7 is implemented.