Fire alarm linkage method, system, device and medium based on heterogeneous devices
By encapsulating and converting the on-site fire alarm information of the fire alarm system, identifying the host model and mapping the points, and generating linkage control commands, cross-system linkage of different series of fire alarm hosts is realized, solving the problems of protocol incompatibility and information silos in the fire protection system, and improving the overall response capability and security of the fire protection system.
Patent Information
- Application Number
- CN202610825307.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-09
- Publication Date
- 2026-08-25
AI Technical Summary
In existing fire alarm systems, fire alarm control panels from different manufacturers or series are incompatible in terms of communication protocols, data formats, and interface standards. This results in the inability of new and old systems to effectively network, creating information silos and preventing cross-system information display, transmission, and control. This seriously affects the overall response capability and safety assurance of the fire protection system.
By acquiring on-site fire alarm information, encapsulating and processing it, and dynamically tracking the protocol, structured alarm information is generated. The protocol is converted to identify the host model, and a preset base map is used for point mapping. Linkage control commands are generated and decomposed into equipment action commands to achieve cross-system linkage of different series of fire alarm hosts.
Without changing the hardware configuration, seamless interoperability and collaborative linkage of fire alarm control panels of different series and models were achieved, improving the linkage level of fire protection equipment and solving the linkage failure problem caused by protocol incompatibility and system isolation.
Smart Images

Figure CN122640481A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fire protection engineering, and particularly to a fire alarm linkage method, system, device and medium based on heterogeneous devices. Background Art
[0002] In the networking application of existing fire alarm systems, generally only the networking between fire alarm main controllers of the same series and the same model is supported, and the information interaction of such same-specification main controllers is realized by adding a graphic display device. However, with the renovation and upgrade of building fire protection systems, the main controller devices installed in different periods often come from different manufacturers or different series, and their communication protocols, data formats, and interface standards are incompatible with each other, resulting in a lack of effective networking implementation methods between old and new fire alarm main controllers.
[0003] Existing graphic display devices are usually bound to specific main controller models and cannot be compatible with other series or third-party devices. If all main controllers are directly replaced, problems such as high renovation costs and long construction periods will be faced; if the original system is retained and an attempt is made to network with the new system, due to the lack of a unified data interaction standard, information collection, summary, and transmission between the old and new systems cannot be carried out, forming information islands. The lack of information communication between systems results in the control center being unable to achieve cross-system synchronous information display, transmission, and control, and the fire protection devices cannot form an effective linkage, seriously restricting the overall response ability and safety guarantee level of the fire protection system. Summary of the Invention
[0004] The present invention provides a fire alarm linkage method, system, device and medium based on heterogeneous devices, and its main purpose is to improve the linkage level of fire protection devices.
[0005] To achieve the above object, a fire alarm linkage method based on heterogeneous devices provided by the present invention includes: Obtaining on-site fire alarm information, performing encapsulation processing on the on-site fire alarm information to obtain an initial alarm signal of the main controller, and performing dynamic protocol tracking and field semantic parsing on the initial alarm signal of the main controller to obtain structured alarm information; Performing protocol conversion on the structured alarm information to obtain unified alarm information, and identifying the alarm main controller model of the first type of fire alarm main controller based on the unified alarm information; Performing point mapping on the unified alarm information and a preset base map to obtain the alarm point position and the alarm point device identifier; Generating a linkage control instruction according to the alarm point position, the alarm point device identifier, and the alarm main controller model; The linkage control command is decomposed into equipment action commands. Based on the equipment action commands, the preset fire-fighting equipment is activated using the preset second type of fire alarm host to obtain the equipment linkage feedback signal. The second type of fire alarm equipment is a device that uses a different communication protocol than the first type of fire alarm equipment.
[0006] Optionally, the process of encapsulating the on-site fire alarm information to obtain the host's initial alarm signal includes: Obtain the alarm device address, event type, and status value from the on-site fire alarm information to obtain the fire alarm address, alarm event type, and fire alarm status. The fire alarm address, the alarm event type, and the fire alarm status are encapsulated into a data packet structure of a preset length to obtain a fire alarm data packet; A preset protocol header, preset checksum, and preset end flag are added to the fire alarm data packet to obtain the initial alarm signal of the host.
[0007] Optionally, the step of performing dynamic protocol tracing and field semantic parsing on the initial alarm signal of the host to obtain structured alarm information includes: The communication data stream of the initial alarm signal of the host is obtained to obtain the original communication data packet; The flow of the original communication data packets is traced, and a fixed field sequence in the original communication data packets is identified based on the flow of the data packets to obtain a candidate set of protocol fields; Acquire alarm data for different event types, compare the protocol field candidate set with the alarm data for different event types to obtain field differences, and construct a field semantic mapping table based on the field differences; Based on the field semantic mapping table, the original communication data packet is segmented and semantically labeled to obtain structured alarm information, wherein the structured alarm information includes host identifier, device number, device type, event type and location information.
[0008] Optionally, identifying the alarm host model of the first type of fire alarm control panel based on the unified alarm information includes: The alarm data stream in the unified alarm information is obtained, and the alarm data stream is cleaned and normalized to obtain alarm data samples in a standard format. The alarm data sample in the standard format is input into the preset fire alarm control panel model recognition model to obtain the alarm control panel model of the first type of fire alarm control panel.
[0009] Optionally, the fire alarm control panel model identification model includes convolutional layers, attention layers, fully connected layers, and a softmax classifier. The step of inputting the standard format alarm data sample into the preset fire alarm control panel model to obtain the alarm control panel model of the first type of fire alarm control panel includes: The standard format alarm data sample is input into the fire control panel model identification model, and the data features are extracted using the convolutional layer to obtain the alarm data features; The alarm data features are weighted and averaged using the attention layer to obtain weighted alarm data features. The fully connected layer is then used to integrate the weighted alarm data features to obtain a feature classification vector. The probability distribution vector of each preset model category is obtained by using the softmax classifier to calculate the probability of the feature classification vector. Extract the target probability value from the probability distribution vector of each preset model category, and use the preset model category corresponding to the target probability value as the alarm host model of the first type of fire alarm host.
[0010] Optionally, the step of mapping the unified alarm information to a preset base map to obtain the alarm point location and alarm point device identifier includes: Extract the identifier code of the point to be mapped from the unified alarm information and obtain the base map database, wherein the base map database includes a mapping relationship table, and the mapping relationship table includes the point number, the base map labeled equipment area and the equipment identifier; The identification code of the point to be mapped is compared with the point number in the mapping table to obtain the comparison result; Based on the comparison results, the device area corresponding to the identifier code of the point to be mapped is located on the preset base map to obtain the location of the alarm point, and the device identifier of the alarm point location is associated with it to obtain the device identifier of the alarm point.
[0011] Optionally, after activating preset fire-fighting equipment using the second type of fire alarm control panel based on the device action command and obtaining the device linkage feedback signal, the method further includes: The alarm location is displayed on a preset electronic map based on the location of the alarm point, and the device identifier of the alarm point and the model of the alarm host are marked.
[0012] To address the aforementioned problems, the present invention also provides a fire alarm linkage system based on heterogeneous devices, the system comprising: The alarm information acquisition module is used to acquire on-site fire alarm information, encapsulate the on-site fire alarm information to obtain the host initial alarm signal, and perform dynamic protocol tracking and field semantic parsing on the host initial alarm signal to obtain structured alarm information. The host model identification module is used to perform protocol conversion on the structured alarm information to obtain unified alarm information, and to identify the alarm host model of the first type of fire alarm host based on the unified alarm information; The control command generation module is used to map the unified alarm information to a preset base map to obtain the alarm point location and alarm point device identifier. Based on the location of the alarm point, the device identifier of the alarm point, and the model of the alarm host, a linkage control command is generated; The fire equipment linkage module is used to decompose the linkage control command into equipment action commands, and based on the equipment action commands, to activate the preset fire equipment using the preset second type of fire alarm host to obtain the equipment linkage feedback signal. The second type of fire alarm equipment is a device that uses a different communication protocol than the first type of fire alarm equipment.
[0013] To address the above problems, the present invention also provides an electronic device, the electronic device comprising: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the fire alarm linkage method based on heterogeneous devices as described above.
[0014] To address the aforementioned problems, the present invention also provides a computer-readable storage medium, including a data storage area and a program storage area. The data storage area stores created data, and the program storage area stores a computer program. When the computer program is executed by a processor, it implements the fire alarm linkage method based on heterogeneous devices as described above.
[0015] In this embodiment of the invention, a communication protocol conversion card is debugged and parameter adaptation and network connectivity are completed to obtain a debugged control unit. A first-type fire alarm control panel encapsulates the on-site fire alarm and obtains structured alarm information through dynamic protocol tracking and field semantic parsing. The communication protocol conversion card converts the structured information into unified alarm information and identifies the control panel model. Central control software is acquired, and the unified alarm information is mapped to a preset base map to obtain the alarm point location and device identifier. Linkage control commands are generated according to national standard linkage logic. These commands are decomposed into device action commands executable by a second-type fire alarm control panel, activating the fire equipment and obtaining linkage feedback signals. Therefore, the fire alarm linkage method, system, electronic equipment, and computer-readable storage medium proposed in this invention, based on heterogeneous devices, achieve seamless cross-system interoperability and collaborative linkage of new and old fire alarm control panels of different series and models without changing the hardware configuration by constructing a protocol conversion and information mapping architecture centered on a central control unit. This solves the linkage failure problem caused by protocol incompatibility and system isolation, and improves the linkage level of fire equipment. Attached Figure Description
[0016] Figure 1 A flowchart illustrating a fire alarm linkage method based on heterogeneous devices provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of a fire alarm linkage system based on heterogeneous devices provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the internal structure of an electronic device for implementing a fire alarm linkage method based on heterogeneous devices, as provided in an embodiment of the present invention.
[0017] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0018] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0019] This application provides a fire alarm linkage method based on heterogeneous devices. The executing entity of the fire alarm linkage method based on heterogeneous devices includes, but is not limited to, at least one of the following electronic devices that can be configured to execute the method provided in this application: a server, a terminal, etc. The server can be an independent server or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. In other words, the fire alarm linkage method based on heterogeneous devices can be executed by software or hardware installed on remote devices or server-side devices, and the software can be a blockchain platform. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.
[0020] Reference Figure 1 The diagram shown is a flowchart illustrating a fire alarm linkage method based on heterogeneous devices according to an embodiment of the present invention. In this embodiment, the fire alarm linkage method based on heterogeneous devices includes the following steps S1-S5: S1. Obtain on-site fire alarm information, encapsulate the on-site fire alarm information to obtain the host initial alarm signal, perform dynamic protocol tracking and field semantic parsing on the host initial alarm signal to obtain structured alarm information.
[0021] Understandably, by encapsulating on-site fire alarm information and performing dynamic protocol tracking and field semantic parsing, the original alarm signals are converted into structured alarm information, enabling alarm data from different models of fire alarm control panels to be uniformly identified and parsed.
[0022] Among them, the initial alarm signal of the host refers to the original alarm data packet generated by the first type of fire alarm host after encapsulating and processing the on-site fire alarm information. It conforms to the host's own private communication protocol format and has not yet undergone protocol conversion. Its format is strongly related to the specific host model and cannot be directly recognized by other hosts of different models.
[0023] Structured alarm information refers to alarm data extracted and recombined into a unified format after dynamic protocol tracking and field semantic parsing of the initial alarm signal of the host. It eliminates the differences in private protocols of different hosts and presents them in a standardized field structure (such as location number, alarm type, timestamp, etc.), which facilitates subsequent protocol conversion and cross-system processing.
[0024] Further, the process of encapsulating the on-site fire alarm information to obtain the host's initial alarm signal includes: Obtain the alarm device address, event type, and status value from the on-site fire alarm information to obtain the fire alarm address, alarm event type, and fire alarm status. The fire alarm address, the alarm event type, and the fire alarm status are encapsulated into a data packet structure of a preset length to obtain a fire alarm data packet; A preset protocol header, preset checksum, and preset end flag are added to the fire alarm data packet to obtain the initial alarm signal of the host.
[0025] Among them, the alarm device address refers to the unique number or code of the on-site detection device in the fire alarm system, which is used to identify the specific device from which the alarm originates; the event type refers to the classification identifier of the alarm information, such as fire alarm, fault, feedback, supervision, etc.; the status value refers to the specific value or code describing the current working status of the device, such as normal (0), fire alarm (1), fault (2), etc. The three together constitute the core field of on-site fire alarm information, which is used to determine the source, nature and severity of the alarm.
[0026] The protocol header is a fixed sequence of bytes added at the beginning of the data packet to identify the communication protocol version, data packet type, or synchronization information. The checksum is a redundant check field calculated based on the data packet content using a specific algorithm (such as CRC or checksum) to verify the integrity of data transmission. The end marker is a specific character or byte sequence added to the end of the data packet to identify the termination boundary of the data packet. These three elements together constitute the frame structure of the host's initial alarm signal, ensuring that the signal is correctly identified, verified, and parsed in the communication link.
[0027] Furthermore, the step of performing dynamic protocol tracing and field semantic parsing on the initial alarm signal of the host to obtain structured alarm information includes: The communication data stream of the initial alarm signal of the host is obtained to obtain the original communication data packet; The flow of the original communication data packets is traced, and a fixed field sequence in the original communication data packets is identified based on the flow of the data packets to obtain a candidate set of protocol fields; Acquire alarm data for different event types, compare the protocol field candidate set with the alarm data for different event types to obtain field differences, and construct a field semantic mapping table based on the field differences; Based on the field semantic mapping table, the original communication data packet is segmented and semantically labeled to obtain structured alarm information, wherein the structured alarm information includes host identifier, device number, device type, event type and location information.
[0028] Among them, the original communication data packet refers to the unparsed underlying binary data unit obtained from the communication data stream of the initial alarm signal of the host. It completely retains the original communication format sent by the first type of fire alarm host, including original fields such as protocol header, data payload, and check bit, and is the basic data source for subsequent protocol tracing and field parsing.
[0029] Among them, data packet flow refers to the transmission direction and arrangement sequence characteristics of the original communication data packets in the communication sequence, including the order of data packets, the positional offset of fields within data packets, and the structural change patterns between data packets of different event types, which is used to identify the distribution patterns of fixed and variable fields in data packets.
[0030] The protocol field candidate set refers to the set of candidates that may constitute protocol fields obtained by tracing the flow of data packets and identifying fixed field sequences in the original communication data packets. It includes information such as the position offset of the field, the length of the field, and the field value rules, providing a basic reference for subsequent field comparison and semantic parsing.
[0031] Among them, field differences refer to the variation patterns in field values, field lengths, or field existences between different event types after comparing the candidate set of protocol fields with alarm data of different event types. By analyzing field differences, the semantic information carried by each field can be inferred, such as distinguishing device number, event type, status value, etc.
[0032] The field semantic mapping table is a reference table constructed based on field differences to map the field positions in the original communication data packet to specific semantic information. It defines the position offset, field length, and corresponding semantic meaning of each field in the data packet, such as host identifier, device number, device type, event type, and location information. It is the core basis for realizing field segmentation and semantic annotation.
[0033] S2. Perform protocol conversion on the structured alarm information to obtain unified alarm information, and identify the alarm host model of the first type of fire alarm host based on the unified alarm information.
[0034] Understandably, by converting structured alarm information into unified alarm information and automatically identifying the model of the first type of fire alarm control panel based on the unified information, the standardization of alarm data across models and the adaptive identification of control panel models can be achieved.
[0035] Among them, the first type of fire alarm host refers to the source fire alarm host that receives on-site fire alarm information. It can be an old system host, responsible for encapsulating and processing on-site fire alarm information, converting it into host initial alarm signal that conforms to its own communication protocol format, and serving as the initiator of alarm information in cross-system networking schemes.
[0036] Unified alarm information refers to standardized alarm data that conforms to standard communication protocols (such as MODBUS / TCP / IP) generated after the structured alarm information is converted by the communication protocol conversion card. It eliminates the differences in private protocols between different series and models of fire alarm control panels, presents the alarm content in a unified format, and facilitates the central control software to perform subsequent point mapping and linkage processing.
[0037] Among them, the alarm host model refers to the specific product model of the first type of fire alarm host identified by the protocol characteristics, data format or specific field identifier in the unified alarm information. It is used to determine the communication protocol specifications, data parsing rules and linkage logic compatibility of the host, and is a prerequisite for realizing information exchange and collaborative linkage between hosts across series and models.
[0038] Further, the step of identifying the alarm host model of the first type of fire alarm control panel based on the unified alarm information includes: The alarm data stream in the unified alarm information is obtained, and the alarm data stream is cleaned and normalized to obtain alarm data samples in a standard format. The alarm data sample in the standard format is input into the preset fire alarm control panel model recognition model to obtain the alarm control panel model of the first type of fire alarm control panel.
[0039] Among them, the alarm data stream refers to the data sequence of unified alarm information output by the communication protocol conversion card and continuously transmitted in the central control software. It contains standardized alarm data from the first type of fire alarm host and is the data source for subsequent data cleaning and format normalization processing.
[0040] Among them, the standard format alarm data sample refers to the alarm data that conforms to the preset input specifications after the alarm data stream has been cleaned and normalized. It eliminates noise, redundancy and format differences in the original data and presents them with a unified feature dimension, which is used to input the fire control panel model for model identification.
[0041] Among them, the fire alarm control panel model identification model refers to a pre-trained machine learning or deep learning model that takes standard format alarm data samples as input, learns the protocol characteristics, field distribution patterns or data patterns in the alarm data, and outputs the corresponding alarm control panel model to achieve adaptive identification of communication protocols across series and models of control panels.
[0042] Among them, the alarm host model refers to the specific product model of the first type of fire alarm host determined after classifying and identifying alarm data samples in standard format through the fire host model identification model. It is used to guide subsequent protocol parsing rule calls, linkage logic adaptation, and cross-system instruction generation.
[0043] The fire alarm control panel model identification model includes a convolutional layer, an attention layer, a fully connected layer, and a softmax classifier.
[0044] Further, the step of inputting the standard format alarm data sample into a preset fire alarm control panel model identification model to obtain the alarm control panel model of the first type of fire alarm control panel includes: The standard format alarm data sample is input into the fire control panel model identification model, and the data features are extracted using the convolutional layer to obtain the alarm data features; The alarm data features are weighted and averaged using the attention layer to obtain weighted alarm data features. The fully connected layer is then used to integrate the weighted alarm data features to obtain a feature classification vector. The probability distribution vector of each preset model category is obtained by using the softmax classifier to calculate the probability of the feature classification vector. Extract the target probability value from the probability distribution vector of each preset model category, and use the preset model category corresponding to the target probability value as the alarm host model of the first type of fire alarm host.
[0045] Among them, alarm data features refer to the feature vectors that reflect the local patterns and structural regularities of alarm data after feature extraction from standard format alarm data samples through convolutional layers. They retain the key information in the alarm data and are the basic feature representations for subsequent attention weighting and classification recognition.
[0046] Among them, weighted alarm data features refer to the feature vector obtained by weighting alarm data features using the attention layer. By assigning different weights to features of different dimensions, the contribution of key features to the recognition results is enhanced, and the influence of redundant or irrelevant features is suppressed, thereby improving the accuracy of model recognition.
[0047] Among them, the feature classification vector refers to the high-dimensional feature vector obtained after integrating the features of the weighted alarm data using the fully connected layer. It maps the weighted features output by the attention layer to the feature space corresponding to the preset number of model categories, providing a discriminative feature representation for subsequent Softmax classification.
[0048] The probability distribution vector refers to the set of probability values corresponding to each preset model category obtained after calculating the probability of the feature classification vector using the Softmax classifier. Each probability value represents the confidence level of the alarm data sample belonging to the corresponding model category, and the sum of the probabilities of all categories is 1.
[0049] Among them, the preset model category refers to all possible fire alarm control panel model classifications predefined during the training phase of the fire control panel model recognition model. Each category corresponds to a specific product model. The category corresponding to the highest probability value in the probability distribution vector output by the model through the Softmax classifier is the recognition result.
[0050] The target probability value refers to the maximum probability value extracted from the probability distribution vector, which represents the model's maximum confidence in the recognition result. The preset model category corresponding to this maximum probability value is the alarm host model recognition result of the first type of fire alarm host.
[0051] The fire alarm control panel model includes the following components: Convolutional layer (CVL) is the feature extraction component, which uses a convolutional kernel to perform sliding window calculations on the input standard-format alarm data samples to extract local features and pattern regularities, outputting alarm data features; Attention layer (ADL) is the feature weighting component, which calculates attention weights for alarm data features and performs weighted processing to enhance the importance of key feature dimensions and suppress redundant information, outputting weighted alarm data features; Fully connected layer (WCL) is the feature integration component, which maps the weighted alarm data features to a feature space corresponding to the preset number of model categories, extracts high-level semantic features through nonlinear transformations, and outputs a feature classification vector; Softmax classifier (Softmax) is the classification output component, which normalizes the probability of the feature classification vector, converts the feature vector into a probability distribution for each preset model category, outputs a probability distribution vector, and takes the category corresponding to the highest probability value as the model recognition result.
[0052] S3. Map the unified alarm information to the preset base map to obtain the alarm point location and alarm point device identifier.
[0053] Understandably, by mapping unified alarm information to preset base maps, abstract alarm codes are converted into specific alarm point locations and device identifiers, enabling monitoring personnel to intuitively and quickly locate the source of the alarm.
[0054] The preset base map refers to the building floor plan data and its associated point mapping information that are pre-stored in the central control software. It is used to convert the abstract unified alarm information into a visual alarm location display.
[0055] The alarm point location refers to the specific area location on the preset base map determined by point mapping. It is presented in the form of equipment area marked on the base map to intuitively show the actual building area where the alarm occurred (such as floor, room, corridor or fire compartment), so that monitoring personnel can quickly locate the fire scene.
[0056] Among them, the alarm point device identifier refers to the identification information of the specific detection device associated with the alarm point location, which is determined through point mapping. It includes the device type (such as smoke detector, manual alarm button, fire hydrant button, etc.) and device number, which is used to identify the specific device from which the alarm originates, so as to facilitate the judgment and execution of subsequent linkage logic.
[0057] Furthermore, the step of mapping the unified alarm information to a preset base map to obtain the alarm point location and alarm point device identifier includes: Extract the identifier code of the point to be mapped from the unified alarm information and obtain the base map database, wherein the base map database includes a mapping relationship table, and the mapping relationship table includes the point number, the base map labeled equipment area and the equipment identifier; The identification code of the point to be mapped is compared with the point number in the mapping table to obtain the comparison result; Based on the comparison results, the device area corresponding to the identifier code of the point to be mapped is located on the preset base map to obtain the location of the alarm point, and the device identifier of the alarm point location is associated with it to obtain the device identifier of the alarm point.
[0058] Among them, the point identification code to be mapped refers to the field value extracted from the unified alarm information and used to identify the unique code of the alarm device. It serves as the input key value for point mapping and is used to query the corresponding background annotation device area and device identifier in the mapping relationship table.
[0059] The base map database refers to the data set stored in the backend of the central control software, used to manage the base map of building floor plans and the mapping relationship between points. It includes base map files, mapping relationship tables, equipment information and other data, providing basic data support for point mapping.
[0060] The mapping table is a core data table stored in the base map database. It is used to establish a one-to-one correspondence between the location number and the equipment area and equipment identifier marked on the base map. It is a key data structure for realizing the transformation from abstract alarm code to visual alarm location.
[0061] Among them, the point number refers to the coded field used to uniquely identify the fire detection equipment in the mapping relationship table. It corresponds to the point identification code to be mapped in terms of value and format, and is the primary key field for matching and comparison during the point mapping process.
[0062] Among them, the device area marked on the base map refers to the specific area location information that is associated with the point number in the mapping relationship table and is pre-marked on the preset base map. It describes the building location (such as floor, room, fire compartment) where the alarm device is located and is used to locate the alarm point on the base map.
[0063] Among them, the device identifier refers to the identification information associated with the location number in the mapping relationship table, which is used to describe the specific attributes of the alarm device. It includes the device type (such as smoke detector, manual alarm button) and device number, which is used to identify the specific device from which the alarm originates.
[0064] The comparison result refers to the status information obtained after matching the identifier code of the point to be mapped with the point number in the mapping relationship table. It includes two statuses: successful matching or failed matching. When the matching is successful, the corresponding base map annotation device area and device identifier are returned for subsequent base map positioning and device association.
[0065] S4. Generate a linkage control command based on the location of the alarm point, the device identifier of the alarm point, and the model of the alarm host.
[0066] Understandably, by combining the location of the alarm point, the identification of the alarm point equipment, and the model of the alarm host, linkage control commands are generated to ensure coordinated action of fire-fighting equipment and improve the accuracy and compliance of linkage.
[0067] Among them, the linkage control command refers to the standardized command generated by combining the alarm point location, alarm point equipment identification and alarm host model with the national standard linkage logic to control the action of fire-fighting equipment. It includes information such as target equipment identification, action type (such as start, stop), and action parameters, and is encapsulated according to the communication protocol format of the target host, and is used to drive the second type of fire alarm host to start the corresponding on-site fire-fighting equipment.
[0068] S5. Decompose the linkage control command into equipment action commands. Based on the equipment action commands, use the preset second type of fire alarm host to start the preset fire equipment and obtain the equipment linkage feedback signal.
[0069] Understandably, by decomposing the linkage control command into device action commands that the target host can execute, and then activating the corresponding fire-fighting equipment by the second type of fire alarm host, cross-model host device linkage control is realized, and a closed loop is formed through feedback signals to ensure that the action is executed in place.
[0070] The second type of fire alarm equipment is a device that uses a different communication protocol than the first type of fire alarm equipment.
[0071] The second type of fire alarm control panel refers to the target fire alarm control panel that receives linkage control commands and executes the activation actions of fire-fighting equipment. It can be a different series or model of the control panel than the first type of fire alarm control panel, using different communication protocols. It can be used as a new fire alarm control panel and as the execution end of linkage control in cross-system networking schemes, responsible for parsing equipment action commands and driving the on-site fire-fighting equipment to act.
[0072] Among them, the equipment action command refers to the specific control command generated by decomposing and converting the linkage control command according to the communication protocol format of the second type of fire alarm host. It includes information such as the address of the target fire equipment, the action type (such as start, stop) and action parameters, and is used to drive the second type of fire alarm host to perform specific equipment control operations.
[0073] Among them, fire-fighting equipment refers to terminal execution equipment installed at the fire scene for fire prevention, alarm, fire extinguishing or evacuation, including but not limited to smoke exhaust fans, fire pumps, fireproof rolling shutters, audible and visual alarms, fire broadcast systems, gas extinguishing devices, etc., which are started or stopped by the Class II fire alarm host according to the equipment action instructions.
[0074] Among them, the equipment linkage feedback signal refers to the status signal returned by the Class II fire alarm host or field equipment after the fire equipment executes the equipment action command, which is used to confirm the execution status of the action. It includes status information such as successful equipment start-up, failure to start-up, equipment failure, and action completion, which is used to form a closed-loop verification of linkage control to ensure that the fire equipment has acted correctly according to the command.
[0075] Furthermore, after activating preset fire-fighting equipment using the second type of fire alarm control panel based on the device action command and obtaining the device linkage feedback signal, the method further includes: The alarm location is displayed on a preset electronic map based on the location of the alarm point, and the device identifier of the alarm point and the model of the alarm host are marked.
[0076] Among them, the electronic map refers to the interactive graphical interface in the central control software used to visualize the building structure and the distribution of fire-fighting equipment. It is built based on the building floor plan base map in the base map database, and marks the alarm point location, associated equipment identification and alarm host model at the corresponding location according to the point mapping results. The alarm information is presented intuitively through flashing, highlighting and other methods, which makes it easy for monitoring personnel to quickly locate the fire scene and take corresponding measures.
[0077] In this embodiment of the invention, a communication protocol conversion card is debugged and parameter adaptation and network connectivity are completed to obtain a debugged control unit. A first-type fire alarm control panel encapsulates the on-site fire alarm and obtains structured alarm information through dynamic protocol tracking and field semantic parsing. The communication protocol conversion card converts the structured information into unified alarm information and identifies the control panel model. Central control software is acquired, and the unified alarm information is mapped to a preset base map to obtain the alarm point location and device identifier. Linkage control commands are generated according to national standard linkage logic. These commands are decomposed into device action commands executable by a second-type fire alarm control panel, activating the fire equipment and obtaining linkage feedback signals. Therefore, the fire alarm linkage method, system, electronic equipment, and computer-readable storage medium proposed in this invention, based on heterogeneous devices, achieve seamless cross-system interoperability and collaborative linkage of new and old fire alarm control panels of different series and models without changing the hardware configuration by constructing a protocol conversion and information mapping architecture centered on a central control unit. This solves the linkage failure problem caused by protocol incompatibility and system isolation, and improves the linkage level of fire equipment.
[0078] like Figure 2 The diagram shown is a schematic diagram of the fire alarm linkage system based on heterogeneous equipment according to the present invention.
[0079] The fire alarm linkage system 100 based on heterogeneous devices described in this invention can be installed in electronic devices. Depending on the functions implemented, the fire alarm linkage system based on heterogeneous devices may include an alarm information acquisition module 101, a host model identification module 102, a control command generation module 103, and a fire equipment linkage module 104. The module described in this invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.
[0080] In this embodiment, the functions of each module / unit are as follows: The alarm information acquisition module 101 is used to acquire the communication protocol conversion card in the central control unit and debug the communication protocol conversion card to obtain the debug control unit; The system acquires on-site fire alarm information, encapsulates and processes the on-site fire alarm information using a preset first-type fire alarm host, obtains the host's initial alarm signal, and performs dynamic protocol tracking and field semantic parsing on the host's initial alarm signal to obtain structured alarm information. The host model identification module 102 is used to convert the structured alarm information into a unified alarm information using the communication protocol conversion card, and to identify the alarm host model of the first type of fire alarm host based on the unified alarm information. The control command generation module 103 is used to acquire the central control software in the debugging control unit, and use the central control software to perform point mapping between the unified alarm information and the preset base map to obtain the alarm point location and alarm point device identifier. Based on the preset national standard linkage logic, linkage control commands are generated according to the location of the alarm point, the device identifier of the alarm point, and the model of the alarm host. The fire equipment linkage module 104 is used to decompose the linkage control command into preset equipment action commands of the second type of fire alarm host, and based on the equipment action commands, use the second type of fire alarm host to start preset fire equipment to obtain equipment linkage feedback signals.
[0081] In detail, the modules in the fire alarm linkage system 100 based on heterogeneous devices described in this embodiment of the invention adopt the same characteristics as those described above during use. Figure 1 The fire alarm linkage method based on heterogeneous equipment uses the same technical means and can produce the same technical effect, so it will not be described in detail here.
[0082] like Figure 3 The diagram shown is a structural schematic of the electronic device for implementing the fire alarm linkage method based on heterogeneous devices according to the present invention.
[0083] The electronic device may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and capable of running on the processor 10, such as a fire alarm linkage program based on heterogeneous devices.
[0084] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., executing fire alarm linkage programs based on heterogeneous devices) and calls data stored in the memory 11 to perform various functions of the electronic device and process data.
[0085] The memory 11 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a portable hard drive. In other embodiments, the memory 11 can be an external storage device of the electronic device, such as a plug-in portable hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc. Furthermore, the memory 11 can include both internal and external storage units of the electronic device. The memory 11 can be used not only to store application software and various types of data installed on the electronic device, such as code for fire alarm linkage programs based on heterogeneous devices, but also to temporarily store data that has been output or will be output.
[0086] The communication bus 12 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable communication between the memory 11 and at least one processor 10, etc.
[0087] The communication interface 13 is used for communication between the aforementioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a Wi-Fi interface, Bluetooth interface, etc.), typically used to establish communication connections between the electronic device and other electronic devices. The user interface may be a display, an input unit (such as a keyboard), or optionally, a standard wired or wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device and to display a visual user interface.
[0088] Figure 3 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 3The structure shown does not constitute a limitation on the electronic device and may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0089] For example, although not shown, the electronic device may also include a power supply (such as a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0090] It should be understood that the embodiments described are for illustrative purposes only and are not limited to this structure in the scope of the patent application.
[0091] The fire alarm linkage program based on heterogeneous devices stored in the memory 11 of the electronic device is a combination of multiple computer programs. When run in the processor 10, it can achieve the following: Obtain the communication protocol conversion card in the central control unit, and debug the communication protocol conversion card to obtain the debug control unit; The system acquires on-site fire alarm information, encapsulates and processes the on-site fire alarm information using a preset first-type fire alarm host, obtains the host's initial alarm signal, and performs dynamic protocol tracking and field semantic parsing on the host's initial alarm signal to obtain structured alarm information. The structured alarm information is converted using the communication protocol conversion card to obtain unified alarm information, and the alarm host model of the first type of fire alarm host is identified based on the unified alarm information. The central control software in the debugging control unit is obtained, and the central control software is used to map the unified alarm information with the preset base map to obtain the alarm point location and alarm point device identifier. Based on the preset national standard linkage logic, linkage control commands are generated according to the location of the alarm point, the device identifier of the alarm point, and the model of the alarm host. The linkage control command is decomposed into a preset device action command for a second type of fire alarm host, and based on the device action command, the preset fire equipment is activated using the second type of fire alarm host to obtain a device linkage feedback signal.
[0092] Specifically, the processor 10's implementation method of the above-mentioned computer program can be found in [reference needed]. Figure 1 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.
[0093] Furthermore, if the modules / units integrated into the electronic device are implemented as software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0094] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following: Obtain the communication protocol conversion card in the central control unit, and debug the communication protocol conversion card to obtain the debug control unit; The system acquires on-site fire alarm information, encapsulates and processes the on-site fire alarm information using a preset first-type fire alarm host, obtains the host's initial alarm signal, and performs dynamic protocol tracking and field semantic parsing on the host's initial alarm signal to obtain structured alarm information. The structured alarm information is converted using the communication protocol conversion card to obtain unified alarm information, and the alarm host model of the first type of fire alarm host is identified based on the unified alarm information. The central control software in the debugging control unit is obtained, and the central control software is used to map the unified alarm information with the preset base map to obtain the alarm point location and alarm point device identifier. Based on the preset national standard linkage logic, linkage control commands are generated according to the location of the alarm point, the device identifier of the alarm point, and the model of the alarm host. The linkage control command is decomposed into a preset device action command for a second type of fire alarm host, and based on the device action command, the preset fire equipment is activated using the second type of fire alarm host to obtain a device linkage feedback signal.
[0095] In the several embodiments provided by this invention, it should be understood that the disclosed devices, systems, and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.
[0096] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0097] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.
[0098] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0099] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the invention. No appended diagram markings in the claims should be construed as limiting the scope of the claims.
[0100] The blockchain referred to in this invention is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.
[0101] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0102] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or systems stated in a system claim may also be implemented by a single unit or system through software or hardware. The term "second class" is used to indicate names and does not indicate any specific order.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A fire alarm linkage method based on heterogeneous devices, characterized in that, Applied to Class I fire alarm equipment, the method includes: Acquire on-site fire alarm information, encapsulate the on-site fire alarm information to obtain the host initial alarm signal, and perform dynamic protocol tracking and field semantic parsing on the host initial alarm signal to obtain structured alarm information; The structured alarm information is converted into a unified alarm information, and the alarm host model of the first type of fire alarm host is identified based on the unified alarm information. The unified alarm information is mapped to a preset base map to obtain the alarm point location and alarm point device identifier; Based on the location of the alarm point, the device identifier of the alarm point, and the model of the alarm host, a linkage control command is generated; The linkage control command is decomposed into equipment action commands. Based on the equipment action commands, the preset fire-fighting equipment is activated using the preset second type of fire alarm host to obtain the equipment linkage feedback signal. The second type of fire alarm equipment is a device that uses a different communication protocol than the first type of fire alarm equipment.
2. The fire alarm linkage method based on heterogeneous equipment as described in claim 1, characterized in that, The process of encapsulating the on-site fire alarm information to obtain the initial alarm signal for the host includes: Obtain the alarm device address, event type, and status value from the on-site fire alarm information to obtain the fire alarm address, alarm event type, and fire alarm status. The fire alarm address, the alarm event type, and the fire alarm status are encapsulated into a data packet structure of a preset length to obtain a fire alarm data packet; A preset protocol header, preset checksum, and preset end flag are added to the fire alarm data packet to obtain the initial alarm signal of the host.
3. The fire alarm linkage method based on heterogeneous equipment as described in claim 1, characterized in that, The process of performing dynamic protocol tracing and field semantic parsing on the initial alarm signal of the host to obtain structured alarm information includes: The communication data stream of the initial alarm signal of the host is obtained to obtain the original communication data packet; The flow of the original communication data packets is traced, and a fixed field sequence in the original communication data packets is identified based on the flow of the data packets to obtain a candidate set of protocol fields; Acquire alarm data for different event types, compare the protocol field candidate set with the alarm data for different event types to obtain field differences, and construct a field semantic mapping table based on the field differences; Based on the field semantic mapping table, the original communication data packet is segmented and semantically labeled to obtain structured alarm information, wherein the structured alarm information includes host identifier, device number, device type, event type and location information.
4. The fire alarm linkage method based on heterogeneous equipment as described in claim 1, characterized in that, The step of identifying the alarm host model of the first type of fire alarm control panel based on the unified alarm information includes: The alarm data stream in the unified alarm information is obtained, and the alarm data stream is cleaned and normalized to obtain alarm data samples in a standard format. The alarm data sample in the standard format is input into the preset fire alarm control panel model recognition model to obtain the alarm control panel model of the first type of fire alarm control panel.
5. The fire alarm linkage method based on heterogeneous equipment as described in claim 4, characterized in that, The fire alarm control panel model identification model includes a convolutional layer, an attention layer, a fully connected layer, and a softmax classifier. The step of inputting the standard format alarm data sample into the preset fire alarm control panel model to obtain the alarm control panel model of the first type of fire alarm control panel includes: The standard format alarm data sample is input into the fire control panel model identification model, and the data features are extracted using the convolutional layer to obtain the alarm data features; The alarm data features are weighted and averaged using the attention layer to obtain weighted alarm data features. The fully connected layer is then used to integrate the weighted alarm data features to obtain a feature classification vector. The probability distribution vector of each preset model category is obtained by using the softmax classifier to calculate the probability of the feature classification vector. Extract the target probability value from the probability distribution vector of each preset model category, and use the preset model category corresponding to the target probability value as the alarm host model of the first type of fire alarm host.
6. The fire alarm linkage method based on heterogeneous devices as described in claim 1, characterized in that, The step of mapping the unified alarm information to a preset base map to obtain the alarm point location and alarm point device identifier includes: Extract the identifier code of the point to be mapped from the unified alarm information and obtain the base map database, wherein the base map database includes a mapping relationship table, and the mapping relationship table includes the point number, the base map labeled equipment area and the equipment identifier; The identification code of the point to be mapped is compared with the point number in the mapping table to obtain the comparison result; Based on the comparison results, the device area corresponding to the identifier code of the point to be mapped is located on the preset base map to obtain the location of the alarm point, and the device identifier of the alarm point location is associated with it to obtain the device identifier of the alarm point.
7. The fire alarm linkage method based on heterogeneous equipment as described in claim 1, characterized in that, After the method involves activating preset fire-fighting equipment using the second type of fire alarm control panel based on the device action command and obtaining the device linkage feedback signal, it further includes: The alarm location is displayed on a preset electronic map based on the location of the alarm point, and the device identifier of the alarm point and the model of the alarm host are marked.
8. A fire alarm linkage system based on heterogeneous devices, characterized in that, The system includes: The alarm information acquisition module is used to acquire on-site fire alarm information, encapsulate the on-site fire alarm information to obtain the host initial alarm signal, and perform dynamic protocol tracking and field semantic parsing on the host initial alarm signal to obtain structured alarm information. The host model identification module is used to perform protocol conversion on the structured alarm information to obtain unified alarm information, and to identify the alarm host model of the first type of fire alarm host based on the unified alarm information; The control command generation module is used to map the unified alarm information to a preset base map to obtain the alarm point location and alarm point device identifier. Based on the location of the alarm point, the device identifier of the alarm point, and the model of the alarm host, a linkage control command is generated; The fire equipment linkage module is used to decompose the linkage control command into equipment action commands, and based on the equipment action commands, to activate the preset fire equipment using the preset second type of fire alarm host to obtain the equipment linkage feedback signal. The second type of fire alarm equipment is a device that uses a different communication protocol than the first type of fire alarm equipment.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the fire alarm linkage method based on heterogeneous devices as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It includes a data storage area and a program storage area. The data storage area stores the created data, and the program storage area stores the computer program. When the computer program is executed by the processor, it implements the fire alarm linkage method based on heterogeneous devices as described in any one of claims 1 to 7.