The content of the invention
The embodiments of the invention provide a kind of Wi-Fi connection method, apparatus and communication system.Pass through preset described device
Wi-Fi LAN side channels so that Wi-Fi connection device does not occur in start or before and after waking up in the case of accessing focus change,
Can the communication connection established between UE and Wi-Fi access points without interruption.
In a first aspect, the invention provides a kind of Wi-Fi connection method, methods described includes:
Obtain the information of previous Wi-Fi WAN-sides channel;
According to the current Wi-Fi LAN sides channel of information configuration of the previous Wi-Fi WAN-sides channel;
Receive user equipment (UE) establishes connection request, is established by the current Wi-Fi LAN sides channel with the UE
Connection;
Currently available Wi-Fi access points are inquired about, and establishes and connects with the Wi-Fi access points;Wherein, described and Wi-
Fi access points, which are established, to be connected as connecting by current Wi-Fi WAN-sides channel;
When the current Wi-Fi WAN-sides channel is consistent with the current Wi-Fi LAN side channels, then storage is described ought
The information of preceding Wi-Fi WAN-sides channel.
In the first possible implementation, when the current Wi-Fi WAN-sides channel and the current Wi-Fi LAN
When side channel is inconsistent, then the current Wi-Fi LAN sides are reconfigured according to the information of the current Wi-Fi WAN-side channels
Channel, and re-establish and be connected with the UE;
Store the information of the current Wi-Fi WAN-side channels.
With reference to the possible implementation of the first of first aspect or first aspect, in second of possible implementation
In, the currently available Wi-Fi access points of the inquiry are simultaneously established to be connected and are specially with the Wi-Fi access points:Inquiry currently may be used
Wi-Fi access points, an available Wi-Fi access point is selected to establish connection by selection algorithm.
In second aspect, the invention provides a kind of Wi-Fi connection device, described device includes:
Memory module, for storing the information of Wi-Fi WAN-side channels;
Configuration module, the current Wi-Fi LAN sides channel of information configuration for being stored according to the memory module;
Communication module, connection request is established for receive user equipment (UE), pass through the current Wi-FiLAN sides channel
Establish and connect with the UE;And
Inquire about currently available Wi-Fi access points and established with the Wi-Fi access points and connected;Wherein, described and Wi-Fi
Access point, which is established, to be connected as connecting by current Wi-Fi WAN-sides channel;
Detection module, for detecting the one of the current Wi-Fi WAN-sides channel and the current Wi-Fi LAN side channels
Cause property.
In the first possible implementation, when detection module detects the current Wi-Fi WAN-sides channel and institute
State current Wi-Fi LAN sides channel it is inconsistent when, the configuration module is according to the information weights of the current Wi-Fi WAN-side channels
The current Wi-Fi LAN side channels are newly configured, re-establishes and is connected with UE to the communication module.
With reference to the possible implementation of the first of second aspect or second aspect, in second of possible implementation
In, the communication module is specifically used for inquiring about currently available Wi-Fi access points, available by selection algorithm selection one
Wi-Fi access points establish connection.
In the third aspect, present invention also offers a kind of Wi-Fi connection device, described device includes:
Network interface;
Processor;
Memory;
Application program of the physical store in the memory, the application program include can be used for make the processor and
The system performs the instruction of procedure below:
Obtain the information of previous Wi-Fi WAN-sides channel;
According to the current Wi-Fi LAN sides channel of information configuration of the previous Wi-Fi WAN-sides channel;
Receive user equipment (UE) establishes connection request, is established by the current Wi-Fi LAN sides channel with the UE
Connection;
Inquire about currently available Wi-Fi access points and established with the Wi-Fi access points and connected;Wherein, described and Wi-Fi
Access point, which is established, to be connected as connecting by current Wi-Fi WAN-sides channel;
When the current Wi-Fi WAN-sides channel is consistent with the current Wi-Fi LAN side channels, then storage is described ought
The information of preceding Wi-Fi WAN-sides channel.
In the first possible implementation, the application program also includes can be used for making the processor and the system
System performs the instruction of procedure below:
When the current Wi-Fi WAN-sides channel and the inconsistent current Wi-Fi LAN side channels, then according to
The information of current Wi-Fi WAN-side channels reconfigures the current Wi-Fi LAN side channels, and re-establishes company with the UE
Connect;
Store the information of the current Wi-Fi WAN-side channels.
In fourth aspect, present invention also offers a kind of communication system, the system includes:What above-mentioned second aspect provided
Wi-Fi connection device, user equipment (UE) and Wi-Fi access points.
Wi-Fi connection method, apparatus and communication system provided in an embodiment of the present invention, by being successfully connected according to previous
The preset described device of channel is used for the Wi-Fi LAN side channels currently connected so that Wi-Fi connection device is before start or wake-up
Do not occur afterwards in the case of accessing focus change, can the communication connection established between UE and Wi-Fi access points without interruption.
Embodiment
Below by drawings and examples, technical scheme is described in further detail.
Fig. 2 is the flow chart of Wi-Fi connection method provided in an embodiment of the present invention, as shown in Fig. 2 the present embodiment is included such as
Lower step:
Step 210, the information of previous Wi-Fi WAN-sides channel is obtained;
Specifically, after Wi-Fi connection device is started shooting or is waken up, above-mentioned Wi-Fi connection device first looks for being stored in
Channel information in present apparatus memory module, the channel information, which is that Wi-Fi connection device is previous, is successfully connected Wi-Fi access points
The information of the WAN-side channel of the information of channel, i.e. Wi-Fi connection device.
Step 220, according to the current Wi-Fi LAN sides channel of information configuration of the previous Wi-Fi WAN-sides channel;
Specifically, after the information of previous Wi-Fi WAN-sides channel is obtained, filled using the information configuration Wi-Fi connection
The LAN side channel put.In one example, the previous communication connection of Wi-Fi connection device is accessed by channel 6 and Wi-Fi
What point was connected, then channel 6 is used as previous Wi-Fi WAN-sides channel, and its information is recorded in a storage module.When this
After Wi-Fi connection device is opened, this information is obtained from memory module to configure current Wi-Fi LAN side channels, by Wi-
The WAN-side channel configuration of Fi attachment means is channel 6.
Step 230, receive user equipment (UE) establishes connection request, passes through the current Wi-Fi LAN sides channel and institute
State UE and establish connection;
Specifically, Wi-Fi connection device, such as can be mobile wireless router, the information of oneself is broadcasted first, the letter
Breath can include available channel, network identity(Service Set Identifier,SSID), peak transfer rate and maximum
Transmission unit etc..User equipment (UE), such as notebook, save and configured corresponding to the SSID of the Wi-Fi connection devices broadcasting
Information, when UE searches signal detection to when having available Wi-Fi connection device, just according to the priority set inside UE, to
Corresponding Wi-Fi connection device initiates to establish connection request.
The communication module of Wi-Fi connection device receive UE initiation connection request after, will by step 220
The current Wi-Fi LAN sides channel being configured is established downlink communication with UE and is connected.
Step 240, currently available Wi-Fi access points are inquired about, and establishes and connects with the Wi-Fi access points;Wherein, institute
State to establish with Wi-Fi access points and be connected as being connected by current Wi-Fi WAN-sides channel;
Specifically, Wi-Fi connection device initiates to inquire about currently available Wi-Fi access points, before current queries, Wi-
Fi attachment means once configured the Wi-Fi access points, thus preserved the configuration information of the Wi-Fi access points.When Wi-Fi connects
When connection device can find multiple Wi-Fi access points, an available Wi-Fi access point can be selected by selection algorithm
And initiate to connect.Wherein, selection algorithm can specifically include selecting Wi-Fi access points according to the first priority.
Wi-Fi access points can respond connection request after receiving the connection request of Wi-Fi connection device.Wi-Fi connection
Device is just established by Wi-Fi WAN-sides channel and Wi-Fi access points and communicated to connect.Wherein, Wi-Fi WAN-sides channel is basis
The channel information configuration of the Wi-Fi access points connected.
Step 250, when the current Wi-Fi WAN-sides channel with it is described currently Wi-Fi LAN side channels are consistent when, then deposit
Store up the information of the current Wi-Fi WAN-side channels.
Specifically, current Wi-Fi WAN-sides channel and current Wi-Fi are detected in the detection module of Wi-Fi connection device
The uniformity of LAN side channel.If current Wi-Fi WAN-sides channel is consistent with current Wi-Fi LAN sides channel, Wi-Fi
Without being reconfigured again, UE is built WAN-side channel by the communication connection between Wi-Fi connection device and Wi-Fi access points
It is vertical to complete.
The information of current Wi-Fi WAN-sides channel is stored, after establishing machine by cable on next Wi-Fi connection device or waking up,
Configure the Wi-Fi LAN side channels of next time.
Generally, when the last place to use of Wi-Fi connection device is identical with currently used place, that is to say, that when
When the Wi-Fi access points of Wi-Fi connection device last time access and what is be currently accessed are same access points, current Wi-Fi
WAN-side channel is exactly consistent with last Wi-Fi WAN-side channels, therefore is also with current Wi-Fi LAN side channels
Consistent.So in the case that before and after last time and this start access point change did not occurred for Wi-Fi connection device, by upper
The method can for stating step 210 to step 250 realizes the communication connection established between UE and Wi-Fi access points without interruption.
Previous embodiment illustrates the procedure for realizing Wi-Fi connection based on Wi-Fi connection device.Further,
Previous embodiment description realizes that the process of Wi-Fi connection method can be as shown in figure 3, Fig. 3 be reality provided in an embodiment of the present invention
The signaling diagram of existing Wi-Fi connection method.As shown in figure 3, specifically include following steps:
Step 301, according to the current Wi-Fi LAN sides channel of information configuration of previous Wi-Fi WAN-sides channel.
Specifically, after Wi-Fi connection device is started shooting or is waken up, Wi-Fi connection device first looks for being recorded in local
The information of previous Wi-Fi WAN-sides channel in memory module, after the information of previous Wi-Fi WAN-sides channel is obtained, profit
With the LAN side channel of the information configuration Wi-Fi connection device.
Step 302, user equipment (UE) initiates to establish connection request to Wi-Fi connection device.
Specifically, configuration information corresponding to the SSID of Wi-Fi connection devices broadcasting is saved in user equipment (UE), when UE is searched
Rope and when having detected available Wi-Fi connection device, just according to the priority set inside UE, to corresponding Wi-Fi connection
Device initiates connection.
Step 303, Wi-Fi connection device establishes successful connection with UE.
Specifically, after Wi-Fi connection device receives the connection request of UE initiations, will be by the Wi- that has been configured
LAN side channel and the UE of Fi attachment means establish downlink communication and are connected.
Step 304, Wi-Fi connection device is searched and with Wi-Fi access points and can initiate to connect.
Specifically, Wi-Fi connection device is scanned to Wi-Fi access points, finds available Wi-Fi access points and initiate
Connection, passes through the above-mentioned Wi-Fi access points of the WAN-side channel access of Wi-Fi connection device.Wi-Fi connection device connects currently
The Wi-Fi access points were configured before, preserved the configuration information of the Wi-Fi access points.
Step 305, Wi-Fi connection device detects its WAN-side channel and is in same channel with LAN side channel.
Specifically, the WAN-side channel (up channel of the detection module detection Wi-Fi connection device of Wi-Fi connection device)
With LAN side channel(Down channel)It is whether consistent.In the case where the change of Wi-Fi access points does not occur, Wi-Fi connection device
WAN-side channel and LAN side channel are in same channel, therefore Wi-Fi LAN sides channel the reason for will not being followed because of channel is again
Follow WAN-side channel to reconfigure, therefore the disconnecting between Wi-Fi connection device and UE will not be caused.
Step 306, Wi-Fi access points establish successful connection with Wi-Fi connection device.
Wi-Fi access points can respond connection request after receiving the connection request of Wi-Fi connection device, pass through the Wi-
The channel information configuration Wi-Fi WAN-side channels of Fi access points, so as to establish between Wi-Fi access points and Wi-Fi connection device
Communication connection.
Step 307, the Wi-Fi channels of this successful connection are recorded.
Specifically, store the information of current Wi-Fi WAN-sides channel, established by cable on next Wi-Fi connection device machine or
After wake-up, the Wi-Fi LAN side channels of next time are configured.
The Wi-Fi connection method that the above embodiment of the present invention provides, by the Wi-Fi WAN for recording successful connection each time
Survey channel, and after being started shooting or waken up preset next time with the Wi-Fi WAN-side channels of the record Wi-Fi connection device Wi-Fi
LAN side channel so that Wi-Fi connection device usage scenario do not change do not occur focus change in the case of, ensure
When turning back on or standby wakeup, the connection between UE and Wi-Fi communicators will not follow reason because of channel and in
It is disconnected, so as to realize the communication connection established between UE and Wi-Fi Hotspot of no interruption.
Fig. 4 is the flow chart for the Wi-Fi connection method that the embodiment of the present invention two provides, as shown in figure 4, the present embodiment includes
Following steps:
Step 410, the information of previous Wi-Fi WAN-sides channel is obtained;
Step 420, according to the current Wi-Fi LAN sides channel of information configuration of the previous Wi-Fi WAN-sides channel;
Step 430, receive user equipment (UE) establishes connection request, passes through the current Wi-Fi LAN sides channel and institute
State UE and establish connection;
Step 440, currently available Wi-Fi access points are inquired about, and establishes and connects with the Wi-Fi access points;Wherein, institute
State to establish with Wi-Fi access points and be connected as being connected by current Wi-Fi WAN-sides channel;
Above-mentioned steps 410 to 440 correspond with the step 210 in the embodiment of the present invention one to 240, no longer superfluous herein
State.
Step 450, judge whether the current Wi-Fi WAN-sides channel and the current Wi-Fi LAN sides channel are consistent;
Specifically, when current Wi-Fi WAN-sides channel and current Wi-Fi LAN sides channel are consistent, step is performed
470;
When current Wi-Fi WAN-sides channel and current Wi-Fi LAN sides channel are inconsistent, step 460 and 470 is performed.
Step 460, the current Wi-FiLAN sides letter is reconfigured according to the information of the current Wi-Fi WAN-side channels
Road, and re-establish and be connected with the UE;
Specifically, if current Wi-Fi WAN-sides channel and current Wi-Fi LAN sides channel are inconsistent, that is, hair
Focus change is given birth to, then because the reason for channel follows, the communication channel between Wi-Fi connection device and UE can be according to Wi-
The WAN-side channel of Fi attachment means re-starts configuration, and Wi-Fi LAN sides channel can be configured as and current Wi-Fi WAN-sides
The consistent channel of channel.During Wi-Fi LAN side channels reconfigure, the communication between UE and Wi-Fi connection device
Connection can be interrupted once to be connected again again, and now UE is built by the communication connection between Wi-Fi connection device and Wi-Fi access points
It is vertical to complete.
Step 470, the information of current Wi-Fi WAN-sides channel is stored.
Specifically, store the information of current Wi-Fi WAN-sides channel, established by cable on next Wi-Fi connection device machine or
After wake-up, the Wi-Fi LAN side channels of next time are configured.
The Wi-Fi connection method that the embodiment of the present invention two provides, letter is surveyed by using the Wi-FiWAN of previous successful connection
The Wi-Fi LAN side channels of Wi-Fi connection device after road configures this start or waken up so that used in Wi-Fi connection device
Scene do not change do not occur Wi-Fi access points change in the case of, ensure that when turning back on or standby wakeup, UE
Connection between Wi-Fi communicators will not follow reason and interrupt because of channel, so as to realize no interruption establish UE with
Communication connection between Wi-Fi Hotspot.
Accordingly, the embodiment of the present invention three provides a kind of Wi-Fi connection device, to realize in the embodiment of the present invention one
Wi-Fi connection method.As shown in figure 5, described device includes:Memory module 510, configuration module 520, the and of communication module 530
Detection module 540.
Memory module 510, for storing the information of Wi-Fi WAN-side channels;
Configuration module 520, for the current Wi-Fi LAN sides channel of information configuration stored according to the memory module 510;
Communication module 530, connection request is established for receive user equipment (UE), pass through the current Wi-Fi LAN sides
Channel is established with the UE and connected;And for inquiring about currently available Wi-Fi access points and being established with the Wi-Fi access points
Connection;Wherein, described established with Wi-Fi access points is connected as being connected by current Wi-Fi WAN-sides channel;
Preferably, established with the Wi-Fi access points be connected can be by selection algorithm select an available Wi-Fi
Access point establishes connection.
Detection module 540, for detecting the current Wi-Fi WAN-sides channel and the current Wi-Fi LAN side channels
Uniformity.
After above-mentioned Wi-Fi connection device is started shooting or reawaked, configuration module 520 is first from memory module 510
The middle information for reading the previous Wi-Fi WAN-side channels for being successfully connected Wi-Fi access points, and it is current using above- mentioned information configuration
Wi-Fi LAN side channels.Communication module 530 receives the connection request of user equipment (UE) and response, is configured using configuration module 520
Wi-Fi LAN sides channel and UE establish and connect, the connection setup being achieved between Wi-Fi connection device and UE.Communicate mould
Block 530 inquires about available Wi-Fi access points and initiates to establish connection request, Wi-Fi access point respond requests, is achieved in Wi-
The communication connection that Fi attachment means pass through Wi-Fi WAN-sides channel and Wi-Fi access points.
Detection module 540 performs the consistency detection of current Wi-Fi WAN-sides channel and current Wi-Fi LAN sides channel.
When current Wi-Fi WAN-sides channel is consistent with current Wi-Fi LAN sides channel, memory module 510 stores current Wi-Fi WAN
The information of side channel;When current Wi-Fi WAN-sides channel and current Wi-Fi LAN sides channel are inconsistent, the meeting of configuration module 520
Follow and abide by the principle that channel follows the LAN side channel of Wi-Fi connection device is re-started into configuration, Wi-Fi LAN sides channel can quilt
It is configured to the channel consistent with current Wi-Fi WAN-sides channel.During Wi-Fi LAN side channels reconfigure, communication
Module 530 can interrupt the once communication connection between UE, then connect again, and now UE passes through Wi-Fi connection device and Wi-Fi
Communication connection between access point, which is established, to be completed, and memory module 510 stores the information of current Wi-Fi WAN-sides channel.
Using Wi-Fi connection device provided in an embodiment of the present invention, by recording previous successful connection in a storage module
Wi-Fi WAN survey channel information, and using configuration module configure this start or wake up after Wi-Fi connection device Wi-Fi
LAN side channel so that Wi-Fi connection device usage scenario do not change do not occur focus change in the case of, ensure
When turning back on or standby wakeup, the connection between UE and Wi-Fi communicators will not follow reason because of channel and in
It is disconnected, so as to realize the communication connection established between UE and Wi-Fi Hotspot of no interruption.
In addition, Wi-Fi connection device provided in an embodiment of the present invention can also be realized in the following way.As shown in fig. 6, institute
Stating device includes:Network interface 610, processor 620 and memory 630.System bus 640 is used to connect network interface 610, place
Manage device 620 and memory 630.
Network interface 610 is used to interact and communicate with user equipment (UE) and Wi-Fi access points.
Memory 630 can be permanent memory, such as hard disk drive and flash memory, have software mould in memory 630
Block and device driver.Software module is able to carry out the various functions module of the above method of the present invention;Device driver can
To be network and interface drive program.
On startup, these component softwares are loaded into memory 630, are then performed by processor 620.Work as processor
620 perform memories 630 in component software when, can implement function such as:
Obtain the information of previous Wi-Fi WAN-sides channel;
According to the current Wi-Fi LAN sides channel of information configuration of the previous Wi-Fi WAN-sides channel;
Receive user equipment (UE) establishes connection request, is established by the current Wi-Fi LAN sides channel with the UE
Connection;
Inquire about currently available Wi-Fi access points and established with the Wi-Fi access points and connected;Wherein, described and Wi-Fi
Access point, which is established, to be connected as connecting by current Wi-Fi WAN-sides channel;
When the current Wi-Fi WAN-sides channel is consistent with the current Wi-Fi LAN side channels, then storage is described ought
The information of preceding Wi-Fi WAN-sides channel.
Further, when the current Wi-Fi WAN-sides channel and the inconsistent current Wi-Fi LAN side channels,
The current Wi-FiLAN sides channel is then reconfigured according to the information of the current Wi-Fi WAN-side channels, and with the UE
Re-establish connection;And store the information of the current Wi-Fi WAN-side channels.
By applying Wi-Fi connection device provided in an embodiment of the present invention, by the Wi-Fi for recording successful connection each time
WAN surveys channel, and after being started shooting or waken up preset next time with the Wi-Fi WAN-side channels of the record Wi-Fi connection device Wi-Fi
LAN side channel so that Wi-Fi connection device usage scenario do not change do not occur focus change in the case of, ensure
When turning back on or standby wakeup, the connection between UE and Wi-Fi communicators will not follow reason because of channel and in
It is disconnected, so as to realize the communication connection established between UE and Wi-Fi Hotspot of no interruption.
Professional should further appreciate that, each example described with reference to the embodiments described herein
Unit and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, it is hard in order to clearly demonstrate
The interchangeability of part and software, the composition and step of each example are generally described according to function in the above description.
These functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.
Professional and technical personnel can realize described function using distinct methods to each specific application, but this realization
It is it is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm
Software module, or the two combination are implemented.Software module can be placed in random access memory(RAM), internal memory, read-only storage
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described embodiment, the purpose of the present invention, technical scheme and beneficial effect are carried out further
Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., all should include
Within protection scope of the present invention.