Blockchain-based internet of things data processing method, system, device and medium
By using blockchain technology to encrypt and verify data between IoT platforms and application terminals, the security and authenticity issues in IoT data transmission are solved, and trusted data transmission and verification are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2026-04-07
AI Technical Summary
In existing IoT data collection methods, after terminal data is reported to the IoT platform, there are issues with data security and authenticity verification, leading to unreliable data sharing.
Blockchain technology is used to encrypt the data collected by terminal devices and verify it through data credential identification to ensure the reliable transmission of data between the IoT platform and application terminals.
It enables the verification of the credibility of data collected by terminal devices and data received by application terminals, improving the security and consistency of data transmission and reducing the risk of network loss and human tampering.
Smart Images

Figure CN116055142B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet of Things (IoT) technology, and in particular to a blockchain-based IoT data processing method, system, device, and medium. Background Technology
[0002] With the integration of emerging technologies such as Category 1, 5G, big data, and blockchain, IoT application scenarios are experiencing explosive growth. The scale of IoT platform devices and applications is constantly expanding, and various application scenarios have different requirements regarding the real-time performance, stability, and security of data collection. Current data collection methods involve terminal messages being reported to the IoT platform, the platform storing the data, and then pushing it to various application partners. This approach does not consider the security and consistency verification of data transmission among application partners. Network loss or human tampering can lead to unreliable data collection and application data sharing between terminals. Summary of the Invention
[0003] In view of this, the purpose of this invention is to provide a blockchain-based Internet of Things (IoT) data processing method, system, device, and medium that can verify the credibility of data collected by terminal devices and data received by application terminals.
[0004] In a first aspect, embodiments of the present invention provide a blockchain-based Internet of Things (IoT) data processing method, applied to an IoT platform, comprising:
[0005] Obtain the raw data reported by the device, and save the device information and the raw data to the message queue;
[0006] Based on the device information of the device, the original data is parsed in a time sequence to obtain parsed information, and the parsed information is saved to the message queue;
[0007] The parsed information is encrypted, and the encrypted parsed information is stored on a blockchain node, and a data credential identifier is obtained;
[0008] The application subscription matches the route, and the parsed information and the data credential identifier are pushed to the application terminal through the route, so that the application terminal can verify the parsed data through the blockchain and the data credential identifier after identity authentication.
[0009] Optionally, encrypting the parsed information, storing the encrypted parsed information on a blockchain node, and obtaining a data credential identifier specifically includes:
[0010] Obtain the application subscription key information and store the key information;
[0011] The parsed information is matched with key information, and the parsed information is encrypted based on the matched key information.
[0012] The encrypted and decrypted information is stored on the blockchain node and synchronized to the associated blockchain node;
[0013] Obtain the data credential identifier based on the blockchain's synchronization interface.
[0014] Optionally, the step of matching routes based on application subscriptions and pushing the parsed information and the data credential identifier to the application terminal through the route specifically includes:
[0015] The device information and application subscription of the device are used to match routes, and the parsed information is stored in real-time memory according to the routes;
[0016] The parsed information and the data credential identifier are pushed to the application terminal through the routing.
[0017] Secondly, embodiments of the present invention provide a blockchain-based Internet of Things (IoT) data processing method, applied to an application terminal, comprising:
[0018] Obtain the parsed information and data credential identifier pushed by the IoT platform, and perform identity verification through the IoT verification interface;
[0019] After successful identity verification, the stored parsing information is retrieved from the blockchain node based on the data credential identifier;
[0020] Perform data verification on the parsing information pushed by the IoT platform and the parsing information stored therein.
[0021] Optionally, obtaining the stored parsing information from the blockchain node based on the data credential identifier specifically includes:
[0022] Blockchain nodes are determined based on application subscriptions;
[0023] The encrypted parsing information is obtained from the blockchain node based on the data credential identifier, and the encrypted parsing information is decrypted to obtain the stored parsing information.
[0024] Thirdly, embodiments of the present invention provide a blockchain-based Internet of Things (IoT) data processing system applied to an IoT platform, comprising:
[0025] The first module is used to obtain the raw data reported by the device and save the device information and the raw data to the message queue;
[0026] The second module is used to perform time-series parsing on the original data based on the device information of the device to obtain parsed information, and save the parsed information to the message queue;
[0027] The third module is used to encrypt the parsed information, store the encrypted parsed information on the blockchain node, and obtain the data credential identifier.
[0028] The fourth module is used to match routes according to application subscriptions and push the parsed information and the data credential identifier to the application terminal through the route, so that the application terminal can verify the parsed data through the blockchain and the data credential identifier after identity authentication.
[0029] Fourthly, embodiments of the present invention provide a blockchain-based Internet of Things (IoT) data processing system, applied to an application terminal, comprising:
[0030] The fifth module is used to obtain the parsed information and data credential identifier pushed by the IoT platform, and to perform identity verification through the IoT verification interface;
[0031] The sixth module is used to retrieve the stored parsing information from the blockchain node based on the data credential identifier after successful identity verification;
[0032] The seventh module is used to perform data verification on the parsing information pushed by the IoT platform and the parsing information stored therein.
[0033] Fifthly, embodiments of the present invention provide a blockchain-based Internet of Things (IoT) data processing device, comprising:
[0034] At least one processor;
[0035] At least one memory for storing at least one program;
[0036] When the at least one program is executed by the at least one processor, the at least one processor performs the method described above.
[0037] In a sixth aspect, embodiments of the present invention provide a computer-readable storage medium storing a processor-executable program, which, when executed by a processor, is used to perform the methods described above.
[0038] Seventhly, embodiments of the present invention provide a blockchain-based Internet of Things (IoT) data processing system, comprising an IoT platform, an application terminal, and a blockchain, wherein...
[0039] The IoT platform is used to implement the method described in the first aspect embodiment;
[0040] The application terminal is used to implement the method described in the second aspect embodiment;
[0041] The blockchain is used by the IoT platform to store the reported data collected by the devices and to provide query services for the application terminals.
[0042] Implementing this embodiment of the invention has the following beneficial effects: In this embodiment, after the IoT platform obtains the raw data reported by the device, it parses the raw data to obtain parsed information, encrypts the parsed information and stores it in the blockchain node, and obtains a data credential identifier. In addition, the IoT platform matches routes according to application subscriptions and pushes the parsed information and data credential identifier to the application terminal through the route. After receiving the parsed information pushed by the IoT platform, the application terminal obtains the stored parsed information from the blockchain through the data credential identifier, and performs data verification on the parsed information pushed by the IoT platform and the parsed information stored in the blockchain, thereby realizing the credibility verification of the data collected by the terminal device and the data received by the application terminal. Attached Figure Description
[0043] Figure 1 This is a structural block diagram of a blockchain-based Internet of Things (IoT) data processing system provided in an embodiment of the present invention;
[0044] Figure 2 This is a flowchart illustrating the steps of a data processing method applied to an Internet of Things (IoT) platform, as provided in an embodiment of the present invention.
[0045] Figure 3 This is a structural block diagram of a data processing system applied to an Internet of Things (IoT) platform, provided by an embodiment of the present invention.
[0046] Figure 4 This is a flowchart illustrating the steps of a data processing method applied to an application terminal, as provided in an embodiment of the present invention.
[0047] Figure 5 This is a structural block diagram of a data processing system applied to an application terminal, provided by an embodiment of the present invention;
[0048] Figure 6 This is a structural block diagram of a blockchain-based Internet of Things (IoT) data processing device provided in an embodiment of the present invention. Detailed Implementation
[0049] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only for ease of explanation and do not limit the order of the steps. The execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
[0050] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0051] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the invention described herein can be implemented in an order other than that illustrated or described herein.
[0052] Unless otherwise defined, all technical and scientific terms used in the embodiments of this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in the embodiments of this invention is for descriptive purposes only and is not intended to limit the invention.
[0053] Before providing a further detailed description of the embodiments of the present invention, the nouns and terms involved in the embodiments of the present invention will be explained, and the nouns and terms involved in the embodiments of the present invention shall be interpreted as follows.
[0054] See Figure 1 The IoT platform connects multiple terminal data collection devices and multiple application terminals. The terminal data collection devices collect various physical data, including but not limited to various sensors. The application terminals subscribe to various applications on the IoT platform and query the relevant subscribed data through the IoT platform. In this embodiment of the invention, the data reported by the terminal data collection devices collected by the IoT platform is stored in the form of blockchain.
[0055] like Figure 2 As shown, this embodiment of the invention provides a blockchain-based Internet of Things (IoT) data processing method applied to an IoT platform, including steps S100 to S400.
[0056] S100: Obtain the raw data reported by the device, and save the device information and the raw data to the message queue.
[0057] Specifically, the raw data includes physical data collected by the device acquisition terminal, such as temperature, humidity, or switch signals. The device information includes the model, serial number, network status, communication protocol, and other relevant information of the acquisition terminal. The device acquisition terminal reports the collected raw data to the IoT platform. The IoT platform receives the raw data and saves the device information and the raw data to a message queue.
[0058] S200: Based on the device information of the device, perform time-series parsing on the original data to obtain parsing information, and save the parsing information to the message queue.
[0059] The physical model and device information corresponding to the device acquisition terminal can be stored in the configuration database. Since the control commands or data transmission commands between the device acquisition terminal and the Internet of Things (IoT) communicate according to a communication protocol, different device acquisition terminals may use different communication protocols. Therefore, the specific actual physical data needs to be obtained through parsing. In this embodiment, the IoT platform determines the corresponding physical model from the configuration database based on the device information, performs time-series parsing on the original data based on the physical model to obtain parsed information, and then puts the parsed information back into the message queue.
[0060] S300. The parsed information is encrypted and stored in the blockchain node, and the data credential identifier is obtained.
[0061] Specifically, the IoT platform retrieves the parsed data reported by the terminal devices from the message queue, encrypts the reported data according to the key, stores the reported data to the latest blockchain storage node through the uplink interface, synchronizes it to the blockchain node according to the smart contract, and obtains the returned data credential identifier.
[0062] Optionally, encrypting the parsed information, storing the encrypted parsed information on a blockchain node, and obtaining a data credential identifier specifically includes:
[0063] S310. Obtain the application subscription key information and store the key information;
[0064] S320. Match the key information according to the parsed information, and encrypt the parsed information according to the matched key information;
[0065] S330. Store the encrypted parsed information on the blockchain node and synchronize it to the associated blockchain node;
[0066] S340. Obtain the data credential identifier based on the blockchain synchronization interface.
[0067] Specifically, first, the application subscription key information is obtained from the configuration database, cached in real-time memory, and updated according to the mechanism; then, based on the relevant fields in the reported data, the application key is matched according to the application relevance for data encryption; then, the encrypted reported data is uploaded to the nearest blockchain storage node via a smart contract according to the application terminal and blockchain node configuration database, and synchronized to the associated blockchain node within a preset time, such as 10 seconds; finally, the data credential identifier of the encrypted reported data is obtained from the real-time synchronization interface and saved to the message queue.
[0068] S400. Match the route according to the application subscription, and push the parsed information and the data credential identifier to the application terminal through the route, so that the application terminal can verify the parsed data through the blockchain and the data credential identifier after identity authentication.
[0069] Specifically, the application subscription route is obtained from the configuration database according to the product, and the decrypted data and data credential identifier are packaged and pushed to the URL (uniform resource locator) address of the application terminal in multiple directions. After the application terminal receives the push information, the message data is dumped to the historical database.
[0070] Optionally, the step of matching routes based on application subscriptions and pushing the parsed information and the data credential identifier to the application terminal through the route specifically includes:
[0071] S410. Match routes according to the device information and application subscription of the device, and store the parsed information in real-time memory according to the routes;
[0072] S420. The parsing information and the data credential identifier are pushed to the application terminal through the routing.
[0073] Specifically, firstly, based on the product and application subscription relationship, the optimal route is selected from the push routing rule base to store the reported data in real-time memory; then, based on the route URL dimension, the collected decrypted data and data credential identifier are packaged and pushed to the application terminal receiving URL by message push.
[0074] Implementing this embodiment of the invention has the following beneficial effects: In this embodiment, after the IoT platform obtains the raw data reported by the device, it parses the raw data to obtain parsed information, encrypts the parsed information and stores it in the blockchain node, and obtains a data credential identifier. In addition, the IoT platform matches routes according to application subscriptions and pushes the parsed information and data credential identifier to the application terminal through the route. After receiving the parsed information pushed by the IoT platform, the application terminal obtains the stored parsed information from the blockchain through the data credential identifier, and performs data verification on the parsed information pushed by the IoT platform and the parsed information stored in the blockchain, thereby realizing the credibility verification of the data collected by the terminal device and the data received by the application terminal.
[0075] like Figure 3 As shown, this embodiment of the invention provides a blockchain-based Internet of Things (IoT) data processing system applied to an IoT platform, comprising:
[0076] The first module is used to obtain the raw data reported by the device and save the device information and the raw data to the message queue;
[0077] The second module is used to perform time-series parsing on the original data based on the device information of the device to obtain parsed information, and save the parsed information to the message queue;
[0078] The third module is used to encrypt the parsed information, store the encrypted parsed information on the blockchain node, and obtain the data credential identifier.
[0079] The fourth module is used to match routes according to application subscriptions and push the parsed information and the data credential identifier to the application terminal through the route, so that the application terminal can verify the parsed data through the blockchain and the data credential identifier after identity authentication.
[0080] It is evident that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0081] See Figure 4 This invention provides a blockchain-based Internet of Things (IoT) data processing method, applied to an application terminal, including steps S500 to S700.
[0082] S500 obtains the parsed information and data credential identifier pushed by the IoT platform, and performs identity verification through the IoT verification interface.
[0083] The application terminal retrieves stored application data from the message queue of the IoT platform, and parses the collected data and data credential identifier reported by the device. Based on the on-chain data credential identifier, the application terminal performs identity authentication through the blockchain credential verification interface of the IoT platform, using the application terminal's key and secret. The key and secret information are obtained from the configuration database.
[0084] S600. After successful identity verification, the stored parsing information is obtained from the blockchain node based on the data credential identifier.
[0085] After the application terminal's authentication is successful, it retrieves the parsing information (or decrypted data) stored in the blockchain from the blockchain node based on the data credential identifier.
[0086] Optionally, obtaining the stored parsing information from the blockchain node based on the data credential identifier specifically includes:
[0087] S610. Determine the blockchain node based on the application subscription;
[0088] S620. Obtain the encrypted parsing information from the blockchain node according to the data credential identifier, and decrypt the encrypted parsing information to obtain the stored parsing information.
[0089] Specifically, firstly, the application terminal selects a blockchain node based on the application and blockchain configuration library; then, it obtains the collected data reported by the device terminal from the blockchain node through data credential identification.
[0090] S700 performs data verification on the parsing information pushed by the IoT platform and the stored parsing information.
[0091] Specifically, the application terminal compares the data collected by the device connected to the IoT platform with the data stored on the blockchain to verify whether the data is consistent.
[0092] Implementing this embodiment of the invention has the following beneficial effects: In this embodiment, after the IoT platform obtains the raw data reported by the device, it parses the raw data to obtain parsed information, encrypts the parsed information and stores it in the blockchain node, and obtains a data credential identifier. In addition, the IoT platform matches routes according to application subscriptions and pushes the parsed information and data credential identifier to the application terminal through the route. After receiving the parsed information pushed by the IoT platform, the application terminal obtains the stored parsed information from the blockchain through the data credential identifier, and performs data verification on the parsed information pushed by the IoT platform and the parsed information stored in the blockchain, thereby realizing the credibility verification of the data collected by the terminal device and the data received by the application terminal.
[0093] See Figure 5 This invention provides a blockchain-based Internet of Things (IoT) data processing system for application terminals, comprising:
[0094] The fifth module is used to obtain the parsed information and data credential identifier pushed by the IoT platform, and to perform identity verification through the IoT verification interface;
[0095] The sixth module is used to retrieve the stored parsing information from the blockchain node based on the data credential identifier after successful identity verification;
[0096] The seventh module is used to perform data verification on the parsing information pushed by the IoT platform and the parsing information stored therein.
[0097] It is evident that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0098] See Figure 6This invention provides a blockchain-based Internet of Things (IoT) data processing device, comprising:
[0099] At least one processor;
[0100] At least one memory for storing at least one program;
[0101] When the at least one program is executed by the at least one processor, the at least one processor implements the above-described blockchain-based IoT data processing method.
[0102] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. The memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include remote memory located remotely relative to the processor, which can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0103] It is evident that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented in this device embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0104] Furthermore, this application also discloses a computer program product or computer program stored in a computer-readable storage medium. A processor of a computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, causing the computer device to perform the described method. Similarly, the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0105] This invention also provides a computer-readable storage medium storing a processor-executable program that, when executed by a processor, implements the above-described method.
[0106] It is understood that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0107] See Figure 1 This invention provides a blockchain-based Internet of Things (IoT) data processing system, comprising an IoT platform, an application terminal, and a blockchain.
[0108] The IoT platform is used to implement methods applied to the IoT platform;
[0109] The application terminal is used to implement the method applied to the application terminal;
[0110] The blockchain is used by the IoT platform to store the reported data collected by the devices and to provide query services for the application terminals.
[0111] The blockchain-based IoT data processing system in this embodiment of the invention has the following advantages: 1. The application terminal has multiple verification, distributed, and scalable characteristics, meeting the requirements of secure and reliable application of device data collection; 2. According to the device collection terminal category and data collection rules, the data is uniformly and reliably uploaded to the blockchain on the platform, which not only enhances the trust and security of the data and reduces the security risks in the data process, but also improves the overall efficiency of data upload and reduces resource consumption; 3. Based on the dual verification mechanism of application identifier and data credential identifier, multiple application terminals, combined with the platform's open services, improve the data mutual trust authentication capability and efficiency of the multi-party application platform through application authentication and data verification.
[0112] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A blockchain-based Internet of Things (IoT) data processing method, characterized in that, Applications in IoT platforms, including: Obtain the raw data reported by the device, and save the device information and the raw data to the message queue; Based on the device information of the device, the original data is parsed in a time sequence to obtain parsed information, and the parsed information is saved to the message queue; The parsed information is encrypted, and the encrypted parsed information is stored on a blockchain node, and a data credential identifier is obtained; The application subscription matches the route, and the parsing information and the data credential identifier are pushed to the application terminal through the route. After the application terminal is authenticated, it can obtain the stored parsing information from the blockchain node based on the data credential identifier and perform data verification on the parsing information pushed by the IoT platform and the stored parsing information.
2. The method according to claim 1, characterized in that, The process of encrypting the parsed information, storing the encrypted parsed information on a blockchain node, and obtaining a data credential identifier specifically includes: Obtain the application subscription key information and store the key information; The parsed information is matched with key information, and the parsed information is encrypted based on the matched key information. The encrypted and decrypted information is stored on the blockchain node and synchronized to the associated blockchain node; Obtain the data credential identifier based on the blockchain's synchronization interface.
3. The method according to claim 1, characterized in that, The step of matching routes according to application subscriptions and pushing the parsed information and the data credential identifier to the application terminal through the routes specifically includes: The device information and application subscription of the device are used to match routes, and the parsed information is stored in real-time memory according to the routes; The parsed information and the data credential identifier are pushed to the application terminal through the routing.
4. The method according to claim 1, characterized in that, The step of obtaining the stored parsing information from the blockchain node based on the data credential identifier specifically includes: Blockchain nodes are determined based on application subscriptions; The encrypted parsing information is obtained from the blockchain node based on the data credential identifier, and the encrypted parsing information is decrypted to obtain the stored parsing information.
5. A blockchain-based Internet of Things (IoT) data processing system, characterized in that, Applications in IoT platforms, including: The first module is used to obtain the raw data reported by the device and save the device information and the raw data to the message queue; The second module is used to perform time-series parsing on the original data based on the device information of the device to obtain parsed information, and save the parsed information to the message queue; The third module is used to encrypt the parsed information, store the encrypted parsed information on the blockchain node, and obtain the data credential identifier. The fourth module is used to match routes according to application subscriptions and push the parsing information and the data credential identifier to the application terminal through the route, so that the application terminal can obtain the stored parsing information from the blockchain node after identity authentication based on the data credential identifier, and perform data verification on the parsing information pushed by the IoT platform and the stored parsing information.
6. A blockchain-based Internet of Things (IoT) data processing device, characterized in that, include: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor performs the method as described in any one of claims 1-4.
7. A computer-readable storage medium storing a processor-executable program, characterized in that, The processor-executable program, when executed by the processor, is used to perform the method as described in any one of claims 1-4.
8. A blockchain-based Internet of Things (IoT) data processing system, characterized in that, Internet of Things (IoT) platforms and blockchain, among which, The Internet of Things platform is used to implement the method as described in any one of claims 1-4; The blockchain is used by the IoT platform to store the reported data collected by the devices and to provide query services for the application terminals.
Citation Information
Patent Citations
Data uplink and verification system and method, electronic equipment and storage medium
CN113886488A
Information processing method and device, equipment, storage medium and computer program product
CN115022039A