CN108306793A - Smart machine, intelligent domestic gateway, the method and system for establishing connection - Google Patents

Smart machine, intelligent domestic gateway, the method and system for establishing connection Download PDF

Info

Publication number
CN108306793A
CN108306793A CN201610880246.1A CN201610880246A CN108306793A CN 108306793 A CN108306793 A CN 108306793A CN 201610880246 A CN201610880246 A CN 201610880246A CN 108306793 A CN108306793 A CN 108306793A
Authority
CN
China
Prior art keywords
intelligent domestic
smart machine
domestic gateway
preset
secret key
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
CN201610880246.1A
Other languages
Chinese (zh)
Other versions
CN108306793B (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 fluorite Network Co.,Ltd.
Original Assignee
Hangzhou Ezviz Network 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 Ezviz Network Co Ltd filed Critical Hangzhou Ezviz Network Co Ltd
Priority to CN201610880246.1A priority Critical patent/CN108306793B/en
Publication of CN108306793A publication Critical patent/CN108306793A/en
Application granted granted Critical
Publication of CN108306793B publication Critical patent/CN108306793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present invention provides smart machine, intelligent domestic gateway, the method and system for establishing connection, is applied to smart machine, and method includes:According to the corresponding wireless sub network title SSID of intelligent domestic gateway, intelligent domestic gateway is searched in preset channel;By presetting connection type, the first shared secret key between intelligent domestic gateway is generated;The request message connected without password Wireless Fidelity (Wireless Fidelity, Wi Fi) for foundation is sent to intelligent domestic gateway;Replying message from intelligent domestic gateway is received, is established without password Wi Fi connections, smart machine uses the first shared secret key, and data interaction is carried out by no password Wi Fi connections and intelligent home network.The connection between smart machine and intelligent domestic gateway can not only be realized using the embodiment of the present invention, and can ensure the safety of interaction data between smart machine and intelligent domestic gateway.

Description

Smart machine, intelligent domestic gateway, the method and system for establishing connection
Technical field
The present invention relates to fields of communication technology, more particularly to smart machine, intelligent domestic gateway, the method for establishing connection And system.
Background technology
With the rapid development of smart home technology, more and more smart machines can be added by intelligent domestic gateway Into smart home net, the work and life of people are greatly facilitated.
Currently, establishing Wireless Fidelity (Wireless-Fidelity, Wi-Fi) between smart machine and intelligent domestic gateway The detailed process of connection is as shown in Figure 1:
The corresponding wireless sub network title (Service of step 101, intelligent domestic gateway periodic broadcasting intelligent domestic gateway Set Identifier, SSID), smart machine is by intercepting the broadcast from intelligent domestic gateway to obtain intelligence to be connected The corresponding SSID of home gateway;
Step 102, smart machine determine available channel, then search the corresponding smart homes of the SSID by available channel Gateway;
Step 103, after smart machine finds the corresponding intelligent domestic gateways of the SSID, by Wi-Fi connection with Intelligent domestic gateway carries out authentication;
Step 104, after smart machine is by authentication, Wi-Fi between smart machine and intelligent domestic gateway connects It connects and is successfully established;
Step 105, smart machine and intelligent domestic gateway carry out data interaction by established Wi-Fi connection.
Since during above-mentioned smart machine and intelligent domestic gateway are established and connected, smart machine is detectd in step 101 Listen to the radio programme with obtain smart machine in the operation of the corresponding SSID of intelligent domestic gateway, step 102 determine available channel operation, And smart machine and intelligent domestic gateway are more time-consuming by the operation of Wi-Fi connection progress authentication in step 103, So as to cause smart machine from electrifying startup to longer with the time needed for intelligent domestic gateway successful connection.
Invention content
The embodiment of the present invention is designed to provide smart machine, intelligent domestic gateway, the method and system for establishing connection, To realize in smart home net, smart machine can be established quickly with intelligent domestic gateway and be connect.Specific technical solution is as follows:
A kind of embodiment of the present invention discloses a kind of method for establishing connection, is applied to smart machine, and the intelligence is set It is standby that the smart home net further includes intelligent domestic gateway in smart home net, the method includes:According to preset institute The corresponding wireless sub network title SSID of intelligent domestic gateway is stated, the smart home net to be connected is searched in preset channel It closes;By preset connection type, the first shared secret key between the intelligent domestic gateway is generated;Finding described wait for When the intelligent domestic gateway of connection, sends to be directed to the intelligent domestic gateway and establish between the intelligent domestic gateway without close The request message of code Wi-Fi connection;The replying message for the request message from the intelligent domestic gateway is received, is established Between the intelligent domestic gateway without password Wi-Fi connection, the smart machine uses the first shared secret key, by described No password Wi-Fi connection carries out data interaction with the intelligent home network.
Preferably, the preset connection type includes radio frequency connection and bluetooth connection.
Preferably, described according to the corresponding wireless sub network title SSID of the preset intelligent domestic gateway, using without close Code Wi-Fi searches the intelligent domestic gateway to be connected in preset channel;By preset connection type, generate with it is described The step of the first shared secret key between intelligent domestic gateway, including;It is corresponding according to the preset intelligent domestic gateway SSID searches the intelligent domestic gateway to be connected in preset channel;Using preset secret key exchange algorithm, described in generation First public key of smart machine and the first private key of the smart machine;It is connected by RF, first public key is sent to institute State intelligent domestic gateway;Receive the second public key from the intelligent domestic gateway;According to first private key and described second Public key generates the first shared secret key between the intelligent domestic gateway using the preset secret key exchange algorithm.
Preferably, described according to the corresponding wireless sub network title SSID of the preset intelligent domestic gateway, using without close Code Wi-Fi searches the intelligent domestic gateway to be connected in preset channel;By preset connection type, generate with it is described The step of the first shared secret key between intelligent domestic gateway, including;Receive the second public key from the intelligent domestic gateway; According to preset SSID, the intelligent domestic gateway to be connected is searched in preset channel;It is exchanged and is calculated using preset secret key Method generates corresponding first public key of the smart machine and corresponding first private key of the smart machine;It is connected by RF, by institute It states the first public key and is sent to the intelligent domestic gateway;According to first private key and second public key, using described default Secret key exchange algorithm generate and the intelligent domestic gateway between the first shared secret key.
Preferably, the method further includes:It obtains for the trigger action for matching the intelligent domestic gateway;It is pre- meeting If when condition, the facility information of the smart machine is sent to the intelligent domestic gateway by RF connections;It receives from institute State the first key message of intelligent domestic gateway;First key message includes the smart machine corresponding static IP Location, the corresponding channel of the smart machine and the corresponding SSID of the intelligent domestic gateway.
Preferably, the smart machine uses the first shared secret key, passes through the no password Wi-Fi connection and the intelligence Household network carries out the step of data interaction, including:Pass through the connecting without password Wi-Fi between the intelligent domestic gateway It connects, the first information is sent to the intelligent domestic gateway;According to the described first shared secret key, using preset Encryption Algorithm to institute It states the first information to be encrypted, the encrypted first information is sent to the intelligent domestic gateway;Pass through the no password Wi-Fi connection receives the second information come from the intelligent domestic gateway;According to the described first shared secret key, using described Second information is decrypted in preset Encryption Algorithm, generates the second information after decryption.
A kind of embodiment of the present invention discloses a kind of method for establishing connection again, is applied to intelligent domestic gateway, described Intelligent domestic gateway is in smart home net, and the smart home net further includes smart machine, the method includes:Meeting When preset condition, the second shared secret key between the smart machine is generated;Receive being directed to from the smart machine The request message without password Wi-Fi connection between the smart machine is established, sends to the smart machine and is asked for described Replying message for message, the intelligent domestic gateway is asked to use the second shared secret key, pass through the no password Wi-Fi connection and institute It states smart machine and carries out data interaction.
Preferably, the preset condition includes:By preset connection type, first from the smart machine is received Public key;Or by the preset connection type, the second public key of generation is sent to the smart machine, and receive and come from First public key of the smart machine;Wherein, the preset connection type includes radio frequency connection and bluetooth connection.
Preferably, described when meeting preset condition, generate the step of the second shared secret key between the smart machine Suddenly, including:It is connected by RF, receives the first public key from the smart machine;Using preset secret key exchange algorithm, generate Second public key of the intelligent domestic gateway and the second private key of the intelligent domestic gateway;Second public key is sent to institute State smart machine;According to second private key and first public key, the preset secret key exchange algorithm generation and institute are used State the second shared secret key between smart machine.
Preferably, described when meeting preset condition, generate the step of the second shared secret key between the smart machine Suddenly, including:Using preset secret key exchange algorithm, the second public key of the intelligent domestic gateway and the smart home net are generated The second private key closed;It is connected by RF, second public key is sent to the smart machine;It receives and comes from the smart machine The first public key;According to second private key and first public key, the preset secret key exchange algorithm generation and institute are used State the second shared secret key between smart machine.
Preferably, the method further includes:It is connected by RF, receives the facility information from the smart machine;To institute It states smart machine and sends the first key message;First key message include the corresponding static ip address of the smart machine, The corresponding channel of smart machine and the corresponding SSID of the intelligent domestic gateway.
Preferably, the intelligent domestic gateway use the second shared secret key, by the no password Wi-Fi connection with The smart machine carries out the step of data interaction, including:Pass through the connecting without password Wi-Fi between the smart machine It connects, receives the first information come from the smart machine;According to the described second shared secret key, preset Encryption Algorithm pair is used The first information is decrypted, and generates the first information after decryption;By the no password Wi-Fi connection, to described Smart machine sends the second information;According to the described second shared secret key, using preset Encryption Algorithm to the first information into Row encryption sends encrypted second information to the smart machine.
A kind of embodiment of the present invention also discloses a kind of smart machine, and the smart machine is in smart home net, The smart home net further includes intelligent domestic gateway, and the smart machine includes first processor and first interface;Described One processor, for according to the corresponding wireless sub network title SSID of the preset intelligent domestic gateway, being looked into preset channel The intelligent domestic gateway to be connected is looked for, and by preset connection type, is generated between the intelligent domestic gateway The first shared secret key;The first interface, for find it is described when the intelligent domestic gateway connected, to the intelligence Home gateway is sent for the request message without password Wi-Fi connection between foundation and the intelligent domestic gateway, and is received From the intelligent domestic gateway replying message for the request message, the nothing between the intelligent domestic gateway is established Password Wi-Fi connection, the smart machine use the first shared secret key, pass through the no password Wi-Fi connection and the intelligence Household network carries out data interaction.
Preferably, the first processor includes searching unit and the first generation unit, and the first interface includes first Transmission unit and establish unit;The searching unit, for according to the corresponding wireless sub network of the preset intelligent domestic gateway Title SSID searches the intelligent domestic gateway to be connected in preset channel;First generation unit, for by pre- If connection type, generate and the intelligent domestic gateway between the first shared secret key;First transmission unit is used for Described in finding when the intelligent domestic gateway connected, sent to the intelligent domestic gateway for foundation and the smart home Request message without password Wi-Fi connection between gateway;It is described to establish unit, come from the intelligent domestic gateway needle for receiving The request message is replied message, establish and the intelligent domestic gateway between without password Wi-Fi connection, the intelligence Equipment uses the first shared secret key, and data interaction is carried out by the no password Wi-Fi connection and the intelligent home network.
Preferably, the preset connection type includes radio frequency connection and bluetooth connection.
Preferably, first generation unit, including:First generates subelement, the first transmission sub-unit, the first reception Unit and second generates subelement;Described first generates subelement, for using preset secret key exchange algorithm, generates the intelligence It can the first public key of equipment and the first private key of the smart machine;First transmission sub-unit is used for through RF connections, will First public key is sent to the intelligent domestic gateway;First receiving subelement, for receiving from the intelligent family Occupy the second public key of gateway;Described second generates subelement, for according to first private key and second public key, using institute State the first shared secret key between preset secret key exchange algorithm generation and the intelligent domestic gateway.
Preferably, first generation unit, including:Second receiving subelement, third generate subelement, and second sends son Unit and the 4th generates subelement;Second receiving subelement, it is public for receiving second from the intelligent domestic gateway Key;The third generates subelement, for using preset secret key exchange algorithm, generates corresponding first public affairs of the smart machine Key and corresponding first private key of the smart machine;Second transmission sub-unit is used for through RF connections, public by described first Key is sent to the intelligent domestic gateway;Described 4th generates subelement, for according to first private key and second public affairs Key generates the first shared secret key between the intelligent domestic gateway using the preset secret key exchange algorithm.
Preferably, the first interface further includes:Acquiring unit, for obtaining for the matching intelligent domestic gateway Trigger action;Second transmission unit, for when meeting preset condition, by RF connections by the facility information of the smart machine It is sent to the intelligent domestic gateway;First receiving unit, for receiving the first crucial letter from the intelligent domestic gateway Breath;First key message include the corresponding static ip address of the smart machine, the corresponding channel of the smart machine and The corresponding SSID of the intelligent domestic gateway.
Preferably, described to establish unit, including:Third transmission sub-unit, the first encryption sub-unit operable, third receiving subelement With the first decryption subelement;The third transmission sub-unit, for by it is described between the intelligent domestic gateway without close Code Wi-Fi connection sends the first information to the intelligent domestic gateway;First encryption sub-unit operable, for according to described the One shared secret key is encrypted the first information using preset Encryption Algorithm, is sent out to the intelligent domestic gateway Send the encrypted first information;The third receiving subelement, for by the no password Wi-Fi connection, reception to be come certainly Second information of the intelligent domestic gateway;The first decryption subelement, for according to the described first shared secret key, using institute It states preset Encryption Algorithm second information is decrypted, generates the second information after decryption.
A kind of embodiment of the present invention discloses a kind of intelligent domestic gateway again, and the intelligent domestic gateway is in intelligent family It occupies in net, the smart home net further includes smart machine, and the intelligent domestic gateway includes second processor and second interface; The second processor, for when meeting preset condition, generating the second shared secret key between the smart machine;It is described Second interface, for receiving connecting without password Wi-Fi between foundation and the smart machine from the smart machine The request message connect sends replying message for the request message to the smart machine, and the intelligent domestic gateway makes With the second shared secret key, data interaction is carried out by the no password Wi-Fi connection and the smart machine.
Preferably, the second processor includes the second generation unit, and the second interface includes third transmission unit;Institute The second generation unit is stated, for when meeting preset condition, generating the second shared secret key between the smart machine;It is described Third transmission unit receives connecting without password Wi-Fi between foundation and the smart machine from the smart machine The request message connect sends replying message for the request message to the smart machine, and the intelligent domestic gateway makes With the second shared secret key, data interaction is carried out by the no password Wi-Fi connection and the smart machine.
Preferably, the preset condition includes:By preset connection type, first from the smart machine is received Public key;Or by the preset connection type, the second public key of generation is sent to the smart machine, and receive and come from First public key of the smart machine;Wherein, the preset connection type includes radio frequency connection and bluetooth connection.
Preferably, second generation unit, including:4th receiving subelement, the 4th generates subelement, the 4th transmission Unit and the 5th generates subelement;4th receiving subelement, for by RF connections, receiving from the smart machine First public key;Described 4th generates subelement, for using preset secret key exchange algorithm, generates the intelligent domestic gateway Second private key of the second public key and the intelligent domestic gateway;4th transmission sub-unit, for sending out second public key It send to the smart machine;Described 5th generates subelement, for according to second private key and first public key, using institute State the second shared secret key between preset secret key exchange algorithm generation and the smart machine.
Preferably, second generation unit, including:6th generates subelement, the 5th transmission sub-unit, the 5th reception Unit and the 7th generates subelement;Described 6th generates subelement, for using preset secret key exchange algorithm, generates the intelligence It can the second public key of home gateway and the second private key of the intelligent domestic gateway;5th transmission sub-unit, for passing through Second public key is sent to the smart machine by RF connections;5th receiving subelement comes from the intelligence for receiving First public key of energy equipment;Described 7th generates subelement, for according to second private key and first public key, using institute State the second shared secret key between preset secret key exchange algorithm generation and the smart machine.
Preferably, the second interface further includes:Second receiving unit, for by RF connections, receiving and coming from the intelligence The facility information of energy equipment;4th transmission unit, for sending the first key message to the smart machine;Described first is crucial Information includes the corresponding static ip address of the smart machine, the corresponding channel of the smart machine and the intelligent domestic gateway Corresponding SSID.
Preferably, the third transmission unit, including:6th receiving subelement, the second decryption subelement, the 6th send son Unit and the second encryption sub-unit operable;6th receiving subelement, for by it is described between the smart machine without close Code Wi-Fi connection, receives the first information come from the smart machine;The second decryption subelement, for according to Second shared secret key is decrypted the first information using preset Encryption Algorithm, generates the first letter after decryption Breath;6th transmission sub-unit, for by the no password Wi-Fi connection, the second information to be sent to the smart machine; Second encryption sub-unit operable is used for according to the described second shared secret key, using preset Encryption Algorithm to the first information It is encrypted, encrypted second information is sent to the smart machine.
A kind of embodiment of the present invention discloses a kind of system for establishing connection again, and the system comprises wireless network camera shootings Machine, intelligent domestic gateway, the wireless network camera have the first Wi-Fi module, the first RF modules and first processing module, The intelligent domestic gateway has the second Wi-Fi module, the 2nd RF modules and Second processing module, the system comprises:It is described First processing module is by the first Wi-Fi module, according to the corresponding wireless sub network title of the preset intelligent domestic gateway SSID searches the intelligent domestic gateway to be connected in preset channel;The first processing module passes through the first RF Module is connect with the 2nd RF modules with the Second processing module, is generated and is total to first between the intelligent domestic gateway Enjoy secret key;The Second processing module is connected by the 2nd RF modules and the first RF modules with the first processing module It connects, generates the second shared secret key between the smart machine;Pass through the first Wi-Fi moulds in the first processing module Block finds described when the intelligent domestic gateway connected, is sent to the intelligent domestic gateway for establishing and the intelligent family Occupy the request message without password Wi-Fi connection between gateway;The Second processing module is connect by second Wi-Fi module It receives being directed to from the smart machine and establishes the request message without password Wi-Fi connection between the smart machine, to The intelligent domestic gateway sends replying message for the request message, and the intelligent domestic gateway is shared secret using second Key carries out data interaction by the no password Wi-Fi connection and the smart machine;The first processing module passes through described First Wi-Fi module receives the replying message for the request message from the intelligent domestic gateway, establishes and the intelligence Can be between home gateway without password Wi-Fi connection, the smart machine uses the first shared secret key, passes through the no password Wi-Fi connection carries out data interaction with the intelligent home network.
The embodiment of the present invention provides smart machine, intelligent domestic gateway, the method and system for establishing connection, can realize While smart machine searches intelligent domestic gateway to be connected according to the corresponding SSID of intelligent domestic gateway, pass through preset company Mode is connect, the first shared secret key between smart machine and intelligent domestic gateway is generated;In smart machine and intelligent domestic gateway Between be successfully established without password Wi-Fi connection after, smart machine can use the first shared secret key and intelligent domestic gateway into Row data interaction.In this way, by making the generating process for establishing process and shared secret key of no password Wi-Fi connection execute parallel, The efficiency for establishing connection between smart machine and intelligent domestic gateway is not only increased, and ensure that smart machine and intelligent family Occupy the safety of interaction data between gateway.Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach simultaneously To all the above advantage.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 establishes the schematic diagram of Wi-Fi connection process between smart machine and intelligent domestic gateway;
Fig. 2 is a kind of flow chart for establishing connection method of the embodiment of the present invention;
Fig. 3 is another flow chart for establishing connection method of the embodiment of the present invention;
Fig. 4 is another flow chart for establishing connection method of the embodiment of the present invention;
Fig. 5 is another flow chart for establishing connection method of the embodiment of the present invention;
Fig. 6 is another flow chart for establishing connection method of the embodiment of the present invention;
Fig. 7 is another flow chart for establishing connection method of the embodiment of the present invention;
Fig. 8 is a kind of structure chart for establishing attachment device of the embodiment of the present invention;
Fig. 9 is another structure chart for establishing attachment device of the embodiment of the present invention;
Figure 10 is another structure chart for establishing attachment device of the embodiment of the present invention;
Figure 11 is the yet another construction figure for establishing attachment device of the embodiment of the present invention;
Figure 12 is the yet another construction figure for establishing attachment device of the embodiment of the present invention;
Figure 13 is the yet another construction figure for establishing attachment device of the embodiment of the present invention;
Figure 14 is a kind of structure chart for establishing connection system of the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Embodiment of the method one
The embodiment of the invention discloses a kind of methods for establishing connection, are applied to smart machine, and smart machine is in intelligence In household net, smart home net further includes intelligent domestic gateway.
Referring to Fig. 2, Fig. 2 is a kind of flow chart for establishing connection method of the embodiment of the present invention, is included the following steps:
Step 201, it according to the corresponding SSID of the preset intelligent domestic gateway, is searched in preset channel to be connected The intelligent domestic gateway;
It should be noted that the channel that the corresponding SSID of intelligent domestic gateway and smart machine use can be default , compared with prior art, save the process that smart machine intercepts SSID and smart machine finds available channel.
Step 202, by preset connection type, the first shared secret key between the intelligent domestic gateway is generated;
In embodiments of the present invention, step 201 and step 202 are carried out at the same time, that is to say, that smart machine searching waits for The intelligent domestic gateway of connection and the first shared secret key generated between intelligent domestic gateway execute parallel;Wherein, Interaction data of the one shared secret key for pair between intelligent domestic gateway is encrypted, and ensures the safety of interaction data Property.
It should be noted that preset connection type can be radio frequency (Radio Frequency, RF) connection, bluetooth connects It connects, the present invention does not limit preset connection type.
It should be understood that compared to now in the art, the operation and generation of the intelligent domestic gateway of connection are found in parallel execution The operation of first shared secret key, can improve the execution efficiency of operation.
Step 203, it described in finding when the intelligent domestic gateway connected, is directed to intelligent domestic gateway transmission Establish the request message without password Wi-Fi connection between the intelligent domestic gateway;
This step can be same as the prior art, can be with when smart machine is found when the intelligent domestic gateway connected Request, which is sent, to intelligent domestic gateway establishes the message without password Wi-Fi connection.
Step 204, receive and being replied message for the request message from the intelligent domestic gateway, establish with it is described Between intelligent domestic gateway without password Wi-Fi connection, the smart machine uses the first shared secret key, passes through the no password Wi-Fi connection carries out data interaction with the intelligent home network.
In this step, when smart machine receives the returning for foundation request that intelligent domestic gateway to be connected returns When multiple message, being successfully established without password Wi-Fi connection between smart machine and intelligent domestic gateway.In this way, smart machine is just Data interaction can be carried out with intelligent domestic gateway.
But since what is established between smart machine and intelligent domestic gateway is no password Wi-Fi connection, in order to ensure The safety of interaction data between smart machine and intelligent domestic gateway, smart machine need generated before use first to share Secret key is encrypted to sent information and the information received is decrypted.
It should be noted that in embodiments of the present invention, between smart machine and intelligent domestic gateway can be passed through It is pre-set, can also be set by directly inputting the corresponding SSID of intelligent domestic gateway and intelligence to smart machine with operation The standby relevant information using channel, the side that the present invention corresponds to SSID and smart machine using channel to presetting intelligent domestic gateway Formula does not limit.
In one preferred embodiment of the invention, if smart machine is First Contact Connections intelligent domestic gateway, or Smart machine is attached with intelligent domestic gateway again after system resetting, then needs to carry out matching behaviour with intelligent domestic gateway Make.Specifically, the process of the matching operation of smart machine and intelligent domestic gateway is as follows:
It obtains for the trigger action for matching the intelligent domestic gateway;
When meeting preset condition, the facility information of the smart machine is sent to by the smart home by RF connections Gateway;
Receive the first key message from the intelligent domestic gateway;First key message includes that the intelligence is set Standby corresponding static ip address, the corresponding channel of the smart machine and the corresponding SSID of the intelligent domestic gateway.
Wherein, the facility information of smart machine may include the sequence number of smart machine and the software version of smart machine, Intelligent domestic gateway can identify different smart machines by the sequence number of smart machine, can also be according to smart machine Software version determines the need for carrying out software upgrading to smart machine.
In practical applications, user can be by carrying out pressing operation or touch to the matching feature key on smart machine Operation executes the matching operation between smart machine and intelligent domestic gateway with triggering, and the present invention executes smart machine to triggering The specific implementation of matching operation between intelligent domestic gateway does not limit.
It should be noted that it is First Contact Connections smart home net that the preset condition in this step, which refers in smart machine, It closes or smart machine is after system resetting, that is to say, that without storage and intelligent domestic gateway only in smart machine When establishing the relevant information of connection, just need to carry out matching operation.
It should also be noted that, the corresponding channel of smart machine and the corresponding SSID of intelligent domestic gateway can be used for intelligence Equipment searches intelligent domestic gateway, and the corresponding static ip address of smart machine can be used for smart machine and intelligent domestic gateway Between data interaction.
As it can be seen that in embodiments of the present invention, smart machine can be according to the SSID and intelligence of preset intelligent domestic gateway The channel that energy equipment uses, finds intelligent domestic gateway to be connected;Meanwhile smart machine can also pass through preset connection side Formula generates the first shared secret key, to use the interaction data between the first shared secret key pair and intelligent domestic gateway to carry out safe place Reason.In this way, the channel used by presetting the corresponding SSID of intelligent domestic gateway and smart machine, and execute searching parallel The operation of the intelligent domestic gateway of connection and the operation for generating the first shared secret key, improve smart machine and intelligent domestic gateway Between establish the efficiency of connection;By using interaction data between the first shared secret key pair smart machine and intelligent domestic gateway into Row encryption and decryption processing ensure that the safety of interaction data.
Embodiment of the method two
The embodiment of the invention discloses a kind of methods for establishing connection, are applied to intelligent domestic gateway, intelligent domestic gateway In smart home net, smart home net further includes smart machine.
Referring to Fig. 3, Fig. 3 is another flow chart for establishing connection method of the embodiment of the present invention, is included the following steps:
Step 301, when meeting preset condition, the second shared secret key between the smart machine is generated;
In this step, different for the originating end connected between smart machine and intelligent domestic gateway, preset condition can To be divided into two kinds of situations:
The first situation:Originating end is smart machine end, and preset condition can be that intelligent domestic gateway passes through preset company Mode is connect, the first public key from the smart machine is received;
Wherein, preset connection type can be RF connections or bluetooth connection;Concrete methods of realizing such as embodiment of the method Described in four.
The second situation:Originating end is intelligent domestic gateway, and it is described pre- that preset condition can be that intelligent domestic gateway passes through If connection type, the second public key of generation is sent to the smart machine, and receive from the smart machine first Public key;
Concrete methods of realizing is as described in embodiment of the method five hereinafter.
In embodiments of the present invention, intelligent domestic gateway generate and smart machine between the second shared secret key, for pair Interaction data between smart machine is encrypted, and ensures the safety of interaction data.
Step 302, being directed between foundation and the smart machine without password Wi- from the smart machine is being received When the request message of Fi connections, replying message for the request message, the smart home are sent to the smart machine Gateway uses the second shared secret key, and data interaction is carried out by the no password Wi-Fi connection and the smart machine.
In this step, it is established without password Wi-Fi connection when intelligent domestic gateway receives the request from smart machine Message when, can to smart machine return for establish request replying message.
But since what is established between intelligent domestic gateway and smart machine is no password Wi-Fi connection, in order to ensure intelligence The safety of interaction data between home gateway and smart machine, smart machine are also needed to sent information and are received Information carries out secrecy processing, and specifically, the second shared secret key that can be generated before use is encrypted to sent information It handles and the information received is decrypted.
It should be noted that when intelligent domestic gateway and smart machine are that First Contact Connections or intelligent domestic gateway wait for When the smart machine of connection has carried out system resetting, the matching operation pair between intelligent domestic gateway and smart machine can be passed through The facility information of smart machine is pre-set, can also be by directly to the equipment of intelligent domestic gateway input smart machine Information, the present invention do not limit the facility information for presetting smart machine using the mode of channel.
In one preferred embodiment of the invention, the matching operation detailed process of intelligent domestic gateway and smart machine For:
It is connected by RF, receives the facility information from the smart machine;
The first key message is sent to the smart machine;First key message includes that the smart machine is corresponding Static ip address, the corresponding channel of the smart machine and the corresponding SSID of the intelligent domestic gateway.
Wherein, the facility information from smart machine may include the sequence number of smart machine and the software version of smart machine This, intelligent domestic gateway can identify different smart machines by the sequence number of smart machine, can also be set according to intelligence Standby software version determines the need for carrying out software upgrading to smart machine.
As it can be seen that in embodiments of the present invention, intelligent domestic gateway can generate the second shared secret key;And in foundation and intelligence Can be between equipment without password Wi-Fi connection after, can be encrypted to sent information using the first shared secret key, It is decrypted to receiving the information from intelligent domestic gateway.In this way, by execute parallel foundation and smart machine it Between attended operation with generate the first shared secret key operation, improve between intelligent domestic gateway and smart machine establish connection Efficiency;Be encrypted by using interaction data between the second shared secret key pair intelligent domestic gateway and smart machine and Decryption processing ensure that the safety of interaction data.
Embodiment of the method three
The embodiment of the present invention illustrates to be initiated by smart machine end, smart machine on the basis of embodiment of the method one The detailed process connecting is established between intelligent domestic gateway, wherein the application of the embodiment of the present invention is smart machine.
Referring to Fig. 4, Fig. 4 is another flow chart for establishing connection method of the embodiment of the present invention, is included the following steps:
Step 401, it according to the corresponding SSID of the preset intelligent domestic gateway, is searched in preset channel to be connected The intelligent domestic gateway;
Step 402, using preset secret key exchange algorithm, the first public key and the intelligence that generate the smart machine are set The first standby private key;
In embodiments of the present invention, the first secret key exchange algorithm can be curve25519 algorithms, due to the use of The ciphering process of curve25519 algorithms belongs to the prior art, and details are not described herein.
Step 403, it is connected by RF, first public key is sent to the intelligent domestic gateway;
Step 404, the second public key from the intelligent domestic gateway is received;
Step 405, it according to first private key and second public key, is generated using the preset secret key exchange algorithm The first shared secret key between the intelligent domestic gateway;
Step 406, it described in finding when the intelligent domestic gateway connected, is directed to intelligent domestic gateway transmission Establish the request message without password Wi-Fi connection between the intelligent domestic gateway;
Step 407, receive and being replied message for the request message from the intelligent domestic gateway, establish with it is described Between intelligent domestic gateway without password Wi-Fi connection;
Step 408, by described between the intelligent domestic gateway without password Wi-Fi connection, to the intelligent family It occupies gateway and sends the first information;
Step 409, according to the described first shared secret key, the first information is encrypted using preset Encryption Algorithm Processing sends the encrypted first information to the intelligent domestic gateway;
Step 410, by the no password Wi-Fi connection, the second information come from the intelligent domestic gateway is received;
Step 411, according to the described first shared secret key, second information is carried out using the preset Encryption Algorithm Decryption processing generates the second information after decryption.
Wherein, in embodiments of the present invention, preset Encryption Algorithm may include chacha20 Encryption Algorithm and Poly1305 identifying algorithms.Specifically, when smart machine needs to send information to intelligent domestic gateway, first, according to first Shared secret key, the information sent to needs using chacha20 Encryption Algorithm are encrypted, and poly1305 certifications are reused For algorithm to the message authentication code for encrypted information 16 bytes of generation, the message authentication code of generation can be with encrypted letter Breath is sent to intelligent domestic gateway together.It, can in intelligent domestic gateway after receiving message authentication code and encrypted information Whether to be tampered by the integrality of the encrypted information of message authentication code verifying and in transmission process.That is, Chacha20 Encryption Algorithm can ensure decrypt after information is eavesdropped in transmission process by people, and poly1305 identifying algorithms It is able to verify that whether information is tampered in transmission process, to ensure the safety of information.
Correspondingly, intelligent domestic gateway is also required to be encrypted to sent information, and therefore, smart machine receives It is encryption information and message authentication code to the information from intelligent domestic gateway.When smart machine is received from smart home net When the encryption information of pass, it is possible, firstly, to according to the first shared secret key, using poly1305 identifying algorithms to encrypted information into Row data verification, it is complete in confirmation message and after being not tampered with, reuse chacha20 Encryption Algorithm to encrypted information into Row decryption processing generates the information after decryption, thus safety and the integrality of the information that strict guarantee receives.
As it can be seen that in embodiments of the present invention, when smart machine is to establish the originating end of connection, first, smart machine is opened Beginning finds intelligent domestic gateway to be connected, meanwhile, it can be attached with intelligent domestic gateway by RF connections, generate first Public key and the first private key, then the first public key is sent to intelligent domestic gateway, and receive from intelligent domestic gateway second Public key finally generates the first shared secret key according to the first private key and the second public key, and uses the first shared secret key, according to default Encryption Algorithm be encrypted to sent information, place be decrypted to receiving the information from intelligent domestic gateway Reason.In such manner, it is possible to find intelligent domestic gateway simultaneously in smart machine, the operation for generating the first shared secret key is executed, and use Interaction data is encrypted and decryption processing between first shared secret key pair smart machine and intelligent domestic gateway, is improving Establish joint efficiency while ensure that the safe transmission of interaction data.
Embodiment of the method four
The embodiment of the present invention illustrates to be sent out by smart machine end on the basis of embodiment of the method two and embodiment of the method three It rises, the detailed process of data interaction is carried out between smart machine and intelligent domestic gateway, wherein the application of the embodiment of the present invention Object is intelligent domestic gateway.
Referring to Fig. 5, Fig. 5 is another flow chart for establishing connection method of the embodiment of the present invention, is included the following steps:
Step 501, it is connected by RF, receives the first public key from the smart machine;
Step 502, using preset secret key exchange algorithm, the second public key of the intelligent domestic gateway and the intelligence are generated Second private key of energy home gateway;
Step 503, second public key is sent to the smart machine;
Step 504, it according to second private key and first public key, is generated using the preset secret key exchange algorithm The second shared secret key between the smart machine;
Step 505, being directed between foundation and the smart machine without password Wi- from the smart machine is being received When the request message of Fi connections, replying message for the request message is sent to the smart machine;
Step 506, by described between the smart machine without password Wi-Fi connection, reception is come from the intelligence The first information of energy equipment;
Step 507, according to the described second shared secret key, the first information is decrypted using preset Encryption Algorithm Processing generates the first information after decryption;
Step 508, by the no password Wi-Fi connection, the second information is sent to the smart machine;
Step 509, according to the described second shared secret key, the first information is carried out using the preset Encryption Algorithm Encryption sends encrypted second information to the smart machine.
As it can be seen that in embodiments of the present invention, when smart machine is to establish the originating end of connection, intelligent domestic gateway can be with It is attached with smart machine by RF connections, receives the first public key from smart machine, and generate the second public key and the Two private keys, then the second public key is sent to smart machine, the second shared secret key is finally generated according to the second private key and the first public key, And use the second shared secret key, be encrypted to sent information according to preset Encryption Algorithm, to receive come It is decrypted from the information of smart machine.In such manner, it is possible to find intelligent domestic gateway simultaneously in smart machine, generation is executed The operation of second shared secret key, and carried out using interaction data between the second shared secret key pair intelligent domestic gateway and smart machine Encryption and decryption processing ensure that the safe transmission of interaction data while joint efficiency is established in raising.
Embodiment of the method five
The embodiment of the present invention illustrates to be initiated by intelligent domestic gateway end on the basis of embodiment of the method two, intelligence The detailed process of connection is established between home gateway and smart machine, wherein the application of the embodiment of the present invention is intelligent family Occupy gateway.
Referring to Fig. 6, Fig. 6 is another flow chart for establishing connection method of the embodiment of the present invention, is included the following steps:
Step 601, using preset secret key exchange algorithm, the second public key of the intelligent domestic gateway and the intelligence are generated Second private key of energy home gateway;
Step 602, it is connected by RF, second public key is sent to the smart machine;
Step 603, the first public key from the smart machine is received;
Step 604, it according to second private key and first public key, is generated using the preset secret key exchange algorithm The second shared secret key between the smart machine;
Step 605, being directed to from the smart machine is received to establish between the smart machine without password Wi-Fi The request message of connection sends replying message for the request message, the intelligent domestic gateway to the smart machine Using the second shared secret key, data interaction is carried out by the no password Wi-Fi connection and the smart machine.
As it can be seen that in embodiments of the present invention, when intelligent domestic gateway is to establish the originating end of connection, intelligent domestic gateway Preset secret key exchange algorithm can be used to generate the second public key and the second private key, then be sent to the second public key by RF connections Smart machine, and the first public key from smart machine is received by RF connections, so generated according to the second private key and the first public key Second shared secret key;And between foundation and smart machine without password Wi-Fi connection after, use the first shared secret key to ensure The safe transmission of interaction data between smart machine.In this way, not only increasing between intelligent domestic gateway and smart machine The efficiency of connection is established, and ensure that the safety of interaction data.
Embodiment of the method six
The embodiment of the present invention illustrates on the basis of embodiment of the method one and embodiment of the method five by intelligent domestic gateway What end was initiated, the detailed process of data interaction is carried out between intelligent domestic gateway and smart machine, wherein the embodiment of the present invention Application is smart machine.
Referring to Fig. 7, Fig. 7 is another flow chart for establishing connection method of the embodiment of the present invention, is included the following steps:
Step 701, the second public key from the intelligent domestic gateway is received;
Step 702, according to preset SSID, the intelligent domestic gateway to be connected is searched in preset channel;
Step 703, using preset secret key exchange algorithm, corresponding first public key of the smart machine and the intelligence are generated It can corresponding first private key of equipment;
Step 704, it is connected by RF, first public key is sent to the intelligent domestic gateway;
Step 705, it according to first private key and second public key, is generated using the preset secret key exchange algorithm The first shared secret key between the intelligent domestic gateway;
Step 706, it described in finding when the intelligent domestic gateway connected, is directed to intelligent domestic gateway transmission Establish the request message without password Wi-Fi connection between the intelligent domestic gateway;
Step 707, receive and being replied message for the request message from the intelligent domestic gateway, establish with it is described Between intelligent domestic gateway without password Wi-Fi connection, the smart machine uses the first shared secret key, passes through the no password Wi-Fi connection carries out data interaction with the intelligent home network.
As it can be seen that in embodiments of the present invention, when intelligent domestic gateway is to establish the originating end of connection, smart machine passes through RF connections receive the second public key from intelligent domestic gateway, next, beginning look for intelligent domestic gateway to be connected, simultaneously The first shared secret key is generated according to the second public key received, to use between the first shared secret key pair and intelligent domestic gateway Interaction data carries out safe handling.In this way, the efficiency that connection is established between smart machine and intelligent domestic gateway is not only increased, And it ensure that the safety of interaction data.
Device embodiment one
The embodiment of the invention discloses a kind of smart machines, are the smart machine of the embodiment of the present invention referring to Fig. 8, Fig. 8 A kind of structure chart, the smart machine include first processor 801 and first interface 802, wherein the first processor 801 Including searching unit 803 and the first generation unit 804, the first interface 802 includes the first transmission unit 805 and establishes unit 806, the smart machine is in smart home net, and the smart home net further includes intelligent domestic gateway.
The searching unit 803, for according to the corresponding wireless sub network title SSID of the preset intelligent domestic gateway, The intelligent domestic gateway to be connected is searched in preset channel;
First generation unit 804, for by preset connection type, generating between the intelligent domestic gateway The first shared secret key;
First transmission unit 805, for find it is described when the intelligent domestic gateway connected, to the intelligence Home gateway is sent for the request message without password Wi-Fi connection between foundation and the intelligent domestic gateway;
It is described to establish unit 806, disappear for the reply of the request message from the intelligent domestic gateway for receiving Breath, establish between the intelligent domestic gateway without password Wi-Fi connection, the smart machine uses the first shared secret key, Data interaction is carried out by the no password Wi-Fi connection and the intelligent home network.
In one preferred embodiment of the invention, the preset connection type includes that radio frequency connection and bluetooth connect It connects.
In another preferred embodiment of the present invention, the first interface 802 further includes:
Acquiring unit, for obtaining for the trigger action for matching the intelligent domestic gateway;
Second transmission unit, for when meeting preset condition, by RF connections by the facility information of the smart machine It is sent to the intelligent domestic gateway;
First receiving unit, for receiving the first key message from the intelligent domestic gateway;Described first is crucial Information includes the corresponding static ip address of the smart machine, the corresponding channel of the smart machine and the intelligent domestic gateway Corresponding SSID.
As it can be seen that in apparatus of the present invention embodiment, smart machine can according to the SSID of preset intelligent domestic gateway with And the channel that smart machine uses, find intelligent domestic gateway to be connected;Meanwhile smart machine can also pass through preset company The mode of connecing generates the first shared secret key, and is encrypted to sent information using the first shared secret key, to receiving It is decrypted to the information from intelligent domestic gateway.In this way, by the default corresponding SSID of intelligent domestic gateway and The channel that smart machine uses, and parallel execution find the operation of the intelligent domestic gateway of connection and generate the first shared secret key Operation, improve the efficiency that connection is established between smart machine and intelligent domestic gateway;By using the first shared secret key pair Interaction data is encrypted and decryption processing between smart machine and intelligent domestic gateway, ensure that the safety of interaction data Property.
Device embodiment two
The embodiment of the invention discloses a kind of intelligent domestic gateways, and referring to Fig. 9, Fig. 9 is the intelligent family of the embodiment of the present invention A kind of structure chart of gateway is occupied, the intelligent domestic gateway includes second processor 901 and second interface 902, wherein described Two processors 901 include the second generation unit 903, and the second interface 902 includes third transmission unit 904.
Second generation unit 903, for when meeting preset condition, generating second between the smart machine Shared secret key;
The third transmission unit 904, receive from the smart machine for establish with the smart machine it Between the request message without password Wi-Fi connection, send to the smart machine and being replied message for the request message, it is described Intelligent domestic gateway uses the second shared secret key, and data friendship is carried out by the no password Wi-Fi connection and the smart machine Mutually.
In one preferred embodiment of the invention, the preset condition includes:
By preset connection type, the first public key from the smart machine is received;Or
By the preset connection type, the second public key of generation is sent to the smart machine, and receive and come from First public key of the smart machine;Wherein, the preset connection type includes radio frequency connection and bluetooth connection.
In another preferred embodiment of the present invention, the second interface 902 further includes:
Second receiving unit, for by RF connections, receiving the facility information from the smart machine;
4th transmission unit, for sending the first key message to the smart machine;First key message includes The corresponding static ip address of the smart machine, the corresponding channel of the smart machine and the intelligent domestic gateway are corresponding SSID。
As it can be seen that in apparatus of the present invention embodiment, intelligent domestic gateway can generate the second shared secret key;And it is establishing Between smart machine without password Wi-Fi connection after, be encrypted to sent information using the first shared secret key, It is decrypted to receiving the information from intelligent domestic gateway.In this way, by execute parallel foundation and smart machine it Between attended operation with generate the first shared secret key operation, improve between intelligent domestic gateway and smart machine establish connection Efficiency;Be encrypted by using interaction data between the second shared secret key pair intelligent domestic gateway and smart machine and Decryption processing ensure that the safety of interaction data.
Device embodiment three
The embodiment of the invention discloses another smart machines, and referring to Figure 10, Figure 10 is that the intelligence of the embodiment of the present invention is set Another standby structure chart, device method flow as shown in fig. 4 is corresponding, and the smart machine includes first processor 1001 and first interface 1002, wherein the first processor 1001 includes searching unit 1003 and the first generation unit 1004, The first interface 1002 includes the first transmission unit 1005 and establishes unit 1006;Wherein, shown in searching unit 1003 and Fig. 8 Searching unit 803 can be identical, and the first transmission unit 1005 can be identical with the first transmission unit 805 shown in Fig. 8, Which is not described herein again.
First generation unit 1004, including:First generates subelement 1007, the first transmission sub-unit 1008, first Receiving subelement 1009 and second generates subelement 1010;
Described first generates subelement 1007, for using preset secret key exchange algorithm, generates the smart machine First private key of the first public key and the smart machine;
First transmission sub-unit 1008, for by RF connections, first public key to be sent to the intelligent family Occupy gateway;
First receiving subelement 1009, for receiving the second public key from the intelligent domestic gateway;
Described second generates subelement 1010, is used for according to first private key and second public key, using described pre- If secret key exchange algorithm generate and the intelligent domestic gateway between the first shared secret key.
It is described to establish unit 1006, including:Third transmission sub-unit 1011, the first encryption sub-unit operable 1012, third receive Subelement 1013 and first decrypts subelement 1014;
The third transmission sub-unit 1011, for by it is described between the intelligent domestic gateway without password Wi- Fi connections send the first information to the intelligent domestic gateway;
First encryption sub-unit operable 1012, for according to the described first shared secret key, using preset Encryption Algorithm pair The first information is encrypted, and the encrypted first information is sent to the intelligent domestic gateway;
The third receiving subelement 1013, for by the no password Wi-Fi connection, reception to be come from the intelligence Second information of home gateway;
The first decryption subelement 1014, for according to the described first shared secret key, being calculated using the preset encryption Second information is decrypted in method, generates the second information after decryption.
As it can be seen that in apparatus of the present invention embodiment, when smart machine is to establish the originating end of connection, first, intelligently set It is standby to begin look for intelligent domestic gateway to be connected, meanwhile, it can be attached, generated with intelligent domestic gateway by RF connections First public key and the first private key, then the first public key is sent to intelligent domestic gateway, and receive from intelligent domestic gateway Second public key finally generates the first shared secret key according to the first private key and the second public key, and uses the first shared secret key, according to Preset Encryption Algorithm is encrypted to sent information, is solved to receiving the information from intelligent domestic gateway Close processing.In such manner, it is possible to find intelligent domestic gateway simultaneously in smart machine, the operation for generating the first shared secret key is executed, and It is encrypted using interaction data between the first shared secret key pair smart machine and intelligent domestic gateway and decryption processing, Improve establish joint efficiency while ensure that the safe transmission of interaction data.
Device embodiment four
The embodiment of the invention discloses another intelligent domestic gateways, are the intelligence of the embodiment of the present invention referring to Figure 11, Figure 11 Another structure chart of energy home gateway, the device is corresponding with method flow shown in fig. 5, and the intelligent domestic gateway includes Second processor 1101 and second interface 1102, wherein the second processor 1101 includes the second generation unit 1103, described Second interface 1102 includes third transmission unit 1104.
Second generation unit 1103, including:4th receiving subelement 1105, the 4th generates subelement the 1106, the 4th Transmission sub-unit 1107 and the 5th generates subelement 1108;
4th receiving subelement 1105, for by RF connections, receiving the first public key from the smart machine;
Described 4th generates subelement 1106, for using preset secret key exchange algorithm, generates the smart home net Second private key of the second public key and the intelligent domestic gateway that close;
4th transmission sub-unit 1107, for second public key to be sent to the smart machine;
Described 5th generates subelement 1108, is used for according to second private key and first public key, using described pre- If secret key exchange algorithm generate and the smart machine between the second shared secret key.
The third transmission unit 1104, including:4th receiving subelement 1109, the second decryption subelement the 1110, the 6th Transmission sub-unit 1111 and the second encryption sub-unit operable 1112;
4th receiving subelement 1109, for passing through connecting without password Wi-Fi between the described and described smart machine It connects, receives the first information come from the smart machine;
The second decryption subelement 1110, for according to the described second shared secret key, using preset Encryption Algorithm pair The first information is decrypted, and generates the first information after decryption;
6th transmission sub-unit 1111, for by the no password Wi-Fi connection, being sent to the smart machine Second information;
Second encryption sub-unit operable 1112, for according to the described second shared secret key, using preset Encryption Algorithm pair The first information is encrypted, and encrypted second information is sent to the smart machine.
As it can be seen that in apparatus of the present invention embodiment, when smart machine is to establish the originating end of connection, intelligent domestic gateway It can be attached with smart machine by RF connections, receive the first public key from smart machine, and generate the second public key With the second private key, then the second public key is sent to smart machine, it is shared finally to generate second according to the second private key and the first public key Secret key, and the second shared secret key is used, it is encrypted to sent information according to preset Encryption Algorithm, to receiving It is decrypted to the information from smart machine.In such manner, it is possible to find intelligent domestic gateway simultaneously in smart machine, execute The operation of the second shared secret key is generated, and uses interaction data between the second shared secret key pair intelligent domestic gateway and smart machine It is encrypted and decryption processing, in the safe transmission that improves the while of establishing joint efficiency and ensure that interaction data.
Device embodiment five
The embodiment of the invention discloses another intelligent domestic gateways, are the intelligence of the embodiment of the present invention referring to Figure 12, Figure 12 Another structure chart of energy home gateway, the device is corresponding with method flow shown in fig. 6, and the intelligent domestic gateway includes Second processor 1201 and second interface 1202, wherein the second processor 1201 includes the second generation unit 1203, described Second interface 1202 includes third transmission unit 1204;Wherein, third transmission unit shown in third transmission unit 1204 and Fig. 9 904 can be identical, and which is not described herein again.
Second generation unit 1203, including:6th generates subelement 1205, the 5th transmission sub-unit the 1206, the 5th Receiving subelement 1207 and the 7th generates subelement 1208;
Described 6th generates subelement 1205, for using preset secret key exchange algorithm, generates the smart home net Second private key of the second public key and the intelligent domestic gateway that close;
5th transmission sub-unit 1206, for by RF connections, second public key being sent to the intelligence and is set It is standby;
5th receiving subelement 1207, for receiving the first public key from the smart machine;
Described 7th generates subelement 1208, is used for according to second private key and first public key, using described pre- If secret key exchange algorithm generate and the smart machine between the second shared secret key.
As it can be seen that in apparatus of the present invention embodiment, when intelligent domestic gateway is to establish the originating end of connection, smart home Gateway can use preset secret key exchange algorithm to generate the second public key and the second private key, then be sent out the second public key by RF connections Smart machine is given, and the first public key from smart machine is received by RF connections, it is then public according to the second private key and first Key generates the second shared secret key;And between foundation and smart machine without password Wi-Fi connection after, it is shared secret using first Key ensures the safe transmission of the interaction data between smart machine.It is set with intelligence in this way, not only increasing intelligent domestic gateway The efficiency of connection is established between standby, and ensure that the safety of interaction data.
Device embodiment six
The embodiment of the invention discloses another smart machines, and referring to Figure 13, Figure 13 is that the intelligence of the embodiment of the present invention is set Standby another structure chart, the device is corresponding with method flow shown in Fig. 7, and the smart machine includes first processor 1301 and first interface 1302, wherein the first processor 1301 includes searching unit 1303 and the first generation unit 1304, The first interface 1302 includes the first transmission unit 1305 and establishes unit 1306;Wherein, shown in searching unit 1303 and Fig. 8 Searching unit 803 can be identical, and the first transmission unit 1305 can complete phase with the first transmission unit 1305 shown in Fig. 8 Together, establish unit 1306 with unit 806 is established shown in Fig. 8 can be identical, which is not described herein again.
First generation unit 1304, including:Second receiving subelement 1307, third generation subelement 1308, second Transmission sub-unit 1309 and the 4th generates subelement 1310;
Second receiving subelement 1307, for receiving the second public key from the intelligent domestic gateway;
The third generates subelement 1308, for using preset secret key exchange algorithm, generates the smart machine pair Corresponding first private key of the first public key and the smart machine answered;
Second transmission sub-unit 1309, for by RF connections, first public key to be sent to the intelligent family Occupy gateway;
Described 4th generates subelement 1310, is used for according to first private key and second public key, using described pre- If secret key exchange algorithm generate and the intelligent domestic gateway between the first shared secret key.
As it can be seen that in apparatus of the present invention embodiment, when intelligent domestic gateway is to establish the originating end of connection, smart machine The second public key from intelligent domestic gateway is received by RF connections, next, intelligent domestic gateway to be connected is begun look for, The first shared secret key is generated according to the second public key received simultaneously;After connection is successfully established, smart machine can use the Interaction data between one shared secret key pair and intelligent domestic gateway carries out safe handling.In this way, not only increasing smart machine The efficiency connecting is established between intelligent domestic gateway, and ensure that the safety of interaction data.
System embodiment
The embodiment of the present invention proposes a kind of system for establishing connection, is establish connection system one referring to Figure 14, Figure 14 Kind structure chart, in fig. 14, system includes wireless network camera 1401 and intelligent domestic gateway 1402, wherein described wireless Web camera 1401 has the first Wi-Fi module 1403, the first RF modules 1404 and first processing module 1405, the intelligence Home gateway 1402 has the second Wi-Fi module 1406, the 2nd RF modules 1407 and Second processing module 1408, wherein first Four-headed arrow between Wi-Fi module 1403 and the second Wi-Fi module 1406 indicates wireless network camera 1401 and intelligent family Occupying gateway 1402 can be established by the first Wi-Fi module 1403 and the second Wi-Fi module 1406 without password Wi-Fi connection, the Four-headed arrow between one RF modules 1404 and the 2nd RF modules 1407 indicates wireless network camera 1401 and smart home net The first shared secret key and the second shared secret key can be generated by the first RF modules 1404 and the 2nd RF modules 1407 by closing 1402.
The first processing module 1405 is by the first Wi-Fi module 1403, according to the preset intelligent domestic gateway Corresponding wireless sub network title SSID searches the intelligent domestic gateway to be connected in preset channel;
The first processing module 1405 by the first RF modules 1404 and the 2nd RF modules 1407 with it is described Second processing module 1408 connects, and generates the first shared secret key between the intelligent domestic gateway;
The Second processing module 1408 by the 2nd RF modules 1407 and the first RF modules 1404 with it is described First processing module 1405 connects, and generates the second shared secret key between the smart machine;
The intelligence to be connected is found by first Wi-Fi module 1403 in the first processing module 1405 When home gateway, sends to the intelligent domestic gateway and connect without password Wi-Fi between foundation and the intelligent domestic gateway The request message connect;
The Second processing module 1408 is received by second Wi-Fi module 1406 from the smart machine For establish and the smart machine between the request message without password Wi-Fi connection, to the intelligent domestic gateway send For replying message for the request message, the intelligent domestic gateway uses the second shared secret key, passes through the no password Wi- Fi connections carry out data interaction with the smart machine;
The first processing module 1405 receives by first Wi-Fi module 1403 and comes from the smart home net Close and being replied message for the request message, establish between the intelligent domestic gateway without password Wi-Fi connection, it is described Smart machine uses the first shared secret key, and data friendship is carried out by the no password Wi-Fi connection and the intelligent home network Mutually.
As it can be seen that in embodiments of the present invention, can make between smart machine and intelligent domestic gateway without password Wi-Fi connection Establish process and the generating process of shared secret key is carried out at the same time, not only increase and built between smart machine and intelligent domestic gateway The efficiency of vertical connection, and ensure that the safety of interaction data between smart machine and intelligent domestic gateway.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (27)

1. a kind of method for establishing connection, which is characterized in that be applied to smart machine, the smart machine is in smart home net In, the smart home net further includes intelligent domestic gateway, the method includes:
According to the corresponding wireless sub network title SSID of the preset intelligent domestic gateway, searched in preset channel to be connected The intelligent domestic gateway;
By preset connection type, the first shared secret key between the intelligent domestic gateway is generated;
It is described when the intelligent domestic gateway connected finding, it is sent to the intelligent domestic gateway for foundation and the intelligence Request message without password Wireless Fidelity Wi-Fi connection between energy home gateway;
The replying message for the request message from the intelligent domestic gateway is received, is established and the intelligent domestic gateway Between without password Wi-Fi connection, the smart machine uses the first shared secret key, by the no password Wi-Fi connection with The intelligent home network carries out data interaction.
2. according to the method described in claim 1, it is characterized in that, the preset connection type includes radio frequency connection and indigo plant Tooth connects.
3. according to the method described in claim 2, it is characterized in that, described corresponding according to the preset intelligent domestic gateway Wireless sub network title SSID searches the intelligent domestic gateway to be connected in preset channel;By preset connection type, The step of generating the first shared secret key between the intelligent domestic gateway, including;
According to the corresponding SSID of the preset intelligent domestic gateway, the smart home to be connected is searched in preset channel Gateway;
Using preset secret key exchange algorithm, the first private of the first public key and the smart machine of the smart machine is generated Key;
It is connected by RF, first public key is sent to the intelligent domestic gateway;
Receive the second public key from the intelligent domestic gateway;
According to first private key and second public key, generated and the intelligent family using the preset secret key exchange algorithm Occupy the first shared secret key between gateway.
4. according to the method described in claim 2, it is characterized in that, described corresponding according to the preset intelligent domestic gateway Wireless sub network title SSID searches the intelligent domestic gateway to be connected in preset channel;By preset connection type, The step of generating the first shared secret key between the intelligent domestic gateway, including;
Receive the second public key from the intelligent domestic gateway;
According to preset SSID, the intelligent domestic gateway to be connected is searched in preset channel;
Using preset secret key exchange algorithm, generates corresponding first public key of the smart machine and the smart machine is corresponding First private key;
It is connected by RF, first public key is sent to the intelligent domestic gateway;
According to first private key and second public key, generated and the intelligent family using the preset secret key exchange algorithm Occupy the first shared secret key between gateway.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
It obtains for the trigger action for matching the intelligent domestic gateway;
When meeting preset condition, the facility information of the smart machine is sent to by the smart home net by RF connections It closes;
Receive the first key message from the intelligent domestic gateway;First key message includes the smart machine pair Static ip address, the corresponding channel of the smart machine and the corresponding SSID of the intelligent domestic gateway answered.
6. according to the method described in claim 1, it is characterized in that, the smart machine is led to using the first shared secret key The step of no password Wi-Fi connection carries out data interaction with the intelligent home network is crossed, including:
By it is described between the intelligent domestic gateway without password Wi-Fi connection, send the to the intelligent domestic gateway One information;
According to the described first shared secret key, the first information is encrypted using preset Encryption Algorithm, to described Intelligent domestic gateway sends the encrypted first information;
By the no password Wi-Fi connection, the second information come from the intelligent domestic gateway is received;
According to the described first shared secret key, second information is decrypted using the preset Encryption Algorithm, it is raw At the second information after decryption.
7. a kind of method for establishing connection, which is characterized in that be applied to intelligent domestic gateway, the intelligent domestic gateway is in intelligence In energy household net, the smart home net further includes smart machine, the method includes:
When meeting preset condition, the second shared secret key between the smart machine is generated;
Being directed to from the smart machine is received to establish between the smart machine without password Wireless Fidelity Wi-Fi connection Request message, send to the smart machine and being replied message for the request message, the intelligent domestic gateway uses Second shared secret key carries out data interaction by the no password Wi-Fi connection and the smart machine.
8. the method according to the description of claim 7 is characterized in that the preset condition includes:
By preset connection type, the first public key from the smart machine is received;Or
By the preset connection type, the second public key of generation is sent to the smart machine, and receive from described First public key of smart machine;Wherein, the preset connection type includes radio frequency connection and bluetooth connection.
9. according to the method described in claim 8, it is characterized in that, described when meeting preset condition, generation and the intelligence The step of the second shared secret key between equipment, including:
It is connected by RF, receives the first public key from the smart machine;
Using preset secret key exchange algorithm, the second public key of the intelligent domestic gateway and the intelligent domestic gateway are generated Second private key;
Second public key is sent to the smart machine;
According to second private key and first public key, is generated using the preset secret key exchange algorithm and set with the intelligence The second shared secret key between standby.
10. according to the method described in claim 8, it is characterized in that, described when meeting preset condition, generation and the intelligence The step of the second shared secret key between equipment, including:
Using preset secret key exchange algorithm, the second public key of the intelligent domestic gateway and the intelligent domestic gateway are generated Second private key;
It is connected by RF, second public key is sent to the smart machine;
Receive the first public key from the smart machine;
According to second private key and first public key, is generated using the preset secret key exchange algorithm and set with the intelligence The second shared secret key between standby.
11. the method according to the description of claim 7 is characterized in that the method further includes:
It is connected by RF, receives the facility information from the smart machine;
The first key message is sent to the smart machine;First key message includes the corresponding static state of the smart machine IP address, the corresponding channel of the smart machine and the corresponding wireless sub network title SSID of the intelligent domestic gateway.
12. the method according to the description of claim 7 is characterized in that the intelligent domestic gateway is shared secret using second Key, the step of data interaction is carried out by the no password Wi-Fi connection and the smart machine, including:
By it is described between the smart machine without password Wi-Fi connection, receive first come from the smart machine Information;
According to the described second shared secret key, the first information is decrypted using preset Encryption Algorithm, generates solution The first information after close;
By the no password Wi-Fi connection, the second information is sent to the smart machine;
According to the described second shared secret key, the first information is encrypted using preset Encryption Algorithm, to described Smart machine sends encrypted second information.
13. a kind of smart machine, which is characterized in that the smart machine is in smart home net, and the smart home net is also Including intelligent domestic gateway, the smart machine includes first processor and first interface;
The first processor, for according to the corresponding wireless sub network title SSID of the preset intelligent domestic gateway, pre- If searching the intelligent domestic gateway to be connected on channel, and by preset connection type, generate and the intelligent family Occupy the first shared secret key between gateway;
The first interface, for when the intelligent domestic gateway connected, being sent out to the intelligent domestic gateway described in finding It send next the request message without password Wireless Fidelity Wi-Fi connection between the intelligent domestic gateway, and reception for establishing Replied message from the intelligent domestic gateway for the request message, establish between the intelligent domestic gateway without close Code Wi-Fi connection, the smart machine use the first shared secret key, pass through the no password Wi-Fi connection and the intelligent family It occupies network and carries out data interaction.
14. equipment according to claim 13, which is characterized in that the first processor includes searching unit and the first life At unit, the first interface includes the first transmission unit and establishes unit;
The searching unit, for according to the corresponding SSID of the preset intelligent domestic gateway, searching and waiting in preset channel The intelligent domestic gateway of connection;
First generation unit, for by preset connection type, generating first between the intelligent domestic gateway Shared secret key;
First transmission unit, for find it is described when the intelligent domestic gateway connected, to the smart home net It closes and sends for the request message without password Wi-Fi connection between foundation and the intelligent domestic gateway;
It is described to establish unit, for receiving the replying message for the request message from the intelligent domestic gateway, establish Between the intelligent domestic gateway without password Wi-Fi connection, the smart machine uses the first shared secret key, by described No password Wi-Fi connection carries out data interaction with the intelligent home network.
15. smart machine according to claim 14, which is characterized in that the preset connection type includes that radio frequency connects It connects and bluetooth connection.
16. smart machine according to claim 15, which is characterized in that first generation unit, including:First generates Subelement, the first transmission sub-unit, the first receiving subelement and second generate subelement;
Described first generates subelement, for using preset secret key exchange algorithm, generates the first public key of the smart machine With the first private key of the smart machine;
First transmission sub-unit, for by RF connections, first public key to be sent to the intelligent domestic gateway;
First receiving subelement, for receiving the second public key from the intelligent domestic gateway;
Described second generates subelement, for according to first private key and second public key, using the preset secret key Exchange algorithm generates the first shared secret key between the intelligent domestic gateway.
17. smart machine according to claim 15, which is characterized in that first generation unit, including:Second receives Subelement, third generate subelement, and the second transmission sub-unit and the 4th generate subelement;
Second receiving subelement, for receiving the second public key from the intelligent domestic gateway;
The third generates subelement, for using preset secret key exchange algorithm, generates the smart machine corresponding first Public key and corresponding first private key of the smart machine;
Second transmission sub-unit, for by RF connections, first public key to be sent to the intelligent domestic gateway;
Described 4th generates subelement, for according to first private key and second public key, using the preset secret key Exchange algorithm generates the first shared secret key between the intelligent domestic gateway.
18. smart machine according to claim 14, which is characterized in that the first interface further includes:
Acquiring unit, for obtaining for the trigger action for matching the intelligent domestic gateway;
Second transmission unit, for when meeting preset condition, being sent the facility information of the smart machine by RF connections To the intelligent domestic gateway;
First receiving unit, for receiving the first key message from the intelligent domestic gateway;First key message It is corresponded to including the corresponding static ip address of the smart machine, the corresponding channel of the smart machine and the intelligent domestic gateway SSID.
19. smart machine according to claim 14, which is characterized in that it is described to establish unit, including:It is single that third sends son Member, the first encryption sub-unit operable, third receiving subelement and the first decryption subelement;
The third transmission sub-unit, for by it is described between the intelligent domestic gateway without password Wi-Fi connection, to The intelligent domestic gateway sends the first information;
First encryption sub-unit operable is used for according to the described first shared secret key, using preset Encryption Algorithm to described first Information is encrypted, and the encrypted first information is sent to the intelligent domestic gateway;
The third receiving subelement, for by the no password Wi-Fi connection, reception to be come from the intelligent domestic gateway The second information;
The first decryption subelement, is used for according to the described first shared secret key, using the preset Encryption Algorithm to described Second information is decrypted, and generates the second information after decryption.
20. a kind of intelligent domestic gateway, which is characterized in that the intelligent domestic gateway is in smart home net, the intelligence Household net further includes smart machine, and the intelligent domestic gateway includes second processor and second interface;
The second processor, for when meeting preset condition, generating the second shared secret key between the smart machine;
The second interface is established between the smart machine for receiving being directed to from the smart machine without password The request message of Wireless Fidelity Wi-Fi connection sends replying message for the request message to the smart machine, described Intelligent domestic gateway uses the second shared secret key, and data friendship is carried out by the no password Wi-Fi connection and the smart machine Mutually.
21. intelligent domestic gateway according to claim 20, which is characterized in that the second processor includes the second generation Unit, the second interface include third transmission unit;
Second generation unit, for when meeting preset condition, second between generation and the smart machine to be shared secret Key;
The third transmission unit receives being directed to from the smart machine and establishes between the smart machine without password The request message of Wi-Fi connection sends replying message for the request message, the smart home to the smart machine Gateway uses the second shared secret key, and data interaction is carried out by the no password Wi-Fi connection and the smart machine.
22. intelligent domestic gateway according to claim 21, which is characterized in that the preset condition includes:
By preset connection type, the first public key from the smart machine is received;Or
By the preset connection type, the second public key of generation is sent to the smart machine, and receive from described First public key of smart machine;Wherein, the preset connection type includes radio frequency connection and bluetooth connection.
23. intelligent domestic gateway according to claim 22, which is characterized in that second generation unit, including:4th Receiving subelement, the 4th generates subelement, the 4th transmission sub-unit and the 5th generates subelement;
4th receiving subelement, for by RF connections, receiving the first public key from the smart machine;
Described 4th generates subelement, for using preset secret key exchange algorithm, generates the second of the intelligent domestic gateway Second private key of public key and the intelligent domestic gateway;
4th transmission sub-unit, for second public key to be sent to the smart machine;
Described 5th generates subelement, for according to second private key and first public key, using the preset secret key Exchange algorithm generates the second shared secret key between the smart machine.
24. intelligent domestic gateway according to claim 22, which is characterized in that second generation unit, including:6th It generates subelement, the 5th transmission sub-unit, the 5th receiving subelement and the 7th and generates subelement;
Described 6th generates subelement, for using preset secret key exchange algorithm, generates the second of the intelligent domestic gateway Second private key of public key and the intelligent domestic gateway;
5th transmission sub-unit, for by RF connections, second public key to be sent to the smart machine;
5th receiving subelement, for receiving the first public key from the smart machine;
Described 7th generates subelement, for according to second private key and first public key, using the preset secret key Exchange algorithm generates the second shared secret key between the smart machine.
25. intelligent domestic gateway according to claim 21, which is characterized in that the second interface further includes:
Second receiving unit, for by RF connections, receiving the facility information from the smart machine;
4th transmission unit, for sending the first key message to the smart machine;First key message includes described The corresponding static ip address of smart machine, the corresponding channel of the smart machine and the corresponding SSID of the intelligent domestic gateway.
26. intelligent domestic gateway according to claim 21, which is characterized in that the third transmission unit, including:6th Receiving subelement, the second decryption subelement, the 6th transmission sub-unit and the second encryption sub-unit operable;
6th receiving subelement, for by, without password Wi-Fi connection, receiving and between the described and described smart machine To the first information from the smart machine;
The second decryption subelement, is used for according to the described second shared secret key, using preset Encryption Algorithm to described first Information is decrypted, and generates the first information after decryption;
6th transmission sub-unit, for by the no password Wi-Fi connection, the second letter to be sent to the smart machine Breath;
Second encryption sub-unit operable is used for according to the described second shared secret key, using preset Encryption Algorithm to described first Information is encrypted, and encrypted second information is sent to the smart machine.
27. a kind of system for establishing connection, which is characterized in that the system comprises wireless network camera, intelligent domestic gateway, The wireless network camera has the first Wi-Fi module, the first RF modules and first processing module, the intelligent domestic gateway Have the second Wi-Fi module, the 2nd RF modules and Second processing module, the system comprises:
The first processing module is by the first Wi-Fi module, according to the corresponding wireless son of the preset intelligent domestic gateway User name claims SSID, and the intelligent domestic gateway to be connected is searched in preset channel;
The first processing module is connect with the 2nd RF modules with the Second processing module by the first RF modules, Generate the first shared secret key between the intelligent domestic gateway;
The Second processing module is connect with the first RF modules with the first processing module by the 2nd RF modules, Generate the second shared secret key between the smart machine;
Found by first Wi-Fi module in the first processing module it is described when the intelligent domestic gateway connected, It sends to be directed to the intelligent domestic gateway and establish between the intelligent domestic gateway without password Wireless Fidelity Wi-Fi connection Request message;
The Second processing module by second Wi-Fi module, receive from the smart machine for establish with Request message without password Wi-Fi connection between the smart machine sends to the intelligent domestic gateway and is directed to the request Message replies message, the intelligent domestic gateway use the second shared secret key, by the no password Wi-Fi connection with it is described Smart machine carries out data interaction;
The first processing module is received and is asked for described from the intelligent domestic gateway by first Wi-Fi module Ask replying message for message, establish between the intelligent domestic gateway without password Wi-Fi connection, the smart machine uses First shared secret key carries out data interaction by the no password Wi-Fi connection and the intelligent home network.
CN201610880246.1A 2016-10-09 2016-10-09 Intelligent device, intelligent home gateway, and method and system for establishing connection Active CN108306793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610880246.1A CN108306793B (en) 2016-10-09 2016-10-09 Intelligent device, intelligent home gateway, and method and system for establishing connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610880246.1A CN108306793B (en) 2016-10-09 2016-10-09 Intelligent device, intelligent home gateway, and method and system for establishing connection

Publications (2)

Publication Number Publication Date
CN108306793A true CN108306793A (en) 2018-07-20
CN108306793B CN108306793B (en) 2021-01-22

Family

ID=62871861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610880246.1A Active CN108306793B (en) 2016-10-09 2016-10-09 Intelligent device, intelligent home gateway, and method and system for establishing connection

Country Status (1)

Country Link
CN (1) CN108306793B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089251A (en) * 2018-09-05 2018-12-25 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on bluetooth connection equivalence of query equipment
CN109089249A (en) * 2018-09-05 2018-12-25 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on gateway inquiry buffer joint
CN113194015A (en) * 2021-04-29 2021-07-30 洪璐 Internet of things intelligent household equipment safety control method and system
CN114422995A (en) * 2022-01-04 2022-04-29 太仓市同维电子有限公司 Method for household automatic networking without awareness

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980120A (en) * 2005-12-02 2007-06-13 宏碁股份有限公司 Accessing method having secret-keeping function and linking to wireless local network and system
US20090214036A1 (en) * 2008-02-22 2009-08-27 Microsoft Corporation Authentication mechanisms for wireless networks
CN103024743A (en) * 2012-12-17 2013-04-03 北京航空航天大学 Wireless local area network trusted security access method
CN103619017A (en) * 2013-11-22 2014-03-05 福州瑞芯微电子有限公司 Method and system for wireless router authorized connection based on NFC technology
CN104202795A (en) * 2014-08-16 2014-12-10 高建宏 Method and device for directly logging into business place website through Wi-Fi (Wireless Fidelity)
CN104244248A (en) * 2013-06-09 2014-12-24 杭州华三通信技术有限公司 Secret key processing method and device
CN104394533A (en) * 2014-11-24 2015-03-04 中国联合网络通信集团有限公司 WiFi (wireless fidelity) connection method, server and terminal
CN105101203A (en) * 2015-05-25 2015-11-25 南京施玛泰众信息技术有限公司 Method and device for processing information of wireless local area network
CN105554747A (en) * 2016-01-29 2016-05-04 腾讯科技(深圳)有限公司 Wireless network connecting method, device and system
CN105554760A (en) * 2016-01-29 2016-05-04 腾讯科技(深圳)有限公司 Wireless access point authentication method, device and system
CN105577365A (en) * 2014-11-11 2016-05-11 中国移动通信集团公司 Key consultation method and device for user' access to WLAN

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980120A (en) * 2005-12-02 2007-06-13 宏碁股份有限公司 Accessing method having secret-keeping function and linking to wireless local network and system
US20090214036A1 (en) * 2008-02-22 2009-08-27 Microsoft Corporation Authentication mechanisms for wireless networks
CN103024743A (en) * 2012-12-17 2013-04-03 北京航空航天大学 Wireless local area network trusted security access method
CN104244248A (en) * 2013-06-09 2014-12-24 杭州华三通信技术有限公司 Secret key processing method and device
CN103619017A (en) * 2013-11-22 2014-03-05 福州瑞芯微电子有限公司 Method and system for wireless router authorized connection based on NFC technology
CN104202795A (en) * 2014-08-16 2014-12-10 高建宏 Method and device for directly logging into business place website through Wi-Fi (Wireless Fidelity)
CN105577365A (en) * 2014-11-11 2016-05-11 中国移动通信集团公司 Key consultation method and device for user' access to WLAN
CN104394533A (en) * 2014-11-24 2015-03-04 中国联合网络通信集团有限公司 WiFi (wireless fidelity) connection method, server and terminal
CN105101203A (en) * 2015-05-25 2015-11-25 南京施玛泰众信息技术有限公司 Method and device for processing information of wireless local area network
CN105554747A (en) * 2016-01-29 2016-05-04 腾讯科技(深圳)有限公司 Wireless network connecting method, device and system
CN105554760A (en) * 2016-01-29 2016-05-04 腾讯科技(深圳)有限公司 Wireless access point authentication method, device and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089251A (en) * 2018-09-05 2018-12-25 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on bluetooth connection equivalence of query equipment
CN109089249A (en) * 2018-09-05 2018-12-25 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on gateway inquiry buffer joint
CN109089251B (en) * 2018-09-05 2021-09-17 北京字节跳动网络技术有限公司 Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection
CN109089249B (en) * 2018-09-05 2022-03-22 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on gateway inquiry buffer node
CN113194015A (en) * 2021-04-29 2021-07-30 洪璐 Internet of things intelligent household equipment safety control method and system
CN114422995A (en) * 2022-01-04 2022-04-29 太仓市同维电子有限公司 Method for household automatic networking without awareness

Also Published As

Publication number Publication date
CN108306793B (en) 2021-01-22

Similar Documents

Publication Publication Date Title
TWI634771B (en) Wisdom device and method and device for establishing Bluetooth connection between devices
Li et al. Secure ad hoc trust initialization and key management in wireless body area networks
CN105684344B (en) A kind of cipher key configuration method and apparatus
CN106656547B (en) Method and device for updating network configuration of household electrical appliance
CN105959189A (en) Home appliance equipment, communication system and method of cloud server and terminal, and terminal
CN105635062B (en) The verification method and device of network access equipment
CN109462850A (en) A kind of network collocating method and smart machine of smart machine
CN108429740A (en) A kind of method and device obtaining device identification
CN112187831A (en) Equipment network access method and device, storage medium and electronic equipment
CN108306793A (en) Smart machine, intelligent domestic gateway, the method and system for establishing connection
CN102739642A (en) Permitting access to a network
CN109890029B (en) Automatic network distribution method of intelligent wireless equipment
CN106656923A (en) Device association method, key update method and apparatuses
CN104661219A (en) Communication method of wireless equipment, wireless equipment and server
CN110808991B (en) Method, system, electronic device and storage medium for secure communication connection
CN104486759A (en) Method accessing wireless network without obstacle
US20160227412A1 (en) Wireless Terminal Configuration Method, Apparatus, and Wireless Terminal
CN112188488A (en) Network distribution method, device and system
CN107196917A (en) A kind of service response method and its middleware
CN112566113B (en) Key generation and terminal network distribution method, device and equipment
CN105007163B (en) Transmission, acquisition methods and the transmission of wildcard, acquisition device
CN106105131A (en) device pairing
CN104754495A (en) Smart household device connecting method and smart terminal
WO2017091987A1 (en) Method and apparatus for secure interaction between terminals
CN106658488B (en) Intelligent household appliance and method and device for safely accessing intelligent household appliance

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
CP03 Change of name, title or address

Address after: 310051 Room 301, building B, building 2, No. 399, Danfeng Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou fluorite Network Co.,Ltd.

Address before: 7 / F, building 1, No. 700, Dongliu Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province 310000

Patentee before: HANGZHOU EZVIZ NETWORK Co.,Ltd.

CP03 Change of name, title or address