Summary of the invention
Main purpose of the present invention is to provide a kind of terminal equipment, WIFI method of attachment and system, to solve the problem of the manual connected mode operation of the WIFI more complicated that prior art exists, wherein:
Comprise according to the WIFI method of attachment of the embodiment of the present invention: first terminal equipment be connected terminal equipment and set up short-range communication and connect; Described first terminal equipment connects by short-range communication the WIFI that receives from described the second terminal equipment and connects parameter information; Described first terminal equipment is set up WIFI according to described WIFI connection parameter information with described the second terminal equipment and is connected.
Wherein, described first terminal equipment connected the step of reception from the WIFI link information of described the second terminal equipment by short-range communication before, described method also comprised: described first terminal equipment connects to described the second terminal equipment transmission WIFI connectivity request message by short-range communication.
Wherein, described method also comprises: described the second terminal equipment judges its whether built vertical WIFI focus; If the WIFI that obtains described WIFI focus connects parameter information and is sent to described first terminal equipment; If not, set up the WIFI focus, the WIFI that obtains the WIFI focus of setting up connects parameter information and is sent to described first terminal equipment.
Wherein, the WIFI that described first terminal equipment receives connects parameter information and comprises: network identity SSID and password, described first terminal equipment connects parameter information according to described WIFI and sets up with described the second terminal equipment the step that WIFI is connected, specifically comprise: described first terminal equipment search WIFI focus, and determine described the second terminal equipment according to the SSID that receives; The password that described first terminal equipment use receives is set up WIFI with described the second terminal equipment and is connected.
Wherein, described method also comprises: after described first terminal equipment connected by short-range communication the WIFI connection parameter information that receives from described the second terminal equipment, disconnection was connected with the short-range communication of described the second terminal equipment.
Comprise according to the first terminal equipment of the embodiment of the present invention: proximity communication module is used for and is connected terminal equipment setting up the short-range communication connection; Receiver module is used for connecting by short-range communication the WIFI that receives from described the second terminal equipment and connects parameter information; The WIFI communication module is used for setting up WIFI according to described WIFI connection parameter information with described the second terminal equipment and is connected.
Wherein, described first terminal equipment also comprises: sending module is used for connecting to described the second terminal equipment transmission WIFI connectivity request message by short-range communication.
Wherein, the WIFI that described receiver module receives connects parameter information and comprises: SSID and password, and described WIFI communication module specifically comprises: search module is used for search WIFI focus, and determines described the second terminal equipment according to the SSID that receives; Module is set up in the WIFI connection, is used for using the password that receives to set up WIFI with described the second terminal equipment and is connected.
Wherein, described proximity communication module is after the WIFI connection parameter information of described receiver module reception from described the second terminal equipment, and disconnection is connected with the short-range communication of described the second terminal equipment.
WIFI connected system according to the embodiment of the present invention, comprise above-mentioned first terminal equipment and the second terminal equipment, described the second terminal equipment is used for judging its whether built vertical WIFI focus, if the WIFI that obtains described WIFI focus connects parameter information and is sent to described first terminal equipment; If not, set up the WIFI focus, the WIFI that obtains the WIFI focus of setting up connects parameter information and is sent to described first terminal equipment.
According to technical scheme of the present invention, connect by the short-range communication of setting up the parameter information that transmission WIFI connects, simplified the operation of the complexity of manually carrying out the WIFI connection, realized that the Fast W IFI of equipment room connects.
Embodiment
Main thought of the present invention is, first terminal equipment be connected terminal equipment and set up short-range communication and connect; First terminal equipment connects by short-range communication the WIFI that receives from the second terminal equipment and connects parameter information; First terminal equipment is set up WIFI according to WIFI connection parameter information with the second terminal equipment and is connected.
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
According to embodiments of the invention, provide a kind of WIFI method of attachment.
Fig. 1 is that as shown in Figure 1, the method comprises according to the flow chart of the WIFI method of attachment of the embodiment of the present invention:
Step S102, first terminal equipment be connected terminal equipment and set up short-range communication and connect.Described short-range communication includes but not limited to: the RFID(radio-frequency (RF) identification), the NFC(near-field communication) etc. wireless communication technology.
Step S104, first terminal equipment connects by short-range communication the WIFI that receives from the second terminal equipment and connects parameter information.The SSID(network identity) and password described WIFI connects parameter information for carrying out the necessary parameter information of WIFI connection, includes but not limited to:.
Step S106, first terminal equipment set up WIFI according to WIFI connection parameter information with the second terminal equipment and are connected.
By above-described embodiment, utilize short-range communication to connect the connection parameter that transmission WIFI connects, can connect by Rapid Establishment WIFI.
With reference to figure 2, the first terminal equipment in the present invention and the second terminal equipment all have proximity communication module and WIFI module, can carry out short-range communication setting up first communication channel, and carry out WIFI and connect to set up the second communication channel.
Describe the embodiment of the present invention in detail below in conjunction with Fig. 3 and Fig. 4.Hold equipment, the second terminal equipment to be described as example as Host end equipment take first terminal equipment as Client in the following embodiments.And represent short-range communication with NFC in this embodiment.With reference to figure 3, be the flow chart that the terminal equipment of the Client end of the embodiment of the present invention connects WIFI fast, specifically comprise:
Step S302, first terminal equipment enable the NFC module and set up NFC with the second terminal equipment and be connected.
Step S304, first terminal equipment connects to the second terminal equipment transmission WIFI connection request by NFC.
The SSID(network identity) and password step S306 judges whether first terminal equipment receives WIFI and connect parameter information, includes but not limited to:.If execution in step S308, otherwise continue execution in step S304, send the WIFI connection request to the second terminal equipment.
Step S308, disconnection is connected with the NFC of the second terminal equipment.
Step S310, first terminal device start WIFI module client pattern.
Step S312, near the WIFI focus the search of first terminal equipment.
Step S314 judges the WIFI focus that whether comprises the SSID name of reception in the WIFI focus that first terminal equipment searches, if, execution in step S318, otherwise execution in step S316.
Step S316 judges whether to continue search WIFI focus, if execution in step S312, otherwise flow process finishes.
Step S318, foundation is connected with the WIFI of the second terminal equipment, and this flow process finishes.
Need to prove, connect the WIFI connection parameter information that receives from the second terminal equipment by short-range communication at first terminal equipment after, disconnection is connected with the short-range communication of the second terminal equipment.This is to connect for fear of NFC to be connected the interference that may use simultaneously similar frequency bands to bring with WIFI.
With reference to figure 4, be the flow chart that the terminal equipment of the Host end of the embodiment of the present invention connects WIFI fast, specifically comprise:
Step S402, the second terminal equipment enable NFC and set up NFC with first terminal equipment and be connected.
Step S404, the second terminal equipment is waited for the WIFI connection request.
Step S406 judges whether the second terminal equipment receives the WIFI connection request, if execution in step S408, otherwise execution in step S404 continues to wait for the WIFI connection request.
Step S408 judges whether built vertical WIFI focus of the second terminal equipment, if direct execution in step S412, otherwise execution in step S410.
Step S410 starts WIFI module host pattern, sets up the WIFI focus.
Step S412 obtains SSID and the password of setting up the WIFI focus.
Step S414, the second terminal equipment connects to first terminal equipment transmission SSID and password by NFC.
Step S416 judges whether the second terminal equipment receives the WIFI connection request, if execution in step S418, otherwise continue execution in step S414.
Step S418, foundation is connected with the WIFI of first terminal equipment, and this flow process finishes.
By above-described embodiment, the WIFI between can two terminal equipments of Rapid Establishment connects the complex steps that solved manual connection WIFI, connects slower problem.Because the NFC communication range only has tens centimetres, can reduce the risk that password is revealed.Simultaneously, owing to existing when first communication channel and second communication channel have been avoided in the control that connects order, effectively prevented the mutual interference mutually of two radio communication channels (the NFC channel may use the 2.4GHZ frequency range simultaneously with the WIFI channel).
According to embodiments of the invention, a kind of first terminal equipment also is provided, this terminal equipment includes but not limited to the terminal equipments such as mobile phone, smart mobile phone, panel computer (PAD), PDA(Personal Digital Assistant).
With reference to figure 5, be that it comprises according to the structured flowchart of the first terminal equipment of the embodiment of the present invention:proximity communication module 10,receiver module 20 andWIFI communication module 30, wherein:
Proximity communication module 10 is used for and is connected terminal equipment setting up the short-range communication connection;
Receiver module 20 couples mutually withproximity communication module 10, is used for connecting by short-range communication the WIFI that receives from the second terminal equipment and connects parameter information;
WIFI communication module 30 couples mutually withreceiver module 20, is used for setting up WIFI according to WIFI connection parameter information with the second terminal equipment and is connected.
Andproximity communication module 10 is after the WIFI connection parameter information ofreceiver module 20 receptions from the second terminal equipment, and disconnection is connected with the short-range communication of the second terminal equipment.
Continuation is with reference to figure 6, and described first terminal equipment also comprises: sendingmodule 40 couples mutually withproximity communication module 10 andreceiver module 20 respectively.Whenproximity communication module 10 be connected terminal equipment and set up after short-range communication connects, sendingmodule 40 connects to the second terminal equipment transmission WIFI connectivity request message by short-range communication.
Further, the WIFI connection parameter information ofreceiver module 20 receptions comprises: SSID and password,WIFI communication module 30 specifically comprises:search module 310 is connected with WIFI sets up module 32.Wherein,search module 310 is used for search WIFI focus, and determines the second terminal equipment according to the SSID that receives; The WIFI connection is set upmodule 320 and is coupled mutually withsearch module 310, is used for using the password that receives to set up WIFI with the second terminal equipment and is connected.
According to embodiments of the invention, a kind of WIFI connected system also is provided, with reference to figure 7, comprising: first terminal equipment and the second terminal equipment, wherein, the structure of described first terminal equipment and annexation please refer to Fig. 5 and Fig. 6, repeat no more herein.
The second terminal equipment is used for judge its whether built vertical WIFI focus, if obtain the WIFI connection parameter information of WIFI focus and be sent to first terminal equipment; If not, set up the WIFI focus, the WIFI that obtains the WIFI focus of setting up connects parameter information and is sent to first terminal equipment.
The operating procedure of method of the present invention is corresponding with the architectural feature of equipment and system, can cross-reference, give unnecessary details no longer one by one.
In sum, according to technical scheme of the present invention, connect by the short-range communication of setting up the parameter information that transmission WIFI connects, simplified the operation of the complexity of manually carrying out the WIFI connection, realized that the Fast W IFI of equipment room connects.
The above is only embodiments of the invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in claim scope of the present invention.