CN106376042B - A kind of switching method and device of WiFi access point - Google Patents
A kind of switching method and device of WiFi access point Download PDFInfo
- Publication number
- CN106376042B CN106376042B CN201510438390.5A CN201510438390A CN106376042B CN 106376042 B CN106376042 B CN 106376042B CN 201510438390 A CN201510438390 A CN 201510438390A CN 106376042 B CN106376042 B CN 106376042B
- Authority
- CN
- China
- Prior art keywords
- access point
- wifi access
- terminal
- wifi
- target
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000012545 processing Methods 0.000 claims description 22
- 238000012544 monitoring process Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000004913 activation Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 229910001369 Brass Inorganic materials 0.000 description 2
- 239000010951 brass Substances 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/08—Reselecting an access point
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种WiFi接入点的切换方法,该方法包括:选择待接入的WiFi接入点,将选出的WiFi接入点作为终端的目标WiFi接入点,接入目标WiFi接入点;将目标WiFi接入点锁定为终端的WiFi接入点;在终端满足预设切换条件时,解除已锁定的终端的WiFi接入点,重新选择待接入的WiFi接入点。本发明还公开了一种WiFi接入点的切换装置。采用本发明的方法及装置,可实现使得终端可以正常地使用网络,提高用户体验度。
The invention discloses a switching method of a WiFi access point. The method includes: selecting a WiFi access point to be accessed, using the selected WiFi access point as a target WiFi access point of a terminal, and accessing the target WiFi access point. access point; lock the target WiFi access point as the terminal's WiFi access point; when the terminal meets the preset switching conditions, unlock the locked terminal's WiFi access point, and reselect the WiFi access point to be accessed. The invention also discloses a switching device of the WiFi access point. By adopting the method and device of the present invention, the terminal can normally use the network and improve user experience.
Description
技术领域technical field
本发明涉及移动通信领域,尤其涉及一种WiFi接入点的切换方法及装置。The present invention relates to the field of mobile communication, in particular to a method and device for switching a WiFi access point.
背景技术Background technique
WiFi(Wireless Fidelity,无线保真)是一种可以将个人电脑、手持设备(如,Pad、手机)等终端以无线方式接入网络的技术,由WiFi联盟(WiFi Alliance)所持有。传统的WiFi接入点(AP,Access Point)的切换方式通常为,用户通过输入相应认证信息将终端接入相应的WiFi接入点,终端根据当前接收的各个WiFi接入点的WiFi信号强度值,决策是否进行WiFi漫游。所述WiFi漫游是指终端从当前已接入的WiFi接入点切换至其它WiFi接入点,从而使得终端可以通过WiFi接入点接入网络,进而使用户可以通过网络获取信息、娱乐或移动办公。WiFi (Wireless Fidelity, wireless fidelity) is a technology that can wirelessly connect terminals such as personal computers and handheld devices (eg, Pads, mobile phones) to a network, and is held by the WiFi Alliance (WiFi Alliance). The traditional switching method of WiFi access point (AP, Access Point) is usually, the user enters the corresponding authentication information to connect the terminal to the corresponding WiFi access point, and the terminal according to the currently received WiFi signal strength value of each WiFi access point to decide whether to perform WiFi roaming. The WiFi roaming refers to that the terminal switches from the currently accessed WiFi access point to other WiFi access points, so that the terminal can access the network through the WiFi access point, and then the user can obtain information, entertainment or move through the network. office.
上述WiFi漫游可以分为AC(Access Controller,接入控制器)内漫游和AC间漫游。AC内漫游是指终端WiFi漫游时先后接入的WiFi接入点与同一AC相连。例如,终端接入到WiFi AP1,WiFi AP1连接AC,该终端断开与WiFi AP1的连接,漫游到与同一AC相连的WiFiAP2上,该终端由接入WiFi AP1到接入WiFi AP2的过程即为AC内漫游。AC间漫游是指终端WiFi漫游时先后接入的WiFi接入点与不同AC相连。例如,终端接入到WiFi AP1,WiFi AP1连接AC1,该终端断开与WiFi AP1的连接,漫游到WiFi AP2,WiFi AP2连接到AC2,该终端由接入WiFi AP1到接入WiFi AP2的过程即为AC间漫游。AC内漫游对于终端来说属于无感知状态,不影响终端使用网络。而在发生AC间漫游时,如果预先不同步预漫游终端的信息,对于终端来说可能会经历断开网络、等待被动下线成功、重新进行登录认证的过程,从而使得终端无法正常地使用网络。The aforementioned WiFi roaming can be divided into roaming within an AC (Access Controller, access controller) and roaming between ACs. Roaming within an AC means that the WiFi access points accessed successively by the terminal during WiFi roaming are connected to the same AC. For example, a terminal connects to WiFi AP1, and WiFi AP1 connects to AC. The terminal disconnects from WiFi AP1 and roams to WiFi AP2 connected to the same AC. The process from connecting to WiFi AP1 to connecting to WiFi AP2 is as follows: Roaming within the AC. Roaming between ACs means that the WiFi access points accessed successively by the terminal during WiFi roaming are connected to different ACs. For example, a terminal connects to WiFi AP1, and WiFi AP1 connects to AC1. The terminal disconnects from WiFi AP1, roams to WiFi AP2, and WiFi AP2 connects to AC2. The process from connecting to WiFi AP1 to connecting to WiFi AP2 is as follows: Roaming between ACs. Roaming within an AC is an unaware state for the terminal and does not affect the terminal's use of the network. When inter-AC roaming occurs, if the information of the pre-roaming terminal is not synchronized in advance, the terminal may experience the process of disconnecting from the network, waiting for passive offline success, and re-login authentication, so that the terminal cannot use the network normally. .
为了避免终端发生AC间漫游后,经历断开网络、等待被动下线成功、重新进行登录认证的过程,相关技术提供了预先同步预漫游终端的信息的实现方式,主要是通过AC向BRAS(Broadband Remote Access Server,宽带接入服务器)上报预漫游终端信息,实现预漫游终端信息在BRAS和认证、授权、计费服务器上的同步,从而允许终端以VLAN(VirtualLocal Area Network,虚拟局域网)变化后的IP直接访问网络,使得终端无需经历上述重新登录认证的过程,正常地使用网络。但由于不同厂商的AC或BRAS所采用的私有协议不尽相同,AC只能向其接入的BRAS上报预漫游终端的信息,而无法预先同步该信息给其它的BRAS或者其它品牌厂商的AC,因此当终端发生AC间漫游,且终端漫游至其它的BRAS或者其它品牌厂商的AC下时,相关技术提供的实现方式仍然存在终端可能需经历断开网络、等待被动下线成功、重新进行登录认证的过程,从而使得终端无法正常地使用网络。In order to prevent the terminal from going through the process of disconnecting from the network, waiting for passive logout, and re-login authentication after the terminal roams between ACs, related technologies provide a method for pre-synchronizing the information of the pre-roaming terminal, mainly through the AC to the BRAS (Broadband Remote Access Server, broadband access server) reports pre-roaming terminal information, and realizes the synchronization of pre-roaming terminal information on the BRAS and authentication, authorization, and accounting servers, thereby allowing the terminal to use VLAN (VirtualLocal Area Network, virtual local area network) after changing IP directly accesses the network, so that the terminal does not need to go through the above-mentioned re-login authentication process, and can use the network normally. However, due to the different private protocols adopted by ACs or BRASs of different manufacturers, the AC can only report the pre-roaming terminal information to the BRAS it accesses, but cannot pre-synchronize the information to other BRASs or ACs of other brands. Therefore, when a terminal roams between ACs and the terminal roams to another BRAS or an AC of another brand manufacturer, the implementation methods provided by related technologies still have the possibility that the terminal may need to disconnect from the network, wait for the passive logout to succeed, and perform login authentication again process, so that the terminal cannot use the network normally.
综上所述,由于传统的WiFi接入点的切换方式,使得终端在可以通过已接入的WiFi接入点接入网络时,也可能会发生WiFi漫游,且由于在终端发生WiFi漫游时,终端需经历断开网络、等待被动下线成功、重新进行登录认证的过程,从而使得终端无法正常地使用网络,给用户带来不便,降低用户体验度。To sum up, due to the traditional switching method of WiFi access points, when the terminal can access the network through the already connected WiFi access point, WiFi roaming may also occur, and because when WiFi roaming occurs on the terminal, The terminal needs to go through the process of disconnecting from the network, waiting for the passive logout to succeed, and re-login authentication, so that the terminal cannot use the network normally, which brings inconvenience to the user and reduces the user experience.
发明内容Contents of the invention
有鉴于此,本发明的主要目的在于提供一种WiFi接入点的切换方法及装置,使得终端可以正常地使用网络。In view of this, the main purpose of the present invention is to provide a WiFi access point switching method and device, so that the terminal can use the network normally.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:
本发明公开了一种WiFi接入点的切换方法,包括:The invention discloses a switching method of a WiFi access point, comprising:
选择待接入的WiFi接入点,将选出的所述WiFi接入点作为终端的目标WiFi接入点,接入所述目标WiFi接入点;Selecting a WiFi access point to be accessed, using the selected WiFi access point as a target WiFi access point of the terminal, and accessing the target WiFi access point;
将所述目标WiFi接入点锁定为所述终端的WiFi接入点;locking the target WiFi access point as the terminal's WiFi access point;
在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择待接入的WiFi接入点。When the terminal meets the preset switching condition, the locked WiFi access point of the terminal is released, and the WiFi access point to be accessed is reselected.
进一步,所述将所述目标WiFi接入点锁定为所述终端的WiFi接入点,包括:Further, the locking the target WiFi access point as the terminal's WiFi access point includes:
接收所述终端所在环境下的WiFi接入点发送的报文;receiving a message sent by a WiFi access point in the environment where the terminal is located;
判断所述报文的发送方是否为所述目标WiFi接入点;judging whether the sender of the message is the target WiFi access point;
在所述报文的发送方不是所述目标WiFi接入点时,不对所述报文执行处理操作;When the sender of the message is not the target WiFi access point, no processing operation is performed on the message;
在所述报文的发送方是所述目标WiFi接入点时,对所述报文执行处理操作。When the sender of the message is the target WiFi access point, perform a processing operation on the message.
进一步,所述在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择所述待接入的WiFi接入点之前,所述方法还包括:Further, when the terminal meets the preset switching condition, unlocking the locked WiFi access point of the terminal, and before reselecting the WiFi access point to be accessed, the method further includes:
监测所述终端是否能接收到所述目标WiFi接入点的WiFi信号;Monitoring whether the terminal can receive the WiFi signal of the target WiFi access point;
在所述终端接收不到所述WiFi信号时,判断所述终端本次处于接收不到所述WiFi信号状态的时长是否超过预设时长;When the terminal fails to receive the WiFi signal, it is judged whether the duration of the terminal not being able to receive the WiFi signal exceeds a preset duration;
在所述时长超过所述预设时长时,确定所述终端满足预设切换条件。When the duration exceeds the preset duration, it is determined that the terminal satisfies a preset switching condition.
进一步,所述在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择所述待接入的WiFi接入点之前,所述方法还包括:Further, when the terminal meets the preset switching condition, unlocking the locked WiFi access point of the terminal, and before reselecting the WiFi access point to be accessed, the method further includes:
判断所述终端是否接收到下线指令;judging whether the terminal has received an offline instruction;
在所述终端接收到所述下线指令时,确定所述终端满足预设切换条件。When the terminal receives the offline instruction, it is determined that the terminal satisfies a preset switching condition.
进一步,所述在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择所述待接入的WiFi接入点,包括:Further, when the terminal meets the preset switching condition, unlocking the locked WiFi access point of the terminal, and reselecting the WiFi access point to be accessed includes:
在所述终端满足预设切换条件时,通过发送所述目标WiFi接入点的下线认证请求,将所述终端与所述目标WiFi接入点断开连接;When the terminal meets the preset switching condition, disconnecting the terminal from the target WiFi access point by sending an offline authentication request of the target WiFi access point;
接收所述终端所在环境下的WiFi接入点发送的报文,所述报文包括所述WiFi接入点的WiFi信号强度值;receiving a message sent by a WiFi access point in the environment where the terminal is located, where the message includes a WiFi signal strength value of the WiFi access point;
根据各个所述WiFi接入点的WiFi信号强度值,从各个所述WiFi接入点中选择所述待接入的WiFi接入点。The WiFi access point to be accessed is selected from each of the WiFi access points according to the WiFi signal strength value of each of the WiFi access points.
进一步,所述目标WiFi接入点包括车载WiFi接入点。Further, the target WiFi access point includes a vehicle WiFi access point.
本发明还公开了一种WiFi接入点的切换装置,包括:The invention also discloses a switching device of a WiFi access point, including:
选择模块,用于选择待接入的WiFi接入点,将选出的所述WiFi接入点作为终端的目标WiFi接入点,接入所述目标WiFi接入点;A selection module, configured to select a WiFi access point to be accessed, use the selected WiFi access point as a target WiFi access point of the terminal, and access the target WiFi access point;
锁定模块,用于将所述目标WiFi接入点锁定为所述终端的WiFi接入点;a locking module, configured to lock the target WiFi access point as the terminal's WiFi access point;
解除模块,用于在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择待接入的WiFi接入点。The release module is configured to release the locked WiFi access point of the terminal and reselect the WiFi access point to be accessed when the terminal meets the preset switching condition.
进一步,所述锁定模块,具体用于接收所述终端所在环境下的WiFi接入点发送的报文;判断所述报文的发送方是否为所述目标WiFi接入点;在所述报文的发送方不是所述目标WiFi接入点时,不对所述报文执行处理操作;在所述报文的发送方是所述目标WiFi接入点时,对所述报文执行处理操作。Further, the locking module is specifically configured to receive a message sent by a WiFi access point in the environment where the terminal is located; determine whether the sender of the message is the target WiFi access point; When the sender of the message is not the target WiFi access point, no processing operation is performed on the message; when the sender of the message is the target WiFi access point, a processing operation is performed on the message.
进一步,所述装置还包括:Further, the device also includes:
监测模块,用于在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择所述待接入的WiFi接入点之前,监测所述终端是否能接收到所述目标WiFi接入点的WiFi信号;A monitoring module, configured to unlock the locked WiFi access point of the terminal when the terminal meets the preset switching conditions, and monitor whether the terminal can receive the WiFi access point before reselecting the WiFi access point to be accessed WiFi signal to said target WiFi access point;
第一判断模块,用于在所述终端接收不到所述WiFi信号时,判断所述终端本次处于接收不到所述WiFi信号状态的时长是否超过预设时长;A first judging module, configured to judge whether the duration of the terminal not being able to receive the WiFi signal exceeds a preset duration when the terminal cannot receive the WiFi signal;
第一确定模块,用于在所述时长超过所述预设时长时,确定所述终端满足预设切换条件。The first determining module is configured to determine that the terminal satisfies a preset switching condition when the duration exceeds the preset duration.
进一步,所述装置还包括:Further, the device also includes:
第二判断模块,用于在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择所述待接入的WiFi接入点之前,判断所述终端是否接收到下线指令;The second judging module is configured to unlock the locked WiFi access point of the terminal when the terminal meets the preset switching condition, and judge whether the terminal is before reselecting the WiFi access point to be accessed A logout command is received;
第二确定模块,用于在所述终端接收到所述下线指令时,确定所述终端满足预设切换条件。The second determining module is configured to determine that the terminal satisfies a preset switching condition when the terminal receives the offline instruction.
进一步,所述解除模块,具体用于在所述终端满足预设切换条件时,通过发送所述目标WiFi接入点的下线认证请求,将所述终端与所述目标WiFi接入点断开连接;接收所述终端所在环境下的WiFi接入点发送的报文,所述报文包括所述WiFi接入点的WiFi信号强度值;根据各个所述WiFi接入点的WiFi信号强度值,从各个所述WiFi接入点中选择所述待接入的WiFi接入点。Further, the release module is specifically configured to disconnect the terminal from the target WiFi access point by sending an offline authentication request of the target WiFi access point when the terminal satisfies a preset switching condition Connecting; receiving a message sent by a WiFi access point in the environment where the terminal is located, the message including the WiFi signal strength value of the WiFi access point; according to the WiFi signal strength value of each of the WiFi access points, Selecting the WiFi access point to be accessed from each of the WiFi access points.
进一步,所述目标WiFi接入点包括车载WiFi接入点。Further, the target WiFi access point includes a vehicle WiFi access point.
本发明的WiFi接入点的切换方法及装置,终端通过选择待接入的WiFi接入点,将选出的WiFi接入点作为终端的目标WiFi接入点,在接入目标WiFi接入点后,将目标WiFi接入点锁定为终端的WiFi接入点,在终端满足预设切换条件时,解除已锁定的终端的WiFi接入点,重新选择待接入的WiFi接入点,实现在终端可以通过已接入的WiFi接入点接入网络时,防止终端发生WiFi漫游,在终端不能或不需通过已接入的WiFi接入点接入网络时,允许终端发生WiFi漫游,从而在终端可以通过已接入的WiFi接入点接入网络时,避免终端经历重新登录认证的过程,在终端不能或不需通过已接入的WiFi接入点接入网络时,使得终端可以从已接入的WiFi接入点切换至其它WiFi接入点,通过其它WiFi接入点接入网络,最终实现使得终端可以正常地使用网络,提高用户体验度。In the WiFi access point switching method and device of the present invention, the terminal selects the WiFi access point to be accessed, uses the selected WiFi access point as the target WiFi access point of the terminal, and accesses the target WiFi access point Finally, the target WiFi access point is locked as the terminal's WiFi access point, and when the terminal meets the preset switching conditions, the locked terminal's WiFi access point is released, and the WiFi access point to be accessed is reselected to realize When the terminal can access the network through the connected WiFi access point, prevent the terminal from WiFi roaming, and when the terminal cannot or does not need to access the network through the connected WiFi access point, allow the terminal to occur WiFi roaming, thereby When the terminal can access the network through the already connected WiFi access point, it avoids the terminal going through the process of re-login authentication, and when the terminal cannot or does not need to access the network through the already connected WiFi access point, it allows the terminal to access the network from the already connected WiFi access point. The connected WiFi access point is switched to another WiFi access point, and the other WiFi access point is used to access the network, so that the terminal can use the network normally and improve the user experience.
附图说明Description of drawings
图1为本发明WiFi接入点的切换方法的流程示意图;Fig. 1 is the schematic flow chart of the switching method of WiFi access point of the present invention;
图2为可能会发生AC间漫游的场景示意图;Figure 2 is a schematic diagram of a scenario where inter-AC roaming may occur;
图3为本发明WiFi接入点的切换装置的结构示意图;3 is a schematic structural diagram of a switching device of a WiFi access point in the present invention;
图4为本发明WiFi接入点的切换方法实施例的流程示意图;4 is a schematic flow diagram of an embodiment of a method for switching a WiFi access point according to the present invention;
1、A公交车;2、A车载WiFi接入点;3、无线基站;4、A接入控制器;5、B公交车;6、B车载WiFi接入点;7、B接入控制器;8、终端。1. A bus; 2. A vehicle WiFi access point; 3. Wireless base station; 4. A access controller; 5. B bus; 6. B vehicle WiFi access point; 7. B access controller ; 8. Terminal.
具体实施方式Detailed ways
本发明的基本思想是:终端选择待接入的WiFi接入点,将选出的WiFi接入点作为终端的目标WiFi接入点,接入目标WiFi接入点;终端将目标WiFi接入点锁定为终端的WiFi接入点;在终端满足预设切换条件时,终端解除已锁定的该终端的WiFi接入点,重新选择待接入的WiFi接入点。The basic idea of the present invention is: the terminal selects the WiFi access point to be accessed, uses the selected WiFi access point as the target WiFi access point of the terminal, and accesses the target WiFi access point; the terminal uses the target WiFi access point Locked as the terminal's WiFi access point; when the terminal meets the preset switching conditions, the terminal unlocks the locked WiFi access point of the terminal, and reselects the WiFi access point to be accessed.
下面结合附图和具体实施例,对本发明进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.
图1示出了本发明WiFi接入点的切换方法的流程,如图1所示,该方法包括:Fig. 1 shows the flow process of the switching method of WiFi access point of the present invention, as shown in Fig. 1, this method comprises:
步骤101:选择待接入的WiFi接入点,将选出的WiFi接入点作为终端的目标WiFi接入点,接入目标WiFi接入点。Step 101: Select a WiFi access point to be accessed, use the selected WiFi access point as a target WiFi access point of the terminal, and access the target WiFi access point.
需说明的是,在终端的WiFi开关未被开启的情况下,在本步骤101之前本发明的WiFi接入点的切换方法还包括,终端根据用户输入的WiFi开启指令开启终端的WiFi。It should be noted that, when the WiFi switch of the terminal is not turned on, before this step 101, the method for switching the WiFi access point of the present invention further includes that the terminal turns on the WiFi of the terminal according to the WiFi turning on command input by the user.
具体地,本步骤101的实现过程可以包括,终端接收终端所在环境下的WiFi接入点发送的报文,所述报文中包括WiFi接入点的SSID(Service Set Identifier,服务集标识)和WiFi信号强度值;终端根据各个WiFi接入点的WiFi信号强度值,从各个WiFi接入点中选择出WiFi信号强度值最大的WiFi接入点,将该WiFi信号强度值最大的WiFi接入点作为目标WiFi接入点;终端显示目标WiFi接入点的SSID;终端接收用户根据该SSID输入的待认证密码;终端向认证服务器发送携带有待认证密码的接入认证请求;认证服务器根据本地已存储的目标WiFi接入点的认证密码,对从终端接收的待认证密码进行认证,在该待认证密码通过认证时,向终端及目标WiFi接入点的接入控制器发送认证通过信息;目标WiFi接入点的接入控制器,从该认证通过信息中获得终端的标识信息及目标WiFi接入点的SSID,选择通过目标WiFi接入点为具有该标识信息的终端提供网络服务。这样,终端即可接入终端所在环境下的WiFi信号强度值最大的WiFi接入点,即目标WiFi接入点,从而使得终端可以通过目标WiFi接入点接入网络,以便于用户可以使用网络获取相应信息。Specifically, the implementation process of step 101 may include that the terminal receives a message sent by a WiFi access point in the environment where the terminal is located, and the message includes the SSID (Service Set Identifier, Service Set Identifier) of the WiFi access point and WiFi signal strength value; the terminal selects the WiFi access point with the largest WiFi signal strength value from each WiFi access point according to the WiFi signal strength value of each WiFi access point, and selects the WiFi access point with the largest WiFi signal strength value As the target WiFi access point; the terminal displays the SSID of the target WiFi access point; the terminal receives the password to be authenticated entered by the user according to the SSID; the terminal sends an access authentication request carrying the password to be authenticated to the authentication server; The authentication password of the target WiFi access point is used to authenticate the password to be authenticated received from the terminal. When the password to be authenticated is authenticated, the authentication pass information is sent to the terminal and the access controller of the target WiFi access point; the target WiFi The access controller of the access point obtains the identification information of the terminal and the SSID of the target WiFi access point from the authentication passing information, and selects the target WiFi access point to provide network services for the terminal with the identification information. In this way, the terminal can access the WiFi access point with the largest WiFi signal strength value in the environment where the terminal is located, that is, the target WiFi access point, so that the terminal can access the network through the target WiFi access point, so that the user can use the network Get the corresponding information.
需说明的是,上述所述实现过程可以通过客户端APP(Application,应用程序)完成。例如,在WiFi接入点覆盖的环境下,用户可以向终端输入WiFi开启指令,终端接收该WiFi开启指令,开启终端的WiFi,用户向终端输入启动客户端APP指令,终端接收该启动客户端APP指令,启动客户端APP。客户端APP执行下述过程:接收终端所在环境下的WiFi接入点发送的报文,所述报文中包括WiFi接入点的SSID和WiFi信号强度值;根据各个WiFi接入点的WiFi信号强度值,从各个WiFi接入点中选择出WiFi信号强度值最大的WiFi接入点,将该WiFi信号强度值最大的WiFi接入点作为目标WiFi接入点;在终端的屏幕上显示目标WiFi接入点的SSID;接收用户根据该SSID输入的待认证密码;向认证服务器发送携带有待认证密码的接入认证请求。认证服务器根据本地已存储的目标WiFi接入点的认证密码,对从终端接收的待认证密码进行认证,在该待认证密码通过认证时,向终端及目标WiFi接入点的接入控制器发送认证通过信息;目标WiFi接入点的接入控制器,从该认证通过信息中获得终端的标识信息及目标WiFi接入点的SSID,选择通过目标WiFi接入点为具有该标识信息的终端提供网络服务。It should be noted that, the above-mentioned implementation process may be completed through a client APP (Application, application program). For example, in an environment covered by a WiFi access point, the user can input a WiFi start command to the terminal, the terminal receives the WiFi start command, turns on the terminal's WiFi, the user inputs the start client APP command to the terminal, and the terminal receives the start client APP command to start the client APP. The client APP performs the following process: receiving the message sent by the WiFi access point in the environment where the terminal is located, the message includes the SSID and WiFi signal strength value of the WiFi access point; according to the WiFi signal strength value of each WiFi access point Strength value, select the WiFi access point with the largest WiFi signal strength value from each WiFi access point, and use the WiFi access point with the largest WiFi signal strength value as the target WiFi access point; display the target WiFi on the screen of the terminal The SSID of the access point; receiving the password to be authenticated entered by the user according to the SSID; sending an access authentication request carrying the password to be authenticated to the authentication server. The authentication server authenticates the password to be authenticated received from the terminal according to the authentication password of the target WiFi access point stored locally, and sends the password to the terminal and the access controller of the target WiFi access point when the password to be authenticated passes the authentication. Authentication passing information; the access controller of the target WiFi access point obtains the identification information of the terminal and the SSID of the target WiFi access point from the authentication passing information, and selects to provide the terminal with the identification information through the target WiFi access point. Internet service.
步骤102:将目标WiFi接入点锁定为终端的WiFi接入点。Step 102: Lock the target WiFi access point as the terminal's WiFi access point.
具体地,本步骤102的实现过程可以包括,终端接收终端所在环境下的WiFi接入点发送的报文;终端判断报文的发送方是否为目标WiFi接入点;在报文的发送方不是目标WiFi接入点时,终端不对该报文执行处理操作;在报文的发送方是目标WiFi接入点时,终端对该报文执行处理操作,从而在目标WiFi接入点与终端之间保持建立的锁定关系。Specifically, the implementation process of this step 102 may include that the terminal receives the message sent by the WiFi access point in the environment where the terminal is located; the terminal judges whether the sender of the message is the target WiFi access point; When the target WiFi access point is selected, the terminal does not perform processing operations on the message; when the sender of the message is the target WiFi access point, the terminal performs processing operations on the message, so that between the target WiFi access point and the terminal Maintain the established locking relationship.
需说明的是,上述过程还可以包括,终端接收用户输入的网络信息获取指令;终端根据该网络信息获取指令生成相应的网络请求;终端向目标WiFi接入点发送该网络请求。需说明的是,所述报文中包括WiFi接入点的MAC(Media Access Control,媒体访问控制)地址,所述终端判断报文的发送方是否为目标WiFi接入点,具体可以为,终端判断报文的发送方MAC地址与目标WiFi接入点的MAC地址是否一致。所述对发送方是目标WiFi接入点的报文执行处理操作,具体可以为终端对该报文执行解析操作,获得终端向目标WiFi接入点发送的网络请求的反馈信息。所述终端不对发送方不是目标WiFi接入点的报文执行处理操作,具体可以为终端丢弃发送方不是目标WiFi接入点的报文;具体还可以为终端不对发送方不是目标WiFi接入点的报文执行解析操作。这样,终端即不能从各个WiFi接入点的报文中获取各个WiFi接入点的WiFi信号强度值,根据各个WiFi接入点的WiFi信号强度值决策是否进行WiFi漫游;实现在终端可以通过已接入的WiFi接入点接入网络时,防止终端发生WiFi漫游,即在终端可以通过已接入的WiFi接入点接入网络时,避免终端经历重新登录认证的过程。It should be noted that the above process may also include that the terminal receives a network information acquisition instruction input by the user; the terminal generates a corresponding network request according to the network information acquisition instruction; and the terminal sends the network request to the target WiFi access point. It should be noted that the message includes the MAC (Media Access Control, Media Access Control) address of the WiFi access point, and the terminal determines whether the sender of the message is the target WiFi access point, specifically, the terminal Determine whether the MAC address of the sender of the message is consistent with the MAC address of the target WiFi access point. The processing operation performed on the message whose sender is the target WiFi access point may specifically be that the terminal performs a parsing operation on the message to obtain feedback information of a network request sent by the terminal to the target WiFi access point. The terminal does not perform a processing operation on a message whose sender is not a target WiFi access point. Specifically, the terminal may discard a message whose sender is not a target WiFi access point; specifically, the terminal does not perform a processing operation on a message whose sender is not a target WiFi access point. The packets are parsed. In this way, the terminal cannot obtain the WiFi signal strength value of each WiFi access point from the message of each WiFi access point, and decide whether to perform WiFi roaming according to the WiFi signal strength value of each WiFi access point; When the connected WiFi access point accesses the network, it prevents the terminal from experiencing WiFi roaming, that is, when the terminal can access the network through the connected WiFi access point, it prevents the terminal from going through the process of re-login authentication.
步骤103:在终端满足预设切换条件时,解除已锁定的终端的WiFi接入点,重新选择待接入的WiFi接入点。Step 103: When the terminal meets the preset switching condition, unlock the WiFi access point of the locked terminal, and reselect the WiFi access point to be accessed.
需说明的是,在本步骤103之前本发明的WiFi接入点切换方法还包括:终端监测终端自身是否能接收到目标WiFi接入点的WiFi信号;在终端接收不到该WiFi信号时,终端判断终端本次处于接收不到该WiFi信号状态的时长是否超过预设时长;在该时长超过预设时长时,终端进行是否满足预设切换条件的判断。需说明的是,终端可以根据用户输入的时长值来设置该预设时长;终端也可以根据终端的系统提供的时长值来设置该预设时长。用户可以根据实际使用情况来设置该时长值。如,在实际使用中,终端接入目标WiFi接入点后,在终端本次处于接收不到,该目标WiFi接入点的WiFi信号状态的时长超过3分钟的情况下,通常是终端已离开了该目标WiFi接入点的覆盖范围内;在这种实际使用情况下,用户即可将上述时长值设置为3分钟。这样,即可实现终端自动监测出终端已接入的WiFi接入点是否可用。It should be noted that, before this step 103, the WiFi access point switching method of the present invention also includes: the terminal monitors whether the terminal itself can receive the WiFi signal of the target WiFi access point; when the terminal cannot receive the WiFi signal, the terminal Judging whether the duration of the terminal not being able to receive the WiFi signal exceeds the preset duration; when the duration exceeds the preset duration, the terminal judges whether the preset switching condition is met. It should be noted that the terminal may set the preset duration according to the duration value input by the user; the terminal may also set the preset duration according to the duration value provided by the system of the terminal. The user can set the duration value according to the actual usage. For example, in actual use, after the terminal accesses the target WiFi access point, if the terminal cannot receive this time and the WiFi signal state of the target WiFi access point lasts longer than 3 minutes, usually the terminal has left within the coverage of the target WiFi access point; in this actual use case, the user can set the above duration value to 3 minutes. In this way, the terminal can automatically detect whether the WiFi access point connected to the terminal is available.
需说明的是,在本步骤103之前本发明的WiFi接入点切换方法还包括:终端判断是否接收到下线指令;在终端接收到下线指令时,终端确定终端满足预设切换条件。这样,即可实现终端可以判断出用户是否期望使用已接入的WiFi接入点。It should be noted that before this step 103, the WiFi access point switching method of the present invention also includes: the terminal judges whether an offline command is received; when the terminal receives the offline command, the terminal determines that the terminal meets the preset switching conditions. In this way, it can be realized that the terminal can determine whether the user desires to use the accessed WiFi access point.
当然,在一些使用场景下,终端判断是否满足预设切换条件的方式还可以为其它方式,如,终端监测目标WiFi接入点的WiFi信号强度值是否小于预设阈值,在目标WiFi接入点的WiFi信号强度值小于预设阈值时,终端确定终端满足预设切换条件。需说明的是,终端可以根据用户输入的阈值来设置该预设阈值;终端也可以根据终端的系统提供的阈值来设置该预设阈值。该预设阈值的具体取值可以根据用户的需求来设置。如,终端通过目标WiFi接入点接入网络,由于通常当目标WiFi接入点的WiFi信号强度值,小于负90分贝毫伏时,终端的网络速度会变得非常慢,用户不期望此时还继续通过目标WiFi接入点接入网络,在这种情况下即可将该预设阈值设置为90分贝毫伏。Of course, in some usage scenarios, the way for the terminal to determine whether the preset switching conditions are met can also be other ways, for example, the terminal monitors whether the WiFi signal strength value of the target WiFi access point is less than the preset threshold, and the target WiFi access point When the WiFi signal strength value is less than the preset threshold, the terminal determines that the terminal meets the preset handover condition. It should be noted that the terminal may set the preset threshold according to the threshold input by the user; the terminal may also set the preset threshold according to the threshold provided by the system of the terminal. The specific value of the preset threshold can be set according to user requirements. For example, when a terminal accesses the network through a target WiFi access point, usually when the WiFi signal strength value of the target WiFi access point is less than minus 90 dBmV, the network speed of the terminal will become very slow, and users do not expect Also continue to access the network through the target WiFi access point, in which case the preset threshold can be set to 90 dBm.
具体地,本步骤103可通过如下三种方式实现,方式一包括:在终端判断出终端本次保持无WiFi信号状态的时长超过预设时长时,终端解除已锁定的终端的WiFi接入点,重新选择待接入的WiFi接入点。这样,即可实现在终端不能通过已接入的WiFi接入点接入网络时,允许终端发生WiFi漫游,即在终端不能通过已接入的WiFi接入点接入网络时,使得终端可以从已接入的WiFi接入点切换至其它WiFi接入点,通过其它WiFi接入点接入网络,从而自动解除终端与已接入的WiFi接入点之间的锁定关系。例如,在用户的终端离开已接入的WiFi接入点的覆盖范围时,终端即可解除终端与已接入的WiFi接入点之间的锁定关系,从而重新选择待接入的WiFi接入点,这样,在用户的终端从该已接入的WiFi接入点的覆盖范围移动至其它WiFi接入点的覆盖范围时,即可重新接入其它WiFi接入点。Specifically, this step 103 can be implemented in the following three ways. The first way includes: when the terminal determines that the duration of the terminal without WiFi signal state exceeds the preset duration, the terminal unlocks the WiFi access point of the terminal that has been locked, Re-select the WiFi access point to be connected. In this way, it can be realized that when the terminal cannot access the network through the connected WiFi access point, WiFi roaming of the terminal is allowed, that is, when the terminal cannot access the network through the connected WiFi access point, the terminal can be accessed from The connected WiFi access point switches to another WiFi access point, and accesses the network through the other WiFi access point, thereby automatically releasing the locking relationship between the terminal and the connected WiFi access point. For example, when the user's terminal leaves the coverage of the accessed WiFi access point, the terminal can release the locking relationship between the terminal and the accessed WiFi access point, so as to reselect the WiFi access point to be accessed. In this way, when the user's terminal moves from the coverage of the accessed WiFi access point to the coverage of other WiFi access points, it can re-connect to other WiFi access points.
方式二包括:在终端确定接收到用户输入的下线指令时,终端解除已锁定的终端的WiFi接入点,重新选择待接入的WiFi接入点。这样,即可实现在终端不需通过已接入的WiFi接入点接入网络时,允许终端发生WiFi漫游,即在终端不需通过已接入的WiFi接入点接入网络时,使得终端可以从已接入的WiFi接入点切换至其它WiFi接入点,通过其它WiFi接入点接入网络。从而根据用户期望解除了已接入的WiFi接入点与终端之间的锁定关系,提高用户体验度。The second method includes: when the terminal determines that the logout instruction input by the user is received, the terminal unlocks the WiFi access point of the terminal that has been locked, and reselects the WiFi access point to be accessed. In this way, it can be realized that when the terminal does not need to access the network through the already connected WiFi access point, WiFi roaming of the terminal is allowed, that is, when the terminal does not need to access the network through the already connected WiFi access point, the terminal You can switch from the connected WiFi access point to other WiFi access points, and access the network through other WiFi access points. Therefore, the locked relationship between the accessed WiFi access point and the terminal is released according to the user's expectation, and the user experience is improved.
方式三可包括:在终端确定满足预设切换条件时,终端通过发送目标WiFi接入点的下线认证请求,将终端与目标WiFi接入点断开连接,从而解除已锁定的终端的WiFi接入点;终端接收终端所在环境下的WiFi接入点发送的报文,该报文包括WiFi接入点的WiFi信号强度值;终端根据各个WiFi接入点的WiFi信号强度值,从各个WiFi接入点中选择待接入的WiFi接入点。这样,终端即可在终端不能或不需使用已接入的WiFi接入点时,允许终端发生WiFi漫游,即在终端不能或不需要使用已接入的WiFi接入点时,使得终端可以断开已接入的WiFi接入点,将终端的WiFi接入点从已接入的WiFi接入点切换至其它WiFi接入点,通过其它WiFi接入点接入网络。Method 3 may include: when the terminal determines that the preset switching condition is satisfied, the terminal disconnects the terminal from the target WiFi access point by sending an offline authentication request of the target WiFi access point, thereby unlocking the locked terminal's WiFi access point. access point; the terminal receives the message sent by the WiFi access point in the environment where the terminal is located, and the message includes the WiFi signal strength value of the WiFi access point; Select the WiFi access point to be connected in the access point. In this way, the terminal can allow WiFi roaming of the terminal when the terminal cannot or does not need to use the connected WiFi access point, that is, when the terminal cannot or does not need to use the connected WiFi access point, the terminal can be disconnected. Open the connected WiFi access point, switch the terminal's WiFi access point from the connected WiFi access point to other WiFi access points, and access the network through other WiFi access points.
需说明的是,所述终端解除已锁定的终端的WiFi接入点,通过如下方式实现,在终端接收到终端所在环境下的WiFi接入点发送的报文后,终端对各报文执行处理操作,不再执行如下步骤:判断报文的发送方是否为目标WiFi接入点;在报文的发送方不是目标WiFi接入点时,终端不对该报文执行处理操作;在报文的发送方是目标WiFi接入点时,对该报文执行处理操作。从而解除目标WiFi接入点与终端之间保持的锁定关系。It should be noted that the terminal unlocks the locked WiFi access point of the terminal through the following method. After the terminal receives the message sent by the WiFi access point in the environment where the terminal is located, the terminal performs processing on each message Operation, no longer perform the following steps: determine whether the sender of the message is the target WiFi access point; when the sender of the message is not the target WiFi access point, the terminal does not perform processing operations on the message; When the party is the target WiFi access point, the packet is processed. Thus, the locked relationship maintained between the target WiFi access point and the terminal is released.
需说明的是,在本步骤103中,所述重新选择待接入的WiFi接入点,可以通过终端重新返回执行步骤101实现。It should be noted that, in step 103, the reselection of the WiFi access point to be accessed may be implemented by the terminal returning to execute step 101 again.
需说明的是,所述目标WiFi接入点可以为车载WiFi接入点。所述车载WiFi接入设备是指装载在车辆上的提供WiFi热点的一种无线路由器,能够将3G/4G信号转换为WiFi信号。因为在一些使用场景下,由于终端发生WiFi漫游时,终端可能会经历重新进行登录认证的过程,因此用户不期望在终端可以使用已接入的WiFi接入点接入网络的情况下,终端发生WiFi漫游。如,用户乘坐公交车,该公交车上装有车载WiFi接入设备,用户的终端通过该车载WiFi接入设备接入了网络,从而用户可以使用网络获取信息;由于用户的终端和公交车是处于相对静止状态,终端通常可以通过该车载WiFi接入设备接入网络,因此,用户期望在乘坐该公交车的过程中终端只连接该公交车的车载WiFi接入设备,不发生WiFi漫游。但当多辆公交车在超车并线及进出场站过程中,可能存在多个接入不同AC的车载WiFi接入设备处于相近的位置,在这种情况下终端可能会发生AC间漫游。It should be noted that the target WiFi access point may be a vehicle WiFi access point. The vehicle-mounted WiFi access device refers to a wireless router mounted on the vehicle that provides WiFi hotspots, and can convert 3G/4G signals into WiFi signals. Because in some usage scenarios, the terminal may go through the process of re-login authentication when WiFi roaming occurs on the terminal, so the user does not expect that when the terminal can use the connected WiFi access point to access the network, the terminal WiFi roaming. For example, when a user takes a bus, the bus is equipped with a vehicle-mounted WiFi access device, and the user's terminal is connected to the network through the vehicle-mounted WiFi access device, so that the user can use the network to obtain information; since the user's terminal and the bus are in the Relative to the static state, the terminal can usually access the network through the on-board WiFi access device. Therefore, the user expects that the terminal is only connected to the on-board WiFi access device of the bus during the bus ride, and no WiFi roaming occurs. However, when multiple buses are overtaking and merging and entering and leaving the station, there may be multiple on-board WiFi access devices connected to different ACs in similar positions. In this case, the terminal may roam between ACs.
如图2所示,该图示出了可能会发生AC间漫游的场景示意图,A公交车1装有A车载WiFi接入设备2,A车载WiFi接入设备2通过无线基站3与A接入控制器4连接,B公交车5装有B车载WiFi接入设备6,B车载WiFi接入设备6通过无线基站3与B接入控制器7连接,用户的终端8已通过A车载WiFi接入设备2接入网络。在这种情况下,虽然A车载WiFi接入设备2的WiFi信号强度值可以支持终端8上网,但由于B车载WiFi接入设备6的信号强度值可能大于A车载WiFi接入设备2的信号强度值,用户的终端8可能会由A车载WiFi接入设备2漫游至B车载WiFi接入设备6,发生AC间漫游。如果终端经历重新进行登录认证的过程,就会使终端在可以通过已接入的WiFi接入设备接入网络时,无法正常地使用网络。在这种场景下,即可使用上述所述方法实现终端可以正常地使用网络。As shown in Figure 2, this figure shows a schematic diagram of a scenario where roaming between ACs may occur. Bus A 1 is equipped with a vehicle-mounted WiFi access device 2, and the vehicle-mounted WiFi access device 2 is connected to A through a wireless base station 3. Controller 4 is connected, B bus 5 is equipped with B vehicle WiFi access device 6, B vehicle WiFi access device 6 is connected to B access controller 7 through wireless base station 3, user's terminal 8 has been connected through A vehicle WiFi Device 2 is connected to the network. In this case, although the WiFi signal strength value of A’s vehicle-mounted WiFi access device 2 can support terminal 8 to access the Internet, the signal strength value of B’s vehicle-mounted WiFi access device 6 may be greater than the signal strength of A’s vehicle-mounted WiFi access device 2 value, the user's terminal 8 may roam from the vehicle-mounted WiFi access device 2 of A to the vehicle-mounted WiFi access device 6 of B, and roaming between ACs occurs. If the terminal goes through the process of re-login authentication, it will make the terminal unable to use the network normally when it can access the network through the connected WiFi access device. In this scenario, the above method can be used to realize that the terminal can use the network normally.
当然,在其它使用场景下,如,在室内时,由于在终端所在的环境下有多个WiFi接入设备,在WiFi接入设备覆盖的交界处,终端可能发生WiFi漫游,由于终端发生WiFi漫游时,终端可能会经历重新进行登录认证的过程,因此用户不期望在终端可以使用已接入的WiFi接入点接入网络的情况下,终端发生WiFi漫游。在这种场景下,即可使用上述所述方法实现终端可以正常地使用网络。因此,所述目标WiFi接入点还可以为室内WiFi接入点。所述室内WiFi接入设备是指装载在室内的提供WiFi热点的一种无线路由器。Of course, in other usage scenarios, such as indoors, because there are multiple WiFi access devices in the environment where the terminal is located, WiFi roaming may occur on the terminal at the intersection covered by the WiFi access devices. At this time, the terminal may go through the process of re-login authentication, so the user does not expect that the terminal will experience WiFi roaming when the terminal can use the connected WiFi access point to access the network. In this scenario, the above method can be used to realize that the terminal can use the network normally. Therefore, the target WiFi access point may also be an indoor WiFi access point. The indoor WiFi access device refers to a wireless router installed indoors that provides WiFi hotspots.
为了实现上述方法,本发明公开了一种WiFi接入点的切换装置。In order to realize the above method, the present invention discloses a switching device of a WiFi access point.
图3示出了本发明WiFi接入点的切换装置的结构示意图,如图3所示,所述WiFi接入点的切换装置包括:Fig. 3 shows a schematic structural diagram of the switching device of the WiFi access point of the present invention, as shown in Fig. 3, the switching device of the WiFi access point includes:
选择模块301,用于选择待接入的WiFi接入点,将选出的所述WiFi接入点作为终端的目标WiFi接入点,接入所述目标WiFi接入点;A selection module 301, configured to select a WiFi access point to be accessed, use the selected WiFi access point as a target WiFi access point of the terminal, and access the target WiFi access point;
锁定模块302,用于将所述目标WiFi接入点锁定为所述终端的WiFi接入点;A locking module 302, configured to lock the target WiFi access point as the terminal's WiFi access point;
解除模块303,用于在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择待接入的WiFi接入点。The unlocking module 303 is configured to unlock the locked WiFi access point of the terminal and reselect the WiFi access point to be accessed when the terminal meets the preset switching condition.
进一步,所述锁定模块,具体用于接收所述终端所在环境下的WiFi接入点发送的报文;判断所述报文的发送方是否为所述目标WiFi接入点;在所述报文的发送方不是所述目标WiFi接入点时,不对所述报文执行处理操作;在所述报文的发送方是所述目标WiFi接入点时,对所述报文执行处理操作。Further, the locking module is specifically configured to receive a message sent by a WiFi access point in the environment where the terminal is located; determine whether the sender of the message is the target WiFi access point; When the sender of the message is not the target WiFi access point, no processing operation is performed on the message; when the sender of the message is the target WiFi access point, a processing operation is performed on the message.
进一步,所述装置还包括:Further, the device also includes:
监测模块,用于在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择所述待接入的WiFi接入点之前,监测所述终端是否能接收到所述目标WiFi接入点的WiFi信号;A monitoring module, configured to unlock the locked WiFi access point of the terminal when the terminal meets the preset switching conditions, and monitor whether the terminal can receive the WiFi access point before reselecting the WiFi access point to be accessed WiFi signal to said target WiFi access point;
第一判断模块,用于在所述终端接收不到所述WiFi信号时,判断所述终端本次处于接收不到所述WiFi信号状态的时长是否超过预设时长;A first judging module, configured to judge whether the duration of the terminal not being able to receive the WiFi signal exceeds a preset duration when the terminal cannot receive the WiFi signal;
第一确定模块,用于在所述时长超过所述预设时长时,确定所述终端满足预设切换条件。The first determining module is configured to determine that the terminal satisfies a preset switching condition when the duration exceeds the preset duration.
进一步,所述装置还包括:Further, the device also includes:
第二判断模块,用于在所述终端满足预设切换条件时,解除已锁定的所述终端的WiFi接入点,重新选择所述待接入的WiFi接入点之前,判断所述终端是否接收到下线指令;The second judging module is configured to unlock the locked WiFi access point of the terminal when the terminal meets the preset switching condition, and judge whether the terminal is before reselecting the WiFi access point to be accessed A logout command is received;
第二确定模块,用于在所述终端接收到所述下线指令时,确定所述终端满足预设切换条件。The second determining module is configured to determine that the terminal satisfies a preset switching condition when the terminal receives the offline instruction.
进一步,所述解除模块,具体用于在所述终端满足预设切换条件时,通过发送所述目标WiFi接入点的下线认证请求,将所述终端与所述目标WiFi接入点断开连接;接收所述终端所在环境下的WiFi接入点发送的报文,所述报文包括所述WiFi接入点的WiFi信号强度值;根据各个所述WiFi接入点的WiFi信号强度值,从各个所述WiFi接入点中选择所述待接入的WiFi接入点。Further, the release module is specifically configured to disconnect the terminal from the target WiFi access point by sending an offline authentication request of the target WiFi access point when the terminal satisfies a preset switching condition Connecting; receiving a message sent by a WiFi access point in the environment where the terminal is located, the message including the WiFi signal strength value of the WiFi access point; according to the WiFi signal strength value of each of the WiFi access points, Selecting the WiFi access point to be accessed from each of the WiFi access points.
进一步,所述目标WiFi接入点可以为车载WiFi接入点。Further, the target WiFi access point may be a vehicle WiFi access point.
本发明提供的WiFi接入点的切换装置中的选择模块、锁定模块和解除模块,以及进一步包括的监测模块、第一判断模块、第一确定模块、第二判断模块、第二确定模块都可以通过终端中的处理器来实现;当然也可通过具体的逻辑电路实现;在具体实施例的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。The selection module, the locking module and the releasing module in the switching device of the WiFi access point provided by the present invention, and the monitoring module, the first judging module, the first determining module, the second judging module and the second determining module further included can all be Realized by a processor in the terminal; of course, it can also be realized by a specific logic circuit; in the process of a specific embodiment, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor ( DSP) or Field Programmable Gate Array (FPGA), etc.
下面示出了本发明WiFi接入点的切换方法实施例的流程。The flow of an embodiment of the WiFi access point switching method of the present invention is shown below.
图4为本发明WiFi接入点的切换方法实施例的流程示意图,如图4所示,该方法包括:Fig. 4 is a schematic flow diagram of an embodiment of a switching method of a WiFi access point according to the present invention. As shown in Fig. 4, the method includes:
步骤401:开启终端的WiFi,启动车载WiFi客户端。Step 401: Turn on the WiFi of the terminal, and start the vehicle WiFi client.
具体地,在车载WiFi接入点覆盖的环境下,用户可以向终端输入WiFi开启指令,终端接收该开启指令,开启终端的WiFi,用户向终端输入车载WiFi客户端启动指令,终端接收该启动指令,启动车载WiFi客户端。Specifically, in an environment covered by a vehicle-mounted WiFi access point, the user may input a WiFi activation command to the terminal, the terminal receives the activation command, and enables the terminal's WiFi, the user inputs a vehicle-mounted WiFi client activation command to the terminal, and the terminal receives the activation command , start the car WiFi client.
步骤402:车载WiFi客户端自动搜索终端所在环境下的车载WiFi接入点,选择出目标车载WiFi接入点。Step 402: The vehicle-mounted WiFi client automatically searches for vehicle-mounted WiFi access points in the environment where the terminal is located, and selects a target vehicle-mounted WiFi access point.
具体地,车载WiFi接入点广播SSID信号,发送相应报文;车载WiFi客户端搜索SSID信号,接收终端所在环境下的车载WiFi接入点发送的报文,所述报文中包括车载WiFi接入点的SSID和WiFi信号强度值;车载WiFi客户端比较接收到的车载WiFi接入点的WiFi信号强度值;将WiFi信号强度值最大的车载WiFi接入点作为目标车载WiFi接入点。Specifically, the vehicle-mounted WiFi access point broadcasts the SSID signal and sends a corresponding message; the vehicle-mounted WiFi client searches for the SSID signal and receives the message sent by the vehicle-mounted WiFi access point in the environment where the terminal is located, and the message includes the vehicle-mounted WiFi access point. The SSID and WiFi signal strength value of the entry point; the WiFi signal strength value of the vehicle WiFi access point received by the vehicle WiFi client; the vehicle WiFi access point with the maximum WiFi signal strength value as the target vehicle WiFi access point.
步骤403:车载WiFi客户端接收用户根据目标WiFi接入点的SSID输入的待认证密码,向认证服务器发送携带有待认证密码的接入认证请求。Step 403: The vehicle-mounted WiFi client receives the password to be authenticated input by the user according to the SSID of the target WiFi access point, and sends an access authentication request carrying the password to be authenticated to the authentication server.
具体地,车载WiFi客户端选择出目标车载WiFi接入点后,在终端屏幕上显示目标WiFi接入点的SSID;用户向车载WiFi客户端的相应页面的相应位置输入SSID对应的待认证密码,车载WiFi客户端接收用户根据该SSID输入的待认证密码;车载WiFi客户端接收该待认证密码,向认证服务器发送携带有待认证密码的接入认证请求。Specifically, after the vehicle-mounted WiFi client selects the target vehicle-mounted WiFi access point, the SSID of the target WiFi access point is displayed on the terminal screen; The WiFi client receives the password to be authenticated inputted by the user according to the SSID; the vehicle-mounted WiFi client receives the password to be authenticated, and sends an access authentication request carrying the password to be authenticated to the authentication server.
步骤404:车载WiFi客户端接收认证服务器反馈的认证通过信息。Step 404: The vehicle-mounted WiFi client receives the authentication passing information fed back by the authentication server.
步骤405:车载WiFi客户端将终端的WiFi接入点锁定为目标车载WiFi接入点。Step 405: the vehicle-mounted WiFi client locks the terminal's WiFi access point as a target vehicle-mounted WiFi access point.
具体地,车载WiFi客户端接收终端所在环境下的车载WiFi接入点发送的报文;车载WiFi客户端判断报文的发送方是否为目标车载WiFi接入点;在报文的发送方不是目标WiFi接入点时,车载WiFi客户端不对该报文执行处理操作;在报文的发送方是目标WiFi接入点时,车载WiFi客户端对该报文执行处理操作,从而在目标WiFi接入点与终端之间保持建立的锁定关系。需说明的是,所述报文中包括WiFi接入点的MAC地址,所述终端判断报文的发送方是否为目标WiFi接入点,具体可以为,终端判断报文的发送方的MAC地址与目标WiFi接入点的MAC地址是否一致。Specifically, the vehicle-mounted WiFi client receives the message sent by the vehicle-mounted WiFi access point in the environment where the terminal is located; the vehicle-mounted WiFi client judges whether the sender of the message is the target vehicle WiFi access point; When the WiFi access point is used, the vehicle WiFi client does not perform processing operations on the message; when the sender of the message is the target WiFi access point, the vehicle WiFi client performs processing operations on the message, so that the target WiFi access The established lock relationship is maintained between the peer and the terminal. It should be noted that the message includes the MAC address of the WiFi access point, and the terminal determines whether the sender of the message is the target WiFi access point, specifically, the terminal determines the MAC address of the sender of the message Whether it is consistent with the MAC address of the target WiFi access point.
步骤406:车载WiFi客户端判断终端是否满足预设切换条件,在终端满足预设切换条件时,向认证服务器发送下线认证请求。Step 406: The vehicle-mounted WiFi client judges whether the terminal meets the preset switching conditions, and sends an offline authentication request to the authentication server when the terminal meets the preset switching conditions.
具体地,车载WiFi客户端监测终端是否能接收到目标WiFi接入点的WiFi信号;在终端接收不到该WiFi信号时,车载WiFi客户端判断终端本次处于接收不到该WiFi信号状态的时长是否超过预设时长;在该时长超过预设时长时,车载WiFi客户端进行终端是否满足预设切换条件的判断。所述预设时长可以为三分钟。车载WiFi客户端判断终端是否接收到下线指令;在终端接收到下线指令时,车载WiFi客户端确定终端满足预设切换条件。在终端满足预设切换条件时,车载WiFi客户端向认证服务器发送下线认证请求。Specifically, the vehicle-mounted WiFi client monitors whether the terminal can receive the WiFi signal of the target WiFi access point; when the terminal cannot receive the WiFi signal, the vehicle-mounted WiFi client judges the duration of the terminal not receiving the WiFi signal. Whether it exceeds the preset duration; when the duration exceeds the preset duration, the vehicle-mounted WiFi client judges whether the terminal meets the preset switching condition. The preset duration may be three minutes. The on-vehicle WiFi client determines whether the terminal has received an offline command; when the terminal receives the off-line command, the on-vehicle WiFi client determines that the terminal meets a preset switching condition. When the terminal meets the preset switching conditions, the vehicle-mounted WiFi client sends an offline authentication request to the authentication server.
步骤407:车载WiFi客户端接收认证服务器发送的下线认证通过信息。Step 407: The vehicle-mounted WiFi client receives the offline authentication passing information sent by the authentication server.
步骤408:车载WiFi客户端解除已锁定的终端的WiFi接入点。Step 408: The vehicle-mounted WiFi client unlocks the WiFi access point of the locked terminal.
具体地,所述车载WiFi客户端解除已锁定的终端的WiFi接入点,通过如下方式实现,在车载WiFi客户端接收到终端所在环境下的WiFi接入点发送的报文后,对各报文执行处理操作,车载WiFi客户端不再执行如下步骤:判断报文的发送方是否为目标WiFi接入点;在报文的发送方不是目标WiFi接入点时,不对该报文执行处理操作;在报文的发送方是目标WiFi接入点时,对该报文执行处理操作。从而解除目标WiFi接入点与终端之间保持的锁定关系。Specifically, the on-vehicle WiFi client releases the locked terminal's WiFi access point through the following method. After the on-vehicle WiFi client receives the message sent by the WiFi access point in the environment where the terminal is located, it The vehicle WiFi client does not perform the following steps anymore: determine whether the sender of the message is the target WiFi access point; when the sender of the message is not the target WiFi access point, do not perform processing operations on the message ; When the sender of the message is the target WiFi access point, perform a processing operation on the message. Thus, the locked relationship maintained between the target WiFi access point and the terminal is released.
步骤409:车载WiFi客户端重新选择待接入的WiFi接入点。Step 409: The vehicle-mounted WiFi client reselects a WiFi access point to be connected.
具体地,所述重新选择待接入的WiFi接入点,可以通过车载WiFi客户端重新返回执行步骤402实现。例如,在用户的终端离开目标车载WiFi接入点的覆盖范围时,车载WiFi客户端即可解除终端与目标车载WiFi接入点保持的锁定关系,这样,在用户的终端从该目标车载WiFi接入点的覆盖范围移动至其它车载WiFi接入点的覆盖范围时,车载WiFi客户端即可通过重复执行步骤402使得终端通过其它车载WiFi接入点接入网络。Specifically, the reselection of the WiFi access point to be accessed can be realized by returning to step 402 by the vehicle WiFi client. For example, when the user's terminal leaves the coverage of the target vehicle-mounted WiFi access point, the vehicle-mounted WiFi client can release the locked relationship between the terminal and the target vehicle-mounted WiFi access point. When the coverage of the access point moves to the coverage of other vehicular WiFi access points, the vehicular WiFi client can repeatedly perform step 402 to enable the terminal to access the network through other vehicular WiFi access points.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化,本发明的保护范围以权利要求为准。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes, and the scope of protection of the present invention is based on the claims.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510438390.5A CN106376042B (en) | 2015-07-23 | 2015-07-23 | A kind of switching method and device of WiFi access point |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510438390.5A CN106376042B (en) | 2015-07-23 | 2015-07-23 | A kind of switching method and device of WiFi access point |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106376042A CN106376042A (en) | 2017-02-01 |
CN106376042B true CN106376042B (en) | 2019-11-12 |
Family
ID=57880095
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510438390.5A Active CN106376042B (en) | 2015-07-23 | 2015-07-23 | A kind of switching method and device of WiFi access point |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106376042B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111918350A (en) * | 2020-07-30 | 2020-11-10 | 展讯半导体(成都)有限公司 | Wireless roaming method, device, equipment and storage medium |
CN113872889B (en) * | 2021-09-01 | 2023-04-18 | 珠海格力电器股份有限公司 | Network access point switching method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1604548A (en) * | 2003-09-30 | 2005-04-06 | 华为技术有限公司 | A Fast Interaction Method for User Terminals to Select Access to Mobile Networks in Wireless Local Area Networks |
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN103139876A (en) * | 2011-11-24 | 2013-06-05 | 北京千橡网景科技发展有限公司 | Method and device selecting wireless access mode for mobile terminal adaptively |
CN101977382B (en) * | 2010-10-27 | 2013-07-10 | 福州星网视易信息系统有限公司 | Audio and video integrated control circuit and method for accessing access point |
CN103369633A (en) * | 2012-04-10 | 2013-10-23 | 宏碁股份有限公司 | Methods for Automatically Switching Access Points |
-
2015
- 2015-07-23 CN CN201510438390.5A patent/CN106376042B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1604548A (en) * | 2003-09-30 | 2005-04-06 | 华为技术有限公司 | A Fast Interaction Method for User Terminals to Select Access to Mobile Networks in Wireless Local Area Networks |
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN101977382B (en) * | 2010-10-27 | 2013-07-10 | 福州星网视易信息系统有限公司 | Audio and video integrated control circuit and method for accessing access point |
CN103139876A (en) * | 2011-11-24 | 2013-06-05 | 北京千橡网景科技发展有限公司 | Method and device selecting wireless access mode for mobile terminal adaptively |
CN103369633A (en) * | 2012-04-10 | 2013-10-23 | 宏碁股份有限公司 | Methods for Automatically Switching Access Points |
Also Published As
Publication number | Publication date |
---|---|
CN106376042A (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11310843B2 (en) | PDU session establishment method and apparatus | |
CN103209412B (en) | Apparatus for establishing is to the method, apparatus and system of equipment connection | |
CN105934926B (en) | Method and apparatus for session and service control of wireless devices using common subscriber information | |
JP5523632B2 (en) | WiFi communication implementation method, user equipment, and wireless router | |
EP2858418B1 (en) | Method for updating identity information about packet gateway, aaa server and packet gateway | |
US9137851B2 (en) | Wireless communication device for performing different wireless communications | |
US20140036793A1 (en) | Network assistance for device-to-device discovery | |
US20130201525A1 (en) | Wireless communication device | |
EP1856835A2 (en) | System and method of reducing session transfer time from a cellular network to a wi-fi network | |
KR20110091305A (en) | Method and apparatus for selecting PLMN for emergency call in MOC | |
KR20140124079A (en) | Security and information supporting method and system for using policy control in re-subscription or adding subscription to mobile network operator in mobile telecommunication system environment | |
CN104469695A (en) | Network access method, short-distance communication server, relay terminal, and terminal | |
WO2020068273A1 (en) | Efficient method to load-balance wireless networks with multi-band interface controllers | |
WO2012174944A1 (en) | Network switching method and system | |
EP2888913B1 (en) | Access control for a wireless local area network | |
KR20140010206A (en) | Apparatus and method for connecting wireless network in consideration of radio frequency band | |
KR101460766B1 (en) | A security setting system and its control method using a cluster function in a wireless network system | |
WO2017185460A1 (en) | Network access method, terminal and access point | |
CN103888945B (en) | A kind of WLAN cut-in methods, system and multimode gateway | |
WO2011097977A1 (en) | Access gateway selection method, device and system | |
CN106376042B (en) | A kind of switching method and device of WiFi access point | |
JP6665791B2 (en) | Wireless communication device, wireless communication method, and program | |
EP2009948A2 (en) | Client resource reservation in access networks for roaming | |
CN108235386A (en) | A kind of communication means and equipment | |
CN104754689B (en) | home gateway access management method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |