CN110599728B - Fire early warning method, device, equipment and storage medium based on block chain - Google Patents

Fire early warning method, device, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN110599728B
CN110599728B CN201910875804.9A CN201910875804A CN110599728B CN 110599728 B CN110599728 B CN 110599728B CN 201910875804 A CN201910875804 A CN 201910875804A CN 110599728 B CN110599728 B CN 110599728B
Authority
CN
China
Prior art keywords
block chain
fire
node
data
target area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910875804.9A
Other languages
Chinese (zh)
Other versions
CN110599728A (en
Inventor
王星雅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910875804.9A priority Critical patent/CN110599728B/en
Publication of CN110599728A publication Critical patent/CN110599728A/en
Application granted granted Critical
Publication of CN110599728B publication Critical patent/CN110599728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B17/00Fire alarms; Alarms responsive to explosion

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Alarm Systems (AREA)

Abstract

The application discloses a fire early warning method, device, equipment and storage medium based on a block chain, and belongs to the technical field of block chains. The method is applied to a fire early warning system and comprises the following steps: the data acquisition node acquires environmental state data in a target area and stores the environmental state data into a block chain; the processing node acquires data in a block chain, wherein the data comprises environmental state data; determining whether a fire occurs in the target area according to the data; storing the detailed information of the fire into a block chain under the condition that the fire occurs in the target area; and the alarm node sends out alarm information after acquiring the detail information of the fire from the block chain. According to the technical scheme provided by the embodiment of the application, the data are collected by the data collection node, the data are analyzed and processed by the processing node, and the warning information is sent by the warning node according to the processing result of the processing node, so that the purposes of timely discovering a fire and processing the fire are achieved.

Description

Fire early warning method, device, equipment and storage medium based on block chain
Technical Field
The embodiment of the application relates to the technical field of block chains, in particular to a fire early warning method, device, equipment and storage medium based on block chains.
Background
With the increasing public safety awareness, the public has higher and higher fire handling requirements, and the timeliness of fire handling and the stability of the fire handling system are two important concerns for the public.
At present, the related art mostly adopts a real-time video monitoring mode for detecting the fire. In the related art, a plurality of cameras are usually arranged in a scene to be monitored, then video images captured by the plurality of cameras are transmitted to a computer device, and whether a fire exists is determined by observing the video images displayed by the computer device. When a fire exists, the fire degree is manually analyzed and the decision of an abnormal handling mode is made.
The related art has poor stability to the fire processing system, and once some devices or devices in the processing system fail, the fire cannot be processed.
Disclosure of Invention
The embodiment of the application provides a fire early warning method, a fire early warning device, fire early warning equipment and a storage medium based on a block chain, and the method, the device, the equipment and the storage medium can be used for solving the problem of poor stability of a fire processing system in the related art. The technical scheme is as follows:
on one hand, the embodiment of the application provides a fire early warning method based on a block chain, which is applied to a fire early warning system, wherein the fire early warning system comprises a data acquisition node, a processing node, a warning node and a block chain system, the block chain system comprises n block chain nodes, each block chain node is provided with the block chain, and n is an integer greater than 1;
the method comprises the following steps:
the data acquisition node acquires environmental state data in a target area and stores the environmental state data into the block chain;
the processing node acquires data in the block chain, wherein the data comprises the environment state data; determining whether a fire occurs in the target area according to the data; under the condition that the fire condition is determined to occur in the target area, storing the detail information of the fire condition into the block chain;
and the alarm node sends out alarm information after acquiring the detail information of the fire from the block chain.
On the other hand, the embodiment of the application provides a fire early warning method based on a block chain, which is applied to a processing node in a fire early warning system, wherein the fire early warning system comprises a data acquisition node, the processing node, a warning node and a block chain system, the block chain system comprises n block chain nodes, each block chain node is provided with a block chain, and n is an integer greater than 1;
the method comprises the following steps:
acquiring data in the blockchain, wherein the data comprises environmental state data acquired by the data acquisition nodes deployed in a target area;
determining whether a fire occurs in the target area according to the data;
if the fire condition occurs in the target area, storing the fire condition detail information into the block chain, so that the alarm node sends out alarm information after acquiring the fire condition detail information from the block chain.
In another aspect, an embodiment of the present application provides a fire warning device based on a block chain, which is applied to a processing node in a fire warning system, where the fire warning system includes a data acquisition node, the processing node, a warning node, and a block chain system, where the block chain system includes n block chain nodes, each block chain node is configured with a block chain, and n is an integer greater than 1;
the device comprises:
a data acquisition module for acquiring data in the blockchain, the data including environmental status data acquired by the data acquisition nodes deployed in a target area;
the data analysis module is used for determining whether a fire occurs in the target area according to the data;
and the fire alarm module is used for storing the detail information of the fire into the block chain when the fire in the target area is determined to occur, so that the alarm node sends alarm information after acquiring the detail information of the fire from the block chain.
On the other hand, the embodiment of the application provides a fire early warning system based on a block chain, the fire early warning system comprises a data acquisition node, a processing node, a warning node and a block chain system, the block chain system comprises n block chain nodes, each block chain node is provided with a block chain, and n is an integer greater than 1;
the data acquisition node is used for acquiring environmental state data in a target area and storing the environmental state data into the block chain;
the processing node is configured to obtain data in the block chain, where the data includes the environmental status data; determining whether a fire occurs in the target area according to the data; storing the detail information of the fire into the block chain under the condition that the fire in the target area is determined to occur;
and the alarm node is used for sending alarm information after acquiring the detail information of the fire from the block chain.
In a further aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory, where the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the above fire warning method based on a blockchain.
In a further aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the fire warning method based on a blockchain.
In a further aspect, an embodiment of the present application provides a computer program product, and when the computer program product is executed by a processor, the computer program product is configured to implement the above fire warning method based on a blockchain.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
the block chain system is added in the fire warning system, the data acquisition node acquires data and stores the data into the block chain, the processing node acquires the data from the block chain and analyzes and processes the data, and the warning node acquires the processing result of the processing node from the block chain and sends warning information, so that the purposes of timely finding and processing the fire are achieved. In addition, in the embodiment of the application, data of each node is uploaded to the blockchain system, and each node also acquires data of other nodes from the blockchain system.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a block chain-based fire warning system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a fire warning method based on a block chain according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating a data structure provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of location information provided by an embodiment of the present application;
fig. 5 is a flowchart of a fire warning method based on a block chain according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a fire warning apparatus based on a blockchain according to an embodiment of the present disclosure;
fig. 7 is a block diagram of another fire warning apparatus based on a blockchain according to an embodiment of the present disclosure;
fig. 8 is a block diagram of a computer device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a fire warning method based on a block chain, which can be applied to a block chain scene, and in practical application, the block chain can be of various types, such as a public chain, a alliance chain, a private chain and the like, and the block chain in the embodiment can be a block chain which needs identity authentication, such as an alliance chain or a private chain, or a block chain which does not need identity authentication, such as a public chain. No matter which kind of block chain, this block chain can include a plurality of nodes, and every node all corresponds certain hardware equipment, such as computer equipment, camera, unmanned aerial vehicle etc.. In addition, the data of the plurality of nodes may be stored in a same blockchain, the blockchain is composed of a plurality of blocks, each block stores different information, and the blocks in a blockchain are stored according to a time sequence.
Based on the above scenario, as shown in fig. 1, a system framework diagram provided for the embodiment of the present application includes: processing node 101, data collection node 102, alarm node 103, and blockchain system 109. In the embodiment of the present application, the hardware device corresponding to each node may be one or multiple. One node corresponds to one hardware device, which is beneficial to reducing the cost, but the stability of the fire early warning system is poor; the node corresponding to the hardware devices is beneficial to improving the stability of the fire early warning system, but the cost is also increased, so that in practical application, the number of the hardware devices corresponding to each node can be specifically determined by comprehensively considering the cost and the system stability.
The data collection node 102 is configured to collect data in a target area in which the data collection node is located. For example, as shown in fig. 1, the data collection node 102 corresponds to a hardware device 104, and the hardware device 104 refers to a device having a data collection function, such as a camera, an infrared sensor, and the like. As shown in fig. 1, the hardware devices 104 are disposed in different areas of a certain real scene 100, and each hardware device 104 is configured to acquire data in an acquisition area thereof, where the data may be an image or a video, which is not limited in this embodiment of the present application.
The processing node 101 is configured to obtain data in the blockchain and process the data, such as analyzing data trend, detecting abnormal data, performing data calculation, and the like. For example, as shown in fig. 1, the processing node 101 corresponds to a hardware device 105, and the hardware device 105 refers to a device having a function of processing data, such as a PC (Personal Computer), a server, or other electronic devices having a computing capability. As shown in fig. 1, the hardware device 105 is configured to acquire data in a blockchain and perform analysis, detection, calculation, and other processing on the data.
The alarm node 103 is configured to acquire data in the block chain and send alarm information. For example, as shown in fig. 1, the alert node 103 corresponds to a hardware device 106, and the hardware device 106 refers to a device having a data communication function, such as a broadcast device, a communication device, and the like. As shown in fig. 1, hardware devices 106 are arranged in a certain real scene 100, and after each hardware device 106 acquires data from a blockchain, alarm information is sent according to the data. The data includes detailed information of fire, and the alarm information includes an escape route, a danger avoidance notification, and the like, which is not limited in the embodiment of the present application.
Optionally, the system framework diagram provided in the embodiment of the present application further includes a monitoring node 107, where the monitoring node 107 is configured to acquire state information at the target position, for example, acquire an image or a video at the target position. For example, as shown in fig. 1, the monitoring node 107 corresponds to a hardware device 108, the hardware device 108 refers to a device having a video image capturing function, and optionally, the hardware device 108 is a device that can move, such as an unmanned aerial vehicle, a satellite, and the like. As shown in fig. 1, the processing node 101 generates a target position after performing data processing, and acquires an image video at the target position after the hardware device 108 corresponding to the monitoring node 107 reaches the target position. Optionally, the hardware device 104 corresponding to the data acquisition node 102 and the hardware device 108 corresponding to the monitoring node 107 may be the same hardware device or different hardware devices, which is not limited in this embodiment of the present application.
The blockchain system 109 is configured to store data, in this embodiment, the blockchain system 109 includes n blockchain link points, each blockchain node is configured with a blockchain, and optionally, the content of the blockchain configured on each node is the same. Optionally, the n block link points may communicate with each other in information, and the purpose of communicating all information between the n block link points may be finally achieved by sharing data between the nodes with which information is communicated. Optionally, each node uploads the data, the alarm information, the state information, and the like acquired and processed by each node to n block link points in the block chain system at regular intervals, and acquires the data from the block chain at regular intervals.
Referring to fig. 2, a flowchart of a fire warning method based on a blockchain according to an embodiment of the present disclosure is shown. The method can be applied to the system frame diagram shown in fig. 1, and the system frame diagram further includes a processing node, a data acquisition node, an alarm node, and a block chain system, where the block chain system includes n block chain nodes, and each block chain node is configured with a block chain. The method comprises the following steps (201-203):
step 201, a data acquisition node acquires environmental state data in a target area, and stores the environmental state data in a block chain.
The data acquisition node may acquire the environmental state data in the target area at regular intervals, and may also continuously acquire the environmental state data in the target area in real time, which is not limited in the embodiment of the present application.
The environmental state data refers to data reflecting an environmental state in the target area, and the environmental state data includes air temperature, air humidity, an environmental image, an environmental video, and the like. Illustratively, when the hardware device corresponding to the data acquisition node includes an infrared sensor, the environmental state data acquired by the infrared sensor is air temperature information in the target area. Illustratively, when the hardware device corresponding to the data acquisition node includes a camera, the environmental state data acquired by the camera is an environmental image or an environmental video in the target area. In practical application, in order to improve the stability of the fire early warning system and collect various environmental state data, the hardware device corresponding to the data collection node may include an infrared sensor or a camera, that is, the environmental state data acquired by the data collection node may include an air temperature or an environmental image or an environmental video.
The blockchain system may include a plurality of blockchains, and data of each node may be stored in one same blockchain or different blockchains. Alternatively, if the data of each node is stored in different block chains, one node corresponds to one block chain. The embodiments of the present application are described only by storing data of each node in one same block chain, and other embodiments will be easily conceived by those skilled in the art after considering the solution of the present application, but all fall within the scope of the present application.
Optionally, the storing, by the data collection node, the environmental state data into the blockchain includes: the data acquisition node sends the environment state data to the n block chain nodes; after a target block chain node in the n block chain nodes acquires the permission to add a block in the block chain, adding a first block in the block chain, wherein the first block comprises environment state data; the target blockchain node sends a blockadding indication to other blockchain nodes in the blockchain system, wherein the blockadding indication is used for indicating the other blockchain nodes to add the first block in the blockchain.
And after the data acquisition node acquires the environmental state data, the environmental state data is sent to the n block chain link points in the block chain system. The n block chain link points in the block chain system upload the data received by the node to the block chain at regular intervals, the data of each node in the time form the latest block in the corresponding block chain, the block chain link point corresponding to the block chain which forms the latest block firstly is the target block chain node, and the target block chain node obtains the permission of adding the block in the block chain. And when the target block chain node acquires the permission of adding the block, adding the latest block in the block chain, namely the first block, and sending a block adding instruction to the chain nodes of other blocks. After receiving the block addition indication, the other block link nodes first agree on the data in the first block, i.e. the first block is allowed to be written into the corresponding block chain, and after agreeing, the other block link nodes add the first block in the corresponding block chain. The embodiment of the present application does not limit the specific form of achieving the consensus, that is, the consensus may be that all nodes in the blockchain system agree to add the data to the blockchain, or that most nodes in the blockchain system agree to add the data to the blockchain, for example, more than 51% of the nodes agree to add the data to the blockchain.
Optionally, after each blockchain node in the blockchain system obtains data in a target block in the blockchain, the data is compared with existing data of the blockchain node, the same part is removed, and then the data is stored in the blockchain corresponding to the blockchain node according to a certain classification standard. For example, each blockchain node may use a category of a node as a classification standard when data is stored, or use a category of a hardware device corresponding to the node as a classification standard when data is stored, which is not limited in the embodiment of the present application. For example, as shown in fig. 3, when each blockchain node takes the category of the hardware device corresponding to the node as a classification criterion when storing data, assuming that the hardware device corresponding to the data acquisition node includes an infrared sensor and a camera, the stored data 300 in each blockchain node includes infrared sensor data 301 and camera data 302, that is, the infrared sensor data 301 and the camera data 302 are stored separately. For example, in order to conveniently distinguish data of each hardware device, each node respectively uploads the data of the hardware device according to the type of the hardware device corresponding to the node when uploading the data to the block chain, and the first block in the block chain also stores the data of the hardware device according to the type of the hardware device corresponding to the node.
Step 202, a processing node acquires data in a block chain, wherein the data comprises environmental state data; determining whether a fire occurs in the target area according to the data; and in the case of determining that the fire occurs in the target area, storing the detail information of the fire into the block chain.
After the processing node acquires the data in the block chain, the data is analyzed and processed, so that the purpose of finding whether a fire occurs in the target area is achieved. The specific analysis processing mode of the processing node on the data may be determined according to the content of the environmental status data included in the data, which is not limited in the embodiment of the present application. Illustratively, when the hardware device corresponding to the data acquisition node comprises an infrared sensor, the environmental state data acquired by the data acquisition node comprises an air temperature, and after the processing node acquires the data comprising the environmental state data from the target block, whether a fire occurs in the target area is determined according to the air temperature. Illustratively, when the hardware device corresponding to the data acquisition node comprises a camera, the environmental state data acquired by the data acquisition node comprises a video image, and after the processing node acquires the data comprising the environmental state data from the target block, whether a fire occurs in the target area is determined according to whether an area in the video image is on fire. Optionally, when the environmental state data collected by the data collection node is stored in the first block in the block chain, the processing node obtains the data in the first block in the block chain.
In a possible implementation manner, the data includes environment state data corresponding to k positions in the target area, where k is a positive integer; the processing node determines whether a fire occurs in the target area according to the data, and the method comprises the following steps: the processing node detects whether the data has abnormal conditions, wherein the abnormal conditions comprise at least one of the following conditions: the target area has at least one position corresponding to the environmental state data which meets the preset condition and at least one position corresponding to the environmental state data which is missing; and if the data has abnormal conditions, the processing node determines that fire occurs in the target area.
The embodiment of the present application does not limit the specific content of the preset condition. For example, when the environmental status data includes an air temperature, the preset condition is a temperature of the flame, and when the processing node detects that the air temperature corresponding to a certain position reaches the temperature of the flame, it is determined that the environmental status data meets the preset condition. For example, when the environmental status data includes a video image, the preset condition is that a flame is displayed in the video image, and when the processing node detects that a flame is displayed in the video image at a certain position, it is determined that the environmental status data meets the preset condition.
The fact that the environmental state data corresponding to a certain position is missing means that no environmental state data are collected at the position. For example, if there are 3 locations in the target area, which are denoted as location 1, location 2, and location 3, and it is assumed that the processing node receives the environmental status data corresponding to location 1 and location 3, but does not receive the environmental status data corresponding to location 2, it is determined that there is an abnormal situation at location 2, for example, the hardware device corresponding to location 2 is burned due to a fire.
The detailed information of the fire includes the location of the fire, the direction of the spread of the fire, the size of the fire, etc., which is not limited in the embodiments of the present application. And after determining the detail information of the fire, the processing node sends the detail information of the fire to the n block chain link points in the block chain system. The n block chain link points in the block chain system upload the data received by the node to the block chain at regular intervals, the data of each node in the time form the latest block in the corresponding block chain, the block chain link point corresponding to the block chain which forms the latest block firstly is the target block chain node, and the target block chain node obtains the permission of adding the block in the block chain. And after the target block chain node acquires the permission of adding the block, adding the latest block in the block chain, namely a second block, and sending a block adding instruction to other block chain nodes. After receiving the block addition indication, the other block link nodes first agree on the data in the second block, i.e. the second block is allowed to be written into the corresponding block chain, and after agreeing, the other block link nodes add the second block into the corresponding block chain.
And step 203, the alarm node sends out alarm information after acquiring the detail information of the fire from the blockchain.
The alarm information is used for indicating the occurrence of fire in the target area so as to remind people in the target area to evacuate as soon as possible. Optionally, the warning information includes an escape route and a danger avoidance notification. Optionally, when the detail information of the fire analyzed by the processing node is stored in a second block in the block chain, the processing node acquires data in the second block in the block chain.
In summary, according to the technical scheme provided by the embodiment of the application, the block chain system is added in the fire warning system, the data acquisition node acquires data and stores the data into the block chain, the processing node acquires the data from the block chain and analyzes and processes the data, and the warning node acquires the processing result of the processing node from the block chain and sends out warning information, so that the purposes of timely discovering the fire and processing the fire are achieved. In addition, in the embodiment of the application, data of each node is uploaded to the blockchain system, and each node also acquires data of other nodes from the blockchain system.
In addition, according to the technical scheme provided by the embodiment of the application, the processing nodes in the fire early warning system expand the detection dimensionality of the processing nodes by detecting whether abnormal conditions exist in data from multiple aspects, and the stability of the system is further improved while the abnormality can be found in time.
In a possible implementation manner, the fire warning system further includes a monitoring node; after the processing node determines whether a fire occurs in the target area according to the data, the method further comprises the following steps: if the fire condition is determined to occur in the target area, the processing node generates position information corresponding to the monitoring node, wherein the position information comprises at least one target position; sending the position information to a monitoring node; the monitoring node acquires a monitoring image at the target position according to the position information; and storing the monitoring image into a block chain.
The target location refers to a location where a fire occurs. The embodiment of the application does not limit the specific number of the target positions, optionally, one fire condition may correspond to one target position or a plurality of target positions, and when one fire condition corresponds to a plurality of target positions, the number of the target positions is determined according to details of the fire condition, for example, when an area where the fire condition occurs is large, 6 target positions are selected; when the area where the fire occurs is small, 2 target positions are selected.
The location information includes at least one target location. Optionally, the location information further includes a current location of the hardware device corresponding to the monitoring node. Optionally, the position information further includes preset tracks of hardware devices corresponding to the monitoring nodes passing through each target position. For example, as shown in fig. 4, the location information 400 corresponding to the monitoring node includes a current location 401 and a target location 402 of the hardware device corresponding to the monitoring node. And the hardware equipment corresponding to the monitoring node performs image shooting according to the position information 400, so that the monitoring image at the target position can be obtained.
And after acquiring the monitoring image at the target position, the monitoring node sends the monitoring image to the n block chain link points in the block chain system. The method comprises the steps that n block chain link points in a block chain system upload data received by a node to a block chain at regular intervals, the data comprise monitoring images acquired by monitoring nodes, the data of each node in the time form the latest block in a block chain corresponding to the node, the block chain link point corresponding to the block chain which forms the latest block firstly is a target block chain node, and the target block chain node obtains the permission of adding the block in the block chain. And after the target block chain node acquires the permission to add the block, adding the latest block in the block chain, namely a third block, and sending a block addition instruction to other block chain nodes. After receiving the block addition instruction, the other block link nodes firstly agree on the data in the third block, that is, the third block is allowed to be written into the corresponding block chain, and after agreeing, the other block link nodes add the third block in the corresponding block chains.
Optionally, in order to further improve stability and safety of the fire warning system, the processing node sends the location information to the monitoring node, including: the processing node stores the position information into a block chain; the monitoring node obtains the position information from the block chain. In this embodiment of the present application, the processing node may also directly send the location information to the monitoring node, which is not limited in this embodiment of the present application.
After generating the position information, the processing node sends the position information to n block link points in the block chain system. The method comprises the steps that n block chain link points in a block chain system upload data received by a node to a block chain at regular intervals, the data comprise position information generated by a processing node, the data of each node in the time form the latest block in a block chain corresponding to the node, the block chain link point corresponding to the block chain forming the latest block firstly is a target block chain node, and the target block chain node obtains the permission of adding the block in the block chain. And after the target block chain node acquires the permission of adding the block, adding the latest block in the block chain, namely a fourth block, and sending a block addition instruction to other block chain nodes. After receiving the block addition indication, the other block link nodes first agree on the data in the fourth block, i.e. the fourth block is allowed to be written into the corresponding block chain, and after agreeing, the other block link nodes add the fourth block into the corresponding block chain. When the location information is stored in the fourth block in the block chain, the monitoring node acquires data in the fourth block in the block chain.
Optionally, in order to extinguish a fire in time, after the processing node sends the location information to the monitoring node, the method further includes: the processing node acquires a monitoring image acquired by the monitoring node from the block chain; analyzing the monitoring image to determine the detailed information of the fire; and determining a corresponding fire extinguishing scheme according to the detail information of the fire. The fire extinguishing scheme is used for relevant units to extinguish fire, and the relevant units comprise fire brigades and the like. The fire extinguishing scheme can be directly sent to the hardware equipment corresponding to the relevant unit by the processing node, and can also be acquired from the block chain by the hardware equipment corresponding to the relevant unit after being uploaded to the block chain by the processing node, which is not limited in the embodiment of the application. Optionally, when the monitoring image is stored in a third block in the block chain, the processing node acquires data in the third block in the block chain.
To sum up, the technical scheme that this application embodiment provided includes the monitoring node in the fire early warning system, carries out the image shooting and uploads to the block chain through the regional of monitoring node emergence fire, then the processing node obtains the image that the monitoring node was shot from the block chain and carries out the analysis to it to confirm the scheme of putting out a fire, realized in time accurately confirming the solution of fire.
In another possible implementation manner, an embodiment of the present application provides a fire early warning method based on a blockchain, where the method is applied to a fire early warning system, where the fire early warning system includes a data acquisition node, a processing node, a warning node, and a blockchain system, where the blockchain system includes n blockchain nodes, each blockchain node is configured with a blockchain, and n is an integer greater than 1; the method comprises the following steps (steps 501-505):
step 501, acquiring data by a hardware device corresponding to a data acquisition node, and uploading the data to a block chain;
step 502, acquiring data from a block chain by hardware equipment corresponding to a processing node, and determining whether a fire disaster occurs;
step 503, if a fire disaster occurs, the alarm node sends out alarm information;
step 504, if a fire occurs, the processing node generates position information corresponding to the monitoring node, and the hardware device corresponding to the monitoring node acquires a monitoring image at a target position according to the position information;
and 505, analyzing the monitoring image by the processing node, determining disaster information of the fire, and determining a corresponding fire extinguishing scheme according to the disaster information.
An exemplary embodiment of the present application further provides a fire warning method based on a block chain, where the method is applied to a processing node in a fire warning system, the fire warning system includes a data acquisition node, a processing node, a warning node, and a block chain system, the block chain system includes n block chain nodes, each block chain node is configured with a block chain, and n is an integer greater than 1; the method comprises the following steps:
acquiring data in a block chain, wherein the data comprises environmental state data acquired by a data acquisition node deployed in a target area;
determining whether a fire occurs in the target area according to the data;
and if the fire condition occurs in the target area, storing the fire condition detail information into the block chain, so that the alarm node sends out alarm information after acquiring the fire condition detail information from the block chain.
For the description of the present embodiment, reference is made to the above description, which is not repeated herein.
An exemplary embodiment of the present application further provides a fire early warning system based on a block chain, where the fire early warning system includes a data acquisition node, a processing node, an alarm node, and a block chain system, where the block chain system includes n block chain nodes, each block chain node is configured with a block chain, and n is an integer greater than 1;
the data acquisition node is used for acquiring environmental state data in a target area and storing the environmental state data into the block chain;
the processing node is configured to obtain data in the block chain, where the data includes the environmental status data; determining whether a fire occurs in the target area according to the data; storing the detail information of the fire into the block chain under the condition that the fire in the target area is determined to occur;
and the alarm node is used for sending alarm information after acquiring the detail information of the fire from the block chain.
For the description of the present embodiment, reference is made to the above description, which is not repeated herein.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 6, a block diagram of a fire warning apparatus based on a blockchain according to an embodiment of the present disclosure is shown. The apparatus 600 has functions of implementing the above method embodiments, and the functions may be implemented by hardware, or by hardware executing corresponding software. The fire early warning system comprises a data acquisition node, a processing node, an alarm node and a block chain system, wherein the block chain system comprises n block chain nodes, each block chain node is provided with a block chain, and n is an integer greater than 1. The device 600 may be a processing node in the fire warning system described above, or may be disposed in a processing node. The apparatus 600 may include: a data acquisition module 610, a data analysis module 620 and a fire alarm module 630.
A data obtaining module 610, configured to obtain data in the blockchain, where the data includes environmental status data collected by the data collection nodes deployed in a target area.
And the data analysis module 620 is configured to determine whether a fire occurs in the target area according to the data.
The fire alarm module 630 is configured to, when it is determined that the fire occurs in the target area, store the detail information of the fire into the block chain, so that the alarm node sends out alarm information after acquiring the detail information of the fire from the block chain.
Optionally, the data includes environment state data corresponding to k positions in the target region, where k is a positive integer; the data analysis module 620 is further configured to: detecting whether the data has abnormal conditions, wherein the abnormal conditions comprise at least one of the following conditions: the target area has at least one position corresponding to the environmental state data which meets the preset condition and has at least one position corresponding to the environmental state data missing; and if the abnormal condition exists in the data, determining that the fire condition occurs in the target area.
Optionally, as shown in fig. 7, the fire warning system further includes a monitoring node; the data analysis module 620 includes: the location information generating submodule 621 and the location information transmitting submodule 622: the location information generating sub-module 621 is configured to generate location information corresponding to a monitoring node when it is determined that the fire occurs in the target area, where the location information includes at least one target location; the location information sending submodule 622 is configured to send the location information to the monitoring node, where the monitoring node is configured to obtain a monitoring image at the target location according to the location information, and store the monitoring image in the block chain.
Optionally, as shown in fig. 7, the location information sending sub-module 622 is further configured to: storing the location information into the block chain; wherein the monitoring node is configured to obtain the location information from the blockchain system.
Optionally, as shown in fig. 7, the apparatus 600 further includes: an image obtaining module 640, configured to obtain the monitoring image collected by the monitoring node from the block chain; the image analysis module 650 is configured to analyze the monitoring image and determine detail information of the fire; and a scheme determining module 660, configured to determine a corresponding fire extinguishing scheme according to the detail information of the fire.
In summary, according to the technical scheme provided by the embodiment of the application, the block chain system is added in the fire warning system, the data acquisition node acquires data and stores the data into the block chain, the processing node acquires the data from the block chain and analyzes and processes the data, and the warning node acquires the processing result of the processing node from the block chain and sends out warning information, so that the purposes of timely discovering the fire and processing the fire are achieved. In addition, in the embodiment of the application, data of each node is uploaded to the blockchain system, and each node also acquires data of other nodes from the blockchain system.
In addition, according to the technical scheme provided by the embodiment of the application, the processing nodes in the fire early warning system expand the detection dimensionality of the processing nodes by detecting whether abnormal conditions exist in the data from multiple aspects, and the stability of the system is further improved while the abnormality can be found in time.
It should be noted that, in the device provided in the embodiment of the present application, when the functions of the device are implemented, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 8, a block diagram of a computer device according to an embodiment of the present disclosure is shown. The computer device can be used for implementing the fire early warning method provided in the above embodiment. For example, the computer device may be a hardware device corresponding to a processing node in the system framework diagram shown in fig. 1. Specifically, the method comprises the following steps:
the computer apparatus 800 includes a Processing Unit (e.g., a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), an FPGA (Field Programmable Gate Array), etc.) 801, a system Memory 804 including a RAM (Random-Access Memory) 802 and a ROM (Read-Only Memory) 803, and a system bus 805 connecting the system Memory 804 and the Central Processing Unit 801. The computer device 800 also includes an I/O system (basic input/output system) 806 that facilitates transfer of information between various devices within the computer device, and a mass storage device 807 for storing an operating system 813, application programs 814, and other program modules 812.
The basic input/output system 806 includes a display 808 for displaying information and an input device 809 such as a mouse, keyboard, etc. for user input of information. Wherein the display 808 and the input device 809 are connected to the central processing unit 801 through an input output controller 810 connected to the system bus 805. The basic input/output system 806 may also include an input/output controller 810 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 810 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 807 is connected to the central processing unit 801 through a mass storage controller (not shown) connected to the system bus 805. The mass storage device 807 and its associated computer-readable media provide non-volatile storage for the computer device 800. That is, the mass storage device 807 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM (Compact disk Read-Only Memory) drive.
Without loss of generality, the computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, CD-ROM, DVD (Digital Video Disc) or other optical, magnetic, tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 804 and mass storage 807 described above may be collectively referred to as memory.
The computer device 800 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with embodiments of the present application. That is, the computer device 800 may be connected to the network 812 through the network interface unit 811 coupled to the system bus 805, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 811.
The memory also includes at least one instruction, at least one program, set of codes, or set of instructions stored in the memory and configured to be executed by the one or more processors to implement the above-described blockchain-based fire alert method.
In an embodiment of the present application, a computer-readable storage medium is further provided, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the storage medium, and when the at least one instruction, the at least one program, the code set, or the set of instructions is executed by a processor, the method for fire warning based on a blockchain is implemented.
In an exemplary embodiment, a computer program product is also provided, which, when being executed by a processor, is adapted to carry out the above-mentioned blockchain-based fire alerting method.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. A fire early warning method based on block chains is characterized in that the fire early warning method is applied to a fire early warning system, the fire early warning system comprises a data acquisition node, a processing node, an alarm node, a monitoring node and a block chain system, the block chain system comprises n block chain nodes, each block chain node is provided with a block chain, and n is an integer greater than 1;
the method comprises the following steps:
the data acquisition node acquires various environmental state data in a target area at intervals, and stores the various environmental state data into the block chain, wherein the various environmental state data comprise air temperature, air humidity, environmental images and environmental videos;
the processing node acquires data in the block chain, wherein the data comprises the multiple environment state data; determining whether a fire occurs in the target area according to the data, wherein the data comprises multiple environmental state data corresponding to k positions in the target area, and k is a positive integer; if the abnormal condition comprises that multiple environmental state data corresponding to at least one position in the target area are missing, determining that fire occurs in the target area; storing the detail information of the fire into the block chain under the condition that the fire in the target area is determined to occur; generating position information corresponding to the monitoring node, wherein the position information comprises at least one target position, and the position information comprises a preset track of hardware equipment corresponding to the monitoring node passing through each target position; sending the position information to the monitoring node; acquiring a monitoring image acquired by the monitoring node from the block chain; analyzing the monitoring image to determine the detail information of the fire; determining a corresponding fire extinguishing scheme according to the detail information of the fire;
and the alarm node sends out alarm information after acquiring the detail information of the fire from the block chain.
2. The method of claim 1, wherein the abnormal condition further comprises: and the target area has multiple environmental state data corresponding to at least one position, and the multiple environmental state data meet preset conditions.
3. The method of claim 1, wherein the data collection node stores the plurality of environmental status data into the blockchain, comprising:
the data acquisition node sends the multiple environmental state data to the n block chain nodes;
after a target block chain node in the n block chain nodes acquires the permission to add a block in the block chain, adding a first block in the block chain, wherein the first block comprises the multiple environmental state data;
the target blockchain node sends a blockchain addition indication to other blockchain nodes in the blockchain system, wherein the blockchain addition indication is used for indicating the other blockchain nodes to add the first block in the blockchain.
4. The method of claim 1, wherein the processing node sending the location information to the monitoring node comprises:
the processing node stores the location information into the block chain;
and the monitoring node acquires the position information from the block chain.
5. A fire early warning method based on a block chain is characterized in that the method is applied to a processing node in a fire early warning system, the fire early warning system comprises a data acquisition node, the processing node, a warning node, a monitoring node and a block chain system, the block chain system comprises n block chain nodes, each block chain node is provided with a block chain, and n is an integer greater than 1;
the method comprises the following steps:
acquiring data in the blockchain, wherein the data comprises a plurality of environmental state data acquired by the data acquisition nodes deployed in a target area;
determining whether a fire occurs in the target area according to the data, wherein the data comprises multiple environmental state data corresponding to k positions in the target area, and k is a positive integer; if the abnormal condition comprises that multiple environmental state data corresponding to at least one position in the target area are missing, determining that fire occurs in the target area;
if the fire condition occurs in the target area, storing the detail information of the fire condition into the block chain, so that the alarm node sends out alarm information after acquiring the detail information of the fire condition from the block chain;
generating position information corresponding to the monitoring node, wherein the position information comprises at least one target position, and the position information comprises a preset track of hardware equipment corresponding to the monitoring node passing through each target position;
sending the position information to the monitoring node;
acquiring a monitoring image acquired by the monitoring node from the block chain;
analyzing the monitoring image to determine the detail information of the fire;
and determining a corresponding fire extinguishing scheme according to the detail information of the fire.
6. A fire early warning device based on a block chain is characterized in that the fire early warning device is applied to a processing node in a fire early warning system, the fire early warning system comprises a data acquisition node, the processing node, a warning node, a monitoring node and a block chain system, the block chain system comprises n block chain nodes, each block chain node is provided with a block chain, and n is an integer greater than 1;
the device comprises:
a data acquisition module, configured to acquire data in the blockchain, where the data includes multiple environmental status data acquired by the data acquisition nodes deployed in a target area;
the data analysis module is used for determining whether a fire occurs in the target area according to the data, wherein the data comprises multiple environmental state data corresponding to k positions in the target area, and k is a positive integer; if the abnormal condition comprises that multiple environmental state data corresponding to at least one position in the target area are missing, determining that fire occurs in the target area;
the fire alarm module is used for storing the detail information of the fire into the block chain when the fire in the target area is determined to occur, so that the alarm node sends out alarm information after acquiring the detail information of the fire from the block chain;
generating position information corresponding to the monitoring node, wherein the position information comprises at least one target position, and the position information comprises a preset track of hardware equipment corresponding to the monitoring node passing through each target position;
sending the position information to the monitoring node;
acquiring a monitoring image acquired by the monitoring node from the block chain;
analyzing the monitoring image to determine the detail information of the fire;
and determining a corresponding fire extinguishing scheme according to the detail information of the fire.
7. A computer device, characterized in that the computer device comprises a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded by the processor and executed to implement the method of block chain based fire warning according to any one of claims 1 to 4.
8. A computer-readable storage medium, in which a computer program is stored, the computer program being loaded and executed by a processor to implement the blockchain-based fire alerting method of any one of claims 1 to 4.
9. A computer program product, characterized in that the computer program product is executed by a processor to implement the blockchain based fire alerting method of any one of claims 1 to 4.
CN201910875804.9A 2019-09-17 2019-09-17 Fire early warning method, device, equipment and storage medium based on block chain Active CN110599728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910875804.9A CN110599728B (en) 2019-09-17 2019-09-17 Fire early warning method, device, equipment and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910875804.9A CN110599728B (en) 2019-09-17 2019-09-17 Fire early warning method, device, equipment and storage medium based on block chain

Publications (2)

Publication Number Publication Date
CN110599728A CN110599728A (en) 2019-12-20
CN110599728B true CN110599728B (en) 2022-05-10

Family

ID=68860077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910875804.9A Active CN110599728B (en) 2019-09-17 2019-09-17 Fire early warning method, device, equipment and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN110599728B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475520B (en) * 2020-04-10 2022-05-13 厦门慢雾科技有限公司 Method and system for automatically monitoring and alarming block data
CN111683137B (en) * 2020-06-05 2021-08-13 震兑工业智能科技有限公司 5G and block chain intelligent management system
CN111950842A (en) * 2020-06-19 2020-11-17 湖南拓比科技有限公司 Ecological environment comprehensive scheduling method and system based on block chain
CN111947626A (en) * 2020-06-19 2020-11-17 湖南拓比科技有限公司 Water environment monitoring method and system based on block chain
CN112799324B (en) * 2020-12-31 2022-02-22 江苏星月测绘科技股份有限公司 Emergent visual safety supervisory systems based on block chain technique
CN116319896A (en) * 2023-05-12 2023-06-23 广东省电信规划设计院有限公司 Block chain-based Internet of things perception key information processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103632484A (en) * 2012-08-21 2014-03-12 南车青岛四方机车车辆股份有限公司 A train smoke and fire alarm system based on a wireless sensor network and a method
CN108632381A (en) * 2018-05-14 2018-10-09 济南浪潮高新科技投资发展有限公司 A kind of environment measure of supervision and system based on block chain
CN109639751A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Block chain node monitoring method, device, system and computer storage medium
CN109687993A (en) * 2018-10-31 2019-04-26 深圳力维智联技术有限公司 A kind of Internet of Things alarm and control system and method based on block chain
CN110083757A (en) * 2019-04-24 2019-08-02 中国地质大学(北京) A kind of abnormal data access and querying method, system based on alliance's chain network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170228706A1 (en) * 2016-02-08 2017-08-10 Bank Of America Corporation System for resource accumulation triggering based on amount within an interval

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103632484A (en) * 2012-08-21 2014-03-12 南车青岛四方机车车辆股份有限公司 A train smoke and fire alarm system based on a wireless sensor network and a method
CN108632381A (en) * 2018-05-14 2018-10-09 济南浪潮高新科技投资发展有限公司 A kind of environment measure of supervision and system based on block chain
CN109639751A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Block chain node monitoring method, device, system and computer storage medium
CN109687993A (en) * 2018-10-31 2019-04-26 深圳力维智联技术有限公司 A kind of Internet of Things alarm and control system and method based on block chain
CN110083757A (en) * 2019-04-24 2019-08-02 中国地质大学(北京) A kind of abnormal data access and querying method, system based on alliance's chain network

Also Published As

Publication number Publication date
CN110599728A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110599728B (en) Fire early warning method, device, equipment and storage medium based on block chain
JP7363942B2 (en) Programs, information transmission methods, computer-readable storage media, and information transmission systems
CN110232749B (en) Block chain-based inspection and evidence storage method and device and electronic equipment
KR101794005B1 (en) Error detection system for network camera
CN112017323A (en) Patrol alarm method and device, readable storage medium and terminal equipment
CN110519560B (en) Intelligent early warning method, device and system
CN109936634B (en) fire-fighting dangerous case processing method and system based on Internet of things sensing
KR20210097500A (en) Apparatus for Monitoring Fire And System having the same
CN115880631A (en) Power distribution station fault identification system, method and medium
CN114418388A (en) Personnel management method and device based on image recognition and storage medium
KR101075550B1 (en) Image sensing agent and security system of USN complex type
CN114913663A (en) Anomaly detection method and device, computer equipment and storage medium
CN108510702B (en) Fire detection method and system
CN115297305A (en) Multi-video-stream security risk early warning system and method based on edge calculation
JPWO2018037665A1 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING SYSTEM, CONTROL METHOD, AND PROGRAM
KR101964230B1 (en) System for processing data
KR101250956B1 (en) An automatic system for monitoring
CN115766401B (en) Industrial alarm information analysis method and device, electronic equipment and computer medium
CN117037065A (en) Flame smoke concentration detection method, device, computer equipment and storage medium
US20220377091A1 (en) Indicators Of Compromise By Analyzing Data Based On Rolling Baseline
CN114446002B (en) Fire on-line monitoring method, device, medium and system
CN115909161A (en) Monitoring information integration method and system for intelligent scenic spot
CN113343841B (en) Method and device for determining abnormal condition of power tunnel
CN112419638B (en) Method and device for acquiring alarm video
CN114553725A (en) Computer room monitoring and alarming method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant