The rapid development of intelligent perception and wireless transmission technologies is accelerating the arrival of the era when everything can be connected by the internet.A large amount of data in Internet of Things application scenarios such as intelligent transportation,smart medical care,and smart agriculture has also been favored by related companies.Different organizations are eager to use big data,artificial intelligence and other data processing technologies to help companies so that they can achieve intelligent business mode and upgrade their company structure.However,most companies use a centralized cloud platform to store or share IoT data,the central database in this mode has to face the pressure of maintaining large amounts of data.Once the central server fails,data security will not be guaranteed.Besides,the cloud data sharing between different organizations lacks a unified specification of data storage and authentication,which makes data collaboration across organizations inconvenient.It’s time to find another storage solution to solve these problems.Blockchain has the inherent characteristics such as distributed storage architecture,collective maintenance of ledger data,detrust,data security encryption,and non-tamperability.It is suitable to use these abilities to store data between different organizational nodes,ensure data security,and achieve data sharing between organizations.Based on the in-depth study of the characteristics of blockchain technology,this paper designs and implements a system architecture of IoT data storage combined with Hyperledger Fabric consortium blockchain technology to solve the pain points of traditional IoT data storage and to build a web application based on frameworks such as Spring Boot and Vue.js data to provide service about data storage and data sharing for users with different identities under multiple IoT organizations.The main work of this thesis are as follows.:1.This thesis investigates the domestic and international IoT data storage research programs and status,and starts with analysing the security vulnerabilities in each link from data collection to sharing,analyses the business needs of IoT data storage in detail,and formulates a Fabric blockchain network based on the needs IoT data storage system architecture with the participation of different organizations.2.An intelligent IoT gateway that integrates blockchain nodes and IoT terminals is designed to solve the authenticity of the data source,and build a data acquisition and transmission network of sensing devices with limited capabilities based on the gateway.Aiming at the problem of limited user’s right to know and participate in traditional IoT data storage,the design establishes the connection and operation control between users and devices.In order to reduce the cost of trust and certification between different organizations,Fabric CA is adopted as the management organization of different user identity certificates to provide users with a safe and secure data sharing environment.3.In view of the high complexity and incomplete decentralization of the existing Fabric network consensus deployment,this thesis designs a distributed consensus node topology suitable for IoT scenarios based on analysis of system user requirements and application scenarios,which improves the fault tolerance of the system.4.This thesis designs and implements some specific functions of modules such as user account management,data storage,and interaction with the blockchain network.Based on the design concept of MVC and the development model of separation of front and back ends,the entire system is flexible and easy to maintain. |