Information acquisition and processing system and method for building fire fighting system
Technical Field
The invention relates to the technical field of fire safety, in particular to an information acquisition and processing system and method for a building fire fighting system.
Background
In the field of building fire safety, an automatic fire alarm subsystem, an electrical fire monitoring subsystem, a combustible gas monitoring subsystem, a gas fire extinguishing subsystem and the like are installed in a building, the subsystems are mutually independent systems and do not have a cloud function, but the subsystems are provided with corresponding fire fighting hosts, for example, the automatic fire alarm subsystem is provided with an automatic fire alarm controller, the electrical fire monitoring subsystem is provided with an electrical fire monitoring device, the controllers and the monitoring device are abbreviated as fire fighting hosts, the fire fighting hosts can collect original alarm data of the corresponding subsystems, such as alarm data of fire alarm, early warning, starting, feedback, fault and shielding, but the fire fighting hosts cannot transmit the collected original alarm data to a cloud platform, and generally, the fire fighting hosts are based on a fire fighting internet of things information gateway, the acquired original alarm data are sent to the fire-fighting Internet of things information gateway, the fire-fighting Internet of things information gateway analyzes the original alarm data to generate alarm information, and the alarm information is transmitted to the cloud platform, so that the building is comprehensively and remotely monitored.
The fire-fighting host computer generally CAN have printer and external CRT (display), and printer and CRT all have communication interface, and the interface form generally is RS232, RS485, CAN, TTL etc. and fire control thing networking information gateway is connected with the fire-fighting host computer through this communication interface.
On one hand, the fire-fighting internet of things information gateway can not analyze original alarm data of all kinds and types of fire-fighting hosts, so that alarm information transmitted to a cloud platform is easy to omit; on the other hand, the fire control internet of things information gateway does not have a uniform analysis rule for the original alarm data of the fire control host computers of various types and models, so that the alarm information transmitted to the cloud platform cannot be directly utilized. Therefore, the remote monitoring of the building is not beneficial to the comprehensive and effective remote monitoring.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides an information acquisition and processing system of a building fire fighting system, which solves the problems that alarm information transmitted to a cloud platform cannot be directly utilized and omission easily occurs, and provides data guarantee for comprehensive remote monitoring of a building.
In order to achieve the purpose, the invention adopts the following technical scheme that:
an information acquisition and processing system of a building fire fighting system, comprising: the fire-fighting internet of things information gateway and the camera are respectively arranged corresponding to each fire-fighting host;
the fire-fighting Internet of things information gateway is connected with a fire-fighting host to acquire original alarm data of a corresponding subsystem, which is acquired by the fire-fighting host; the fire-fighting Internet of things information gateway is used for analyzing the acquired original alarm data to generate alarm information;
the camera is used for shooting a main screen of the fire fighting host;
the fire-fighting Internet of things information gateway is in communication connection with the camera, and the fire-fighting Internet of things information gateway is linked with the camera to shoot;
the fire-fighting Internet of things information gateway and the camera are respectively in communication connection with the cloud platform;
the fire-fighting Internet of things information gateway sends the alarm information generated by analysis or the original alarm data which cannot be analyzed to the cloud platform;
the camera sends the shot pictures to the cloud platform.
Further, if the fire-fighting internet of things information gateway cannot analyze and generate original alarm data, the fire-fighting internet of things information gateway sends the original alarm data which cannot be analyzed to the cloud platform, the original alarm data are linked with the camera to shoot, and the camera sends shot pictures to the cloud platform; and the cloud platform carries out picture identification on the pictures shot by the camera and identifies alarm information.
Further, the cloud platform establishes a corresponding relation between the identified alarm information and the original alarm data which cannot be analyzed to obtain an analysis rule of the original alarm data which cannot be analyzed; the cloud platform sends the analysis rule of the original alarm data which cannot be analyzed to the fire-fighting Internet of things information gateway.
Further, the fire-fighting internet of things information gateway analyzes the original alarm data to generate alarm information; the alarm information comprises three elements which are respectively: alarm type, alarm time and alarm point location.
Furthermore, an analysis rule is set in the fire-fighting internet of things information gateway, the original alarm data is analyzed by using the analysis rule to obtain three elements of the alarm information, and the analysis rule of the fire-fighting internet of things information gateway is as follows:
three databases, namely B, T, P, are preset in the fire-fighting Internet of things information gateway; the three databases are respectively databases of three elements of alarm information, B is a database of an alarm type, T is a database of alarm time, and P is a database of alarm point positions; after the fire-fighting internet of things information gateway acquires original alarm data X, comparing the original alarm data X with three preset databases respectively, and analyzing three elements of alarm information;
if X ═ B ═ B, then the alarm type analyzed out by the original alarm data X is B;
if X ≈ T ═ T, the alarm time analyzed by the original alarm data X is T;
if X ≈ P ═ P, the alarm point location parsed from the original alarm data X is P.
The invention also provides an information acquisition and processing method of the building fire fighting system, which comprises the following steps:
s1, installing a fire-fighting Internet of things information gateway, wherein the fire-fighting Internet of things information gateway is connected with a fire-fighting host, and the fire-fighting Internet of things information gateway acquires original alarm data of a corresponding subsystem acquired by the fire-fighting host in real time;
s2, presetting three databases, namely B, T, P, in the fire-fighting Internet of things information gateway; the three databases are respectively databases of three elements of alarm information, B is a database of an alarm type, T is a database of alarm time, and P is a database of alarm point positions;
s3, installing a camera, wherein the camera is opposite to the fire fighting host and shoots a main screen of the fire fighting host; the camera is in communication connection with the fire-fighting Internet of things information gateway;
s4, when the fire-fighting Internet of things information gateway obtains the original alarm data X, comparing the original alarm data X with three preset databases respectively, and analyzing three elements of the alarm information in the following manner:
if X ═ B ═ B, then the alarm type analyzed out by the original alarm data X is B;
if X ≈ T ═ T, the alarm time analyzed by the original alarm data X is T;
if X ≈ P ═ P, the alarm point position analyzed by the original alarm data X is P;
s5, if the original alarm data X are successfully analyzed, the alarm type is b, the alarm time is t and the alarm point position is p, the fire-fighting Internet of things information gateway sends the analyzed generated alarm information, namely (b, t, p), to the cloud platform, and the information acquisition and processing are finished; if the original alarm data X fails to be analyzed, jumping to step S6;
s6, the fire-fighting internet of things information gateway is linked with the camera to shoot a main screen of the fire-fighting host, the camera sends the shot pictures to the cloud platform, and the fire-fighting internet of things information gateway sends the original alarm data X which are failed to be analyzed to the cloud platform;
s7, the cloud platform carries out picture recognition on the picture shot by the camera, three elements of the alarm information are recognized, and the three elements of the recognized alarm information are respectively an alarm type b ', an alarm time t ' and an alarm point p ';
s8, the cloud platform establishes an analysis rule of the original alarm data X which fails in analysis according to the three elements of the identified alarm information, namely, the corresponding relation between the original alarm data X and the alarm type b ', the alarm time t ' and the alarm point p '; the cloud platform sends the analysis rule of the original alarm data X to the fire-fighting Internet of things information gateway, the fire-fighting Internet of things information gateway stores the analysis rule of the original alarm data X, the three databases are updated, the alarm type B ' is added to the alarm type database B, the alarm time T ' is added to the alarm time database T, and the alarm point P ' is added to the alarm point database P.
Further, in step S4, the analysis method is specifically as follows:
if X ^ N B only has a unique solution, and X ^ N B is B, the original alarm data X can be analyzed to obtain an alarm type, and the alarm type of the original alarm data X is B; if X ^ B does not have a solution, it means the original alarm data X can not resolve the alarm type; if X ^ B has a plurality of solutions, the original alarm data X cannot be analyzed to obtain the alarm type;
if X n T only has a unique solution and X n T is T, the original alarm data X can be analyzed to obtain alarm time, and the alarm time of the original alarm data X is T; if X ^ T does not have a solution, the original alarm data X cannot be analyzed to obtain the alarm time; if X ^ T has a plurality of solutions, the original alarm data X cannot be analyzed to obtain the alarm type;
if X n P only has a unique solution, and X n P is equal to P, the original alarm data X can analyze an alarm point location, and the alarm point location of the original alarm data X is P; if X ^ N is not solved, the original alarm data X cannot be analyzed to obtain alarm points; if X ^ N P has a plurality of solutions, the original alarm data X cannot be analyzed to obtain alarm points;
in step S5, if all three elements of the alarm information are analyzed, it indicates that the original alarm data X is successfully analyzed; and if the three elements of the alarm information cannot be analyzed, indicating that the original alarm data X fails to be analyzed.
Further, in step S8, the cloud platform compares the three elements of the identified alarm information, i.e. the alarm type b ', the alarm time t ', and the alarm point p ', with the original alarm data X sent by the information gateway of the fire-fighting internet of things,
if b ' belongs to X and t ' belongs to X and p ' belongs to X, the original alarm data X is represented as valid data, and the alarm information corresponding to the original alarm data X is (b ', t ', p '), and an analysis rule of the original alarm data X is established, namely the corresponding relation between the original alarm data X and the alarm type b ', the alarm time t ' and the alarm point p ';
if it is
Or
Or
The original alarm data X is invalid data, and the original alarm data X has no corresponding alarm information, and the original alarm data X cannot establish an analysis rule; the cloud platform feeds the original alarm data X as invalid data back to the fire-fighting Internet of things information gateway, and the fire-fighting Internet of things information gateway continues to acquire the original alarm data from the fire-fighting host.
Further, in step S7, if the cloud platform cannot recognize the three elements of the alarm information from the picture taken by the camera, the cloud platform feeds back the picture that cannot be recognized to the camera, and the camera takes the picture again and sends the picture to the cloud platform.
Further, in step S7 or step S8, if the cloud platform cannot establish the analysis rule, or the cloud platform cannot identify the three elements of the alarm information according to the picture taken by the camera, the cloud platform issues a prompt, and the user can directly view the picture taken by the camera on the cloud platform, determine the three elements of the alarm information, and establish the analysis rule of the original alarm data X by using the determined three elements of the alarm information.
The invention has the advantages that:
(1) according to the information acquisition and processing system, the camera for shooting the fire-fighting host is arranged, the fire-fighting internet of things information gateway is linked with the camera for shooting, the fire-fighting internet of things information gateway is used for acquiring alarm information, and pictures shot by the camera are used as an auxiliary means when the alarm information analysis fails, so that the problem that the alarm information transmitted to the cloud platform is easy to miss is solved, and data guarantee is provided for comprehensive remote monitoring of a building.
(2) According to the invention, the original alarm data is analyzed, a uniform analysis rule is established, the generated alarm information only comprises three elements, namely the alarm type, the alarm time and the alarm point position, and the cloud platform finally obtains the three elements of the alarm information, and the three elements can meet the data requirement of the building for comprehensive and effective monitoring, improve the utilization efficiency of information and provide data guarantee and data support for comprehensive remote monitoring of the building.
(3) According to the invention, the original alarm data is analyzed in a preset database mode, the original alarm data is compared with the database of each element, each element of the alarm information is extracted from the original alarm data, the method is convenient and fast, and the accuracy of data analysis is ensured.
(4) According to the invention, aiming at the original alarm data which cannot be analyzed, an auxiliary means is utilized, namely a camera is utilized to shoot a picture, the picture is identified by a cloud platform, three elements of alarm information are identified, a corresponding relation is established between the original alarm data which cannot be analyzed and the three elements of the identified alarm information, a new analysis rule is obtained, and the new analysis rule is fed back to the information gateway of the fire-fighting internet of things, so that the analysis rule and the database of the information gateway of the fire-fighting internet of things are perfected.
(5) Aiming at the condition that the analysis rule cannot be established or the three elements of the alarm information cannot be identified, the user can also directly check the picture on the cloud platform and determine the three elements of the alarm information, so that the safety and the effectiveness of the comprehensive remote monitoring of the building are ensured.
(6) The fire-fighting internet of things information gateway can adopt a rtty reverse proxy technology, the fire-fighting internet of things information gateway serves as a client, the server is deployed on the cloud platform, and the fire-fighting internet of things information gateway can be remotely logged in, accessed and controlled through the server, so that remote upgrading and remote control of the fire-fighting internet of things information gateway are realized.
Drawings
Fig. 1 is a schematic diagram of an information acquisition and processing system of a building fire fighting system according to the present invention.
Fig. 2 is a flowchart of an information collecting and processing method of a building fire fighting system according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this embodiment, building fire extinguishing system includes: the fire disaster monitoring system comprises an automatic fire disaster alarming subsystem, an electric fire disaster monitoring subsystem, a combustible gas monitoring subsystem and a gas fire extinguishing subsystem. The fire control host computer that each subsystem all its corresponds, the fire control host computer is used for gathering the original alarm data of corresponding subsystem, includes: fire alarm, early warning, start, feedback, fault, shielded alarm data.
As shown in fig. 1, the information collecting and processing system of the building fire fighting system of the present invention includes: the fire-fighting internet of things information gateway 1 and the camera 2 are respectively arranged corresponding to each fire-fighting host;
the fire-fighting internet of things information gateway 1 is connected with a fire-fighting host to acquire original alarm data of a corresponding subsystem, which is acquired by the fire-fighting host.
The camera 2 is arranged right opposite to the fire-fighting host and used for shooting a main screen of the fire-fighting host.
Fire control thing networking information gateway 1 includes: an interface unit 11, a central processing unit 12, a communication unit 13, an input unit 14, and a display unit 15;
the central processing unit 12 is respectively connected with the interface unit 11, the communication unit 13, the input unit 14 and the display unit 15;
the interface unit 11 is used for realizing the connection between the fire-fighting internet of things information gateway 1 and a fire-fighting host, and comprises interface circuits such as RS232, RS485, CAN, TTL and the like; the printer and the CRT of the fire-fighting host computer are provided with communication interfaces, the interfaces are generally RS232, RS485, CAN, TTL and the like, and the interface unit 11 of the fire-fighting internet of things information gateway 1 is connected with the communication interface on the fire-fighting host computer.
The central processing unit 12 is configured to analyze the acquired original alarm data to generate alarm information.
The communication unit 13 is used for realizing data transmission between the fire-fighting internet of things information gateway 1 and the cloud platform; the communication unit 13 may adopt wired, wireless, network and other data transmission modes.
On one hand, the fire-fighting internet of things information gateway 1 sends the acquired original alarm data and the generated alarm information to the cloud platform through the communication unit 13;
on the other hand, the fire-fighting internet of things information gateway 1 adopts a rtty reverse proxy technology, the fire-fighting internet of things information gateway 1 serves as a client, a server is deployed on the cloud platform, and the server can remotely log in, access and control the fire-fighting internet of things information gateway 1 through the communication unit 13, so that remote upgrading and remote control of the fire-fighting internet of things information gateway 1 are achieved.
The input unit 14 is used for inputting relevant parameters, and comprises: the server IP and the port of the communication unit 14 input control parameters of the interface unit 11, such as baud rate and data bits of the interface unit 11. In this embodiment, the input unit 14 is a keyboard.
The display unit 15 is used for displaying an operation interface, alarm information, prompt information and the like.
The camera 2 is in remote communication connection with the cloud platform, and the shot pictures are sent to the cloud platform. In this embodiment, the camera 2 is a network camera, and is connected to the cloud platform through network remote communication.
Communication connection between fire control thing networking information gateway 1 and the camera 2, fire control thing networking information gateway 1 links camera 2 and shoots.
An analysis rule is set in the central processing unit 12 of the fire-fighting internet of things information gateway 1, and original alarm data is analyzed into alarm information by using the analysis rule; the alarm information comprises three elements which are respectively: alarm type, alarm time and alarm point location.
The alarm types include: fire alarm, early warning, starting, feedback, fault and shielding;
the alarm time comprises the following steps: year, month, day, minute, second;
the alarm point location includes: the machine number of the fire-fighting main machine and the loop and point position in the building fire-fighting system.
The fire control thing networking information gateway 1 obtains the original alarm data that fire control host computer gathered through interface unit 11, and central processing unit 12 analyzes original alarm data and generates alarm information to transmit alarm information to the cloud platform through communication unit 13.
If the central processing unit 12 of the fire-fighting internet of things information gateway 1 cannot analyze certain original alarm data to generate alarm information, that is, three elements of the alarm information cannot be obtained, the linkage camera 2 shoots, shoots a main screen of a fire-fighting host computer, and sends the shot picture to a cloud platform, and the fire-fighting internet of things information gateway 1 further sends the original alarm data which cannot be analyzed to the cloud platform.
The cloud platform identifies the picture, identifies to obtain alarm information, and establishes a new analysis rule, the analysis rule is the corresponding relation between the original alarm data which cannot be analyzed and the identified alarm information, the established new analysis rule is sent to the fire-fighting internet of things information gateway 1, the fire-fighting internet of things information gateway 1 stores the established new analysis rule, and therefore completion of the analysis rule is achieved, and when the fire-fighting internet of things information gateway 1 acquires the same original alarm data next time, the original alarm data can be analyzed to generate corresponding alarm information.
As shown in fig. 2, the information collecting and processing method of the building fire fighting system of the present invention includes the following steps:
s1, installing a fire-fighting Internet of things information gateway 1, wherein the fire-fighting Internet of things information gateway 1 is connected with a fire-fighting host, and the fire-fighting Internet of things information gateway 1 acquires original alarm data of a corresponding subsystem collected by the fire-fighting host in real time;
s2, three databases, namely B, T, P, are preset in the fire-fighting Internet of things information gateway 1; the three databases are respectively databases of three elements of alarm information, B is a database of an alarm type, T is a database of alarm time, and P is a database of alarm point positions;
and S3, installing the camera 2, wherein the camera 2 is opposite to the fire-fighting host computer, and shooting a main screen of the fire-fighting host computer.
S4, when the fire-fighting Internet of things information gateway 1 acquires original alarm data X, comparing the original alarm data X with three preset databases respectively, and analyzing three elements of alarm information;
if X ^ N B only has a unique solution and X ^ N B is B, the original alarm data X can analyze the alarm type, and the alarm type of the original alarm data X is B; if X ^ B does not have a solution, the original alarm data X cannot analyze the alarm type; if X ^ B has a plurality of solutions, the original alarm data X cannot analyze the alarm type;
if X n T only has a unique solution and X n T is T, the original alarm data X can analyze the alarm time, and the alarm time of the original alarm data X is T; if X ^ T does not have a solution, the original alarm data X cannot analyze the alarm time; if X ^ T has a plurality of solutions, the original alarm data X cannot analyze the alarm type;
if X n P only has a unique solution and X n P is P, the original alarm data X can analyze an alarm point location, and the alarm point location of the original alarm data X is P; if X ^ N and P have no solution, the original alarm data X can not analyze the alarm point location; if X ^ N P has a plurality of solutions, the original alarm data X cannot analyze the alarm point location;
s5, if the three elements of the alarm information are analyzed, the analysis of the original alarm data X is successful, and the alarm information generated by the analysis is (b, t, p); the fire-fighting internet of things information gateway 1 sends the analyzed and generated alarm information (b, t, p) to the cloud platform, and the information acquisition and processing are finished;
if the three elements of the alarm information cannot be analyzed, indicating that the original alarm data X fails to be analyzed, and skipping to the step S6;
s6, the fire-fighting Internet of things information gateway 1 sends the original alarm data X failed in analysis to a cloud platform, and links with the corresponding camera 2 to shoot a main screen of the fire-fighting host, and sends the shot pictures to the cloud platform;
s7, the cloud platform carries out picture recognition on the picture shot by the camera 2, three elements of alarm information are obtained through recognition, and the alarm type is b ', the alarm time is t ', and the alarm point position is p ';
s8, the cloud platform compares the three elements of the identified alarm information with the original alarm data X sent by the fire-fighting Internet of things information gateway 1,
if b ' belongs to X and t ' belongs to X and p ' belongs to X, the original alarm data X is represented as valid data, the alarm information corresponding to the original alarm data X is (b ', t ', p '), and an analysis rule of the original alarm data X is established, wherein the analysis rule is the corresponding relation between the original alarm data X and the alarm type b ', the alarm time t ' and the alarm point p '; the cloud platform sends the analysis rule of the original alarm data X to the fire-fighting Internet of things information gateway 1, the fire-fighting Internet of things information gateway 1 stores the analysis rule of the original alarm data X, the three databases are updated, the alarm type B ' is added to the alarm type database B, the alarm time T ' is added to the alarm time database T, and the alarm point P ' is added to the alarm point database P;
if it is
Or
Or
The original alarm data X is invalid data, and the original alarm data X has no corresponding alarm information, and the original alarm data X cannot establish an analysis rule; the cloud platform feeds the original alarm data X as invalid data back to the fire-fighting internet of things information gateway 1, and the fire-fighting internet of things information gateway 1 continues to obtain new original alarm data from the fire-fighting host;
in step S7, if the cloud platform cannot identify the three elements of the alarm information according to the picture taken by the camera 2, the cloud platform controls the camera 2 to take a new picture again, and performs picture identification on the new picture taken by the camera 2 until the three elements of the alarm information are identified;
in step S7, the picture recognition method is as follows: and carrying out binarization processing on the photo, and comparing the photo with a word library prestored in a cloud platform through an OCR technology to obtain three elements of alarm information. In this embodiment, the word stock pre-stored in the cloud platform is a GB 2312 word stock.
In step S7 and step S8, if the cloud platform cannot establish the analysis rule, or the cloud platform cannot always identify the three elements of the alarm information according to the picture taken by the camera 2, the user may directly view the picture taken by the camera 2 on the server of the cloud platform, manually determine the three elements of the alarm information, and establish the analysis rule using the manually determined three elements of the alarm information.
The invention is not to be considered as limited to the specific embodiments shown and described, but is to be understood to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the appended claims.