Internet of Things data sharing method and system based on block chain
By detecting and analyzing IoT performance, obtaining and preprocessing data in real time, and conducting shared monitoring on the blockchain, the problem of IoT performance affecting data sharing efficiency is solved, and data quality and security are improved.
Patent Information
- Application Number
- CN202411693418.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2024-12-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing IoT data sharing methods are highly dependent on IoT performance, resulting in the impact of the efficiency and quality of data acquisition, transmission, processing and storage, and may cause transmission delay and data loss.
By detecting and analyzing the performance of IoT, obtaining and preprocessing the operating data of IoT devices in real time, connecting to the blockchain for data sharing, and performing security monitoring of the sharing process to determine whether early warning prompts are needed to ensure data transmission and storage consistency and security.
Timely discover and prevent performance bottlenecks, ensure the stable operation of the Internet of Things, improve data quality and availability, reduce security risks, and improve data sharing efficiency and credibility.
Smart Images

Figure CN119203255A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data sharing processing, and in particular to a blockchain-based Internet of Things data sharing method and system. Background Art
[0002] In the current digital age, the combination of the Internet of Things and blockchain technology provides new ideas and solutions for data sharing. Blockchain can provide decentralized and tamper-proof characteristics, while the Internet of Things can generate a large amount of real-time data. The combination of the two can achieve safe and efficient Internet of Things data sharing.
[0003] For example, the invention patent with announcement number CN117494221B announces a blockchain-assisted search method for IoT data sharing, which belongs to the field of information security technology. The technical problem to be solved is how to ensure the confidentiality, searchability and flexible access control of IoT data. The technical solution adopted is: S1. The trusted authority, attribute management agency, data owner and data user perform initialization operations: the trusted authority generates public parameters, each attribute management agency generates its own attribute management public key and attribute management private key, the data owner and data user generate their own public key and private key, and disclose the public parameters, attribute management public key, data owner and data user public key to the members of the blockchain-assisted search IoT data sharing system; S2. IoT data upload; S3. IoT data retrieval; S4. IoT data decryption.
[0004] For example, the invention patent with announcement number CN114357508B announced an IoT data sharing system and method based on oracle and blockchain, using blockchain and distributed oracle to build an IoT data sharing system, and design and implement an IoT key data sharing platform that works collaboratively on and off the chain. The method uses Ethereum as the basic platform, homomorphically encrypts the uploaded data, calls smart contracts, uses the decentralized oracle Chainlink as the middleware for data transmission on the chain, uses the web.js library to complete the call to the on-chain contract, and uses Paillier homomorphic encryption to encrypt IoT key data, thereby realizing the sharing of IoT key data.
[0005] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems: The existing IoT data sharing methods are highly dependent on the performance of the IoT. The performance of the IoT directly affects each link of data collection, transmission, processing and storage, and affects the efficiency and quality of data sharing. If the performance of the IoT is poor, it will lead to problems such as transmission delay and data loss during the sharing process, which will seriously affect the effect of data sharing. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides a blockchain-based Internet of Things data sharing method and system, which can effectively solve the problems involved in the above-mentioned background technology.
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: The first aspect of the present invention provides a blockchain-based Internet of Things data sharing method, including: S1. Internet of Things performance detection: Detect the performance of the Internet of Things to obtain Internet of Things performance data, and analyze the Internet of Things performance indicators to obtain Internet of Things performance indicators, and compare them with the Internet of Things performance indicator thresholds preset in the data sharing database. If the Internet of Things performance indicator is greater than or equal to the Internet of Things performance indicator threshold, enter S2. Conversely, if the Internet of Things performance indicator is less than the Internet of Things performance indicator threshold, an early warning prompt is issued for the performance of the Internet of Things; S2. Internet of Things data acquisition and processing: Connect each Internet of Things device to the Internet of Things, monitor the operation of each Internet of Things device, obtain the operation data of each Internet of Things device in real time, and perform preprocessing, and the operation of each Internet of Things device that has completed the preprocessing The data is recorded as the sharable data of each IoT device; S3. Blockchain data sharing: through the connection between blockchain and IoT, the sharable data of each IoT device is shared to the blockchain through IoT, and the sharable data of each IoT device after sharing is recorded as the shared data of each IoT device. At the same time, the IoT in the sharing process is monitored for shared security to obtain the IoT data sharing operation data, thereby comparing the shared data of each IoT device with the sharable data of each IoT device to obtain the shared data deviation value, and comprehensively analyzing the IoT data sharing operation data to obtain the blockchain IoT sharing security indicator; S4. Data sharing early warning prompt: compare the blockchain IoT sharing security indicator with the blockchain IoT sharing security indicator boundary value preset in the data sharing database, and finally determine whether to issue an early warning prompt for IoT data sharing.
[0008] As a further method, the specific analysis process of the IoT performance indicators is as follows: The total number of data packets received by the Internet of Things during the detection period is ratioed to the total number of data packets transmitted to obtain the data packet transmission completeness rate of the Internet of Things during the detection period.
[0009] The maximum data transmission rate, maximum throughput, maximum signal-to-noise ratio and packet transmission integrity rate of the Internet of Things during the detection period are comprehensively analyzed to obtain the performance indicators of the Internet of Things. The specific analysis method is as follows: ; In the formula, is the performance index of the Internet of Things, e is a natural constant, The highest data transmission rate of the Internet of Things during the detection cycle, The data transmission rate threshold preset for the data sharing database, is the maximum throughput of IoT during the detection cycle, The throughput limit value preset for the data sharing database, is the maximum signal-to-noise ratio of the Internet of Things during the detection cycle, The impact factor corresponding to the maximum signal-to-noise ratio unit value preset for the data sharing database, is the data packet transmission completeness rate of IoT during the detection cycle, The impact factor corresponding to the unit value of the data packet transmission completeness rate preset for the data sharing database.
[0010] As a further method, the performance of the Internet of Things is warned, and the specific warning can be a warning of the maximum data transmission rate of the Internet of Things during the detection period, or a warning of the data packet transmission integrity rate of the Internet of Things during the detection period.
[0011] As a further method, the operation of each IoT device is monitored, the operation data of each IoT device is obtained in real time, and preprocessed. The specific preprocessing process is: The operating data of each IoT device is converted into a unified format, and duplicate and missing data in the operating data of each IoT device is deleted, thereby completing the preprocessing of the operating data of each IoT device, and the operating data of each IoT device that has completed the preprocessing is recorded as the sharable data of each IoT device.
[0012] As a further method, the shared data of each IoT device is compared with the sharable data of each IoT device to obtain the shared data deviation value. The specific analysis process is as follows: The data shared by each IoT device specifically includes the average vibration amplitude, average energy consumption and average network delay duration shared by each IoT device.
[0013] Get the packet transmission completeness rate of shared data within the data sharing period.
[0014] The average vibration amplitude, average energy consumption, average network delay duration of each IoT device during the data sharing period, the average vibration amplitude, average energy consumption, average network delay duration shared by each IoT device, and the data packet transmission completeness rate of the shared data during the data sharing period are comprehensively analyzed to obtain the shared data deviation value.
[0015] As a further method, the blockchain IoT shares security indicators, and the specific analysis process is as follows: The IoT data sharing operation data specifically includes the amount of shared data of the IoT to which the data sharing belongs during the operation cycle, the capacity of the blockchain occupied by the shared data, and the maximum transmission rate of shared data.
[0016] The amount of shared data in the IoT to which data sharing belongs during the operation cycle, the capacity of the blockchain occupied by the shared data, the maximum shared data transmission rate, and the shared data deviation value are comprehensively analyzed to obtain the blockchain IoT sharing security index.
[0017] As a further method, the determination of whether to issue an early warning prompt for IoT data sharing is specifically carried out as follows: Compare the blockchain IoT shared security index with the blockchain IoT shared security index boundary value preset in the data sharing database. If the blockchain IoT shared security index is greater than or equal to the blockchain IoT shared security index boundary value preset in the data sharing database, there is no need to issue an early warning for IoT data sharing.
[0018] If the blockchain IoT sharing security index is lower than the blockchain IoT sharing security index limit value preset in the data sharing database, an early warning prompt will be issued for IoT data sharing.
[0019] The second aspect of the present invention provides an Internet of Things data sharing system based on blockchain, including: an Internet of Things performance detection module, which is used to detect the performance of the Internet of Things, obtain Internet of Things performance data, and analyze the Internet of Things performance indicators to compare with the Internet of Things performance indicator threshold preset in the data sharing database. If the Internet of Things performance indicator is greater than or equal to the Internet of Things performance indicator threshold, then enter the Internet of Things data acquisition and processing module; conversely, if the Internet of Things performance indicator is less than the Internet of Things performance indicator threshold, then the performance of the Internet of Things is warned; the Internet of Things data acquisition and processing module is used to connect each Internet of Things device to the Internet of Things, monitor the operation of each Internet of Things device, obtain the operation data of each Internet of Things device in real time, and perform preprocessing, and record the operation data of each Internet of Things device after the preprocessing as each Internet of Things device. The shared data of each IoT device can be shared by the IoT devices; the blockchain data sharing module is used to share the shared data of each IoT device to the blockchain through the IoT through the connection between the blockchain and the IoT, and the shared data of each IoT device can be recorded as the shared data of each IoT device, and at the same time, the shared security of the IoT in the sharing process is monitored to obtain the shared operation data of the IoT, thereby comparing the shared data of each IoT device with the shared data of each IoT device to obtain the shared data deviation value, and comprehensively analyzing the shared operation data of the IoT to obtain the blockchain IoT shared security index; the data sharing early warning prompt module is used to compare the blockchain IoT shared security index with the blockchain IoT shared security index boundary value preset in the data sharing database, and finally determine whether to issue an early warning prompt for the IoT data sharing.
[0020] Compared with the prior art, the embodiments of the present invention have at least the following advantages or beneficial effects: (1) By detecting and analyzing the performance of the Internet of Things, the present invention can timely discover and prevent possible performance bottlenecks. When the performance of the Internet of Things is abnormal, an early warning prompt can be issued in time, thereby ensuring that the Internet of Things can operate stably and providing a good Internet of Things foundation for subsequent Internet of Things data acquisition and blockchain data sharing, ensuring that the poor performance of the Internet of Things will not lead to problems such as shared data transmission delays and data loss, thereby affecting the effect of data sharing; (2) The present invention monitors the operation of each IoT device, obtains the operation data of each IoT device in real time, and performs preprocessing to remove redundant data, correct erroneous data, and extract valuable data, thereby improving the quality and availability of data and providing strong support for subsequent data sharing and utilization; (3) The present invention will share the sharable data of each IoT device to the blockchain through the connection between the blockchain and the IoT, and record it as the shared data of each IoT device. By comparing the shared data of each IoT device with the sharable data of each IoT device, the consistency of the data during the transmission and storage sharing process can be ensured, thereby improving the security and credibility of data sharing. (4) The present invention can timely discover abnormal behaviors or potential security threats by performing shared security monitoring on the Internet of Things during the sharing process, so as to take preventive measures in advance to ensure the security of Internet of Things data sharing, conduct a comprehensive analysis with the shared data deviation value, obtain the blockchain Internet of Things shared security index, and compare it with the preset blockchain Internet of Things shared security index boundary value, and finally issue an early warning prompt for Internet of Things data sharing, which can timely discover and prevent potential security risks, and help reduce security risks in the process of Internet of Things data sharing. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The present invention is further described with the aid of the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other accompanying drawings based on the following accompanying drawings without creative work. Figure 1 It is a schematic diagram of the method steps of the present invention; Figure 2 It is a schematic diagram of system module connection of the present invention. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0023] Reference Figure 1 As shown, the first aspect of the present invention provides a blockchain-based Internet of Things data sharing method, including: S1. Internet of Things performance detection: detecting the performance of the Internet of Things to obtain Internet of Things performance data, and analyzing the Internet of Things performance indicators to obtain the Internet of Things performance indicators, and comparing them with the Internet of Things performance indicator threshold preset in the data sharing database. If the Internet of Things performance indicator is greater than or equal to the Internet of Things performance indicator threshold, enter S2. Conversely, if the Internet of Things performance indicator is less than the Internet of Things performance indicator threshold, an early warning prompt is given for the performance of the Internet of Things.
[0024] In a specific embodiment, the Internet of Things is a network that can connect any object to the Internet through information sensing devices in accordance with agreed protocols, such as HTTP / REST (Hypertext Transfer Protocol / Representational State Transfer) protocol, MQTT (Message Queue Telemetry Transport), etc., to exchange and communicate information to achieve intelligent identification, positioning, tracking, monitoring and management. The Internet of Things includes technologies such as Ethernet, serial communication and USB. These networks are usually used in scenarios that require high stability and low latency, such as industrial automation and networking of medical equipment. It also includes Wi-Fi, Bluetooth, ZigBee, NFC (Near Field Communication), RFID (radio frequency identification) and various mobile communication technologies (such as GSM (Global Communication), 3G, 4G, 5G, eMTC (Internet of Things technology based on LTE evolution), Lora (low-power wide area network), NB-IoT (cellular narrowband Internet of Things), etc.). Wireless networks are suitable for a wide range of scenarios, from personal consumer electronics to various applications in smart cities. In actual applications, Internet of Things systems often adopt a mixture of wired and wireless technologies to adapt to different application scenarios and needs. For example, a smart home system may use Wi-Fi to connect smart bulbs, and use ZigBee to connect door locks and sensors.
[0025] S2. IoT data acquisition and processing: Connect each IoT device to the IoT, monitor the operation of each IoT device, obtain the operation data of each IoT device in real time, and perform preprocessing. The operation data of each IoT device that has completed the preprocessing is recorded as the sharable data of each IoT device.
[0026] In a specific embodiment, the IoT devices include but are not limited to smart door locks, smart cameras, smart robots, and smart sensors. These devices are interconnected through IoT technology and together build a large and complex IoT system.
[0027] S3. Blockchain data sharing: Through the connection between blockchain and the Internet of Things, the sharable data of each IoT device is shared to the blockchain through the Internet of Things, and the sharable data of each IoT device after sharing is recorded as the shared data of each IoT device. At the same time, the IoT in the sharing process is monitored for shared security to obtain the IoT data sharing operation data. The shared data of each IoT device is compared with the sharable data of each IoT device to obtain the shared data deviation value, and the IoT data sharing operation data is analyzed comprehensively to obtain the blockchain IoT sharing security index.
[0028] It needs to be explained that the above-mentioned blockchain is a distributed database technology. It can package data into "blocks" through encryption algorithms, and connect these blocks in chronological order to form a chain, namely "blockchain". Each block contains a certain number of transaction records or data information, and is closely related to the previous block. Therefore, any attempt to tamper with a single block will affect the entire chain, thereby ensuring the security and non-tamperability of the data. At the same time, blockchain technology, with its decentralized, distributed ledger and encrypted communication characteristics, provides strong protection for IoT data. The data is encrypted and stored on the blockchain, and only authorized users can access it, thereby effectively preventing data leakage and tampering. The data on the blockchain is traceable and can clearly show the source and change process of the data, which helps to improve the credibility of data sharing and provide a trust basis for data sharing.
[0029] S4. Data sharing warning prompt: Compare the blockchain IoT sharing security index with the blockchain IoT sharing security index boundary value preset in the data sharing database, and finally determine whether to issue a warning prompt for IoT data sharing.
[0030] Specifically, the IoT performance data includes the maximum data transmission rate, maximum throughput, maximum signal-to-noise ratio, total number of data packets transmitted, and total number of data packets received during the detection period of the IoT.
[0031] It should be explained that the maximum data transmission rate of the above-mentioned Internet of Things during the detection period is obtained by using professional network testing tools, such as a network speed meter, to measure the data transmission speed of the Internet of Things network, thereby obtaining the maximum data transmission rate of the Internet of Things during the detection period, and the maximum throughput can be obtained by monitoring the operating status and log information of the Internet of Things. The maximum signal-to-noise ratio is obtained by using a spectrum analyzer to measure the signal power and noise power in the Internet of Things communication process, and dividing the signal power by the noise power, and the result is the signal-to-noise ratio. The total number of data packets transmitted and the total number of data packets received can be obtained through the Internet of Things data transmission-related logs recorded by the Internet of Things server. By analyzing the contents of these log files, the total number of data packets transmitted and the total number of data packets received can be obtained. In this embodiment, the above-mentioned detection period is a time period randomly arranged for performance testing of the Internet of Things.
[0032] In a specific embodiment, the maximum data transmission rate is one of the key factors affecting the maximum throughput. When the data transmission rate is high, the system can process more data per unit time, thereby improving the maximum throughput. The maximum signal-to-noise ratio directly affects the quality of data transmission. The higher the signal-to-noise ratio, the stronger the anti-interference ability of data transmission, the closer the total number of data packets received is to the total number of packets transmitted, and the lower the data loss and error rate. Therefore, the performance of the Internet of Things is a comprehensive reflection, and the various parameters are interrelated and influence each other. For example, increasing the maximum data transmission rate may help increase the maximum throughput, but it may also lead to an increase in the data packet loss rate.
[0033] Specifically, the specific analysis process of the IoT performance indicators is as follows: The total number of data packets received by the Internet of Things during the detection period is ratioed to the total number of data packets transmitted to obtain the data packet transmission completeness rate of the Internet of Things during the detection period.
[0034] It should be explained that the above-mentioned data packet transmission completeness rate of the Internet of Things during the detection period is obtained by dividing the total number of data packets received by the Internet of Things during the detection period by the total number of data packets transmitted.
[0035] The maximum data transmission rate, maximum throughput, maximum signal-to-noise ratio and packet transmission integrity rate of the Internet of Things during the detection period are comprehensively analyzed to obtain the performance indicators of the Internet of Things. The specific analysis method is as follows: ; In the formula, is the IoT performance indicator, e is a natural constant; The maximum data transmission rate of the IoT during the detection cycle refers to the maximum speed at which IoT devices can transmit data during a specific detection cycle; The data transmission rate threshold preset for a data sharing database refers to a minimum standard of data transmission rate set in advance to ensure efficient and stable data transmission in the shared database; The maximum throughput of the Internet of Things during the detection cycle refers to the maximum amount of data that the Internet of Things can process or transmit during the detection cycle; The throughput limit value preset for the data sharing database refers to a minimum data throughput value set in advance to ensure that the data sharing database can maintain efficient and stable performance when processing data requests; The maximum signal-to-noise ratio of the Internet of Things during the detection period refers to the maximum value of the ratio of the received useful signal strength to the interference signal (noise) strength during the data communication process of the Internet of Things during the detection period; The influence factor corresponding to the maximum signal-to-noise ratio unit value preset in the data sharing database can be directly obtained from the data sharing database. The corresponding relationship can be a preset mapping relationship. For example, a mapping set is formed according to the historical maximum signal-to-noise ratio and the influence factor corresponding to the maximum signal-to-noise ratio unit value, and the real-time maximum signal-to-noise ratio is input into the mapping set to obtain the influence factor corresponding to the maximum signal-to-noise ratio unit value. The mapping relationship can be one-to-one or many-to-one. At the same time, in this example, the value range is [0, 1]; The data packet transmission completeness rate of the Internet of Things during the detection period, which refers to the ratio of the total number of data packets received by the Internet of Things during the detection period to the total number of data packets transmitted; The impact factor corresponding to the unit value of the data packet transmission completeness rate preset in the data sharing database can be directly obtained from the data sharing database. The corresponding relationship can be a preset mapping relationship. For example, a mapping set is formed according to the historical data packet transmission completeness rate and the impact factor corresponding to the unit value of the data packet transmission completeness rate, and the real-time data packet transmission completeness rate is input into the mapping set to obtain the impact factor corresponding to the unit value of the data packet transmission completeness rate. The mapping relationship can be one-to-one or many-to-one. At the same time, in this example, its value range is [0, 1].
[0036] It should be explained that the above-mentioned preset data transmission rate limit value is a minimum standard value set for the data transmission rate to ensure that the Internet of Things can meet basic real-time and efficiency requirements; the preset throughput limit value is a benchmark for measuring system performance, which is used to determine whether the Internet of Things system can meet the predetermined processing capacity requirements. In this embodiment, the operating efficiency of the Internet of Things can be evaluated by comparing the maximum data transmission rate of the Internet of Things during the detection period with the preset data transmission rate limit value and comparing the maximum throughput of the Internet of Things during the detection period with the preset throughput limit value.
[0037] In this embodiment, if the maximum data transmission rate is lower than the preset data transmission rate limit value, the reduction in data transmission rate will lead to an extension of the data transmission time from the source to the destination, that is, an increase in response delay. In the Internet of Things application, there are high requirements for the real-time performance of data transmission. The increase in response delay will seriously affect the efficiency of data transmission sharing. At the same time, the data transmission rate is one of the key factors determining the system throughput. When the transmission rate is lower than the preset value, the amount of data that can be processed per unit time is reduced, resulting in the maximum throughput of the Internet of Things during the detection period being lower than the throughput limit value, thereby affecting the data exchange and sharing efficiency of the Internet of Things and affecting the performance of the entire Internet of Things system; the maximum signal-to-noise ratio of the Internet of Things during the detection period is low, which means that the signal The increase in the proportion of noise in the signal leads to a decrease in signal quality, which in turn causes inaccurate collected data and affects subsequent data sharing; the data packet transmission integrity rate of the Internet of Things during the detection cycle is low, which means that during the transmission process, some data packets may not successfully reach the receiving end, or the arriving data packets are damaged or missing, which will cause the data collected by the Internet of Things system to be incomplete or inaccurate. The inaccuracy of the data may lead to incorrect judgments and affect the overall performance and reliability of the Internet of Things system. Therefore, through a detailed analysis of the parameters in the Internet of Things performance indicators, the bottlenecks and problems in the Internet of Things system can be accurately identified, which helps operation and maintenance personnel to quickly locate and solve performance problems of the Internet of Things, thereby optimizing the performance of the Internet of Things system.
[0038] It needs to be explained that the performance of the Internet of Things is affected by multiple factors, including but not limited to data transmission rate, signal-to-noise ratio, packet transmission completeness rate, etc. Monitoring any one parameter alone can only provide limited information. Therefore, comprehensive evaluation can provide a more comprehensive perspective, and there may be interactions or dependencies between these performance indicators. For example, a reduction in data transmission rate may affect throughput, and a reduction in throughput is related to packet transmission completeness rate. Comprehensive evaluation can better understand the mutual influence between these parameters. At the same time, the Internet of Things is usually very complex, involving multiple technologies and components. The abnormality of a single parameter may not be sufficient to reveal the performance status of the entire Internet of Things. Comprehensive evaluation helps to grasp the overall performance of the Internet of Things from a macro perspective. Although monitoring and early warning of individual data is necessary, it may lead to false alarms or omissions. Comprehensive evaluation can improve the accuracy and reliability of early warnings by considering multiple factors.
[0039] Furthermore, the early warning prompt for the performance of the Internet of Things may be an early warning prompt for the maximum data transmission rate of the Internet of Things during the detection period, or an early warning prompt for the data packet transmission completeness rate of the Internet of Things during the detection period.
[0040] In this embodiment, if the IoT performance index is greater than or equal to the IoT performance index threshold, it means that the current performance of the IoT has reached the preset standard or requirement, and may even exceed expectations, and is in a good operating state. Therefore, there is no need to issue an early warning prompt for the performance of the IoT. However, even if the IoT performance reaches the preset standard, it is still necessary to continuously monitor the system performance to ensure that the system can operate stably in the long term. If the IoT performance index is less than the IoT performance index threshold, it means that the current performance of the IoT does not meet the preset standard, and performance may have declined. Therefore, it is necessary to issue an early warning prompt for the performance of the IoT. The specific early warning method can be achieved by directly displaying the early warning information on the performance monitoring page of the main interface of the IoT monitoring system. For example, eye-catching red text can be used for early warning prompts, such as "The current maximum data transmission rate is lower than the data transmission rate limit value. Please ask the operation and maintenance personnel to troubleshoot and locate the problem." It can also be "The current data packet transmission integrity rate is low. Please ask the operation and maintenance personnel to troubleshoot and locate the problem."
[0041] It needs to be explained that the above-mentioned early warning prompts on the performance of the Internet of Things are to test the performance data of the Internet of Things again when the performance index of the Internet of Things is less than the performance index threshold of the Internet of Things. For example, the maximum data transmission rate is tested and compared with the data transmission rate limit value preset in the preset data sharing database. Finally, relevant early warning prompts are given on the performance of the Internet of Things based on the detected performance data of the Internet of Things.
[0042] Specifically, the blockchain-based IoT data sharing method is characterized in that: the operation of each IoT device is monitored, the operation data of each IoT device is obtained in real time, and preprocessed. The specific preprocessing process is: The operating data of each IoT device is converted into a unified format, and duplicate and missing data in the operating data of each IoT device is deleted, thereby completing the preprocessing of the operating data of each IoT device, and the operating data of each IoT device that has completed the preprocessing is recorded as the sharable data of each IoT device.
[0043] In this embodiment, the operating data of each IoT device can be converted into a unified format through an ETL tool (a tool specifically used for data extraction, conversion, and loading), which is convenient for subsequent data processing and analysis, and can reduce errors and complexity caused by inconsistent data formats. The data cleaning technology is used to delete duplicate and missing data in the operating data of each IoT device. Duplicate data not only wastes storage space, but also affects the accuracy of data analysis. Missing data may cause deviations in data analysis results, so appropriate processing is required, such as filling missing values or deleting records containing missing values. Through data cleaning and format unification, the quality and accuracy of the data can be significantly improved. Accurate data is the basis for subsequent data analysis and decision-making. The operating data of each IoT device that has completed preprocessing can be recorded as shareable data to facilitate data sharing between different devices.
[0044] Specifically, the IoT devices may share data, including an average vibration amplitude, an average energy consumption, and an average network delay duration of each IoT device during a data sharing period.
[0045] It should be explained that the average vibration amplitude of the above-mentioned IoT devices during the data sharing period is obtained by installing a vibration sensor on the IoT device. The vibration sensor can monitor the vibration of the device in real time, convert the vibration data into an electrical signal for transmission, and average the collected vibration data to obtain the average vibration amplitude during the data sharing period; the average energy consumption is obtained through the energy consumption monitoring module on the IoT device. The energy consumption monitoring module can monitor the energy consumption of the IoT device in real time, including parameters such as current and voltage, and calculate the instantaneous energy consumption of the IoT device based on these parameters, and calculate the instantaneous energy consumption during the data sharing period. Accumulate and average to get the average energy consumption; the acquisition of the average network delay duration needs to rely on network monitoring tools and technologies. When transmitting data, IoT devices will pass through certain network paths and nodes. Network monitoring tools can monitor the delays of these paths and nodes in real time, and calculate the total delay time of the data from the sender to the receiver. In order to obtain the average network delay duration, the delay times of multiple transmissions are accumulated and averaged within the data sharing period to obtain the average network delay duration. In this embodiment, the above-mentioned data sharing period is to share the sharable data and complete the entire time period involved in data sharing.
[0046] In this embodiment, the vibration amplitude of the IoT device will affect its energy consumption level. For example, an IoT device with a larger vibration amplitude may require more energy to maintain its stable operation. There is a certain correlation between the energy consumption level of the device and the network delay. For example, a device with higher energy consumption may cause a decrease in network transmission speed due to hardware performance limitations or improper power management strategies, thereby increasing network delay.
[0047] Furthermore, the shared data of each IoT device is compared with the sharable data of each IoT device to obtain the shared data deviation value. The specific analysis process is as follows: The data shared by each IoT device specifically includes the average vibration amplitude, average energy consumption and average network delay duration shared by each IoT device.
[0048] Get the packet transmission completeness rate of shared data within the data sharing period.
[0049] In this embodiment, the above-mentioned shared data of each IoT device is shared in the blockchain through the sharable data of each IoT device in the IoT, so the average vibration amplitude, average energy consumption and average network delay duration shared by each IoT device are directly obtained from the blockchain, and the data packet transmission completion rate of the shared data within the data sharing period is recorded by each IoT device on the IoT server during the data sharing period. The log related to data sharing transmission through IoT data is recorded. By screening and summarizing the contents of these log files, the total number of data packet transmissions and the total number of data packet receptions can be obtained, and the total number of data packet receptions is divided by the total number of data packet transmissions, thereby obtaining the data packet transmission completion rate of the shared data within the data sharing period.
[0050] The average vibration amplitude, average energy consumption, average network delay duration of each IoT device during the data sharing period, the average vibration amplitude, average energy consumption, average network delay duration shared by each IoT device, and the complete rate of data packet transmission of shared data during the data sharing period are comprehensively analyzed to obtain the shared data deviation value. The specific analysis method is as follows: ; In the formula, is the shared data deviation value, is the ID of each IoT device. , is the total number of IoT devices, e is a natural constant; is the average vibration amplitude shared by the i-th IoT device, which refers to the average vibration amplitude value after the average vibration amplitude is shared; is the average vibration amplitude of the ith IoT device during the data sharing period, which refers to the average value of all vibration amplitude data recorded by the ith IoT device during the data sharing period; The shared average vibration amplitude deviation limit value preset for the data sharing database refers to a maximum allowable deviation value set for the average vibration amplitude in order to ensure the accuracy and reliability of the data during the data sharing process; The average energy consumption shared by the i-th IoT device refers to the average energy consumption value after the average energy consumption is shared; is the average energy consumption of the ith IoT device during the data sharing period, which refers to the average value of all energy consumption data recorded by the ith IoT device during the data sharing period; The shared average energy consumption deviation limit value preset for the data sharing database refers to a maximum allowable deviation value set for the average energy consumption in order to ensure the accuracy and reliability of the data during the data sharing process; The average duration of network delay shared by the i-th IoT device refers to the value of the average duration of network delay after the average duration of network delay is shared; is the average network delay duration of the ith IoT device in the data sharing period, which refers to the average value of all network delay duration data recorded by the ith IoT device in the data sharing period; The deviation limit value of the average duration of shared network delay preset in the data sharing database refers to a maximum allowable deviation value set for the average duration of network delay in order to ensure the accuracy and reliability of data during the data sharing process; The completeness rate of data packet transmission of shared data within the data sharing cycle refers to the ratio between the number of complete data packets successfully shared and confirmed received by the Internet of Things within the data sharing cycle and the total number of shared data packets sent within the cycle; The impact factor corresponding to the data packet transmission completeness rate of the shared data within the data sharing period is preset for the data sharing database as the unit value of the maximum shared data transmission rate. The impact factor corresponding to the data packet transmission completeness rate of the shared data within the data sharing period can be directly obtained from the data sharing database, and the corresponding relationship can be a preset mapping relationship. For example, a mapping set is formed based on the historical data packet transmission completeness rate and the impact factor corresponding to the data packet transmission completeness rate of the shared data within the data sharing period, and the real-time data packet transmission completeness rate is input into the mapping set to obtain the impact factor corresponding to the data packet transmission completeness rate of the shared data within the data sharing period. The mapping relationship can be one-to-one or many-to-one. At the same time, in this example, its value range is [0, 1].
[0051] In this embodiment, when the deviation value between the shared average vibration amplitude and the average vibration amplitude is higher than the shared average vibration amplitude deviation limit value, it indicates that there are more outliers or errors in the shared average vibration amplitude data; when the deviation value between the shared average energy consumption and the average energy consumption is higher than the shared average energy consumption deviation limit value, it indicates that there are more outliers or errors in the shared average energy consumption data; when the deviation value between the shared average network delay duration and the average network delay duration is higher than the shared average network delay duration deviation limit value, it indicates that there are more outliers or errors in the shared average network delay duration data; these shared data errors will lead to a decline in the overall quality of data sharing and reduce the security of IoT data sharing. If the data packet transmission integrity rate of the shared data within the data sharing period is low, it means that data loss occurs during the sharing process, and the shared receiving end will not be able to obtain complete shared data information, resulting in incomplete received shared data. Therefore, by analyzing the various parameters of the shared data deviation value, the consistency of the data during the transmission and storage sharing process can be ensured, thereby improving the security and credibility of data sharing.
[0052] In this embodiment, by comparing the data before and after sharing, the changes in the data during the transmission and sharing process can be intuitively evaluated, and the anomalies of the shared data can be discovered in time. The data packet transmission completeness rate is an important indicator for measuring the reliability of data transmission. It reflects whether the data packet reaches the receiving end completely and accurately during the transmission process. The shared data is combined with the data packet transmission completeness rate for comprehensive analysis to ensure the consistency of the data during the transmission and storage process, avoid errors caused by data loss, comprehensively evaluate data quality, ensure data consistency, improve data sharing security, and avoid the one-sidedness and error accumulation problems caused by using a single shared data to judge data sharing deviations.
[0053] It needs to be explained that the above-mentioned data packet transmission completeness rate of shared data in the data sharing cycle and the data packet transmission completeness rate of the Internet of Things in the detection cycle are both indicators to measure whether the data packet reaches the receiving end completely during the transmission process. The higher the data packet transmission completeness rate, the higher the reliability of data transmission. In the Internet of Things, whether it is data sharing or daily detection, the data packet transmission completeness rate is a key factor to ensure the normal operation of the system and data accuracy. A low data packet transmission completeness rate may lead to data loss, errors or instability of the Internet of Things; the data packet transmission completeness rate of the Internet of Things in the detection cycle is mainly used in the daily detection and maintenance scenarios of the Internet of Things system. In this scenario, the system needs to regularly detect the integrity of the data packet transmission to detect potential network failures or data loss problems, and pay more attention to the stability and reliability of the network system, as well as potential problems in the data packet transmission process. The data packet transmission completeness rate of shared data in the data sharing cycle The transmission completeness rate is mainly used in the data sharing scenario of the Internet of Things. In this scenario, data needs to be transmitted and shared between different devices to ensure the accuracy and consistency of the data. More attention is paid to the integrity and accuracy of the data during the sharing process to ensure that the data sharing receiver can obtain complete and accurate data information. In the data sharing scenario, ensuring the complete transmission of the data packet is the basis for ensuring data accuracy. Only complete data packets can provide accurate information and avoid decision-making errors caused by data loss or errors. In the detection scenario, the data packet transmission completeness rate is also an important indicator for measuring the stability and reliability of the Internet of Things. By detecting the integrity of the data packet transmission, potential network failures or data loss problems can be discovered and handled in a timely manner. Therefore, the data packet transmission completeness rate plays an important role in both data sharing and detection scenarios of the Internet of Things. By monitoring and analyzing this parameter, the accuracy of the data can be ensured and the stability and reliability of the system can be improved.
[0054] Specifically, the blockchain IoT shared security indicators, the specific analysis process is as follows: The IoT data sharing operation data specifically includes the amount of shared data of the IoT to which the data sharing belongs during the operation cycle, the capacity of the blockchain occupied by the shared data, and the maximum transmission rate of shared data.
[0055] It should be explained that the amount of shared data of the Internet of Things to which the above-mentioned data sharing belongs during its operation cycle can be obtained by querying the detailed operation logs generated by the Internet of Things during its operation cycle, and filtering and counting the operation logs through log analysis tools (for example, data analysis and log management platforms); in the process of Internet of Things data sharing, each data will generate a unique identifier and be recorded on the blockchain. The capacity of the blockchain occupied by the shared data can be obtained by counting the number of data identifiers on the blockchain and the space occupied by each identifier; the maximum rate of shared data transmission can be obtained by monitoring network traffic. When the network condition is good and the node performance is stable, multiple monitorings are carried out, and the average value is taken as the final result, thereby obtaining the maximum rate of shared data transmission.
[0056] In this embodiment, the maximum data transmission rate of the above-mentioned Internet of Things during the detection period refers to the maximum data transmission speed that the Internet of Things device or network can achieve in a normal, non-sharing environment, which is used to evaluate the overall performance of the Internet of Things and is a basic indicator for measuring whether the Internet of Things device can meet the needs of subsequent data sharing scenarios. The maximum data transmission rate is obtained in the detection phase before data sharing; the maximum shared data transmission rate of the Internet of Things to which data sharing belongs during the operation period refers to the maximum data transmission speed that the Internet of Things network can achieve during the data sharing process, which is used to evaluate the security of data sharing. The maximum shared data transmission rate of the Internet of Things to which data sharing belongs during the operation period is measured during the data sharing process, which reflects the impact of the data transmission rate on the security of data sharing. Whether it is Internet of Things performance evaluation or data sharing security evaluation, data Transmission speed is a key performance parameter that directly affects the response speed of the Internet of Things, the real-time performance of data processing, and the overall user experience. By comparing the data transmission speeds before and after data sharing, the impact of the Internet of Things performance on data sharing can be evaluated, which helps to optimize the data sharing strategy. The relationship between the maximum data transmission rate of the Internet of Things during the detection cycle and the maximum shared data transmission rate of the Internet of Things to which data sharing belongs during the operation cycle is complex. The maximum data transmission rate of the Internet of Things during the detection cycle is the performance benchmark of the maximum shared data transmission rate of the Internet of Things to which data sharing belongs during the operation cycle, while the maximum shared data transmission rate of the Internet of Things to which data sharing belongs during the operation cycle reflects the performance and security of the network during the actual sharing process. Analyzing the difference between the two can help optimize the performance of the Internet of Things and the security of data sharing.
[0057] The amount of shared data in the IoT to which data sharing belongs during the operation cycle, the capacity of the blockchain occupied by the shared data, the maximum shared data transmission rate, and the shared data deviation value are comprehensively analyzed to obtain the blockchain IoT sharing security index.
[0058] In this embodiment, there is a close relationship between the number of IoT shared data to which the data sharing in the above-mentioned IoT data sharing operation data belongs, the capacity of the blockchain occupied by the shared data, and the maximum rate of shared data transmission. The increase in the number of shared data will lead to a corresponding increase in the capacity of the blockchain occupied by the shared data. When the amount of data increases to a certain extent, the network may cause the transmission rate to drop due to overload. The capacity of the blockchain occupied by the shared data directly affects the transmission rate. Larger data blocks require longer time to process and transmit, thereby reducing the overall transmission rate. At the same time, the shared data deviation value reflects the errors or abnormalities that may occur during the transmission and processing of the data. If the data deviation value is large, it means that there are more errors or abnormal data in the data sharing, which will seriously affect the performance and reliability of data sharing. By comprehensively analyzing the relationship between the shared data deviation value and other parameters, the data quality and processing capability of the system can be more accurately evaluated, and potential problems and risks can be discovered in a timely manner.
[0059] The specific analysis method for obtaining the shared security index of the blockchain Internet of Things is as follows: ; In the formula, Shared security indicators for blockchain IoT, is the shared data deviation value; The amount of shared data within the operation cycle of the Internet of Things to which data is shared refers to the total amount of data shared by the Internet of Things to which data is shared; The reference number of shared data preset for the data sharing database refers to the target number of data sharing preset in order to ensure the effective operation of data sharing and the efficient use of data; The capacity of the blockchain occupied by the shared data of the Internet of Things to which data sharing belongs during the operation cycle refers to the total storage space occupied by all data shared through the Internet of Things to which data sharing belongs; The reference capacity of the blockchain occupied by the shared data preset for the data sharing database refers to the capacity of the blockchain occupied by the shared data preset to ensure the effective operation of data sharing and the efficient use of data; The weight factor corresponding to the shared data deviation value preset in the data sharing database can be directly obtained from the data sharing database. The corresponding relationship can be a preset mapping relationship. For example, a mapping set is formed according to the historical shared data deviation value and the weight factor corresponding to the shared data deviation value, and the real-time shared data deviation value is input into the mapping set to obtain the weight factor corresponding to the shared data deviation value. The mapping relationship can be one-to-one or many-to-one. At the same time, in this example, the value range is [0, 1]; The maximum rate of shared data transmission within the operation cycle of the Internet of Things to which data sharing belongs, which refers to the maximum speed at which the Internet of Things to which data sharing belongs can transmit data; The impact factor corresponding to the unit value of the shared data transmission maximum rate preset for the data sharing database can be directly obtained from the data sharing database, and the corresponding relationship can be a preset mapping relationship. For example, a mapping set is formed based on the historical shared data transmission maximum rate and the impact factor corresponding to the unit value of the shared data transmission maximum rate, and the real-time shared data transmission maximum rate is input into the mapping set to obtain the impact factor corresponding to the unit value of the shared data transmission maximum rate. The mapping relationship can be one-to-one or many-to-one. At the same time, in this example, its value range is [0, 1].
[0060] In this embodiment, when the amount of shared data within the operating cycle is higher than the reference amount of shared data, as the amount of shared data increases, the capacity of the blockchain occupied by the shared data will also increase accordingly, which will cause the storage capacity of the blockchain to be quickly exhausted, making it impossible to continue to store new transaction records, which will seriously affect the operating ability and scalability of data sharing, and may cause data sharing to crash or be unable to share normally. When the amount of shared data increases, it is often necessary to increase the network transmission rate because more data needs to be processed and transmitted. However, when the amount of data increases to a certain extent, the network may cause the transmission rate to decrease due to overload, which will increase the data transmission delay and affect the real-time nature of data sharing. At the same time, as the amount of shared data increases, the data deviation value may increase accordingly, because in the transmission and processing of large amounts of data, errors or abnormalities are more likely to occur, which will cause the data quality of the system to decline and affect the accuracy and reliability of the system. Therefore, through a detailed analysis of the various parameters in the blockchain Internet of Things sharing security indicators, the security of data sharing can be improved and the management of data sharing can be optimized.
[0061] Specifically, the process of determining whether to issue an early warning for IoT data sharing is as follows: Compare the blockchain IoT shared security index with the blockchain IoT shared security index boundary value preset in the data sharing database. If the blockchain IoT shared security index is greater than or equal to the blockchain IoT shared security index boundary value preset in the data sharing database, there is no need to issue an early warning for IoT data sharing.
[0062] It needs to be explained that when the above-mentioned blockchain IoT shared security index is greater than or equal to the blockchain IoT shared security index limit value preset in the data sharing database, the blockchain IoT system has reached the preset security standards in terms of data security, network communication, etc. The data has not been illegally tampered with or destroyed during the sharing, storage and processing process, thereby ensuring the credibility of the data. Therefore, there is no need for early warning prompts for IoT data sharing.
[0063] If the blockchain IoT sharing security index is lower than the blockchain IoT sharing security index limit value preset in the data sharing database, an early warning prompt will be issued for IoT data sharing.
[0064] In a specific embodiment, when the blockchain Internet of Things sharing security index is less than the blockchain Internet of Things sharing security index limit value preset in the data sharing database, the blockchain Internet of Things system fails to meet the preset security standards in terms of data security sharing, network communication, etc., which means that data sharing is at risk of being illegally tampered with or destroyed during transmission, storage and processing, which will lead to a decrease in the credibility of the data, and thus affect the effectiveness and accuracy of data sharing. Therefore, an early warning prompt is needed for Internet of Things data sharing. The specific early warning prompt is: on the monitoring interface of the blockchain Internet of Things system, eye-catching color text is directly used to display the early warning information. For example, eye-catching red text can be used for early warning prompts. The specific early warning prompt content can be "Warning! The data security sharing indicator is abnormal, and there is a risk of data sharing errors. Please check immediately and take appropriate measures!", or it can be "Warning! The shared data deviation value is large, and there is a risk of data sharing errors. Please check immediately and take appropriate measures!".
[0065] It needs to be explained that the above-mentioned early warning prompts for IoT data sharing are to monitor the data sharing of the IoT to which the data sharing belongs again when the blockchain IoT sharing security index is less than the blockchain IoT sharing security index limit value preset in the data sharing database, such as monitoring the shared data deviation value, and finally issue relevant early warning prompts based on the data sharing situation of the IoT to which the data sharing belongs obtained through monitoring.
[0066] Reference Figure 2As shown, the second aspect of the present invention provides an Internet of Things data sharing system based on blockchain, including: an Internet of Things performance detection module, an Internet of Things data acquisition and processing module, a blockchain data sharing module, a data sharing early warning prompt module and a data sharing database.
[0067] The Internet of Things performance detection module is connected to the Internet of Things data acquisition and processing module, the Internet of Things data acquisition and processing module is connected to the blockchain data sharing module, the blockchain data sharing module is connected to the data sharing early warning prompt module, and the Internet of Things performance detection module, the blockchain data sharing module and the data sharing early warning prompt module are all connected to the data sharing database.
[0068] The Internet of Things performance detection module is used to detect the performance of the Internet of Things, obtain Internet of Things performance data, and analyze the Internet of Things performance indicators to compare with the Internet of Things performance indicator threshold preset in the data sharing database. If the Internet of Things performance indicator is greater than or equal to the Internet of Things performance indicator threshold, the Internet of Things data acquisition and processing module is entered. Conversely, if the Internet of Things performance indicator is less than the Internet of Things performance indicator threshold, an early warning prompt is issued for the performance of the Internet of Things.
[0069] The IoT data acquisition and processing module is used to connect each IoT device to the IoT, monitor the operation of each IoT device, acquire the operation data of each IoT device in real time, and perform preprocessing, and record the preprocessed operation data of each IoT device as the sharable data of each IoT device.
[0070] The blockchain data sharing module is used to share the sharable data of each IoT device to the blockchain through the connection between the blockchain and the IoT, and record the sharable data of each IoT device after sharing as the shared data of each IoT device. At the same time, the IoT in the sharing process is monitored for shared security to obtain IoT data sharing operation data, thereby comparing the shared data of each IoT device with the sharable data of each IoT device to obtain the shared data deviation value, and comprehensively analyze the IoT data sharing operation data to obtain the blockchain IoT sharing security index.
[0071] The data sharing early warning prompt module is used to compare the blockchain Internet of Things sharing security index with the blockchain Internet of Things sharing security index boundary value preset in the data sharing database, and finally determine whether to issue an early warning prompt for the Internet of Things data sharing.
[0072] The data sharing database is used to store preset IoT performance indicator thresholds, preset blockchain IoT shared security indicator boundary values, preset data transmission rate boundary values, preset throughput boundary values, impact factors corresponding to preset maximum signal-to-noise ratio unit values, impact factors corresponding to preset data packet transmission integrity rate unit values, preset shared average vibration amplitude deviation boundary values, preset shared average energy consumption deviation boundary values, preset shared network delay average duration deviation boundary values, preset shared data reference quantity, preset reference capacity of blockchain occupied by shared data, preset weight factors corresponding to shared data deviation values, and impact factors corresponding to preset shared data transmission maximum rate unit values.
[0073] The above contents are merely examples and explanations of the structure of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the structure of the invention or exceed the scope defined in this specification, they should all fall within the protection scope of the present invention.
Claims
1. A blockchain-based IoT data sharing method, characterized in that: include: S1. IoT performance detection: Detect the performance of IoT, obtain IoT performance data, analyze and obtain IoT performance indicators, and compare them with the IoT performance indicator threshold preset in the data sharing database. If the IoT performance indicator is greater than or equal to the IoT performance indicator threshold, enter S2. Otherwise, if the IoT performance indicator is less than the IoT performance indicator threshold, issue an early warning for the performance of IoT. S2. IoT data acquisition and processing: connect each IoT device to the IoT, monitor the operation of each IoT device, obtain the operation data of each IoT device in real time, perform preprocessing, and record the preprocessed operation data of each IoT device as the sharable data of each IoT device; S3. Blockchain data sharing: Through the connection between blockchain and IoT, the sharable data of each IoT device is shared to the blockchain through IoT, and the sharable data of each IoT device after sharing is recorded as the shared data of each IoT device. At the same time, the IoT in the sharing process is monitored for shared security to obtain IoT data sharing operation data, thereby comparing the shared data of each IoT device with the sharable data of each IoT device to obtain the shared data deviation value, and comprehensively analyzing the IoT data sharing operation data to obtain the blockchain IoT sharing security index; S4. Data sharing warning prompt: Compare the blockchain IoT sharing security index with the blockchain IoT sharing security index boundary value preset in the data sharing database, and finally determine whether to issue a warning prompt for IoT data sharing.
2. According to the blockchain-based IoT data sharing method of claim 1, it is characterized by: The IoT performance data specifically includes the maximum data transmission rate, maximum throughput, maximum signal-to-noise ratio, total number of data packets transmitted, and total number of data packets received of the IoT during the detection period.
3. According to claim 2, a blockchain-based IoT data sharing method is characterized by: The specific analysis process of the IoT performance indicators is as follows: The total number of data packets received by the Internet of Things during the detection period is processed by ratio with the total number of data packets transmitted, so as to obtain the completeness rate of data packet transmission of the Internet of Things during the detection period; The maximum data transmission rate, maximum throughput, maximum signal-to-noise ratio and packet transmission integrity rate of the Internet of Things during the detection period are comprehensively analyzed to obtain the performance indicators of the Internet of Things. The specific analysis method is as follows: ; In the formula, is the performance index of the Internet of Things, e is a natural constant, The highest data transmission rate of the Internet of Things during the detection cycle, The data transmission rate threshold preset for the data sharing database, is the maximum throughput of IoT during the detection cycle, The throughput limit value preset for the data sharing database, is the maximum signal-to-noise ratio of the Internet of Things during the detection cycle, The impact factor corresponding to the maximum signal-to-noise ratio unit value preset for the data sharing database, is the data packet transmission completeness rate of IoT during the detection cycle, The impact factor corresponding to the unit value of the data packet transmission completeness rate preset for the data sharing database.
4. According to claim 3, a blockchain-based IoT data sharing method is characterized in that: The early warning prompt for the performance of the Internet of Things may specifically be an early warning prompt for the maximum data transmission rate of the Internet of Things during the detection period, or an early warning prompt for the data packet transmission completeness rate of the Internet of Things during the detection period.
5. According to the blockchain-based IoT data sharing method of claim 1, it is characterized by: The operation of each IoT device is monitored, the operation data of each IoT device is obtained in real time, and preprocessed. The specific preprocessing process is: The operating data of each IoT device is converted into a unified format, and duplicate and missing data in the operating data of each IoT device is deleted, thereby completing the preprocessing of the operating data of each IoT device, and the operating data of each IoT device that has completed the preprocessing is recorded as the sharable data of each IoT device.
6. According to the blockchain-based IoT data sharing method of claim 1, it is characterized by: The IoT devices may share data, specifically including the average vibration amplitude, average energy consumption, and average network delay duration of the IoT devices during a data sharing period.
7. According to claim 6, a blockchain-based IoT data sharing method is characterized by: The shared data of each IoT device is compared with the sharable data of each IoT device to obtain the shared data deviation value. The specific analysis process is as follows: The shared data of each IoT device specifically includes the average vibration amplitude, average energy consumption and average network delay duration shared by each IoT device; Obtaining the completeness rate of data packet transmission of shared data within a data sharing cycle; The average vibration amplitude, average energy consumption, average network delay duration of each IoT device during the data sharing period, the average vibration amplitude, average energy consumption, average network delay duration shared by each IoT device, and the data packet transmission completeness rate of the shared data during the data sharing period are comprehensively analyzed to obtain the shared data deviation value.
8. According to the blockchain-based IoT data sharing method of claim 1, it is characterized by: The specific analysis process of the blockchain IoT shared security indicators is as follows: The IoT data sharing operation data specifically includes the amount of shared data of the IoT to which the data sharing belongs during the operation cycle, the capacity of the blockchain occupied by the shared data, and the maximum rate of shared data transmission; The amount of shared data in the IoT to which data sharing belongs during the operation cycle, the capacity of the blockchain occupied by the shared data, the maximum shared data transmission rate, and the shared data deviation value are comprehensively analyzed to obtain the blockchain IoT sharing security index.
9. According to the blockchain-based IoT data sharing method of claim 1, it is characterized by: The specific judgment process of determining whether to issue an early warning prompt for IoT data sharing is as follows: Compare the blockchain IoT shared security index with the blockchain IoT shared security index definition value preset in the data sharing database. If the blockchain IoT shared security index is greater than or equal to the blockchain IoT shared security index definition value preset in the data sharing database, there is no need to issue an early warning for IoT data sharing. If the blockchain IoT sharing security index is lower than the blockchain IoT sharing security index limit value preset in the data sharing database, an early warning prompt will be issued for IoT data sharing.
10. A system using a blockchain-based IoT data sharing method as described in any one of claims 1 to 9, characterized in that: include: The IoT performance detection module is used to detect the performance of the IoT, obtain IoT performance data, and analyze the IoT performance index to compare it with the IoT performance index threshold preset in the data sharing database. If the IoT performance index is greater than or equal to the IoT performance index threshold, the IoT data acquisition and processing module is entered. On the contrary, if the IoT performance index is less than the IoT performance index threshold, an early warning prompt is issued for the performance of the IoT. The IoT data acquisition and processing module is used to connect each IoT device to the IoT, monitor the operation of each IoT device, obtain the operation data of each IoT device in real time, perform preprocessing, and record the preprocessed operation data of each IoT device as the sharable data of each IoT device; The blockchain data sharing module is used to share the sharable data of each IoT device to the blockchain through the IoT through the connection between the blockchain and the IoT, and record the sharable data of each IoT device after sharing as the shared data of each IoT device, and at the same time perform shared security monitoring on the IoT during the sharing process to obtain IoT data sharing operation data, thereby comparing the shared data of each IoT device with the sharable data of each IoT device to obtain the shared data deviation value, and comprehensively analyze the IoT data sharing operation data to obtain the blockchain IoT sharing security index; The data sharing early warning prompt module is used to compare the blockchain IoT sharing security indicators with the blockchain IoT sharing security indicator boundary values preset in the data sharing database, and ultimately determine whether to issue an early warning prompt for IoT data sharing.
