Data transmission method and device, electronic equipment and readable medium

By deploying multi-chain interoperable middleware in smart home systems and using blockchain networks for data transmission, the problem of lack of security in network communication of smart home devices is solved, and higher data transmission security and leakage prevention are achieved Effect.

CN119484187AActive Publication Date: 2025-02-18GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Smart home devices lack security during network communication, resulting in user safety risks.

Method used

By deploying multi-chain interoperable middleware in the smart home system, using the blockchain network for data transmission, the specific steps include receiving communication data sent by the smart home device or host through the blockchain network, determining the target blockchain network, and Send data to the receiving end through the network.

Benefits of technology

It effectively improves the security of data transmission between smart home devices and hosts, avoiding the risk of data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484187A_ABST
    Figure CN119484187A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission method and device, electronic equipment and a readable medium. The method is applied to multi-chain interoperation middleware, and comprises the following steps: receiving communication data sent by the smart home device or the smart home host through any block chain network under the condition that data transmission is performed between the smart home device and the smart home host; in at least one block chain network, determining a target block chain network corresponding to the communication data; and sending the communication data to the smart home device or the smart home host which receives the communication data through the target block chain network. Therefore, data transmission between the smart home device and the smart home host can be realized based on the at least one block chain network, the security of data transmission is effectively improved, and the condition of transmission leakage is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a data transmission method, a data transmission device, an electronic device and a computer-readable medium. Background Art

[0002] With the rapid development and popularization of Internet of Things (IoT) technology, smart home devices have also begun to spread in households. 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, during the network communication process, smart home devices usually do not consider the security of network communication, resulting in security risks for users when using smart home devices. Summary of the invention

[0004] The embodiments of the present invention provide a data transmission method, device, electronic device and computer-readable storage medium to solve the problem of potential safety hazards in smart home devices.

[0005] The embodiment of the present invention discloses a data transmission method, which is applied to a multi-chain interoperability middleware, wherein the multi-chain interoperability middleware is deployed in a smart home system, wherein the smart home system further comprises a smart home host and at least one smart home device respectively connected to the multi-chain interoperability middleware for communication, wherein the smart home device is respectively deployed in at least one blockchain network, wherein the method comprises:

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

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

[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 blockchain of a security level;

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

[0011] Determining a security level corresponding to the communication data according to the data type of the communication data;

[0012] In at least one blockchain network, a target blockchain network corresponding to the communication data and a blockchain of a target security level in the target blockchain network are determined.

[0013] Optionally, 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:

[0014] If the target blockchain network is different from the blockchain network that sends the communication data, based on a preset cross-chain communication protocol, 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.

[0015] Optionally, the method further comprises:

[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, whether the communication data has been modified is monitored.

[0018] Optionally, the communication data includes 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] Receiving status data sent by the smart home device via 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, and 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 comprises:

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

[0025] Optionally, the smart home host is specifically used to shard the status data, and based on a preset smart contract, upload the sharded 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 respectively 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 home function system, receiving home control data sent by smart home devices in the home function system through any 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, determining a 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] Receiving 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] The embodiment of the present invention further discloses a data transmission device, which is applied to a multi-chain interoperability middleware, wherein the multi-chain interoperability middleware is deployed in a smart home system, wherein the smart home system further comprises a smart home host and at least one smart home device respectively connected to the multi-chain interoperability middleware for communication, wherein the smart home device is respectively deployed in at least one blockchain network, wherein the device comprises:

[0040] A data receiving module, used for receiving communication data sent by the smart home device or the smart home host through any blockchain network when data is transmitted between the smart home device and the smart home host;

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

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

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

[0044] The target blockchain network determination module includes:

[0045] A security level determination module, used to determine the security level corresponding to the communication data according to the data type of the communication data;

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

[0047] Optionally, the data sending module includes:

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

[0049] Optionally, the device further comprises:

[0050] A hash value generation module, 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] A detection module is used to monitor whether the communication data has been modified based on the hash value.

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

[0053] The data receiving module comprises:

[0054] A status data receiving submodule, used to receive status data sent by the smart home device through any blockchain network;

[0055] The data sending module comprises:

[0056] The status data sending submodule is used to send the status data 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.

[0057] Optionally, the device further comprises:

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

[0059] Optionally, the smart home host is specifically used to shard the status data, and based on a preset smart contract, upload the sharded 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 respectively deployed in at least one home function system;

[0062] The data receiving module comprises:

[0063] A home control data receiving submodule, for receiving, for any home function system, home control data sent by a smart home device in the home function system through any blockchain network;

[0064] The data sending module comprises:

[0065] A 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, used to determine, in at least one blockchain network, a linkage blockchain network corresponding to the linkage control data;

[0067] The linkage 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 comprises:

[0070] An identity registration data receiving submodule, used to receive identity registration data sent by the smart home device through any blockchain network;

[0071] The data sending module comprises:

[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] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

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

[0075] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0076] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.

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

[0078] The data transmission method provided by the embodiment of the present invention is applied to a multi-chain interoperability middleware, the multi-chain interoperability middleware is deployed in a smart home system, the smart home system also includes a smart home host and at least one smart home device respectively connected to the multi-chain interoperability middleware for communication, the smart home devices are respectively 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, receiving the communication data sent by the smart home device or the smart home host through any blockchain network; in at least one blockchain network, determining the target blockchain network corresponding to the communication data; sending the communication data through the target blockchain network to the smart home device or the smart home host receiving the communication data. In this way, data transmission between smart home devices and smart home hosts can be realized based on at least one blockchain network, effectively improving the security of data transmission and avoiding transmission leakage. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

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

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

[0084] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0085] Reference Figure 1, showing a schematic diagram of 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 that is communicatively linked to the smart home host 101, and at least one smart home device 103 that is communicatively linked to the multi-chain interoperability middleware 102. Since different smart home devices 103 may have different network architectures, different smart home devices 103 may be deployed in at least one blockchain network. That is, different smart home devices 103 may use different blockchain networks for communication. For example, when there are three types of blockchain networks, the smart home devices 103 may use a first blockchain network, a second blockchain network, and a third blockchain network for communication, respectively.

[0086] For multiple different blockchain networks, a multi-chain interoperability middleware 102 can be set up, through which communication based on different blockchains can be realized, and a cross-blockchain communication method can be realized according to actual needs. In this way, smart home devices 103 deployed in different blockchain networks can be connected to each other.

[0087] For the smart home host 101, it can realize the simultaneous use of multiple different blockchain networks for communication based on the multi-chain interoperability middleware 102, so that the smart home devices 103 under multiple different blockchain networks can be managed at the same time.

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

[0089] Step 201, when data is transmitted between the smart home device and the smart home host, receiving communication data sent by the smart home device or the smart home host through any blockchain network;

[0090] When data needs to be transmitted between smart home devices and smart home hosts, that is, when smart home devices need to send data to smart home hosts, or when smart home hosts need to send data to smart home devices, multi-chain interoperability middleware can receive communication data sent from smart home devices or smart home hosts. At the same time, communication data can be sent based on any blockchain network.

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

[0092] Step 202, in at least one blockchain network, determining a target blockchain network corresponding to the communication data;

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

[0094] In a specific implementation, the multi-chain interoperability middleware can determine the target blockchain network to be used based on the blockchain network where the smart home device receiving the communication data is located, or the blockchain network where the smart home device sending the communication data is located. The multi-chain interoperability middleware can also select a blockchain network suitable for the current transmission data type as the target blockchain network from multiple blockchain networks based on the security level of the current transmission data.

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

[0096] After determining the target blockchain network, the multi-chain interoperability middleware can send the communication data through the target blockchain network to the smart home device or smart home host that receives the communication data. This enables the communication data of the smart home system to be transmitted based on at least one blockchain network, thereby improving the security of the smart home system.

[0097] The data transmission method provided by the embodiment of the present invention is applied to a multi-chain interoperability middleware, the multi-chain interoperability middleware is deployed in a smart home system, the smart home system also includes a smart home host and at least one smart home device respectively connected to the multi-chain interoperability middleware for communication, the smart home devices are respectively 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, receiving the communication data sent by the smart home device or the smart home host through any blockchain network; in at least one blockchain network, determining the target blockchain network corresponding to the communication data; sending the communication data through the target blockchain network to the smart home device or the smart home host receiving the communication data. In this way, data transmission between smart home devices and smart home hosts can be realized based on at least one blockchain network, effectively improving the security of data transmission and avoiding transmission leakage.

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

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

[0100] S11, determining a security level corresponding to the communication data according to a data type of the communication data;

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

[0102] In a specific implementation, a blockchain network may include at least one blockchain with a security level. Each blockchain network may include multiple blockchains with security levels, so as to transmit communication data with different security levels in different blockchain transmission networks. A blockchain network may also include only one blockchain with a security level, and different blockchain networks may include blockchains with different security levels. Therefore, in the process of transmitting data between the multi-chain interoperability middleware and the smart home host, appropriate blockchain transmission data can be selected according to the different security levels of the communication data.

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

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

[0105] Thereafter, in at least one blockchain network, the target blockchain network corresponding to the communication data and the blockchain of the target security level in the target blockchain network can be determined, so that a blockchain of a suitable 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. For data sharing and collaborative transmission between smart home device suppliers, service providers, security agencies, etc., consortium blockchains can be used to achieve data transmission, while for data such as device activation records, user evaluations, and public device performance statistics, public blockchains can be used for data transmission. For data such as device maintenance records, internal audit logs, and user privacy data, private blockchains can be used for data transmission.

[0107] In one embodiment of the present invention, 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:

[0108] S21, if the target blockchain network is different from the blockchain network that sends the communication data, based on a preset cross-chain communication protocol, 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.

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

[0110] In the specific implementation, when cross-chain communication is required, cross-chain communication protocols such as the Cosmos IBC protocol can be used to achieve data transmission. First, SSL / TLS certificates can be generated and configured for the multi-chain interoperability middleware that needs to perform cross-chain communication, as well as smart home devices or smart home hosts. Afterwards, SSL / TLS certificates can be used to encrypt communication transmission, and data can be transmitted to different blockchain networks based on cross-chain communication protocols. In this way, cross-chain data transmission can be achieved while ensuring the security of data transmission.

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

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

[0113] S32: Based on the hash value, monitor whether the communication data is modified.

[0114] In a specific implementation, in order to further improve the security of data transmission, a hash value corresponding to the communication data can be generated during the transmission of the communication data, and the hash value corresponding to the communication data can be stored in the blockchain network. In the case where the data integrity check is required, the multi-chain interoperability middleware or smart home host can detect in real time whether the hash value of the transmitted communication data has changed compared with the hash value in the blockchain network, thereby avoiding the situation where the data is incomplete.

[0115] At the same time, since the hash value is uploaded to the blockchain network for storage, it is tamper-proof. Therefore, it is also possible to detect in real time whether the hash value of the transmitted communication data has changed compared with the hash value in the blockchain network, and whether the communication data has been modified, so as to further improve the security of data transmission.

[0116] In one embodiment of the present invention, the communication data includes 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, receiving 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, sending the status data 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 a specific implementation, the communication data includes the status data of the smart home device. At this time, the smart home device can regularly send the status data through any blockchain network, and send it to the smart home host through the multi-chain interoperability middleware using the target blockchain network. The smart home host is used to upload the status data to the blockchain network based on the smart contract, so that the operation status data of the smart home device can be regularly collected for further analysis of the status data.

[0122] Among them, a smart contract can be an automated program running on the blockchain, which can automatically execute, control or record preset operations according to preset conditions. Therefore, by setting up a smart contract, when status data is received, the data can be automatically uploaded.

[0123] Specifically, smart home devices such as temperature sensors, smart sockets, security cameras, etc. can send status data such as temperature, power consumption, and energy consumption to the multi-chain interoperability middleware through any blockchain network. The multi-chain interoperability middleware can then select a target blockchain network suitable for transmitting status data in the blockchain network, and send the data to the smart home host through the blockchain network. The smart home host is then used to upload 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 device based on the status data.

[0126] In a specific implementation, the operating status of the smart home device can be monitored based on the status data. Specifically, monitoring the operating status of the smart home device can include real-time temperature monitoring, device status alarm, real-time energy consumption statistics, energy consumption analysis, etc.

[0127] For example, you can filter out temperature data and aggregate data that exceeds a threshold, so that users can monitor temperature changes in their homes. Alarms can also be issued when the status of smart home devices changes (such as high temperature, low battery, etc.). You can also filter out energy consumption data (such as the power consumption of smart sockets) and aggregate it 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 shard 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 relevant data storage in the smart home system, the status data can be sharded, and based on the preset smart contract, the sharded status data can be uploaded to at least one of the blockchain networks.

[0130] For example, for a data set containing multiple smart home devices, where the data of each device includes device ID, data type, timestamp, and data value, the data can be sharded using a hash function and a time window.

[0131] Subsequently, if the blockchain network includes three different blockchain networks, namely Ethereum, Hyperledger Fabric and Corda, smart contracts can be used to store state data in different blockchain networks, so 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 respectively 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, receiving home control data sent by a smart home device 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, sending 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;

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

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

[0140] In specific implementation, cross-chain data transmission can usually occur in the linkage operation of different home function systems. Different home function systems can be implemented using different blockchain networks. In the scenario of linkage control, such as when the smart lighting system and the smart security system need to be linked, if the user wants the smart security system to automatically start the monitoring mode when leaving home, and the smart lighting system to automatically turn off all lights, cross-chain transmission may occur.

[0141] In this case, for any home function system, home control data sent by smart home devices in the home function system through any blockchain network can be received, and the home control data can be sent to the smart home host that receives the home control data through the target blockchain network. The smart home host determines the home linkage event of the home control data, and generates linkage control data for the home linkage event and sends 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.

[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, receiving 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, sending 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.

[0147] In a specific implementation, when a smart home device needs to access a smart home host, it can send identity registration data. The multi-chain interoperability middleware can send the identity registration data to the smart home host through the target blockchain network. The smart home host can add the smart home device to the smart home system based on the identity registration data, and then upload the identity registration data to the blockchain network. The identity of the smart home device can be subsequently verified based on the identity registration data in the blockchain network, and the identity registration data can be prevented from being tampered with.

[0148] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

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

[0150] A data receiving module 301 is used to receive communication data sent by the smart home device or the smart home host through any blockchain network when data is transmitted between the smart home device and the smart home host;

[0151] A target blockchain network determination module 302 is used to determine a 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 by the embodiment of the present invention is applied to a multi-chain interoperability middleware, and the multi-chain interoperability middleware is deployed in a smart home system. The smart home system also includes a smart home host and at least one smart home device that are respectively connected to the multi-chain interoperability middleware for communication, and the smart home devices are respectively deployed in at least one blockchain network. The method includes: when data transmission is performed between the smart home device and the smart home host, receiving communication data sent by the smart home device or the smart home host through any blockchain network; in at least one blockchain network, determining the target blockchain network corresponding to the communication data; and sending the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data. In this way, data transmission between smart home devices and smart home hosts can be realized based on at least one blockchain network, effectively improving the security of data transmission and avoiding transmission leakage.

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

[0155] The target blockchain network determination module includes:

[0156] A security level determination module, used to determine the security level corresponding to the communication data according to the data type of the communication data;

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

[0158] Optionally, the data sending module includes:

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

[0160] Optionally, the device further comprises:

[0161] A hash value generation module, 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] A detection module is used to monitor whether the communication data has been modified based on the hash value.

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

[0164] The data receiving module comprises:

[0165] A status data receiving submodule, used to receive status data sent by the smart home device through any blockchain network;

[0166] The data sending module comprises:

[0167] The status data sending submodule is used to send the status data 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.

[0168] Optionally, the device further comprises:

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

[0170] Optionally, the smart home host is specifically used to shard the status data, and based on a preset smart contract, upload the sharded 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 respectively deployed in at least one home function system;

[0173] The data receiving module comprises:

[0174] A home control data receiving submodule, for receiving, for any home function system, home control data sent by a smart home device in the home function system through any blockchain network;

[0175] The data sending module comprises:

[0176] A 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, used to determine, in at least one blockchain network, a linkage blockchain network corresponding to the linkage control data;

[0178] The linkage 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 comprises:

[0181] An identity registration data receiving submodule, used to receive identity registration data sent by the smart home device through any blockchain network;

[0182] The data sending module comprises:

[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 for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0185] In addition, an embodiment of the present invention further provides 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, used for storing computer programs;

[0187] The processor 401 is used to execute the program stored in the memory 403 to implement the following steps:

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

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

[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 blockchain of a security level;

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

[0193] Determining a security level corresponding to the communication data according to the data type of the communication data;

[0194] In at least one blockchain network, a target blockchain network corresponding to the communication data and a blockchain of a target security level in the target blockchain network are determined.

[0195] Optionally, 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:

[0196] If the target blockchain network is different from the blockchain network that sends the communication data, based on a preset cross-chain communication protocol, 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.

[0197] Optionally, the method further comprises:

[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, whether the communication data has been modified is monitored.

[0200] Optionally, the communication data includes 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] Receiving status data sent by the smart home device via 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, and 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 comprises:

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

[0207] Optionally, the smart home host is specifically used to shard the status data, and based on a preset smart contract, upload the sharded 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 respectively 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 home function system, receiving home control data sent by smart home devices in the home function system through any 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, determining a 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] Receiving 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 by the embodiment of the present invention is applied to a multi-chain interoperability middleware, the multi-chain interoperability middleware is deployed in a smart home system, the smart home system also includes a smart home host and at least one smart home device respectively connected to the multi-chain interoperability middleware for communication, the smart home devices are respectively 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, receiving the communication data sent by the smart home device or the smart home host through any blockchain network; in at least one blockchain network, determining the target blockchain network corresponding to the communication data; sending the communication data through the target blockchain network to the smart home device or the smart home host receiving the communication data. In this way, data transmission between smart home devices and smart home hosts can be realized based on at least one blockchain network, effectively improving the security of data transmission and avoiding transmission leakage.

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

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

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

[0225] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0226] like Figure 5 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 501 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the data transmission method described in the above embodiment.

[0227] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the data transmission method described in the above embodiment.

[0228] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part 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, the process or function described in the embodiment of the present invention is generated in whole or in part. 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 computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). 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 includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0229] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0230] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0231] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A data transmission method, characterized in that: It is applied to multi-chain interoperability middleware, the multi-chain interoperability middleware is deployed in a smart home system, the smart home system also includes a smart home host and at least one smart home device respectively connected to the multi-chain interoperability middleware for communication, the smart home device is respectively 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, receiving communication data sent by the smart home device or the smart home host through any blockchain network; In at least one blockchain network, determining a target blockchain network corresponding to the communication data; 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.

2. The method according to claim 1, characterized in that The blockchain network includes at least one security level of blockchain; The step of determining, in at least one blockchain network, a target blockchain network corresponding to the communication data comprises: Determining a security level corresponding to the communication data according to the data type of the communication data; In at least one blockchain network, a target blockchain network corresponding to the communication data and a blockchain of a target security level in the target blockchain network are determined.

3. 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 sends the communication data, based on a preset cross-chain communication protocol, 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.

4. The method according to claim 1, characterized in that The method further comprises: 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, whether the communication data has been modified is monitored.

5. The method according to claim 1, characterized in that The communication data includes 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: Receiving status data sent by the smart home device via 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, and the smart home host is used to upload the status data to the blockchain network based on a preset smart contract.

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

7. The method according to claim 5, characterized in that 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.

8. The method according to claim 1, characterized in that The communication data includes home control data; The at least one smart home device is respectively 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 home function system, receiving home control data sent by smart home devices in the home function system 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 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, determining a 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.

9. 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: Receiving 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.

10. A data transmission device, characterized in that: It is applied to multi-chain interoperability middleware, the multi-chain interoperability middleware is deployed in a smart home system, the smart home system also includes a smart home host and at least one smart home device respectively connected to the multi-chain interoperability middleware for communication, the smart home device is respectively deployed in at least one blockchain network, and the device includes: A data receiving module, used for receiving communication data sent by the smart home device or the smart home host through any blockchain network when data is transmitted between the smart home device and the smart home host; A target blockchain network determination module, used to determine a target blockchain network corresponding to the communication data in at least one blockchain network; A data sending module is used to send the communication data through the target blockchain network to the smart home device or the smart home host that receives the communication data.

11. 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; The processor is used to implement the method according to any one of claims 1 to 9 when executing the program stored in the memory.

12. A computer-readable medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Authentication method, blockchain node and storage medium

    CN109302415A

  • Smart home system based on blockchain

    CN109407530A

  • 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

  • Smart home control method and cloud server

    CN114205068A