Data transmission method and apparatus, electronic device, and readable medium

By using multi-chain interoperability middleware and blockchain network data transmission methods, the problem of network communication security for smart home devices has been solved, achieving secure and reliable data transmission and preventing data leakage.

CN119484187BActive Publication Date: 2026-01-23GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411553236.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2026-01-23
Estimated Expiration
2044-11-01

AI Technical Summary

Technical Problem

The lack of security in smart home devices during network communication poses security risks to users.

Method used

Multi-chain interoperability middleware is used to transmit data through the blockchain network. The target blockchain network is selected according to the type and security level of the communication data, and cross-chain communication protocol and hash value monitoring mechanism are used to ensure the security of data transmission.

Benefits of technology

It improves the security of data transmission between smart home devices and the host, avoids data leakage, and achieves the reliability and data integrity of cross-chain communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484187B_ABST
    Figure CN119484187B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a data transmission method and device, electronic equipment and readable medium. It is applied to multi-chain interoperability middleware, the method comprises: in the case of data transmission between the smart home device and the smart home host, receiving the communication data sent by the smart home device or the smart home host through any kind of block chain network; in at least one block chain network, determine the target block chain network corresponding to the communication data; the communication data is sent to the smart home device or the smart home host receiving the communication data through the target block chain network. Thus, the data transmission between the smart home device and the smart home host can be realized based on at least one block chain network, the security of data transmission is effectively improved, and the transmission leakage is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data transmission technology, and in particular to a data transmission method, a data transmission device, an electronic device, and a computer-readable medium. Background Technology

[0002] With the rapid development and popularization of Internet of Things (IoT) technology, smart home devices have also begun to become common in homes. Smart home systems provide users with functions such as remote control, automated management, and intelligent monitoring through networked smart home devices, thereby greatly improving the convenience and comfort of life.

[0003] However, smart home devices often do not consider network security during network communication, which leads to security risks for users. Summary of the Invention

[0004] The present invention provides a data transmission method, apparatus, electronic device, and computer-readable storage medium to address the security risks associated with smart home devices.

[0005] This invention discloses a data transmission method applied to a multi-chain interoperability middleware. The multi-chain interoperability middleware is deployed in a smart home system. The smart home system further includes a smart home host and at least one smart home device, each communicatively connected to the multi-chain interoperability middleware. The smart home devices are deployed in at least one blockchain network. The method includes:

[0006] In the case of data transmission between the smart home device and the smart home host, receive communication data sent by the smart home device or the smart home host through any kind of blockchain network;

[0007] In at least one blockchain network, the target blockchain network corresponding to the communication data is determined;

[0008] The communication data is sent through the target blockchain network to the smart home device or the smart home host that receives the communication data.

[0009] Optionally, the blockchain network includes at least one type of blockchain with a security level;

[0010] The step of determining the target blockchain network corresponding to the communication data in at least one blockchain network includes:

[0011] The security level corresponding to the communication data is determined based on the data type of the communication data.

[0012] In at least one blockchain network, the target blockchain network corresponding to the communication data is determined, as well as the blockchain with the target security level in the target blockchain network.

[0013] Optionally, the step of sending the communication data through the target blockchain network to the smart home device or the smart home host receiving the communication data includes:

[0014] If the target blockchain network is different from the blockchain network that sent the communication data, the communication data is sent to the smart home device or the smart home host that receives the communication data through the target blockchain network based on a preset cross-chain communication protocol.

[0015] Optionally, the method further includes:

[0016] Generate a hash value corresponding to the communication data, and store the hash value corresponding to the communication data in the blockchain network;

[0017] Based on the hash value, monitor whether the communication data has been modified.

[0018] Optionally, the communication data includes the status data of the smart home device;

[0019] The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes:

[0020] Receive status data sent by the smart home device through any blockchain network;

[0021] The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes:

[0022] The status data is sent to the smart home host through the target blockchain network. The smart home host is used to upload the status data to the blockchain network based on a preset smart contract.

[0023] Optionally, the method further includes:

[0024] The smart home host monitors the operating status of the smart home devices based on the status data.

[0025] Optionally, the smart home host is specifically used to segment the status data and, based on a preset smart contract, upload the segmented status data to at least one of the blockchain networks.

[0026] Optionally, the communication data includes home control data;

[0027] The at least one smart home device is deployed in at least one home function system;

[0028] The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes:

[0029] For any type of home function system, receive home control data sent by smart home devices in the home function system through any type of blockchain network;

[0030] The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes:

[0031] The home control data is sent to the smart home host that receives the home control data through the target blockchain network; the smart home host is used to determine the home linkage event of the home control data, and generate linkage control data for the home linkage event and send it to the multi-chain interoperability middleware.

[0032] In at least one blockchain network, determine the linkage blockchain network corresponding to the linkage control data;

[0033] The linkage control data is sent to the smart home device corresponding to the linkage control data through the linkage blockchain network.

[0034] Optionally, the communication data includes identity registration data;

[0035] The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes:

[0036] Receive identity registration data sent by the smart home device through any blockchain network;

[0037] The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes:

[0038] The identity registration data is sent to the smart home host through the target blockchain network. The smart home host is used to bind the smart home device based on the identity registration data and upload the identity registration data to the blockchain network.

[0039] This invention also discloses a data transmission device applied to a multi-chain interoperability middleware deployed in a smart home system. The smart home system further includes a smart home host and at least one smart home device, each communicatively connected to the multi-chain interoperability middleware. The smart home devices are deployed in at least one blockchain network. The device comprises:

[0040] The data receiving module is used to receive communication data sent by the smart home device or the smart home host through any kind of blockchain network when data transmission is performed between the smart home device and the smart home host.

[0041] A target blockchain network determination module is used to determine the target blockchain network corresponding to the communication data in at least one blockchain network.

[0042] A data transmission module is used to send the communication data to the smart home device or the smart home host that receives the communication data through the target blockchain network.

[0043] Optionally, the blockchain network includes at least one type of blockchain with a security level;

[0044] The target blockchain network determination module includes:

[0045] A security level determination module is used to determine the security level corresponding to the communication data based on the data type of the communication data.

[0046] A blockchain determination module is used to determine, in at least one blockchain network, the target blockchain network corresponding to the communication data, and the blockchain with a target security level within the target blockchain network.

[0047] Optionally, the data transmission module includes:

[0048] The data sending submodule is used to send the communication data to the smart home device or the smart home host that receives the communication data through the target blockchain network, based on a preset cross-chain communication protocol, if the target blockchain network is different from the blockchain network that sent the communication data.

[0049] Optionally, the device further includes:

[0050] A hash value generation module is used to generate a hash value corresponding to the communication data and store the hash value corresponding to the communication data in the blockchain network;

[0051] The detection module is used to monitor whether the communication data has been modified based on the hash value.

[0052] Optionally, the communication data includes the status data of the smart home device;

[0053] The data receiving module includes:

[0054] The status data receiving submodule is used to receive status data sent by the smart home device through any blockchain network.

[0055] The data transmission module includes:

[0056] The status data sending submodule is used to send the status data to the smart home host through the target blockchain network. The smart home host is used to upload the status data to the blockchain network based on a preset smart contract.

[0057] Optionally, the device further includes:

[0058] The status detection module is used by the smart home host to monitor the operating status of the smart home devices based on the status data.

[0059] Optionally, the smart home host is specifically used to segment the status data and, based on a preset smart contract, upload the segmented status data to at least one of the blockchain networks.

[0060] Optionally, the communication data includes home control data;

[0061] The at least one smart home device is deployed in at least one home function system;

[0062] The data receiving module includes:

[0063] The home control data receiving submodule is used to receive home control data sent by smart home devices in any type of home function system through any type of blockchain network for any type of home function system;

[0064] The data transmission module includes:

[0065] The home control data sending submodule is used to send the home control data to the smart home host that receives the home control data through the target blockchain network; the smart home host is used to determine the home linkage event of the home control data, and generate linkage control data for the home linkage event and send it to the multi-chain interoperability middleware.

[0066] A linkage network determination module is used to determine the linkage blockchain network corresponding to the linkage control data in at least one blockchain network.

[0067] The data determination module is used to send the linkage control data to the smart home device corresponding to the linkage control data through the linkage blockchain network.

[0068] Optionally, the communication data includes identity registration data;

[0069] The data receiving module includes:

[0070] The identity registration data receiving submodule is used to receive identity registration data sent by the smart home device through any blockchain network.

[0071] The data transmission module includes:

[0072] The identity registration data sending submodule is used to send the identity registration data to the smart home host through the target blockchain network. The smart home host is used to bind the smart home device based on the identity registration data and upload the identity registration data to the blockchain network.

[0073] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0074] The memory is used to store computer programs;

[0075] When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.

[0076] This invention also discloses one or more computer-readable media storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.

[0077] The embodiments of the present invention have the following advantages:

[0078] The data transmission method provided in this invention is applied to a multi-chain interoperability middleware deployed in a smart home system. The smart home system also includes a smart home host and at least one smart home device, each communicatively connected to the middleware. The smart home devices are deployed in at least one blockchain network. The method includes: receiving communication data sent by the smart home device or the smart home host through any one of the blockchain networks during data transmission between the smart home device and the smart home host; determining the target blockchain network corresponding to the communication data in the at least one blockchain network; and sending the communication data through the target blockchain network to the smart home device or the smart home host that received the communication data. Therefore, data transmission between the smart home device and the smart home host can be achieved based on at least one blockchain network, effectively improving data transmission security and preventing transmission leaks. Attached Figure Description

[0079] Figure 1 This is a schematic diagram of the structure of a smart home system provided in an embodiment of the present invention;

[0080] Figure 2 This is a flowchart of the steps of a data transmission method provided in an embodiment of the present invention;

[0081] Figure 3 This is a structural block diagram of a data transmission device provided in an embodiment of the present invention;

[0082] Figure 4 This is a block diagram of an electronic device provided in an embodiment of the present invention;

[0083] Figure 5 This is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. Detailed Implementation

[0084] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0085] Reference Figure 1This diagram illustrates the structure of a smart home system provided in an embodiment of the present invention. Specifically, the smart home system may include a smart home host 101, a multi-chain interoperability middleware 102 communicatively linked to the smart home host 101, and at least one smart home device 103 communicatively linked to the multi-chain interoperability middleware 102. Since different smart home devices 103 can have different network architectures, they can be deployed in at least one blockchain network. That is, different smart home devices 103 can communicate using different blockchain networks. For example, in the case of three blockchain networks, the smart home device 103 can communicate using a first blockchain network, a second blockchain network, and a third blockchain network, respectively.

[0086] For multiple different blockchain networks, a multi-chain interoperability middleware 102 can be set up. Through the multi-chain interoperability middleware 102, communication based on different blockchains can be realized, and cross-blockchain communication can be implemented as needed. In this way, smart home devices 103 deployed on different blockchain networks can communicate with each other.

[0087] The smart home host 101 can communicate with multiple different blockchain networks simultaneously based on the multi-chain interoperability middleware 102, thereby managing smart home devices 103 under multiple different blockchain networks at the same time.

[0088] Reference Figure 2 The diagram illustrates a flowchart of a data transmission method provided in an embodiment of the present invention, which is applied to a multi-chain interoperability middleware and may specifically include the following steps:

[0089] Step 201: When data transmission occurs between the smart home device and the smart home host, receive communication data sent by the smart home device or the smart home host through any kind of blockchain network.

[0090] When data transmission is required between smart home devices and the smart home host—that is, when a smart home device needs to send data to the smart home host, or vice versa—the multi-chain interoperability middleware can receive communication data sent from either the smart home device or the smart home host. Furthermore, this communication data can be sent based on any type of blockchain network.

[0091] For smart home devices, the blockchain network they belong to is fixed, allowing them to send communication data through that network. For the smart home host, it can use one or more blockchain networks for data transmission, thus allowing it to select a network to send communication data according to its actual needs.

[0092] Step 202: In at least one blockchain network, determine the target blockchain network corresponding to the communication data;

[0093] For multi-chain interoperability middleware, it can identify the blockchain network suitable for the current communication data as the target blockchain network in at least one blockchain network.

[0094] In practical implementation, multi-chain interoperability middleware can determine the target blockchain network to be used based on either the blockchain network where the smart home device receiving communication data is located, or the blockchain network where the smart home device sending communication data is located. Alternatively, it can select a suitable blockchain network from among multiple blockchain networks as the target blockchain network based on the security level of the currently transmitted data.

[0095] Step 203: Send the communication data to the smart home device or the smart home host that receives the communication data through the target blockchain network.

[0096] Once the target blockchain network is identified, the multi-chain interoperability middleware can send communication data through the target blockchain network to the receiving smart home device or smart home host. This enables the transmission of communication data of the smart home system based on at least one blockchain network, thereby improving the security of the smart home system.

[0097] The data transmission method provided in this invention is applied to a multi-chain interoperability middleware deployed in a smart home system. The smart home system also includes a smart home host and at least one smart home device, each communicatively connected to the middleware. The smart home devices are deployed in at least one blockchain network. The method includes: receiving communication data sent by the smart home device or the smart home host through any one of the blockchain networks during data transmission between the smart home device and the smart home host; determining the target blockchain network corresponding to the communication data in the at least one blockchain network; and sending the communication data through the target blockchain network to the smart home device or the smart home host that received the communication data. Therefore, data transmission between the smart home device and the smart home host can be achieved based on at least one blockchain network, effectively improving data transmission security and preventing transmission leaks.

[0098] In one embodiment of the present invention, the blockchain network includes at least one blockchain with a security level;

[0099] The step of determining the target blockchain network corresponding to the communication data in at least one blockchain network includes:

[0100] S11, Determine the security level corresponding to the communication data based on the data type of the communication data;

[0101] S12, in at least one blockchain network, determine the target blockchain network corresponding to the communication data, and the blockchain with the target security level in the target blockchain network.

[0102] In practical implementation, a blockchain network can include blockchains with at least one security level. Each blockchain network can contain multiple blockchains with different security levels, allowing communication data of varying security levels to be transmitted across different blockchain transmission networks. Alternatively, a blockchain network can contain only one type of blockchain with different security levels. Therefore, during data transmission between the multi-chain interoperability middleware and the smart home host, the appropriate blockchain can be selected for data transmission based on the different security levels of the communication data.

[0103] During the transmission of communication data, multi-chain interoperability middleware can determine the corresponding security level of the communication data based on the data type.

[0104] As a specific example of this invention, data sharing and collaborative transmission between smart home device suppliers, service providers, and security agencies can be considered data with a low security level that can be publicly shared. Data such as device activation records, user reviews, and publicly available device performance statistics can be considered data with a medium security level. Data such as device maintenance records, internal audit logs, and user privacy data can be considered data with a high security level.

[0105] Subsequently, in at least one blockchain network, the target blockchain network corresponding to the communication data, and the blockchain with the target security level in the target blockchain network, can be determined so that a blockchain with an appropriate security level can be used for data transmission, thereby improving the security of data transmission.

[0106] For example, blockchains with different security levels can include public blockchains, private blockchains, and consortium blockchains. Consortium blockchains can be used for data sharing and collaborative transmission among smart home device suppliers, service providers, and security agencies. Public blockchains can be used for data transmission of device activation records, user reviews, and publicly available device performance statistics. Private blockchains can be used for data transmission of device maintenance records, internal audit logs, and user privacy data.

[0107] In one embodiment of the present invention, the step of sending the communication data to the smart home device or the smart home host receiving the communication data via the target blockchain network includes:

[0108] S21, if the target blockchain network is different from the blockchain network that sent the communication data, the communication data is sent to the smart home device or the smart home host that receives the communication data through the target blockchain network based on a preset cross-chain communication protocol.

[0109] In practical implementation, the target blockchain network and the blockchain network sending the communication data can be different. In this case, cross-chain transmission of communication data can be involved. When cross-chain transmission is required, a cross-chain communication protocol can be preset, and based on the cross-chain communication protocol, the communication data can be sent through the target blockchain network to the smart home device or smart home host that receives the communication data, thus realizing cross-chain sharing of transmitted data.

[0110] In practical implementation, when cross-chain communication is required, cross-chain communication protocols such as the Cosmos IBC protocol can be used to transmit data. First, SSL / TLS certificates can be generated and configured for the multi-chain interoperability middleware, smart home devices, or smart home hosts that require cross-chain communication. Then, SSL / TLS certificates can be used to encrypt the communication transmission, and data can be transmitted to different blockchain networks based on the cross-chain communication protocol. This allows for cross-chain data transmission while ensuring data security.

[0111] In one embodiment of the present invention, the method further includes:

[0112] S31, Generate a hash value corresponding to the communication data, and store the hash value corresponding to the communication data in the blockchain network;

[0113] S32, based on the hash value, monitor whether the communication data has been modified.

[0114] In practical implementation, to further enhance data transmission security, a hash value corresponding to the communication data can be generated during transmission and stored in the blockchain network. When data integrity verification is required, multi-chain interoperability middleware or smart home hosts can detect in real time whether the hash value of the transmitted communication data changes compared to the hash value in the blockchain network, thereby preventing data incompleteness.

[0115] Furthermore, since the hash value is uploaded to the blockchain network for storage, it is immutable. Therefore, by monitoring in real time whether the hash value of the transmitted communication data changes compared to the hash value in the blockchain network, it is possible to detect whether the communication data has been modified, thereby further improving the security of data transmission.

[0116] In one embodiment of the present invention, the communication data includes the status data of the smart home device;

[0117] The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes:

[0118] S41, Receive status data sent by the smart home device through any blockchain network;

[0119] The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes:

[0120] S42, the status data is sent to the smart home host through the target blockchain network, and the smart home host is used to upload the status data to the blockchain network based on a preset smart contract.

[0121] In practice, the communication data includes the status data of smart home devices. These devices can periodically send status data through any blockchain network, and via a multi-chain interoperability middleware, transmit it to the smart home host through the target blockchain network. The smart home host then uploads the status data to the blockchain network based on a smart contract. This allows for the periodic collection of the smart home devices' operational status data for further analysis.

[0122] A smart contract can be an automated program that runs on a blockchain, capable of automatically executing, controlling, or recording pre-defined operations based on preset conditions. Therefore, by setting up a smart contract, data can be automatically uploaded upon receiving state data.

[0123] Specifically, smart home devices such as temperature sensors, smart sockets, and security cameras can send status data such as temperature, power consumption, and energy consumption to a multi-chain interoperability middleware via any blockchain network. The multi-chain interoperability middleware can then select a suitable target blockchain network for transmitting the status data and send the data to the smart home host via the blockchain network. The smart home host then uploads the status data to the blockchain network based on a preset smart contract.

[0124] In one embodiment of the present invention, the method further includes:

[0125] S51, the smart home host monitors the operating status of the smart home devices based on the status data.

[0126] In practical implementation, the operating status of smart home devices can be monitored based on status data. Specifically, monitoring the operating status of smart home devices can include real-time temperature monitoring, device status alarms, real-time energy consumption statistics, and energy consumption analysis.

[0127] For example, temperature data can be filtered out and data exceeding a threshold can be aggregated, allowing users to monitor temperature changes in their homes. Alarms can also be triggered when the status of smart home devices changes (such as excessively high temperature or low battery). Energy consumption data (such as the power consumption of smart sockets) can also be filtered out and aggregated to generate daily, weekly, or monthly energy consumption reports.

[0128] In one embodiment of the present invention, the smart home host is specifically used to perform sharding processing on the status data, and based on a preset smart contract, upload the sharded status data to at least one of the blockchain networks.

[0129] Specifically, in order to further improve the security of data storage in smart home systems, the status data can be fragmented, and based on a preset smart contract, the fragmented status data can be uploaded to at least one of the blockchain networks.

[0130] For example, given a dataset containing multiple smart home devices, where each device's data includes a device ID, data type, timestamp, and data value, the data can be sharded using hash functions and time windows.

[0131] Subsequently, if the blockchain network includes three different blockchain networks: Ethereum, Hyperledger Fabric, and Corda, smart contracts can be used to shard the state data and store it on different blockchain networks. This means that different blockchain networks may not have complete state data, further improving data security.

[0132] In one embodiment of the present invention, the communication data includes home control data;

[0133] The at least one smart home device is deployed in at least one home function system;

[0134] The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes:

[0135] S61, For any home function system, receive home control data sent by smart home devices in the home function system through any blockchain network;

[0136] The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes:

[0137] S62, the home control data is sent to the smart home host that receives the home control data through the target blockchain network; the smart home host is used to determine the home linkage event of the home control data, and generate linkage control data for the home linkage event and send it to the multi-chain interoperability middleware;

[0138] S63, in at least one blockchain network, determine the linkage blockchain network corresponding to the linkage control data;

[0139] S64, the linkage control data is sent to the smart home device corresponding to the linkage control data through the linkage blockchain network.

[0140] In practice, cross-chain data transmission typically occurs during the coordinated operation of different home functional systems. These different systems can utilize different blockchain networks. In scenarios involving coordinated control, such as when smart lighting and smart security systems need to operate in tandem, for example, if a user wants the smart security system to automatically activate monitoring mode and the smart lighting system to automatically turn off all lights when leaving home, cross-chain data transmission may be necessary.

[0141] In this scenario, for any type of home function system, home control data sent by smart home devices within that system via any blockchain network can be received, and this data can be transmitted to the smart home host receiving the data via the target blockchain network. The smart home host determines the home linkage event from the home control data and generates linkage control data for that event, which is then sent to the multi-chain interoperability middleware. In at least one blockchain network, the linkage control data's corresponding linkage blockchain network is determined. The linkage control data is then transmitted to the corresponding smart home device via this linkage blockchain network.

[0142] In one embodiment of the present invention, the communication data includes identity registration data;

[0143] The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes:

[0144] S71, Receive identity registration data sent by the smart home device through any blockchain network;

[0145] The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes:

[0146] S72, the identity registration data is sent to the smart home host through the target blockchain network. The smart home host is used to bind the smart home device based on the identity registration data and upload the identity registration data to the blockchain network.

[0147] In practical implementation, when smart home devices need to connect to the smart home host, they can send identity registration data. A multi-chain interoperability middleware can send this identity registration data to the smart home host via the target blockchain network. The smart home host can then add smart home devices to the smart home system based on this identity registration data, and subsequently upload the identity registration data to the blockchain network. Subsequently, the identity of the smart home devices can be verified based on the identity registration data in the blockchain network, preventing the identity registration data from being tampered with.

[0148] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0149] Reference Figure 3 This diagram illustrates a structural block diagram of a data transmission device provided in an embodiment of the present invention. The device is applied to a multi-chain interoperability middleware, which is deployed in a smart home system. The smart home system further includes a smart home host and at least one smart home device, each communicatively connected to the multi-chain interoperability middleware. The smart home devices are deployed in at least one blockchain network and may specifically include the following modules:

[0150] The data receiving module 301 is used to receive communication data sent by the smart home device or the smart home host through any kind of blockchain network when data transmission is performed between the smart home device and the smart home host.

[0151] The target blockchain network determination module 302 is used to determine the target blockchain network corresponding to the communication data in at least one blockchain network.

[0152] The data sending module 303 is used to send the communication data to the smart home device or the smart home host that receives the communication data through the target blockchain network.

[0153] The data transmission device provided in this invention is applied to a multi-chain interoperability middleware deployed in a smart home system. The smart home system also includes a smart home host and at least one smart home device, each communicatively connected to the multi-chain interoperability middleware. The smart home devices are deployed in at least one blockchain network. The method includes: receiving communication data sent by the smart home device or the smart home host through any one of the blockchain networks during data transmission between the smart home device and the smart home host; determining the target blockchain network corresponding to the communication data in the at least one blockchain network; and sending the communication data through the target blockchain network to the smart home device or the smart home host that received the communication data. Therefore, data transmission between the smart home device and the smart home host can be realized based on at least one blockchain network, effectively improving data transmission security and preventing transmission leakage.

[0154] Optionally, the blockchain network includes at least one type of blockchain with a security level;

[0155] The target blockchain network determination module includes:

[0156] A security level determination module is used to determine the security level corresponding to the communication data based on the data type of the communication data.

[0157] A blockchain determination module is used to determine, in at least one blockchain network, the target blockchain network corresponding to the communication data, and the blockchain with a target security level within the target blockchain network.

[0158] Optionally, the data transmission module includes:

[0159] The data sending submodule is used to send the communication data to the smart home device or the smart home host that receives the communication data through the target blockchain network, based on a preset cross-chain communication protocol, if the target blockchain network is different from the blockchain network that sent the communication data.

[0160] Optionally, the device further includes:

[0161] A hash value generation module is used to generate a hash value corresponding to the communication data and store the hash value corresponding to the communication data in the blockchain network;

[0162] The detection module is used to monitor whether the communication data has been modified based on the hash value.

[0163] Optionally, the communication data includes the status data of the smart home device;

[0164] The data receiving module includes:

[0165] The status data receiving submodule is used to receive status data sent by the smart home device through any blockchain network.

[0166] The data transmission module includes:

[0167] The status data sending submodule is used to send the status data to the smart home host through the target blockchain network. The smart home host is used to upload the status data to the blockchain network based on a preset smart contract.

[0168] Optionally, the device further includes:

[0169] The status detection module is used by the smart home host to monitor the operating status of the smart home devices based on the status data.

[0170] Optionally, the smart home host is specifically used to segment the status data and, based on a preset smart contract, upload the segmented status data to at least one of the blockchain networks.

[0171] Optionally, the communication data includes home control data;

[0172] The at least one smart home device is deployed in at least one home function system;

[0173] The data receiving module includes:

[0174] The home control data receiving submodule is used to receive home control data sent by smart home devices in any type of home function system through any type of blockchain network for any type of home function system;

[0175] The data transmission module includes:

[0176] The home control data sending submodule is used to send the home control data to the smart home host that receives the home control data through the target blockchain network; the smart home host is used to determine the home linkage event of the home control data, and generate linkage control data for the home linkage event and send it to the multi-chain interoperability middleware.

[0177] A linkage network determination module is used to determine the linkage blockchain network corresponding to the linkage control data in at least one blockchain network.

[0178] The data determination module is used to send the linkage control data to the smart home device corresponding to the linkage control data through the linkage blockchain network.

[0179] Optionally, the communication data includes identity registration data;

[0180] The data receiving module includes:

[0181] The identity registration data receiving submodule is used to receive identity registration data sent by the smart home device through any blockchain network.

[0182] The data transmission module includes:

[0183] The identity registration data sending submodule is used to send the identity registration data to the smart home host through the target blockchain network. The smart home host is used to bind the smart home device based on the identity registration data and upload the identity registration data to the blockchain network.

[0184] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0185] In addition, embodiments of the present invention also provide an electronic device, such as... Figure 4 As shown, it includes a processor 401, a communication interface 402, a memory 403, and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404.

[0186] Memory 403 is used to store computer programs;

[0187] When processor 401 executes the program stored in memory 403, it performs the following steps:

[0188] In the case of data transmission between the smart home device and the smart home host, receive communication data sent by the smart home device or the smart home host through any kind of blockchain network;

[0189] In at least one blockchain network, the target blockchain network corresponding to the communication data is determined;

[0190] The communication data is sent through the target blockchain network to the smart home device or the smart home host that receives the communication data.

[0191] Optionally, the blockchain network includes at least one type of blockchain with a security level;

[0192] The step of determining the target blockchain network corresponding to the communication data in at least one blockchain network includes:

[0193] The security level corresponding to the communication data is determined based on the data type of the communication data.

[0194] In at least one blockchain network, the target blockchain network corresponding to the communication data is determined, as well as the blockchain with the target security level in the target blockchain network.

[0195] Optionally, the step of sending the communication data through the target blockchain network to the smart home device or the smart home host receiving the communication data includes:

[0196] If the target blockchain network is different from the blockchain network that sent the communication data, the communication data is sent to the smart home device or the smart home host that receives the communication data through the target blockchain network based on a preset cross-chain communication protocol.

[0197] Optionally, the method further includes:

[0198] Generate a hash value corresponding to the communication data, and store the hash value corresponding to the communication data in the blockchain network;

[0199] Based on the hash value, monitor whether the communication data has been modified.

[0200] Optionally, the communication data includes the status data of the smart home device;

[0201] The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes:

[0202] Receive status data sent by the smart home device through any blockchain network;

[0203] The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes:

[0204] The status data is sent to the smart home host through the target blockchain network. The smart home host is used to upload the status data to the blockchain network based on a preset smart contract.

[0205] Optionally, the method further includes:

[0206] The smart home host monitors the operating status of the smart home devices based on the status data.

[0207] Optionally, the smart home host is specifically used to segment the status data and, based on a preset smart contract, upload the segmented status data to at least one of the blockchain networks.

[0208] Optionally, the communication data includes home control data;

[0209] The at least one smart home device is deployed in at least one home function system;

[0210] The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes:

[0211] For any type of home function system, receive home control data sent by smart home devices in the home function system through any type of blockchain network;

[0212] The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes:

[0213] The home control data is sent to the smart home host that receives the home control data through the target blockchain network; the smart home host is used to determine the home linkage event of the home control data, and generate linkage control data for the home linkage event and send it to the multi-chain interoperability middleware.

[0214] In at least one blockchain network, determine the linkage blockchain network corresponding to the linkage control data;

[0215] The linkage control data is sent to the smart home device corresponding to the linkage control data through the linkage blockchain network.

[0216] Optionally, the communication data includes identity registration data;

[0217] The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes:

[0218] Receive identity registration data sent by the smart home device through any blockchain network;

[0219] The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes:

[0220] The identity registration data is sent to the smart home host through the target blockchain network. The smart home host is used to bind the smart home device based on the identity registration data and upload the identity registration data to the blockchain network.

[0221] The data transmission method provided in this invention is applied to a multi-chain interoperability middleware deployed in a smart home system. The smart home system also includes a smart home host and at least one smart home device, each communicatively connected to the middleware. The smart home devices are deployed in at least one blockchain network. The method includes: receiving communication data sent by the smart home device or the smart home host through any one of the blockchain networks during data transmission between the smart home device and the smart home host; determining the target blockchain network corresponding to the communication data in the at least one blockchain network; and sending the communication data through the target blockchain network to the smart home device or the smart home host that received the communication data. Therefore, data transmission between the smart home device and the smart home host can be achieved based on at least one blockchain network, effectively improving data transmission security and preventing transmission leaks.

[0222] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0223] The communication interface is used for communication between the aforementioned terminal and other devices.

[0224] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0225] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0226] like Figure 5 As shown, in another embodiment of the present invention, a computer-readable storage medium 501 is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the data transmission method described in the above embodiment.

[0227] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute the data transmission method described in the above embodiments.

[0228] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0229] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0230] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0231] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A data transmission method, characterized in that, It is applied to multi-chain interoperability middleware, which is deployed in a smart home system. The smart home system also includes a smart home host and at least one smart home device, each communicatively connected to the multi-chain interoperability middleware. The smart home devices are deployed in at least one blockchain network. The method includes: In the case of data transmission between the smart home device and the smart home host, receive communication data sent by the smart home device or the smart home host through any kind of blockchain network; In at least one blockchain network, the target blockchain network corresponding to the communication data is determined; The communication data is sent through the target blockchain network to the smart home device or the smart home host that receives the communication data. The blockchain network includes at least one blockchain with a security level; The step of determining the target blockchain network corresponding to the communication data in at least one blockchain network includes: The security level corresponding to the communication data is determined based on the data type of the communication data. In at least one blockchain network, the target blockchain network corresponding to the communication data is determined, as well as the blockchain with the target security level in the target blockchain network.

2. The method according to claim 1, characterized in that, The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes: If the target blockchain network is different from the blockchain network that sent the communication data, the communication data is sent to the smart home device or the smart home host that receives the communication data through the target blockchain network based on a preset cross-chain communication protocol.

3. The method according to claim 1, characterized in that, The method further includes: Generate a hash value corresponding to the communication data and store the hash value corresponding to the communication data in the blockchain network; Based on the hash value, monitor whether the communication data has been modified.

4. The method according to claim 1, characterized in that, The communication data includes the status data of the smart home device; The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes: Receive status data sent by the smart home device through any blockchain network; The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes: The status data is sent to the smart home host through the target blockchain network. The smart home host is used to upload the status data to the blockchain network based on a preset smart contract.

5. The method according to claim 4, characterized in that, The method further includes: The smart home host monitors the operating status of the smart home devices based on the status data.

6. The method according to claim 4, characterized in that, The smart home host is specifically used to segment the status data and, based on a preset smart contract, upload the segmented status data to at least one of the blockchain networks.

7. The method according to claim 1, characterized in that, The communication data includes home control data; The at least one smart home device is deployed in at least one home function system; The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes: For any type of home function system, receive home control data sent by smart home devices in the home function system through any type of blockchain network; The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes: The home control data is sent to the smart home host that receives the home control data through the target blockchain network; the smart home host is used to determine the home linkage event of the home control data, and generate linkage control data for the home linkage event and send it to the multi-chain interoperability middleware. In at least one blockchain network, determine the linkage blockchain network corresponding to the linkage control data; The linkage control data is sent to the smart home device corresponding to the linkage control data through the linkage blockchain network.

8. The method according to claim 1, characterized in that, The communication data includes identity registration data; The step of receiving communication data sent by the smart home device or the smart home host through any blockchain network includes: Receive identity registration data sent by the smart home device through any blockchain network; The step of sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data includes: The identity registration data is sent to the smart home host through the target blockchain network. The smart home host is used to bind the smart home device based on the identity registration data and upload the identity registration data to the blockchain network.

9. A data transmission device, characterized in that, It is applied to multi-chain interoperability middleware, which is deployed in a smart home system. The smart home system also includes a smart home host and at least one smart home device, each communicatively connected to the multi-chain interoperability middleware. The smart home devices are deployed in at least one blockchain network. The device includes: The data receiving module is used to receive communication data sent by the smart home device or the smart home host through any kind of blockchain network when data transmission is performed between the smart home device and the smart home host. A target blockchain network determination module is used to determine the target blockchain network corresponding to the communication data in at least one blockchain network. A data transmission module is used to send the communication data to the smart home device or the smart home host receiving the communication data through the target blockchain network; the blockchain network includes at least one blockchain with a security level; the target blockchain network determination module includes: A security level determination module is used to determine the security level corresponding to the communication data based on the data type of the communication data. A blockchain determination module is used to determine, in at least one blockchain network, the target blockchain network corresponding to the communication data, and the blockchain with a target security level within the target blockchain network.

10. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-8.

11. A computer-readable medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Authentication method, blockchain node and storage medium

    CN109302415A

  • Intelligent household electrical appliance control system and method based on double gateways of Internet of Things and block chain

    CN112904734A

  • Internet of Things equipment and block chain connection method, Internet of Things equipment and analyzer

    CN114124991A