Summary of the invention
The object of the present invention is to provide a kind of Wi-Fi collocation method, can utilize the multiple-working mode of Wi-Fi chip on terminal equipment itself, by the first or second client, control terminal and Target Wireless router connect wirelessly.
For addressing the above problem, the invention provides a kind of Wi-Fi collocation method, comprising:
The mode of operation of terminal equipment its Wi-Fi chip after startup is set to ap mode;
The first client and described terminal equipment are set up after wireless connections, send log-on message and the reset command of Target Wireless router to described terminal equipment;
After described terminal equipment is restarted, the mode of operation of described Wi-Fi chip is switched to STA pattern by described ap mode, and use the described log-on message and the described Target Wireless router that receive to connect.
Further, in said method, described log-on message comprises SSID and password.
Further, in said method, described terminal equipment uses after the step that the described log-on message that receives and described Target Wireless router connect, and also comprises:
After one second client and described Target Wireless router connect, send the log-on message of other Target Wireless router to described terminal equipment by Web mode;
Described terminal equipment uses the log-on message of other Target Wireless router and other Target Wireless router to connect.
Further, in said method, the first client and described terminal equipment are set up in the step of wireless connections, and described the first client is set up wireless connections using the machine sequencing number of described terminal equipment as log-on message and described terminal equipment.
Further, in said method, described the first client and the second client are windows, Android or IOS system.
Further, in said method, described terminal equipment is network shooting machine equipment.
According to another side of the present invention, a kind of Wi-Fi configuration-system is provided, comprising:
Network shooting machine equipment, described network shooting machine equipment comprises mode switching unit, linkage unit and video acquisition transmitting element, wherein, described mode switching unit is set to ap mode for the mode of operation of its Wi-Fi chip after startup, and after the reset command of receiving the first client is restarted, the mode of operation of described Wi-Fi chip is switched to STA pattern by described ap mode; Described linkage unit, for switching to after STA pattern, use from the first client to the log-on message of Target Wireless router set up wireless connections to Target Wireless router solicitation; Described structured video data transmitting unit, for gathering video data, and sends described video data to described Target Wireless router setting up after described wireless connections;
The first client, for setting up after wireless connections with the linkage unit of described network shooting machine equipment, sends log-on message and the reset command of described Target Wireless router to described network shooting machine equipment;
Target Wireless router, the log-on message of receiving from described network shooting machine equipment for verification is for correct, sets up wireless connections with described network shooting machine equipment is standby.
Further, in said system, described log-on message comprises SSID and password.
Further, in said system, also comprise one second client, after connecting with described Target Wireless router, send the log-on message of other Target Wireless router to the linkage unit of described network shooting machine equipment by Web mode;
The linkage unit of described network shooting machine equipment, also connects for the log-on message and other Target Wireless router that use other Target Wireless router.
Further, in said system, described the first client is set up wireless connections using the machine sequencing number of described network shooting machine equipment as log-on message and described network shooting machine equipment.
Further, in said system, described the first client and the second client are windows, Android or IOS system.
Compared with prior art, the present invention is set to ap mode by the mode of operation of terminal equipment its Wi-Fi chip after startup, the first client and described terminal equipment are set up after wireless connections, send log-on message and the reset command of Target Wireless router to described terminal equipment, after described terminal equipment is restarted, the mode of operation of described Wi-Fi chip is switched to STA pattern by described ap mode, and use the described log-on message and the described Target Wireless router that receive to connect, can utilize the multiple-working mode of Wi-Fi chip on terminal equipment itself, by the first or second client, control terminal and Target Wireless router connect wirelessly, thereby effectively dwindle the volume of terminal equipment, without the control desk and the wireline interface that are designed for configurating terminal device Wi-Fi access on terminal equipment, than WPS mode, there is better versatility.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Embodiment mono-
As shown in Figures 1 to 3, the invention provides a kind of Wi-Fi collocation method, comprise that step S1 is to step S3.
Step S1, the mode of operation of terminal equipment its Wi-Fi chip after startup is set to ap mode.Concrete, the mode of operation of the Wi-Fi chip support of terminal equipment has following four kinds conventionally:
(1) AP:access point pattern, a kind of equipment that wireless device is connected to a network, can be understood as wireless exchange board.
(2) STA:station pattern, customers of wireless devices end, must connect a upper AP could use.
(3) DIRECT:Wi-Fi is direct-connected, also claims p2p pattern.
(4) CONCURRENT: simultaneously support AP, two kinds of patterns of STA.
General Wi-Fi chip can be supported AP and these two kinds of mode of operations of STA, and the present embodiment utilizes AP and these two kinds of mode of operations of STA exactly, realizes, by the first or second client, terminal equipment is connected to Target Wireless router.
Optionally, described terminal equipment is network shooting machine equipment.
Step S2, the first client and described terminal equipment are set up after wireless connections, send SSID and password and the reset command of Target Wireless router to described terminal equipment.Concrete, described the first client refers to an application program that realizes terminal equipment and be connected to Target Wireless router, may operate on the equipment such as PC, mobile phone, PAD with Wi-Fi function.In this step, the first client, by all Wi-Fi signals of automatic search environment, can be divided into two classes by the signal searching, and a class is the SSID of terminal equipment; Another kind of is the SSID of wireless router, the SSID the inside of described wireless router comprises the SSID of the real wireless router connecting of terminal equipment needs, select the SSID of the terminal equipment that needs configuration and the SSID of the Target Wireless router that described terminal equipment need to really connect, SSID the first client by terminal equipment is connected to IPC automatically, confirming, after the password 2 times of Target Wireless router, to send SSID and password and the reset command of Target Wireless router to described terminal equipment.
In one embodiment of the invention, described the first client using the machine sequencing of described terminal equipment number as SSID and password and described terminal equipment set up wireless connections.For example, when described terminal equipment is network shooting machine equipment, web camera (IPC) is in the time of electrifying startup, the mode of operation of acquiescence Wi-Fi chip is set to ap mode, the SSID of web camera is set to IPC-[machine sequencing number], cipher mode is WPA2-PSK, and password is PWD-[machine sequencing number], described like this first client just can IPC-[machine sequencing number] and PWD-[machine sequencing number] set up wireless connections as SSID and password and described terminal equipment.
Step S3, after described terminal equipment is restarted, switches to STA pattern by the mode of operation of described Wi-Fi chip by described ap mode, and uses the described SSID that receives and password and described Target Wireless router to connect.Wherein, described Target Wireless router always works under ap mode.
In one embodiment of the invention, as to revise terminal equipment connect Target Wireless router password or terminal equipment is connected to other Target Wireless router, need to re-execute step S1 to step S3 with reset (Reset) terminal equipment, then from step 1 restart arrange.In addition, if terminal equipment and Target Wireless router connect, also can terminal equipment be connected to other Target Wireless router by following step S4~step S5, concrete, after above-mentioned steps S3, also can comprise:
Step S4, after one second client and described Target Wireless router connect, sends SSID and the password of other Target Wireless router to described terminal equipment by Web mode.Concrete, described the second client is the client in order to connect with described Target Wireless router, and described the first client also can be used as the second client and uses after connecting with described Target Wireless router.
Step S5, described terminal equipment uses the SSID of other Target Wireless router and password and other Target Wireless router to connect.Wherein, described other Target Wireless router always works under ap mode.
Optionally, described the first client and the second client are windows, Android or IOS system, and the first client described in the present embodiment and the second client always work under STA pattern.
Sequential chart has illustrated above-mentioned steps more clearly as shown in Figure 3, specifically comprises following process:
1, the SSID of the first client search terminal equipment;
2, terminal equipment, in ap mode, returns to its SSID;
3, the SSID of the first client search Target Wireless router;
4, Target Wireless router returns to its SSID;
5, the first client and terminal equipment are set up after wireless connections, send SSID and password and the reset command of Target Wireless router to described terminal equipment;
6, after restarting terminal device, switch to STA pattern, and use the described SSID that receives and password and described Target Wireless router to connect;
7, Target Wireless router returns to the successful information of access;
8, the password of Target Wireless router connecting as revised terminal equipment, needs reconfiguring equipment, then repeats 1~7 process;
9 if be connected to other Target Wireless router by terminal equipment, and SSID and the password that can send other Target Wireless router to described terminal equipment by Web mode are realized, and also 1~7 process realizes again.
To sum up, the present embodiment can utilize the multiple-working mode of Wi-Fi chip on terminal equipment itself, by the first or second client, control terminal and Target Wireless router connect wirelessly, thereby effectively dwindle the volume of terminal equipment, without the control desk and the wireline interface that are designed for configurating terminal device Wi-Fi access on terminal equipment, than WPS mode, there is better versatility.
Embodiment bis-
As shown in Figures 2 and 4, the present invention also provides another kind of Wi-Fi configuration-system, comprises network shooting machine equipment 2(IP Camera), the first client 1 and Target Wireless router three.
Network shooting machine equipment 2, described network shooting machine equipment comprises mode switching unit 21, linkage unit 22 and video acquisition transmitting element 23.
Wherein, described mode switching unit 21 is set to ap mode for the mode of operation of its Wi-Fi chip after startup, and after the reset command of receiving the first client is restarted, the mode of operation of described Wi-Fi chip is switched to STA pattern by described ap mode;
Described linkage unit 22, for switching to after STA pattern, use from the first client to the log-on message of Target Wireless router set up wireless connections to Target Wireless router solicitation, optional, described log-on message is SSID and the password of Target Wireless router;
Described structured video data transmitting unit 23, for gathering video data, and sends described video data to described Target Wireless router setting up after described wireless connections.
The first client 1, for setting up after wireless connections with the linkage unit 22 of described network shooting machine equipment 2, sends described SSID and password and the reset command of Target Wireless router three to described network shooting machine equipment 2.
In one embodiment of the invention, described the first client 1 using the machine sequencing of described network shooting machine equipment No. 2 as SSID and password and described terminal equipment set up wireless connections.
Target Wireless router three, the password of receiving from described network shooting machine equipment 2 for verification, for correct, is set up wireless connections with described network shooting machine equipment 2.
In one embodiment of the invention, described system also comprises one second client, for after connecting with described Target Wireless router three, send SSID and the password of other Target Wireless router to the linkage unit 22 of described network shooting machine equipment 2 by Web mode;
The linkage unit 22 of described terminal equipment 2, also for using the SSID of other Target Wireless router and password and other Target Wireless router to connect.
Optionally, described the first client and the second client are windows, Android or IOS system.
Other detailed content of the present embodiment specifically can, referring to the appropriate section of embodiment mono-, not repeat them here.
In sum, the present invention is set to ap mode by the mode of operation of terminal equipment its Wi-Fi chip after startup, the first client and described terminal equipment are set up after wireless connections, send log-on message and the reset command of Target Wireless router to described terminal equipment, after described terminal equipment is restarted, the mode of operation of described Wi-Fi chip is switched to STA pattern by described ap mode, and use the described log-on message and the described Target Wireless router that receive to connect, can utilize the multiple-working mode of Wi-Fi chip on terminal equipment itself, by the first or second client, control terminal and Target Wireless router connect wirelessly, thereby effectively dwindle the volume of terminal equipment, without the control desk and the wireline interface that are designed for configurating terminal device Wi-Fi access on terminal equipment, than WPS mode, there is better versatility.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed system of embodiment, owing to corresponding to the method disclosed in Example, so description is fairly simple, relevant part illustrates referring to method part.
Professional can also further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software is clearly described, composition and the step of each example described according to function in the above description in general manner.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can realize described function with distinct methods to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to including these changes and modification.