CN105163366B - Wireless network connecting method and device - Google Patents

Wireless network connecting method and device Download PDF

Info

Publication number
CN105163366B
CN105163366B CN201510618144.8A CN201510618144A CN105163366B CN 105163366 B CN105163366 B CN 105163366B CN 201510618144 A CN201510618144 A CN 201510618144A CN 105163366 B CN105163366 B CN 105163366B
Authority
CN
China
Prior art keywords
wifi network
target wifi
radio band
smart machine
compatible
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.)
Active
Application number
CN201510618144.8A
Other languages
Chinese (zh)
Other versions
CN105163366A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510618144.8A priority Critical patent/CN105163366B/en
Publication of CN105163366A publication Critical patent/CN105163366A/en
Application granted granted Critical
Publication of CN105163366B publication Critical patent/CN105163366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information

Landscapes

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

Abstract

The disclosure proposes a kind of wireless network connecting method, which comprises obtains the title and password of the target WIFI network that user sets in default interface;Judge to access whether the radio band compatible with smart machine of radio band used in target WIFI network matches;When access target WIFI network used in radio band it is compatible with smart machine radio band mismatch when, the first preset instructions are sent to the corresponding destination router of target WIFI network, the title of carrying target WIFI network and the broadcasting packet of password are sent to surrounding based on the radio band that smart machine is compatible with to trigger destination router, so that smart machine accesses target WIFI network according to the title and password carried in the broadcasting packet.The problem of disclosure can be to avoid that can not parse the broadcasting packet received due to smart machine and can not get the title and password of target WIFI network.

Description

Wireless network connecting method and device
Technical field
This disclosure relates to communication field more particularly to wireless network connecting method and device.
Background technique
For smart machine, usually require that user can be received from mobile phone terminal after being successfully accessed to WIFI network The control instruction of transmission, to execute the movement of response.Those intelligence for itself not having user oriented to provide access interface are set It is standby, then it is generally necessary to by other smart machines (such as smart phone), by the ssid of WIFI network for needing to access and close Code is transferred to the smart machine, is then linked into the WIFI network according to the ssid and password that receive.If smart machine is not The radio band for the above-mentioned broadcasting packet that compatible mobile phone and router issue, then smart machine is after receiving the broadcasting packet, It will be unable to normally parse the broadcasting packet, thus the ssid of the target WIFI network carried in the broadcasting packet can not be got And password.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of wireless network connecting method and device.
According to the first aspect of the embodiments of the present disclosure, a kind of wireless network connecting method is provided, which comprises
Obtain the title and password of the target WIFI network that user sets in default interface;
If this equipment has accessed target WIFI network, judge to access wireless frequency used in the target WIFI network Whether the section radio band compatible with smart machine matches;
When not accessing the radio band compatible with smart machine of radio band used in the target WIFI network not Timing, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, to trigger the destination router The radio band being compatible with based on the smart machine sends the title and password for carrying the target WIFI network to surrounding Broadcasting packet, so that the smart machine accesses the target according to the title and password carried in the broadcasting packet WIFI network.
Optionally, it is compatible with smart machine to access radio band used in the target WIFI network for the judgement Whether radio band matches
Judge whether the WIFI network being currently accessed is the target WIFI network;
If the WIFI network being currently accessed is the target WIFI network, judge that accessing the target WIFI network is made Whether the radio band radio band compatible with smart machine matches;
If the WIFI network being currently accessed is not the target WIFI network, based on the target WIFI net got After the title and password of network are linked into the target WIFI network, judge to access wireless frequency used in the target WIFI network Whether the section radio band compatible with smart machine matches.
Optionally, the method also includes:
When accessing the radio band compatible with the smart machine of radio band used in the target WIFI network When matching, the corresponding destination router of Xiang Suoshu target WIFI network sends the second preset instructions, to trigger the target routing Device is sent to surrounding based on currently used radio band and carries the title of the target WIFI network and the broadcasting packet of password.
Optionally, the method also includes:
It is matched when accessing the radio band compatible with smart machine of radio band used in the target WIFI network When, the name for carrying the target WIFI network is sent to surrounding based on radio band used in the access target WIFI network Claim the broadcasting packet with password.
Optionally, the method also includes:
Receive the broadcasting packet that the smart machine is sent based on wireless universal frequency range;Wherein the broadcasting packet is by the intelligence It can be sent after device power, the radio band that the smart machine is compatible with is carried in the broadcasting packet;
The broadcasting packet sent to the smart machine received parses, and is compatible with obtaining the smart machine Radio band.
According to the second aspect of an embodiment of the present disclosure, a kind of wireless network connection device is provided, described device includes:
First obtains module, is configured as obtaining the title for the target WIFI network that user sets in default interface and close Code;
Judgment module judges to access the target WIFI if being configured as this equipment has accessed target WIFI network Whether the radio band compatible with smart machine of radio band used in network matches;
First sending module is configured as accessing radio band and smart machine used in the target WIFI network When the radio band being compatible with mismatches, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, The carrying target is sent to surrounding to trigger the destination router based on the radio band that the smart machine is compatible with The title of WIFI network and the broadcasting packet of password, so that the smart machine is according to the name carried in the broadcasting packet Claim and password accesses the target WIFI network.
Optionally, the judgment module includes:
First judging submodule, is configured as whether the WIFI network that judgement is currently accessed is the target WIFI network;
First judging submodule, is configured as whether the WIFI network that judgement is currently accessed is the target WIFI network;
Second judgment submodule is configured as judging that the WIFI network being currently accessed is in first judging submodule When the target WIFI network, judge to access radio band used in the target WIFI network compatible with smart machine Whether radio band matches;
Third judging submodule is configured as judging the WIFI network being currently accessed not in first judging submodule When being the target WIFI network, title and password based on the target WIFI network got are linked into the target After WIFI network, judge to access the radio band compatible with smart machine of radio band used in the target WIFI network Whether match.
Optionally, described device further include:
Second sending module is configured as accessing radio band used in the target WIFI network and the intelligence When the radio band matching that equipment is compatible with, the corresponding destination router of Xiang Suoshu target WIFI network sends the second default finger It enables, sends the carrying target WIFI network to surrounding to trigger the destination router based on currently used radio band The broadcasting packet of title and password.
Optionally, described device further include:
Third sending module is configured as accessing radio band and smart machine used in the target WIFI network When the radio band matching being compatible with, carrying is sent to surrounding based on radio band used in the target WIFI network is accessed The title of the target WIFI network and the broadcasting packet of password.
Optionally, described device further include:
Receiving module is configured as receiving the broadcasting packet that the smart machine is sent based on wireless universal frequency range;Wherein The broadcasting packet is sent after being powered on by the smart machine, and the wireless frequency that the smart machine is compatible with is carried in the broadcasting packet Section;
Second obtains module, is configured as parsing the broadcasting packet that the smart machine received is sent, with Obtain the radio band that the smart machine is compatible with.
According to the third aspect of an embodiment of the present disclosure, a kind of wireless network connection device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the title and password of the target WIFI network that user sets in default interface;
If this equipment has accessed target WIFI network, judge to access wireless frequency used in the target WIFI network Whether the section radio band compatible with smart machine matches;
When not accessing the radio band compatible with smart machine of radio band used in the target WIFI network not Timing, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, to trigger the destination router The radio band being compatible with based on the smart machine sends the title and password for carrying the target WIFI network to surrounding Broadcasting packet, so that the smart machine accesses the target according to the title and password carried in the broadcasting packet WIFI network.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with The step of machine instruction, which realizes above-mentioned wireless network connecting method when being executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the above embodiments of the disclosure, by the title for obtaining the target WIFI network that user sets in default interface And password, and judge that accessing the radio band compatible with smart machine of radio band used in the target WIFI network is No matching;It is mismatched when accessing the radio band compatible with smart machine of radio band used in the target WIFI network When, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, to trigger the destination router base In the radio band that the smart machine is compatible with send to surrounding carry the target WIFI network title and password it is wide Casting text, so that the smart machine accesses the target WIFI according to the title and password carried in the broadcasting packet Network, so as to realize the title based on the compatible radio band of smart machine to the smart machine broadcast target WIFI network And password, target WIFI network can not be got to avoid the broadcasting packet received can not be parsed due to smart machine The problem of title and password.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow diagram of wireless network connecting method shown according to an exemplary embodiment;
Fig. 2 is the flow diagram of another wireless network connecting method shown according to an exemplary embodiment;
Fig. 3 is the schematic diagram at network configuration interface shown according to an exemplary embodiment;
Fig. 4 is a kind of schematic block diagram of wireless network connection device shown according to an exemplary embodiment;
Fig. 5 is the schematic block diagram of another wireless network connection device shown according to an exemplary embodiment;
Fig. 6 is the schematic block diagram of another wireless network connection device shown according to an exemplary embodiment;
Fig. 7 is the schematic block diagram of another wireless network connection device shown according to an exemplary embodiment;
Fig. 8 is the schematic block diagram of another wireless network connection device shown according to an exemplary embodiment;
Fig. 9 is an a kind of structural representation for the wireless network connection device shown according to an exemplary embodiment Figure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
In the related art, user oriented itself is not had to provide the smart machine of access interface those, it usually needs By other smart machines (such as smart phone), the ssid for needing the target WIFI network accessed and password are transferred to this Smart machine;For example, user can wish the target WIFI network of smart machine access in mobile phone end by app selection Ssid simultaneously inputs password, then by the router of mobile phone and the target WIFI network by the ssid and password of the target WIFI network The smart machine is sent in the form of broadcasting packet, which will attempt to access the target after parsing ssid and password WIFI network.
However, in above technical scheme, if the above-mentioned broadcast report that the incompatible mobile phone of smart machine and router issue The radio band of text, then smart machine after receiving the broadcasting packet, will be unable to normally parse the broadcasting packet, thus nothing Method gets the ssid and password of the target WIFI network carried in the broadcasting packet.For example, if the smart phone of user is It is linked into target WIFI network by 5G frequency range, then the router broadcast ssid and password of mobile phone and the target WIFI network Broadcasting packet also works in 5G frequency range.And if the incompatible 5G frequency range of the smart machine, which will be unable to parse The broadcasting packet received, to cause ssid and the password acceptance failure of target WIFI network.
To solve the above problems, the disclosure proposes a kind of wireless network connecting method, by obtaining user at default interface The title and password of the target WIFI network of middle setting, and judge to access radio band used in the target WIFI network with Whether the radio band that smart machine is compatible with matches;When accessing radio band and intelligence used in the target WIFI network When the radio band that equipment is compatible with mismatches, the corresponding destination router of Xiang Suoshu target WIFI network sends the first default finger It enables, sends the carrying target to surrounding to trigger the destination router based on the radio band that the smart machine is compatible with The title of WIFI network and the broadcasting packet of password, so that the smart machine is according to the name carried in the broadcasting packet Claim and password accesses the target WIFI network, is set based on the compatible radio band of smart machine to the intelligence so as to realize The title and password of standby broadcast target WIFI network, can to avoid the broadcasting packet received can not be parsed due to smart machine and The problem of title and password of target WIFI network can not be got.
As shown in Figure 1, Fig. 1 is a kind of wireless network connecting method shown according to an exemplary embodiment, the wireless network Network connection method is in terminal, comprising the following steps:
In a step 101, the title and password of the target WIFI network that user sets in default interface are obtained;
In a step 102, it is compatible with smart machine institute to judge to access radio band used in the target WIFI network Radio band whether match;
In step 103, compatible with smart machine when accessing radio band used in the target WIFI network When radio band mismatches, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, to trigger It states destination router and the carrying target WIFI network is sent to surrounding based on the radio band that the smart machine is compatible with The broadcasting packet of title and password, so that the smart machine connects according to the title and password that carry in the broadcasting packet Enter the target WIFI network.
In the present embodiment, above-mentioned destination router can be the router for supporting double frequency WIFI;For example, the target routes Device can be while support the wireless router of general 2.4G frequency range and 5G frequency range WIFI.Above-mentioned terminal can be mobile whole End;For example, the mobile terminal can be smart phone.The smart home that above-mentioned smart machine can be WIFI chip built-in is set It is standby.
Wherein, above-mentioned mobile terminal and smart machine can be the equipment for only supporting general frequency range WIFI, be also possible to The equipment for supporting double frequency WIFI;For example, above-mentioned mobile terminal and smart machine can only support general 2.4G frequency range WIFI Equipment, be also possible to support the dual frequency equipment of general 2.4G frequency range and 5G frequency range WIFI simultaneously.
In practical applications, for smart machine, it usually needs can be received after being successfully accessed to WIFI network The control instruction that user sends from mobile phone terminal, to execute the movement of response.And user using mobile terminal to smart machine into When row control, it can usually be completed by the client software installed on mobile terminal;For example, when realizing, the client End software can be the APP of a kind of " wired home ", and user can set the various smart homes in home environment by the APP It is standby to be managed concentratedly and controlled.
Below using the mobile terminal as smart phone, the client software is wired home APP (hereinafter referred to as APP) For, and combine the application scenarios of smart home environment that the technical solution of the disclosure is described in detail.
It usually may include several smart machines, for example, in smart home environment in a smart home environment It usually may include the smart home devices such as intelligent video camera head, intelligent socket, Intelligent air purifier.When the intelligence in domestic environment After energy device power, it will usually issue WIFI broadcasting packet to surrounding by built-in WIFI chip, wherein WIFI broadcast report The information such as the device name of smart machine can be usually carried in text, above-mentioned APP can be broadcasted by parsing the WIFI received Message, obtains the device name of ambient intelligence equipment to scan the smart machine of surrounding,.
Wherein, in practical applications, in the WIFI broadcasting packet that above-mentioned smart machine issues after powering on, in addition to that can carry Other than the information such as the device name of smart machine, the information for the radio band that smart machine is compatible with can also be carried, when above-mentioned After the WIFI broadcasting packet that APP scanning is issued to smart machine, surrounding can also be got by parsing the WIFI broadcasting packet The radio band that is compatible with of smart machine, so that subsequent can be based on the radio band that the smart machine of surrounding is compatible with to intelligence It can equipment transmission broadcasting packet.
In the present embodiment, for the smart machine scanned, above-mentioned APP can be by the equipment of the smart machine scanned The information such as title are presented in above-mentioned APP to user in the form of a list, and user then can be by above-mentioned APP to the intelligence in list It can equipment progress network configuration, the remotely operation such as control.
Wherein, above-mentioned APP can usually be mentioned when carrying out network configuration for the smart machine scanned in above-mentioned APP It is completed in the network configuration interface of confession.For example, when realizing, user can select to need to carry out network in above-mentioned list to match The Intelligent target equipment set can jump to above-mentioned network configuration interface, by user after having selected Intelligent target equipment at this time Network configuration is carried out to the smart machine.
In above-mentioned network configuration interface, a WIFI network list can be provided, includes that above-mentioned APP is scanned in the list The ssid of all WIFI networks around arriving, the target that user can need to access for the selection of above-mentioned smart machine in the list WIFI network, and the password of the target WIFI network is inputted by user in above-mentioned network configuration interface.Wherein, the network configuration One triggering option can also be provided in interface, need the target WIFI network that accesses when user has selected, and by the target After the completion of the Password Input of WIFI network, user can trigger smart phone by built-in by clicking the triggering option WIFI chip sends the WIFI broadcasting packet of the ssid and password that carry above-mentioned target WIFI network to above-mentioned smart machine.
In the present embodiment, when the user clicks after above-mentioned triggering option, above-mentioned APP can obtain user above-mentioned on backstage The ssid of the target WIFI network selected in network configuration interface and the password of input, then judge that smart phone is currently accessed WIFI network whether be the target WIFI network, if the WIFI network that smart phone is currently accessed is target WIFI net Network, since above-mentioned APP has got the radio band that above-mentioned smart machine is compatible in advance, above-mentioned APP can be into It is compatible with above-mentioned smart machine that one step judges that smart phone is currently accessed radio band used in the target WIFI network Whether radio band matches.
Certainly, if the WIFI network that smart phone is currently accessed is not the target WIFI network, smart phone can at this time Access the target WIFI network with the ssid and password attempt according to the target WIFI network, after being successfully accessed, above-mentioned APP again into It is compatible with above-mentioned smart machine that one step judges that smart phone is currently accessed radio band used in the target WIFI network Whether radio band matches.
Wherein, above-mentioned APP, can when acquisition smart phone is currently accessed radio band used in the target WIFI network With the working frequency current by the WIFI chip of detection smart phone, or by analyzing above-mentioned smart phone and above-mentioned target The WIFI air message that transmits between the corresponding router of WIFI network is realized.
On the one hand, when above-mentioned APP judges that smart phone is currently accessed radio band used in the target WIFI network When the radio band compatible with above-mentioned smart machine mismatches, the smart machine can not normally parse the wide of the frequency range at this time Casting text, therefore the open interface that smart machine can be provided by above-mentioned destination router, Xiang Suoshu target WIFI network pair The destination router answered sends first preset instructions, which is based on institute for triggering above-mentioned destination router State the broadcast report that the radio band that smart machine is compatible with sends the ssid and password that carry above-mentioned target WIFI network to surrounding Text, so that above-mentioned smart machine after receiving the broadcasting packet, normally can parse the broadcasting packet to obtain it Then the ssid and password of the target WIFI network of middle carrying access above-mentioned target WIFI net according to the ssid and password attempt Network.
For example, it is assumed that the 2.4G frequency range of smart machine only compatible universal, it is above-mentioned that smart phone currently passes through the access of 5G frequency range Target WIFI network is communicated with above-mentioned destination router, and smart phone is sent by 5G frequency range to above-mentioned smart machine at this time After carrying the ssid of target WIFI network and the broadcasting packet of password, since frequency range mismatches, smart machine will be unable to proper solution Analyse the broadcasting packet.Therefore, smart phone can send above-mentioned first preset instructions to above-mentioned destination router, when target routes After device receives first preset instructions, 2.4 general frequency ranges can be used to surrounding and send above-mentioned broadcasting packet, and pass through 5G Frequency range continuation is communicated with above-mentioned smart phone.In this case, above-mentioned smart machine, which can normally parse, receives Broadcasting packet obtains the ssid and password of above-mentioned target WIFI network.
Certainly, when above-mentioned APP judge smart phone be currently accessed radio band used in the target WIFI network with When the radio band that above-mentioned smart machine is compatible with mismatches, if above-mentioned smart phone also supports that above-mentioned smart machine is compatible with Radio band when, above-mentioned APP also can control smart phone and pass through the radio band that is compatible with of the smart machine, send out to surrounding It send and carries the ssid of above-mentioned target WIFI network and the broadcasting packet of password.
In addition, in practical applications, when the radio band that smart phone supports above-mentioned smart machine to be compatible with, and intelligent hand Machine is currently accessed above-mentioned the used radio band of target WIFI network, and the radio band compatible with above-mentioned smart machine be not identical When, the radio band that smart phone enables the inoperative compatible with above-mentioned smart machine at this time sends above-mentioned broadcast report to surrounding Text, it will usually the problem for causing smart phone power consumption excessive.Therefore, in this case, for examining in smart phone power consumption Consider, if the radio band that smart phone supports above-mentioned smart machine to be compatible with, but smart phone is currently accessed above-mentioned target The used radio band of WIFI network, when the radio band compatible with above-mentioned smart machine be not identical, smart phone can at this time Above-mentioned broadcasting packet need not be sent to surrounding.
On the other hand, when above-mentioned APP judges that smart phone is currently accessed wireless frequency used in the target WIFI network When the section radio band compatible with above-mentioned smart machine matches, the smart machine can normally parse the frequency range at this time Broadcasting packet, therefore above-mentioned APP can control smart phone based on the wireless frequency being being currently used, that is, be currently accessed the mesh The radio band for marking WIFI network sends the broadcasting packet of the ssid and password that carry above-mentioned target WIFI network to surrounding.Together When, the open interface that above-mentioned APP can also be provided by above-mentioned destination router, the corresponding target of Xiang Suoshu target WIFI network Router sends second preset instructions, and second preset instructions are for triggering above-mentioned destination router based on currently used Radio band sends the broadcasting packet of the ssid and password that carry above-mentioned target WIFI network to surrounding, when above-mentioned smart machine exists After receiving the broadcasting packet, normally the broadcasting packet can be parsed to obtain the target WIFI network wherein carried Then ssid and password access above-mentioned target WIFI network according to the ssid and password attempt.
For example, it is assumed that the 2.4G frequency range of smart machine not only compatible universal, but also it is also compatible with 5G frequency range, and smart phone is worked as Preceding to be communicated by the above-mentioned target WIFI network of 5G frequency range access with above-mentioned destination router, smart phone passes through 5G frequency at this time After section sends the broadcasting packet of the ssid and password that carry target WIFI network to above-mentioned smart machine, due to frequency band match, intelligence Energy equipment can normally parse the broadcasting packet.Therefore, smart phone can be by the 5G frequency range that is being currently used to surrounding Send above-mentioned broadcasting packet.Meanwhile smart phone can also send above-mentioned second preset instructions to above-mentioned destination router, work as mesh After mark router receives second preset instructions, above-mentioned broadcast can be sent to surrounding by the 5G frequency range being being currently used Message.In this case, the radio band matching compatible with smart machine due to currently used radio band, intelligence Mobile phone and intelligent router can send above-mentioned broadcasting packet to surrounding simultaneously based on currently used radio band, when above-mentioned intelligence After energy equipment receives above-mentioned broadcasting packet, it can normally parse the broadcasting packet received and obtain above-mentioned target WIFI network Ssid and password.
In the embodiment above, by obtaining the title of the target WIFI network that user sets in default interface and close Code, and judge to access the radio band compatible with smart machine of radio band used in the target WIFI network whether Match;When accessing the radio band mismatch compatible with smart machine of radio band used in the target WIFI network, The first preset instructions are sent to the corresponding destination router of the target WIFI network, are based on institute to trigger the destination router It states the radio band that smart machine is compatible with and sends the title of the carrying target WIFI network and the broadcast report of password to surrounding Text, so that the smart machine accesses the target WIFI net according to the title and password carried in the broadcasting packet Network, so as to realizing based on the compatible radio band of smart machine to the title of the smart machine broadcast target WIFI network and Password can not get the name of target WIFI network to avoid that can not parse the broadcasting packet received due to smart machine The problem of title and password.
As shown in Fig. 2, Fig. 2 is a kind of wireless network connecting method shown according to an exemplary embodiment, the wireless network Network connection method is in terminal, comprising the following steps:
In step 201, the title and password of the target WIFI network that user sets in default interface are obtained;
In step 202, judge whether the WIFI network being currently accessed is the target WIFI network;
In step 203, if the WIFI network being currently accessed is the target WIFI network, judge to access the mesh Whether the radio band compatible with smart machine of radio band used in mark WIFI network matches;If be currently accessed When WIFI network is not the target WIFI network, title and password based on the target WIFI network got are linked into After the target WIFI network, judge to access radio band used in the target WIFI network compatible with smart machine Whether radio band matches;
In step 204, compatible with smart machine when accessing radio band used in the target WIFI network When radio band mismatches, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, to trigger It states destination router and the carrying target WIFI network is sent to surrounding based on the radio band that the smart machine is compatible with The broadcasting packet of title and password, so that the smart machine connects according to the title and password that carry in the broadcasting packet Enter the target WIFI network;
In step 205, compatible with smart machine when accessing radio band used in the target WIFI network When radio band matches, the carrying target is sent to surrounding based on radio band used in the target WIFI network is accessed The title of WIFI network and the broadcasting packet of password, and second is sent in advance to the corresponding destination router of the target WIFI network If instruction, the carrying target WIFI net is sent to surrounding to trigger the destination router based on currently used radio band The title of network and the broadcasting packet of password.
In the present embodiment, above-mentioned destination router can be the router for supporting double frequency WIFI;For example, the target routes Device can be while support the wireless router of general 2.4G frequency range and 5G frequency range WIFI.Above-mentioned terminal can be mobile whole End;For example, the mobile terminal can be smart phone.The smart home that above-mentioned smart machine can be WIFI chip built-in is set It is standby.
Wherein, above-mentioned mobile terminal and smart machine can be the equipment for only supporting general frequency range WIFI, be also possible to The equipment for supporting double frequency WIFI;For example, above-mentioned mobile terminal and smart machine can only support general 2.4G frequency range WIFI Equipment, be also possible to support the dual frequency equipment of general 2.4G frequency range and 5G frequency range WIFI simultaneously.
In practical applications, for smart machine, it usually needs can be received after being successfully accessed to WIFI network The control instruction that user sends from mobile phone terminal, to execute the movement of response.And user using mobile terminal to smart machine into When row control, it can usually be completed by the client software installed on mobile terminal;For example, when realizing, the client End software can be the APP of a kind of " wired home ", and user can set the various smart homes in home environment by the APP It is standby to be managed concentratedly and controlled.
Below using the mobile terminal as smart phone, the client software is wired home APP (hereinafter referred to as APP) For, and combine the application scenarios of smart home environment that the technical solution of the disclosure is described in detail.
It usually may include several smart machines, for example, in smart home environment in a smart home environment It usually may include the smart home devices such as intelligent video camera head, intelligent socket, Intelligent air purifier.When the intelligence in domestic environment After energy device power, it will usually issue WIFI broadcasting packet to surrounding by built-in WIFI chip, wherein WIFI broadcast report The information such as the device name of smart machine can be usually carried in text, above-mentioned APP can be broadcasted by parsing the WIFI received Message, obtains the device name of ambient intelligence equipment to scan the smart machine of surrounding,.
Wherein, in practical applications, in the WIFI broadcasting packet that above-mentioned smart machine issues after powering on, in addition to that can carry Other than the information such as the device name of smart machine, the information for the radio band that smart machine is compatible with can also be carried, when above-mentioned After the WIFI broadcasting packet that APP scanning is issued to smart machine, surrounding can also be got by parsing the WIFI broadcasting packet The radio band that is compatible with of smart machine, so that subsequent can be based on the radio band that the smart machine of surrounding is compatible with to intelligence It can equipment transmission broadcasting packet.
In the present embodiment, for the smart machine scanned, above-mentioned APP can be by the equipment of the smart machine scanned The information such as title are presented in above-mentioned APP to user in the form of a list, and user then can be by above-mentioned APP to the intelligence in list It can equipment progress network configuration, the remotely operation such as control.
Wherein, above-mentioned APP can usually be mentioned when carrying out network configuration for the smart machine scanned in above-mentioned APP It is completed in the network configuration interface of confession.For example, when realizing, user can select to need to carry out network in above-mentioned list to match The Intelligent target equipment set can jump to above-mentioned network configuration interface, by user after having selected Intelligent target equipment at this time Network configuration is carried out to the smart machine.
Fig. 3 is referred to, in above-mentioned network configuration interface, a WIFI network list can be provided, include in the list Above-mentioned APP scan around all WIFI networks ssid, user can in the list for above-mentioned smart machine selection need The target WIFI network to be accessed, and the password of the target WIFI network is inputted by user in above-mentioned network configuration interface.Its In, a triggering option can also be provided in the network configuration interface, and (such as the triggering option can be the choosing of a next step ), the target WIFI network that accesses is needed when user has selected, and by after the completion of the Password Input of the target WIFI network, use Family can trigger smart phone by clicking the triggering option and be taken by built-in WIFI chip to the transmission of above-mentioned smart machine The WIFI broadcasting packet of ssid and password with above-mentioned target WIFI network.
In the present embodiment, when the user clicks after above-mentioned triggering option, above-mentioned APP can obtain user above-mentioned on backstage The ssid of the target WIFI network selected in network configuration interface and the password of input, then judge that smart phone is currently accessed WIFI network whether be the target WIFI network, if the WIFI network that smart phone is currently accessed is target WIFI net Network, since above-mentioned APP has got the radio band that above-mentioned smart machine is compatible in advance, above-mentioned APP can be into It is compatible with above-mentioned smart machine that one step judges that smart phone is currently accessed radio band used in the target WIFI network Whether radio band matches.
Certainly, if the WIFI network that smart phone is currently accessed is not the target WIFI network, smart phone can at this time Access the target WIFI network with the ssid and password attempt according to the target WIFI network, after being successfully accessed, above-mentioned APP again into It is compatible with above-mentioned smart machine that one step judges that smart phone is currently accessed radio band used in the target WIFI network Whether radio band matches.
Wherein, above-mentioned APP, can when acquisition smart phone is currently accessed radio band used in the target WIFI network With the working frequency current by the WIFI chip of detection smart phone, or by analyzing above-mentioned smart phone and above-mentioned target The WIFI air message that transmits between the corresponding router of WIFI network is realized.
On the one hand, when above-mentioned APP judges that smart phone is currently accessed radio band used in the target WIFI network When the radio band compatible with above-mentioned smart machine mismatches, the smart machine can not normally parse the wide of the frequency range at this time Casting text, therefore the open interface that smart machine can be provided by above-mentioned destination router, Xiang Suoshu target WIFI network pair The destination router answered sends first preset instructions, which is based on institute for triggering above-mentioned destination router State the broadcast report that the radio band that smart machine is compatible with sends the ssid and password that carry above-mentioned target WIFI network to surrounding Text, so that above-mentioned smart machine after receiving the broadcasting packet, normally can parse the broadcasting packet to obtain it Then the ssid and password of the target WIFI network of middle carrying access above-mentioned target WIFI net according to the ssid and password attempt Network.
For example, it is assumed that the 2.4G frequency range of smart machine only compatible universal, it is above-mentioned that smart phone currently passes through the access of 5G frequency range Target WIFI network is communicated with above-mentioned destination router, and smart phone is sent by 5G frequency range to above-mentioned smart machine at this time After carrying the ssid of target WIFI network and the broadcasting packet of password, since frequency range mismatches, smart machine will be unable to proper solution Analyse the broadcasting packet.Therefore, smart phone can send above-mentioned first preset instructions to above-mentioned destination router, when target routes After device receives first preset instructions, 2.4 general frequency ranges can be used to surrounding and send above-mentioned broadcasting packet, and pass through 5G Frequency range continuation is communicated with above-mentioned smart phone.In this case, above-mentioned smart machine, which can normally parse, receives Broadcasting packet obtains the ssid and password of above-mentioned target WIFI network.
Certainly, when above-mentioned APP judge smart phone be currently accessed radio band used in the target WIFI network with When the radio band that above-mentioned smart machine is compatible with mismatches, if above-mentioned smart phone also supports that above-mentioned smart machine is compatible with Radio band when, above-mentioned APP also can control smart phone and pass through the radio band that is compatible with of the smart machine, send out to surrounding It send and carries the ssid of above-mentioned target WIFI network and the broadcasting packet of password.
In addition, in practical applications, when the radio band that smart phone supports above-mentioned smart machine to be compatible with, and intelligent hand Machine is currently accessed above-mentioned the used radio band of target WIFI network, and the radio band compatible with above-mentioned smart machine be not identical When, the radio band that smart phone enables the inoperative compatible with above-mentioned smart machine at this time sends above-mentioned broadcast report to surrounding Text, it will usually the problem for causing smart phone power consumption excessive.Therefore, in this case, for examining in smart phone power consumption Consider, if the radio band that smart phone supports above-mentioned smart machine to be compatible with, but smart phone is currently accessed above-mentioned target The used radio band of WIFI network, when the radio band compatible with above-mentioned smart machine be not identical, smart phone can at this time Above-mentioned broadcasting packet need not be sent to surrounding.
On the other hand, when above-mentioned APP judges that smart phone is currently accessed wireless frequency used in the target WIFI network When the section radio band compatible with above-mentioned smart machine matches, the smart machine can normally parse the frequency range at this time Broadcasting packet, therefore above-mentioned APP can control smart phone based on the wireless frequency being being currently used, that is, be currently accessed the mesh The radio band for marking WIFI network sends the broadcasting packet of the ssid and password that carry above-mentioned target WIFI network to surrounding.Together When, the open interface that above-mentioned APP can also be provided by above-mentioned destination router, the corresponding target of Xiang Suoshu target WIFI network Router sends second preset instructions, and second preset instructions are for triggering above-mentioned destination router based on currently used Radio band sends the broadcasting packet of the ssid and password that carry above-mentioned target WIFI network to surrounding, when above-mentioned smart machine exists After receiving the broadcasting packet, normally the broadcasting packet can be parsed to obtain the target WIFI network wherein carried Then ssid and password access above-mentioned target WIFI network according to the ssid and password attempt.
For example, it is assumed that the 2.4G frequency range of smart machine not only compatible universal, but also it is also compatible with 5G frequency range, and smart phone is worked as Preceding to be communicated by the above-mentioned target WIFI network of 5G frequency range access with above-mentioned destination router, smart phone passes through 5G frequency at this time After section sends the broadcasting packet of the ssid and password that carry target WIFI network to above-mentioned smart machine, due to frequency band match, intelligence Energy equipment can normally parse the broadcasting packet.Therefore, smart phone can be by the 5G frequency range that is being currently used to surrounding Send above-mentioned broadcasting packet.Meanwhile smart phone can also send above-mentioned second preset instructions to above-mentioned destination router, work as mesh After mark router receives second preset instructions, above-mentioned broadcast can be sent to surrounding by the 5G frequency range being being currently used Message.In this case, the radio band matching compatible with smart machine due to currently used radio band, intelligence Mobile phone and intelligent router can send above-mentioned broadcasting packet to surrounding simultaneously based on currently used radio band, when above-mentioned intelligence After energy equipment receives above-mentioned broadcasting packet, it can normally parse the broadcasting packet received and obtain above-mentioned target WIFI network Ssid and password.
In the embodiment above, by obtaining the title of the target WIFI network that user sets in default interface and close Code, and judge to access the radio band compatible with smart machine of radio band used in the target WIFI network whether Match;When accessing the radio band mismatch compatible with smart machine of radio band used in the target WIFI network, The first preset instructions are sent to the corresponding destination router of the target WIFI network, are based on institute to trigger the destination router It states the radio band that smart machine is compatible with and sends the title of the carrying target WIFI network and the broadcast report of password to surrounding Text, so that the smart machine accesses the target WIFI net according to the title and password carried in the broadcasting packet Network, so as to realizing based on the compatible radio band of smart machine to the title of the smart machine broadcast target WIFI network and Password can not get the name of target WIFI network to avoid that can not parse the broadcasting packet received due to smart machine The problem of title and password.
Corresponding with aforementioned wireless networks connection method embodiment, the disclosure additionally provides a kind of wireless network connection device Embodiment.
Fig. 4 is a kind of schematic block diagram of wireless network connection device shown according to an exemplary embodiment.
As shown in figure 4, a kind of wireless network connection device 400 shown according to an exemplary embodiment, comprising: first obtains Modulus block 401, judgment module 402 and the first sending module 403;Wherein:
The first acquisition module 401 is configured as, and obtains the target WIFI network that user sets in default interface Title and password;
The judgment module 402 is configured as, and judges to access radio band and intelligence used in the target WIFI network Whether the radio band that energy equipment is compatible with matches;
First sending module 403 is configured as, access radio band used in the target WIFI network with When the radio band that smart machine is compatible with mismatches, it is pre- that the corresponding destination router of Xiang Suoshu target WIFI network sends first If instruction, sent described in carrying with triggering the destination router based on the radio band that the smart machine is compatible with to surrounding The title of target WIFI network and the broadcasting packet of password, so that the smart machine is according to the institute carried in the broadcasting packet It states title and password accesses the target WIFI network.
In the embodiment above, by obtaining the title of the target WIFI network that user sets in default interface and close Code, and judge to access the radio band compatible with smart machine of radio band used in the target WIFI network whether Match;When accessing the radio band mismatch compatible with smart machine of radio band used in the target WIFI network, The first preset instructions are sent to the corresponding destination router of the target WIFI network, are based on institute to trigger the destination router It states the radio band that smart machine is compatible with and sends the title of the carrying target WIFI network and the broadcast report of password to surrounding Text, so that the smart machine accesses the target WIFI net according to the title and password carried in the broadcasting packet Network, so as to realizing based on the compatible radio band of smart machine to the title of the smart machine broadcast target WIFI network and Password can not get the name of target WIFI network to avoid that can not parse the broadcasting packet received due to smart machine The problem of title and password.
Fig. 5 is referred to, Fig. 5 is the block diagram of the disclosure another device shown according to an exemplary embodiment, the implementation For example on the basis of aforementioned embodiment illustrated in fig. 4, the judgment module 402 may include the first judging submodule 402A, second Judging submodule 402B and third judging submodule 402C;Wherein:
The first judging submodule 402A is configured as, and judges whether the WIFI network being currently accessed is the target WIFI network;
The second judgment submodule 402B is configured as, and judges to be currently accessed in the first judging submodule 402A WIFI network when being the target WIFI network, judge to access radio band and intelligence used in the target WIFI network Whether the radio band that equipment is compatible with matches;
The second judgment submodule 402C is configured as, and judges to be currently accessed in first judging submodule When WIFI network is not the target WIFI network, title and password based on the target WIFI network got are linked into After the target WIFI network, judge to access radio band used in the target WIFI network compatible with smart machine Whether radio band matches.
Fig. 6 is referred to, Fig. 6 is the block diagram of the disclosure another device shown according to an exemplary embodiment, the implementation For example on the basis of aforementioned embodiment illustrated in fig. 4, described device 400 can also include the second sending module 404;Wherein:
Second sending module 404 is configured as, access radio band used in the target WIFI network with When the radio band matching that the smart machine is compatible with, the corresponding destination router of Xiang Suoshu target WIFI network sends second Preset instructions send the carrying target WIFI to surrounding to trigger the destination router based on currently used radio band The title of network and the broadcasting packet of password.
It should be noted that the structure of second sending module 404 can also shown in above-mentioned Installation practice shown in fig. 6 To be included in the Installation practice of earlier figures 5, this disclosure is not limited.
Fig. 7 is referred to, Fig. 7 is the block diagram of the disclosure another device shown according to an exemplary embodiment, the implementation For example on the basis of aforementioned embodiment illustrated in fig. 6, described device 400 can also include third sending module 405;Wherein:
The third sending module 405 is configured as, access radio band used in the target WIFI network with When the radio band matching that smart machine is compatible with, it is based on accessing radio band used in the target WIFI network to surrounding Send the broadcasting packet of the title and password that carry the target WIFI network;
It should be noted that the structure of third sending module 405 shown in above-mentioned Installation practice shown in Fig. 7 can also Be not limited to this disclosure included in the Installation practice of earlier figures 4-5.
Fig. 8 is referred to, Fig. 8 is the block diagram of the disclosure another device shown according to an exemplary embodiment, the implementation For example on the basis of aforementioned embodiment illustrated in fig. 7, described device 400 can also include that receiving module 406 and second obtain module 407;Wherein:
The receiving module 406 is configured as, and receives the broadcast report that the smart machine is sent based on wireless universal frequency range Text;Wherein the broadcasting packet is sent after being powered on by the smart machine, and the smart machine is carried in the broadcasting packet and is compatible with Radio band;
The second acquisition module 407 is configured as, and is carried out to the broadcasting packet that the smart machine received is sent Parsing, to obtain the radio band that the smart machine is compatible with.
It should be noted that receiving module 406 shown in above-mentioned Installation practice shown in Fig. 8 and second obtains module 407 structure also may be embodied in the Installation practice of earlier figures 4-6, be not limited to this disclosure.
The function of modules and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Correspondingly, the disclosure also provides a kind of wireless network connection device, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the title and password of the target WIFI network that user sets in default interface;
Judgement accesses the radio band compatible with smart machine of radio band used in the target WIFI network No matching;
When not accessing the radio band compatible with smart machine of radio band used in the target WIFI network not Timing, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, to trigger the destination router The radio band being compatible with based on the smart machine sends the title and password for carrying the target WIFI network to surrounding Broadcasting packet, so that the smart machine accesses the target according to the title and password carried in the broadcasting packet WIFI network.
Correspondingly, the disclosure also provides a kind of terminal, the terminal include memory and one or more than one Program, one of them perhaps more than one program be stored in memory and be configured to by one or more than one Managing device and executing the one or more programs includes the instruction for performing the following operation:
Obtain the title and password of the target WIFI network that user sets in default interface;
Judgement accesses the radio band compatible with smart machine of radio band used in the target WIFI network No matching;
When not accessing the radio band compatible with smart machine of radio band used in the target WIFI network not Timing, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, to trigger the destination router The radio band being compatible with based on the smart machine sends the title and password for carrying the target WIFI network to surrounding Broadcasting packet, so that the smart machine accesses the target according to the title and password carried in the broadcasting packet WIFI network.
Fig. 9 is a kind of structural schematic diagram of wireless network connection device shown according to an exemplary embodiment.
As shown in figure 9, a kind of wireless network connection device 900 shown according to an exemplary embodiment, which can To be mobile phone, smart machine, computer, digital broadcasting terminal, messaging device, game console, tablet device, doctor Treat equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 9, device 900 may include following one or more components: processing component 901, memory 902, power supply Component 903, multimedia component 904, audio component 905, the interface 906 of input/output (I/O), sensor module 907, and Communication component 908.
The integrated operation of the usual control device 900 of processing component 901, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 901 may include that one or more processors 909 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 901 may include one or more modules, just Interaction between processing component 901 and other assemblies.For example, processing component 901 may include multi-media module, it is more to facilitate Interaction between media component 904 and processing component 901.
Memory 902 is configured as storing various types of data to support the operation in device 900.These data are shown Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 902 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 903 provides electric power for the various assemblies of device 900.Power supply module 903 may include power management system System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 904 includes the screen of one output interface of offer between described device 900 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 904 includes a front camera and/or rear camera.When device 900 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 905 is configured as output and/or input audio signal.For example, audio component 905 includes a Mike Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 902 or via communication set Part 908 is sent.In some embodiments, audio component 905 further includes a loudspeaker, is used for output audio signal.
I/O interface 902 provides interface between processing component 901 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 907 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor module 907 can detecte the state that opens/closes of device 900, and the relative positioning of component, for example, it is described Component is the display and keypad of device 900, and sensor module 907 can be with 900 1 components of detection device 900 or device Position change, the existence or non-existence that user contacts with device 900,900 orientation of device or acceleration/deceleration and device 900 Temperature change.Sensor module 907 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 907 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 908 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 908 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 908 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 902 of instruction, above-metioned instruction can be executed by the processor 909 of device 900 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Wherein, when the instruction in the storage medium is executed by the processor of mobile terminal, enable mobile terminal Execute a kind of wireless network connecting method, comprising:
Obtain the title and password of the target WIFI network that user sets in default interface;
Judgement accesses the radio band compatible with smart machine of radio band used in the target WIFI network No matching;
When not accessing the radio band compatible with smart machine of radio band used in the target WIFI network not Timing, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, to trigger the destination router The radio band being compatible with based on the smart machine sends the title and password for carrying the target WIFI network to surrounding Broadcasting packet, so that the smart machine accesses the target according to the title and password carried in the broadcasting packet WIFI network.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (12)

1. a kind of wireless network connecting method, which is characterized in that the method is applied to terminal, which comprises
Obtain the title and password of the target WIFI network that user sets in default interface;
If this terminal has accessed target WIFI network, judge to access radio band used in the target WIFI network with Whether the radio band that smart machine is compatible with matches;
When accessing the radio band mismatch compatible with smart machine of radio band used in the target WIFI network, The first preset instructions are sent to the corresponding destination router of the target WIFI network, are based on institute to trigger the destination router It states the radio band that smart machine is compatible with and sends the title of the carrying target WIFI network and the broadcast report of password to surrounding Text, so that the smart machine accesses the target WIFI net according to the title and password carried in the broadcasting packet Network.
2. the method as described in claim 1, which is characterized in that the judgement accesses nothing used in the target WIFI network Whether the line frequency range radio band compatible with smart machine, which matches, includes:
Judge whether the WIFI network being currently accessed is the target WIFI network;
If the WIFI network being currently accessed is the target WIFI network, judge to access used in the target WIFI network Whether the radio band radio band compatible with smart machine matches;
If the WIFI network being currently accessed is not the target WIFI network, based on the target WIFI network got After title and password are linked into the target WIFI network, judge to access radio band used in the target WIFI network with Whether the radio band that smart machine is compatible with matches.
3. the method as described in claim 1, which is characterized in that the method also includes:
It is matched when accessing the radio band compatible with the smart machine of radio band used in the target WIFI network When, the corresponding destination router of Xiang Suoshu target WIFI network sends the second preset instructions, to trigger the destination router base It is sent in currently used radio band to surrounding and carries the title of the target WIFI network and the broadcasting packet of password.
4. method as claimed in claim 3, which is characterized in that the method also includes:
When accessing the radio band compatible with smart machine of radio band used in the target WIFI network and matching, base In access radio band used in the target WIFI network to surrounding and send carry the target WIFI network title and The broadcasting packet of password.
5. the method as described in claim 1, which is characterized in that the method also includes:
Receive the broadcasting packet that the smart machine is sent based on wireless universal frequency range;Wherein the broadcasting packet is set by the intelligence It is standby power on after send, the radio band that the smart machine is compatible with is carried in the broadcasting packet;
The broadcasting packet sent to the smart machine received parses, to obtain the nothing that the smart machine is compatible with Line frequency range.
6. a kind of wireless network connection device, which is characterized in that described device is applied to terminal, and described device includes:
First obtains module, is configured as obtaining the title and password of the target WIFI network that user sets in default interface;
Judgment module judges to access the target WIFI network if being configured as this terminal has accessed target WIFI network Whether the used radio band radio band compatible with smart machine matches;
First sending module, is configured as the radio band used in the access target WIFI network and smart machine institute is simultaneous When the radio band of appearance mismatches, the corresponding destination router of Xiang Suoshu target WIFI network sends the first preset instructions, with touching It sends out destination router described and is sent based on the radio band that the smart machine is compatible with to surrounding and carry the target WIFI net The title of network and the broadcasting packet of password, so that the smart machine is according to the title that carries in the broadcasting packet and close Code accesses the target WIFI network.
7. device as claimed in claim 6, which is characterized in that the judgment module includes:
First judging submodule, is configured as whether the WIFI network that judgement is currently accessed is the target WIFI network;
Second judgment submodule is configured as judging that the WIFI network being currently accessed is described in first judging submodule When target WIFI network, judge to access wireless compatible with smart machine of radio band used in the target WIFI network Whether frequency range matches;
Third judging submodule is configured as judging the WIFI network being currently accessed not in first judging submodule being institute When stating target WIFI network, title and password based on the target WIFI network got are linked into the target WIFI net After network, judge to access the radio band compatible with smart machine of radio band used in the target WIFI network whether Match.
8. device as claimed in claim 6, which is characterized in that described device further include:
Second sending module is configured as accessing radio band used in the target WIFI network and the smart machine When the radio band matching being compatible with, the corresponding destination router of Xiang Suoshu target WIFI network sends the second preset instructions, with It triggers the destination router and sends the title for carrying the target WIFI network to surrounding based on currently used radio band With the broadcasting packet of password.
9. device as claimed in claim 8, which is characterized in that described device further include:
Third sending module, is configured as the radio band used in the access target WIFI network and smart machine institute is simultaneous When the radio band matching of appearance, sent described in carrying based on radio band used in the target WIFI network is accessed to surrounding The title of target WIFI network and the broadcasting packet of password.
10. device as claimed in claim 6, which is characterized in that described device further include:
Receiving module is configured as receiving the broadcasting packet that the smart machine is sent based on wireless universal frequency range;Wherein this is wide Casting text is sent after being powered on by the smart machine, and the radio band that the smart machine is compatible with is carried in the broadcasting packet;
Second obtains module, is configured as parsing the broadcasting packet that the smart machine received is sent, to obtain The radio band that the smart machine is compatible with.
11. a kind of wireless network connection device, which is characterized in that described device is applied to terminal, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the title and password of the target WIFI network that user sets in default interface;
If this terminal has accessed target WIFI network, judge to access radio band used in the target WIFI network with Whether the radio band that smart machine is compatible with matches;
When accessing the radio band mismatch compatible with smart machine of radio band used in the target WIFI network, The first preset instructions are sent to the corresponding destination router of the target WIFI network, are based on institute to trigger the destination router It states the radio band that smart machine is compatible with and sends the title of the carrying target WIFI network and the broadcast report of password to surrounding Text, so that the smart machine accesses the target WIFI net according to the title and password carried in the broadcasting packet Network.
12. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of claim 1 to 6 any the method is realized when execution.
CN201510618144.8A 2015-09-24 2015-09-24 Wireless network connecting method and device Active CN105163366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510618144.8A CN105163366B (en) 2015-09-24 2015-09-24 Wireless network connecting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510618144.8A CN105163366B (en) 2015-09-24 2015-09-24 Wireless network connecting method and device

Publications (2)

Publication Number Publication Date
CN105163366A CN105163366A (en) 2015-12-16
CN105163366B true CN105163366B (en) 2019-03-29

Family

ID=54804096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510618144.8A Active CN105163366B (en) 2015-09-24 2015-09-24 Wireless network connecting method and device

Country Status (1)

Country Link
CN (1) CN105163366B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241245B (en) * 2017-06-16 2020-03-10 深圳市盛路物联通讯技术有限公司 Equipment connection method and data forwarding equipment
CN107222908A (en) * 2017-06-28 2017-09-29 广东美的制冷设备有限公司 Intelligent appliance and its with network method, router, intelligent domestic system
CN107426067A (en) * 2017-07-27 2017-12-01 广东美的制冷设备有限公司 Intelligent appliance
CN107465586A (en) * 2017-08-02 2017-12-12 广东美的制冷设备有限公司 Router
CN107612716B (en) * 2017-08-28 2021-05-07 台州市吉吉知识产权运营有限公司 Network distribution method and system of intelligent electronic equipment
CN107613530B (en) * 2017-10-11 2020-03-13 上海斐讯数据通信技术有限公司 Router-based configuration method of Internet of things equipment and dual-frequency wireless router
CN107920354A (en) * 2017-11-21 2018-04-17 珠海奔图电子有限公司 The connection method of multiband equipment and system
CN111194067A (en) * 2018-11-14 2020-05-22 中兴通讯股份有限公司 Network access method, device, related equipment and storage medium
CN111342985A (en) * 2018-12-18 2020-06-26 美的集团股份有限公司 Network distribution method, Internet of things system and Internet of things equipment
CN111386714A (en) * 2019-03-29 2020-07-07 深圳市大疆创新科技有限公司 Wi-Fi communication connection establishment method, device and computer-readable storage medium
CN111866999B (en) * 2020-07-24 2021-09-24 深圳创维数字技术有限公司 Intelligent device network distribution method, system and storage medium
CN112533184A (en) * 2020-10-22 2021-03-19 智享众联科技有限公司 Equipment connection method and device
CN113438102B (en) * 2021-06-04 2022-07-26 荣耀终端有限公司 Network configuration system, network configuration method, electronic device and routing device
CN113747543B (en) * 2021-08-03 2022-11-25 荣耀终端有限公司 Network distribution method, equipment, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103079257A (en) * 2012-12-11 2013-05-01 杭州联汇数字科技有限公司 Method for connecting audio device into WIFI (Wireless Fidelity) network
CN104301884A (en) * 2014-10-29 2015-01-21 浙江宇视科技有限公司 Method for configuring IP cameras to have access to wireless router

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103079257A (en) * 2012-12-11 2013-05-01 杭州联汇数字科技有限公司 Method for connecting audio device into WIFI (Wireless Fidelity) network
CN104301884A (en) * 2014-10-29 2015-01-21 浙江宇视科技有限公司 Method for configuring IP cameras to have access to wireless router

Also Published As

Publication number Publication date
CN105163366A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN105163366B (en) Wireless network connecting method and device
CN104936304B (en) Smart machine binding method, smart machine and server
CN104684048B (en) WIFI list shows method and apparatus
CN104812092B (en) A kind of networking methods and device of smart machine
CN105049923B (en) Wake up the method and device of electronic equipment
CN105159672B (en) Remote assistance method and client
CN104159218B (en) Internetwork connection establishing method and device
CN104967889A (en) Method used for controlling intelligent television to carry out video information processing and device
CN106375479B (en) Data sharing method and device
CN104837154B (en) The control method and device of wireless access points
CN104853336A (en) Method for discovering intelligent equipment, method for accessing to internet and devices thereof
CN105182783A (en) Method, apparatus and terminal for controlling intelligent devices
CN104898505A (en) Smart scene configuration method and device
CN104468329A (en) Member adding method and device based on instant messaging
CN106385351A (en) Control method and device of intelligent household equipment
CN105652671A (en) Intelligent equipment operating mode setting method and device
CN106604230B (en) The method and device of region configuration
CN107071862A (en) Account binding method and device and smart machine
CN104837178A (en) Network accessing method and device
CN107105339A (en) A kind of methods, devices and systems for playing live video
CN106413129A (en) Method and device for binding terminal to intelligent equipment
CN105389225A (en) Touch screen reporting point processing method and apparatus
CN105515923A (en) Equipment control method and device
CN104881342A (en) Terminal testing method and device
CN105187671A (en) Recording method and device

Legal Events

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