CN110687821A - Intelligent home control system and method based on block chain - Google Patents

Intelligent home control system and method based on block chain Download PDF

Info

Publication number
CN110687821A
CN110687821A CN201911112209.6A CN201911112209A CN110687821A CN 110687821 A CN110687821 A CN 110687821A CN 201911112209 A CN201911112209 A CN 201911112209A CN 110687821 A CN110687821 A CN 110687821A
Authority
CN
China
Prior art keywords
intelligent
block chain
target
data
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911112209.6A
Other languages
Chinese (zh)
Other versions
CN110687821B (en
Inventor
黎新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911112209.6A priority Critical patent/CN110687821B/en
Publication of CN110687821A publication Critical patent/CN110687821A/en
Application granted granted Critical
Publication of CN110687821B publication Critical patent/CN110687821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses an intelligent home control system and method based on a block chain, and belongs to the technical field of block chains. The system comprises a first blockchain system and a second blockchain system, wherein the first blockchain system comprises a plurality of intelligent devices, and the second blockchain system comprises at least one data processing device; the data processing equipment is used for acquiring an equipment state adjustment request of a target user, generating an equipment state adjustment instruction when the target user has equipment adjustment rights, and sending the instruction to the target intelligent equipment; the target intelligent device is used for adjusting the state of the device based on the device state adjustment instruction and sending the device state adjustment record and the device state adjustment result to the second block chain system; the data processing device is used for detecting whether the state adjustment result is matched with the state adjustment instruction or not and determining a risk device based on the detection result; the data processing device is used for storing the device state adjustment result and the device state adjustment record to the block chain.

Description

Intelligent home control system and method based on block chain
Technical Field
The application relates to the technical field of block chains, in particular to an intelligent home control system and method based on a block chain.
Background
With the development of the internet of things technology, smart homes are increasingly popularized, in the current smart home control system, each smart device is connected into the same local area network, a centralized control main node is arranged in the local area network, each smart device needs to send information to the main node regularly and report the current device state, the main node can store and monitor the device state of each smart device and also can send instructions to each smart device, each smart device completes a specific task based on the instructions, and information interaction among the smart devices also depends on the main node to perform data transmission.
In the above intelligent home control system, data storage and data transmission of each intelligent device are all dependent on a control master node in the system, and in such a centralized control mode, when the master node is illegally controlled or data is stolen, data security of each intelligent device in the system is affected, so how to improve security of the intelligent home control system and ensure data security of the intelligent device is an important research direction at present.
Disclosure of Invention
The embodiment of the application provides an intelligent home control system and method based on a block chain, and the problem that the data security of the intelligent home control system is low in the related art can be solved. The technical scheme is as follows:
in one aspect, a smart home control system based on a block chain is provided, and the system comprises a first block chain system and a second block chain system;
the first blockchain system comprises a plurality of intelligent devices, and the second blockchain system comprises at least one data processing device;
the data processing device in the second blockchain system is configured to obtain a device state adjustment request of a target user, where the device state adjustment request includes a device identifier of a target smart device and a user identifier of the target user;
the data processing device is used for judging whether the target user has device adjustment authority or not based on the user identification and the authority information in the second block chain system;
the data processing device is used for acquiring the device state information of the target intelligent device based on the device identification when the target user has the device adjustment right;
the data processing device is used for generating a device state adjusting instruction based on the device state adjusting request and the device state information of the target intelligent device;
the data processing device is used for sending a device state adjusting instruction to the target intelligent device in the first block chain system based on the device identification;
the target intelligent device is used for adjusting the device state based on the device state adjustment instruction and sending a device state adjustment record and a device state adjustment result to the second block chain system;
the data processing device is used for detecting whether the state adjustment result is matched with the state adjustment instruction or not, and when the state adjustment result is not matched with the state adjustment instruction, the target intelligent device is marked as a risk device;
the data processing device is configured to store the device state adjustment result and the device state adjustment record in the block chain of the second block chain system.
On one hand, an intelligent home control method based on a block chain is provided, and the method comprises the following steps:
acquiring a device state adjustment request of a target user by data processing equipment in a second block chain system, wherein the device state adjustment request comprises a device identifier of target intelligent equipment and a user identifier of the target user;
the data processing equipment judges whether the target user has equipment adjustment authority or not based on the user identification and the authority information in the second block chain system;
when the target user has the device adjustment right, the data processing device acquires the device state information of the target intelligent device based on the device identification;
the data processing equipment generates an equipment state adjusting instruction based on the equipment state adjusting request and the equipment state information of the target intelligent equipment;
the data processing equipment sends an equipment state adjusting instruction to target intelligent equipment in the first block chain system based on the equipment identification;
the target intelligent device adjusts the device state based on the device state adjustment instruction, and sends a device state adjustment record and a device state adjustment result to the second block chain system;
the data processing equipment detects whether the state adjustment result is matched with the state adjustment instruction or not, and if not, the target intelligent equipment is marked as risk equipment;
the data processing device stores the device state adjustment result and the device state adjustment record to the block chain of the second block chain system.
In one possible implementation, the method further comprises:
the intelligent equipment sends a registration request to the second block chain system;
the data processing device in the second blockchain system receives a registration request of the intelligent device in the first blockchain system, wherein the registration request comprises a blockchain identifier of the first blockchain system;
the data processing equipment allocates an equipment identifier to the intelligent equipment based on the registration request, wherein the equipment identifier comprises the block chain identifier of the first block chain system;
and the data processing equipment generates an equipment registration record based on the registration request and the equipment identification, and stores the equipment registration record to the block chain of the second block chain system.
In one possible implementation, the method further comprises:
the data processing equipment in the second blockchain system receives an equipment deleting request of the first blockchain system, wherein the equipment deleting request comprises an equipment identifier of equipment to be deleted;
the data processing equipment generates an equipment deletion record based on the equipment identifier of the equipment to be deleted, and stores the equipment deletion record to the block chain of the second block chain system;
the data processing device also sends the device deletion record to each intelligent device of the first blockchain system.
In one possible implementation, the method further comprises:
a first intelligent device in the first block chain system receives a data acquisition request of a second intelligent device in the plurality of intelligent devices, wherein the data acquisition request carries a private key signature of the first intelligent device;
verifying the data acquisition request based on the public key of the second intelligent device;
when the verification is passed, acquiring the data indicated by the data acquisition request;
and encrypting the data by using the public key of the second intelligent device, and sending the encrypted data to the second intelligent device.
In one possible implementation, the method further comprises:
the second intelligent device synchronizes data acquisition requests to each device in the first blockchain system based on a consensus mechanism.
In one possible implementation, the method further comprises:
any intelligent device in the plurality of intelligent devices generates a target block based on the target data;
and the any intelligent equipment encrypts the data in the target block by using the public key and stores the encrypted target block to the block chain of the first block chain system.
In one possible implementation, the target data is data collected by any one of the plurality of smart devices during a first target period.
In one possible implementation, the method further comprises:
at least one safety detection device obtains the risk value of each intelligent device in the first block chain system.
In one possible implementation, the at least one security detection device calculating the risk value of each smart device in the first blockchain system includes:
the at least one safety detection device generates operation characteristics of each intelligent device based on operation data collected by each intelligent device in a second target period;
the at least one safety detection device clusters the intelligent devices based on the operation characteristics of the intelligent devices;
and the at least one safety detection device determines the risk value of each intelligent device based on the clustering result.
In one possible implementation, the method further comprises:
the at least one safety detection device compares the risk value of each intelligent device with a risk threshold value; when the risk value of any smart device is greater than the risk threshold, the any smart device is marked as a risk device.
The intelligent home control system provided by the embodiment of the application comprises a first block chain system and a second block chain system, wherein the first block chain system comprises a plurality of intelligent devices, and the second block chain system comprises at least one data processing device; the data processing device in the second block chain system is configured to obtain a device state adjustment request of a target user, determine whether the target user has a device adjustment permission, generate a device state adjustment instruction based on the device state adjustment request and device state information of the target intelligent device when the target user has the device adjustment permission, and send the device state adjustment instruction to the target intelligent device in the first block chain system; the target intelligent device is used for adjusting the device state based on the device state adjustment instruction and sending a device state adjustment record and a device state adjustment result to the second block chain system; the data processing device is used for detecting whether the state adjustment result is matched with the state adjustment instruction or not and determining risk equipment based on the matching result; the data processing device is configured to store the device state adjustment result and the device state adjustment record in the block chain of the second block chain system. In the above-mentioned smart home control system, a plurality of smart devices may form a first block chain system, each smart device in the first block chain system executes a step of adjusting a device state based on a user instruction of a second block chain system, and stores device operation data in a block chain of the second block chain system, and the second block chain system may perform authority authentication on a user who triggers the instruction and detect abnormal devices based on the device operation data, and management of each smart device in the first block chain system, that is, the smart home control system, may be implemented by the second block chain system.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an intelligent home control system based on a block chain according to an embodiment of the present application;
fig. 2 is a flowchart of a method for registering an intelligent device based on a block chain according to an embodiment of the present application;
fig. 3 is a block chain structure according to an embodiment of the present application;
fig. 4 is a flowchart of an intelligent home control method provided in the embodiment of the present application;
fig. 5 is a schematic diagram of a data transmission protocol provided in an embodiment of the present application;
fig. 6 is a flowchart of a method for transmitting data between intelligent devices according to an embodiment of the present disclosure;
fig. 7 is a flowchart of a risk device determination method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like, in this application, are used for distinguishing between similar items and items that have substantially the same function or similar functionality, and it should be understood that "first," "second," and "nth" do not have any logical or temporal dependency, nor do they define a quantity or order of execution.
The term "at least one" in this application means one or more, "a plurality" means two or more, for example, a plurality of node apparatuses means two or more node apparatuses.
In order to facilitate understanding of the technical processes of the embodiments of the present application, some terms referred to in the embodiments of the present application are explained below:
blockchain (blockchain): the method is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The blockchain is essentially a decentralized database, which is a string of data blocks associated by cryptography, each data block containing information about a network transaction for verifying the validity (anti-counterfeiting) of the information and generating the next block, each block containing a timestamp and a link to the previous block. In a narrow sense, a blockchain is a distributed ledger of data blocks assembled in a sequential manner into a chain data structure in chronological order and cryptographically secured as non-falsifiable and non-forgeable, i.e. the data in the blockchain will be irreversible once recorded.
Consensus mechanism (consensus mechanism): the block chain system is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes. In the block chain system, the verification and confirmation of the transaction can be completed in a short time through the voting of special nodes, and if a plurality of nodes with irrelevant benefits can achieve consensus on a transaction, all the nodes in the system can also achieve consensus on the transaction.
Smart contract (smart contract): is a computer protocol intended to propagate, validate or execute contracts in an informational manner. Each node in the blockchain system can automatically execute a contract program according to a specific condition, can operate data stored in the chain, and is an important way for a user to interact with the blockchain and realize business logic by using the blockchain. The goal of smart contracts is to provide a secure method over traditional contracts and to reduce other transaction costs associated with the contracts, which allows for trusted transactions that are traceable and irreversible without third parties.
Public key (public key) and private key (private key): is a key pair (i.e., a public key and a private key) obtained by an algorithm, the public key being a public part of the key pair, and the private key being a non-public part. Public keys are typically used to encrypt data, verify digital signatures, and the like. By means of this algorithm it is ensured that the resulting key pair is unique, and that when using this key pair, if one of the keys is used to encrypt a piece of data, the other key must be used to decrypt it, e.g. if the data is encrypted with the public key, the private key must be used to decrypt it, and if the data is encrypted with the private key, the public key must be used to decrypt it, otherwise the decryption will not succeed.
Main chain and daughter chain: the main chain is a universal bottom layer block chain, also called a mother chain, the sub-chain is composed of Internet of things equipment and is a block chain constructed on the basis of the main chain, and the chain on the chain is the sub-chain. A child chain may correspond to an industry, a vertical domain, or an enterprise, etc. When a child chain is created, the related information of the child chain is recorded in the main chain, that is, the data uplink of the child chain must be stored, verified and traced back by the corresponding main chain.
Internet of Things (IOT): the system is an extension and an expansion on the basis of the Internet, is a huge network formed by combining various information sensing devices and the Internet, and can realize the interconnection and intercommunication of people, machines and things at any time and any place. The internet of things as a complex ecosystem can generate trillions of mass data.
Intelligent house control system: various devices in a certain household or a plurality of households, such as audio and video devices, lighting devices, curtain control devices, air conditioners, security systems and the like, are connected together through the Internet of things technology, and multiple functions and means such as household appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment monitoring, heating and ventilation control, infrared forwarding, programmable timing control and the like are provided. The development of the smart home technology makes home automation possible, and a comfortable, safe, convenient and efficient living environment is provided for users by integrating or controlling electronic and electric products or systems in homes.
Fig. 1 is a schematic structural diagram of a smart home control system based on a block chain according to an embodiment of the present disclosure, referring to fig. 1, the smart home control system may include a first block chain system 101 and a second block chain system 102, where the first block chain system 101 may include a plurality of smart devices 103, each smart device 103 is a node device in the first block chain system 101, the smart device 103 may be any device with computing processing capability, for example, a smart home device such as a smart audio, a smart washing machine, and the like, and of course, the smart device 103 may also be a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like, and the plurality of smart devices may belong to the same user or different users, which is not limited in this embodiment of the present disclosure, the second block chain system 102 may include at least one data processing device 104, each data processing device 104 is a node device in the second blockchain system 102, and the data processing device 104 may be at least one of a terminal, a server, a cloud computing platform, and the like, which is not limited in this embodiment of the present invention.
The first blockchain system 101 and the second blockchain system 102 can be connected via a wired network or a wireless network to ensure that data transmission can be performed between each intelligent device 103 and each data processing device 104, in this embodiment, the second blockchain system 102 can be a master blockchain system, a corresponding blockchain thereof is a master chain, the first blockchain system 101 can be a sub-blockchain system, a corresponding blockchain thereof is a sub-chain, one master blockchain system can include at least one sub-blockchain system, each sub-blockchain system can be managed based on the master blockchain system, for example, the master blockchain system can receive a device state adjustment instruction of a user and perform authority authentication on the instruction sending user, and when authentication is passed, send the device state adjustment instruction to the sub-blockchain system, each intelligent device in the sub-blockchain system can adjust the instruction based on the device state, and executing corresponding equipment state adjustment steps, wherein the main block chain system acquires an instruction execution result based on each intelligent equipment, and determines risk equipment based on the instruction execution result.
In the above-mentioned smart home control system, a plurality of smart devices may form a first block chain system, each smart device in the first block chain system executes a step of adjusting a device state based on a user instruction of a second block chain system, and stores device operation data in a block chain of the second block chain system, and the second block chain system may perform authority authentication on a user who triggers the instruction and detect abnormal devices based on the device operation data, and management of each smart device in the first block chain system, that is, the smart home control system, may be implemented by the second block chain system.
Fig. 2 is a flowchart of an intelligent device registration method based on a block chain according to an embodiment of the present application, where the method may be applied to any intelligent device in the first area block chain system and any data processing device in the second area block chain system, as shown in fig. 2, and the method specifically includes the following steps:
201. an intelligent device in a first blockchain system sends a registration request to a second blockchain system.
In this embodiment, the second blockchain system may be configured to provide services such as node registration and data storage, and when any intelligent device joins the first blockchain system, it needs to register in the second blockchain system, specifically, the any intelligent device may send a registration request to the second blockchain system, where the registration request may include a blockchain identifier of the first blockchain system.
In a possible implementation, the blockchain identifier may be assigned by the second blockchain system, and specifically, when the blockchain identifier is not included in the registration request of any intelligent device, the data processing device determines that the any intelligent device does not add any existing sub-blockchain system, and the any intelligent device may construct a new sub-blockchain system and assign a blockchain identifier by the data processing device.
202. The data processing device in the second blockchain system receives a registration request of the intelligent device in the first blockchain system.
203. The data processing device assigns a device identification to the smart device based on the registration request.
In an embodiment of the present application, the device identifier may include a blockchain identifier of the first blockchain system, and in a possible implementation, the device identifier may be composed of the blockchain identifier and an array allocated by the data processing device, and a device identifier may be used to uniquely indicate an intelligent device in the first blockchain system.
204. And the data processing equipment generates an equipment registration record based on the registration request and the equipment identification, and stores the equipment registration record to the block chain of the second block chain system.
The device registration record may include a device identifier and a registration time of the intelligent device, and may also include a blockchain identifier of a blockchain system in which the intelligent device is located.
In one possible implementation, the data processing device may store the device registration record onto the blockchain of the second blockchain system based on a consensus mechanism. Specifically, each node device in the second blockchain system has a node identifier corresponding thereto, and each node device in the second blockchain system may store node identifiers of other node devices in the blockchain system, so that the generated block is broadcast to other node devices in the blockchain system according to the node identifiers of the other node devices, and the block is commonly identified by the other node devices. Each node device may maintain a node identifier list as shown in the following table, and store the node name and the node identifier in the node identifier list correspondingly. The node identifier may be any information that can be used to identify the node device, such as an IP (Internet Protocol) address of the node device, and table 1 only illustrates the IP address as an example.
TABLE 1
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
Each node device in the second blockchain system may store one identical blockchain. A block chain is composed of a plurality of blocks, fig. 3 is a schematic diagram of a block chain structure provided in the embodiment of the present application, referring to fig. 3, the block chain is composed of a plurality of blocks, a starting block 301 includes a block header and a block main body, the block header stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block 302 of the starting block takes the starting block 301 as a parent block, the next block 302 also comprises a block head and a block main body, and the block head stores the input information characteristic value of the current block 303, the block head characteristic value, the version number, the timestamp and the difficulty value of the parent block, and so on, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the security of the input information in the block is ensured.
In this embodiment, the input information may be at least one device registration record or the like, after the node device completes verification on the input information, the node device stores the input information in a memory pool, and updates a hash tree used for recording the input information, and then updates an update timestamp to a time when the input information is received, tries different random numbers, and performs characteristic value calculation for multiple times, so that the calculated characteristic value may satisfy the following formula:
SHA256(SHA256(version+prev_merkle_rool+ntime+nbits+x))<TARGET
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits.
Therefore, when the random number meeting the formula is obtained through calculation, the information can be correspondingly stored, and the block head and the block main body are generated to obtain the current block. Then, the node where the block chain is located sends the newly generated current block to other nodes in the block chain system where the block chain is located according to the node identifiers of other nodes in the second block chain system, the other nodes perform consensus on the newly generated current block, the current block can be added into the block chain after the current block passes the consensus, each storage node device and user node device in the second block chain system can synchronize the device registration record, and certainly, if the current block does not pass the consensus, the block uplink operation may not be performed.
It should be noted that the above description of storing the device registration record in the blockchain is only an exemplary description of one storage method, and the embodiment of the present application does not limit which storage method is specifically adopted.
The foregoing embodiment mainly introduces a process of adding an intelligent device in a first blockchain system, and when any intelligent device in the first blockchain system is deleted, a data processing device in a second blockchain system receives a device deletion request of the first blockchain system, where the device deletion request may be sent by a device used by a user in the first blockchain system or may be sent by a device to be deleted, the device deletion request may include a device identifier of the device to be deleted, the data processing device generates a device deletion record based on the device identifier of the device to be deleted, stores the device deletion record to a blockchain of the second blockchain system, and of course, the data processing device may also send the device deletion record to each intelligent device in the first blockchain system, and after each intelligent device obtains the device deletion record, that is, it is determined that the device to be deleted has been deleted and each smart device no longer performs data interaction with it.
In the intelligent device management method based on the block chain, the registration information of each intelligent device in the first block chain system is stored in the second block chain system, the modification, synchronization and the like of the device information of each intelligent device in the first block chain system are completed through the second block chain system, and based on the decentralized data management mode of the block chain system, the data of each intelligent device is stored in a distributed mode.
In this embodiment of the application, each smart home device in the smart home control system may store the collected user data and log data generated during device operation in a block chain corresponding to the smart home control system, that is, in the block chain of the first block chain system, and in a possible implementation manner, the process may specifically include the following steps:
step one, any intelligent device in the first blockchain system can generate a target block based on target data.
In this embodiment of the application, the target data is data collected by any one of the plurality of smart devices in the first target period, for example, the target data may be log data generated when the smart device operates in the first target period, or may be user data collected in the first target period, including image data, audio data, video data, and the like, and of course, the target data may also include a received user instruction, which is not limited in this embodiment of the application. The first target period can be set by an operator of the blockchain system based on business requirements.
The process of generating the target block is the same as the process of generating each block in the block chain in step 204, and is not described herein again.
And step two, the intelligent equipment can encrypt the data in the target block by using a public key and store the encrypted target block to the block chain of the first block chain system.
In one possible implementation, the smart device may generate a key pair based on an RSA (Rivest-Shamir-Adleman) encryption algorithm, where the key pair includes a public key and a private key, and the smart device may encrypt data in the target block using the public key.
In this embodiment of the application, the any intelligent device may store the target block on the block chain of the first block chain system based on a consensus mechanism, and the process is similar to the process in which each node device performs consensus on the current block in step 204, which is not described herein again.
In the data storage process, by applying a distributed accounting mode, data in the target block can be synchronized with each intelligent device in the first block chain system, and each intelligent device can store information such as position information of the target block, hash value of the target block, storage time of the target block and the like, so that data tampering and data loss can be effectively avoided, and data in the target block is encrypted through a public key.
In this embodiment of the present application, the second blockchain system may control the first blockchain system to obtain operation data of each intelligent device in the first blockchain system, referring to fig. 4, where fig. 4 is a flowchart of an intelligent home control method provided in this embodiment of the present application, and the method specifically may include the following steps:
401. and the data processing equipment in the second block chain system acquires an equipment state adjustment request of a target user, wherein the equipment state adjustment request comprises the equipment identification of the target intelligent equipment and the user identification of the target user.
The target user may be any user, the computer device used by the target user is a node device in the second blockchain system, and the user identifier may be used to uniquely indicate a user.
402. And the data processing equipment judges whether the target user has equipment adjustment authority or not based on the user identification and the authority information in the second block chain system.
In a possible implementation manner, the permission information may include a blockchain identifier of at least one blockchain system and a permission list corresponding to each sub-blockchain system, and a permission list of one sub-blockchain system may include a user identifier of at least one user, where the at least one user is a user having an operation permission for the one sub-blockchain system. In a possible implementation manner, the permission information may further define the smart devices operated by the respective users, for example, a certain user may operate a part of the smart devices in a certain sub-blockchain system, and the permission information may record the corresponding relationship between the user and the permission of the respective smart devices.
When the target user has the device adjustment right, the data processing device may continue to perform step 403, and when the target user does not have the device adjustment right, the data processing device may send a prompt to the target user that the device status adjustment request has failed.
403. And when the target user has the device adjustment right, the data processing device acquires the device state information of the target intelligent device based on the device identification.
In one possible implementation, the target smart device may send a status data acquisition request to the target smart device, and the target smart device provides the current device operating status.
404. The data processing device generates a device state adjustment instruction based on the device state adjustment request and the device state information of the target smart device.
In one possible implementation, the state adjustment instruction may include information such as a state identifier and a state adjustment value of the state to be adjusted, for example, when the target smart device is a smart audio, the state adjustment request may be "volume down", the state to be adjusted is "volume", the device state information may be "volume 70", and the data processing device may generate the state adjustment instruction "volume down 30" based on the state adjustment request and the device state information.
405. The data processing device sends a device state adjustment instruction to a target intelligent device in the first blockchain system based on the device identification.
In a possible implementation manner, the data processing device may send the device state adjustment instruction to each node device in the second blockchain system, and the node devices perform consensus on the device state adjustment instruction, and after the consensus is passed, the second blockchain system sends the device state adjustment instruction to the target intelligent device.
406. The target intelligent device adjusts the device state based on the device state adjustment instruction, sends a device state adjustment record and a device state adjustment result to the second block chain system, and the data processing device stores the device state adjustment result and the device state adjustment record to a block chain of the second block chain system.
In the embodiment of the present application, the process of storing the device state adjustment record and the device state adjustment result in the blockchain is the same as the process of storing the device registration record in the blockchain in step 204, and details are not described herein.
407. And the data processing equipment detects whether the state adjustment result is matched with the state adjustment instruction or not, and marks the target intelligent equipment as risk equipment when the state adjustment result is not matched with the state adjustment instruction.
In one possible implementation, the data processing device may store information that the target smart device is a risk device on the blockchain of the second blockchain system, and may also send the information to each smart device in the first blockchain system, and each smart device may stop data interaction with the target smart device based on the information.
The first block chain system, namely the intelligent home system, can be controlled through the second block chain system, the second block chain system can also carry out authority authentication on the instruction sending user, detect risk equipment and store equipment operation data, and in the decentralized intelligent home control system, the condition that the data safety of other equipment is influenced due to the fact that a certain equipment is attacked can be effectively avoided, and the safety of the intelligent home control system is further improved.
In the embodiment of the present application, data interaction between the plurality of intelligent devices in the first blockchain system can be directly performed based on a data transmission protocol, see fig. 5, fig. 5 is a schematic diagram of a data transmission protocol according to an embodiment of the present application, where when any intelligent device reads data of other devices, it needs to read the data in the blockchain corresponding to the first blockchain system, namely, the sub-chain is used for carrying out accounting, other devices can carry out data response with the data acquisition request and the accounting result, and based on the data reading mode, the possibility that the data is illegally read and transmitted can be greatly reduced, the specific process of data transmission by each intelligent device in the first blockchain system can be seen in fig. 6, fig. 6 is a flowchart of a method for transmitting data between intelligent devices according to an embodiment of the present disclosure, where the method may include the following steps:
601. and the second intelligent equipment in the plurality of intelligent equipment sends a data acquisition request to the first intelligent equipment in the plurality of intelligent equipment, wherein the data acquisition request carries the private key signature of the first intelligent equipment.
In this embodiment of the application, the data acquisition request may include a URL (Uniform Resource Locator) field, a data _ type field, and a request _ signature field, where the URL field is used to indicate a complete request path of the Resource acquisition request, the data _ type field is used to indicate a data type of the requested data, such as state information, data amount, data block size, and the like, and data corresponding to the request _ signature field is a private key signature of the first smart device.
602. The second intelligent device synchronizes the data acquisition request to each device in the first blockchain system based on a consensus mechanism.
In this embodiment, when the second intelligent device requests data from the first intelligent device, the data acquisition request needs to be stored in the blockchain, that is, the second intelligent device synchronizes the data acquisition request to each device in the first blockchain system, and each device records the data acquisition request, and when the recording of each device is completed or the recording of devices exceeding a target ratio is completed, it may be determined that the data acquisition request passes the consensus, and the data acquisition request is sent to the first intelligent device via the information of the consensus. The target ratio may be set by a developer, and this is not limited in the embodiment of the present application.
In this embodiment of the present application, an execution sequence that a data acquisition request is sent to a first intelligent device first and then the data acquisition request is synchronized to each device in a first blockchain system is described, and a step that the data acquisition request is synchronized to each device in the first blockchain system may also be executed first and then a step that the data acquisition request is sent to the first intelligent device is executed, or both the steps are executed simultaneously, which is not specifically limited in this embodiment of the present application.
603. And the first intelligent device receives the data acquisition request of the second intelligent device and verifies the data acquisition request based on the public key of the second intelligent device.
In one possible implementation manner, after the first smart device receives the data obtaining request and determines that the data obtaining request passes the consensus, the public key of the second smart device may be applied to match the private key signature in the data obtaining request, if the matching is successful, the verification is passed, the second smart device continues to perform the following data obtaining step 604, and if the matching is unsuccessful, the verification is failed, and the second smart device does not need to perform the data obtaining step.
604. When the verification is passed, the first intelligent device acquires the data indicated by the data acquisition request.
In one possible implementation, the first smart device may determine the data requested by the second smart device based on the URL field and the data _ type field in the data acquisition request.
605. The first intelligent device encrypts the data by using the public key of the second intelligent device, and sends the encrypted data to the second intelligent device.
In the embodiment of the present application, the first intelligent device encrypts the data by using the public key of the second intelligent device, and when any device reads the data, it needs to decrypt the data by using the private key of the second intelligent device, that is, it can be ensured that only the second intelligent device can read the data, thereby avoiding data leakage in the data transmission process and ensuring data security.
In the first block chain system, each intelligent device reads data based on a data transmission protocol when reading the data, and encrypts the data by using a public key when transmitting the data, so that the data can be prevented from being illegally read, and the safety of the data transmission process is improved.
In an embodiment of the application, the first blockchain system further includes at least one security detection device, configured to obtain a risk value of each intelligent device in the first blockchain system, and in a possible implementation manner, the at least one security detection device may obtain behavior log information of each intelligent device based on a risk control algorithm, analyze behaviors of each intelligent device based on the behavior log information, and determine the risk value of each intelligent device. Referring to fig. 7, fig. 7 is a flowchart of a risk device determination method provided in the embodiment of the present application, where the method may be applied to any security detection device in the first blockchain system, and the method specifically may include the following steps:
701. and the safety detection equipment generates the operation characteristics of each intelligent device based on the operation data acquired by each intelligent device in the second target period.
In this embodiment of the application, the operation data collected in the second target period may include data of N dimensions, where N is a positive integer, and in one possible implementation, the data collected in the second target period may include 5 dimensions of data of average active times of each smart device, data storage times, data transmission times, average data transmission size, and times of accessing other devices, wherein the average number of active times may be an average number of times that the smart device performs data processing in the second target period, for example, the number of times of executing the user instruction, the number of times of acquiring data of other node devices, the number of times of getting on the device, and the like, the second target period may be M days, M is a positive integer, the specific value may be set by a developer, for example, in the embodiment of the present application, the second target period may be set to 7 days. Each day in the second target period may be divided into X time windows, where X is a positive integer, and a specific numerical value thereof may be set by a developer, for example, X may be set to 8, and a duration corresponding to each time window is 24 hours/X, that is, 3 hours.
In a possible implementation manner, the safety detection device may construct an N-dimensional sub-feature vector based on N-dimensional data acquired in each time window, then construct X × M sub-feature vectors for data acquired by an intelligent device in a second target period, and splice the sub-feature vectors to obtain a feature vector, where the feature vector is an operation feature corresponding to the intelligent device in the second target period, and a dimension of the operation feature may be represented as N × M X, specifically, taking as an example that the safety detection device acquires 5-dimensional data, the second target period is 7 days, and each day is divided into 8 time windows, and the operation feature may be represented as a 280-dimensional vector.
702. The safety detection equipment clusters the intelligent equipment based on the operating characteristics of the intelligent equipment, and determines the risk value of the intelligent equipment based on the clustering result.
In one possible implementation, the security detection device may cluster the smart devices based on a Local anomaly Factor (LOF) algorithm. Specifically, first, the security detection device may determine k-distance (k-proximity distance) of each smart device based on an operating characteristic corresponding to each smart device, where the k-proximity distance may be used to indicate that, among several points closest to a certain data point, a distance between the k-nearest point and the certain data point is referred to as k-proximity distance of the certain data point, where k is a positive integer, and for example, the k-proximity distance for a data point corresponding to the smart device o may be referred to as k-distance (o). Then, the security detection device may calculate the reachable distance between the data points corresponding to the two smart devices, and in one possible implementation, the calculation process may be expressed as the following formula (1):
reach_distk(p,o)=max{k-distance(o),d(p,o)} (1)
wherein, reach _ distkThe (p, o) may be represented as an achievable distance between data points corresponding to the smart device p and the smart device o, k-distance (o) may be represented as a k-adjacent distance between data points corresponding to the smart device o, and d (p, o) may be represented as a straight-line distance between data points corresponding to the smart device p and the smart device o, where the achievable distance is the maximum value taken from k-distance (o) and d (p, o).
The security detection device may determine a local reachable density of a data point corresponding to the smart device based on the reachable distance, and in one possible implementation, the calculation process may be expressed as the following formula (2):
Figure BDA0002273053120000171
wherein, lrdk(p) may be used to represent the locally reachable density of data points for smart device p, | Nk(p) | may be used to represent the number of kth neighborhood points of the data point to which smart device p corresponds.
Finally, the security detection device may calculate the LOF score of each smart device, that is, the risk value of each smart device, and in one possible implementation, the calculation process may be expressed as the following formula (3): .
Wherein, LOFk(p) LOF score, N, of Smart device pk(p) a kth distance neighborhood, lrd, that may be used to represent a data point corresponding to smart device pk(p) may be used to represent the local achievable density of data points corresponding to the smart device p, lrdk(o) may be used to represent the local achievable density of the data point corresponding to the smart device o.
The LOF score may be used to measure the abnormality degree of each intelligent device, and the higher the LOF score is, the larger the abnormality is, in this embodiment, the security detection device may use the LOF score of the intelligent device as the risk value of the intelligent device.
It should be noted that the above description of calculating the risk value of each intelligent device is only an exemplary description of a risk value calculation method, and the embodiment of the present invention does not limit the specifically adopted risk value calculation method.
In a possible implementation manner, the calculation rule of the risk value of the intelligent device may be stored on the blockchain of the first blockchain system in an intelligent contract manner, and may use completion of data acquisition in the second target period as a trigger manner of the intelligent contract, when data acquisition is completed, the intelligent contract may be automatically triggered, the risk value is calculated based on the acquired data, and when data acquisition is not completed or the second target period is not completed, the intelligent contract is not triggered.
703. The safety detection device compares the risk value of each intelligent device with a risk threshold value, and when the risk value of any intelligent device is larger than the risk threshold value, any intelligent device is marked as a risk device.
The risk threshold may be set by a developer, and this is not specifically limited in this embodiment of the application.
In this embodiment of the application, when the security detection device detects that at least one smart device in the first block chain system is a risk device in the second target period, the security detection device may take an active control action on each risk device, for example, each risk device may be shielded or taken off-line. In one possible implementation, the security detection device may also send the device risk list to the second blockchain system, where it is stored.
By the method for determining the risk equipment, whether each intelligent equipment is the risk equipment can be judged from multiple dimensions, possible risk equipment can be found quickly in advance, and the control capacity of the intelligent home system on risks is improved.
The intelligent home control system provided by the embodiment of the application is a home IOT (Internet of Things) network constructed based on a block chain technology, a plurality of Internet of Things devices in the system construct a sub-chain, so that the behavior of each device is more controllable, more storage and computing resources need to be added to each intelligent device in the aspect of hardware, and more software programs need to be embedded in the aspect of software, such as an encryption program and a block chain related computing program. The implementation method of the intelligent home control system can also be applied to other safe wind control links of small and medium-sized networks similar to the Internet of things.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Each device provided in the foregoing technical solution may be implemented as a terminal or a server, for example, fig. 8 is a schematic structural diagram of a terminal provided in this embodiment of the present application. The terminal 800 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 800 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, the terminal 800 includes: one or more processors 801 and one or more memories 802.
The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 801 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 802 is configured to store at least one program code, which is configured to be executed by the processor 801 to implement the blockchain based smart home control method provided in the method embodiments of the present application.
In some embodiments, the terminal 800 may further include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 808, a positioning assembly 808, and a power supply 809.
The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to capture touch signals on or above the surface of the display 805. The touch signal may be input to the processor 801 as a control signal for processing. At this point, the display 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 805 may be one, providing the front panel of the terminal 800; in other embodiments, the display 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a folded design; in some embodiments, display 805 may be a flexible display disposed on a curved surface or a folded surface of terminal 800. Even further, the display 805 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 805 can be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 806 is used to capture images or video. Optionally, camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 801 for processing or inputting the electric signals to the radio frequency circuit 804 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 807 may also include a headphone jack.
The positioning component 808 is used to locate the current geographic position of the terminal 800 for navigation or LBS (location based Service). The positioning component 808 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 809 is used to provide power to various components in terminal 800. The power supply 809 can be ac, dc, disposable or rechargeable. When the power source 809 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 801 may control the display 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the terminal 800. From the data collected by the gyro sensor 812, the processor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side frames of terminal 800 and/or underneath display 805. When the pressure sensor 813 is disposed on the side frame of the terminal 800, the holding signal of the user to the terminal 800 can be detected, and the processor 801 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of the display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of the user, and the processor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 801 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 814 may be disposed on the front, back, or side of terminal 800. When a physical button or a vendor Logo is provided on the terminal 800, the fingerprint sensor 814 may be integrated with the physical button or the vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, processor 801 may control the display brightness of display 805 based on the ambient light intensity collected by optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the display screen 805 is increased; when the ambient light intensity is low, the display brightness of the display 805 is reduced. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known as a distance sensor, is typically provided on the front panel of the terminal 800. The proximity sensor 816 is used to collect the distance between the user and the front surface of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 gradually decreases, the processor 801 controls the display 805 to switch from the bright screen state to the dark screen state; when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 becomes gradually larger, the display 805 is controlled by the processor 801 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting of terminal 800 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 900 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 801 and one or more memories 902, where the one or more memories 902 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 901 to implement the methods provided by the foregoing method embodiments. Certainly, the server 900 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the server 900 may also include other components for implementing device functions, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or implemented by at least one program code associated with hardware, where the program code is stored in a computer readable storage medium, such as a read only memory, a magnetic or optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A smart home control system based on a block chain is characterized in that the system comprises a first block chain system and a second block chain system;
the first blockchain system comprises a plurality of intelligent devices, and the second blockchain system comprises at least one data processing device;
the data processing device in the second blockchain system is configured to obtain a device state adjustment request of a target user, where the device state adjustment request includes a device identifier of a target smart device and a user identifier of the target user;
the data processing device is used for judging whether the target user has a device adjustment authority or not based on the user identification and the authority information in the second block chain system;
the data processing device is used for acquiring the device state information of the target intelligent device based on the device identification when the target user has the device adjustment right;
the data processing device is used for generating a device state adjusting instruction based on the device state adjusting request and the device state information of the target intelligent device;
the data processing device is configured to send a device state adjustment instruction to a target smart device in the first blockchain system based on the device identifier;
the target intelligent device is used for adjusting the device state based on the device state adjustment instruction and sending a device state adjustment record and a device state adjustment result to the second block chain system;
the data processing device is used for detecting whether the state adjustment result is matched with the state adjustment instruction or not, and when the state adjustment result is not matched with the state adjustment instruction, the target intelligent device is marked as a risk device;
and the data processing device is used for storing the device state adjustment result and the device state adjustment record to the block chain of the second block chain system.
2. The system of claim 1, wherein the smart device in the first blockchain system is further configured to send a registration request to the second blockchain system;
the data processing device in the second blockchain system is used for receiving a registration request of the intelligent device in the first blockchain system, wherein the registration request comprises a blockchain identifier of the first blockchain system;
the data processing device is further configured to allocate an equipment identifier to the intelligent device based on the registration request, where the equipment identifier includes a blockchain identifier of the first blockchain system;
the data processing device is further configured to generate a device registration record based on the registration request and the device identifier, and store the device registration record to the block chain of the second block chain system.
3. The system of claim 1, wherein a first smart device of the plurality of smart devices is configured to:
receiving a data acquisition request of a second intelligent device in the plurality of intelligent devices, wherein the data acquisition request carries a private key signature of the first intelligent device;
verifying the data acquisition request based on the public key of the second intelligent device;
when the verification is passed, acquiring the data indicated by the data acquisition request;
and encrypting the data by using the public key of the second intelligent device, and sending the encrypted data to the second intelligent device.
4. The system of claim 3, wherein the second smart device is further configured to synchronize the data acquisition request to each device in the first blockchain system based on a consensus mechanism.
5. The system of claim 1, wherein any of the plurality of smart devices is configured to:
generating a target block based on the target data;
and encrypting the data in the target block by using a public key, and storing the encrypted target block to the block chain of the first block chain system.
6. The system of claim 5, wherein the target data is data collected by any of the plurality of smart devices during a first target period.
7. The system of claim 1, wherein the first blockchain system further comprises at least one security detection device configured to obtain a risk value for each smart device in the first blockchain system.
8. The system of claim 7, wherein the at least one security detection device is configured to:
generating operation characteristics of each intelligent device based on operation data acquired by each intelligent device in a second target period;
clustering the intelligent devices based on the operation characteristics of the intelligent devices;
and determining the risk value of each intelligent device based on the clustering result.
9. The system of claim 8, wherein the at least one security detection device is further configured to:
comparing the risk value of each intelligent device with a risk threshold;
when the risk value of any intelligent device is greater than the risk threshold, any intelligent device is marked as a risk device.
10. A smart home control method based on a block chain is characterized by comprising the following steps:
acquiring a device state adjustment request of a target user by data processing equipment in a second block chain system, wherein the device state adjustment request comprises a device identifier of target intelligent equipment and a user identifier of the target user;
the data processing equipment judges whether the target user has equipment adjustment authority or not based on the user identification and the authority information in the second block chain system;
when the target user has the device adjustment right, the data processing device obtains the device state information of the target intelligent device based on the device identification;
the data processing equipment generates an equipment state adjusting instruction based on the equipment state adjusting request and the equipment state information of the target intelligent equipment;
the data processing equipment sends an equipment state adjusting instruction to target intelligent equipment in a first block chain system based on the equipment identification;
the target intelligent device adjusts the device state based on the device state adjustment instruction, and sends a device state adjustment record and a device state adjustment result to the second block chain system;
the data processing equipment detects whether the state adjustment result is matched with the state adjustment instruction or not, and when the state adjustment result is not matched with the state adjustment instruction, the target intelligent equipment is marked as risk equipment;
and the data processing equipment stores the equipment state adjustment result and the equipment state adjustment record to the block chain of the second block chain system.
CN201911112209.6A 2019-11-14 2019-11-14 Intelligent home control system and method based on block chain Active CN110687821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911112209.6A CN110687821B (en) 2019-11-14 2019-11-14 Intelligent home control system and method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911112209.6A CN110687821B (en) 2019-11-14 2019-11-14 Intelligent home control system and method based on block chain

Publications (2)

Publication Number Publication Date
CN110687821A true CN110687821A (en) 2020-01-14
CN110687821B CN110687821B (en) 2021-10-29

Family

ID=69116695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911112209.6A Active CN110687821B (en) 2019-11-14 2019-11-14 Intelligent home control system and method based on block chain

Country Status (1)

Country Link
CN (1) CN110687821B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343777A (en) * 2020-04-20 2020-06-26 陈依依 Wisdom street lamp control system based on block chain
CN111355724A (en) * 2020-02-26 2020-06-30 上海智知盾科技有限公司 Method and device for controlling artificial intelligence equipment
CN112104665A (en) * 2020-11-02 2020-12-18 腾讯科技(深圳)有限公司 Block chain-based identity authentication method and device, computer and storage medium
CN112468577A (en) * 2020-11-25 2021-03-09 上海欧冶金融信息服务股份有限公司 Data controllable sharing method and system based on data mapping relation
CN112596498A (en) * 2020-12-09 2021-04-02 中国联合网络通信集团有限公司 Fault processing method, device and system based on block chain
CN112651044A (en) * 2020-12-29 2021-04-13 杭州趣链科技有限公司 Business transaction method, system and storage medium based on block chain technology
CN112905238A (en) * 2021-02-08 2021-06-04 北京微芯区块链与边缘计算研究院 Intelligent contract executor and method for block chain and block chain operation system
CN113301043A (en) * 2021-05-24 2021-08-24 珠海市鸿瑞信息技术股份有限公司 Network security terminal based on 5G industrial Internet of things
CN113518103A (en) * 2021-03-01 2021-10-19 唐芮 Industrial Internet of things networking control method and system
CN113905052A (en) * 2021-09-27 2022-01-07 中国联合网络通信集团有限公司 Intelligent home management method, system, device and medium based on block chain
CN114371628A (en) * 2020-10-19 2022-04-19 中国移动通信集团辽宁有限公司 Block chain system, management device, control method of intelligent household appliance and intelligent household appliance
WO2022141024A1 (en) * 2020-12-29 2022-07-07 杭州趣链科技有限公司 Blockchain technology-based business transaction method and system, and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091135A (en) * 2014-02-24 2014-10-08 电子科技大学 Safety system and safety storage method of intelligent terminal
CN104618228A (en) * 2015-01-13 2015-05-13 王征 Intelligent household gateway and system for automatically accessing cloud server by strategy based on intelligent household gateway and application method thereof
CN106338923A (en) * 2016-09-14 2017-01-18 上海百芝龙网络科技有限公司 Intelligent household control system
CN106899603A (en) * 2017-03-14 2017-06-27 微鲸科技有限公司 A kind of smart machine monitoring method and device
CN107026735A (en) * 2016-01-29 2017-08-08 李明 Method and managed devices that a kind of password is automatically entered
CN108809625A (en) * 2018-05-21 2018-11-13 爱图智能(深圳)有限公司 A kind of intelligent home control system based on block chain, method and device
CN108805560A (en) * 2018-06-20 2018-11-13 腾讯科技(深圳)有限公司 Numerical value integration method, device, electronic equipment and computer readable storage medium
CN108880863A (en) * 2018-05-26 2018-11-23 江西理工大学 A kind of smart grid equipment safety diagnostic service system based on block chain technology
CN109346080A (en) * 2018-12-10 2019-02-15 南京创维信息技术研究院有限公司 Sound control method, device, equipment and storage medium
CN109544341A (en) * 2018-11-23 2019-03-29 中链科技有限公司 Digitizing detection method and device based on block chain
KR20190055666A (en) * 2017-11-15 2019-05-23 한전케이디엔주식회사 Method for storing smart grid heterogeneous data security using block chain
CN109842667A (en) * 2017-11-29 2019-06-04 北京京东尚科信息技术有限公司 Method and cloud platform system for cloud platform management smart machine
CN109922162A (en) * 2019-04-26 2019-06-21 山东建筑大学 A kind of flattening Architectural Equipment network monitoring system for things and method based on block chain
CN110244572A (en) * 2019-06-21 2019-09-17 珠海格力智能装备有限公司 Robot and its control method, intelligent home control system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091135A (en) * 2014-02-24 2014-10-08 电子科技大学 Safety system and safety storage method of intelligent terminal
CN104618228A (en) * 2015-01-13 2015-05-13 王征 Intelligent household gateway and system for automatically accessing cloud server by strategy based on intelligent household gateway and application method thereof
CN107026735A (en) * 2016-01-29 2017-08-08 李明 Method and managed devices that a kind of password is automatically entered
CN106338923A (en) * 2016-09-14 2017-01-18 上海百芝龙网络科技有限公司 Intelligent household control system
CN106899603A (en) * 2017-03-14 2017-06-27 微鲸科技有限公司 A kind of smart machine monitoring method and device
KR20190055666A (en) * 2017-11-15 2019-05-23 한전케이디엔주식회사 Method for storing smart grid heterogeneous data security using block chain
CN109842667A (en) * 2017-11-29 2019-06-04 北京京东尚科信息技术有限公司 Method and cloud platform system for cloud platform management smart machine
CN108809625A (en) * 2018-05-21 2018-11-13 爱图智能(深圳)有限公司 A kind of intelligent home control system based on block chain, method and device
CN108880863A (en) * 2018-05-26 2018-11-23 江西理工大学 A kind of smart grid equipment safety diagnostic service system based on block chain technology
CN108805560A (en) * 2018-06-20 2018-11-13 腾讯科技(深圳)有限公司 Numerical value integration method, device, electronic equipment and computer readable storage medium
CN109544341A (en) * 2018-11-23 2019-03-29 中链科技有限公司 Digitizing detection method and device based on block chain
CN109346080A (en) * 2018-12-10 2019-02-15 南京创维信息技术研究院有限公司 Sound control method, device, equipment and storage medium
CN109922162A (en) * 2019-04-26 2019-06-21 山东建筑大学 A kind of flattening Architectural Equipment network monitoring system for things and method based on block chain
CN110244572A (en) * 2019-06-21 2019-09-17 珠海格力智能装备有限公司 Robot and its control method, intelligent home control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
焦英楠: "基于区块链技术的物联网安全研究", 《软件》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355724A (en) * 2020-02-26 2020-06-30 上海智知盾科技有限公司 Method and device for controlling artificial intelligence equipment
CN111343777A (en) * 2020-04-20 2020-06-26 陈依依 Wisdom street lamp control system based on block chain
CN114371628B (en) * 2020-10-19 2023-11-10 中国移动通信集团辽宁有限公司 Block chain system, management device, control method of intelligent household appliance and intelligent household appliance
CN114371628A (en) * 2020-10-19 2022-04-19 中国移动通信集团辽宁有限公司 Block chain system, management device, control method of intelligent household appliance and intelligent household appliance
CN112104665A (en) * 2020-11-02 2020-12-18 腾讯科技(深圳)有限公司 Block chain-based identity authentication method and device, computer and storage medium
CN112468577B (en) * 2020-11-25 2021-11-02 上海欧冶金融信息服务股份有限公司 Data controllable sharing method and system based on data mapping relation
CN112468577A (en) * 2020-11-25 2021-03-09 上海欧冶金融信息服务股份有限公司 Data controllable sharing method and system based on data mapping relation
CN112596498A (en) * 2020-12-09 2021-04-02 中国联合网络通信集团有限公司 Fault processing method, device and system based on block chain
WO2022141024A1 (en) * 2020-12-29 2022-07-07 杭州趣链科技有限公司 Blockchain technology-based business transaction method and system, and storage medium
CN112651044A (en) * 2020-12-29 2021-04-13 杭州趣链科技有限公司 Business transaction method, system and storage medium based on block chain technology
CN112651044B (en) * 2020-12-29 2024-03-01 杭州趣链科技有限公司 Business transaction method, system and storage medium based on block chain technology
CN112905238A (en) * 2021-02-08 2021-06-04 北京微芯区块链与边缘计算研究院 Intelligent contract executor and method for block chain and block chain operation system
CN113518103A (en) * 2021-03-01 2021-10-19 唐芮 Industrial Internet of things networking control method and system
CN113301043A (en) * 2021-05-24 2021-08-24 珠海市鸿瑞信息技术股份有限公司 Network security terminal based on 5G industrial Internet of things
CN113905052A (en) * 2021-09-27 2022-01-07 中国联合网络通信集团有限公司 Intelligent home management method, system, device and medium based on block chain
CN113905052B (en) * 2021-09-27 2024-02-06 中国联合网络通信集团有限公司 Block chain-based intelligent home management method, system, equipment and medium

Also Published As

Publication number Publication date
CN110687821B (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN110687821B (en) Intelligent home control system and method based on block chain
CN108614878B (en) Protocol data management method, device, storage medium and system
CN111245745B (en) Message sending method, device, node equipment and storage medium
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN110826103B (en) Method, device, equipment and storage medium for processing document authority based on blockchain
CN110689460A (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN110598386B (en) Block chain-based data processing method, device, equipment and storage medium
CN110602206A (en) Data sharing method and device based on block chain and storage medium
CN111339181B (en) Block storage method, block storage device, node equipment and storage medium
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN110555780B (en) Insurance data processing method, device and equipment based on block chain and storage medium
CN112417425A (en) Equipment authentication method, device, system, terminal equipment and storage medium
CN111241115B (en) Data synchronization method, device, equipment and storage medium
CN110581891A (en) Game data processing method, device, equipment and storage medium based on block chain
CN111667371B (en) Resource aggregation method, system, device and storage medium based on block chain
CN111212074B (en) Blockchain-based qualification identification method, device, equipment and storage medium
CN110677262B (en) Information notarization method, device and system based on blockchain
CN111145034A (en) Block chain-based social security management method, device and system and storage medium
CN110597868B (en) Information query method, device, terminal and storage medium based on block chain
CN111198922B (en) Game resource management method and device based on block chain
CN110532324B (en) Block chain-based bulletin information display method, device, equipment and storage medium
CN110597840A (en) Partner relationship establishing method, device, equipment and storage medium based on block chain
CN109547444B (en) Virtual object acquisition method and device and electronic equipment
CN111327427B (en) Method, device, node equipment, system and storage medium for submitting alternative blocks
CN113630405A (en) Network access authentication method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant