Embodiment
In the following detailed description, a large amount of specific detail is proposed, so that provide thorough understanding of the present invention.But, person of skill in the art will appreciate that, also can implement the present invention even without these specific detail.In other cases, do not describe well-known method, process, assembly and circuit in detail, in order to avoid affect the understanding of the present invention.
Term as used herein " AP " is wireless access points (Access Point), is defined as that to have station (STA) functional and provide any entity of the access to distribution services for the wireless medium (WM) of the STA that is associated;
Term as used herein " Soft-AP " is defined as the accessing points (Soft-Access Point) of the WLAN (wireless local area network) of the 2nd Wi-Fi terminal foundation with Wi-Fi function;
Term as used herein " Soft-AP pattern " is defined as hotspot, and being specially the 2nd Wi-Fi terminal with Wi-Fi function provides Soft-AP to be connected with it with the intelligent terminal allowing other and have Wi-Fi function, and the state of data interaction between allowing;
Term as used herein " STA mode " is defined as the 2nd Wi-Fi terminal with Wi-Fi function and is connected with AP to allow the 2nd Wi-Fi terminal as STA, and the state of data interaction between allowing;
" virtual wi-fi unit " used herein is defined as virtual network interface card (VNIC), and the equipment be associated with virtual network interface card.
It is used herein that " network interface unit (NIC) is defined as the equipment that network interface unit itself and network interface unit are associated.
The block diagram of the terminal 100 for sending Wi-Fi configuration information according to some illustrative embodiment is shown referring now to Fig. 1, Fig. 1.
As shown in Figure 1, in some illustrative embodiment, one Wi-Fi terminal 100 is configured with multiple virtual wi-fi unit, this terminal can comprise: the partial virtual Wi-Fi unit controlled in described multiple virtual wi-fi unit sends the sending module (such as sending module 102) of configuration information to the 2nd Wi-Fi terminal and controls above-mentioned partial virtual Wi-Fi unit in the process of the 2nd Wi-Fi terminal transmission configuration information at described sending module, control at least one virtual wi-fi unit keep with wireless network between set up connection at wire module, (such as at wire module 103), wherein, " part " in the partial virtual Wi-Fi unit in described multiple virtual wi-fi unit is construed as one or more, but does not comprise all, such as: a Wi-Fi terminal configuration has m virtual wi-fi unit, be respectively first to m, first sends configuration information to n-th (1≤n < m) individual virtual wi-fi unit to described 2nd Wi-Fi terminal, and at least one the virtual wi-fi unit in (n+1)th to m virtual wi-fi unit keeps the connection of having set up between wireless network.
In some illustrative embodiment, be the network configuration information for the 2nd Wi-Fi terminal access wireless network or Wi-Fi configuration information in configuration information.
In some illustrative embodiment, terminal 100 is defined as the intelligent terminal with Wi-Fi function, such as PC, desktop computer, mobile computer, laptop computer, notebook, flat computer (tablet computer), server computer, handheld computer, hand-held device, PDA device (personal digital assistant), hand-held PDA device, plate carries device, the outer device of plate, mixing arrangement (such as by cellular telephone functionality and PDA device functional combination), consumption device, car-mounted device, non-car-mounted device, move or mancarried device, non-moving or non-portable device, cell phone, PCS device (person-to-person communication service unit), the PDA device of combining wireless communicator, move or Portable GPS device (GPS device), DVB device (digital television broadcasting device), less calculation element, non-desktop computer, " the less performance of size is higher " (CSLL) device, super mobile device (UMD), super mobile PC (UMPC), mobile Internet device (MID), " Origami " device or calculation element, support the device of dynamic composition meter (Dynamically Composable Computing, DCC), or miscellaneous equipment.
In some illustrative embodiment, wireless network 110 can operate according to the standard/of IEEE802.11a or the standard/of the standard/of IEEE802.11b or the standard/of IEEE802.11g or IEEE802.11n or the standard of IEEE802.11ac.
In some illustrative embodiment, a Wi-Fi terminal also can comprise: the configuration module (such as configuration module 101) configuring multiple virtual wi-fi unit.
In some illustrative embodiment, configuration module 101 comprises: the configuration submodule (such as configuring submodule 1014) of multiple virtual wi-fi unit VNIC that the network interface unit NIC based on terminal 100 configures, creates the port submodule (such as port submodule 1011) of multiple different MAC Address port; Each VNIC in multiple is associated submodule (such as associating submodule 1012) one to one with a MAC Address port of port submodule; And to the driven element module (such as driven element module 1013) that association submodule provides Wi-Fi equipment to drive, the Wi-Fi equipment that driven element module provides drives the connection between multiplexed VNIC and NIC to allow direct communication between VNIC and NIC.
In some illustrative embodiment, a MAC Address associated with VNIC is allowed to be the MAC Address port of the network interface unit of terminal 100.
In some illustrative embodiment, a Wi-Fi terminal 100 also comprises: set up the connection between the 2nd Wi-Fi terminal 200 being arranged to Soft-AP pattern, and trigger sending module set up module (such as setting up module 105);
In some illustrative embodiment, the configuration information that sending module controls to send to the 2nd Wi-Fi terminal comprises: the password of wireless network; Such as, for when a Wi-Fi terminal searching to the quantity of wireless network be only one.
Wait for that the 2nd Wi-Fi terminal adopts the title of the wireless network searched, and the password access wireless network of the wireless network received.
In some illustrative embodiment, sending module controls network or Wi-Fi configuration information in the configuration information sent to the 2nd Wi-Fi terminal and comprises: the title of wireless network and password; Such as, for when a Wi-Fi terminal searching to the quantity of wireless network be multiple, to guarantee that the 2nd Wi-Fi terminal adopts the title of wireless network and password access without protecting gauze (this wireless network is the wireless network keeping being connected with a Wi-Fi terminal).
In some illustrative embodiment, a Wi-Fi terminal also can comprise: control described partial virtual Wi-Fi unit sends address sending module (such as address sending module 106) from the IP address of a described Wi-Fi terminal to described 2nd Wi-Fi terminal;
In some illustrative embodiment, one Wi-Fi terminal 100 also comprises: after the 2nd Wi-Fi terminal adopts configuration information access wireless network, receive the receiver module (such as receiver module 104) of the acknowledge message of replying according to the IP address of terminal 100 from the 2nd Wi-Fi terminal;
In some illustrative embodiment, a Wi-Fi terminal also can comprise: control to keep the virtual wi-fi unit be connected with described wireless network by being connected the configuration information receiver module (such as configuration information receiver module 107) obtaining described configuration information with described wireless network.
The block diagram of the terminal 200 for receiving Wi-Fi configuration information according to some illustrative embodiment is schematically illustrated referring now to Fig. 2, Fig. 2;
As shown in Figure 2, in some illustrative embodiment, 2nd Wi-Fi terminal 200 can comprise: keep in the connection procedure with wireless network at least one the virtual wi-fi unit of the Wi-Fi terminal sending configuration information, receives the receiver module (such as receiver module 201) of the configuration information that at least one the virtual wi-fi unit in a described Wi-Fi terminal sends;
In some illustrative embodiment, the 2nd Wi-Fi terminal 200 for having the intelligent electric appliance of Wi-Fi function, such as: Wi-Fi household electrical appliances, PC, desktop computer, mobile computer, laptop computer, notebook, flat computer (tablet computer), server computer, handheld computer, hand-held device, PDA device (personal digital assistant), hand-held PDA device, plate carries device, the outer device of plate, mixing arrangement (such as by cellular telephone functionality and PDA device functional combination), consumption device, car-mounted device, non-car-mounted device, move or mancarried device, non-moving or non-portable device, cell phone, PCS device (person-to-person communication service unit), the PDA device of combining wireless communicator, move or Portable GPS device (GPS device), DVB device (digital television broadcasting device), less calculation element, non-desktop computer, " the less performance of size is higher " (CSLL) device, super mobile device (UMD), super mobile PC (UMPC), mobile Internet device (MID), " Origami " device or calculation element, support the device of dynamic composition meter (Dynamically Composable Computing, DCC), or miscellaneous equipment.Wherein, Wi-Fi household electrical appliances such as: Wi-Fi air-conditioning, Wi-Fi refrigerator, Wi-Fi TV, Wi-Fi washing machine, Wi-Fi video disc player, Wi-Fi light fixture or miscellaneous equipment.
Receiver module 201 comprises: under Soft-AP pattern, sets up the Soft-AP module (such as Soft-AP module 2011) of the connection between a Wi-Fi terminal; And receive the reception submodule (such as receiving submodule 2012) of the configuration information for its access wireless network that a Wi-Fi terminal sends;
2nd Wi-Fi terminal 200, under Soft-AP pattern, creates the Soft-AP of WLAN (wireless local area network) and this WLAN (wireless local area network) automatically, is connected by connection Soft-AP and the 2nd Wi-Fi terminal to allow other terminal.
2nd Wi-Fi terminal 200 also comprises: after reception submodule receives configuration information, the 2nd Wi-Fi terminal is switched to STA mode from Soft-AP pattern, adopts SSID and KEY of wireless network to access the mixed-media network modules mixed-media (such as mixed-media network modules mixed-media 202) of wireless network.
In some illustrative embodiment, the 2nd Wi-Fi terminal obtains the title of wireless network by the mode of automatic search.The configuration information that receiver module 201 receives comprises: the KEY of wireless network; 2nd Wi-Fi terminal accesses wireless network by the password of the wireless network title searched and the wireless network received.Such as, when being only one for the quantity of the wireless network of (in the 2nd Wi-Fi terminal searching range of signal) near the 2nd Wi-Fi terminal.Or to mate one by one with the password of the wireless network received with the title of the wireless network searched and access described wireless network, such as, for being multiple for the quantity of the wireless network in the 2nd Wi-Fi terminal.
In some illustrative embodiment, the configuration information that receiver module 201 receives comprises: SSID and KEY of wireless network, and the 2nd Wi-Fi terminal is by the wireless network title that receives and password access wireless network.Such as, for being multiple for the quantity of the wireless network in the 2nd Wi-Fi terminal.
In some illustrative embodiment, the receiver module of the 2nd Wi-Fi terminal also can receive the IP address of a Wi-Fi terminal;
2nd Wi-Fi terminal 200 also can comprise: after the 2nd Wi-Fi terminal access wireless network, send the feedback module (such as feedback module 203) of acknowledge message according to the IP address of a Wi-Fi terminal to a Wi-Fi terminal.Wherein, this acknowledge message is for accessing wireless network to Wi-Fi terminal notification a 2nd Wi-Fi terminal.Or when not accessing wireless network within the 2nd Wi-Fi terminal fixed time, this feedback module sends failed message according to the IP address of a Wi-Fi terminal to a Wi-Fi terminal.Wherein, this failed message is for not accessing wireless network to Wi-Fi terminal notification a 2nd Wi-Fi terminal.
The flow chart of the method for sending Wi-Fi configuration information according to some illustrative embodiment is schematically illustrated referring now to Fig. 3, Fig. 3;
As shown in Figure 3, in some illustrative embodiment, send the method for Wi-Fi configuration information, for a Wi-Fi terminal 100, wherein, a Wi-Fi terminal be configured with multiple virtual wi-fi unit,
Wherein at least one virtual wi-fi unit is preserved by the configuration information accessed by being connected with AP;
Such as, X virtual wi-fi unit is configured with in a Wi-Fi terminal 100; N(1≤n < X is there is in X virtual wi-fi unit) individual virtual wi-fi unit being used for being connected with AP, preserving by connecting accessed configuration information with AP at least one the virtual wi-fi unit in n virtual wi-fi unit.Configuration information is the network configuration information or the Wi-Fi configuration information that access wireless network for the 2nd Wi-Fi terminal.
Said method comprises:
While the connection that S11, maintenance virtual wi-fi unit (i.e. the current virtual wi-fi unit be connected with AP) and AP have set up, at least one the virtual wi-fi unit in other virtual wi-fi unit connects with the 2nd Wi-Fi terminal be arranged under Soft-AP pattern;
Such as, except keeping except n virtual wi-fi unit of the connection of having set up with AP, all the other X subtract at least one virtual wi-fi unit in n virtual wifi unit by connecting with the 2nd Wi-Fi terminal be arranged under Soft-AP pattern;
The virtual wi-fi unit that S12, above-mentioned at least one and described 2nd Wi-Fi terminal have connected sends the configuration information for accessing wireless network to the 2nd Wi-Fi terminal, and described configuration information is that the virtual wi-fi unit connected from described and described 2nd Wi-Fi terminal gets from the virtual wi-fi unit preserving this configuration information.
As shown in Figure 4, in some illustrative embodiment, the multiple virtual wi-fi unit of a Wi-Fi terminal configuration, specifically comprises:
S111, configure multiple virtual wi-fi unit VNIC based on the network interface unit NIC of a Wi-Fi terminal 100;
S112, create multiple different MAC Address port;
An each VNIC and MAC Address port one_to_one corresponding;
S113, provide Wi-Fi equipment to drive, Wi-Fi equipment drives the connection between multiplexed VNIC and NIC to allow direct communication between VNIC and NIC.
In some illustrative embodiment, configuration information comprises: the password KEY of wireless network; Or SSID and KEY of wireless network.
In some illustrative enforcements, the VNIC be connected with the second terminal under Soft-Ap pattern sends the IP address of a Wi-Fi terminal to the 2nd Wi-Fi terminal.The method also comprises:
S13, receive the acknowledge message of replying according to the IP address of a Wi-Fi terminal from the 2nd Wi-Fi terminal, to confirm that the 2nd Wi-Fi terminal has accessed described wireless network, or receive the failed message of replying according to the IP address of a Wi-Fi terminal from the 2nd Wi-Fi terminal, to confirm that the 2nd Wi-Fi terminal does not access described wireless network.
The flow chart of the method for receiving Wi-Fi configuration information according to some illustrative embodiment is schematically illustrated referring now to Fig. 5, Fig. 5;
As shown in Figure 5, in some illustrative embodiment, for sending the method for Wi-Fi configuration information, for the 2nd Wi-Fi terminal 200, flow process comprises:
The configuration information that S22, the partial virtual Wi-Fi unit receiving a described Wi-Fi terminal send.
In some illustrative embodiment, the 2nd Wi-Fi terminal also comprises before receiving configuration information:
S21, in Soft-AP pattern, and to connect between the partial virtual unit of a Wi-Fi terminal.
In some illustrative embodiment, configuration information comprises: the KEY of wireless network; The method also comprises:
Wireless network near 2nd Wi-Fi terminal searching, obtains the title of wireless network; Or in configuration information, network or Wi-Fi configuration information comprise: SSID and KEY of wireless network;
S23, receive configuration information after, be switched to STA mode from Soft-AP pattern, adopt SSID and KEY that obtain to access wireless network.
In some illustrative embodiment, the 2nd Wi-Fi terminal also can receive the IP address of a Wi-Fi terminal; The method also comprises:
S24, access wireless network after, according to a Wi-Fi terminal IP address to described one Wi-Fi terminal send acknowledge message, access wireless network to Wi-Fi terminal notification a 2nd Wi-Fi terminal, or,
When not accessing wireless network within the 2nd Wi-Fi terminal fixed time, send failed message according to the IP address of a Wi-Fi terminal to a described Wi-Fi terminal, do not access described wireless network to Wi-Fi terminal notification a 2nd Wi-Fi terminal.
The flow chart of the method for the configuration Wi-Fi network according to some illustrative embodiment is schematically illustrated referring now to Fig. 6, Fig. 6;
As shown in Figure 6, in some illustrative embodiment, the method for configuration Wi-Fi network, for configuring one or more 2nd Wi-Fi terminal, flow process comprises:
As follows by the process of first Wi-Fi equipment Remote configuration second Wi-Fi equipment with Wi-Fi virtual unit:
S31, a Wi-Fi terminal are connected with AP by the first virtual wi-fi unit, obtain the configuration information of wireless network;
Under S32, the state that is connected with AP at maintenance first virtual wi-fi unit, a Wi-Fi terminal is connected with the 2nd Wi-Fi terminal under Soft-AP pattern by the second virtual wi-fi unit;
The configuration information of the wireless network that the first virtual wi-fi unit gets by S33, a Wi-Fi terminal sends to the 2nd Wi-Fi terminal by the second virtual wi-fi terminal;
After S34, the 2nd Wi-Fi terminal receive configuration information, be switched to STA mode, according to configuration information access wireless network;
In some illustrative embodiment, the network in configuration information or Wi-Fi configuration information comprise the password of wireless network, and the method also comprises:
Wireless network near 2nd Wi-Fi terminal searching, obtains the title of wireless network; Or,
Configuration information comprises title and the password of wireless network.
In some illustrative embodiment, the virtual wi-fi unit be connected with the 2nd Wi-Fi terminal sends the IP address of a Wi-Fi terminal to the 2nd Wi-Fi terminal;
S35, the 2nd Wi-Fi terminal are after access wireless network, and the IP address according to the Wi-Fi terminal obtained sends configure-ack message; Or do not access wireless network in the 2nd Wi-Fi terminal at the appointed time scope, the IP address according to the Wi-Fi terminal obtained sends failed message.
In some illustrative embodiment, the method also can comprise:
S36, a Wi-Fi terminal receive acknowledge message or the failed message of the 2nd Wi-Fi terminal transmission.
What the one Wi-Fi terminal received is that after acknowledge message, under the operation of user, a Wi-Fi terminal can also control the operating state of the 2nd Wi-Fi terminal in a wireless network by application program.
The explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.