Font Size: a A A

Research And Development Of Smart Home Data Monitoring System Based On Blockchain

Posted on:2023-01-12Degree:MasterType:Thesis
Country:ChinaCandidate:Z G HuFull Text:PDF
GTID:2568306791954649Subject:Optical engineering
Abstract/Summary:PDF Full Text Request
As one of the most popular applications of the Internet of Things,smart home realizes data collection and hardware control through the Internet of Things devices,and transmits data to users or servers through the network.However,due to the disadvantages of the traditional centralized networking of the Internet of Things,the security and privacy of the Internet of Things face great challenges.While blockchain technology as a distributed ledger,a decentralized,tamper-proof,traceability,in order to solve the traditional content of network data security and privacy problem provides a new way of thinking,and as the technology of Ethernet fang,chain block 2.0 provides a platform for application development based on the block chain and widen the application scenario.1.The smart contract deployed on the chain cannot be upgraded due to the imtamability of blockchain,and the size of the smart contract cannot exceed 24 K bytes due to the limitation of Ethereum Gaslimit.Therefore introduced a scalable smart contract model,the traditional smart contract into entry agreement,logic and storage contracts three subsets,mapping between contract,when the user invokes the contract does not directly call logic the address of the contract,but through the entrance you redirect to the logical contract agreement,logic contracts to complete the logic processing and the data in storage.When the system sends an upgrade transaction,the IP address of the logical contract stored in the storage contract is updated and the mapping between the contracts is updated after the contract authentication is complete.2.A data storage network composed of private blockchain,interplanetary file system and Mong DB is designed.According to the importance,type,storage frequency and redundancy of data,the proper storage mode is selected to avoid storing a large amount of common data on the blockchain and increase the storage pressure of the blockchain.3.Ethereum technology is used to realize a data monitoring system for smart home.The access control subsystem and environmental monitoring subsystem are the specific research objects,and various sensors are connected and controlled by Arduino.Raspberry Pi 4B is the bridge connecting hardware devices and Ethereum network.Using Go-Ethereum to build the Ethereum blockchain network,the corresponding algorithm logic of the system is realized through smart contract,and the software and hardware function modules of the system are realized under Truffle framework with the help of open source mixed encryption algorithm and digital signature.At the same time,considering the performance limitations of smart home devices and the real-time requirements of the system,comparative analysis is made on several mainstream consensus mechanisms.Finally,the consensus mechanism based on authoritative proof is comprehensively considered as the rule of accounting,interaction and consensus in blockchain.Through experimental test and analysis,the system designed in this paper has achieved the expected effect of each functional module,and compared with the traditional smart home system,it can not only ensure the security of personal data,but also does not affect the user experience,and can meet the needs of users.At the same time,the validity of the upgradeable smart contract is verified by remix test,which greatly improves the scalability of the system.
Keywords/Search Tags:Blockchain, Ethereum, smart home, upgradeable smart contracts
PDF Full Text Request
Related items