CN108391305B - A WiFi hotspot selection method and terminal device - Google Patents
A WiFi hotspot selection method and terminal device Download PDFInfo
- Publication number
- CN108391305B CN108391305B CN201810160117.4A CN201810160117A CN108391305B CN 108391305 B CN108391305 B CN 108391305B CN 201810160117 A CN201810160117 A CN 201810160117A CN 108391305 B CN108391305 B CN 108391305B
- Authority
- CN
- China
- Prior art keywords
- wifi hotspot
- connection
- wifi
- hotspot
- weight
- 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
- 238000010187 selection method Methods 0.000 title claims abstract description 14
- 238000000034 method Methods 0.000 claims abstract description 31
- 238000004891 communication Methods 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 10
- 238000004590 computer program Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000002354 daily effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- 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 Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
本发明实施例提供一种WiFi热点选择方法及终端设备,应用于通信技术领域,用以解决现有的WiFi热点选择方法无法选择出最佳WiFi热点的问题。该方法包括:获取扫描到的至少一个可接入的WiFi热点的连接参数;其中,该连接参数包括预定时间段内每个WiFi热点的历史连接参数,所述历史连接参数包括每次成功连接该WiFi热点时的用户使用参数;根据每个WiFi热点的历史连接参数,确定每个WiFi热点的连接权重;根据每个WiFi热点的连接权重,从至少一个WiFi热点中,选择目标WiFi热点进行网络连接。
Embodiments of the present invention provide a WiFi hotspot selection method and a terminal device, which are applied to the field of communication technologies and are used to solve the problem that the existing WiFi hotspot selection method cannot select the best WiFi hotspot. The method includes: acquiring the scanned connection parameters of at least one accessible WiFi hotspot; wherein the connection parameters include historical connection parameters of each WiFi hotspot within a predetermined time period, and the historical connection parameters include each successful connection to the WiFi hotspot. User usage parameters for WiFi hotspots; determine the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot; select the target WiFi hotspot for network connection from at least one WiFi hotspot according to the connection weight of each WiFi hotspot .
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种WiFi热点选择方法及终端设备。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a method and terminal device for selecting a WiFi hotspot.
背景技术Background technique
随着无线网络技术的发展,越来越多的人在日常生活、工作中通过连接无线保真(Wireless Fidelity,WiFi)热点来建立无线网络环境。现今大部分城市中的各大公共场所内均设置有公共WiFi热点(例如,运营商提供的免费WiFi热点、商场、机场等公共场所提供的免费WiFi热点等)。随着无线网络环境复杂化,各大公共场所内通常会设置有2个或2个以上的公共WiFi热点,此时,便需要用户从中选择出一个公共WiFi热点进行连接。With the development of wireless network technology, more and more people establish a wireless network environment by connecting to wireless fidelity (Wireless Fidelity, WiFi) hotspots in daily life and work. Public WiFi hotspots (for example, free WiFi hotspots provided by operators, free WiFi hotspots provided in public places such as shopping malls, airports, etc.) are set in major public places in most cities today. With the complexity of the wireless network environment, two or more public WiFi hotspots are usually set up in major public places. At this time, the user needs to select a public WiFi hotspot for connection.
在现有技术中,移动终端会根据该移动终端的位置,进行WiFi热点扫描,然后,将所有扫描到的WiFi热点添加至WiFi热点列表中以供用户选择。In the prior art, the mobile terminal scans WiFi hotspots according to the location of the mobile terminal, and then adds all the scanned WiFi hotspots to a list of WiFi hotspots for the user to select.
然而,用户仅会从WiFi热点列表中随意选择出的一个WiFi热点进行连接,而该WiFi热点通常并不一定是最佳WiFi热点,其产生的WiFi信号很有可能出现WiFi信号不稳定等问题,进而导致用户由于网络异常(例如,网络频繁掉线、网络延迟、网络卡顿等),而无法正常上网。However, the user will only connect to a WiFi hotspot randomly selected from the list of WiFi hotspots, and this WiFi hotspot is usually not necessarily the best WiFi hotspot, and the generated WiFi signal is likely to have problems such as unstable WiFi signal. As a result, the user cannot access the Internet normally due to network abnormalities (eg, frequent network disconnection, network delay, network freeze, etc.).
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种WiFi热点选择方法及终端设备,用以解决现有的WiFi热点选择方法无法选择出最佳WiFi热点的问题。Embodiments of the present invention provide a WiFi hotspot selection method and a terminal device, which are used to solve the problem that the existing WiFi hotspot selection method cannot select the best WiFi hotspot.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,本发明实施例提供一种WiFi热点选择方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for selecting a WiFi hotspot, the method comprising:
获取扫描到的至少一个可接入的WiFi热点的连接参数;其中,所述连接参数包括预定时间段内每个WiFi热点的历史连接参数,所述历史连接参数包括每次成功连接所述WiFi热点时的用户使用参数;Acquire connection parameters of at least one accessible WiFi hotspot scanned; wherein the connection parameters include historical connection parameters of each WiFi hotspot within a predetermined time period, and the historical connection parameters include each successful connection to the WiFi hotspot User parameters at the time of use;
根据所述每个WiFi热点的历史连接参数,确定所述每个WiFi热点的连接权重;Determine the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot;
根据所述每个WiFi热点的连接权重,从所述至少一个WiFi热点中,确定目标WiFi热点进行网络连接。According to the connection weight of each WiFi hotspot, from the at least one WiFi hotspot, a target WiFi hotspot is determined for network connection.
第二方面,本发明实施例还提供了一种终端设备,该终端设备包括:In a second aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes:
获取模块,用于获取扫描到的至少一个可接入的WiFi热点的连接参数;其中,所述连接参数包括预定时间段内每个WiFi热点的历史连接参数,所述历史连接参数包括每次成功连接所述WiFi热点时的用户使用参数;an acquisition module, configured to acquire the scanned connection parameters of at least one accessible WiFi hotspot; wherein the connection parameters include historical connection parameters of each WiFi hotspot within a predetermined time period, and the historical connection parameters include each successful connection User usage parameters when connecting to the WiFi hotspot;
确定模块,用于根据所述获取模块获取的每个WiFi热点的历史连接参数,确定所述每个WiFi热点的连接权重;a determining module, configured to determine the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot acquired by the acquiring module;
选择模块,用于根据所述确定模块确定的每个WiFi热点的连接权重,从所述至少一个WiFi热点中,确定目标WiFi热点进行网络连接。The selection module is configured to determine, from the at least one WiFi hotspot, a target WiFi hotspot for network connection according to the connection weight of each WiFi hotspot determined by the determining module.
第三方面,本发明实施例提供了一种终端设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的WiFi热点选择方法的步骤。In a third aspect, an embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to achieve the The steps of the WiFi hotspot selection method described in one aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的WiFi热点选择方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for selecting a WiFi hotspot according to the first aspect is implemented. step.
在本发明实施例中,终端设备通过获取预定时间段内至少一个可接入的WiFi热点中每个WiFi热点的历史连接参数,由于每个WiFi热点的历史连接参数具体包括,每次成功连接该WiFi热点时该WiFi热点的用户使用参数,因此,根据每个WiFi热点的历史连接参数,所确定出的每个WiFi热点的连接权重能够表征该WiFi热点的可使用性,从而使得终端设备能够根据每个WiFi热点的连接权重从至少一个WiFi热点中,选择出一个最优的目标WiFi热点进行连接,提高了用户的上网体验度。In the embodiment of the present invention, the terminal device obtains the historical connection parameters of each WiFi hotspot in at least one accessible WiFi hotspot within a predetermined period of time. Since the historical connection parameters of each WiFi hotspot specifically include, each time the When a WiFi hotspot is used, the user usage parameters of the WiFi hotspot. Therefore, according to the historical connection parameters of each WiFi hotspot, the determined connection weight of each WiFi hotspot can represent the usability of the WiFi hotspot, so that the terminal device can The connection weight of each WiFi hotspot selects an optimal target WiFi hotspot for connection from at least one WiFi hotspot, which improves the user's surfing experience.
附图说明Description of drawings
图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of a possible Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种WiFi热点选择方法的流程示意图;2 is a schematic flowchart of a method for selecting a WiFi hotspot according to an embodiment of the present invention;
图3为本发明实施例提供的一种终端设备的结构示意图一;FIG. 3 is a schematic structural diagram 1 of a terminal device according to an embodiment of the present invention;
图4为本发明实施例提供的一种终端设备的结构示意图二。FIG. 4 is a second schematic structural diagram of a terminal device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of 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.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。如果不加说明,本文中的“多个”是指两个或两个以上。The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship. If not specified, "plurality" herein refers to two or more.
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。本发明实施例中,“的(英文:of)”,“相应的(英文:corresponding,relevant)”和“对应的(英文:corresponding)”有时可以混用,应当指出的是,在不强调其区别时,其所要表达的含义是一致的。本发明实施例中的“多个”的含义是指两个或两个以上。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner. In the embodiments of the present invention, "the (English: of)", "corresponding (English: corresponding, relevant)" and "corresponding (English: corresponding)" can sometimes be mixed. , its intended meaning is the same. The meaning of "plurality" in the embodiments of the present invention refers to two or more.
本发明实施例中的终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The terminal device in this embodiment of the present invention may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. ; The non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiment of the present invention is not specifically limited.
本发明实施例中的终端设备可以为具有操作系统的终端设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的WiFi热点选择方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the WiFi hotspot selection method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层),其中:As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In Figure 1, the architecture of the Android operating system includes four layers, namely: the application layer, the application framework layer, the system runtime layer and the kernel layer (specifically, the Linux kernel layer), where:
应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。The application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的WiFi热点选择方法的软件程序,从而使得该WiFi热点选择方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的WiFi热点选择方法。Taking the Android operating system as an example, in this embodiment of the present invention, a developer can develop a software program for implementing the WiFi hotspot selection method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The WiFi hotspot selection method can be run based on the Android operating system as shown in FIG. 1 . That is, the processor or the terminal device can implement the WiFi hotspot selection method provided by the embodiment of the present invention by running the software program in the Android operating system.
第一实施例:First embodiment:
下面结合图2对本发明实施例的WiFi热点选择方法进行说明,图2为本发明实施例提供的一种WiFi热点选择方法的流程示意图,该WiFi热点选择方法包括S201至S203:The following describes a method for selecting a WiFi hotspot according to an embodiment of the present invention with reference to FIG. 2 . FIG. 2 is a schematic flowchart of a method for selecting a WiFi hotspot provided by an embodiment of the present invention. The method for selecting a WiFi hotspot includes S201 to S203:
S201、终端设备获取扫描到的至少一个可接入的WiFi热点的连接参数。S201. The terminal device acquires the scanned connection parameters of at least one accessible WiFi hotspot.
在本发明实施例中,上述连接参数包括预定时间段内每个WiFi热点的历史连接参数,每个WiFi热点的历史连接参数包括该WiFi热点被成功连接的总次数以及每次成功连接该WiFi热点的用户使用参数。In the embodiment of the present invention, the above connection parameters include historical connection parameters of each WiFi hotspot within a predetermined time period, and the historical connection parameters of each WiFi hotspot include the total number of times the WiFi hotspot has been successfully connected and each time the WiFi hotspot is successfully connected of user usage parameters.
可选的,在本发明实施例中,每次成功连接该WiFi热点的用户使用参数包括:该WiFi热点产生的网络流量以及该WiFi热点产生的网络流量大于0所持续的连接时间。Optionally, in this embodiment of the present invention, the user usage parameters for each successful connection to the WiFi hotspot include: the network traffic generated by the WiFi hotspot and the connection time during which the network traffic generated by the WiFi hotspot is greater than 0.
在本发明实施例中,上述可接入的WiFi热点为终端设备当前可扫描到的可接入的WiFi热点。示例性的,本发明实施例中的可接入的WiFi热点通常包括两种:一种是免费WiFi热点,例如:运营商提供的免费WiFi热点、商家提供的免费WiFi热点以及好友分享的WiFi热点,一种是终端设备连接过的WiFi热点。In the embodiment of the present invention, the above-mentioned accessible WiFi hotspots are accessible WiFi hotspots currently scannable by the terminal device. Exemplarily, the accessible WiFi hotspots in this embodiment of the present invention generally include two types: one is free WiFi hotspots, such as: free WiFi hotspots provided by operators, free WiFi hotspots provided by merchants, and WiFi hotspots shared by friends. , one is the WiFi hotspot connected to the terminal device.
示例性的,上述免费WiFi热点也包括两种:一种是免费的无密码的WiFi热点,一种是免费的加密的WiFi热点。需要说明的是,上述免费的加密的WiFi热点虽然需要密码,但是,若该WiFi热点的密码终端设备或用户能够获取,所以可以认为该加密WiFi热点为免费的WiFi热点。对于终端设备连接过的WiFi热点,由于用户手动输入密码连接后,终端设备会将该密码存储,这样当终端设备再次扫描到该WiFi热点时,终端设备便可直接接入该WiFi热点,因此,针对终端设备连接过的WiFi热点,也可以认为其为可接入的WiFi热点。Exemplarily, the above-mentioned free WiFi hotspots also include two types: one is a free password-free WiFi hotspot, and the other is a free encrypted WiFi hotspot. It should be noted that although the above-mentioned free encrypted WiFi hotspot requires a password, if the password of the WiFi hotspot can be obtained by the terminal device or the user, the encrypted WiFi hotspot can be considered as a free WiFi hotspot. For the WiFi hotspot connected by the terminal device, after the user manually enters the password to connect, the terminal device will store the password, so that when the terminal device scans the WiFi hotspot again, the terminal device can directly access the WiFi hotspot. Therefore, For the WiFi hotspot that the terminal device has connected to, it can also be considered as an accessible WiFi hotspot.
示例性的,在本发明实施例中,终端设备可以将每次接入WiFi热点时该用户的使用数据存储至云数据库中,这样,针对某一WiFi热点,当获取该WiFi热点的连接参数时,终端设备便可根据该WiFi热点的网络参数(例如,WiFi热点名称、MAC地址等信息),从云数据库中,查询出所有接入该WiFi热点的用户的使用数据,例如,该用户每次接入该WiFi热点的使用时间,在该使用时间内该WiFi热点所产生的流量。进一步的,该云数据库中所存储的所有数据可以周期性(每天固定时间更新,即该云数据库中仅存储一天内每个用户使用WiFi热点的使用数据)或非周期性的(根据管理员的指令进行被动更新)进行更新。Exemplarily, in this embodiment of the present invention, the terminal device may store the user's usage data in the cloud database each time it accesses a WiFi hotspot. In this way, for a WiFi hotspot, when acquiring the connection parameters of the WiFi hotspot, , the terminal device can query the usage data of all users accessing the WiFi hotspot from the cloud database according to the network parameters of the WiFi hotspot (for example, the WiFi hotspot name, MAC address, etc.) The usage time of accessing the WiFi hotspot, and the traffic generated by the WiFi hotspot during the usage time. Further, all data stored in the cloud database can be periodically (updated at a fixed time every day, that is, only the usage data of each user using WiFi hotspots within one day is stored in the cloud database) or aperiodic (according to the administrator's instruction for passive update) to update.
可选的,在本发明实施例中,S201具体包括如下步骤:Optionally, in this embodiment of the present invention, S201 specifically includes the following steps:
S201a、终端设备获取WiFi热点列表。S201a, the terminal device obtains a list of WiFi hotspots.
示例性的,终端设备在接收到WiFi接入请求时,会对该终端设备的周边WiFi热点进行扫描,得到一个WiFi热点列表,该WiFi热点列表包括至少一个可被终端设备扫描到的WiFi热点。Exemplarily, when the terminal device receives a WiFi access request, it will scan the surrounding WiFi hotspots of the terminal device to obtain a list of WiFi hotspots, where the list of WiFi hotspots includes at least one WiFi hotspot that can be scanned by the terminal device.
S201b、终端设备遍历WiFi热点列表。S201b, the terminal device traverses the WiFi hotspot list.
其中,终端设备在遍历WiFi热点列表的过程中,对所述WiFi热点列表中的每个WiFi热点均执行下述操作:Wherein, in the process of traversing the WiFi hotspot list, the terminal device performs the following operations on each WiFi hotspot in the WiFi hotspot list:
步骤A:终端设备判断当前WiFi热点是否为可接入的WiFi热点。Step A: The terminal device determines whether the current WiFi hotspot is an accessible WiFi hotspot.
步骤B1:若当前WiFi热点为当前可接入的WiFi热点,则终端设备获取所述当前WiFi热点的连接参数,并继续遍历WiFi热点列表中当前WiFi热点的下一个WiFi热点;Step B1: if the current WiFi hotspot is the currently accessible WiFi hotspot, the terminal device obtains the connection parameters of the current WiFi hotspot, and continues to traverse the next WiFi hotspot of the current WiFi hotspot in the WiFi hotspot list;
步骤B2:若当前WiFi热点为当前不可接入的WiFi热点,则终端设备删除当前WiFi热点。Step B2: If the current WiFi hotspot is a currently inaccessible WiFi hotspot, the terminal device deletes the current WiFi hotspot.
在本发明实施例中,终端设备可以通过当前WiFi热点是否为免费WiFi热点,来确定当前WiFi热点是否为可接入的WiFi热点,也可以通过判断终端设备内部是否存储该当前WiFi热点的密码来确定当前WiFi热点是否为可接入的WiFi热点。In the embodiment of the present invention, the terminal device can determine whether the current WiFi hotspot is an accessible WiFi hotspot by whether the current WiFi hotspot is a free WiFi hotspot, and can also determine whether the current WiFi hotspot is stored in the terminal device by judging whether the password of the current WiFi hotspot is stored. Determine whether the current WiFi hotspot is an accessible WiFi hotspot.
在一种示例中,WiFi热点通常分为两大类,一类为家用WiFi热点,一类为公共WiFi热点,由于家用WiFi热点一般网速较快,且用户体验度较好,因此,本发明实施例可以将WiFi热点列表中的所有家用WiFi热点排除,然后将剩余的公共WiFi热点作为当前可接入的WiFi热点,来进一步获取这些公共WiFi热点的连接参数。示例性的,由于公共WiFi热点通常会在同一个时间内被多人连接,因此,本发明实施例可以通过判定该WiFi热点在同一时间内的连接次数是否大于特定阈值,来确定该WiFi热点是否为公共WiFi热点,若是,则判定该WiFi热点为可接入的WiFi热点,若否,则判定该WiFi热点为不可接入的WiFi热点。In an example, WiFi hotspots are usually divided into two categories, one is home WiFi hotspots, and the other is public WiFi hotspots. Since home WiFi hotspots generally have faster network speeds and better user experience, the present invention The embodiment may exclude all home WiFi hotspots in the WiFi hotspot list, and then use the remaining public WiFi hotspots as currently accessible WiFi hotspots to further acquire connection parameters of these public WiFi hotspots. Exemplarily, since a public WiFi hotspot is usually connected by multiple people at the same time, this embodiment of the present invention can determine whether the WiFi hotspot is connected by determining whether the number of connections of the WiFi It is a public WiFi hotspot. If yes, it is determined that the WiFi hotspot is an accessible WiFi hotspot. If not, it is determined that the WiFi hotspot is an inaccessible WiFi hotspot.
S202、终端设备根据每个WiFi热点的历史连接参数,确定每个WiFi热点的连接权重。S202. The terminal device determines the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot.
在本发明实施例中,上述的WiFi热点的连接权重用于表征该WiFi热点的可使用度,或者说,用于表征该WiFi热点的网络性能优劣。In the embodiment of the present invention, the above-mentioned connection weight of the WiFi hotspot is used to characterize the availability of the WiFi hotspot, or, in other words, to characterize the network performance of the WiFi hotspot.
可选的,在本发明实施例中,S202至少可以通过以下两种实现方式来实现:Optionally, in this embodiment of the present invention, S202 may be implemented by at least the following two implementation manners:
第一种可能的实现方式:The first possible implementation:
示例性的,S202具体包括如下步骤:Exemplarily, S202 specifically includes the following steps:
S202a、终端设备针对至少一个WiFi热点中的每个WiFi热点,均执行如下操作:S202a, the terminal device performs the following operations for each WiFi hotspot in the at least one WiFi hotspot:
步骤C:终端设备根据WiFi热点的总次数、第一次数以及第二次数,计算出所述WiFi热点的连接权重。Step C: The terminal device calculates the connection weight of the WiFi hotspot according to the total times, the first times and the second times of the WiFi hotspots.
其中,上述的第一次数为该WiFi热点产生的网络流量大于第一阈值的连接的次数,上述的第二次数为该WiFi热点产生的网络流量大于0所持续的连接时间大于第二阈值的连接的次数。Wherein, the above-mentioned first number of times is the number of times of connection that the network traffic generated by the WiFi hotspot is greater than the first threshold, and the above-mentioned second number of times is the connection time for which the network traffic generated by the WiFi hotspot is greater than 0 and the continuous connection time is greater than the second threshold. number of connections.
进一步可选的,上述的步骤C具体包括如下步骤:Further optional, the above-mentioned step C specifically includes the following steps:
步骤C1、终端设备根据该WiFi热点的总次数和第一次数,计算出该WiFi热点的第一权重分量,以及根据该WiFi热点的总次数和第二次数,计算出该WiFi热点的第二权重分量。Step C1, the terminal device calculates the first weight component of the WiFi hotspot according to the total times and the first times of the WiFi hotspot, and calculates the second weight of the WiFi hotspot according to the total times and the second times of the WiFi hotspot. weight component.
步骤C2、终端设备根据第一权重分量和第二权重分量,计算出该WiFi热点的连接权重。Step C2: The terminal device calculates the connection weight of the WiFi hotspot according to the first weight component and the second weight component.
其中,上述第一权重分量与第一次数成正比,或者说,该WiFi热点的总次数与第一次数的比值与第一权重分量成正比,上述第二权重分量与第二次数成正比,或者说,该WiFi热点的总次数与第二次数的比值与第二权重分量成正比。Wherein, the above-mentioned first weight component is proportional to the first number of times, or in other words, the ratio of the total number of times of the WiFi hotspot to the first number of times is proportional to the first weight component, and the above-mentioned second weight component is proportional to the second number of times , or in other words, the ratio of the total number of times of the WiFi hotspot to the second number of times is proportional to the second weight component.
第二种可能的实现方式:Second possible implementation:
示例性的,S202具体包括如下步骤:Exemplarily, S202 specifically includes the following steps:
S202b、终端设备针对至少一个WiFi热点中的每个WiFi热点,均执行如下操作:S202b, the terminal device performs the following operations for each WiFi hotspot in the at least one WiFi hotspot:
步骤D:终端设备根据该WiFi热点的总次数N、该WiFi热点每次被成功连接时该WiFi热点产生的网络流量及该WiFi热点产生的网络流量大于0所持续的连接时间以及预设公式,计算出该WiFi热点的连接权重β。Step D: the terminal device according to the total number of times N of the WiFi hotspot, the network traffic generated by the WiFi hotspot each time the WiFi hotspot is successfully connected, and the connection time that the network traffic generated by the WiFi hotspot is greater than 0 and the preset formula, Calculate the connection weight β of the WiFi hotspot.
在一种示例中,上述预设公式为: In one example, the above preset formula is:
其中,上述的Gi为该WiFi热点第i次被成功连接时该WiFi热点所产生的网络流量,上述的Ti为该WiFi热点第i次被成功连接时该WiFi热点产生的网络流量大于0所持续的连接时间,上述的Go为第三阈值,上述的T0为第四阈值,上述的a为网络速度的权值,上述的b为上网时间的权值,上述的a、b均为常量,N大于或等于1。Wherein, the above-mentioned G i is the network traffic generated by the WiFi hotspot when the WiFi hotspot is successfully connected for the i-th time, and the above-mentioned T i is the network traffic generated by the WiFi hotspot when the WiFi hotspot is successfully connected for the i-th time is greater than 0 The continuous connection time, the above-mentioned G o is the third threshold, the above-mentioned T 0 is the fourth threshold, the above-mentioned a is the weight of the network speed, the above-mentioned b is the weight of the Internet access time, and the above a and b are both. is a constant, and N is greater than or equal to 1.
示例性的,针对某一WiFi热点,终端设备计算出该WiFi热点每次被成功连接时的可使用性变量,然后对所有的可使用性变量相加取平均值,便可得到该WiFi热点的连接权重。Exemplarily, for a WiFi hotspot, the terminal device calculates the usability variables of the WiFi hotspot each time the WiFi hotspot is successfully connected, and then adds and averages all the usability variables to obtain the WiFi hotspot's availability variable. connection weight.
进一步可选的,上述的a+b=1。Further optionally, the above a+b=1.
进一步可选的,由于一般情况下,用户都对网络速度要求比较高,因此,可以设定b>a。Further optional, since users generally have relatively high requirements for network speed, b>a can be set.
应注意的是,上述的Go与T0可以根据实际应用户场景进行灵活设定,本发明对此不作限定。It should be noted that the above-mentioned Go and T 0 can be flexibly set according to actual user scenarios, which are not limited in the present invention.
举例说明,假设上述的T0=10min,Go=10M,则表示某一WiFi热点某次被成功连接后产生了网络流量的时间超过10min,则表示该WiFi热点为可用WiFi热点,以及某一WiFi热点某次被成功连接后产生的网络流量的超过10M时,则表示该WiFi热点为可用WiFi热点。For example, assuming the above T 0 =10min, Go =10M, it means that a certain WiFi hotspot generates network traffic for more than 10min after a certain successful connection, it means that the WiFi hotspot is an available WiFi hotspot, and a certain WiFi hotspot is an available WiFi hotspot. When the network traffic generated after a WiFi hotspot is successfully connected exceeds 10M, it means that the WiFi hotspot is an available WiFi hotspot.
对应的公式为: The corresponding formula is:
S203、终端设备根据每个WiFi热点的连接权重,从至少一个WiFi热点中,选择出目标WiFi热点进行网络连接。S203: The terminal device selects a target WiFi hotspot from at least one WiFi hotspot for network connection according to the connection weight of each WiFi hotspot.
在本发明实施例中,终端设备在获取到每个WiFi热点的连接权重后,便可将连接权重最大的WiFi热点作为目标WiFi热点,然后接入该WiFi热点。或者,终端设备在获取到当前可接入的WiFi热点列表后,将该WiFi热点列表中连接权重小于第五阈值(例如β<0.5)的WiFi热点删除,显示更新后的WiFi热点列表以供用户选择。In the embodiment of the present invention, after obtaining the connection weight of each WiFi hotspot, the terminal device can use the WiFi hotspot with the largest connection weight as the target WiFi hotspot, and then access the WiFi hotspot. Or, after acquiring the currently accessible WiFi hotspot list, the terminal device deletes the WiFi hotspots whose connection weight is less than the fifth threshold (for example, β<0.5) in the WiFi hotspot list, and displays the updated WiFi hotspot list for the user to use. choose.
本发明实施例提供的WiFi热点选择方法,终端设备通过获取预定时间段内至少一个可接入的WiFi热点中每个WiFi热点的历史连接参数,由于每个WiFi热点的历史连接参数具体包括,每次成功连接该WiFi热点时该WiFi热点的用户使用参数,因此,根据每个WiFi热点的历史连接参数,所确定出的每个WiFi热点的连接权重能够表征该WiFi热点的可使用性,从而使得终端设备能够根据每个WiFi热点的连接权重从至少一个WiFi热点中,选择出一个最优的目标WiFi热点进行连接,提高了用户的上网体验度。In the WiFi hotspot selection method provided by the embodiment of the present invention, the terminal device obtains the historical connection parameters of each WiFi hotspot in at least one accessible WiFi hotspot within a predetermined time period, because the historical connection parameters of each WiFi hotspot specifically include: The user usage parameters of the WiFi hotspot when the WiFi hotspot is successfully connected for the second time. Therefore, according to the historical connection parameters of each WiFi hotspot, the determined connection weight of each WiFi hotspot can characterize the availability of the WiFi hotspot, so that the The terminal device can select an optimal target WiFi hotspot for connection from at least one WiFi hotspot according to the connection weight of each WiFi hotspot, which improves the user's Internet experience.
第二实施例:Second embodiment:
图3为实现本发明实施例提供的一种终端设备的可能的结构示意图,如图3所示,终端设备300包括获取模块301、确定模块302和选择模块303,其中:3 is a schematic diagram of a possible structure for implementing a terminal device provided by an embodiment of the present invention. As shown in FIG. 3 , the
获取模块301,用于获取扫描到的至少一个可接入的WiFi热点的连接参数;其中,该连接参数包括预定时间段内每个WiFi热点的历史连接参数,该历史连接参数包括每次成功连接该WiFi热点时的用户使用参数。The
确定模块302,用于根据获取模块301获取的每个WiFi热点的历史连接参数,确定每个WiFi热点的连接权重;The determining
选择模块303,用于根据确定模块302确定的每个WiFi热点的连接权重,从至少一个WiFi热点中,选择目标WiFi热点进行网络连接。The selecting
可选的,上述历史连接参数还包括WiFi热点被成功连接的总次数;上述用户使用参数包括:WiFi热点产生的网络流量及WiFi热点产生的网络流量大于0所持续的连接时间。Optionally, the above-mentioned historical connection parameters also include the total number of times the WiFi hotspot has been successfully connected; the above-mentioned user usage parameters include: the network traffic generated by the WiFi hotspot and the connection time during which the network traffic generated by the WiFi hotspot is greater than 0.
可选的,确定模块302,具体用于:针对至少一个WiFi热点中的每个WiFi热点,均执行如下操作:根据WiFi热点的总次数、第一次数以及第二次数,计算出该WiFi热点的连接权重;其中,上述第一次数为上述网络流量大于第一阈值的连接的次数,上述第二次数为上述连接时间大于第二阈值的连接的次数。Optionally, the determining
进一步可选的,确定模块302,具体用于:根据WiFi热点的总次数和第一次数,计算出该WiFi热点的第一权重分量,以及根据WiFi热点的总次数和第二次数,计算出该WiFi热点的第二权重分量;根据第一权重分量和第二权重分量,计算出该WiFi热点的连接权重;其中,第一权重分量与第一次数成正比,第二权重分量与第二次数成正比。Further optionally, the determining
可选的,所述确定模块302,具体用于:针对至少一个WiFi热点中的每个WiFi热点,均执行如下操作:根据该WiFi热点的总次数N、该WiFi热点产生的网络流量及该WiFi热点产生的网络流量大于0所持续的连接时间以及预设公式,计算出该WiFi热点的连接权重β;Optionally, the determining
其中,上述预设公式为:上述Gi为该WiFi热点第i次被成功连接时该WiFi热点产生的网络流量,上述Ti为该WiFi热点第i次被成功连接时该WiFi热点产生的网络流量大于0所持续的连接时间,Go、T0、a、b为常量,N大于或等于1。Among them, the above preset formula is: The above-mentioned G i is the network traffic generated by the WiFi hotspot when the WiFi hotspot is successfully connected for the i-th time, and the above-mentioned T i is the connection time that the network traffic generated by the WiFi hotspot is greater than 0 when the WiFi hotspot is successfully connected for the i-th time. , G o , T 0 , a, b are constants, and N is greater than or equal to 1.
本发明实施例提供的终端设备,终端设备通过获取预定时间段内至少一个可接入的WiFi热点中每个WiFi热点的历史连接参数,由于每个WiFi热点的历史连接参数具体包括,每次成功连接该WiFi热点时该WiFi热点的用户使用参数,因此,根据每个WiFi热点的历史连接参数,所确定出的每个WiFi热点的连接权重能够表征该WiFi热点的可使用性,从而使得终端设备能够根据每个WiFi热点的连接权重从至少一个WiFi热点中,选择出一个最优的目标WiFi热点进行连接,提高了用户的上网体验度。In the terminal device provided by the embodiment of the present invention, the terminal device obtains the historical connection parameters of each WiFi hotspot in at least one accessible WiFi hotspot within a predetermined period of time. Since the historical connection parameters of each WiFi hotspot specifically include, each successful User usage parameters of the WiFi hotspot when connecting the WiFi hotspot. Therefore, according to the historical connection parameters of each WiFi hotspot, the determined connection weight of each WiFi hotspot can represent the usability of the WiFi hotspot, so that the terminal device An optimal target WiFi hotspot can be selected from at least one WiFi hotspot for connection according to the connection weight of each WiFi hotspot, which improves the user's Internet experience.
本发明实施例提供的终端设备能够实现上述方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。The terminal device provided in the embodiments of the present invention can implement each process implemented by the terminal device in the foregoing method embodiments, and to avoid repetition, details are not described herein again.
第三实施例:Third embodiment:
图4为实现本发明各个实施例的一种终端设备的硬件结构示意图,该终端设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图4中示出的终端设备100的结构并不构成对终端设备的限定,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备100包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。4 is a schematic diagram of the hardware structure of a terminal device implementing various embodiments of the present invention. The
其中,处理器110,用于:获取扫描到的至少一个可接入的WiFi热点的连接参数;其中,该连接参数包括预定时间段内每个WiFi热点的历史连接参数,历史连接参数包括每次成功连接该WiFi热点时的用户使用参数;根据每个WiFi热点的历史连接参数,确定每个WiFi热点的连接权重根据确定的每个WiFi热点的连接权重,从至少一个WiFi热点中,选择目标WiFi热点进行网络连接。The
本发明实施例提供的终端设备,终端设备通过获取预定时间段内至少一个可接入的WiFi热点中每个WiFi热点的历史连接参数,由于每个WiFi热点的历史连接参数具体包括,每次成功连接该WiFi热点时该WiFi热点的用户使用参数,因此,根据每个WiFi热点的历史连接参数,所确定出的每个WiFi热点的连接权重能够表征该WiFi热点的可使用性,从而使得终端设备能够根据每个WiFi热点的连接权重从至少一个WiFi热点中,选择出一个最优的目标WiFi热点进行连接,提高了用户的上网体验度。In the terminal device provided by the embodiment of the present invention, the terminal device obtains the historical connection parameters of each WiFi hotspot in at least one accessible WiFi hotspot within a predetermined period of time. Since the historical connection parameters of each WiFi hotspot specifically include, each successful User usage parameters of the WiFi hotspot when connecting the WiFi hotspot. Therefore, according to the historical connection parameters of each WiFi hotspot, the determined connection weight of each WiFi hotspot can represent the usability of the WiFi hotspot, so that the terminal device An optimal target WiFi hotspot can be selected from at least one WiFi hotspot for connection according to the connection weight of each WiFi hotspot, which improves the user's Internet experience.
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
终端设备100通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与终端设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The
终端设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在终端设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The
用户输入单元107可用于接收输入的数字或字符信息,以及产生与终端设备100的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图4中,触控面板1071与显示面板1061是作为两个独立的部件来实现终端设备100的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现终端设备100的输入和输出功能,具体此处不做限定。Further, the
接口单元108为外部装置与终端设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备100内的一个或多个元件或者可以用于在终端设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device to the
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器110是终端设备100的控制中心,利用各种接口和线路连接整个终端设备100的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行终端设备100的各种功能和处理数据,从而对终端设备100进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The
终端设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,终端设备100包括一些未示出的功能模块,在此不再赘述。In addition, the
第四实施例:Fourth embodiment:
可选的,本发明实施例还提供一种终端设备,包括处理器,存储器,存储在存储器上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器执行时实现上述WiFi热点选择方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides a terminal device, including a processor, a memory, a computer program stored in the memory and running on the
第五实施例:Fifth embodiment:
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述WiFi热点选择方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiment of the WiFi hotspot selection method is implemented, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810160117.4A CN108391305B (en) | 2018-02-26 | 2018-02-26 | A WiFi hotspot selection method and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810160117.4A CN108391305B (en) | 2018-02-26 | 2018-02-26 | A WiFi hotspot selection method and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108391305A CN108391305A (en) | 2018-08-10 |
CN108391305B true CN108391305B (en) | 2020-09-01 |
Family
ID=63068540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810160117.4A Active CN108391305B (en) | 2018-02-26 | 2018-02-26 | A WiFi hotspot selection method and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108391305B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111010724B (en) * | 2019-12-21 | 2022-08-16 | 锐捷网络股份有限公司 | Terminal access method and device based on WLAN |
CN111866994B (en) * | 2020-07-26 | 2021-02-05 | 广云物联网科技(广州)有限公司 | Method and device for rapidly distributing network at hot spot |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105050118A (en) * | 2015-07-31 | 2015-11-11 | 腾讯科技(深圳)有限公司 | Wi-Fi hotspot connecting method and device |
CN106612535A (en) * | 2017-01-17 | 2017-05-03 | 广东欧珀移动通信有限公司 | Method and device for connecting to WIFI hotspot |
CN106658652A (en) * | 2016-12-07 | 2017-05-10 | 广东欧珀移动通信有限公司 | Method and device for connecting to WiFi hotspot |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7363379B2 (en) * | 2003-09-30 | 2008-04-22 | Intel Corporation | Access point association history in wireless networks |
KR100736046B1 (en) * | 2005-09-07 | 2007-07-06 | 삼성전자주식회사 | A method and apparatus for guiding a secure access point to join using existing access records |
TWI394475B (en) * | 2009-03-24 | 2013-04-21 | Inst Information Industry | Intelligent hotspot connection systems and methods, and computer program products thereof |
CN106550366A (en) * | 2016-11-07 | 2017-03-29 | 广东欧珀移动通信有限公司 | An access control method and mobile terminal |
-
2018
- 2018-02-26 CN CN201810160117.4A patent/CN108391305B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105050118A (en) * | 2015-07-31 | 2015-11-11 | 腾讯科技(深圳)有限公司 | Wi-Fi hotspot connecting method and device |
CN106658652A (en) * | 2016-12-07 | 2017-05-10 | 广东欧珀移动通信有限公司 | Method and device for connecting to WiFi hotspot |
CN106612535A (en) * | 2017-01-17 | 2017-05-03 | 广东欧珀移动通信有限公司 | Method and device for connecting to WIFI hotspot |
Also Published As
Publication number | Publication date |
---|---|
CN108391305A (en) | 2018-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109699059A (en) | A kind of residence reselecting and terminal device | |
CN110995923A (en) | Screen projection control method and electronic equipment | |
CN111459355A (en) | Content sharing method and electronic device | |
CN110913066A (en) | A display method and electronic device | |
CN110611580B (en) | Cell management method, terminal and network side equipment | |
CN110209323A (en) | A kind of method and terminal device showing unread message | |
CN108712555B (en) | A method and device for sending alarm information | |
CN110752981A (en) | Information control method and electronic equipment | |
CN111328119A (en) | A kind of voice service processing method and electronic device | |
CN109979045A (en) | A kind of information output method and terminal device | |
CN110597437A (en) | Screen capture method and terminal device | |
CN110366182A (en) | A data transmission method and terminal equipment | |
CN108170559A (en) | A kind of data back up method and terminal | |
EP4132111A1 (en) | Data transmission method and electronic device | |
CN111399792B (en) | A content sharing method and electronic device | |
CN110505660B (en) | A network rate adjustment method and terminal equipment | |
CN110167006B (en) | Method for controlling application program to use SIM card and terminal equipment | |
CN111597540A (en) | Login method of application program, electronic device and readable storage medium | |
CN108391305B (en) | A WiFi hotspot selection method and terminal device | |
CN109343900B (en) | Permission configuration method and terminal | |
CN109743469B (en) | VOLTE-based communication method and mobile terminal | |
CN111615216A (en) | A random access method and terminal | |
CN109379552A (en) | A content display method and terminal device | |
CN110493831B (en) | Power determination method and terminal equipment | |
CN108616648A (en) | A kind of equipment room relation establishing method and mobile terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |