Information acquisition processing system and method for building fire protection system
Technical Field
The invention relates to the technical field of fire safety, in particular to an information acquisition and processing system and method of a building fire protection system.
Background
In the field of fire safety of buildings, fire automatic alarm subsystems, electric fire monitoring subsystems, combustible gas monitoring subsystems, gas fire extinguishing subsystems and the like are all mutually independent systems, and do not have a cloud rising function, but all the subsystems are provided with corresponding fire-fighting hosts, for example, the fire automatic alarm subsystems are provided with fire automatic alarm controllers, the electric fire monitoring subsystems are provided with electric fire monitoring devices, the controllers and the monitoring devices are abbreviated as fire-fighting hosts, the fire-fighting host can collect the original alarm data of the corresponding subsystems, such as fire alarm, early warning, starting, feedback, fault and shielding alarm data, but the fire-fighting host cannot transmit the collected original alarm data to the cloud platform, and in general, the fire-fighting host transmits the collected original alarm data to the fire-fighting internet of things information gateway by means of the fire-fighting internet of things information gateway, and the fire-fighting internet of things information gateway analyzes the original alarm data to generate alarm information and transmits the alarm information to the cloud platform, so that the building is comprehensively and remotely monitored.
The fire-fighting host computer generally has a printer and an external CRT (display), the printer and the CRT are both provided with communication interfaces, the interfaces are generally RS232, RS485, CAN, TTL and the like, and the fire-fighting Internet of things information gateway is connected with the fire-fighting host computer through the communication interfaces.
Because the types of fire-fighting hosts are many, the types are thousands of, and the fire-fighting hosts on the market have no unified standard protocol, on one hand, the fire-fighting internet of things information gateway can not analyze the original alarm data of all types and all types of fire-fighting hosts, so that the alarm information transmitted to the cloud platform is easy to miss; on the other hand, the fire control internet of things information gateway does not have unified analysis rules to 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, it is disadvantageous to perform comprehensive and effective remote monitoring of the building.
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 protection system, which solves the problems that alarm information transmitted to a cloud platform cannot be directly utilized and omission occurs easily, and provides data guarantee for comprehensive remote monitoring of a building.
In order to achieve the above purpose, the present invention adopts the following technical scheme, including:
An information acquisition and processing system of a building fire protection system, comprising: the fire control internet of things information gateway and the camera are respectively arranged corresponding to each fire control host;
The fire control internet of things information gateway is connected with a fire control host computer to acquire original alarm data of a corresponding subsystem acquired by the fire control host computer; the fire control 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 control internet of things information gateway and the camera are respectively in communication connection with the cloud platform;
the fire control internet of things information gateway sends alarm information generated by analysis or original alarm data which cannot be analyzed to a cloud platform;
The camera sends the photographed picture 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, and the fire-fighting internet of things information gateway is connected with the camera to shoot, and the camera sends the shot photo to the cloud platform; and the cloud platform performs picture identification on the picture shot by the camera to identify 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; and 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, namely: alarm type, alarm time and alarm point position.
Further, an analysis rule is set in the fire-fighting internet of things information gateway, the analysis rule is utilized to analyze the original alarm data to obtain three elements of alarm information, and the analysis rule of the fire-fighting internet of things information gateway is as follows:
Three databases, B, T, P respectively, are preset in the fire-fighting Internet of things information gateway; the three databases are databases of three elements of alarm information respectively, B is a database of alarm types, T is a database of alarm time, and P is a database of alarm points; after the fire-fighting Internet of things information gateway acquires the original alarm data X, respectively comparing the original alarm data X with three preset databases, and analyzing three elements of alarm information;
If X n b=b, the alarm type analyzed by the original alarm data X is B;
if X n t=t, the alarm time resolved by the original alarm data X is T;
if X n p=p, the alarm point resolved by the original alarm data X is P.
The invention also provides an information acquisition and processing method of the building fire protection 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, three databases are preset in the fire-fighting Internet of things information gateway, wherein the three databases are B, T, P respectively; the three databases are databases of three elements of alarm information respectively, B is a database of alarm types, T is a database of alarm time, and P is a database of alarm points;
S3, installing a camera, wherein the camera faces the fire-fighting host, and shooting a main screen of the fire-fighting host; the camera is in communication connection with the fire-fighting Internet of things information gateway;
S4, after the fire-fighting Internet of things information gateway acquires the original alarm data X, the original alarm data X is compared with three preset databases respectively, and three elements of alarm information are analyzed in the following analysis modes:
If X n b=b, the alarm type analyzed by the original alarm data X is B;
if X n t=t, the alarm time resolved by the original alarm data X is T;
If X n p=p, the alarm point analyzed by the original alarm data X is P;
S5, if the original alarm data X is 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 alarm information (b, t, p) to the cloud platform, and the information acquisition and processing are finished; if the analysis of the original alarm data X fails, a step S6 is skipped;
S6, the fire-fighting Internet of things information gateway is linked with a camera to shoot a main screen of a fire-fighting host, the camera sends the shot photo to the cloud platform, and the fire-fighting Internet of things information gateway sends the original alarm data X with failed analysis to the cloud platform;
S7, the cloud platform carries out picture identification on the photo shot by the camera, three elements of alarm information are identified, and the three elements of the identified alarm information are respectively an alarm type b ', an alarm time t ' and an alarm point position p ';
S8, the cloud platform establishes an analysis rule of the original alarm data X with failed 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 position p '; the cloud platform sends the analysis rule of the original alarm data X to a 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, three databases are updated, an alarm type B ' is added in an alarm type database B, an alarm time T ' is added in an alarm time database T, and an alarm point position P ' is added in an alarm point position database P.
Further, in step S4, the analysis method is specifically as follows:
If X n B has only a unique solution, and X n b=b, the original alarm data X can resolve the alarm type, and the alarm type of the original alarm data X is B; if X is equal to or less than the threshold value, the original alarm data X is not analyzed to obtain the alarm type; if X is equal to U B, the original alarm data X can not be analyzed to obtain the alarm type;
If X n T has only a unique solution and X n t=t, the original alarm data X can resolve the alarm time, and the alarm time of the original alarm data X is T; if X is equal to or equal to T, the original alarm data X can not be analyzed to obtain the alarm time; if X is equal to U T, the original alarm data X can not be analyzed to obtain the alarm type;
If X n P has only a unique solution and X n p=p, the original alarm data X can resolve an alarm point, and the alarm point of the original alarm data X is P; if X is equal to or equal to P, the original alarm data X can not be analyzed to obtain an alarm point position; if X is equal to or greater than P, the original alarm data X can not be analyzed to obtain alarm points;
In step S5, if all three elements of the alarm information are resolved, the original alarm data X is successfully resolved; if three elements of the alarm information cannot be resolved, the original alarm data X fails to be resolved.
Further, in step S8, the cloud platform compares the three elements of the identified alarm information, namely the alarm type b ', the alarm time t ', the alarm point position p ', with the original alarm data X sent by the fire-fighting Internet of things information gateway,
If b ' E X and t ' E X and p ' E X, the original alarm data X is effective 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 position p ';
If it is Or/>Or/>The original alarm data X is invalid data, and the original alarm data X does not have corresponding alarm information, and the original alarm data X cannot establish an analysis rule; and 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 identify the three elements of the alarm information according to the photo shot by the camera, the cloud platform feeds back the photo to the camera, and the camera shoots the photo again and sends the photo 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 three elements of the alarm information according to the photo shot by the camera, the cloud platform sends a prompt, and the user can directly check the photo shot by the camera on the cloud platform and determine the three elements of the alarm information, and the analysis rule of the original alarm data X is established 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 used for linkage with the camera for shooting, the fire-fighting Internet of things information gateway is used for acquiring alarm information, the camera is used for shooting a photo as an auxiliary means when the analysis of the alarm information fails, 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 method, the original alarm data are analyzed, a unified analysis rule is established, the generated alarm information only comprises three elements, namely the alarm type, the alarm time and the alarm point position, the cloud platform finally obtains the three elements of the alarm information, the three elements can meet the data requirement of the building for comprehensive and effective monitoring, the utilization efficiency of the information is improved, and data guarantee and data support are provided 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 quick, and the accuracy of data analysis is ensured.
(4) Aiming at the original alarm data which cannot be analyzed, the auxiliary means is utilized, namely, a camera is utilized to shoot a photo, a cloud platform is utilized to conduct picture identification on the photo, three elements of alarm information are identified, the corresponding relation between the original alarm data which cannot be analyzed and the three elements of the identified alarm information is established, a new analysis rule is obtained, and the new analysis rule is fed back to the fire-fighting Internet of things information gateway, so that the analysis rule and the database of the fire-fighting Internet of things information gateway are perfected.
(5) Aiming at the situation that an analysis rule cannot be established or three elements of alarm information cannot be identified, a user can also directly check a photo on a cloud platform and determine the three elements of the alarm information, so that the safety and the effectiveness of the invention for comprehensive remote monitoring of the building are ensured.
(6) According to the fire-fighting Internet of things information gateway, rtty reverse proxy technology can be adopted, the fire-fighting Internet of things information gateway is used as a client, a server is deployed on a 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 fire protection system for a building according to the present invention.
Fig. 2 is a flowchart of an information acquisition processing method of the building fire protection system of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this embodiment, a fire protection system for a building includes: fire automatic alarm subsystem, electric fire monitoring subsystem, combustible gas monitoring subsystem, and gas extinguishing subsystem. Each subsystem corresponds to a fire-fighting host, and the fire-fighting host is used for collecting original alarm data of the corresponding subsystem and comprises: fire alarm, early warning, starting, feedback, fault and shielding alarm data.
As shown in fig. 1, an information acquisition processing system of a fire protection system for a building according to the present invention includes: the fire control internet of things information gateway 1 and the camera 2 are respectively arranged corresponding to each fire control host;
the fire control internet of things information gateway 1 is connected with a fire control host computer to acquire the original alarm data of the corresponding subsystem acquired by the fire control host computer.
The camera 2 is arranged on the right opposite side of the fire-fighting main machine and is used for shooting the main screen of the fire-fighting main machine.
The 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 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 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 parse the obtained 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 a wired, wireless, network or other data transmission mode.
On the 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 rtty reverse proxy technology, the fire-fighting internet of things information gateway 1 is used as a client, a service end is deployed on the cloud platform, and the service end 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 realized.
The input unit 14 is configured to input relevant parameters, including: the server IP and port of the communication unit 13 input control parameters of the interface unit 11, such as baud rate, data bits of the interface unit 11. In this embodiment, the input unit 14 employs 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 sends the shot pictures to the cloud platform. In this embodiment, the camera 2 is a network camera, and is connected to the cloud platform through network telecommunication.
The fire control internet of things information gateway 1 and the camera 2 are in communication connection, and the fire control internet of things information gateway 1 is linked with the camera 2 to shoot.
An analysis rule is arranged in the central processing unit 12 of the fire-fighting Internet of things information gateway 1, and the analysis rule is utilized to analyze the original alarm data into alarm information; the alarm information comprises three elements, namely: alarm type, alarm time and alarm point position.
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 position comprises: the number of the fire-fighting host machine and the loop and the point position in the building fire-fighting system.
The fire control internet of things information gateway 1 obtains the original alarm data acquired by the fire control host computer through the interface unit 11, the central processing unit 12 analyzes the original alarm data to generate alarm information, and the alarm information is transmitted to the cloud platform through the communication unit 13.
If the central processing unit 12 of the fire-fighting internet of things information gateway 1 cannot analyze and generate alarm information for certain original alarm data, that is, cannot obtain three elements of the alarm information, the linkage camera 2 shoots, shoots a main screen of a fire-fighting host, and sends the shot photo to the cloud platform, and the fire-fighting internet of things information gateway 1 also sends the original alarm data which cannot be analyzed to the cloud platform.
The cloud platform identifies the photo, identifies the photo to obtain alarm information, establishes a new analysis rule, wherein the analysis rule is the corresponding relation between the original alarm data which cannot be analyzed and the alarm information which is obtained by identification, sends the established new analysis rule to the fire-fighting Internet of things information gateway 1, stores the established new analysis rule by the fire-fighting Internet of things information gateway 1, and therefore the completion of the analysis rule is realized, and the fire-fighting Internet of things information gateway 1 can analyze to generate the corresponding alarm information when the same original alarm data is acquired next time.
As shown in fig. 2, the information acquisition and processing method of the building fire protection system of the invention comprises the following steps:
S1, a fire-fighting Internet of things information gateway 1 is installed, 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 acquired by the fire-fighting host in real time;
S2, three databases which are B, T, P respectively are preset in the fire-fighting Internet of things information gateway 1; the three databases are databases of three elements of alarm information respectively, B is a database of alarm types, T is a database of alarm time, and P is a database of alarm points;
s3, installing a camera 2, wherein the camera 2 is opposite to the fire-fighting host, and shooting a main screen of the fire-fighting host.
S4, after the fire-fighting Internet of things information gateway 1 acquires the original alarm data X, respectively comparing the original alarm data X with three preset databases, and analyzing three elements of alarm information;
If X n B has only a unique solution, and X n b=b, the original alarm data X can resolve the alarm type, and the alarm type of the original alarm data X is B; if X is equal to or less than the threshold value, the original alarm data X cannot be analyzed to obtain the alarm type; if X is inverse U B has multiple solutions, the original alarm data X cannot analyze the alarm type;
if X n T has only a unique solution and X n t=t, the original alarm data X can resolve the alarm time, and the alarm time of the original alarm data X is T; if X is equal to or less than T, the original alarm data X cannot analyze the alarm time; if X is equal to U T, the original alarm data X can not analyze the alarm type;
If X n P has only a unique solution and X n p=p, the original alarm data X can resolve an alarm point, and the alarm point of the original alarm data X is P; if X is equal to or less than P, the original alarm data X cannot be analyzed to obtain an alarm point position; if X is equal to or greater than P, the original alarm data X cannot be analyzed to obtain an alarm point;
s5, if all 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 control internet of things information gateway 1 sends the alarm information (b, t, p) generated by analysis to the cloud platform, and the information acquisition processing is finished;
If three elements of the alarm information cannot be resolved, the original alarm data X fails to be resolved, and the step S6 is skipped;
S6, the fire-fighting Internet of things information gateway 1 sends the original alarm data X with failed analysis to the cloud platform, and the corresponding camera 2 is connected in parallel to shoot a main screen of a fire-fighting host, and the shot photo is sent to the cloud platform;
s7, the cloud platform performs picture recognition on the picture shot by the camera 2 to obtain three elements of alarm information, wherein 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 ' E X and t ' E X and p ' E X, the original alarm data X is effective data, the alarm information corresponding to the original alarm data X is (b ', t ', p '), an analysis rule of the original alarm data X is established, and 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 position 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, and updates three databases, an alarm type B ' is added in an alarm type database B, an alarm time T ' is added in an alarm time database T, and an alarm point position P ' is added in an alarm point position database P;
If it is Or/>Or/>The original alarm data X is invalid data, and the original alarm data X does not have 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 acquire new original alarm data from a fire-fighting host;
In step S7, if the cloud platform cannot identify the three elements of the alarm information according to the photo shot by the camera 2, the cloud platform controls the camera 2 to shoot again to acquire a new photo, and performs picture identification on the new photo shot by the camera 2 until the three elements of the alarm information are identified;
in step S7, the picture identification method is as follows: and performing binarization processing on the photo, and comparing the photo with a word stock pre-stored in the 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 identify the three elements of the alarm information according to the photo shot by the camera 2, the user may directly view the photo shot by the camera 2 on the server side of the cloud platform, manually determine the three elements of the alarm information, and establish the analysis rule by using the manually determined three elements of the alarm information.
The above embodiments are merely preferred embodiments of the present invention and are not intended to limit the present invention, and any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.