CN106604314B - WiFi roaming network access method and terminal equipment - Google Patents
WiFi roaming network access method and terminal equipment Download PDFInfo
- Publication number
- CN106604314B CN106604314B CN201611120986.1A CN201611120986A CN106604314B CN 106604314 B CN106604314 B CN 106604314B CN 201611120986 A CN201611120986 A CN 201611120986A CN 106604314 B CN106604314 B CN 106604314B
- Authority
- CN
- China
- Prior art keywords
- access
- network
- accessing
- terminal device
- aps
- 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 35
- 238000012360 testing method Methods 0.000 claims abstract description 28
- 230000005540 biological transmission Effects 0.000 claims description 36
- 230000004044 response Effects 0.000 claims description 24
- 238000012544 monitoring process Methods 0.000 claims description 20
- 238000004891 communication Methods 0.000 abstract description 11
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 7
- VYLDEYYOISNGST-UHFFFAOYSA-N bissulfosuccinimidyl suberate Chemical compound O=C1C(S(=O)(=O)O)CC(=O)N1OC(=O)CCCCCCC(=O)ON1C(=O)C(S(O)(=O)=O)CC1=O VYLDEYYOISNGST-UHFFFAOYSA-N 0.000 description 4
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种WiFi漫游的网络接入方法及终端设备。The present invention relates to the field of communication technologies, and in particular, to a network access method and terminal equipment for WiFi roaming.
背景技术Background technique
随着通信技术的发展,WiFi(Wireless Fidelity,无线保真)网络已广泛普及,人们可以随时随地将终端设备接入WIFI网络进行上网。With the development of communication technologies, WiFi (Wireless Fidelity, wireless fidelity) networks have been widely popularized, and people can connect terminal devices to the WiFi network anytime and anywhere to access the Internet.
WiFi标准为IEEE制定的无线技术规范,其体系结构包括:STA(Station,无线站点),BSS(Basic Service Set,基本服务组),DS(Distribution System,分布式系统)和ESS(Extended Service Set,扩展服务组)。其中,用户用以接入WiFi网络的终端设备即充当STA的角色。在BSS中,AP(Acess Point,无线访问节点)不仅提供STA之间通信的桥接功能,还提供STA与有线局域网的连接,以实现STA与AP建立的网络之外的STA的通信。而多个BSS互相连接即组成一个扩展服务组(ESS),ESS支持漫游功能,STA可以在ESS内不同的BSS之间漫游,并且可以实现无缝连接,即不中断正在进行的网络服务,以及不改变STA的IP地址。The WiFi standard is a wireless technical specification formulated by IEEE. Its architecture includes: STA (Station, wireless station), BSS (Basic Service Set, basic service set), DS (Distribution System, distributed system) and ESS (Extended Service Set, Extended Service Group). The terminal device used by the user to access the WiFi network acts as a STA. In a BSS, an AP (Access Point, wireless access node) not only provides a bridging function for communication between STAs, but also provides a connection between the STA and the wired local area network, so as to realize the communication between the STA and the STA outside the network established by the AP. And multiple BSSs are connected to each other to form an Extended Service Group (ESS). The ESS supports the roaming function. STAs can roam between different BSSs in the ESS, and can achieve seamless connection, that is, without interrupting ongoing network services, and Do not change the IP address of the STA.
终端设备会从ESS中自动选择信号质量最好的AP进行接入,然而,若第一AP信号一般但可以上网,而第二AP信号很强却无法上网时,终端设备从第一AP漫游到第二AP,需手动进行切换以重新接入网络,否则无法正常上网。The terminal device will automatically select the AP with the best signal quality from the ESS for access. However, if the first AP has a normal signal but can access the Internet, but the second AP has a strong signal but cannot access the Internet, the terminal device roams from the first AP to The second AP needs to be manually switched to re-connect to the network, otherwise it will not be able to access the Internet normally.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种WiFi漫游的网络接入方法及终端设备,终端设备在进行漫游时可以避免接入信号强却无法联网的AP,从而保证漫游网络服务的连续性。The embodiments of the present invention provide a network access method and terminal device for WiFi roaming. When the terminal device roams, it can avoid accessing an AP with strong signal but unable to connect to the Internet, thereby ensuring the continuity of roaming network services.
本发明实施例第一方面公开了一种WiFi漫游的网络接入方法,包括:A first aspect of the embodiments of the present invention discloses a network access method for WiFi roaming, including:
监测终端设备是否漫游接入至第一无线访问节点AP;Monitoring whether the terminal device roams to access the first wireless access node AP;
若所述终端设备漫游接入至所述第一AP,则测试接入所述第一AP后所述终端设备是否能访问网络;If the terminal device roams to access the first AP, test whether the terminal device can access the network after accessing the first AP;
若接入所述第一AP后所述终端设备不能访问网络,则将所述第一AP加入黑名单,以禁止所述终端设备接入所述第一AP。If the terminal device cannot access the network after accessing the first AP, the first AP is added to a blacklist to prohibit the terminal device from accessing the first AP.
作为一种可选的实施方式,所述将所述第一AP加入黑名单,以禁止所述终端设备接入所述第一AP之后,所述方法还包括:As an optional implementation manner, after adding the first AP to a blacklist to prohibit the terminal device from accessing the first AP, the method further includes:
从扩展服务组ESS中获取除所述第一AP以外的其他AP的信号强度;Obtain the signal strengths of other APs except the first AP from the extended service group ESS;
选择所述ESS中除所述第一AP以外信号强度最强的第二AP进行接入。A second AP with the strongest signal strength in the ESS except the first AP is selected for access.
作为一种可选的实施方式,所述将所述第一AP加入黑名单,以禁止所述终端设备接入所述第一AP之后,所述方法还包括:As an optional implementation manner, after adding the first AP to a blacklist to prohibit the terminal device from accessing the first AP, the method further includes:
统计将所述第一AP加入所述黑名单的时间;Counting the time when the first AP was added to the blacklist;
若将所述第一AP加入所述黑名单的时间超过预设时间阈值,则将所述第一AP从所述黑名单中删除。If the time when the first AP is added to the blacklist exceeds a preset time threshold, the first AP is deleted from the blacklist.
作为一种可选的实施方式,所述测试接入所述第一AP后所述终端设备是否能访问网络,包括:As an optional implementation manner, the testing whether the terminal device can access the network after accessing the first AP includes:
发送测试数据帧至所述第一AP建立的网络之外的无线站点STA以使所述STA返回应答帧;sending a test data frame to a wireless station STA outside the network established by the first AP, so that the STA returns a response frame;
若所述终端设备接收到所述应答帧,则确定接入所述第一AP后所述终端设备能访问网络;若所述终端设备没有接收到所述应答帧,则确定接入所述第一AP后所述终端设备不能访问网络。If the terminal device receives the response frame, it is determined that the terminal device can access the network after accessing the first AP; if the terminal device does not receive the response frame, it is determined to access the first AP. After an AP, the terminal device cannot access the network.
作为一种可选的实施方式,若接入所述第一AP后所述终端设备能访问网络,所述方法还包括:As an optional implementation manner, if the terminal device can access the network after accessing the first AP, the method further includes:
监测通过所述第一AP访问网络的数据传输速度;monitoring the data transmission speed of accessing the network through the first AP;
若所述数据传输速度低于预设阈值,则向所述ESS中除所述第一AP以外的其他AP广播请求消息,以使所述其他AP返回所述其他AP连接的STA数量;If the data transmission speed is lower than a preset threshold, broadcast a request message to other APs in the ESS except the first AP, so that the other APs return the number of STAs connected to the other APs;
选择所述其他AP中连接的STA数量最少的第三AP进行接入。A third AP with the least number of STAs connected to the other APs is selected for access.
作为一种可选的实施方式,若接入所述第一AP后所述终端设备能访问网络,所述方法还包括:As an optional implementation manner, if the terminal device can access the network after accessing the first AP, the method further includes:
监测通过所述第一AP访问网络的所述数据传输速度;monitoring the data transmission speed of accessing the network through the first AP;
若所述数据传输速度低于所述预设阈值,则获取所述第一AP的信道信息;If the data transmission speed is lower than the preset threshold, acquiring the channel information of the first AP;
根据所述第一AP的信道信息,选择所述ESS中与所述第一AP的信道不同的第四AP进行接入。According to the channel information of the first AP, a fourth AP in the ESS with a channel different from that of the first AP is selected for access.
本发明实施例第二方面公开了一种WiFi漫游的网络接入装置,包括:A second aspect of the embodiments of the present invention discloses a network access device for WiFi roaming, including:
第一监测单元,用于监测终端设备是否漫游接入至第一无线访问节点AP;a first monitoring unit, configured to monitor whether the terminal device roams to access the first wireless access node AP;
测试单元,用于若所述终端设备漫游接入至所述第一AP,测试接入所述第一AP后所述终端设备是否能访问网络;a testing unit, configured to test whether the terminal device can access the network after accessing the first AP if the terminal device roams to access the first AP;
添加单元,用于若接入所述第一AP后所述终端设备不能访问网络,将所述第一AP加入黑名单,以禁止所述终端设备接入所述第一AP。The adding unit is configured to add the first AP to a blacklist if the terminal device cannot access the network after accessing the first AP, so as to prohibit the terminal device from accessing the first AP.
作为一种可选的实施方式,所述装置还包括:As an optional implementation manner, the device further includes:
第一获取单元,用于从扩展服务组ESS中获取除所述第一AP以外的其他AP的信号强度;a first obtaining unit, configured to obtain the signal strengths of other APs except the first AP from the extended service group ESS;
第一选择单元,用于选择所述ESS中除所述第一AP以外信号强度最强的第二AP进行接入。A first selection unit, configured to select a second AP with the strongest signal strength other than the first AP in the ESS for access.
作为一种可选的实施方式,所述装置还包括:As an optional implementation manner, the device further includes:
统计单元,用于统计将所述第一AP加入所述黑名单的时间;a statistical unit, configured to count the time when the first AP is added to the blacklist;
删除单元,用于若将所述第一AP加入所述黑名单的时间超过预设时间阈值,将所述第一AP从所述黑名单中删除。A deletion unit, configured to delete the first AP from the blacklist if the time for adding the first AP to the blacklist exceeds a preset time threshold.
作为一种可选的实施方式,所述测试单元,包括:As an optional implementation manner, the test unit includes:
发送子单元,用于发送测试数据帧至所述第一AP建立的网络之外的无线站点STA以使所述STA返回应答帧;a sending subunit, configured to send a test data frame to a wireless station STA outside the network established by the first AP, so that the STA returns a response frame;
确定子单元,用于若所述终端设备接收到所述应答帧,确定接入所述第一AP后所述终端设备能访问网络,若所述终端设备没有接收到所述应答帧,确定接入所述第一AP后所述终端设备不能访问网络。The determining subunit is configured to determine that the terminal device can access the network after accessing the first AP if the terminal device receives the response frame, and determines that the terminal device can access the network if the terminal device does not receive the response frame. After entering the first AP, the terminal device cannot access the network.
作为一种可选的实施方式,所述装置还包括:As an optional implementation manner, the device further includes:
第二监测单元,用于若接入所述第一AP后所述终端设备能访问网络,监测通过所述第一AP访问网络的数据传输速度;a second monitoring unit, configured to monitor the data transmission speed of accessing the network through the first AP if the terminal device can access the network after accessing the first AP;
广播单元,用于若所述数据传输速度低于预设阈值,向所述ESS中除所述第一AP以外的其他AP广播请求消息,以使所述其他AP返回所述其他AP连接的STA数量;A broadcasting unit, configured to broadcast a request message to other APs in the ESS except the first AP if the data transmission speed is lower than a preset threshold, so that the other APs return to the STAs connected to the other APs quantity;
第二选择单元,用于选择所述其他AP中连接的STA数量最少的第三AP进行接入。The second selection unit is configured to select a third AP with the smallest number of STAs connected to the other APs for access.
作为一种可选的实施方式,所述装置还包括:As an optional implementation manner, the device further includes:
第三监测单元,用于若接入所述第一AP后所述终端设备能访问网络,监测通过所述第一AP访问网络的所述数据传输速度;a third monitoring unit, configured to monitor the data transmission speed of accessing the network through the first AP if the terminal device can access the network after accessing the first AP;
第二获取单元,用于若所述数据传输速度低于所述预设阈值,获取所述第一AP的信道信息;a second acquiring unit, configured to acquire channel information of the first AP if the data transmission speed is lower than the preset threshold;
第三选择单元,用于根据所述第一AP的信道信息,选择所述ESS中与所述第一AP的信道不同的第四AP进行接入。A third selection unit, configured to select, according to the channel information of the first AP, a fourth AP in the ESS with a channel different from that of the first AP for access.
本发明实施例第三方面公开了一种终端设备,包括:A third aspect of the embodiments of the present invention discloses a terminal device, including:
存储有可执行程序代码的存储器;a memory in which executable program code is stored;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行如上述第一方面所述的方法。The processor invokes the executable program code stored in the memory to execute the method described in the first aspect.
从以上技术方案可以看出,本发明实施例具有以下优点:As can be seen from the above technical solutions, the embodiments of the present invention have the following advantages:
本发明实施例中,监测终端设备是否漫游接入至第一无线访问节点AP;若所述终端设备漫游接入至所述第一AP,则测试接入所述第一AP后所述终端设备是否能访问网络;若接入所述第一AP后所述终端设备不能访问网络,则将所述第一AP加入黑名单,以禁止所述终端设备接入所述第一AP。实施本发明实施例,终端设备在进行漫游时可以避免接入信号强却无法联网的AP,从而保证漫游网络服务的连续性。In this embodiment of the present invention, it is monitored whether the terminal device roams to access the first wireless access node AP; if the terminal device roams and accesses the first AP, the terminal device is tested after accessing the first AP. Whether the network can be accessed; if the terminal device cannot access the network after accessing the first AP, the first AP is added to the blacklist to prohibit the terminal device from accessing the first AP. By implementing the embodiments of the present invention, the terminal device can avoid accessing an AP with strong signal but unable to connect to the network when roaming, thereby ensuring the continuity of the roaming network service.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明实施例公开的一种WiFi漫游的网络接入方法的流程示意图;1 is a schematic flowchart of a network access method for WiFi roaming disclosed in an embodiment of the present invention;
图2为本发明实施例公开的一种终端设备在扩展服务组ESS中漫游的结构示意图;2 is a schematic structural diagram of a terminal device roaming in an extended service group ESS disclosed in an embodiment of the present invention;
图3为本发明实施例公开的另一种WiFi漫游的网络接入方法的流程示意图;3 is a schematic flowchart of another network access method for WiFi roaming disclosed in an embodiment of the present invention;
图4为本发明实施例公开的一种WiFi漫游的网络接入装置的结构示意图;4 is a schematic structural diagram of a network access device for WiFi roaming disclosed in an embodiment of the present invention;
图5为本发明实施例公开的另一种WiFi漫游的网络接入装置的结构示意图;5 is a schematic structural diagram of another network access device for WiFi roaming disclosed in an embodiment of the present invention;
图6为本发明实施例公开的一种终端设备600的结构示意图。FIG. 6 is a schematic structural diagram of a terminal device 600 disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. . Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods or devices.
本发明实施例提供了一种WiFi漫游的网络接入方法及终端设备,终端设备在进行漫游时可以避免接入信号强却无法联网的AP,从而保证漫游网络服务的连续性。以下分别进行详细说明。The embodiments of the present invention provide a network access method and terminal device for WiFi roaming. When the terminal device roams, it can avoid accessing an AP with strong signal but unable to connect to the Internet, thereby ensuring the continuity of roaming network services. Each of them will be described in detail below.
请参阅图1,图1是本发明实施例公开的一种WiFi漫游的网络接入方法的流程示意图。其中,图1所示的WiFi漫游的网络接入方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a network access method for WiFi roaming disclosed in an embodiment of the present invention. Wherein, the network access method for WiFi roaming shown in FIG. 1 may include the following steps:
101、监测终端设备是否漫游接入至第一无线访问节点AP。101. Monitor whether the terminal device roams to access the first wireless access node AP.
本发明实施例中,终端设备可为智能手机、智能手表、掌上电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、销售终端(Point of Sales,POS)等,本发明实施例后续不作复述。In the embodiment of the present invention, the terminal device may be a smart phone, a smart watch, a handheld computer, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a point of sale (Point of Sales, POS), etc. repeat.
图2为本发明实施例公开的一种终端设备在ESS中漫游的结构示意图。BSS通常由一个AP和多个通过该AP接入网络的STA组成,该AP不但提供STA之间通信的桥接功能,还提供STA与有线局域网的连接,以实现STA与AP建立的网络之外的STA的通信。而多个BSS互相连接即组成一个ESS,ESS支持漫游功能,STA可以在ESS内不同的BSS之间漫游,并且可以实现无缝连接。如图2所示,图中的ESS由BSS1与BSS2组成,用户所持的终端设备进入BSS2所覆盖的区域时,终端设备可从AP1漫游接入BSS2中的AP2,在此期间,其正在进行的网络服务不会被中断。FIG. 2 is a schematic structural diagram of a terminal device roaming in an ESS according to an embodiment of the present invention. A BSS usually consists of an AP and multiple STAs that access the network through the AP. The AP not only provides the bridging function for communication between STAs, but also provides the connection between the STA and the wired local area network, so as to realize the connection outside the network established by the STA and the AP. STA communication. Multiple BSSs are connected to each other to form an ESS. The ESS supports the roaming function, and the STA can roam between different BSSs in the ESS, and can realize seamless connection. As shown in Figure 2, the ESS in the figure is composed of BSS1 and BSS2. When the terminal device held by the user enters the area covered by BSS2, the terminal device can roam from AP1 to access AP2 in BSS2. During this period, its ongoing Network service will not be interrupted.
本发明实施例中,用户所持的终端设备接收到ESS中第一AP的网络信号时,判断第一AP的网络信号强于当前接入的AP,则漫游接入至第一AP。In the embodiment of the present invention, when the terminal device held by the user receives the network signal of the first AP in the ESS, it determines that the network signal of the first AP is stronger than the currently accessed AP, and then roams to access the first AP.
102、若终端设备漫游接入至第一AP,则测试接入第一AP后终端设备是否能访问网络。102. If the terminal device roams to access the first AP, test whether the terminal device can access the network after accessing the first AP.
终端设备漫游接入至第一AP后,第一AP虽然信号强度强于之前接入的AP,却可能由于系统设置等原因,导致终端设备不能通过该AP接入有线局域网。因此,在终端设备监测到其漫游接入至第一AP后,需要测试接入第一AP后终端设备是否能访问网络。After the terminal device roams to the first AP, although the signal strength of the first AP is stronger than that of the previously accessed AP, the terminal device may not be able to access the wired LAN through the AP due to system settings and other reasons. Therefore, after the terminal device monitors that it roams and accesses the first AP, it needs to test whether the terminal device can access the network after accessing the first AP.
作为一种可选的实施方式,终端设备发送测试数据帧至第一AP建立的网络之外的STA以使该STA返回应答帧;若终端设备接收到该STA返回的应答帧,则确定接入第一AP后终端设备能访问网络;若终端设备没有接收到上述应答帧,则确定接入第一AP后终端设备不能访问网络。As an optional implementation manner, the terminal device sends a test data frame to a STA outside the network established by the first AP, so that the STA returns a response frame; if the terminal device receives the response frame returned by the STA, it determines the access After the first AP, the terminal device can access the network; if the terminal device does not receive the above-mentioned response frame, it is determined that the terminal device cannot access the network after accessing the first AP.
103、若接入第一AP后终端设备不能访问网络,则将第一AP加入黑名单,以禁止终端设备接入第一AP。103. If the terminal device cannot access the network after accessing the first AP, add the first AP to a blacklist to prohibit the terminal device from accessing the first AP.
本发明实施例中,若接入第一AP后终端设备不能访问网络,则将第一AP加入黑名单,以禁止终端设备接入第一AP,避免终端设备在之后的漫游中再次接入第一AP导致无法正常接入网络。In this embodiment of the present invention, if the terminal device cannot access the network after accessing the first AP, the first AP is added to the blacklist to prohibit the terminal device from accessing the first AP and prevent the terminal device from accessing the first AP again in subsequent roaming. An AP cannot access the network normally.
除此之外,当同一AP连接的STA数量过多时,AP的吞吐量超过可以正常处理的范围,AP的丢包率会显著上升,造成数据传输速度下降。针对这样的情况,可通过如下的方式使终端设备选择接入STA数量少的AP进行接入:In addition, when the number of STAs connected to the same AP is too large, the throughput of the AP exceeds the normal processing range, and the packet loss rate of the AP will increase significantly, resulting in a decrease in the data transmission speed. In response to such a situation, the terminal device can choose to access the AP with a small number of STAs for access in the following ways:
若接入第一AP后终端设备能访问网络,终端设备监测通过第一AP访问网络的数据传输速度;若上述数据传输速度低于预设阈值,则向ESS中除第一AP以外的其他AP广播请求消息,以使其他AP返回其他AP连接的STA数量;之后选择其他AP中连接的STA数量最少的第三AP进行接入。If the terminal device can access the network after accessing the first AP, the terminal device monitors the data transmission speed of accessing the network through the first AP; if the above-mentioned data transmission speed is lower than the preset threshold, it will send the data to other APs in the ESS except the first AP. Broadcast the request message, so that other APs return the number of STAs connected to other APs; then select the third AP with the smallest number of STAs connected to other APs for access.
除此之外,当多个距离较近的AP均使用相同的信道进行数据传输时,会相互造成干扰,降低数据传输速度。针对这样的情况,可通过如下的方式使终端设备选择其他信道的AP进行接入:In addition, when multiple APs that are close to each other use the same channel for data transmission, they will interfere with each other and reduce the data transmission speed. In response to such a situation, the terminal device can select APs of other channels for access in the following ways:
若接入第一AP后终端设备能访问网络,终端设备监测通过第一AP访问网络的数据传输速度;若数据传输速度低于预设阈值,则获取第一AP的信道信息;根据第一AP的信道信息,选择ESS中与第一AP的信道不同的第四AP进行接入。If the terminal device can access the network after accessing the first AP, the terminal device monitors the data transmission speed of accessing the network through the first AP; if the data transmission speed is lower than the preset threshold, obtain the channel information of the first AP; according to the first AP channel information, select a fourth AP in the ESS that is different from the channel of the first AP for access.
由此可见,利用图1所描述的WiFi漫游的网络接入方法,终端设备在进行漫游时可以避免接入信号强却无法联网的AP,从而保证漫游网络服务的连续性。It can be seen that using the network access method for WiFi roaming described in FIG. 1 , the terminal device can avoid accessing APs with strong signals but unable to connect to the Internet during roaming, thereby ensuring the continuity of roaming network services.
请参阅图3,图3是本发明实施例公开的另一种WiFi漫游的网络接入方法的流程示意图。如图3所示,该方法可以包括以下步骤:Please refer to FIG. 3 , which is a schematic flowchart of another network access method for WiFi roaming disclosed by an embodiment of the present invention. As shown in Figure 3, the method may include the following steps:
301、监测终端设备是否漫游接入至第一无线访问节点AP。301. Monitor whether the terminal device roams to access the first wireless access node AP.
终端设备漫游接入至第一AP后,第一AP虽然信号强度强于之前接入的AP,却可能由于系统设置等原因,导致终端设备不能通过该AP接入有线局域网。因此,在终端设备监测到其漫游接入至第一AP后,需要测试接入第一AP后终端设备是否能访问网络。After the terminal device roams to the first AP, although the signal strength of the first AP is stronger than that of the previously accessed AP, the terminal device may not be able to access the wired LAN through the AP due to system settings and other reasons. Therefore, after the terminal device monitors that it roams and accesses the first AP, it needs to test whether the terminal device can access the network after accessing the first AP.
302、若终端设备漫游接入至第一AP,则测试接入第一AP后终端设备是否能访问网络。302. If the terminal device roams to access the first AP, test whether the terminal device can access the network after accessing the first AP.
作为一种可选的实施方式,终端设备发送测试数据帧至第一AP建立的网络之外的STA以使该STA返回应答帧;若终端设备接收到该STA返回的应答帧,则确定接入第一AP后终端设备能访问网络;若终端设备没有接收到上述应答帧,则确定接入第一AP后终端设备不能访问网络。As an optional implementation manner, the terminal device sends a test data frame to a STA outside the network established by the first AP, so that the STA returns a response frame; if the terminal device receives the response frame returned by the STA, it determines the access After the first AP, the terminal device can access the network; if the terminal device does not receive the above-mentioned response frame, it is determined that the terminal device cannot access the network after accessing the first AP.
303、若接入第一AP后终端设备不能访问网络,则将第一AP加入黑名单,以禁止终端设备接入第一AP。303. If the terminal device cannot access the network after accessing the first AP, add the first AP to a blacklist to prohibit the terminal device from accessing the first AP.
304、从扩展服务组ESS中获取除第一AP以外的其他AP的信号强度。304. Acquire the signal strengths of other APs except the first AP from the extended service group ESS.
305、选择上述ESS中除第一AP以外信号强度最强的第二AP进行接入。305. Select a second AP with the strongest signal strength other than the first AP in the foregoing ESS for access.
当终端设备确定接入第一AP后不能访问网络之后,终端设备从ESS中获取除第一AP以外的其他AP的信号强度,并从中选择信号强度最强的第二AP进行接入,以实现访问网络的需求。After the terminal device determines that it cannot access the network after accessing the first AP, the terminal device obtains the signal strengths of other APs except the first AP from the ESS, and selects the second AP with the strongest signal strength for access, so as to achieve The need to access the network.
除此之外,当同一AP连接的STA数量过多时,AP的吞吐量超过可以正常处理的范围,AP的丢包率会显著上升,造成数据传输速度下降。针对这样的情况,可通过如下的方式使终端设备选择接入STA数量少的AP进行接入:In addition, when the number of STAs connected to the same AP is too large, the throughput of the AP exceeds the normal processing range, and the packet loss rate of the AP will increase significantly, resulting in a decrease in the data transmission speed. In response to such a situation, the terminal device can choose to access the AP with a small number of STAs for access in the following ways:
若接入第二AP后终端设备能访问网络,终端设备监测通过第二AP访问网络的数据传输速度;若上述数据传输速度低于预设阈值,则向ESS中除第二AP以外的其他AP广播请求消息,以使其他AP返回其他AP连接的STA数量;之后选择其他AP中连接的STA数量最少的第三AP进行接入。If the terminal device can access the network after accessing the second AP, the terminal device monitors the data transmission speed of accessing the network through the second AP; if the data transmission speed is lower than the preset threshold, the terminal device will send the data to other APs in the ESS except the second AP. Broadcast the request message, so that other APs return the number of STAs connected to other APs; then select the third AP with the smallest number of STAs connected to other APs for access.
306、统计将第一AP加入上述黑名单的时间。306. Count the time when the first AP is added to the blacklist.
307、若将第一AP加入上述黑名单的时间超过预设时间阈值,则将第一AP从上述黑名单中删除。307. If the time for adding the first AP to the blacklist exceeds a preset time threshold, delete the first AP from the blacklist.
本发明实施例中,终端设备统计将第一AP加入黑名单的时间,若该时间超过预设时间阈值(举例来说,时间阈值设为24小时),则将第一AP从黑名单中删除;终端设备在之后的漫游中,可以再次尝试接入第一AP,避免因暂时的网络故障造成的失败接入,影响终端设备在第一AP修复后通过第一AP接入网络。In this embodiment of the present invention, the terminal device counts the time when the first AP is added to the blacklist, and if the time exceeds a preset time threshold (for example, the time threshold is set to 24 hours), the first AP is deleted from the blacklist ; During subsequent roaming, the terminal device can try to access the first AP again, so as to avoid the failed access caused by the temporary network failure, which affects the terminal device's access to the network through the first AP after the first AP is repaired.
由此可见,利用图3所描述的WiFi漫游的网络接入方法,终端设备在进行漫游时可以避免接入信号强却无法联网的AP,从而保证漫游网络服务的连续性。It can be seen that using the network access method for WiFi roaming described in FIG. 3 , the terminal device can avoid accessing APs with strong signals but unable to connect to the Internet when roaming, thereby ensuring the continuity of roaming network services.
请参阅图4,图4是本发明实施例公开的一种WiFi漫游的网络接入装置的结构示意图。如图4所示,该装置可以包括:Please refer to FIG. 4 , which is a schematic structural diagram of a network access device for WiFi roaming disclosed in an embodiment of the present invention. As shown in Figure 4, the apparatus may include:
第一监测单元401,用于监测终端设备是否漫游接入至第一无线访问节点AP。The first monitoring unit 401 is configured to monitor whether the terminal device roams to access the first wireless access node AP.
测试单元402,用于若终端设备漫游接入至第一AP,测试接入第一AP后终端设备是否能访问网络。The testing unit 402 is configured to test whether the terminal device can access the network after accessing the first AP if the terminal device roams to access the first AP.
作为一种可选的实施方式,测试单元402发送测试数据帧至第一AP建立的网络之外的STA以使该STA返回应答帧;若测试单元402接收到该STA返回的应答帧,则确定接入第一AP后终端设备能访问网络;若测试单元402没有接收到上述应答帧,则确定接入第一AP后终端设备不能访问网络。As an optional implementation manner, the testing unit 402 sends a test data frame to a STA outside the network established by the first AP, so that the STA returns a response frame; if the testing unit 402 receives the response frame returned by the STA, it determines After accessing the first AP, the terminal device can access the network; if the testing unit 402 does not receive the above-mentioned response frame, it is determined that the terminal device cannot access the network after accessing the first AP.
添加单元403,用于若接入第一AP后终端设备不能访问网络,将第一AP加入黑名单,以禁止终端设备接入第一AP。The adding unit 403 is configured to add the first AP to a blacklist if the terminal device cannot access the network after accessing the first AP, so as to prohibit the terminal device from accessing the first AP.
由此可见,利用图4所描述的WiFi漫游的网络接入装置,终端设备在进行漫游时可以避免接入信号强却无法联网的AP,从而保证漫游网络服务的连续性。It can be seen that using the WiFi roaming network access device described in FIG. 4 , the terminal device can avoid accessing APs with strong signals but unable to connect to the Internet when roaming, thereby ensuring the continuity of roaming network services.
请一并参阅图5,图5是本发明实施例公开的另一种WiFi漫游的网络接入装置的结构示意图。其中,图5所示的装置是由图4所示的装置进行优化得到的,与图4所示的装置相比,图5所示的装置还包括:Please also refer to FIG. 5. FIG. 5 is a schematic structural diagram of another WiFi roaming network access device disclosed in an embodiment of the present invention. The device shown in FIG. 5 is obtained by optimizing the device shown in FIG. 4 . Compared with the device shown in FIG. 4 , the device shown in FIG. 5 further includes:
第一获取单元404,用于从扩展服务组ESS中获取除第一AP以外的其他AP的信号强度。The first obtaining unit 404 is configured to obtain the signal strengths of other APs except the first AP from the extended service group ESS.
第一选择单元405,用于选择上述ESS中除第一AP以外信号强度最强的第二AP进行接入。The first selection unit 405 is configured to select the second AP with the strongest signal strength other than the first AP in the above-mentioned ESS for access.
统计单元406,用于统计将第一AP加入上述黑名单的时间。The counting unit 406 is configured to count the time when the first AP is added to the above-mentioned blacklist.
删除单元407,用于若将第一AP加入上述黑名单的时间超过预设时间阈值,将第一AP从上述黑名单中删除。The deletion unit 407 is configured to delete the first AP from the blacklist if the time for adding the first AP to the blacklist exceeds a preset time threshold.
本发明实施例中,统计单元406统计将第一AP加入黑名单的时间,若该时间超过预设时间阈值(举例来说,时间阈值设为24小时),则删除单元407将第一AP从黑名单中删除;终端设备在之后的漫游中,可以再次尝试接入第一AP,避免因暂时的网络故障造成的失败接入,影响终端设备在第一AP修复后通过第一AP接入网络。In this embodiment of the present invention, the statistics unit 406 counts the time when the first AP was added to the blacklist. If the time exceeds a preset time threshold (for example, the time threshold is set to 24 hours), the deletion unit 407 removes the first AP from the blacklist. Deleted from the blacklist; in subsequent roaming, the terminal device can try to access the first AP again, so as to avoid the failed access caused by temporary network failure, which affects the terminal device's access to the network through the first AP after the first AP is repaired. .
由此可见,利用图5所描述的WiFi漫游的网络接入装置,终端设备在进行漫游时可以避免接入信号强却无法联网的AP,从而保证漫游网络服务的连续性。It can be seen that using the network access device for WiFi roaming described in FIG. 5 , the terminal device can avoid accessing APs with strong signals but unable to connect to the Internet when roaming, thereby ensuring the continuity of roaming network services.
请参阅图6,图6为本发明实施例公开的一种终端设备600的结构示意图。如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal DigitalAssistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:Please refer to FIG. 6, which is a schematic structural diagram of a terminal device 600 disclosed in an embodiment of the present invention. As shown in FIG. 6 , for the convenience of description, only the part related to the embodiment of the present invention is shown, and the specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention. The terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, etc. The terminal is a mobile phone as an example:
图6示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路601、存储器602、输入单元603、显示单元604、传感器605、音频电路606、无线保真(wireless fidelity,WiFi)模块607、处理器608、以及电源609等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 6 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to FIG. 6 , the mobile phone includes: a radio frequency (RF) circuit 601 , a memory 602 , an input unit 603 , a display unit 604 , a sensor 605 , an audio circuit 606 , a wireless fidelity (WiFi) module 607 , and a processor 608 , and the power supply 609 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.
下面结合图6对手机的各个构成部件进行具体的介绍:Below in conjunction with Figure 6, the various components of the mobile phone are introduced in detail:
RF电路601可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器608处理;另外,将设计上行的数据发送给基站。通常,RF电路601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路601还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 601 can be used for receiving and sending signals during transmission and reception of information or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 608; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS) and the like.
存储器602可用于存储软件程序以及模块,处理器608通过运行存储在存储器602的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 602 can be used to store software programs and modules, and the processor 608 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 602 . The memory 602 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元603可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元603可包括触控面板6031以及其他输入设备6032。触控面板6031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6031上或在触控面板6031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板6031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器608,并能接收处理器608发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6031。除了触控面板6031,输入单元603还可以包括其他输入设备6032。具体地,其他输入设备6032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 603 can be used for receiving inputted numerical or character information, and generating key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 603 may include a touch panel 6031 and other input devices 6032 . The touch panel 6031, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 6031). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 6031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 608, and can receive the command sent by the processor 608 and execute it. In addition, the touch panel 6031 can be realized by various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 6031 , the input unit 603 may also include other input devices 6032 . Specifically, other input devices 6032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元604可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元604可包括显示面板6041,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6041。进一步的,触控面板6031可覆盖显示面板6041,当触控面板6031检测到在其上或附近的触摸操作后,传送给处理器608以确定触摸事件的类型,随后处理器608根据触摸事件的类型在显示面板6041上提供相应的视觉输出。虽然在图6中,触控面板6031与显示面板6041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板6031与显示面板6041集成而实现手机的输入和输出功能。The display unit 604 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 604 may include a display panel 6041. Optionally, the display panel 6041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED) or the like. Further, the touch panel 6031 may cover the display panel 6041. When the touch panel 6031 detects a touch operation on or near it, it transmits it to the processor 608 to determine the type of the touch event, and then the processor 608 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 6041. Although in FIG. 6, the touch panel 6031 and the display panel 6041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 6031 and the display panel 6041 can be integrated to form Realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板6041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 6041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 6041 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.
音频电路606、扬声器6061,传声器6062可提供用户与手机之间的音频接口。音频电路606可将接收到的音频数据转换后的电信号,传输到扬声器6061,由扬声器6061转换为声音信号输出;另一方面,传声器6062将收集的声音信号转换为电信号,由音频电路606接收后转换为音频数据,再将音频数据输出处理器608处理后,经RF电路601以发送给比如另一手机,或者将音频数据输出至存储器602以便进一步处理。The audio circuit 606, the speaker 6061, and the microphone 6062 can provide the audio interface between the user and the mobile phone. The audio circuit 606 can transmit the received audio data converted electrical signal to the speaker 6061, and the speaker 6061 converts it into a sound signal for output; on the other hand, the microphone 6062 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 606 After receiving, it is converted into audio data, and then the audio data is output to the processor 608 for processing, and then sent to, for example, another mobile phone through the RF circuit 601, or the audio data is output to the memory 602 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块607可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块607,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 607. It provides users with wireless broadband Internet access. Although FIG. 6 shows the WiFi module 607, it can be understood that it does not belong to the essential structure of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.
处理器608是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器608可包括一个或多个处理单元;优选的,处理器608可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器608中。The processor 608 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 602, and calling the data stored in the memory 602. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 608 may include one or more processing units; preferably, the processor 608 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 608 .
手机还包括给各个部件供电的电源609(比如电池),优选的,电源可以通过电源管理系统与处理器608逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power source 609 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 608 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.
前述实施例中,各步骤方法流程可以基于该终端设备的结构实现。其中应用层和操作系统内核均可视为处理器608的抽象化结构的组成部分。In the foregoing embodiments, the method flow of each step can be implemented based on the structure of the terminal device. The application layer and the operating system kernel can be regarded as the components of the abstract structure of the processor 608 .
在本发明实施例中,处理器608通过调用存储于存储器602中的程序代码,用于执行以下操作:In this embodiment of the present invention, the processor 608 is configured to perform the following operations by calling program codes stored in the memory 602:
监测终端设备是否漫游接入至第一无线访问节点AP;Monitoring whether the terminal device roams to access the first wireless access node AP;
若终端设备漫游接入至第一AP,则测试接入第一AP后终端设备是否能访问网络;If the terminal device roams to access the first AP, test whether the terminal device can access the network after accessing the first AP;
若接入第一AP后终端设备不能访问网络,则将第一AP加入黑名单,以禁止终端设备接入第一AP。If the terminal device cannot access the network after accessing the first AP, the first AP is added to the blacklist to prohibit the terminal device from accessing the first AP.
作为一种可选的实施方式,处理器608通过调用存储于存储器602中的程序代码,还用于执行以下操作:As an optional implementation manner, the processor 608 is further configured to perform the following operations by calling the program codes stored in the memory 602:
从扩展服务组ESS中获取除第一AP以外的其他AP的信号强度;Obtain the signal strengths of other APs except the first AP from the extended service group ESS;
选择上述ESS中除第一AP以外信号强度最强的第二AP进行接入。Select the second AP with the strongest signal strength in the ESS except the first AP for access.
作为一种可选的实施方式,处理器608通过调用存储于存储器602中的程序代码,还用于执行以下操作:As an optional implementation manner, the processor 608 is further configured to perform the following operations by calling the program codes stored in the memory 602:
统计将第一AP加入上述黑名单的时间;Count the time when the first AP was added to the above blacklist;
若将第一AP加入上述黑名单的时间超过预设时间阈值,则将第一AP从上述黑名单中删除。If the time for adding the first AP to the blacklist exceeds the preset time threshold, the first AP is deleted from the blacklist.
作为一种可选的实施方式,处理器608通过调用存储于存储器602中的程序代码,还用于执行以下操作:As an optional implementation manner, the processor 608 is further configured to perform the following operations by calling the program codes stored in the memory 602:
监测通过第一AP访问网络的数据传输速度;Monitor the data transmission speed of accessing the network through the first AP;
若上述数据传输速度低于预设阈值,则向上述ESS中除第一AP以外的其他AP广播请求消息,以使上述其他AP返回上述其他AP连接的STA数量;If the above-mentioned data transmission speed is lower than the preset threshold, broadcast a request message to other APs in the above-mentioned ESS except the first AP, so that the above-mentioned other APs return the number of STAs connected to the above-mentioned other APs;
选择上述其他AP中连接的STA数量最少的第三AP进行接入。The third AP with the least number of STAs connected to the other APs above is selected for access.
作为一种可选的实施方式,处理器608通过调用存储于存储器602中的程序代码,还用于执行以下操作:As an optional implementation manner, the processor 608 is further configured to perform the following operations by calling the program codes stored in the memory 602:
监测通过第一AP访问网络的上述数据传输速度;Monitoring the above-mentioned data transmission speed of accessing the network through the first AP;
若上述数据传输速度低于上述预设阈值,则获取第一AP的信道信息;If the above-mentioned data transmission speed is lower than the above-mentioned preset threshold, obtain the channel information of the first AP;
根据第一AP的信道信息,选择上述ESS中与第一AP的信道不同的第四AP进行接入。According to the channel information of the first AP, a fourth AP in the ESS that is different from the channel of the first AP is selected for access.
由此可见,利用图6所描述的终端设备,终端设备在进行漫游时可以避免接入信号强却无法联网的AP,从而保证漫游网络服务的连续性。It can be seen that using the terminal device described in FIG. 6 , the terminal device can avoid accessing an AP with strong signal but unable to connect to the network when roaming, thereby ensuring the continuity of the roaming network service.
值得注意的是,上述WiFi漫游的网络接入装置和终端设备实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above embodiments of the WiFi roaming network access device and terminal equipment, the units included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized ; In addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those of ordinary skill in the art can understand that all or part of the steps in the above method embodiments can be implemented by instructing relevant hardware through a program, and the corresponding program can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk, etc.
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above are only preferred specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the embodiments of the present invention. , all should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611120986.1A CN106604314B (en) | 2016-12-07 | 2016-12-07 | WiFi roaming network access method and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611120986.1A CN106604314B (en) | 2016-12-07 | 2016-12-07 | WiFi roaming network access method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106604314A CN106604314A (en) | 2017-04-26 |
CN106604314B true CN106604314B (en) | 2019-12-27 |
Family
ID=58597445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611120986.1A Active CN106604314B (en) | 2016-12-07 | 2016-12-07 | WiFi roaming network access method and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106604314B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10638409B2 (en) | 2017-05-19 | 2020-04-28 | 7Signal Solutions, Inc. | Wi-Fi roaming management |
CN107197460B (en) * | 2017-05-27 | 2021-06-22 | 惠州Tcl移动通信有限公司 | Network sharing method and system |
CN107360266B (en) * | 2017-06-16 | 2020-06-16 | 北京星网锐捷网络技术有限公司 | Method and system for realizing terminal STA roaming in large two-layer network |
CN107222898A (en) * | 2017-08-07 | 2017-09-29 | 广东欧珀移动通信有限公司 | Network switching method, mobile terminal and computer-readable storage medium |
CN107979863B (en) * | 2017-11-27 | 2020-03-17 | Oppo广东移动通信有限公司 | WiFi automatic connection method, system and terminal equipment |
CN107708175B (en) * | 2017-11-27 | 2020-02-14 | Oppo广东移动通信有限公司 | WiFi automatic connection method, system and terminal equipment |
CN108924861B (en) * | 2018-06-12 | 2022-02-22 | Oppo广东移动通信有限公司 | Wireless communication transmission method, device, mobile terminal and computer readable storage medium |
CN109120524B (en) | 2018-08-23 | 2020-12-08 | Oppo广东移动通信有限公司 | Link aggregation method and related equipment |
CN112449401B (en) * | 2019-08-31 | 2022-03-08 | Oppo广东移动通信有限公司 | WiFi roaming method and device, mobile terminal and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140328187A1 (en) * | 2012-01-02 | 2014-11-06 | Nokia Corporation | Network Connectivity Management in Wireless Apparatus |
CN102711084B (en) * | 2012-06-18 | 2016-08-31 | 杭州华三通信技术有限公司 | A kind of method and device realizing mobile terminal centralized Control and multichannel subordinate |
CN103973501A (en) * | 2014-05-28 | 2014-08-06 | 深圳市金立通信设备有限公司 | Method and device for managing wireless local area network access point |
CN105101355B (en) * | 2015-08-24 | 2018-07-03 | 合肥工业大学 | A kind of access point selection method based on user throughput estimation in wlan system |
CN106102100B (en) * | 2016-06-23 | 2019-12-31 | 深圳市百米生活股份有限公司 | Access type and migration type wireless load balancing method |
-
2016
- 2016-12-07 CN CN201611120986.1A patent/CN106604314B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106604314A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106604314B (en) | WiFi roaming network access method and terminal equipment | |
CN106686626B (en) | WiFi roaming setting method and terminal equipment | |
CN108632930B (en) | Network searching control method and device and mobile terminal | |
US10813058B2 (en) | Method for processing information and terminal device | |
CN107231159B (en) | Radio frequency interference processing method, device, storage medium and terminal | |
CN106851780B (en) | A method and terminal for network connection | |
WO2018103441A1 (en) | Network positioning method and terminal device | |
CN109005574B (en) | Cell selection method, mobile terminal and computer readable storage medium | |
CN105898839B (en) | Communication network cut-in method and device | |
CN106792993A (en) | Channel scanning method and mobile terminal | |
US11076354B2 (en) | Cell handover method and terminal device | |
CN106330211B (en) | LTE frequency band selection method and device | |
CN106028316B (en) | A network search method and device for international roaming | |
CN112040475A (en) | A communication connection method, system, terminal device and network device | |
CN106982459B (en) | Network scanning method and terminal equipment | |
CN106604277A (en) | Wireless network access method and mobile terminal | |
CN106714277A (en) | Network connection method and terminal | |
CN107608727A (en) | A kind of display methods of application program, mobile terminal and storage medium | |
CN107466081B (en) | Wireless switching method and terminal | |
CN110351702B (en) | System information area determining method, indicating method, terminal and network equipment | |
CN112821970B (en) | Electronic price tag channel selection method, electronic price tag channel selection equipment and computer storage medium | |
CN106851784B (en) | network scanning method and terminal equipment | |
CN104854952B (en) | A kind of control method and equipment of RRC connection | |
CN106658705B (en) | Network positioning method and terminal equipment | |
CN106686692B (en) | Channel scanning method, terminal device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |