CN110971412A - Method for safe network distribution of smart home based on block chain - Google Patents

Method for safe network distribution of smart home based on block chain Download PDF

Info

Publication number
CN110971412A
CN110971412A CN201911230626.0A CN201911230626A CN110971412A CN 110971412 A CN110971412 A CN 110971412A CN 201911230626 A CN201911230626 A CN 201911230626A CN 110971412 A CN110971412 A CN 110971412A
Authority
CN
China
Prior art keywords
network
block
module
block chain
distribution network
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
CN201911230626.0A
Other languages
Chinese (zh)
Other versions
CN110971412B (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.)
Hangzhou Longji Technology Co Ltd
Original Assignee
Hangzhou Longji Technology 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 Hangzhou Longji Technology Co Ltd filed Critical Hangzhou Longji Technology Co Ltd
Priority to CN201911230626.0A priority Critical patent/CN110971412B/en
Publication of CN110971412A publication Critical patent/CN110971412A/en
Application granted granted Critical
Publication of CN110971412B publication Critical patent/CN110971412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method for safely distributing a network to an intelligent home based on a block chain, which comprises the following steps of 1: the intelligent home obtains a plurality of distribution network encrypted information sent by a mobile terminal, stores and generates a block chain, wherein any distribution network encrypted information corresponds to an external network signal; step 2: the smart home receives a plurality of external network signals, judges whether at least one corresponding distribution network encrypted message exists, and if so, respectively reads the corresponding distribution network encrypted messages and executes the step 3; and step 3: carrying out hash operation on at least one distribution network encrypted information, sequentially comparing block hashes of any block in a block chain, and if the hash value of the distribution network encrypted information is consistent with the block hash of one block, executing the step 4; and 4, step 4: decrypting the distribution network encrypted information, and networking according to the decrypted distribution network encrypted information; the invention forms the block by the network name and the network password and adds the block into the block chain, and the anti-tampering characteristic of the block chain can prevent the block chain from being maliciously changed.

Description

Method for safe network distribution of smart home based on block chain
Technical Field
The invention belongs to the field of intelligent home, and particularly relates to a method for safely distributing a network to an intelligent home based on a block chain.
Background
Most of the existing intelligent sound boxes are distributed with a network in two common modes of wifi routing hotspots and Bluetooth.
The distribution network of the existing intelligent sound box has single network configuration and multi-network configuration. The single-network configuration only supports one network, and the multi-network configuration can configure a plurality of network information, thereby meeting the requirement of automatic networking during multi-network switching. Most multi-network configurations adopt SD cards or other storage modes, and the mode has the defect that configuration information is stored in a clear text, and once someone pulls out the SD card manually, all distribution network information can be seen, so that the network safety is damaged.
Disclosure of Invention
One of the objectives of the present invention is to provide a method for a secure network distribution for an intelligent home based on a block chain, so as to solve the problem in the background art that the network security of the existing intelligent home cannot be guaranteed because the network configuration information of the intelligent home can be directly obtained.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for carrying out safe network distribution on smart homes based on a block chain comprises the following steps:
step 1: the intelligent home obtains a plurality of distribution network encrypted information sent by a mobile terminal, stores and generates a block chain, any distribution network encrypted information corresponds to an external network signal, and any distribution network encrypted information comprises a network name and an encrypted network password;
step 2: the smart home receives a plurality of external network signals, judges whether at least one corresponding distribution network encrypted message exists, if so, reads the corresponding distribution network encrypted message and executes the step 3, otherwise, prompts a user that the reading fails and repeats the step 2;
and step 3: carrying out hash operation on at least one distribution network encrypted information and sequentially comparing block hashes of any block in a block chain, if the hash value of the distribution network encrypted information is consistent with the block hash of one block, executing the step 4, otherwise, prompting that the user cannot be networked;
and 4, step 4: and decrypting the distribution network encrypted information, and networking according to the decrypted distribution network encrypted information.
Preferably, the step 1 comprises the steps of:
step 1.1: the intelligent home is connected with the mobile terminal for communication;
step 1.2: the intelligent home generates a public and private key pair, numbers the public and private key pair, stores the private key and the number, and sends the public key and the number to the mobile terminal;
step 1.3: the intelligent home receives and stores the distribution network encryption information sent by the mobile terminal; the distribution network encrypted information also comprises a number, and the encrypted network password in the distribution network encrypted information is obtained by encrypting the network password by the mobile terminal by using a public key;
step 1.4: the intelligent home carries out Hash calculation on the distribution network encryption information to obtain block Hash of the current block, and the block Hash of the last block in the block chain is used as parent Hash and is packaged with the block Hash to form a block which is connected to the last block;
step 1.5: and the intelligent home determines whether to continue to acquire the distribution network encryption information in a man-machine interaction mode, if so, returns to the step 1.2, and otherwise, ends.
Preferably, in the step 4, decrypting the distribution network encrypted information includes the following steps: and finding out a corresponding private key according to the number of the distribution network encrypted information, and decrypting the encrypted network password through the private key to obtain a network name and a network password.
Preferably, the step 4 of networking according to the decrypted distribution network encryption information includes the following steps: and arranging the network names and the network passwords according to the strength of the corresponding external network signals, and selecting the network name and the network password corresponding to the strongest external network signal for networking.
Preferably, in step 1.1, the smart home and the mobile terminal communicate through bluetooth or wire harness.
Preferably, before executing step 3, the smart sound box judges whether the parent hash of the current block in the block chain is consistent with the block hash of the previous block, if so, step 3 is executed, otherwise, the user is prompted that the block chain is tampered and whether factory setting is restored to the smart sound box is determined through a human-computer interaction mode, if so, factory setting is restored to the smart sound box, otherwise, whether networking is continued is determined through a human-computer interaction mode, if so, step 3 is executed, and otherwise, the operation is ended.
Preferably, the intelligent home comprises an MCU master control module, wherein the MCU master control module comprises an EEPROM submodule, and the EEPROM submodule is used for storing a block chain, a private key and a serial number; the MCU main control module is respectively connected with the power supply module, the Bluetooth module, the SD card module, the WIFI module and the input/output module; the power supply module supplies power to the smart home; the SD card module is used for storing network encryption information; the WIFI module is used for receiving an external network signal and detecting the signal intensity of the external network signal; the input and output module is used for performing human-computer interaction; the MCU main control module is used for controlling the intelligent sound box to perform Bluetooth communication with the mobile terminal through the Bluetooth module, reading information stored in the SD card module and controlling the WIFI module to connect the intelligent home to the network.
Preferably, the smart home is provided with a USB charging interface, the USB charging interface is connected to the power module, and the USB charging interface is further electrically connected with the MCU main control module.
Preferably, the input and output module comprises an input sub-module and an output sub-module, the input sub-module comprises a bluetooth connection button and an initialization button, and the output sub-module comprises an audio playing module, an LED indicator light module and a display screen; the Bluetooth connecting button, the initialization button, the audio playing module, the LED indicating lamp module and the display screen are respectively and electrically connected with the MCU main control module, and the MCU main control module controls the intelligent sound box to carry out Bluetooth communication with the mobile terminal through the Bluetooth connecting button; the initialization button is used for restoring the intelligent sound box to factory settings; the audio playing module is used for prompting the user that the intelligent home is failed to connect to the network; the indicator light module is used for prompting the failure of the intelligent home of the user to read the network encryption information.
Preferably, the smart home is a smart sound box.
Compared with the prior art, the invention has the beneficial effects that:
according to the invention, the block is formed by the network name and the network password and added into the block chain, and the anti-tampering characteristic of the block chain can prevent the block chain from being maliciously changed, so that the safety of the intelligent home is ensured, and the intelligent home is not illegally accessed into a trap network well arranged by hackers.
Drawings
FIG. 1 is a flow chart of the present invention.
FIG. 2 is a flow chart of step 1 of the present invention.
Fig. 3 is a schematic structural diagram of the smart speaker.
Fig. 4 is a schematic structural diagram of the input/output module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
A method for carrying out safe network distribution on an intelligent home based on a block chain is disclosed, wherein the intelligent home comprises an MCU (microprogrammed control unit) main control module, the MCU main control module comprises an EEPROM (electrically erasable programmable read-only memory) submodule, and the EEPROM submodule is used for storing the block chain, a private key and a serial number; the MCU main control module is respectively connected with the power supply module, the Bluetooth module, the SD card module, the WIFI module and the input/output module; the power supply module supplies power to the smart home; the SD card module is used for storing network encryption information; the WIFI module is used for receiving an external network signal and detecting the signal intensity of the external network signal; the input and output module is used for performing human-computer interaction; the MCU main control module is used for controlling the intelligent sound box to perform Bluetooth communication with the mobile terminal through the Bluetooth module, reading information stored in the SD card module and controlling the WIFI module to connect the intelligent home to the network.
The input and output module comprises an input sub-module and an output sub-module, the input sub-module comprises a Bluetooth connection button and an initialization button, and the output sub-module comprises an audio playing module, an LED indicator light module and a display screen; the Bluetooth connecting button, the initialization button, the audio playing module, the LED indicating lamp module and the display screen are respectively and electrically connected with the MCU main control module, and the MCU main control module controls the intelligent sound box to carry out Bluetooth communication with the mobile terminal through the Bluetooth connecting button; the initialization button is used for restoring the intelligent sound box to factory settings; the audio playing module is used for prompting the user that the intelligent home is failed to connect to the network; the indicator light module is used for prompting the failure of the intelligent home of the user to read the network encryption information.
The intelligent home is provided with a USB charging interface, the USB charging interface is connected to the power module, and the USB charging interface is further electrically connected with the MCU main control module.
The method for carrying out the safe distribution network based on the block chain comprises the following steps:
step 1: the intelligent home obtains a plurality of distribution network encrypted information sent by a mobile terminal, stores and generates a block chain, any distribution network encrypted information corresponds to an external network signal, and any distribution network encrypted information comprises a network name and an encrypted network password;
in the invention, one network corresponds to one external network signal, any external network signal has a corresponding network name and a network password, and the network name and the network password are set by a network user, which is common knowledge of ordinary technicians in the field; the invention only encrypts the network password and does not encrypt the network name.
In the invention, an established block is stored in an EEPROM sub-module of the intelligent sound box, the number of the established block is 0, configuration information about a block chain is stored in the established block, such as the name of the block chain, the creation time and other information, after a plurality of acquired distribution network encrypted information are stored in an SD card module, any distribution network encrypted information processing forming block is sequentially added into the established block to form the block chain, and if a first formed block is added into the established block, a second formed block is added into the first block.
Step 2: the smart home receives a plurality of external network signals, judges whether at least one corresponding distribution network encrypted message exists, if so, reads the corresponding distribution network encrypted message and executes the step 3, otherwise, prompts a user that the reading fails and repeats the step 2;
in the invention, the intelligent home receives a plurality of external network signals through the WIFI module to obtain a plurality of corresponding network names, and simultaneously detects the intensity of each external network signal respectively, if an external network signal with the network name of 123123111 is obtained, the MCU main control module determines whether corresponding distribution network encrypted information exists according to the distribution network encrypted information stored in the SD card module, for example, if a network name of '123123111' exists in certain distribution network encrypted information, the distribution network encrypted information corresponding to the external network signal exists.
According to the invention, different external network signals exist in the same environment, and if the distribution network encrypted information corresponding to a plurality of external network signals in the same environment is stored in the SD card of the smart home, the plurality of distribution network encrypted information are read, so that the situation that the smart home needs to be repeatedly distributed due to the change of the external network signal intensity in the moving process is prevented.
In the invention, if the reading fails, the MCU main control module controls the LED indicator light module to light a red light; otherwise, the MCU main control module controls the LED indicator light module to light up a green light, which represents that the network encryption information is successfully read, and the MCU main control module controls the LED indicator light to light up a green light or a red light, which is a conventional technical means of ordinary technicians in the field and can be set by the technicians in the field according to actual conditions.
And step 3: carrying out hash operation on at least one distribution network encrypted information and sequentially comparing block hashes of any block in a block chain, if the hash value of the distribution network encrypted information is consistent with the block hash of one block, executing the step 4, otherwise, prompting that the user cannot be networked;
the distribution network encrypted information in the step 3 of the invention is the distribution network encrypted information stored in the SD card module obtained in the step 1.
In the invention, any block except the created block comprises the block hash of the current block and the block hash (parent hash) of the previous block; if the block hash value of one block is consistent with the hash value of the distribution network encryption information, it indicates that the distribution network encryption information stored in the SD card module of the intelligent sound box is not tampered.
In the invention, the MCU main control module controls the audio playing module to send out the prompt tone of the networking failure to prompt the user of the networking failure, and how the MCU main control module controls the audio playing module to send out the prompt tone is a conventional technical means of ordinary technicians in the field, and the MCU main control module can be set by the technicians in the field according to actual conditions.
And 4, step 4: and decrypting the distribution network encrypted information, and networking according to the decrypted distribution network encrypted information.
In the invention, the MCU main control module controls the WIFI module to connect the intelligent home to the network according to the decrypted distribution network encryption information.
The step 1 comprises the following steps:
step 1.1: the intelligent home is connected with the mobile terminal for communication;
in the step 1.1, the smart home and the mobile terminal are in communication through Bluetooth or wire harnesses.
The invention comprises the following steps when the Bluetooth communication is carried out:
step 1.1.1: a user presses a Bluetooth connection button, and a display screen of the smart home generates a random number;
step 1.1.2: the mobile phone starts the Bluetooth to search for the smart home, and the random number obtained in the step 1.1.1 is input to be connected with the smart home;
in step 1.1.1, the intelligent home presses a Bluetooth connection button, an MCU (microprogrammed control unit) main control module receives an electric signal and controls a Bluetooth module to be started, the MCU main control module generates a random number which is displayed through a display screen, and the random number is generally 4 bits; mobile terminals such as smart homes and mobile phones are connected in a pairing mode through Bluetooth, random numbers need to be input when the mobile terminals are paired, and the security of a network is improved.
In the invention, after the USB charging interface of the smart home is connected with the USB interface of the computer through the data line, the computer can control the MCU main control module in the smart home to read the contents in the SD card module and the EEPROM submodule, at the moment, the smart sound box is used as a movable disk of the computer, and the network encryption information stored in the computer can be directly copied into the SD card module of the smart home.
Step 1.2: the intelligent home generates a public and private key pair, numbers the public and private key pair, stores the private key and the number, and sends the public key and the number to the mobile terminal;
in the step 1.2, a public and private key pair is generated by asymmetric encryption software such as OpenSSL and the like, and a private key and a serial number are stored in an EEPROM sub-module; the public and private key pairs are numbered, for example, the public key 002, the private key 003 or the public key 002, the private key 002 or the public and private key pair 002, and the numbering of the public and private key pairs is only to clarify the corresponding relationship between the public key and the private key in a plurality of public and private key pairs and to prevent the private key in one public and private key pair from corresponding to the public key in another public and private key pair.
Step 1.3: the intelligent home receives and stores the distribution network encryption information sent by the mobile terminal; the distribution network encrypted information also comprises a number, and the encrypted network password in the distribution network encrypted information is obtained by encrypting the network password by the mobile terminal by using a public key;
in the invention, the network name and the network password are automatically input by a mobile terminal user or obtained by downloading the mobile terminal, and the like, which is common knowledge of ordinary technicians in the field, the mobile terminal user encrypts the network password through a public key received by the mobile terminal, and sends the number, the network name and the encrypted network password as network encryption information to the smart home, and the smart home stores the network encryption information into the SD card module.
Step 1.4: the intelligent home carries out Hash calculation on the distribution network encryption information to obtain block Hash of the current block, and the block Hash of the last block in the block chain is used as parent Hash and is packaged with the block Hash to form a block which is connected to the last block;
in step 1.4 of the present invention, the newly packed block is placed after the last block of the block chain, thus becoming the last block; packaging is to take the hash value as an attribute according to a format, and the format can be any format, which is common knowledge of those skilled in the art.
Step 1.5: and the intelligent home determines whether to continue to acquire the distribution network encryption information in a man-machine interaction mode, if so, returns to the step 1.2, and otherwise, ends.
In the invention, as an embodiment of a man-machine interaction mode: the intelligent home can inquire whether the user continues to acquire the distribution network encrypted information through the display screen, the user presses the 'confirm' key, the MCU main control module controls the intelligent home to execute the step 1.2, and the user presses the 'cancel' key, which indicates that the acquisition of the distribution network encrypted information is finished and the acquisition is not performed.
In the invention, as a plurality of network names and network passwords are obtained by a user or downloaded by a mobile terminal, if the number of the network names and the network passwords is multiple, the network names and the network passwords are continuously stored in an SD card module in an intelligent home, and a new block is formed and stored in a main chain in an EEPROM sub-module; if there is no other network name and network password corresponding to the new external network signal, ending, no new block is added.
In the step 4, decrypting the distribution network encrypted information includes the following steps: and finding out a corresponding private key according to the number of the distribution network encrypted information, and decrypting the encrypted network password through the private key to obtain a network name and a network password.
The step 4 of networking according to the decrypted distribution network encryption information comprises the following steps: and arranging the network names and the network passwords according to the strength of the corresponding external network signals, and selecting the network name and the network password corresponding to the strongest external network signal for networking.
In the invention, the MCU master control module reads the corresponding private key according to the number and decrypts through the private key; the WIFI module detects the intensity of an external network signal, and the MCU main control module reads a network name and a network password with the strongest external network signal and controls the WIFI module to connect the intelligent home to the network; when the network name and the network password with the strongest external network signals cannot be connected to the network, the MCU main control module automatically selects other network names and network passwords with the strongest external network signals except the network name and the network password to be connected to the network.
Before the step 3 is executed, the intelligent sound box judges whether the parent hash of the current block in the block chain is consistent with the block hash of the previous block, if so, the step 3 is executed, otherwise, the user is prompted that the block chain is tampered and whether factory setting is restored to the intelligent sound box is determined through a man-machine interaction mode, if so, the factory setting is restored to the intelligent sound box, otherwise, whether networking is continued is determined through the man-machine interaction mode, if so, the step 3 is executed, and if not, the operation is finished.
In the invention, because the parent hash of each block is the block hash of the previous block, the integrity and the correctness of the block chain are determined by judging whether the parent hash of any current block in the block chain is consistent with the block hash of the previous block, if not, the block chain is falsified, a user is directly prompted, and the safety of the intelligent home distribution network in the later stage is improved; meanwhile, the MCU main control module judges whether a user presses an initialization button within a preset time (60-90 s), if so, the intelligent factory reset is carried out, namely all information stored in the SD card module and the EEPROM sub-module is cleared, and the clearing does not include clearing the created area.
In the invention, as an embodiment of human-computer interaction: controlling a display screen to display whether to continue networking or not through the MCU main control module, and if a user presses a confirmation key, executing the step 3 at the moment and needing to continue networking; if the user presses the cancel key, the method is ended and the networking is not continued.
The intelligent home is an intelligent sound box.

Claims (10)

1. A method for carrying out safe network distribution on smart homes based on a block chain is characterized by comprising the following steps:
step 1: the intelligent home obtains a plurality of distribution network encrypted information sent by a mobile terminal, stores and generates a block chain, any distribution network encrypted information corresponds to an external network signal, and any distribution network encrypted information comprises a network name and an encrypted network password;
step 2: the smart home receives a plurality of external network signals, judges whether at least one corresponding distribution network encrypted message exists, if so, reads the corresponding distribution network encrypted message and executes the step 3, otherwise, prompts a user that the reading fails and repeats the step 2;
and step 3: carrying out hash operation on at least one distribution network encrypted information and sequentially comparing block hashes of any block in a block chain, if the hash value of the distribution network encrypted information is consistent with the block hash of one block, executing the step 4, otherwise, prompting that the user cannot be networked;
and 4, step 4: and decrypting the distribution network encrypted information, and networking according to the decrypted distribution network encrypted information.
2. The method for the safe network distribution of the smart home based on the block chain according to claim 1, wherein the step 1 comprises the following steps:
step 1.1: the intelligent home is connected with the mobile terminal for communication;
step 1.2: the intelligent home generates a public and private key pair, numbers the public and private key pair, stores the private key and the number, and sends the public key and the number to the mobile terminal;
step 1.3: the intelligent home receives and stores the distribution network encryption information sent by the mobile terminal; the distribution network encrypted information also comprises a number, and the encrypted network password in the distribution network encrypted information is obtained by encrypting the network password by the mobile terminal by using a public key;
step 1.4: the intelligent home carries out Hash calculation on the distribution network encryption information to obtain block Hash of the current block, and the block Hash of the last block in the block chain is used as parent Hash and is packaged with the block Hash to form a block which is connected to the last block;
step 1.5: and the intelligent home determines whether to continue to acquire the distribution network encryption information in a man-machine interaction mode, if so, returns to the step 1.2, and otherwise, ends.
3. The method for safely distributing the network to the smart home based on the block chain according to claim 2, wherein in the step 4, decrypting the encrypted distribution network information comprises the following steps: and finding out a corresponding private key according to the number of the distribution network encrypted information, and decrypting the encrypted network password through the private key to obtain a network name and a network password.
4. The method for safely distributing the network to the smart home based on the block chain according to claim 3, wherein the step 4 of networking according to the decrypted distribution network encryption information comprises the following steps: and arranging the network names and the network passwords according to the strength of the corresponding external network signals, and selecting the network name and the network password corresponding to the strongest external network signal for networking.
5. The method for safely configuring the network for the smart home based on the block chain according to claim 2, wherein in step 1.1, the smart home and the mobile terminal communicate with each other through bluetooth or wire harness.
6. The method for safely configuring the network for the smart home based on the block chain according to claim 1, wherein before the step 3 is executed, the smart sound box judges whether a parent hash of a current block in the block chain is consistent with a block hash of a previous block, if so, the step 3 is executed, otherwise, the user is prompted that the block chain is tampered with, and whether to restore factory settings of the smart sound box is determined in a man-machine interaction manner, if so, the factory settings of the smart sound box are restored, otherwise, whether to continue networking is determined in the man-machine interaction manner, if so, the step 3 is executed, and otherwise, the operation is ended.
7. The method for the safe network distribution of the smart home based on the block chain according to any one of claim 1, wherein the smart home comprises an MCU master control module, the MCU master control module comprises an EEPROM submodule, and the EEPROM submodule is used for storing the block chain, the private key and the serial number; the MCU main control module is respectively connected with the power supply module, the Bluetooth module, the SD card module, the WIFI module and the input/output module; the power supply module supplies power to the smart home; the SD card module is used for storing network encryption information; the WIFI module is used for receiving an external network signal and detecting the signal intensity of the external network signal; the input and output module is used for performing human-computer interaction; the MCU main control module is used for controlling the intelligent sound box to perform Bluetooth communication with the mobile terminal through the Bluetooth module, reading information stored in the SD card module and controlling the WIFI module to connect the intelligent home to the network.
8. The method for safely distributing the network to the smart home based on the block chain according to claim 7, wherein the smart home is provided with a USB charging interface, the USB charging interface is connected to the power module, and the USB charging interface is further electrically connected with the MCU master control module.
9. The method for the safe network distribution for the smart home based on the blockchain according to claim 7, wherein the input/output module comprises an input submodule and an output submodule, the input submodule comprises a Bluetooth connection button and an initialization button, and the output submodule comprises an audio playing module, an LED indicator light module and a display screen; the Bluetooth connecting button, the initialization button, the audio playing module, the LED indicating lamp module and the display screen are respectively and electrically connected with the MCU main control module, and the MCU main control module controls the intelligent sound box to carry out Bluetooth communication with the mobile terminal through the Bluetooth connecting button; the initialization button is used for restoring the intelligent sound box to factory settings; the audio playing module is used for prompting the user that the intelligent home is failed to connect to the network; the indicator light module is used for prompting the failure of the intelligent home of the user to read the network encryption information.
10. The method for the safe network distribution of the smart home based on the block chain according to any one of claims 1 to 9, wherein the smart home is a smart sound box.
CN201911230626.0A 2019-12-05 2019-12-05 Method for safe network distribution of smart home based on block chain Active CN110971412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911230626.0A CN110971412B (en) 2019-12-05 2019-12-05 Method for safe network distribution of smart home based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911230626.0A CN110971412B (en) 2019-12-05 2019-12-05 Method for safe network distribution of smart home based on block chain

Publications (2)

Publication Number Publication Date
CN110971412A true CN110971412A (en) 2020-04-07
CN110971412B CN110971412B (en) 2022-05-10

Family

ID=70033178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911230626.0A Active CN110971412B (en) 2019-12-05 2019-12-05 Method for safe network distribution of smart home based on block chain

Country Status (1)

Country Link
CN (1) CN110971412B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840266A (en) * 2020-06-24 2021-12-24 华为技术有限公司 Bluetooth pairing method, device, system, electronic equipment and storage medium
CN114296361A (en) * 2021-12-28 2022-04-08 广州河东科技有限公司 Intelligent household equipment configuration method and device, electronic equipment and storage medium
CN114423004A (en) * 2021-12-24 2022-04-29 深圳市丰鑫科技服务有限公司 Method for realizing virtual connection and safe transmission between Bluetooth devices based on data link
CN115496628A (en) * 2022-10-21 2022-12-20 普杰软件(南京)有限公司 Smart hotel management system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581713A (en) * 2015-01-15 2015-04-29 福建天晴数码有限公司 Intelligent equipment networking method, device, equipment and system
CN104812092A (en) * 2015-03-23 2015-07-29 小米科技有限责任公司 Networking method and device of intelligent equipment
CN108174381A (en) * 2018-04-17 2018-06-15 上海连尚网络科技有限公司 For connecting the method and apparatus of wireless access point
CN108668277A (en) * 2018-04-17 2018-10-16 上海连尚网络科技有限公司 For sharing information, the method and apparatus for obtaining information
CN109121104A (en) * 2018-08-27 2019-01-01 广东工业大学 A kind of shared WiFi management method and system of decentralization
CN109547203A (en) * 2018-12-25 2019-03-29 深圳市安信认证系统有限公司 A kind of backup method of private key, back-up device and terminal device
CN109756579A (en) * 2019-03-05 2019-05-14 深圳众享互联科技有限公司 A kind of Internet of Things Information Secure Transmission System and transmission method based on block chain
US20190158469A1 (en) * 2017-11-21 2019-05-23 Jose Luis Merino Gonzalez System and method for distributed internet sharing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581713A (en) * 2015-01-15 2015-04-29 福建天晴数码有限公司 Intelligent equipment networking method, device, equipment and system
CN104812092A (en) * 2015-03-23 2015-07-29 小米科技有限责任公司 Networking method and device of intelligent equipment
US20190158469A1 (en) * 2017-11-21 2019-05-23 Jose Luis Merino Gonzalez System and method for distributed internet sharing
CN108174381A (en) * 2018-04-17 2018-06-15 上海连尚网络科技有限公司 For connecting the method and apparatus of wireless access point
CN108668277A (en) * 2018-04-17 2018-10-16 上海连尚网络科技有限公司 For sharing information, the method and apparatus for obtaining information
CN109121104A (en) * 2018-08-27 2019-01-01 广东工业大学 A kind of shared WiFi management method and system of decentralization
CN109547203A (en) * 2018-12-25 2019-03-29 深圳市安信认证系统有限公司 A kind of backup method of private key, back-up device and terminal device
CN109756579A (en) * 2019-03-05 2019-05-14 深圳众享互联科技有限公司 A kind of Internet of Things Information Secure Transmission System and transmission method based on block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
P. URIEN: "Blockchain IoT (BIoT): A New Direction for Solving Internet of Things Security and Trust Issues", 《018 3RD CLOUDIFICATION OF THE INTERNET OF THINGS (CIOT)》 *
王雅哲等: "IoT智能设备安全威胁及防护技术综述", 《信息安全学报》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840266A (en) * 2020-06-24 2021-12-24 华为技术有限公司 Bluetooth pairing method, device, system, electronic equipment and storage medium
CN113840266B (en) * 2020-06-24 2024-05-03 华为技术有限公司 Bluetooth pairing method, device, system, electronic equipment and storage medium
CN114423004A (en) * 2021-12-24 2022-04-29 深圳市丰鑫科技服务有限公司 Method for realizing virtual connection and safe transmission between Bluetooth devices based on data link
CN114423004B (en) * 2021-12-24 2024-03-19 深圳市丰鑫科技服务有限公司 Method for realizing virtual connection and safe transmission between Bluetooth devices based on data chain
CN114296361A (en) * 2021-12-28 2022-04-08 广州河东科技有限公司 Intelligent household equipment configuration method and device, electronic equipment and storage medium
CN115496628A (en) * 2022-10-21 2022-12-20 普杰软件(南京)有限公司 Smart hotel management system

Also Published As

Publication number Publication date
CN110971412B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN110971412B (en) Method for safe network distribution of smart home based on block chain
CN111246539B (en) Networking binding method of intelligent household appliance, intelligent household appliance and user terminal
CN105119939B (en) The cut-in method and device, providing method and device and system of wireless network
US9372977B2 (en) Screen unlocking method, device and terminal
CN101258505B (en) Secure software updates
CN104427501B (en) Method for network access, device and system
CN110418336B (en) WiFi device batch automatic network distribution method, terminal device and storage medium
CN113055867A (en) Method and device for auxiliary network distribution of terminal and electronic equipment
WO2018000834A1 (en) Wifi hotspot information modification method and device
CN105263141A (en) Household electrical appliance and control method thereof
CN106487072A (en) The method of equipment charge, charger and system
WO2011106956A1 (en) Mobile terminal and a data-share method for the mobile terminal
CN106535090B (en) Bluetooth device and intelligent device pairing method and Bluetooth device
CN102158483A (en) Method and system for authenticating access of intelligent television, intelligent television and authentication server
CN104580235A (en) Authentication method and authentication system for equipment connection
CN105187444A (en) Key information burning method and device
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
CN113920615B (en) Method for connecting Bluetooth key with vehicle, vehicle Bluetooth system and Bluetooth key
CN111065090A (en) Method for establishing network connection and wireless routing equipment
CN112099828A (en) Method, device, storage medium, electronic equipment and system for upgrading electronic equipment
CN107566112A (en) Dynamic encryption and decryption method and server
CN115868142A (en) Equipment verification method, equipment and cloud
CN112564901A (en) Key generation method and system, storage medium and electronic device
CN105824666A (en) Data recovery device and method
CN112597471B (en) Device authorization control method and device, storage medium and electronic device

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