CN110674219A - Block chain based ambient air detection data chaining method and equipment for Internet of things - Google Patents

Block chain based ambient air detection data chaining method and equipment for Internet of things Download PDF

Info

Publication number
CN110674219A
CN110674219A CN201910905038.6A CN201910905038A CN110674219A CN 110674219 A CN110674219 A CN 110674219A CN 201910905038 A CN201910905038 A CN 201910905038A CN 110674219 A CN110674219 A CN 110674219A
Authority
CN
China
Prior art keywords
air detection
data
ambient air
detection data
block chain
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.)
Pending
Application number
CN201910905038.6A
Other languages
Chinese (zh)
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.)
Beijing Ai Morui Strategic Technology Co Ltd
Original Assignee
Beijing Ai Morui Strategic Technology 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 Beijing Ai Morui Strategic Technology Co Ltd filed Critical Beijing Ai Morui Strategic Technology Co Ltd
Priority to CN201910905038.6A priority Critical patent/CN110674219A/en
Publication of CN110674219A publication Critical patent/CN110674219A/en
Pending legal-status Critical Current

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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an Internet of things environment air detection data chaining method and equipment based on a block chain, belongs to the technical field of combination of the Internet of things and the block chain, and particularly comprises the following steps that block chain links receive environment air detection data sent by an air detection server, the environment air detection data are collected by an air detector and sent to the air detection server through the Internet of things, and the environment air detection data comprise: air quality index, sulfur dioxide concentration, nitrogen dioxide concentration, inhalable particulate concentration, ozone concentration, and carbon monoxide concentration; and carrying out identity verification on the air detection server by the block link point, and if the identity verification is passed, carrying out cochain on the environment air detection data by the block link point after common identification. According to the invention, the environmental air detection data is sent to the block chain nodes based on the Internet of things, and the chain is linked by the block chain nodes, so that the combination of the Internet of things and the block chain technology is realized.

Description

Block chain based ambient air detection data chaining method and equipment for Internet of things
Technical Field
The invention relates to the technical crossing field of the Internet of things and block chain information, in particular to an ambient air detection data uplink method and device of the Internet of things based on a block chain.
Background
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes in a blockchain system. The blockchain is the underlying technology of bitcoin, like a database ledger, which records all transaction records. The system is characterized in that a plurality of nodes are arranged at different parts of the world, and each node maintains a set of same databases. The data is maliciously tampered and difficult to tamper, and the data loss is extremely rare, so that a platform which is fair and transparent and solves the trust crisis is realized.
In the era of the development of the internet of things along with the information technology such as the internet and the like, a sensor, a user, an object and the like are connected together in a new mode, and the information, remote monitoring and management and intelligent network are realized. Ambient air safety is currently an increasing concern for society, such as: the ozone concentration, the sulfide concentration, the nitride concentration, the inhalable particle concentration and the like of the environment, if the environmental air index is not beneficial to the physical health of residents or environmental workers, the residents or the environmental workers need to be informed, and the environmental air data can be inquired.
Since the blockchain is a development direction of future technologies, how to combine the blockchain technology with the internet of things and how to link the ambient air detection data after combining the blockchain technology with the internet of things, user experience is further improved, and a challenge of the future technologies is presented.
The above techniques are merely for reference and are not necessarily to be construed as prior art.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to solve the technical problems of how to combine the block chain technology with the Internet of things and how to detect the uplink of the data by the ambient air of the Internet of things.
In order to achieve the above object, in a first aspect, the present invention provides an ambient air detection data uplink method for a block chain based internet of things, including the following steps:
the ambient air that the air detection server sent is received to district's chain node detects data, ambient air detects data and is gathered by air detector, sends for the air detection server through the thing networking, and ambient air detects data and includes: air quality index, sulfur dioxide concentration, nitrogen dioxide concentration, inhalable particulate concentration, ozone concentration, and carbon monoxide concentration;
and carrying out identity verification on the air detection server by the block link point, and if the identity verification is passed, carrying out cochain on the environment air detection data by the block link point after common identification.
Specifically, the identity verification is to verify the ambient air detection data sent by the air detection server through a public key of the air detection server; the ambient air detection data is data signed with an air detection server private key.
Optionally, the air detector is placed in the detected environment, the air detector comprising: the device comprises a sulfur dioxide detector, a nitrogen dioxide detector, an inhalable particle detector, an ozone detector, a carbon monoxide detector and an air quality index calculator, wherein the sulfur dioxide detector, the nitrogen dioxide detector, the inhalable particle detector, the ozone detector, the carbon monoxide detector and the air quality index calculator are respectively used for detecting the sulfur dioxide concentration, the nitrogen dioxide concentration, the inhalable particle concentration, the ozone concentration and the carbon monoxide concentration and calculating the air quality index. The air detector detects ambient air, and sends ambient air detection data to the air detection server through the Internet of things. And the air detection server sends the ambient air detection data to the block chain nodes.
Further, each air detector can directly send detected ambient air detection data to the blockchain node through the internet of things. It can be understood that the connection of the air detection server to the blockchain node is more stable than the connection of each air detector to the blockchain node. Therefore, a mode of sending the ambient air detection data to the blockchain node through the air detection server may be taken as a preferable scheme.
Specifically, the block link point performs link up after the PBFT consensus on the ambient air detection data by using the PBFT fault-tolerant algorithm.
It should be noted that the blockchain is a distributed ledger, and may be a private chain, a public chain, or a federation chain.
Specifically, when the block chain nodes receive the ambient air detection data, a transaction including a hash of the ambient air detection data and the transaction information thereof can be constructed, and the constructed transaction is broadcasted to the block chain network, so that each node stores the transaction in its own block chain based on a consensus mechanism, thereby realizing multi-party evidence storage of the ambient air detection data. When the transaction only includes the hash of the ambient air detection data, since the hash of the ambient air detection data is already issued to the blockchain, if the ambient air detection data is tampered, the hash of the tampered ambient air detection data is inconsistent with the hash issued in the blockchain, and therefore, issuing the ambient air detection data to the blockchain is equivalent to multi-party crediting of the ambient air detection data. It should also be noted that when the transaction only includes a hash of the ambient air detection data, the blockchain attestation platform typically stores the ambient air detection data in a data store (non-blockchain), such as RAM.
It should be noted that the transaction described in this specification refers to a piece of data that is created by a user through a client of the blockchain and needs to be finally published to a distributed database of the blockchain. That is, there are narrow and broad categories of transactions in the blockchain. A narrowly defined transaction refers to a transfer of value issued by a user to a blockchain; for example, in a conventional bitcoin blockchain network, the transaction may be a transfer initiated by the user in the blockchain. The broad transaction refers to a piece of business data with business intention, which is issued to the blockchain by a user; for example, an operator may build a federation chain based on actual business requirements, and rely on the federation chain to deploy some other types of online businesses unrelated to value transfer, such as data uplink business, house renting business, vehicle scheduling business, insurance claim settlement business, and the like, in such federation chain, a transaction may be a business message or business request with business intent issued by a user in the federation chain.
In one possible embodiment, the block chain node receives the ambient air detection data, and the block chain node sends the query result of the ambient air data to the user according to the query request of the user.
In one possible embodiment, the block link point receives the ambient air detection data, and when the block link point determines that the user is in the environment, the block link point directly pushes the ambient air data to the user.
In one possible embodiment, the uplink of the ambient air sensing data by the block link point includes the following steps:
if the data volume of the ambient air detection data is larger than the storage threshold value of one block, dividing the ambient air detection data into a plurality of fragment data smaller than the storage threshold value by a block link point;
the block chain node stores a plurality of fragment data into a plurality of blocks of the block chain node respectively.
In one possible embodiment, the uplink of the ambient air sensing data by the block link point includes the following steps:
if the data volume of the ambient air detection data is larger than the storage threshold value of one block, dividing the ambient air detection data into a plurality of fragment data smaller than the storage threshold value by a block link point;
the block link point stores a first piece of fragment data in the plurality of pieces of fragment data to a current block link point;
and the block chain nodes randomly select other block chain nodes except the current block chain link point in a mode of verifying a random function VRF, and the other block chain link points store the data except the first piece of fragment data in the plurality of pieces of fragment data.
Alternatively, if the air detection server determines that the data size of the ambient air detection data to be sent is too large and is greater than the set data capacity threshold, the hash value of the ambient air detection data may be calculated, and the hash value is sent to the blockchain node for uplink. When a user inquires the ambient air detection data, whether the ambient air detection data stored on the air detection server is real or not can be verified through inquiring the hash value on the link point of the block and the corresponding relation between the hash value and the original ambient air detection data, whether the ambient air detection data is tampered or not is judged, and storage and authenticity inquiry of the ambient air detection data based on the air detection server and the block chain are achieved.
In one possible embodiment, the ambient air sensing data is structured data, and each attribute of the ambient air sensing data is linked, where the attribute of the ambient air sensing data includes: the environmental geographic location and the time of detection.
In one possible embodiment, the method further comprises the steps of:
the block chain node receives digital currency mortised by an air detection server, and allocates corresponding resources for the air detection server, wherein the resources are used for uplink of environmental air detection data sent by the air detection server; the resources include: network resources, CPU resources, and memory resources.
Specifically, in the above scheme, the uplink mode of the ambient air sensing data is to obtain the block chain resource used for uplink of the ambient air sensing data by mortgage of a certain digital currency, and pay the uplink fee of the ambient air sensing data at the block chain link point.
It is understood that the allocated blockchain resource may be a CPU, a network resource NET or a RAM. The method includes the steps that the ambient air detection data are sent to the block chain nodes in a mortgage mode, the uplink fee is not sent independently in each uplink, but block chain resources are consumed, and the uplink fee of the ambient air detection data at the block chain nodes can be paid only by obtaining the block chain resources through the mortgage.
Optionally, in the above scheme, the uplink mode of the ambient air detection data may be replaced by: the air detection server sends the environmental air detection data to the block chain node in a transfer mode so that the block chain node can execute a chain loading process, wherein the transfer information sent by the air detection server comprises: from address, to address, ambient air detection data, commission fees. Specifically, the from address is an address of the air detection server, the to address is an address of the blockchain node, and the commission is a cost of resources occupied by the uplink of the paid ambient air detection data.
Wherein the commission may be digital currency.
It can be understood that after the identity verification of the air detection server by the block link point is passed, resource fee check is also required before uplink is performed on the ambient air detection data. The resource fee means: the resource size required by the uplink of the received environment air detection data, and the resource fee check refers to judging whether the resource purchased by the air detection server is larger than the resource fee, if so, the resource fee check is passed, otherwise, the check is not passed.
In a second aspect, the present invention provides an ambient air detection data uplink device for a block chain based internet of things, including:
the detection data receiving unit is used for receiving the ambient air detection data sent by the air detection server, the ambient air detection data is collected by the air detector and is sent to the air detection server through the Internet of things, and the ambient air detection data comprises: air quality index, sulfur dioxide concentration, nitrogen dioxide concentration, inhalable particulate concentration, ozone concentration, and carbon monoxide concentration;
and the detection data uplink unit is used for carrying out identity verification on the air detection server, and if the identity verification passes, the block chain link point carries out uplink after the environmental air detection data is subjected to common identification.
In a possible embodiment, if the data amount of the ambient air detection data is greater than the storage threshold of one block, the detection data uplink unit divides the ambient air detection data into a plurality of pieces of data smaller than the storage threshold; and respectively storing the plurality of fragment data into a plurality of blocks of the block chain node.
In a possible embodiment, if the data amount of the ambient air detection data is greater than the storage threshold of one block, the detection data uplink unit divides the ambient air detection data into a plurality of pieces of data smaller than the storage threshold; storing a first piece of fragment data in the plurality of piece of fragment data to a current block link point; and randomly selecting other block chain nodes except the current block chain node point in a mode of verifying a random function VRF, and storing data except the first piece of fragment data in the plurality of pieces of fragment data by the other block chain nodes.
In one possible embodiment, the ambient air sensing data is structured data, and each attribute of the ambient air sensing data is linked, where the attribute of the ambient air sensing data includes: the environmental geographic location and the time of detection.
In one possible embodiment, the apparatus further comprises: the system comprises a resource allocation unit, a resource allocation unit and a resource allocation unit, wherein the resource allocation unit is used for receiving digital currency mortared by an air detection server and allocating corresponding resources for the air detection server, and the resources are used for uplink of environmental air detection data sent by the air detection server; the resources include: network resources, CPU resources, and memory resources.
In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the method for detecting uplink of data in ambient air of a blockchain-based internet of things provided in the first aspect.
Generally, compared with the prior art, the above technical solution conceived by the present invention has the following beneficial effects:
the invention provides an environmental air detection data chaining method and equipment of an Internet of things based on a block chain.
The invention provides an environmental air detection data uplink method and equipment based on an Internet of things of a block chain.
The invention provides an Internet of things-based ambient air detection data chaining method and equipment based on a block chain.
The invention provides an Internet of things-based method and equipment for chaining ambient air detection data, which utilize the distributed storage characteristics of block chain nodes to realize the fragmented storage of the ambient air detection data occupying larger resources. When the fragmented storage of the ambient air detection data is realized in a plurality of blocks of one block chain node, the fragmented storage of the same block chain node is realized. When the fragmented storage of the ambient air detection data is realized at different block chain nodes, all the fragmented data can be stored at the same time, and the chaining speed of the ambient air detection data is accelerated.
The invention provides an Internet of things environment air detection data chaining method and equipment based on a block chain.
The invention provides an environmental air detection data chaining method and equipment based on the Internet of things of a block chain.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
In addition, any one of the embodiments in the present specification is not required to achieve all of the effects described above.
Drawings
Fig. 1 is a flowchart of an ambient air detection data uplink method of the internet of things based on a block chain according to the present invention;
fig. 2 is an architecture diagram of an ambient air detection data uplink device of the internet of things based on a blockchain according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Fig. 1 is a flowchart of an ambient air detection data uplink method of the internet of things based on a block chain according to the present invention; as shown in fig. 1, the method comprises the following steps:
s11, the ambient air that the empty gas detection of block chain link point receipt empty gas detection of survey server sent detects the data, the ambient air detects the data and is gathered by empty gas detection ware, sends for empty gas detection of survey server through the thing networking, and the ambient air detects the data and includes: air quality index, sulfur dioxide concentration, nitrogen dioxide concentration, inhalable particulate concentration, ozone concentration, and carbon monoxide concentration;
and S12, carrying out identity verification on the air detection server by the block chain node, and if the identity verification passes, carrying out cochain on the environment air detection data by the block chain node after the common identification.
Specifically, the identity verification is to verify the ambient air detection data sent by the air detection server through a public key of the air detection server; the ambient air detection data is data signed with an air detection server private key.
Optionally, the air detector is placed in the detected environment, the air detector comprising: the device comprises a sulfur dioxide detector, a nitrogen dioxide detector, an inhalable particle detector, an ozone detector, a carbon monoxide detector and an air quality index calculator, wherein the sulfur dioxide detector, the nitrogen dioxide detector, the inhalable particle detector, the ozone detector, the carbon monoxide detector and the air quality index calculator are respectively used for detecting the sulfur dioxide concentration, the nitrogen dioxide concentration, the inhalable particle concentration, the ozone concentration and the carbon monoxide concentration and calculating the air quality index. The air detector detects ambient air, and sends ambient air detection data to the air detection server through the Internet of things. And the air detection server sends the ambient air detection data to the block chain nodes.
Further, each air detector can directly send detected ambient air detection data to the blockchain node through the internet of things. It can be understood that the connection of the air detection server to the blockchain node is more stable than the connection of each air detector to the blockchain node. Therefore, a mode of sending the ambient air detection data to the blockchain node through the air detection server may be taken as a preferable scheme.
Specifically, the block link point performs link up after the PBFT consensus on the ambient air detection data by using the PBFT fault-tolerant algorithm.
It should be noted that the blockchain is a distributed ledger, and may be a private chain, a public chain, or a federation chain.
Specifically, when the block chain nodes receive the ambient air detection data, a transaction including a hash of the ambient air detection data and the transaction information thereof can be constructed, and the constructed transaction is broadcasted to the block chain network, so that each node stores the transaction in its own block chain based on a consensus mechanism, thereby realizing multi-party evidence storage of the ambient air detection data. When the transaction only includes the hash of the ambient air detection data, since the hash of the ambient air detection data is already issued to the blockchain, if the ambient air detection data is tampered, the hash of the tampered ambient air detection data is inconsistent with the hash issued in the blockchain, and therefore, issuing the ambient air detection data to the blockchain is equivalent to multi-party crediting of the ambient air detection data. It should also be noted that when the transaction only includes a hash of the ambient air detection data, the blockchain attestation platform typically stores the ambient air detection data in a data store (non-blockchain), such as RAM.
It should be noted that the transaction described in this specification refers to a piece of data that is created by a user through a client of the blockchain and needs to be finally published to a distributed database of the blockchain. That is, there are narrow and broad categories of transactions in the blockchain. A narrowly defined transaction refers to a transfer of value issued by a user to a blockchain; for example, in a conventional bitcoin blockchain network, the transaction may be a transfer initiated by the user in the blockchain. The broad transaction refers to a piece of business data with business intention, which is issued to the blockchain by a user; for example, an operator may build a federation chain based on actual business requirements, and rely on the federation chain to deploy some other types of online businesses unrelated to value transfer, such as data uplink business, house renting business, vehicle scheduling business, insurance claim settlement business, and the like, in such federation chain, a transaction may be a business message or business request with business intent issued by a user in the federation chain.
In one possible embodiment, the block chain node receives the ambient air detection data, and the block chain node sends the query result of the ambient air data to the user according to the query request of the user.
In one possible embodiment, the block link point receives the ambient air detection data, and when the block link point determines that the user is in the environment, the block link point directly pushes the ambient air data to the user.
In one possible embodiment, the uplink of the ambient air sensing data by the block link point includes the following steps:
if the data volume of the ambient air detection data is larger than the storage threshold value of one block, dividing the ambient air detection data into a plurality of fragment data smaller than the storage threshold value by a block link point;
the block chain node stores a plurality of fragment data into a plurality of blocks of the block chain node respectively.
In one possible embodiment, the uplink of the ambient air sensing data by the block link point includes the following steps:
if the data volume of the ambient air detection data is larger than the storage threshold value of one block, dividing the ambient air detection data into a plurality of fragment data smaller than the storage threshold value by a block link point;
the block link point stores a first piece of fragment data in the plurality of pieces of fragment data to a current block link point;
and the block chain nodes randomly select other block chain nodes except the current block chain link point in a mode of verifying a random function VRF, and the other block chain link points store the data except the first piece of fragment data in the plurality of pieces of fragment data.
Alternatively, if the air detection server determines that the data size of the ambient air detection data to be sent is too large and is greater than the set data capacity threshold, the hash value of the ambient air detection data may be calculated, and the hash value is sent to the blockchain node for uplink. When a user inquires the ambient air detection data, whether the ambient air detection data stored on the air detection server is real or not can be verified through inquiring the hash value on the link point of the block and the corresponding relation between the hash value and the original ambient air detection data, whether the ambient air detection data is tampered or not is judged, and storage and authenticity inquiry of the ambient air detection data based on the air detection server and the block chain are achieved.
In one possible embodiment, the ambient air sensing data is structured data, and each attribute of the ambient air sensing data is linked, where the attribute of the ambient air sensing data includes: the environmental geographic location and the time of detection.
In one possible embodiment, the method further comprises the steps of:
the block chain node receives digital currency mortised by an air detection server, and allocates corresponding resources for the air detection server, wherein the resources are used for uplink of environmental air detection data sent by the air detection server; the resources include: network resources, CPU resources, and memory resources.
Specifically, in the above scheme, the uplink mode of the ambient air sensing data is to obtain the block chain resource used for uplink of the ambient air sensing data by mortgage of a certain digital currency, and pay the uplink fee of the ambient air sensing data at the block chain link point.
It is understood that the allocated blockchain resource may be a CPU, a network resource NET or a RAM. The method includes the steps that the ambient air detection data are sent to the block chain nodes in a mortgage mode, the uplink fee is not sent independently in each uplink, but block chain resources are consumed, and the uplink fee of the ambient air detection data at the block chain nodes can be paid only by obtaining the block chain resources through the mortgage.
Optionally, in the above scheme, the uplink mode of the ambient air detection data may be replaced by: the air detection server sends the environmental air detection data to the block chain node in a transfer mode so that the block chain node can execute a chain loading process, wherein the transfer information sent by the air detection server comprises: from address, to address, ambient air detection data, commission fees. Specifically, the from address is an address of the air detection server, the to address is an address of the blockchain node, and the commission is a cost of resources occupied by the uplink of the paid ambient air detection data.
Wherein the commission may be digital currency.
It can be understood that after the identity verification of the air detection server by the block link point is passed, resource fee check is also required before uplink is performed on the ambient air detection data. The resource fee means: the resource size required by the uplink of the received environment air detection data, and the resource fee check refers to judging whether the resource purchased by the air detection server is larger than the resource fee, if so, the resource fee check is passed, otherwise, the check is not passed.
Fig. 2 is an architecture diagram of an uplink device for detecting ambient air in an internet of things based on a blockchain according to the present invention, as shown in fig. 2, the device includes: a detection data receiving unit 21, a detection data uplink unit 22 and a resource allocation unit 23.
Detection data receiving element 21 for receive the ambient air detection data that aerial detection server sent, ambient air detection data is gathered by air detector, sends for aerial detection server through the thing networking, and ambient air detection data includes: air quality index, sulfur dioxide concentration, nitrogen dioxide concentration, inhalable particulate concentration, ozone concentration, and carbon monoxide concentration;
and a detection data uplink unit 22, configured to perform identity verification on the air detection server, and if the identity verification passes, the block link point performs uplink after performing common identification on the ambient air detection data.
In one possible embodiment, if the data amount of the ambient air detection data is greater than the storage threshold of one block, the detection data uplink unit 22 divides the ambient air detection data into a plurality of pieces of data smaller than the storage threshold; and respectively storing the plurality of fragment data into a plurality of blocks of the block chain node.
In one possible embodiment, if the data amount of the ambient air detection data is greater than the storage threshold of one block, the detection data uplink unit 22 divides the ambient air detection data into a plurality of pieces of data smaller than the storage threshold; storing a first piece of fragment data in the plurality of piece of fragment data to a current block link point; and randomly selecting other block chain nodes except the current block chain node point in a mode of verifying a random function VRF, and storing data except the first piece of fragment data in the plurality of pieces of fragment data by the other block chain nodes.
In one possible embodiment, the ambient air sensing data is structured data, and each attribute of the ambient air sensing data is linked, where the attribute of the ambient air sensing data includes: the environmental geographic location and the time of detection.
In a possible embodiment, the resource allocation unit 23 is configured to receive digital currency mortgaged by an air detection server, allocate corresponding resources to the air detection server, where the resources are used for uplink of ambient air detection data sent by the air detection server; the resources include: network resources, CPU resources, and memory resources.
The processing procedure related to each unit in fig. 2 can refer to the specific method embodiment shown in fig. 1, and is not described herein again.
Those of skill would further appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by a program, and the program may be stored in a computer-readable storage medium, which is a non-transitory (non-transitory) medium, such as a random access memory, a read only memory, a flash memory, a hard disk, a solid state disk, a magnetic tape (magnetic tape), a floppy disk (floppy disk), an optical disk (optical disk) and any combination thereof.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (10)

1. An environmental air detection data uplink method of an Internet of things based on a block chain is characterized by comprising the following steps:
the ambient air that the air detection server sent is received to district's chain node detects data, ambient air detects data and is gathered by air detector, sends for the air detection server through the thing networking, and ambient air detects data and includes: air quality index, sulfur dioxide concentration, nitrogen dioxide concentration, inhalable particulate concentration, ozone concentration, and carbon monoxide concentration;
and carrying out identity verification on the air detection server by the block link point, and if the identity verification is passed, carrying out cochain on the environment air detection data by the block link point after common identification.
2. The method of claim 1, wherein the block link point uplinks the ambient air detection data, comprising:
if the data volume of the ambient air detection data is larger than the storage threshold value of one block, dividing the ambient air detection data into a plurality of fragment data smaller than the storage threshold value by a block link point;
the block chain node stores a plurality of fragment data into a plurality of blocks of the block chain node respectively.
3. The method of claim 1, wherein the block link point uplinks the ambient air detection data, comprising:
if the data volume of the ambient air detection data is larger than the storage threshold value of one block, dividing the ambient air detection data into a plurality of fragment data smaller than the storage threshold value by a block link point;
the block link point stores a first piece of fragment data in the plurality of pieces of fragment data to a current block link point;
and the block chain nodes randomly select other block chain nodes except the current block chain link point in a mode of verifying a random function VRF, and the other block chain link points store the data except the first piece of fragment data in the plurality of pieces of fragment data.
4. The method of claim 1, wherein the ambient air sensing data is structured data, wherein each attribute of the ambient air sensing data is linked, and wherein the attributes of the ambient air sensing data comprise: the environmental geographic location and the time of detection.
5. The method of claim 1, further comprising the steps of:
the block chain node receives digital currency mortised by an air detection server, and allocates corresponding resources for the air detection server, wherein the resources are used for uplink of environmental air detection data sent by the air detection server; the resources include: network resources, CPU resources, and memory resources.
6. The utility model provides an environmental air of thing networking detects data cochain equipment based on block chain which characterized in that includes:
the detection data receiving unit is used for receiving the ambient air detection data sent by the air detection server, the ambient air detection data is collected by the air detector and is sent to the air detection server through the Internet of things, and the ambient air detection data comprises: air quality index, sulfur dioxide concentration, nitrogen dioxide concentration, inhalable particulate concentration, ozone concentration, and carbon monoxide concentration;
and the detection data uplink unit is used for carrying out identity verification on the air detection server, and if the identity verification passes, the block chain link point carries out uplink after the environmental air detection data is subjected to common identification.
7. The apparatus of claim 6, wherein if the amount of the ambient air detection data is greater than a storage threshold of one block, then a detection data uplink unit divides the ambient air detection data into a plurality of pieces of data smaller than the storage threshold; and respectively storing the plurality of fragment data into a plurality of blocks of the block chain node.
8. The apparatus of claim 6, wherein if the amount of the ambient air detection data is greater than a storage threshold of one block, then a detection data uplink unit divides the ambient air detection data into a plurality of pieces of data smaller than the storage threshold; storing a first piece of fragment data in the plurality of piece of fragment data to a current block link point; and randomly selecting other block chain nodes except the current block chain node point in a mode of verifying a random function VRF, and storing data except the first piece of fragment data in the plurality of pieces of fragment data by the other block chain nodes.
9. The apparatus of claim 6, further comprising:
the system comprises a resource allocation unit, a resource allocation unit and a resource allocation unit, wherein the resource allocation unit is used for receiving digital currency mortared by an air detection server and allocating corresponding resources for the air detection server, and the resources are used for uplink of environmental air detection data sent by the air detection server; the resources include: network resources, CPU resources, and memory resources.
10. A computer-readable storage medium, having a computer program stored thereon, which, when being executed by a processor, implements the uplink method for ambient air detection data of a blockchain-based internet of things according to any one of claims 1 to 5.
CN201910905038.6A 2019-09-24 2019-09-24 Block chain based ambient air detection data chaining method and equipment for Internet of things Pending CN110674219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910905038.6A CN110674219A (en) 2019-09-24 2019-09-24 Block chain based ambient air detection data chaining method and equipment for Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910905038.6A CN110674219A (en) 2019-09-24 2019-09-24 Block chain based ambient air detection data chaining method and equipment for Internet of things

Publications (1)

Publication Number Publication Date
CN110674219A true CN110674219A (en) 2020-01-10

Family

ID=69077479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910905038.6A Pending CN110674219A (en) 2019-09-24 2019-09-24 Block chain based ambient air detection data chaining method and equipment for Internet of things

Country Status (1)

Country Link
CN (1) CN110674219A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111754137A (en) * 2020-07-06 2020-10-09 广东科创工程技术有限公司 Environment-friendly evaluation method based on block chain technology

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111754137A (en) * 2020-07-06 2020-10-09 广东科创工程技术有限公司 Environment-friendly evaluation method based on block chain technology

Similar Documents

Publication Publication Date Title
US11050690B2 (en) Method for providing recording and verification service for data received and transmitted by messenger service, and server using method
CN110554616B (en) Intelligent home data chaining method and system of Internet of things on block chain
US8666894B1 (en) Systems and methods for remotely authenticating credit card transactions
CN105809062A (en) Contract construction and execution methods and apparatuses
CN110648534A (en) Traffic data chaining method and device of Internet of things based on block chain
CN110660466A (en) Personal health data chaining method and system of Internet of things by combining block chains
CN105719172A (en) Information issuing method and device
CN111222841B (en) Block chain-based data distribution method and equipment and storage medium thereof
CN110620777A (en) Smoke monitoring data uplink method and system of Internet of things on block chain
JP2023542681A (en) Integrating device identity into blockchain permission frameworks
CN111292174A (en) Tax payment information processing method and device and computer readable storage medium
CN105991596A (en) Access control method and system
CN114363352A (en) Block chain-based Internet of things system cross-chain interaction method
CN113111359A (en) Big data resource sharing method and resource sharing system based on information security
CN111612452A (en) Intellectual property management system and method based on block chain
CN114117264A (en) Illegal website identification method, device, equipment and storage medium based on block chain
CN111125729A (en) Block chain-based vehicle driving information processing method and device and storage medium
CN110633326A (en) Method and system for uplink of weather data of Internet of things on block chain
CN110619023A (en) Water source detection data chaining method and device of Internet of things by combining block chains
CN113037824B (en) Cloud computing-oriented high-performance block chain construction method
CN113505260A (en) Face recognition method and device, computer readable medium and electronic equipment
CN111680282B (en) Node management method, device, equipment and medium based on block chain network
CN110674219A (en) Block chain based ambient air detection data chaining method and equipment for Internet of things
CN110598479B (en) Data processing method, device and computer readable storage medium
CN110858211B (en) Data storage method, device and system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200110