CN109033876A - A kind of air monitering data-storage system and storage method based on block chain - Google Patents
A kind of air monitering data-storage system and storage method based on block chain Download PDFInfo
- Publication number
- CN109033876A CN109033876A CN201810863097.7A CN201810863097A CN109033876A CN 109033876 A CN109033876 A CN 109033876A CN 201810863097 A CN201810863097 A CN 201810863097A CN 109033876 A CN109033876 A CN 109033876A
- Authority
- CN
- China
- Prior art keywords
- air
- data
- air monitering
- block
- monitering
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6272—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database by registering files or documents with a third party
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention is suitable for field of information security technology, provides a kind of air monitering data-storage system and storage method based on block chain, system includes management server, multiple air monitering data record nodes and multiple air monitors for air monitering;Management server and air monitering data record node use alliance's chain mode link setup, block chain network;Management server is for establishing wound generation block;The public key of air monitering information, the digital signature of air monitor, air monitor is packaged by air monitor, generates air monitering data packet, air monitering data packet is published in block chain network by wireless data transfer module;First air monitering data record node receives air monitering data packet, by the storage of air monitering data into the block body of new block, obtains current time, current time is added in the block head of new block, new block is published in block chain network.Invention enhances the safeties of air monitering data-storage system.
Description
Technical field
The invention belongs to field of information security technology more particularly to a kind of air monitering data based on block chain to store system
System and storage method.
Background technique
Air monitering refer to the polluter being present in air is pinpointed, continuous or timing sampling and measurement.It is empty
The purpose of gas detection be in order in time, accurately and comprehensively reflect air quality status and development trend, and be air administrative, dirt
The control of dye source, air planning, air evaluation provide scientific basis.
However, air monitering data packet is easy to be tampered in existing air monitering data-storage system, it is unfavorable for enhancing
The safety of air monitering data-storage system.The reason is that existing air monitering data-storage system is using concentration
Storage mode, and this centrally stored mode is easy to be broken, it is only necessary to central database is broken through, air monitering number can be distorted
According to packet.Especially for internal staff, central database can be directly contacted, is easily achieved by altered data library content
Fraud air monitering data packet.In this case, the safety for how enhancing air monitering data-storage system, which becomes, to be needed
It solves the problems, such as.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of air monitering data-storage system based on block chain, it is intended to solve
Certainly in existing air monitering data-storage system, air monitering data packet is easy to be tampered, and is unfavorable for enhancing air monitering number
According to storage system safety the problem of.
The embodiments of the present invention are implemented as follows, a kind of air monitering data-storage system based on block chain, the sky
Gas monitoring data storage system includes management server, multiple air monitors and multiple air monitering numbers for air monitering
According to record node, the multiple air monitering data record node includes the first air monitering data record node and other air
Monitoring data record node, and other air monitering data record nodes are in multiple air monitering data record nodes except institute
State the air monitering data record node other than the first air monitering data record node, the management server and the air
Monitoring data record node and use alliance's chain mode link setup, constitute block chain network;
The air monitor includes microcontroller, locating module, external signal wake-up circuit, smelly in air for detecting
The ozone sensor of carrier of oxygen, the carbon monoxide transducer for detecting CO in Air, for detecting temperature in air
With the Temperature Humidity Sensor of humidity, the PM2.5 sensor for detecting fine particle in air, for detecting volatility in air
The VOC sensor of organic matter, for detecting the SO 2 sensor of sulfur dioxide, wireless data transfer module and electricity in air
Source circuit, the battery in the power circuit are the power supply of entire air monitor, and the locating module, the external signal wake up
Circuit, the wireless data transfer module, the ozone sensor, the carbon monoxide transducer, the Temperature Humidity Sensor,
The PM2.5 sensor, the VOC sensor and the SO 2 sensor are connected with microcontroller respectively;
The management server distributes account for establishing wound generation block, for each air monitering data record node
And key, and the intelligent contract for being used to air monitering data record is issued in the block chain network, in the intelligence contract
Equipped with the memory interface for allowing the air monitor to call;
The air monitor obtain ozone data, carbon monoxide data, data of the Temperature and Humidity module, PM2.5 data, VOC data,
Sulfur dioxide data, positioning coordinate, by ozone data, the carbon monoxide data, the data of the Temperature and Humidity module, described
PM2.5 data, the VOC data, the sulfur dioxide data, the positioning coordinate, monitoring time and device identification combination,
Air monitering information is generated, the air is generated to air monitering information encryption using the private key of the air monitor and is supervised
The digital signature for surveying instrument, by the air monitering information, the digital signature of the air monitor, the public affairs of the air monitor
Key is packaged, and generates air monitering data packet, is executed the intelligent contract, is called the memory interface, by described wireless
The air monitering data packet is published in the block chain network by data transmission module;
The block chain network is added using the account and key in the first air monitering data record node, receives
The air monitering data packet in the block chain network, the air monitering data packet includes air monitering information, described
The public key of the digital signature of air monitor, the air monitor, using SHA-256 function to the air monitering information into
Row calculates, and generates the first cryptographic Hash, using the public key of the air monitor, carries out to the digital signature of the air monitor
Decryption, obtains the second cryptographic Hash, judges whether first cryptographic Hash and second cryptographic Hash are identical, if identical, just really
The air monitering data packet is recognized by veritifying, and the air monitering data packet is added in the area of the new block made
In block, when the capacity of the block body reaches 55MB, the sky that is included to the block body using SHA-256 function
Gas monitoring data packet is calculated, and the cryptographic Hash of the new block is generated, by current time, the cryptographic Hash of previous block, institute
The cryptographic Hash for stating new block is stored into the block head of the new block, wide in the block chain network using common recognition mechanism
Common recognition request is broadcast, if common recognition request passes through, current time is obtained, current time is added to the block head of the new block
In, the new block is published in the block chain network.
As a kind of implementation of the present embodiment, in the air monitor, the ozone sensor detects air
In ozone gas, generate the ozone data in itself monitoring range, and give the ozone data transmission to the microcontroller;
CO gas in the carbon monoxide transducer detection air, generates the oxidation in itself monitoring range
Carbon number evidence, and give the carbon monoxide data transmission to the microcontroller;
Temperature and humidity in the Temperature Humidity Sensor detection air, generates the warm and humid degree in itself monitoring range
According to, and send the data of the Temperature and Humidity module to the microcontroller;
Fine particle in the PM2.5 sensor detection air, generates the PM2.5 data in itself monitoring range, and
Give the PM2.5 data transmission to the microcontroller;
Volatile organic matter in the VOC sensor detection air, generates the VOC data in itself monitoring range, and
Give the VOC data transmission to the microcontroller;
Sulfur dioxide in the SO 2 sensor detection air, generates the sulfur dioxide number in itself monitoring range
According to, and give the sulfur dioxide data transmission to the microcontroller;
The locating module positions current location, generates positioning coordinate, and send the positioning coordinate to institute
State microcontroller;
The microcontroller is by the ozone data received, the carbon monoxide data, the data of the Temperature and Humidity module, institute
State PM2.5 data, the VOC data, the sulfur dioxide data, the positioning coordinate, monitoring time and device identification into
Row combination, generates air monitering information.
Further, in the air monitering data-storage system, the locating module is Beidou positioning module.
Further, in the air monitering data-storage system, the first air monitering data record node and
The common recognition request is handled using common recognition mechanism between other air monitering data record nodes, the common recognition mechanism is
DPos share authorisation verification mechanism or PBFT Byzantium common recognition algorithm mechanism.
Further, in the air monitering data-storage system, the locating module is GPS module.
Further, in the air monitering data-storage system, the air monitor further includes WIFI module, is led to
It crosses the WIFI module air monitering data packet is published in the block chain network.
Further, in the air monitering data-storage system, the air monitor further includes 4G module, is passed through
The air monitering data packet is published in the block chain network by the 4G module.
Further, in the air monitering data-storage system, the air monitor further includes 5G module, is passed through
The air monitering data packet is published in the block chain network by the 5G module.
Further, in the air monitering data-storage system, the first air monitering data record node and
Other air monitering data record nodes are communicated using end-to-end group-network construction.
Another embodiment of the present invention is to provide a kind of storage method based on above-mentioned air monitering data-storage system,
Include:
The management server distributes account for establishing wound generation block, for each air monitering data record node
And key, and the intelligent contract for being used to air monitering data record is issued in the block chain network, in the intelligence contract
Equipped with the memory interface for allowing the air monitor to call;
The air monitor obtain ozone data, carbon monoxide data, data of the Temperature and Humidity module, PM2.5 data, VOC data,
Sulfur dioxide data, positioning coordinate, by ozone data, the carbon monoxide data, the data of the Temperature and Humidity module, described
PM2.5 data, the VOC data, the sulfur dioxide data, the positioning coordinate, monitoring time and device identification combination,
Air monitering information is generated, the air is generated to air monitering information encryption using the private key of the air monitor and is supervised
The digital signature for surveying instrument, by the air monitering information, the digital signature of the air monitor, the public affairs of the air monitor
Key is packaged, and generates air monitering data packet, is executed the intelligent contract, is called the memory interface, by described wireless
The air monitering data packet is published in the block chain network by data transmission module;
The block chain network is added using the account and key in the first air monitering data record node, receives
The air monitering data packet in the block chain network, the air monitering data packet includes air monitering information, described
The public key of the digital signature of air monitor, the air monitor;
The first air monitering data record node counts the air monitering information using SHA-256 function
It calculates, generates the first cryptographic Hash and the digital signature of the air monitor is solved using the public key of the air monitor
It is close, obtain the second cryptographic Hash;
The first air monitering data record node judge first cryptographic Hash and second cryptographic Hash whether phase
Together, if it is identical, it is confirmed that the air monitering data packet is added to by the air monitering data packet by veritifying
In the block body of the new block of production, when the capacity of the block body reaches 55MB, using SHA-256 function to the block
The air monitering data packet that body is included is calculated, and the cryptographic Hash of the new block is generated;
The first air monitering data record node is by current time, the cryptographic Hash of previous block, the new block
Cryptographic Hash store into the block head of the new block, using common recognition mechanism, in the block chain network broadcast common recognition ask
It asks, if common recognition request passes through, obtains current time, current time is added in the block head of the new block, by institute
New block is stated to be published in the block chain network.
In embodiments of the present invention, by establishing alliance's chain for management server, air monitering data record node, air
Monitor combines, and relative to traditional centralised storage mode, provides the solution of decentralization, so that air is supervised
Measured data packet is not easy to be tampered, and is conducive to the safety for enhancing air monitering data-storage system.Air monitor
Detailed description of the invention
Fig. 1 is the structural block diagram of air monitering data-storage system provided in an embodiment of the present invention;
Fig. 2 is the implementation flow chart of storage method provided in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Embodiment one
Fig. 1 is the structural block diagram of air monitering data-storage system provided in an embodiment of the present invention, and details are as follows:
A kind of air monitering data-storage system based on block chain, the air monitering data-storage system include management
Server, multiple air monitors and multiple air monitering data record nodes for air monitering, the multiple air prison
Measured data records node and includes the first air monitering data record node and other air monitering data record nodes, described other
Air monitering data record node is that the first air monitering data record section is removed in multiple air monitering data record nodes
Air monitering data record node other than point, the management server and the air monitering data record node use alliance
Chain mode link setup constitutes block chain network;
The management server distributes account for establishing wound generation block, for each air monitering data record node
And key, and the intelligent contract for being used to air monitering data record is issued in the block chain network, in the intelligence contract
Equipped with the memory interface for allowing the air monitor to call;
The air monitor obtain ozone data, carbon monoxide data, data of the Temperature and Humidity module, PM2.5 data, VOC data,
Sulfur dioxide data, positioning coordinate, by ozone data, the carbon monoxide data, the data of the Temperature and Humidity module, described
PM2.5 data, the VOC data, the sulfur dioxide data, the positioning coordinate, monitoring time and device identification combination,
Air monitering information is generated, the air is generated to air monitering information encryption using the private key of the air monitor and is supervised
The digital signature for surveying instrument, by the air monitering information, the digital signature of the air monitor, the public affairs of the air monitor
Key is packaged, and generates air monitering data packet, is executed the intelligent contract, is called the memory interface, by described wireless
The air monitering data packet is published in the block chain network by data transmission module;
The block chain network is added using the account and key in the first air monitering data record node, receives
The air monitering data packet in the block chain network, the air monitering data packet includes air monitering information, described
The public key of the digital signature of air monitor, the air monitor, using SHA-256 function to the air monitering information into
Row calculates, and generates the first cryptographic Hash, using the public key of the air monitor, carries out to the digital signature of the air monitor
Decryption, obtains the second cryptographic Hash, judges whether first cryptographic Hash and second cryptographic Hash are identical, if identical, just really
The air monitering data packet is recognized by veritifying, and the air monitering data packet is added in the area of the new block made
In block, when the capacity of the block body reaches 55MB, the sky that is included to the block body using SHA-256 function
Gas monitoring data packet is calculated, and the cryptographic Hash of the new block is generated, by current time, the cryptographic Hash of previous block, institute
The cryptographic Hash for stating new block is stored into the block head of the new block, wide in the block chain network using common recognition mechanism
Common recognition request is broadcast, if common recognition request passes through, current time is obtained, current time is added to the block head of the new block
In, the new block is published in the block chain network.
Wherein, air monitor connects external input device by data/address bus when leaving the factory, receives external input device
The private key and public key of input.
Wherein, monitoring time is to get the time of positioning coordinate.By acquisition sequence, if getting positioning coordinate, just
Illustrate the ozone data, the carbon monoxide data, the data of the Temperature and Humidity module, the PM2.5 data, the VOC data, institute
It states sulfur dioxide data and has obtained to finish to have obtained and finish.Such benefit is, it is ensured that collected air monitering
The integrality of information.
Wherein, air monitor is to be placed on outdoor air monitering equipment.
Wherein, air monitor obtains the intelligent contract by the wireless data transfer module, passes through the micro-control
Device processed executes the intelligent contract.
Wherein, air monitering data record node is the server for being placed on air monitering station.
Wherein, multiple air monitering data record nodes can be individually placed to different air monitering stations.
Wherein, the first air monitering data record node is any one sky in multiple air monitering data record nodes
Gas monitoring data record node.
Preferably, the locating module is GPS module.
Wherein, all air monitering data that the block body is included by the first air monitering data record node
Packet one character string of composition, is calculated using the character string that SHA-256 function is included to the block body, generates institute
State the cryptographic Hash of new block.
Wherein, the first air monitering data record node is according to Fixed Time Interval to other air monitering numbers
Heartbeat data packets are sent according to record node, the heartbeat signal data packet is made of the first character string and the second character string, described
First character string is the device identification of the first air monitering data record node, and second character string is binary form
61.Such benefit is that other air monitering data record nodes receive and parse through heartbeat data packets, if recognizing
Two character strings determine that the first air monitering data record node can work normally.
Wherein, the first air monitering data record node uses TCP/IP data packet format, by the air monitering
Information, the digital signature of the air monitor, the air monitor public key be packaged, generate air monitering data
Packet.
Preferably, Fixed Time Interval is 20 minutes.
Wherein, SHA-256 function is secure hash function.
Wherein, common recognition mechanism, intelligent contract are the prior art, and specific implementation process, this will not be repeated here.
Wherein, the first air monitering data record node obtains previous area in the block head of previous block
The cryptographic Hash of block.
In embodiments of the present invention, by establishing alliance's chain for management server, air monitering data record node, air
Monitor combines, and relative to traditional centralised storage mode, provides the solution of decentralization, so that air is supervised
Measured data packet is not easy to be tampered, and is conducive to the safety for enhancing air monitering data-storage system.
Embodiment two
Fig. 2 is the implementation flow chart of storage method provided in an embodiment of the present invention, and details are as follows:
S201, the management server is for establishing wound generation block, for each air monitering data record node point
With account and key, and in the block chain network, publication is used to the intelligent contract of air monitering data record, the intelligence
The memory interface for allowing the air monitor to call is equipped in contract;
S202, the air monitor obtain ozone data, carbon monoxide data, data of the Temperature and Humidity module, PM2.5 data, VOC
Data, sulfur dioxide data, positioning coordinate, by the ozone data, the carbon monoxide data, the data of the Temperature and Humidity module, institute
State PM2.5 data, the VOC data, the sulfur dioxide data, the positioning coordinate, monitoring time and device identification group
It closes, generates air monitering information, the sky is generated to air monitering information encryption using the private key of the air monitor
The digital signature of gas monitor, by the air monitering information, the digital signature of the air monitor, the air monitor
Public key be packaged, generate air monitering data packet, execute the intelligent contract, the memory interface is called, by described
The air monitering data packet is published in the block chain network by wireless data transfer module;
S203, the management server is for establishing wound generation block, for each air monitering data record node point
With account and key, and in the block chain network, publication is used to the intelligent contract of air monitering data record, the intelligence
The memory interface for allowing the air monitor to call is equipped in contract;
S204, the air monitor obtain ozone data, carbon monoxide data, data of the Temperature and Humidity module, PM2.5 data, VOC
Data, sulfur dioxide data, positioning coordinate, by the ozone data, the carbon monoxide data, the data of the Temperature and Humidity module, institute
State PM2.5 data, the VOC data, the sulfur dioxide data, the positioning coordinate, monitoring time and device identification group
It closes, generates air monitering information, the sky is generated to air monitering information encryption using the private key of the air monitor
The digital signature of gas monitor, by the air monitering information, the digital signature of the air monitor, the air monitor
Public key be packaged, generate air monitering data packet, execute the intelligent contract, the memory interface is called, by described
The air monitering data packet is published in the block chain network by wireless data transfer module;
The block link network is added using the account and key in S205, the first air monitering data record node
Network, receives the air monitering data packet in the block chain network, and the air monitering data packet includes air monitering letter
The public key of breath, the digital signature of the air monitor, the air monitor;
S206, the first air monitering data record node using SHA-256 function to the air monitering information into
Row calculates, and generates the first cryptographic Hash, using the public key of the air monitor, carries out to the digital signature of the air monitor
Decryption, obtains the second cryptographic Hash;
S207, the first air monitering data record node judges first cryptographic Hash and second cryptographic Hash is
It is no identical, if identical, it is confirmed that the air monitering data packet is added to by the air monitering data packet by veritifying
In the block body of the new block made, when the capacity of the block body reaches 55MB, using SHA-256 function to described
The air monitering data packet that block body is included is calculated, and the cryptographic Hash of the new block is generated;
S208, the first air monitering data record node is by the current time, cryptographic Hash of previous block, described new
The cryptographic Hash of block is stored into the block head of the new block, using common recognition mechanism, is broadcasted altogether in the block chain network
Know request, if common recognition request passes through, obtain current time, current time is added in the block head of the new block,
The new block is published in the block chain network.
Wherein, the first air monitering data record node is after the last-of-chain of existing block chain adds the new block,
The step of continuing to execute S204 to S208.
In embodiments of the present invention, by establishing alliance's chain for management server, air monitering data record node, air
Monitor combines, and relative to traditional centralised storage mode, provides the solution of decentralization, so that air is supervised
Measured data packet is not easy to be tampered, and is conducive to the safety for enhancing air monitering data-storage system.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of air monitering data-storage system based on block chain, which is characterized in that air monitering data storage system
System includes management server, multiple air monitors and multiple air monitering data record nodes for air monitering, described
Multiple air monitering data record nodes include the first air monitering data record node and other air monitering data record sections
Point, other air monitering data record nodes are that first air monitering is removed in multiple air monitering data record nodes
Air monitering data record node other than data record node, the management server and the air monitering data record section
Point uses alliance's chain mode link setup, constitutes block chain network;
The air monitor include microcontroller, locating module, external signal wake-up circuit, for detecting ozone gas in air
The ozone sensor of body, the carbon monoxide transducer for detecting CO in Air, for detecting in air temperature and wet
It is the Temperature Humidity Sensor of degree, the PM2.5 sensor for detecting fine particle in air, organic for detecting volatility in air
The VOC sensor of object, for detect the SO 2 sensor of sulfur dioxide in air, wireless data transfer module and power supply electricity
Road, the battery in the power circuit are the power supply of entire air monitor, and the locating module, the external signal wake up electricity
Road, the wireless data transfer module, the ozone sensor, the carbon monoxide transducer, the Temperature Humidity Sensor, institute
PM2.5 sensor, the VOC sensor and the SO 2 sensor is stated to be connected with microcontroller respectively;
The management server distributes account and close for establishing wound generation block, for each air monitering data record node
Key, and publication is used to the intelligent contract of air monitering data record in the block chain network, is equipped in the intelligence contract
The memory interface for allowing the air monitor to call;
The air monitor obtains ozone data, carbon monoxide data, data of the Temperature and Humidity module, PM2.5 data, VOC data, dioxy
Change sulphur data, positioning coordinate, by the ozone data, the carbon monoxide data, the data of the Temperature and Humidity module, the PM2.5 number
According to, the VOC data, the sulfur dioxide data, the positioning coordinate, monitoring time and device identification combination, generate empty
Gas monitoring information generates the air monitor to air monitering information encryption using the private key of the air monitor
Digital signature carries out the public key of the air monitering information, the digital signature of the air monitor, the air monitor
Encapsulation generates air monitering data packet, executes the intelligent contract, calls the memory interface, passed by the wireless data
The air monitering data packet is published in the block chain network by defeated module;
The block chain network is added using the account and key in the first air monitering data record node, described in reception
The air monitering data packet in block chain network, the air monitering data packet include air monitering information, the air
The public key of the digital signature of monitor, the air monitor counts the air monitering information using SHA-256 function
It calculates, generates the first cryptographic Hash and the digital signature of the air monitor is solved using the public key of the air monitor
It is close, the second cryptographic Hash is obtained, judges whether first cryptographic Hash and second cryptographic Hash are identical, if identical, it is confirmed that
The air monitering data packet is added to the block in the new block made by veritifying by the air monitering data packet
In body, when the capacity of the block body reaches 55MB, the air that is included to the block body using SHA-256 function
Monitoring data packet is calculated, and the cryptographic Hash of the new block is generated, by the current time, cryptographic Hash of previous block, described
The cryptographic Hash of new block is stored into the block head of the new block, using common recognition mechanism, is broadcasted in the block chain network
Common recognition request obtains current time, current time is added to the block head of the new block if common recognition request passes through
In, the new block is published in the block chain network.
2. air monitering data-storage system as described in claim 1, which is characterized in that
In the air monitor, the ozone sensor detects the ozone gas in air, generates in itself monitoring range
Ozone data, and by the ozone data transmission give the microcontroller;
CO gas in the carbon monoxide transducer detection air, generates the carbon monoxide number in itself monitoring range
According to, and give the carbon monoxide data transmission to the microcontroller;
Temperature and humidity in the Temperature Humidity Sensor detection air, generates the data of the Temperature and Humidity module in itself monitoring range, and
Send the data of the Temperature and Humidity module to the microcontroller;
Fine particle in PM2.5 sensor detection air, generates the PM2.5 data in itself monitoring range, and by institute
PM2.5 data transmission is stated to the microcontroller;
Volatile organic matter in VOC sensor detection air, generates the VOC data in itself monitoring range, and by institute
VOC data transmission is stated to the microcontroller;
Sulfur dioxide in the SO 2 sensor detection air, generates the sulfur dioxide data in itself monitoring range,
And give the sulfur dioxide data transmission to the microcontroller;
The locating module positions current location, generates positioning coordinate, and the positioning coordinate sent to described micro-
Controller;
The microcontroller is by ozone data received, the carbon monoxide data, the data of the Temperature and Humidity module, described
PM2.5 data, the VOC data, the sulfur dioxide data, the positioning coordinate, monitoring time and device identification carry out
Combination generates air monitering information.
3. air monitering data-storage system as described in claim 1, which is characterized in that system according to claim 1
System, which is characterized in that the locating module is Beidou positioning module.
4. air monitering data-storage system as described in claim 1, which is characterized in that the first air monitering data note
It records and the common recognition request, the common recognition is handled using common recognition mechanism between node and other air monitering data record nodes
Mechanism is DPos share authorisation verification mechanism or PBFT Byzantium common recognition algorithm mechanism.
5. air monitering data-storage system as described in claim 1, which is characterized in that the locating module is GPS module.
6. air monitering data-storage system as described in claim 1, which is characterized in that the air monitor further includes
The air monitering data packet is published in the block chain network by WIFI module by the WIFI module.
7. air monitering data-storage system as described in claim 1, which is characterized in that the air monitor further includes 4G
The air monitering data packet is published in the block chain network by module by the 4G module.
8. air monitering data-storage system as described in claim 1, which is characterized in that the air monitor further includes 5G
The air monitering data packet is published in the block chain network by module by the 5G module.
9. air monitering data-storage system as described in claim 1, which is characterized in that the first air monitering data note
Record node and other air monitering data record nodes are communicated using end-to-end group-network construction.
10. a kind of storage method based on air monitering data-storage system described in claim 1 characterized by comprising
The management server distributes account and close for establishing wound generation block, for each air monitering data record node
Key, and publication is used to the intelligent contract of air monitering data record in the block chain network, is equipped in the intelligence contract
The memory interface for allowing the air monitor to call;
The air monitor obtains ozone data, carbon monoxide data, data of the Temperature and Humidity module, PM2.5 data, VOC data, dioxy
Change sulphur data, positioning coordinate, by the ozone data, the carbon monoxide data, the data of the Temperature and Humidity module, the PM2.5 number
According to, the VOC data, the sulfur dioxide data, the positioning coordinate, monitoring time and device identification combination, generate empty
Gas monitoring information generates the air monitor to air monitering information encryption using the private key of the air monitor
Digital signature carries out the public key of the air monitering information, the digital signature of the air monitor, the air monitor
Encapsulation generates air monitering data packet, executes the intelligent contract, calls the memory interface, passed by the wireless data
The air monitering data packet is published in the block chain network by defeated module;
The block chain network is added using the account and key in the first air monitering data record node, described in reception
The air monitering data packet in block chain network, the air monitering data packet include air monitering information, the air
The public key of the digital signature of monitor, the air monitor;
The first air monitering data record node calculates the air monitering information using SHA-256 function, raw
The digital signature of the air monitor is decrypted, is obtained using the public key of the air monitor at the first cryptographic Hash
Second cryptographic Hash;
The first air monitering data record node judges whether first cryptographic Hash and second cryptographic Hash are identical, such as
Fruit is identical, it is confirmed that the air monitering data packet is added to and is making by veritifying by the air monitering data packet
New block block body in, when the block body capacity reach 55MB when, using SHA-256 function to the block body institute
The air monitering data packet for including is calculated, and the cryptographic Hash of the new block is generated;
The first air monitering data record node is by the Kazakhstan of current time, the cryptographic Hash of previous block, the new block
Uncommon value storage is into the block head of the new block, using common recognition mechanism, the broadcast common recognition request in the block chain network, if
The common recognition request passes through, and obtains current time, current time is added in the block head of the new block, by the new district
Block is published in the block chain network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810863097.7A CN109033876A (en) | 2018-08-01 | 2018-08-01 | A kind of air monitering data-storage system and storage method based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810863097.7A CN109033876A (en) | 2018-08-01 | 2018-08-01 | A kind of air monitering data-storage system and storage method based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109033876A true CN109033876A (en) | 2018-12-18 |
Family
ID=64647465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810863097.7A Withdrawn CN109033876A (en) | 2018-08-01 | 2018-08-01 | A kind of air monitering data-storage system and storage method based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109033876A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109655107A (en) * | 2018-12-25 | 2019-04-19 | 深圳市元征科技股份有限公司 | Air quality monitoring method, device, vehicle and computer readable storage medium |
CN109872118A (en) * | 2018-12-30 | 2019-06-11 | 广州骏升建设管理有限公司 | The data managing method and system of project supervision |
CN110381075A (en) * | 2019-07-26 | 2019-10-25 | 烨链(上海)科技有限公司 | Equipment identities authentication method and device based on block chain |
CN110940880A (en) * | 2019-12-09 | 2020-03-31 | 湖南文理学院 | Intelligent power transformer monitoring system based on wireless data transmission |
CN111125468A (en) * | 2020-02-05 | 2020-05-08 | 天津大学 | Structural health monitoring system and method based on block chain technology and intelligent contract |
CN111157682A (en) * | 2020-01-06 | 2020-05-15 | 上海应用技术大学 | Air quality monitoring and predicting system and method |
CN111225000A (en) * | 2020-02-24 | 2020-06-02 | 南京震坤物联网科技有限公司 | Bridge structure health monitoring system based on block chain technology |
CN111260925A (en) * | 2020-02-24 | 2020-06-09 | 南京震坤物联网科技有限公司 | Urban bridge transfinite overload safety monitoring system based on block chain technology |
-
2018
- 2018-08-01 CN CN201810863097.7A patent/CN109033876A/en not_active Withdrawn
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109655107A (en) * | 2018-12-25 | 2019-04-19 | 深圳市元征科技股份有限公司 | Air quality monitoring method, device, vehicle and computer readable storage medium |
CN109872118A (en) * | 2018-12-30 | 2019-06-11 | 广州骏升建设管理有限公司 | The data managing method and system of project supervision |
CN110381075A (en) * | 2019-07-26 | 2019-10-25 | 烨链(上海)科技有限公司 | Equipment identities authentication method and device based on block chain |
CN110381075B (en) * | 2019-07-26 | 2021-10-29 | 烨链(上海)科技有限公司 | Block chain-based equipment identity authentication method and device |
CN110940880A (en) * | 2019-12-09 | 2020-03-31 | 湖南文理学院 | Intelligent power transformer monitoring system based on wireless data transmission |
CN111157682A (en) * | 2020-01-06 | 2020-05-15 | 上海应用技术大学 | Air quality monitoring and predicting system and method |
CN111125468A (en) * | 2020-02-05 | 2020-05-08 | 天津大学 | Structural health monitoring system and method based on block chain technology and intelligent contract |
CN111225000A (en) * | 2020-02-24 | 2020-06-02 | 南京震坤物联网科技有限公司 | Bridge structure health monitoring system based on block chain technology |
CN111260925A (en) * | 2020-02-24 | 2020-06-09 | 南京震坤物联网科技有限公司 | Urban bridge transfinite overload safety monitoring system based on block chain technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109033876A (en) | A kind of air monitering data-storage system and storage method based on block chain | |
CN109145648A (en) | A kind of water monitoring data storage system and storage method based on block chain | |
CN103532940B (en) | network security detection method and device | |
Zhang et al. | Artificial immune system based intrusion detection in a distributed hierarchical network architecture of smart grid | |
Ozdemir et al. | FTDA: outlier detection‐based fault‐tolerant data aggregation for wireless sensor networks | |
CN111225000A (en) | Bridge structure health monitoring system based on block chain technology | |
CN111224940A (en) | Anonymous service traffic correlation identification method and system nested in encrypted tunnel | |
CN211239887U (en) | Monitoring data tamper-proofing system based on block chain | |
CN115224794A (en) | Power distribution network monitoring method based on Internet of things technology | |
Loske et al. | Context-aware authentication: State-of-the-art evaluation and adaption to the IIoT | |
CN103824339A (en) | Integrated routing inspection system for power plant | |
Ma et al. | BOND: Exploring hidden bottleneck nodes in large-scale wireless sensor networks | |
CN116026778A (en) | Sky-ground-based park carbon emission comprehensive monitoring system and method | |
CN117014817B (en) | Intelligent tour inspection method and system for park equipment based on Internet of things | |
KR102106824B1 (en) | Advanced metering infrastructure and method for processing meter reading data | |
Asorey-Cacheda et al. | Deployment of air quality monitoring sensors over a delay tolerant mobile ad-hoc network in public transportation systems | |
KR20080112858A (en) | Method and system for filtering of message in sensor network | |
CN204832332U (en) | Novel voltage monitor of chip and GPS location is encrypted in area | |
CN106961479A (en) | A kind of atmospheric environment monitoring system and method based on Internet of Things | |
CN106162553B (en) | The unrelated ZigBee physical location of topological structure identifies system and method | |
Kher et al. | A prediction model for anomalies in smart grid with sensor network | |
Dong et al. | Universal path tracing for large-scale sensor networks | |
CN112725807B (en) | FPGA-based intelligent yin insurance system for buried steel pipeline and implementation method | |
Muñoz et al. | Anomaly detection system for data quality assurance in IoT infrastructures based on machine learning | |
Liu et al. | Security Protection Technology Based on Power Communication Terminal Intelligent Equipment. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20181218 |
|
WW01 | Invention patent application withdrawn after publication |