CN110647769A - Indoor air detection data chaining method and equipment of Internet of things by combining block chains - Google Patents

Indoor air detection data chaining method and equipment of Internet of things by combining block chains Download PDF

Info

Publication number
CN110647769A
CN110647769A CN201910905712.0A CN201910905712A CN110647769A CN 110647769 A CN110647769 A CN 110647769A CN 201910905712 A CN201910905712 A CN 201910905712A CN 110647769 A CN110647769 A CN 110647769A
Authority
CN
China
Prior art keywords
air detection
data
block chain
detection data
indoor air
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
CN201910905712.0A
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 CN201910905712.0A priority Critical patent/CN110647769A/en
Publication of CN110647769A publication Critical patent/CN110647769A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • 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/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting 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/6227Protecting 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 where protection concerns the structure of data, e.g. records, types, queries
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Abstract

The invention discloses an indoor air detection data chaining method and equipment of an Internet of things combined with a block chain, belonging to the technical field of combination of the Internet of things and the block chain, and comprising the following steps: indoor empty gas detection survey data that the empty gas detection survey server of block chain node receipt sent, indoor empty gas detection survey data is gathered by air detector, sends for empty gas detection survey server through the thing networking, and indoor empty gas detection survey data includes: oxygen concentration and formaldehyde concentration; and carrying out identity verification on the air detection server by the block chain node, and if the identity verification is passed, carrying out cochain on the indoor air detection data by the block chain node after common identification. According to the method and the device, the indoor air detection data are sent to the block chain nodes based on the Internet of things and are uplinked, the combination of the Internet of things and the block chain technology is realized, and due to the non-tampering characteristic and the common recognition mechanism of the block chain nodes, the possibility that the indoor air detection data are tampered or lost is avoided.

Description

Indoor air detection data chaining method and equipment of Internet of things by combining block chains
Technical Field
The invention relates to the technical crossing field of the Internet of things and block chain information, in particular to an indoor air detection data uplink method and equipment of the Internet of things by combining 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. Currently, indoor air may be seriously polluted after indoor decoration due to unqualified materials, such as the indoor formaldehyde exceeds the standard. In addition, if the indoor ventilation is not in place, the indoor oxygen concentration may be insufficient, which is not beneficial to the health or normal life of indoor personnel, and therefore, the indoor air environment needs to be detected.
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 indoor air detection data after combining the blockchain technology with the internet of things further improve user experience, which becomes a challenge of the future technologies.
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 link indoor air detection data of the Internet of things.
In order to achieve the above object, in a first aspect, the present invention provides an indoor air detection data uplink method for an internet of things in combination with a block chain, including the following steps:
indoor empty gas detection survey data that the empty gas detection survey server of block chain node receipt sent, indoor empty gas detection survey data is gathered by air detector, sends for empty gas detection survey server through the thing networking, and indoor empty gas detection survey data includes: oxygen concentration and formaldehyde concentration;
and carrying out identity verification on the air detection server by the block chain node, and if the identity verification is passed, carrying out cochain on the indoor air detection data by the block chain node after common identification.
Specifically, the identity verification is to verify the indoor air detection data sent by the air detection server through a public key of the air detection server; the indoor air detection data is data signed with an air detection server private key.
Optionally, the air detector is placed in the detected room, and the air detector includes: and the formaldehyde detector and the oxygen concentration detector are respectively used for detecting the formaldehyde concentration and the oxygen concentration. And sending the indoor air detection data to an air detection server through the Internet of things. And then the air detection server sends the indoor air detection data to the block chain nodes.
Further, the air detector can directly send detected indoor air detection data to the block chain nodes 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 indoor air detection data to the blockchain node through the air detection server may be a preferable scheme.
Specifically, the block link point performs link up after the PBFT consensus on the indoor 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 indoor air detection data, a transaction including a hash of the indoor air detection data and 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, and thus, multi-party evidence storage of the indoor air detection data is realized. When the transaction only includes the hash of the indoor air detection data, since the hash of the indoor air detection data is already issued to the blockchain, if the indoor air detection data is tampered, the hash of the tampered indoor air detection data is inconsistent with the hash issued in the blockchain, and therefore, issuing the indoor air detection data to the blockchain is equivalent to multi-party verification of the indoor air detection data. It should be noted that when the transaction only includes the hash of the indoor air detection data, the blockchain certification platform typically stores the indoor air detection data in a data warehouse (non-blockchain), such as a 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 indoor air detection data, and sends the query result of the indoor air data to the user according to the query request of the user.
In one possible embodiment, the block link point receives the indoor air detection data, and when the block link point determines that the user is in the room, the block link point directly pushes the indoor air data to the user.
In one possible embodiment, the block link point uplink the indoor air detection data, which includes the following steps:
if the data volume of the indoor air detection data is larger than the storage threshold value of one block, dividing the indoor air detection data into a plurality of fragment data smaller than the storage threshold value by a block chain node;
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 block link point uplink the indoor air detection data, which includes the following steps:
if the data volume of the indoor air detection data is larger than the storage threshold value of one block, dividing the indoor air detection data into a plurality of fragment data smaller than the storage threshold value by a block chain node;
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 amount of the indoor air detection data to be sent is too large and is greater than the set data capacity threshold, the hash value of the indoor air detection data may be calculated, and the hash value is sent to the blockchain node for uplink. When a user inquires the indoor air detection data, whether the indoor 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 indoor air detection data, whether the indoor air detection data is tampered or not is judged, and the indoor air detection data storage and authenticity supervision based on the air detection server and the block chain are achieved.
In one possible embodiment, the indoor air detection data is structured data, and each attribute of the indoor air detection data is linked, where the attribute of the indoor air detection data includes: indoor address and detection time.
In one possible embodiment, the method further comprises the steps of:
the method comprises the steps that a 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 indoor 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 indoor air detection data is to obtain the block chain resource used for uplink of the indoor air detection data by mortgage of certain digital currency, and pay the uplink fee of the indoor air detection 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 indoor air detection data is sent to the block chain nodes in a mortgage mode, the uplink fee is not sent independently during each uplink, but block chain resources are consumed, and the uplink fee of the indoor 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 indoor air detection data may be replaced by: the aerial detection server sends indoor aerial detection data to the block chain node in a transfer mode so that the block chain node can execute a chain loading process, wherein transfer information sent by the aerial detection server comprises: from address, to address, room air detection data, commission charge. 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 uplink of the paid indoor air detection data.
Wherein the commission may be digital currency.
It can be understood that after the air detection server passes the authentication of the block link point, the resource fee check is also needed before the indoor air detection data is uplink. The resource fee means: and the resource size required by the uplink of the received indoor air detection data, wherein 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 indoor air detection data uplink device of an internet of things in combination with a blockchain, including:
the detection data receiving unit is used for receiving indoor air detection data sent by the air detection server, the indoor air detection data are collected by the air detector and are sent to the air detection server through the Internet of things, and the indoor air detection data comprise: oxygen concentration and formaldehyde 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 common identification on the indoor air detection data.
In one possible embodiment, if the data amount of the indoor air detection data is greater than the storage threshold of one block, the detection data uplink unit divides the indoor 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 indoor air detection data is greater than the storage threshold of one block, the detection data uplink unit divides the indoor 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 indoor air detection data is structured data, and each attribute of the indoor air detection data is linked, where the attribute of the indoor air detection data includes: indoor address and detection time.
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 indoor 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 above-mentioned method for detecting uplink of indoor air in conjunction with block chain internet of things.
Generally, compared with the prior art, the above technical solution conceived by the present invention has the following beneficial effects:
the invention provides an indoor air detection data chaining method and equipment of an Internet of things combined with a block chain.
The invention provides an indoor air detection data uplink method and equipment of an Internet of things combined with a block chain.
The invention provides an indoor air detection data chaining method and equipment of the Internet of things in combination with a block chain.
The invention provides an indoor air detection data chaining method and equipment of an Internet of things in combination with a block chain.
The invention provides an indoor air detection data chaining method and equipment of the Internet of things in combination with a block chain, which realize the partitioned storage of indoor air detection data occupying larger resources by utilizing the distributed storage characteristics of the block chain nodes. When the fragmented storage of indoor 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 indoor air detection data are stored in different block chain nodes in a slicing mode, all the slicing data can be stored at the same time, and the chaining speed of the indoor air detection data is increased.
The invention provides an indoor air detection data chaining method and equipment of the Internet of things in combination with 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 indoor air detection data uplink method of the internet of things in combination with a block chain according to the present invention;
fig. 2 is an architecture diagram of an indoor air detection data uplink device of the internet of things incorporating 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 indoor air detection data uplink method of the internet of things in combination with a block chain according to the present invention; as shown in fig. 1, the method comprises the following steps:
s101, the indoor air detection data that air detection server sent is received to block chain link point, indoor air detection data is gathered by air detector, sends for air detection server through the thing networking, and indoor air detection data includes: oxygen concentration and formaldehyde concentration;
and S102, carrying out identity verification on the air detection server by the block link point, and if the identity verification passes, carrying out cochain on the indoor air detection data by the block link point after the common identification.
Specifically, the identity verification is to verify the indoor air detection data sent by the air detection server through a public key of the air detection server; the indoor air detection data is data signed with an air detection server private key.
Optionally, the air detector is placed in the detected room, and the air detector includes: and the formaldehyde detector and the oxygen concentration detector are respectively used for detecting the formaldehyde concentration and the oxygen concentration. And sending the indoor air detection data to an air detection server through the Internet of things. And then the air detection server sends the indoor air detection data to the block chain nodes.
Further, the air detector can directly send detected indoor air detection data to the block chain nodes 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 indoor air detection data to the blockchain node through the air detection server may be a preferable scheme.
Specifically, the block link point performs link up after the PBFT consensus on the indoor 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 indoor air detection data, a transaction including a hash of the indoor air detection data and 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, and thus, multi-party evidence storage of the indoor air detection data is realized. When the transaction only includes the hash of the indoor air detection data, since the hash of the indoor air detection data is already issued to the blockchain, if the indoor air detection data is tampered, the hash of the tampered indoor air detection data is inconsistent with the hash issued in the blockchain, and therefore, issuing the indoor air detection data to the blockchain is equivalent to multi-party verification of the indoor air detection data. It should be noted that when the transaction only includes the hash of the indoor air detection data, the blockchain certification platform typically stores the indoor air detection data in a data warehouse (non-blockchain), such as a 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 indoor air detection data, and sends the query result of the indoor air data to the user according to the query request of the user.
In one possible embodiment, the block link point receives the indoor air detection data, and when the block link point judges that the user is indoors, the block link point directly pushes the indoor air data to the user.
In one possible embodiment, the block link point uplink the indoor air detection data, which includes the following steps:
if the data volume of the indoor air detection data is larger than the storage threshold value of one block, dividing the indoor air detection data into a plurality of fragment data smaller than the storage threshold value by a block chain node;
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 block link point uplink the indoor air detection data, which includes the following steps:
if the data volume of the indoor air detection data is larger than the storage threshold value of one block, dividing the indoor air detection data into a plurality of fragment data smaller than the storage threshold value by a block chain node;
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 amount of the indoor air detection data to be sent is too large and is greater than the set data capacity threshold, the hash value of the indoor air detection data may be calculated, and the hash value is sent to the blockchain node for uplink. When a user inquires the indoor air detection data, whether the indoor 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 indoor air detection data, whether the indoor air detection data is tampered or not is judged, and the indoor air detection data storage and authenticity supervision based on the air detection server and the block chain are achieved.
In one possible embodiment, the indoor air detection data is structured data, and each attribute of the indoor air detection data is linked, where the attribute of the indoor air detection data includes: indoor address and detection time.
In one possible embodiment, the method further comprises the steps of:
the method comprises the steps that a 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 indoor 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 indoor air detection data is to obtain the block chain resource used for uplink of the indoor air detection data by mortgage of certain digital currency, and pay the uplink fee of the indoor air detection 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 indoor air detection data is sent to the block chain nodes in a mortgage mode, the uplink fee is not sent independently during each uplink, but block chain resources are consumed, and the uplink fee of the indoor 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 indoor air detection data may be replaced by: the aerial detection server sends indoor aerial detection data to the block chain node in a transfer mode so that the block chain node can execute a chain loading process, wherein transfer information sent by the aerial detection server comprises: from address, to address, room air detection data, commission charge. 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 uplink of the paid indoor air detection data.
Wherein the commission may be digital currency.
It can be understood that after the air detection server passes the authentication of the block link point, the resource fee check is also needed before the indoor air detection data is uplink. The resource fee means: and the resource size required by the uplink of the received indoor air detection data, wherein 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 indoor air detection data uplink device of an internet of things incorporating a blockchain according to the present invention, as shown in fig. 2, the device includes: a detected data receiving unit 201, a detected data uplink unit 202 and a resource allocation unit 203.
Detection data receiving element 201 for receive the indoor empty gas detection who empty gas detection surveys the server and sends and detect data, indoor empty gas detection surveys data and is gathered by empty gas detection surveys the ware, sends for empty gas detection surveys the server through the thing networking, and indoor empty gas detection surveys data and includes: oxygen concentration and formaldehyde concentration;
a detected data uplink unit 202, 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 indoor air detection data.
In one possible embodiment, if the data amount of the indoor air detection data is greater than the storage threshold of one block, the detection data uplink unit 202 divides the indoor 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 indoor air detection data is greater than the storage threshold of one block, the detection data uplink unit 202 divides the indoor 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 indoor air detection data is structured data, and each attribute of the indoor air detection data is linked, where the attribute of the indoor air detection data includes: indoor address and detection time.
In a possible embodiment, the resource allocation unit 203 is configured to receive digital currency mortgaged by an air detection server, allocate corresponding resources for indoor air detection data uplink sent by the air detection server to 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 indoor air detection data uplink method of an Internet of things combined with a block chain is characterized by comprising the following steps:
indoor empty gas detection survey data that the empty gas detection survey server of block chain node receipt sent, indoor empty gas detection survey data is gathered by air detector, sends for empty gas detection survey server through the thing networking, and indoor empty gas detection survey data includes: oxygen concentration and formaldehyde concentration;
and carrying out identity verification on the air detection server by the block chain node, and if the identity verification is passed, carrying out cochain on the indoor air detection data by the block chain node after common identification.
2. The method of claim 1, wherein the block link point uplinks the indoor air detection data, comprising:
if the data volume of the indoor air detection data is larger than the storage threshold value of one block, dividing the indoor air detection data into a plurality of fragment data smaller than the storage threshold value by a block chain node;
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 indoor air detection data, comprising:
if the data volume of the indoor air detection data is larger than the storage threshold value of one block, dividing the indoor air detection data into a plurality of fragment data smaller than the storage threshold value by a block chain node;
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 room air detection data is structured data, wherein each attribute of the room air detection data is linked, and wherein the attributes of the room air detection data comprise: indoor address and detection time.
5. The method of claim 1, further comprising the steps of:
the method comprises the steps that a 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 indoor air detection data sent by the air detection server; the resources include: network resources, CPU resources, and memory resources.
6. The utility model provides a combine indoor empty gas detection of thing networking of block chain to detect data cochain equipment which characterized in that includes:
the detection data receiving unit is used for receiving indoor air detection data sent by the air detection server, the indoor air detection data are collected by the air detector and are sent to the air detection server through the Internet of things, and the indoor air detection data comprise: oxygen concentration and formaldehyde 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 common identification on the indoor air detection data.
7. The apparatus of claim 6, wherein if the amount of the room air detection data is greater than a storage threshold of one block, the detection data uplink unit divides the room 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 room air detection data is greater than a storage threshold of one block, the detection data uplink unit divides the room 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 indoor 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 indoor air detection data method of the internet of things in conjunction with a blockchain as set forth in any one of claims 1 to 5.
CN201910905712.0A 2019-09-24 2019-09-24 Indoor air detection data chaining method and equipment of Internet of things by combining block chains Pending CN110647769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910905712.0A CN110647769A (en) 2019-09-24 2019-09-24 Indoor air detection data chaining method and equipment of Internet of things by combining block chains

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910905712.0A CN110647769A (en) 2019-09-24 2019-09-24 Indoor air detection data chaining method and equipment of Internet of things by combining block chains

Publications (1)

Publication Number Publication Date
CN110647769A true CN110647769A (en) 2020-01-03

Family

ID=68992530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910905712.0A Pending CN110647769A (en) 2019-09-24 2019-09-24 Indoor air detection data chaining method and equipment of Internet of things by combining block chains

Country Status (1)

Country Link
CN (1) CN110647769A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113141388A (en) * 2020-12-16 2021-07-20 国网河北省电力有限公司建设公司 Engineering detection management method based on block chain technology

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113141388A (en) * 2020-12-16 2021-07-20 国网河北省电力有限公司建设公司 Engineering detection management method based on block chain technology
CN113141388B (en) * 2020-12-16 2022-08-02 国网河北省电力有限公司建设公司 Engineering detection management method based on block chain technology

Similar Documents

Publication Publication Date Title
CN110554616B (en) Intelligent home data chaining method and system of Internet of things on block chain
CN110648534A (en) Traffic data chaining method and device of Internet of things based on block chain
CN105809062A (en) Contract construction and execution methods and apparatuses
CN110660466A (en) Personal health data chaining method and system of Internet of things by combining block chains
CN110620777A (en) Smoke monitoring data uplink method and system of Internet of things on block chain
CN109005220B (en) Service implementation method of Internet of things terminal and Internet of things access gateway
CN109544982B (en) Parking information sharing method and system
CN111614761B (en) Block chain message transmission method, device, computer and readable storage medium
CN113256297B (en) Data processing method, device and equipment based on block chain and readable storage medium
CN114363352B (en) Cross-chain interaction method of Internet of things system based on block chain
CN111292174A (en) Tax payment information processing method and device and computer readable storage medium
CN105991596A (en) Access control method and system
CN114117264A (en) Illegal website identification method, device, equipment and storage medium based on block chain
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
CN103428260A (en) System and method for allocating server to terminal and efficiently delivering messages to the terminal
CN111680282B (en) Node management method, device, equipment and medium based on block chain network
CN110647769A (en) Indoor air detection data chaining method and equipment of Internet of things by combining block chains
CN111709857B (en) House resource sharing method and device and electronic equipment
CN113037824A (en) High-performance block chain architecture method for cloud computing
CN110674219A (en) Block chain based ambient air detection data chaining method and equipment for Internet of things
CN116806038A (en) Decentralizing computer data sharing method and device
CN110677403A (en) Sound detection data chaining method and device of Internet of things applying block chains
CN110858211B (en) Data storage method, device and system and storage medium
CN112688899A (en) In-cloud security threat detection method and device, computing equipment 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: 20200103