Summary of the invention
In view of this, needing to carry out human configuration repeatedly, access when in order to solve to exist in the prior art network connection configuration
The cumbersome problem of mode, it is an object of the invention to propose a kind of method for accessing network.For the implementation to disclosure
The some aspects of example have a basic understanding, and simple summary is shown below.The summarized section is not extensive overview, also not
It is key/critical component to be determined or the protection scope for describing these embodiments.Its sole purpose is with simple form
Some concepts are presented, in this, as the preamble of following detailed description.
In some alternative embodiments, which comprises
The second network is opened after receiving the request message of the first equipment transmission;
Connection is established in second network and the second equipment;
The configuration information of first network is sent to second equipment by second network;
Wherein, the configuration information by the first network is sent to second equipment, comprising:
Receive the facility information that second equipment is sent;
The facility information is sent to first equipment, and is receiving first equipment according to the facility information
After the verifying confirmation message including the second verification information of feedback, by the configuration information of the first network and second verifying
Information is sent to second equipment together so that second equipment second verification information and this equipment are saved the
One verification information is matched;
Wherein, the first verifying message is setting for unique identification of carrying in the second equipment equipment of itself information
Standby information;Second verification information is the verifying letter for second equipment that first equipment is fed back to the network equipment
Breath, the process that first equipment obtains second verification information is obtained by the input of user.
In some alternative embodiments, which comprises
After the specific Bi Ken beacon frame or action action frame that receive network side broadcast, according to the second network of pre-configuration
Configuration information access second network;
Receive the configuration information for the first network that network side is sent;
According to the configuration information of the first network, the first network is accessed;
Wherein, before the access first network, further includes:
The second verification information that network side is sent and the first verification information that this equipment saves are matched, if matching
It is successful then trigger the configuration information according to the first network, access the operation of the first network;
Wherein, the first verifying message is setting for unique identification of carrying in the household appliance equipment of itself information
Standby information;Second verification information is the verification information for the household appliance that the first equipment is fed back to the network equipment, institute
Stating the first equipment and obtaining the process of second verification information is obtained by the input of user.
Another object of the present invention is each relevant device proposed for accessing network.
In some alternative embodiments, a kind of network equipment includes:
First unit, for opening the second network after receiving the request message that the first equipment is sent;
Second unit, for establishing connection in second network and the second equipment;
Third unit, for the configuration information of first network to be sent to second equipment by second network;
Wherein, the third unit includes:
Receiving unit, the facility information sent for receiving second equipment;
Transmission unit for the facility information to be sent to first equipment, and is receiving the first equipment root
After the verifying confirmation message including the second verification information according to facility information feedback, by the configuration information of the first network
Be sent to second equipment together with second verification information so that second equipment by second verification information with
The first verification information that this equipment saves is matched;
Wherein, the first verifying message is setting for unique identification of carrying in the second equipment equipment of itself information
Standby information;Second verification information is the verifying letter for second equipment that first equipment is fed back to the network equipment
Breath, the process that first equipment obtains second verification information is obtained by the input of user.
In some alternative embodiments, a kind of household appliance includes:
First unit, after the specific beacon frame or action frame for receiving network side broadcast, according to the of pre-configuration
The configuration information of two networks accesses second network;
Second unit, for receiving the configuration information for the first network that network side is sent by second network;
Third unit accesses the first network for the configuration information according to the first network;
Unit the 5th, before accessing the first network for the third unit, the second verifying that network side is sent is believed
The first verification information that breath and this equipment save is matched, and the third unit is triggered if successful match and is executed according to institute
The configuration information for stating first network accesses the operation of the first network;
Wherein, the first verifying message is setting for unique identification of carrying in the household appliance equipment of itself information
Standby information;Second verification information is the verification information for the household appliance that the first equipment is fed back to the network equipment, institute
Stating the first equipment and obtaining the process of second verification information is obtained by the input of user.
Using above-described embodiment, following effect can reach:
The operation of equipment networking is simplified, human configuration number is reduced;
It prevents password from revealing, improves internet security;
Authentication mechanism is more perfect, prevents non-targeted equipment access network.
For the above and related purposes, one or more embodiments include being particularly described below and in claim
In the feature that particularly points out.Certain illustrative aspects are described in detail in the following description and the annexed drawings, and its instruction is only
Some modes in the utilizable various modes of the principle of each embodiment.Other benefits and novel features will be under
The detailed description in face is considered in conjunction with the accompanying and becomes obvious, the disclosed embodiments be all such aspects to be included and they
Be equal.
Specific embodiment
The following description and drawings fully show specific embodiments of the present invention, to enable those skilled in the art to
Practice them.Other embodiments may include structure, logic, it is electrical, process and other change.Embodiment
Only represent possible variation.Unless explicitly requested, otherwise individual components and functionality is optional, and the sequence operated can be with
Variation.The part of some embodiments and feature can be included in or replace part and the feature of other embodiments.This hair
The range of bright embodiment includes equivalent obtained by the entire scope of claims and all of claims
Object.Herein, these embodiments of the invention can individually or generally be indicated that this is only with term " invention "
For convenience, and if in fact disclosing the invention more than one, the range for being not meant to automatically limit the application is to appoint
What single invention or inventive concept.
" equipment " used herein is defined as, all devices with wireless communication function, such as desktop computer, shifting
Dynamic computer, laptop computer, notebook computer, tablet computer, server computer, handheld computer, hand-held dress
It sets, palm PC (PDA, Personal Digital Assistant), home gateway, router, holds PDA device, is onboard
It is the outer device of device, plate, mixing arrangement (such as by cellular telephone functionality and PDA device functional combination), consumption device, vehicle-mounted
Device, off-board device, movement or mancarried device, non-moving or non-portable device, cellular phone, personal communication service
(PCS, Personal Communications Service) device, the PDA device of combining wireless communication device, movement or just
Take formula global positioning system (GPS, Global Positioning System) device, digital television broadcasting (DVB, Digital
Video Broadcasting) device, smaller computing device, non-desktop computer, " smaller performance is higher " device, super shifting
Dynamic device, super mobile personal computer, mobile Internet device, " Origami " device or computing device, support can be dynamically composed meter
The device of (DCC, Dynamically Composable Computing), the equipment also includes machine and instrument;" device "
Referring to all, structure is complicated and object or virtual module with certain independent function, and the apparatus may include small-sized devices
Part, such as integrated circuit, chip.
" network equipment " refers to that one kind can safeguard equipment in network, control, data store, a series of of scheduling set
It is standby, such as gateway, home network framework equipment, interchanger, set-top box, server, router etc., it is also possible to TV, electric ice
Other equipment such as case, washing machine;And the equipment can provide two or more network: first network and the second network simultaneously;" the
One network " is a kind of network that the network equipment normally provides, such as provides wireless Wi-Fi AP (Access Point, access point)
The wireless network of service;The network for offer that " the second network " is the network equipment when carrying out network connection configuration exclusively for the second equipment.
" the first equipment " is to refer to and network device communications, and can provide the equipment of the networking service for checking credentials, can be one
Class mobile device or mobile device, such as: smart phone, tablet computer, smartwatch etc..
" the second equipment " refers to a kind of equipment for needing to access first network, can be a kind of setting applied to domestic environment
It is standby, it include screen and all household appliances without screen, such as: water heater, TV, refrigerator, washing machine, pedometer, gate inhibition
The equipment such as switch, micro-wave oven, music player.
" the first verification information " is the information for unique identification equipment carried in the second equipment equipment of itself information, example
Such as: MAC Address, device identification, authentication code, two dimensional code.
" the second verification information " is the verification information for the second equipment that the first equipment is fed back to the network equipment, such as: MAC
Location, device identification, authentication code, two dimensional code etc.;The process that first equipment obtains the second verification information can be through the defeated of user
Enter to obtain.
Fig. 1 is the flow diagram of the method for embodiment, and wherein user is arranged network by the first equipment (such as mobile phone) and sets
Standby (such as gateway) opens the second network (that is, " guest network "), so that the second of first network to be accessed (that is, " open network ")
Equipment (household appliance) establishes connection by " guest network " and gateway, and final acquisition is connected into the configuration information of " open network " simultaneously
Establish connection;
In some illustrative embodiments, between gateway and household appliance, gateway and mobile phone application program (APP,
It Application is TCP (transmission control protocol, Transmission Control Protocol) long connection between),
Middle gateway is TCP server-side, the APP of mobile phone household appliance be TCP Client;Than in the prior art using this TCP long connection
The mode of broadcast or multicast is safer, not will cause password leakage, ensure that the safety of network.
Mobile phone access is gateway " open network ", and gateway is to power on to the APP of the mobile phone service provided, is provided;And
The service that gateway provides household appliance side is that " guest network " then provides when enabling, and " guest network " is then closed when closing;
Optionally, the seeervice cycle of " guest network " service may is that
A) default is not turned on " guest network " service, the request that the APP until receiving mobile phone is sent after gateway powers on;
B) gateway follows overtime principle after last time interaction (such as time-out 15 minutes), i.e., whenever receiving request then again
Start timing;Gateway notifies each equipment by Notify notification instruction after time-out, and deactivates " guest network ";
C) household appliance can also follow the principle (as 15 minutes overtime) of time-out, such as power in 15 minutes and do not matched also
It sets, then actively exits configuration mode, by Notify instruction notification gateway before exiting;
After gateway opens " guest network ", the Bi Ken beacon frame or action action frame, household electrical appliances that can broadcast customization are set
It can judge that accordingly guest network has been switched on after standby reception, then initiate the connection;The beacon frame or action frame of this customization
Can be gateway and household appliance when leaving the factory exclusively for later period household appliance network connection configuration when pre-set;
Wherein, configuration mode can be initially entered after household appliance powers on, in such a mode, household appliance can continually actively
It connects " guest network " and exits configuration mode if not being configured also in 15 minutes, into normal mode, in the normal mode
Household appliance will not actively connect " guest network ";Because household appliance in the configuration mode can be always with high frequency scan, family
Power consumption is high in such a mode for electric equipment, will lead to chip fever in this mode for a long time, influences the chip service life.
It below with regard to method shown in Fig. 1, is illustrated, the method includes following steps:
Step S101, mobile phone are connected to " the open network " of gateway;
Wherein, what mobile phone accessed is the wireless network of the service of Wi-Fi AP provided by gateway;
Optionally, mobile phone can also pass through other networks, such as bluetooth, infrared network access gateway;
Step S102, mobile phone start APP, enable " guest network " by APP notification gateway;
The APP of mobile phone sends the notice for enabling " guest network " to gateway by " open network ";
If mobile phone is by other network access gateway, APP is sent to gateway by other networks and enables " visitor's net
The notice of network ";
One dedicated APP of preconfigured on the mobile phone of user, household appliance can initially enter after powering on matches
Mode is set, when user opens the APP of mobile phone terminal, APP can send the order for opening guest network by open network to gateway;
Optionally, if user carries out network connection configuration to it not in time, then household appliance can exit and match after household appliance powers on
Mode is set, but no matter whether household appliance is in configuration mode, does not affect user by APP and send unlatching visitor's net to gateway
The step of network and subsequent configuration network;
Step S103, gateway open " guest network " and broadcast the beacon frame or action frame of customization;
It after the order for the unlatching " guest network " that the APP that gateway receives mobile phone is sent, opens " guest network ", and broadcasts and determine
The beacon frame or action frame of system;The beacon frame or action frame can be identified by household appliance;
Step S104, household appliance receive the beacon frame customized or action frame and connect " guest network ";
It, can be according to the guest network that this equipment prestores after household appliance receives the beacon frame or action frame of the customization
Configuration information (including: user name SSID and password PWD) actively connection " guest network ";
After household appliance connects " guest network " success, the application of connection " open network " is sent to gateway by step S105;
After household appliance is connected to " guest network ", the application of connection " open network " is sent to gateway, the application is taken
Carrying device information (the first verification information including household appliance, such as the equipment mark of the MAC Address of household appliance, household appliance
Knowledge, authentication code etc.);
Step S106, gateway send household appliance networking request to mobile phone;
Gateway will be sent to the APP of mobile phone from " guest network " received facility information by " open network ";If mobile phone
By other network connection gateways, then facility information is sent to APP by other networks by gateway;
Optionally, all or part of facility information can be pushed to mobile phone by gateway;
After step S107, the APP of mobile phone receive networking request, prompted to user, it is to be checked to measure user's input needs
After the second verification information (such as authentication code) of the household appliance of networking, the verifying letter that confirmation " permission " user inputs is sent to gateway
The message that the household appliance of breath networks;
After APP receives the facility information of gateway transmission, user input equipment authentication code is prompted (to be also possible to user in household electrical appliances
The information of the unique identifications such as two dimensional code scanned in equipment the household appliance, i.e. verification information), it is to be checked measure user input finish
Afterwards, this second verification information is sent to gateway, and informs that gateway " permission " household appliance networks;
Optionally, if APP itself can verify household appliance, facility information (such as implementor name that will be received such as APP
Claim) it is shown to user, and user input equipment authentication code is prompted, it is if user judges the household appliance not according to facility information
Household appliance in this home network, or, user's refusal is by household appliance access " open network ", then APP notification gateway is " no
Allowing " household appliance networks, and terminates this process;Alternatively, if APP judges the second verification information (equipment that user provides
Authentication code or the two dimensional code scanned) when mismatching, then APP is notified the first verification information in the facility information that receives with APP
Gateway " does not allow " household appliance to network, and terminates this process;
Step S108 after gateway receives " permission " confirmation of user, sends the SSID and PWD of " open network ";
After gateway receives the information for allowing household appliance to network, will " open network " configuration information (including SSID and
PWD household appliance) is transmitted to by " guest network ";
It optionally, further include that will use if the APP of mobile phone is not only to feed back the second verification information (authentication code or two dimensional code)
The authentication code or two dimensional code of family input are matched with the facility information for the household appliance that gateway is sent, if successful match, generation
Table authenticates successfully, then after the notice that " permission " household appliance that gateway receives mobile phone transmission networks, directly by open network
SSID and PWD is sent to household appliance by guest network;
Optionally, the APP of mobile phone is merely responsible for feedback the second verification information (authentication code or two dimensional code), i.e. APP is not to household electrical appliances
Equipment is authenticated, then after gateway receives the notice of " permissions " household appliance networking of mobile phone transmission, the certification that will receive
The first verification information in facility information that code or two dimensional code are sent with household appliance is matched, and will be disclosed again after successful match
The SSID and PWD of network are sent to household appliance by guest network;
Step S109, household appliance access " open network ";
After household appliance receives the SSID and PWD of the open network that gateway is sent by " guest network ", according to SSID with
PWD connection " open network ";
Optionally, household appliance further includes the operation authenticated again before connecting " open network " with PWD according to SSID,
The second verification information for sending APP while then can be gateway transmission SSID and PWD in step S108 is sent to together
Household appliance, household appliance first believe the first verifying in the second verification information and the facility information of household appliance itself storage
Breath is matched, and after successful match, then " open network " is added according to SSID and PWD, if it fails to match, is terminated this process;
Step S110, household appliance " online " notice of all devices broadcast in " open network ";
Household appliance can broadcast the successful message of networking after networking successfully, inform in " open network " all devices its
" open network " is added;
After step S111, the APP of mobile phone know that household appliance networks, notification gateway disables " guest network ";
After mobile phone receives " online " notice of household appliance broadcast, know that household appliance has accessed " open network ", APP
The notice for closing " guest network " is sent to gateway;
This step is optional because if gateway within certain time of unlatching " after guest network " (15 minutes) not with " visitor
When household appliance in network " interacts, any message sent by " guest network " such as can not receive, then gateway can be automatic
It closes " guest network ";
Optionally, if what gateway received is request that more household appliances network, gateway is to more household appliances
Verification process can be successively verifying and simultaneously to the configuration information for authenticating the successful open network of household appliance transmission;Alternatively,
Unified certification is carried out to more household appliances simultaneously, and successively successfully more household appliances send " open network " to certification
Configuration information;
Optionally, it before gateway closes " guest network ", broadcasts or is sent out to the household appliance for having accessed " guest network "
Closing is sent to notify;
Optionally, when household appliance is in normal mode (low-power consumption), that is, when being not under configuration mode, once it has received
After the beacon frame or action frame of gateway broadcasts, then automatically into configuration mode (high power consumption), that is, scan frequency is switched to more
High mode, so that the process of network connection configuration is rapidly completed;Once network connection configuration (i.e. access public network) is completed, or, one section
Success is not configured in (15 minutes) in time, then automatically exits from configuration mode, be switched to normal mode;This mode can both make
Household appliance quickly networks, and can make chip quick aging because long-time is in high power consumption state to avoid household appliance.
Fig. 2 be the present invention be embodiment a kind of network equipment 200 structural schematic diagram.
In some illustrative embodiments, the network equipment 200, comprising:
First unit 201, for opening the second network after receiving the request message that the first equipment is sent;
Second unit 202, for establishing connection in second network and the second equipment;
Third unit 203 is set for the configuration information of first network to be sent to described second by second network
It is standby.
In some illustrative embodiments, the first unit 201 receives the request by the first network and disappears
Breath.
In some illustrative embodiments, the network equipment 200, further includes:
4th unit 204 broadcasts specific Bi Ken after opening second network for the first unit 201
Beacon frame or action frame.
In some illustrative embodiments, the third unit 203, comprising:
Authentication unit 2031, for being verified to second equipment, and by the first network after being verified
Configuration information be sent to second equipment.
In some illustrative embodiments, the authentication unit 2031, comprising:
First verifying subelement 20311, the facility information sent for receiving second equipment;
Second verifying subelement 20312, the first verification information for will be carried in the facility information and described first
The second verification information carried in the verifying confirmation message that equipment is sent is matched.
In some illustrative embodiments, the third unit 203, comprising:
Receiving unit 2032, the facility information sent for receiving second equipment;
Transmission unit 2033 for the facility information to be sent to first equipment, and is set receiving described first
After the standby verifying confirmation message including the second verification information according to facility information feedback, matching for the first network is sent
Confidence breath.
In some illustrative embodiments, the transmission unit 2033 is by the configuration information of the first network and described
Second verification information is sent to second equipment together.
In some illustrative embodiments, the network equipment 200, further includes:
5th unit 205 starts timing after opening second network for the first unit 201;
6th unit 206, if the message sent for not receiving second equipment within the set time, described in closing
Second network;Or, the 6th unit 206 is used to access the logical of the first network receive that second equipment sends
When knowing message, second network is closed.
In some illustrative embodiments, the network equipment 200, further includes:
7th unit 207, before closing second network for the 6th unit 206, sending second network is
By the notification message of closing.
In some illustrative embodiments, the company of the network side equipment and first equipment and/or the second equipment
Connecing is the long connection of transmission control protocol TCP.
Fig. 3 be the present invention be embodiment a kind of household appliance 300 structural schematic diagram.
In some illustrative embodiments, the household appliance 300, comprising:
First unit 301, after receiving the specific beacon frame or action frame that network side is broadcasted, according to pre-configuration
The configuration information of second network accesses second network;
Second unit 302, for receiving the configuration information for the first network that network side is sent by second network;
Third unit 303 accesses the first network for the configuration information according to the first network.
In some illustrative embodiments, the household appliance 300, further includes:
4th unit 304 after accessing second network for the first unit 301, is used for network side transmission
Carry out the facility information of this equipment of device authentication.
In some illustrative embodiments, the household appliance 300, further includes:
5th unit 305, before accessing the first network for the third unit 303, network side is sent second
The first verification information that verification information and this equipment save is matched, and the third unit 303 is triggered if successful match
The configuration information according to the first network is executed, the operation of the first network is accessed.
Using above-described embodiment, following effect can reach:
The operation of equipment networking is simplified, human configuration number is reduced;
It prevents password from revealing, improves internet security;
Authentication mechanism is more perfect, prevents non-targeted equipment access network.
It should also be appreciated by one skilled in the art that various illustrative logical boxs, mould in conjunction with the embodiments herein description
Electronic hardware, computer software or combinations thereof may be implemented into block, circuit and algorithm steps.In order to clearly demonstrate hardware and
Interchangeability between software surrounds its function to various illustrative components, frame, module, circuit and step above and carries out
It is generally described.Hardware is implemented as this function and is also implemented as software, depends on specific application and to entire
The design constraint that system is applied.Those skilled in the art can be directed to each specific application, be realized in a manner of flexible
Described function, still, this realization decision should not be construed as a departure from the scope of protection of this disclosure.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.