一种处理接入 WLAN的方法与终端 Method and terminal for processing access to WLAN
技术领域 Technical field
本发明涉及 WLAN (无线局域网)领域, 尤其涉及到一种处理接入 WLAN 的方法与终端。 背景技术 The present invention relates to the field of WLAN (Wireless Local Area Network), and in particular, to a method and terminal for processing access to a WLAN. Background technique
随着智能终端的普及, 电信运营商布局了大量的 WLAN "热点,, 。 无线 局域网络(WLAN) )相当便利的数据传输系统, 它利用射频的技术, 取代旧 式碍手碍脚的双绞铜线 (Coaxial ) 所构成的局域网络, 使得无线局域网络能 利用简单的存取架构让用户透过它, 达到 "信息随身化、 便利走天下" 的理 想境界。 WLAN 有多种配置方式, 能够根据实际需要灵活选择。 这样, WLAN能够胜任只有几个用户的小型局域网到上千用户的大型网络, 并且能 够提供像 "漫游 (Roaming)" 等有线网络无法提供的特性。 With the popularity of smart terminals, telecom operators have deployed a large number of WLAN "hotspots, wireless local area networks (WLANs)) quite convenient data transmission system, which uses radio frequency technology to replace the old-fashioned twisted-pair copper wire (Coaxial The local area network, which enables the wireless local area network to use the simple access architecture, allows users to achieve the ideal state of "information and convenience". WLAN has multiple configurations and can be flexibly adapted to actual needs. In this way, the WLAN can handle a large network of only a few users from a small LAN to thousands of users, and can provide features that are not available in wired networks such as "Roaming".
由于 WLAN 具有多方面的优点, 其发展十分迅速。 在最近几年里, Due to the many advantages of WLAN, its development is very rapid. In recent years,
WLAN已经在医院、 商店、 工厂和学校等不适合网络布线的场合得到了广泛 的应用。 它是对 GPRS ( General Packet Radio Service , 通用无线分组业务)模 式的一种有效补充, 具有资费低、 传输快速等优点。 目前多模、 智能手机用 户都希望优先接入 WLAN, 但它在给用户带来了便捷的无线服务的同时, 也 存在以下一些弊端。 WLANs have been widely used in hospitals, stores, factories, and schools where network cabling is not suitable. It is an effective complement to the GPRS (General Packet Radio Service) mode, which has the advantages of low tariff and fast transmission. At present, multi-mode and smart phone users want to access the WLAN preferentially, but it also brings the following disadvantages while bringing convenient wireless services to users.
目前的 WLA 接入点有中国移动、 中国电信、 中国联通以及各种场合 的。 名目繁多的接入点名称不仅需要用户有一定的专业知识, 而且不同类型 的接入点在身份认证等接入过程较繁瑣。 对用户来说目前的 WLAN接入点 存在以下几点弊端: (1)当前扫描到的 WLAN接入点很多, 名目繁杂, 不利 于记忆。 (2)接入点未根据功能和使用情况进行有效分类, 用户对哪些有用、 哪些没用不容易区分清楚, 目前的实现方式是以 WLAN信号强度扫描列 出, 但信号强的不一定对用户来说是最有用的。 (3)在同时有几个有效接入点 时, 不能根据用户喜好和实践需求动态推荐接入性能最好的热点。
发明内容 The current WLA access points are China Mobile, China Telecom, China Unicom and various occasions. A wide variety of access point names not only require users to have certain expertise, but different types of access points are more cumbersome in access procedures such as identity authentication. For the user, the current WLAN access points have the following disadvantages: (1) There are many WLAN access points scanned at present, and the names are complicated, which is not conducive to memory. (2) The access point is not effectively classified according to the function and usage. The user is useful for what is useful and which is useless. The current implementation is based on the WLAN signal strength scan, but the signal is not necessarily for the user. It is the most useful. (3) When there are several effective access points at the same time, it is not possible to dynamically recommend the hottest access performance hotspot according to user preferences and practical needs. Summary of the invention
本发明实施例要解决的技术问题是提供一种处理接入 WLAN 的方法与 终端, 以根据用户喜好和实践需求接入 WLAN。 The technical problem to be solved by the embodiments of the present invention is to provide a method and a terminal for processing access to a WLAN, so as to access the WLAN according to user preferences and practical requirements.
为了解决上述技术问题, 本发明实施例提供了一种处理接入无线局域网 的方法, 包括: In order to solve the above technical problem, an embodiment of the present invention provides a method for processing access to a wireless local area network, including:
设置无线局域网接入点的优先级; Set the priority of the WLAN access point;
扫描无线局域网时, 依据所述优先级进行扫描接入无线局域网。 When scanning the wireless local area network, scanning is performed according to the priority level to access the wireless local area network.
进一步地, 上述方法还具有下面特点: 所述设置无线局域网接入点的优 先级包括, Further, the above method further has the following features: the priority of setting the WLAN access point includes:
对指定时间段内使用过的无线局域网接入点进行统计; Statistics on WLAN access points used during the specified time period;
根据使用次数或使用流量设置无线局域网接入点的优先级。 Set the priority of the WLAN access point based on the number of uses or usage flow.
进一步地, 上述方法还具有下面特点: 所述扫描无线局域网时, 依据所 述优先级进行扫描接入无线局域网包括, Further, the foregoing method further has the following features: when scanning the wireless local area network, scanning for accessing the wireless local area network according to the priority level includes:
扫描无线局域网时, 获取当前的时间; Get the current time when scanning the wireless LAN;
检测当前扫描到的无线局域网接入点是否包括在所述指定时间段内该时 间所使用的无线局域网接入点, 如包括且该时间所使用的无线局域网接入点 满足指定优先级, 则接入该时间所使用的无线局域网接入点。 Detecting whether the currently scanned WLAN access point includes a WLAN access point used at the time within the specified time period, and if the WLAN access point used at the time meets the specified priority, then Enter the wireless LAN access point used at that time.
进一步地, 上述方法还具有下面特点: 所述设置无线局域网接入点的优 先级还包括, Further, the foregoing method further has the following features: the setting of the priority of the WLAN access point further includes:
对不同优先级的无线局域网接入点进行区分标记。 Differentiate the WLAN access points of different priorities.
进一步地, 上述方法还具有下面特点: 所述设置无线局域网接入点的优 先级还包括, Further, the foregoing method further has the following features: the setting of the priority of the WLAN access point further includes:
对指定的优先级较低的无线局域网接入点, 或对用户无效的无线局域网 接入点进行屏蔽。 Block the specified lower priority WLAN access point or the wireless LAN access point that is not valid for the user.
进一步地, 上述方法还具有下面特点: 所述接入无线局域网后, 还包 括:
记录当前接入的无线局域网接入点和接入时间。 Further, the foregoing method further has the following features: after the accessing the wireless local area network, the method further includes: Record the currently accessed WLAN access point and access time.
为了解决上述问题, 本发明实施例还提供了一种终端, 包括: 第一模块, 用于设置无线局域网接入点的优先级; In order to solve the above problem, the embodiment of the present invention further provides a terminal, including: a first module, configured to set a priority of a wireless local area network access point;
第二模块, 用于扫描无线局域网时, 根据所述优先级顺序进行扫描接入 无线局域网。 The second module, when scanning the wireless local area network, performs scanning to access the wireless local area network according to the priority order.
进一步地, 上述终端还具有下面特点: 所述第一模块包括, Further, the foregoing terminal further has the following features: the first module includes
第一单元, 用于对指定时间内使用过的无线局域网接入点进行统计; 第二单元, 用于根据使用次数或使用流量设置无线局域网接入点的优先 级。 The first unit is configured to perform statistics on the wireless local area network access points used in the specified time; the second unit is configured to set the priority of the wireless local area network access point according to the number of uses or the usage flow.
进一步地, 上述终端还具有下面特点: 所述第二模块包括, Further, the foregoing terminal further has the following features:
第一单元, 用于扫描无线局域网时, 获取当前的时间; The first unit is used to scan the wireless local area network, and obtain the current time;
第二单元, 用于检测当前扫描到的无线局域网接入点是否包括在所述指 定时间段内该时间所使用的无线局域网接入点, 如包括且该时间所使用的无 线局域网接入点满足指定优先级, 则接入所述该时间所使用的无线局域网接 入点。 a second unit, configured to detect whether the currently scanned WLAN access point includes a WLAN access point used at the time during the specified time period, if the WLAN access point included and used at the time is satisfied When the priority is specified, the WLAN access point used at the time is accessed.
进一步地, 上述终端还具有下面特点: 所述第一模块包括, Further, the foregoing terminal further has the following features: the first module includes
第三单元, 用于对不同优先级的无线局域网接入点进行区分标记。 进一步地, 上述终端还具有下面特点: 所述第一模块包括, The third unit is configured to perform differential marking on different priority WLAN access points. Further, the foregoing terminal further has the following features: the first module includes
第四单元, 用于对指定的优先级较低的无线局域网接入点, 或对用户无 效的无线局域网接入点进行屏蔽。 The fourth unit is used to shield the specified lower priority WLAN access point or the wireless LAN access point that is invalid for the user.
进一步地, 上述终端还具有下面特点: 所述第二模块还包括, 第三单元, 用于记录当前接入的无线局域网接入点和接入时间。 Further, the foregoing terminal further has the following features: The second module further includes: a third unit, configured to record a currently accessed wireless local area network access point and an access time.
综上, 本发明实施例提供一种处理接入 WLAN 的方法与终端, 可以根 据用户喜好和实践需求接入 WLAN, 可以记录当前用户使用 WLAN热点情 况, 动态的推荐用户使用最多、 性能最好的 WLAN热点, 可节约用户接入 时间, 可使终端界面更加简洁友好, 提升用户体验度和终端品牌价值。
附图概述 In summary, the embodiment of the present invention provides a method and a terminal for processing access to a WLAN, which can access the WLAN according to user preferences and practical requirements, and can record the current user's use of the WLAN hotspot, and the dynamic recommended user uses the most and performs the best. The WLAN hotspot can save user access time, make the terminal interface more simple and friendly, and enhance user experience and terminal brand value. BRIEF abstract
结合参考附图进行的详细描述, 本发明的特点和优势将会变得更加清楚 可见: The features and advantages of the present invention will become more apparent from the detailed description of the appended claims.
图 1为本发明实施例的一种处理接入无线局域网的方法的流程图; 图 2为本发明实施例的终端的示意图。 本发明的较佳实施方式 FIG. 1 is a flowchart of a method for processing access to a wireless local area network according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a terminal according to an embodiment of the present invention. Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。 Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
图 1为本发明实施例的一种处理接入无线局域网的方法的流程图, 如图 FIG. 1 is a flowchart of a method for processing access to a wireless local area network according to an embodiment of the present invention, as shown in FIG.
1所示, 本实施例的方法包括: As shown in Figure 1, the method of this embodiment includes:
511、 设置无线局域网接入点的优先级; 511. Set a priority of the WLAN access point.
512、 扫描无线局域网时, 依据所述优先级进行扫描接入无线局域网。 这样, 根据本实施例的方法可以以根据用户喜好和实践需求接入 WLA o 512. Scan the wireless local area network according to the priority level when scanning the wireless local area network. Thus, the method according to the embodiment can access the WLA according to user preferences and practical needs.
在本实施例中, 用户首先通过 WLAN模块中设置用户想用的达到的效 果, 下面为一具体实施例。 In this embodiment, the user first sets the effect that the user wants to use through the WLAN module. The following is a specific embodiment.
步骤 201: 设置 WLAN接入点的优先级; Step 201: Set a priority of the WLAN access point.
比如, 家里的 Wh。me优先级最高, 工作地的接入点 WWOTk次之, Wemcc的 接入点优先级第三, 其他社交场合 W。ther等的为最低。 For example, the home of W h . Me has the highest priority, the access point W WOTk is the second place, W emcc 's access point is the third priority, and other social occasions W. Th er etc. is the lowest.
另外还可以根据运营商设置优先级, 比如先后为移动、 联通、 电信等。 并且用户也可以根据 WLAN的 SSID ( Service Set Identifier, 服务集标识 )类 型优先级自行设定接入点的颜色进行标记, 比如中国移动的 Wemt 和 Wcma edu 设置成红色, 家里的 Wh。me设置成蓝色, 办公场合的 WWOTk为黄色, 社交场合 的 W。ther为黑色等。 另外, 用户可以根据自己的喜好设置当前正在连接的无 线局域网颜色, 比如终端当前连接 Wcmcc为蓝色, 以与其他的区别开来。 In addition, priority can be set according to the operator, such as mobile, China Unicom, and telecommunications. And the user can also set the color of the access point according to the SSID (Service Set Identifier) type priority of the WLAN, for example, the Chinese Mobile's W emt and W cma edu are set to red, and the home W h . Me is set to blue, W WOTk for office is yellow, and W for social occasions. Th er is black and so on. In addition, the user can set the color of the wireless LAN currently connected according to his or her preference. For example, the terminal currently connects W cmcc to blue to distinguish it from other.
步骤 202: 终端开启 WLAN扫描, 获取当前的 WLAN热点布局情况, 根
据用户设置的优先级, 终端依次扫描 SSID排列并最终接入, 当第一优先级 不满足时扫描接入第二优先级, 依次类推。 Step 202: The terminal starts WLAN scanning to obtain the current WLAN hotspot layout, and the root According to the priority set by the user, the terminal sequentially scans the SSID arrangement and finally accesses, and when the first priority is not satisfied, the scan accesses the second priority, and so on.
根据用户的设置, 同种类型的热点排列在一起。 当终端接入某接入点 时, 如中国移动 Wcmcc, 则根据步骤 201中所述同时设置 Wcmcc为红色并在终 端界面上显示出来, 这样用户可以一目了然的知道当前正在使用的热点是哪 个。 The same type of hotspots are arranged according to the user's settings. When the terminal accesses an access point, such as China Mobile W cmcc , then W cmcc is set to red and displayed on the terminal interface according to step 201, so that the user can know at a glance which hot spot is currently being used. .
此外, 终端可以对指定时间段内使用过的无线局域网接入点进行统计; 根据使用次数或使用流量设置无线局域网接入点的优先级。 In addition, the terminal can count the WLAN access points used in the specified time period; set the priority of the WLAN access point according to the number of uses or the usage flow.
例如, 终端根据一定的时间段(比如一个月 )对终端使用过的热点情况 进行统计, 统计的依据是(使用次数 Count频率较高的热点)或者 (计算出 每个 WLAN 热点使用的流量数值较高的热点, 流量使用越多、 排名越靠 前), 并保存进数据库中的 wlan— high表格中, 对固定一段时间内从未使用过 的热点放入 wlan— low表格。 表格中保存的字段可以包括 WLAN SSID, 接入 时间 Time、 接入次数 Count等信息。 这样当用户再次开启 WLAN时, 终端可 以在 wlan— high数据库里结合步骤 201中用户设定的优先级搜索并进行 WLAN 推荐, 并且在终端界面上对 wlan— low表格里的热点进行屏蔽, 除非用户再次 手动扫描热点时才列出。 For example, the terminal collects statistics on the hotspots used by the terminal according to a certain period of time (for example, one month). The statistics are based on (the hotspots with a higher frequency of Count) or (calculating the traffic values used by each WLAN hotspot) High hotspots, the more traffic used, the higher the ranking, and saved into the wlan-high table in the database, put the wlan-low table for hotspots that have never been used for a fixed period of time. The fields saved in the table may include information such as WLAN SSID, access time Time, and access count Count. In this way, when the user turns on the WLAN again, the terminal can perform the WLAN recommendation in the wlan-high database in combination with the priority setting set by the user in step 201, and block the hotspot in the wlan-low table on the terminal interface, unless the user Listed when you manually scan for hotspots again.
在一优选实施例中, 终端扫描无线局域网时, 可以获取当前的时间; 检测当前扫描到的无线局域网接入点是否包括在指定时间段内该时间所 使用的无线局域网接入点内, 如包括在内且该时间所使用的无线局域网接入 点满足指定优先级, 则接入该时间所使用的无线局域网接入点。 In a preferred embodiment, when the terminal scans the wireless local area network, the current time can be acquired; detecting whether the currently scanned wireless local area network access point is included in the wireless local area network access point used at the time within the specified time period, if included If the WLAN access point used at that time meets the specified priority, then the WLAN access point used at that time is accessed.
例如, 在一定的时间段(比如一个月 )内 wlan_high表格中某时刻接入的 SSID 情况, 动态推荐 WLAN 热点。 具体为, 当终端获取当前时间, 和 wlan high表格中时间进行比较, 因为用户一般的情况是在固定的时间接入 某类固定的热点, 所以在检测到当前时间在某种情景的热点区域时, 在考虑 用户当前设置的优先级的基础上推荐列出当前的热点情况。 例如, 当当前时 间终端目前最可能位于办公楼区域及 CMCC热点区域而非家庭区域, 则直接 优先搜索 WWOTk之后搜索 Wh。me, 并最终排列显示接入。
用户可以对历史数据置空以恢复初始默认的设置状态。 For example, in a certain period of time (such as one month), the SSID status at a certain time in the wlan_high table dynamically recommends the WLAN hotspot. Specifically, when the terminal acquires the current time and compares the time in the wlan high table, because the user generally accesses a certain type of fixed hotspot at a fixed time, when detecting the current time in a hot spot of a certain scenario, It is recommended to list the current hotspots based on the priority set by the user. For example, when the current time of the terminal building is located in the most likely areas and CMCC hot spots rather than family area, directly-first search W WOTk search W h. Me , and finally arranged to display access. The user can blank the historical data to restore the initial default settings.
图 2为本发明实施例的终端的示意图, 如图 2所示, 本实施例的终端包 括: FIG. 2 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 2, the terminal in this embodiment includes:
第一模块, 设置为设置无线局域网接入点的优先级; The first module is set to set a priority of the wireless local area network access point;
第二模块, 设置为扫描无线局域网时, 根据所述优先级顺序进行扫描接 入无线局域网。 The second module, when configured to scan the wireless local area network, performs scanning according to the priority order to access the wireless local area network.
其中, 第一模块可以包括, Wherein the first module may include
第一单元, 设置为对指定时间内使用过的无线局域网接入点进行统计; 第二单元, 设置为根据使用次数或使用流量设置无线局域网接入点的优 先级; The first unit is configured to perform statistics on the wireless LAN access points used in the specified time; the second unit is configured to set the priority of the wireless local area network access point according to the number of uses or the usage flow;
第三单元, 设置为对不同优先級的无线局域网接入点进行区分标记。 例 如, 可以通过颜色或特殊符号等来区分正在使用中、 经常使用的、 以及较少 使用过的接入点三部分, 这样, 用户可以根据优先级自行设定把正在接入中 及经常接入的 , 较少接入或从未接入的接入点加以区分。 The third unit is set to distinguish the WLAN access points of different priorities. For example, three parts of the access point that are in use, frequently used, and less used can be distinguished by color or special symbols, etc., so that the user can set the access and frequently access according to the priority. , access points that are less or unconnected are distinguished.
第四单元, 设置为对指定的优先级较低的无线局域网接入点, 或对用户 无效的无线局域网接入点进行屏蔽。 The fourth unit is set to block the specified lower priority wireless LAN access point or the wireless LAN access point that is invalid for the user.
其中, 第二模块可以包括: The second module may include:
第一单元, 设置为扫描无线局域网时, 获取当前的时间; The first unit, when set to scan the wireless LAN, obtains the current time;
第二单元, 设置为检测当前扫描到的无线局域网接入点是否包括在所述 指定时间段内该时间所使用的无线局域网接入点内, 如包括在内且该时间所 使用的无线局域网接入点满足指定优先级, 则接入所述该时间所使用的无线 局域网接入点。 The second unit is configured to detect whether the currently scanned WLAN access point is included in the WLAN access point used at the time within the specified time period, such as the WLAN connection included and used at the time When the ingress point meets the specified priority, the WLAN access point used at the time is accessed.
第三单元, 设置为记录当前接入的无线局域网接入点和接入时间。 The third unit is set to record the currently accessed wireless local area network access point and access time.
本发明实施例的一种处理接入无线局域网的方法与终端, 对今天日益普 及的智能终端 WLAN用户来说, 有着较好的用户体验和商用价值。 A method and a terminal for processing access to a wireless local area network according to an embodiment of the present invention have better user experience and commercial value for today's increasingly popular intelligent terminal WLAN users.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序
来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以采 用硬件的形式实现, 也可以采用软件功能模块的形式实现。 本发明不限制于 任何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or part of the steps in the above methods may be passed through the program. The instructions are related to hardware completion, and the program can be stored in a computer readable storage medium such as a read only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上仅为本发明的优选实施例, 当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的情况下, 熟悉本领域的技术人员当可根据本 发明作出各种相应的改变和变形 , 但这些相应的改变和变形都应属于本发明 所附的权利要求的保护范围。 The above is only a preferred embodiment of the present invention, and of course, the present invention may be embodied in various other embodiments without departing from the spirit and scope of the invention. Corresponding changes and modifications are intended to be included within the scope of the appended claims.
工业实用性 Industrial applicability
本发明实施例提供一种处理接入 WLAN 的方法与终端, 可以根据用户 喜好和实践需求接入 WLAN, 可以记录当前用户使用 WLAN热点情况, 动 态的推荐用户使用最多、 性能最好的 WLAN 热点, 可节约用户接入时间, 可使终端界面更加筒洁友好, 提升用户体验度和终端品牌价值。
The embodiment of the present invention provides a method and a terminal for processing access to a WLAN, which can access the WLAN according to user preferences and practical requirements, and can record the current user's use of the WLAN hotspot, and dynamically recommend the most used and best performing WLAN hotspot. It can save user access time, make the terminal interface more clean and friendly, and enhance user experience and terminal brand value.