A kind of method for connecting network and network connection system of smart machine
Technical field
The present invention relates to the method for connecting network and network connection system of field of communication technology more particularly to a kind of smart machine
System.
Background technology
With the development of the communication technology, smart machine plays an increasingly important role in people's lives.Intelligence
Equipment can realize the networking of smart machine by connecting the device with wireless access function such as router.Currently, intelligence is set
Standby generally use such as under type is connected to router:Router broadcast service set (Service Set Identifier,
SSID), when smart machine detects the presence of multiple SSID, user, which manually selects, connects that SSID, after selecting a SSID,
If the SSID needs to verify, password is manually entered by user, completes the operation of connection router.But each link road by
It is relatively complicated that device such as is required for manually selecting connection SSID and is manually entered password at the operation.
A kind of connection method of smart machine is disclosed application No. is 201710601977.2 Chinese invention patent and is
System, smart machine are moved after the SSID that mobile terminal opens hot spot and hot spot is arranged is set as connected state by SSID connections
The hot spot of terminal;Smart machine receive mobile terminal send broadcast message, broadcast message include mobile terminal MAC Address,
Need the title and login password of the wireless router logged in;The name for the wireless router that smart machine is carried according to broadcast message
Title connects wireless router with login password, and disconnects the connection with the hot spot of mobile terminal;Smart machine passes through wireless routing
Device sends the MAC Address of the facility information and mobile terminal of smart machine to cloud server;Cloud server is by smart machine
Facility information be sent to the matched mobile terminal of MAC Address and bound.
The above-mentioned prior art only relates to receive broadcast message under conditions of smart machine connects upper mobile terminal hot spot, from
And smart machine can connect router according to the login password in broadcast message.But be not directed in the prior art how
Realize the proprietary connection between same brand equipment, and it can not avoid all kinds of smart machines can be by receiving in broadcast message
Login password connection network the problem of, influence the experience effect of user.
Invention content
In view of the above-mentioned problems, the invention discloses a kind of method for connecting network of smart machine, include the following steps:
S1:Judge whether that there are proprietary protocols between smart machine;
S2:If there are proprietary protocol, service set is sent with encrypted characters to smart machine so that smart machine is logical
It crosses decryption encrypted characters and obtains special purpose system;
S3:It receives the special purpose system that smart machine is sent and whether verify special purpose system correct;
S4:If special purpose system verification is correct, network connection is established with smart machine.
Further, above-mentioned steps S1 includes:
S11:Judge whether to receive the connection request that smart machine is sent;
S12:If so, judging whether that there are proprietary protocols between smart machine.
Further, further include after above-mentioned steps S3:
S5:Obtain and send the first configuration information of smart machine;
S6:It receives the first configuration information of smart machine and judges whether the first configuration information matches with preset information;
S7:If so, push binding information is to APP terminals so that APP terminals choose whether that refusal is carried out with smart machine
Binding;
S8:If receiving the refusal binding information of APP terminals transmission, control instruction is sent to disconnect network connection.
Further, above-mentioned steps S2 includes step:
S21:If there are proprietary protocol, special purpose system is generated;
S22:Special purpose system is encrypted to acquire encrypted characters;
S23:Service set is sent with encrypted characters to smart machine so that smart machine is obtained by decrypting encrypted characters
Obtain special purpose system.
Further, above-mentioned steps S6 includes:
S61:Matching connection APP terminals;
S62:Obtain the second configuration information of APP terminals;
S63:It is preset information that the second configuration information, which is arranged,.
Based on a kind of method for connecting network of smart machine disclosed in this invention, the invention also discloses a kind of intelligence to set
Standby network connection system, the network connection system include:
First judgment module, for judging whether that there are proprietary protocols between smart machine;
First sending module, for sending service set with encrypted characters to smart machine so that smart machine passes through solution
Close encrypted characters obtain special purpose system;
Authentication module, special purpose system for receiving smart machine transmission and whether verify special purpose system correct;
Networking module, for establishing network connection with smart machine.
Further, above-mentioned first judgment module includes:
Judgment module is asked, the connection request for judging whether to receive smart machine transmission.
Further, above-mentioned network connection system further includes:
First acquisition module, the first configuration information for obtaining and sending smart machine;
First receiving module, the first configuration information for receiving smart machine;
Second judgment module, for judging whether the first configuration information matches with preset information;
Second sending module, for pushing binding information to APP terminals so that APP terminals choose whether that refusal is set with intelligence
It is standby to be bound;
Third sending module, for receive APP terminals transmission refusal binding information and send control instruction;
Control module, for receiving control instruction and disconnecting network connection.
Further, above-mentioned first sending module includes:
Secret generation module, for generating special purpose system;
Encrypting module, for encrypting special purpose system to acquire encrypted characters.
Further, above-mentioned second judgment module includes:
Matching module is connect for carrying out matching with APP terminals;
Second acquisition module, the second configuration information for obtaining APP terminals;
Preset module, for setting the second configuration information to preset information.
The beneficial effects of the present invention are:
The method for connecting network and system of smart machine disclosed in this invention are to be based on existing between system and smart machine
On the basis of proprietary protocol, SSID and encrypted characters are sent to smart machine, to reach proprietary between same brand equipment
Connection, and be manually entered password without artificial and can establish network connection between the smart machine of same brand;Also by sentencing
It is disconnected to whether there is proprietary protocol between smart machine and system to reach the network that limitation does not have the smart machine of proprietary protocol
The effect of connection.In addition, also passing through the configuration of the configuration information and the APP terminals currently connecting of the smart machine for connecting request
Information carries out matching and in such a way that APP terminals chooses whether to establish network connection with smart machine, realizes user Ke Gen
It chooses whether to be bound with smart machine according to the configuration information of the smart machine of request connection, effectively increases the experience of user
Effect.
Description of the drawings
Fig. 1 is a kind of method for connecting network flow chart of smart machine in embodiment one;
Fig. 2 is a kind of network connection system composition figure of smart machine in embodiment one;
Fig. 3 is a kind of method for connecting network flow chart of smart machine in embodiment two;
Fig. 4 is a kind of network connection system composition figure of smart machine in embodiment two;
Fig. 5 is a kind of method for connecting network flow chart of smart machine in embodiment three;
Fig. 6 is a kind of network connection system composition figure of smart machine in embodiment three;
Fig. 7 is a kind of method for connecting network flow chart of smart machine in example IV;
Fig. 8 is a kind of network connection system composition figure of smart machine in example IV.
Specific implementation mode
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
Referring to Fig.1, a kind of method for connecting network of smart machine is present embodiments provided, which includes such as
Lower step:
S1:Judge whether that there are proprietary protocols between smart machine;
S2:If there are proprietary protocol, service set is sent with encrypted characters to smart machine so that smart machine is logical
It crosses decryption encrypted characters and obtains special purpose system;
S3:It receives the special purpose system that smart machine is sent and whether verify special purpose system correct;
S4:If special purpose system verification is correct, network connection is established with smart machine.
Wherein, step S1 specifically comprises the following steps:
S11:Judge whether to receive the connection request that smart machine is sent;
S12:If so, judging whether that there are proprietary protocols between smart machine.
Method for connecting network based on the smart machine that the present embodiment is provided, the present embodiment additionally provide a kind of intelligence and set
Standby network connection system, with reference to Fig. 2, which includes:First judgment module is set for judging whether with intelligence
There are proprietary protocols between standby;First sending module, for sending service set with encrypted characters to smart machine so that intelligence
Energy equipment, which passes through, decrypts encrypted characters acquisition special purpose system;Authentication module, for receiving the special purpose system of smart machine transmission simultaneously
Whether correct verify special purpose system;Networking module, for establishing network connection with smart machine.
Wherein, the first judgment module 100 includes:Judgment module is asked, for judging whether that receiving smart machine sends
Connection request.
The method for connecting network and system for the smart machine that the present embodiment is provided are to be based on depositing between system and smart machine
On the basis of proprietary protocol, SSID and encrypted characters are sent to smart machine, to reach special between same brand equipment
There is a connection, and is manually entered password without artificial and can establish network connection between the smart machine of same brand;Also pass through
Judge between smart machine and system with the presence or absence of proprietary protocol to reach the net that limitation does not have the smart machine of proprietary protocol
The purpose of network connection, has preferable practicability.
Embodiment two
With reference to Fig. 3, a kind of method for connecting network of smart machine is present embodiments provided, which includes such as
Lower step:
S1:Judge whether that there are proprietary protocols between smart machine;
S2:If there are proprietary protocol, service set is sent with encrypted characters to smart machine so that smart machine is logical
It crosses decryption encrypted characters and obtains special purpose system;
S3:It receives the special purpose system that smart machine is sent and whether verify special purpose system correct;
S4:If special purpose system verification is correct, network connection is established with smart machine;
S5:Obtain and send the first configuration information of smart machine;
S6:It receives the first configuration information of smart machine and judges whether the first configuration information matches with preset information;
S7:If so, push binding information is to APP terminals so that APP terminals choose whether that refusal is carried out with smart machine
Binding;
S8:If receiving the refusal binding information of APP terminals transmission, control instruction is sent to disconnect network connection.
Method for connecting network based on the smart machine that the present embodiment is provided, the present embodiment additionally provide a kind of intelligence and set
Standby network connection system, with reference to Fig. 4, which includes:First judgment module is set for judging whether with intelligence
There are proprietary protocols between standby;First sending module, for sending service set with encrypted characters to smart machine so that intelligence
Energy equipment, which passes through, decrypts encrypted characters acquisition special purpose system;Authentication module, for receiving the special purpose system of smart machine transmission simultaneously
Whether correct verify special purpose system;Networking module, for establishing network connection with smart machine;First acquisition module, for obtaining
Take and send the first configuration information of smart machine;First receiving module, the first configuration information for receiving smart machine;The
Two judgment modules, for judging whether the first configuration information matches with preset information;Second sending module, for pushing binding
Information is to APP terminals so that APP terminals choose whether that refusal is bound with smart machine;Third sending module, for receiving
The refusal binding information of APP terminals transmission simultaneously sends control instruction;Control module connects for receiving control instruction and disconnecting network
It connects.
Wherein, when smart machine and network system are attached, APP terminals are in network company with the network connection system
Connect state.The APP terminals can remind user to carry out choosing whether to refuse when receiving the binding information of network connection system push
The exhausted smart machine is bound with network connection system, in order to the network connection of human-based management smart machine.
The method for connecting network and system for the smart machine that the present embodiment is provided are to be based on depositing between system and smart machine
On the basis of proprietary protocol, SSID and encrypted characters are sent to smart machine, to reach special between same brand equipment
There is a connection, and can make to establish network connection between the smart machine of same brand without the artificial password that is manually entered;Also pass through
Judge between smart machine and system with the presence or absence of proprietary protocol to reach the net that limitation does not have the smart machine of proprietary protocol
Network connection effect has preferable practicability.
In addition, also by by the configuration information of the smart machine of request connection and the APP terminals that currently connect with confidence
Breath carries out matching and in such a way that APP terminals chooses whether to establish network connection with smart machine, and realizing user can basis
The configuration information of the smart machine of connection is asked to choose whether to establish network connection, in order to the net of human-based management smart machine
Network connects, and effectively increases the experience effect of user.
Embodiment three
With reference to Fig. 5, a kind of method for connecting network of smart machine is present embodiments provided, which includes:
Judge whether to receive the connection request that smart machine is sent;
If so, judging whether that there are proprietary protocols between smart machine;
If there are proprietary protocol, special purpose system is generated;
Special purpose system is encrypted to acquire encrypted characters;
Service set is sent with encrypted characters to smart machine so that smart machine obtains specially by decrypting encrypted characters
Use password;
It receives the special purpose system that smart machine is sent and whether verify special purpose system correct;
If special purpose system verification is correct, network connection is established with smart machine;
Obtain and send the first configuration information of smart machine;
It receives the first configuration information of smart machine and judges whether the first configuration information matches with preset information;
If so, push binding information is to APP terminals so that APP terminals choose whether that refusal is tied up with smart machine
It is fixed;
If receiving the refusal binding information of APP terminals transmission, control instruction is sent to disconnect network connection.
Method for connecting network based on the smart machine that the present embodiment is provided, the present embodiment additionally provide a kind of intelligence and set
Standby network connection system, with reference to Fig. 6, which includes:First judgment module is set for judging whether with intelligence
There are proprietary protocols between standby;First sending module, for sending service set with encrypted characters to smart machine so that intelligence
Energy equipment, which passes through, decrypts encrypted characters acquisition special purpose system;Authentication module, for receiving the special purpose system of smart machine transmission simultaneously
Whether correct verify special purpose system;Networking module, for establishing network connection with smart machine;First acquisition module, for obtaining
Take and send the first configuration information of smart machine;First receiving module, the first configuration information for receiving smart machine;The
Two judgment modules, for judging whether the first configuration information matches with preset information;Second sending module, for pushing binding
Information is to APP terminals so that APP terminals choose whether that refusal is bound with smart machine;Third sending module, for receiving
The refusal binding information of APP terminals transmission simultaneously sends control instruction;Control module connects for receiving control instruction and disconnecting network
It connects.
Wherein, the first judgment module 100 includes:Judgment module is asked, for judging whether that receiving smart machine sends
Connection request.First sending module 200 includes:Secret generation module, for generating special purpose system;Encrypting module, for adding
Close special purpose system is to acquire encrypted characters.
Wherein, when smart machine and network system are attached, APP terminals are in network company with the network connection system
Connect state.The APP terminals can remind user to carry out choosing whether to refuse when receiving the binding information of network connection system push
The exhausted smart machine is bound with network connection system, in order to the network connection of human-based management smart machine.
The method for connecting network and system for the smart machine that the present embodiment is provided are to be based on depositing between system and smart machine
On the basis of proprietary protocol, SSID and encrypted characters are sent to smart machine, to reach special between same brand equipment
There is a connection, and is manually entered password without artificial and can establish network connection between the smart machine of same brand;Also pass through
Judge between smart machine and system with the presence or absence of proprietary protocol to reach the net that limitation does not have the smart machine of proprietary protocol
The purpose of network connection, has preferable practicability.
In addition, also by by the configuration information of the smart machine of request connection and the APP terminals that currently connect with confidence
Breath carries out matching and in such a way that APP terminals chooses whether to establish network connection with smart machine, and realizing user can basis
The configuration information of the smart machine of connection is asked to choose whether to establish network connection, in order to the net of human-based management smart machine
Network connects, and effectively increases the experience effect of user.
Example IV
With reference to Fig. 7, a kind of method for connecting network of smart machine is present embodiments provided, which specifically wraps
Include following steps:
Judge whether to receive the connection request that smart machine is sent;
If so, judging whether that there are proprietary protocols between smart machine;
If there are proprietary protocol, special purpose system is generated;
Special purpose system is encrypted to acquire encrypted characters;
Service set is sent with encrypted characters to smart machine so that smart machine obtains specially by decrypting encrypted characters
Use password;
It receives the special purpose system that smart machine is sent and whether verify special purpose system correct;
If special purpose system verification is correct, network connection is established with smart machine;
Obtain and send the first configuration information of smart machine;
It receives the first configuration information of smart machine and judges whether the first configuration information matches with preset information;
If so, push binding information is to APP terminals so that APP terminals choose whether that refusal is tied up with smart machine
It is fixed;
If receiving the refusal binding information of APP terminals transmission, control instruction is sent to disconnect network connection.
Wherein, the obtaining step of preset information is:
Matching connection APP terminals;
Obtain the second configuration information of APP terminals;
It is preset information that the second configuration information, which is arranged,.
Method for connecting network based on the smart machine that the present embodiment is provided, the present embodiment additionally provide a kind of intelligence and set
Standby network connection system, with reference to Fig. 8, which includes:First judgment module is set for judging whether with intelligence
There are proprietary protocols between standby;First sending module, for sending service set with encrypted characters to smart machine so that intelligence
Energy equipment, which passes through, decrypts encrypted characters acquisition special purpose system;Authentication module, for receiving the special purpose system of smart machine transmission simultaneously
Whether correct verify special purpose system;Networking module, for establishing network connection with smart machine;First acquisition module, for obtaining
Take and send the first configuration information of smart machine;First receiving module, the first configuration information for receiving smart machine;The
Two judgment modules, for judging whether the first configuration information matches with preset information;Second sending module, for pushing binding
Information is to APP terminals so that APP terminals choose whether that refusal is bound with smart machine;Third sending module, for receiving
The refusal binding information of APP terminals transmission simultaneously sends control instruction;Control module connects for receiving control instruction and disconnecting network
It connects.
Wherein, the first judgment module 100 includes:Judgment module is asked, for judging whether that receiving smart machine sends
Connection request.First sending module 200 includes:Secret generation module, for generating special purpose system;Encrypting module, for adding
Close special purpose system is to acquire encrypted characters.
Wherein, the second judgment module 300 further includes:Matching module is connect for carrying out matching with APP terminals;Second obtains
Modulus block, the second configuration information for obtaining APP terminals;Preset module, for setting the second configuration information to pre- confidence
Breath.
Wherein, when smart machine and network system are attached, APP terminals are in network company with the network connection system
Connect state.The APP terminals can remind user to carry out choosing whether to refuse when receiving the binding information of network connection system push
The exhausted smart machine is bound with network connection system, in order to the network connection of human-based management smart machine.
The method for connecting network and system for the smart machine that the present embodiment is provided are to be based on depositing between system and smart machine
On the basis of proprietary protocol, SSID and encrypted characters are sent to smart machine, to reach special between same brand equipment
There is a connection, and can make to establish network connection between the smart machine of same brand without the artificial password that is manually entered;Also pass through
Judge between smart machine and system with the presence or absence of proprietary protocol to reach the net that limitation does not have the smart machine of proprietary protocol
The effect of network connection, has preferable practicability.
In addition, also by by the configuration information of the smart machine of request connection and the APP terminals that currently connect with confidence
Breath carries out matching and in such a way that APP terminals chooses whether to establish network connection with smart machine, and realizing user can basis
The configuration information of the smart machine of connection is asked to choose whether to establish network connection, in order to the net of human-based management smart machine
Network connects, and effectively increases the experience effect of user.
Specific embodiment described herein is only an example for the spirit of the invention.Technology belonging to the present invention is led
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.