WO2017181480A1 - 网络接入点的连接方法及装置 - Google Patents
网络接入点的连接方法及装置 Download PDFInfo
- Publication number
- WO2017181480A1 WO2017181480A1 PCT/CN2016/083337 CN2016083337W WO2017181480A1 WO 2017181480 A1 WO2017181480 A1 WO 2017181480A1 CN 2016083337 W CN2016083337 W CN 2016083337W WO 2017181480 A1 WO2017181480 A1 WO 2017181480A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- access point
- network access
- priority
- terminal
- information
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000004044 response Effects 0.000 claims description 18
- PCTMTFRHKVHKIS-BMFZQQSSSA-N (1s,3r,4e,6e,8e,10e,12e,14e,16e,18s,19r,20r,21s,25r,27r,30r,31r,33s,35r,37s,38r)-3-[(2r,3s,4s,5s,6r)-4-amino-3,5-dihydroxy-6-methyloxan-2-yl]oxy-19,25,27,30,31,33,35,37-octahydroxy-18,20,21-trimethyl-23-oxo-22,39-dioxabicyclo[33.3.1]nonatriaconta-4,6,8,10 Chemical compound C1C=C2C[C@@H](OS(O)(=O)=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@H]([C@H](C)CCCC(C)C)[C@@]1(C)CC2.O[C@H]1[C@@H](N)[C@H](O)[C@@H](C)O[C@H]1O[C@H]1/C=C/C=C/C=C/C=C/C=C/C=C/C=C/[C@H](C)[C@@H](O)[C@@H](C)[C@H](C)OC(=O)C[C@H](O)C[C@H](O)CC[C@@H](O)[C@H](O)C[C@H](O)C[C@](O)(C[C@H](O)[C@H]2C(O)=O)O[C@H]2C1 PCTMTFRHKVHKIS-BMFZQQSSSA-N 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 6
- 230000001413 cellular effect Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012913 prioritisation Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000007613 environmental effect Effects 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
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
- H04W36/00835—Determination of neighbour cell lists
- H04W36/008357—Determination of target cell based on access point [AP] properties, e.g. AP service capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/08—Reselecting an access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
- H04W36/302—Reselection being triggered by specific parameters by measured or perceived connection quality data due to low signal strength
Definitions
- This document relates to, but is not limited to, the field of communications, and in particular, to a method and apparatus for connecting network access points.
- WIFI Wireless-Fidelity
- the STA user manually disconnects from the AP
- a STA is affected by a threshold when switching between APs. Therefore, according to the related art, when a STA establishes a connection with a specific AP, if the above several scenarios do not occur, the connection is maintained even if the user moves. In the case of other hotspots with better quality, there will be no change and no intelligent switching.
- the embodiment of the invention provides a connection method and device for a network access point, which can automatically switch network access points.
- An embodiment of the present invention provides a method for connecting a network access point, including: searching for a second network access point that the terminal can connect in a state in which the terminal is currently connected to the first network access point; according to the priority list Determining whether the priority of the second network access point is higher than the priority of the first network access point, where the priority list records the priority information of the first network access point and at least a priority information of the second network access point, where the priority information is calculated according to a historical operating parameter of the corresponding network access point; when the determination result is yes, the terminal is connected to the first Two network access points.
- determining, according to the priority list, whether the priority of the second network access point is higher than a priority of the first network access point currently connected by the terminal includes: comparing the second network access point The first priority is related to the first priority of the first network access point, where the first priority is related to an access type of the network access point; and the first priority of the second network access point is When the level is higher than the first priority of the first network access point, determining that the second network access point has a higher priority than the first network access point priority.
- the method further includes: determining, when the first priority of the second network access point is equal to the first priority of the first network access point, determining the second network access point Whether the second priority is higher than the second priority of the first network access point, wherein the second priority is related to the network quality of the network access point.
- the method further includes: first establishing the second network access before comparing the first priority of the second network access point with the first priority of the first network access point Sending a request message to the second network access point; and receiving, by the second network access point, a message carrying the second network access point access type information fed back according to the request message; And sending a request message to the first network access point when the first connection with the first network access point is established; receiving the carrying of the first network access point according to the request message feedback The first network access point accesses the message of the type information.
- the method further includes: determining, before connecting the terminal to the second network access point, whether the signal strength of the second network access point is greater than or equal to a preset threshold; When yes, the terminal is connected to the second network access point.
- the method further includes: collecting, before determining, according to the priority list, whether the priority of the second network access point is higher than a priority of the first network access point currently connected by the terminal.
- the identifier information of the network access point and the second network access point, where the identifier information includes a service set identifier SSID, and the identifier information and the priority information of the network access point corresponding to the identifier information are saved. To the priority list.
- the historical working parameters include: an average Internet packet retriever ping packet rate, an average ping packet response time, a connection time with the terminal, and a usage traffic number.
- connection device for a network access point comprising:
- a search module configured to search for a second network access point that the terminal can connect in a state that the terminal is currently connected to the first network access point
- the determining module is configured to determine, according to the priority list, whether the priority of the second network access point is higher than a priority of the first network access point, where the first network is recorded in the priority list.
- the connection module is configured to connect the terminal to the second network access point when the determination result is yes.
- the determining module includes:
- a comparing unit configured to compare a first priority of the second network access point with a first priority of the first network access point, where the first priority and an access type of a network access point
- a determining unit configured to set a first priority at the second network access point higher than the first network When the access point is first priority, determining that the second network access point has a higher priority than the first network access point priority.
- the determining unit is further configured to: when the first priority of the second network access point is equal to the first priority of the first network access point, determine the second network access point Whether the second priority is higher than the second priority of the first network access point, wherein the second priority is related to the network quality of the network access point.
- the historical working parameters include: an average Internet packet retriever ping packet rate, an average ping packet response time, a connection time with the terminal, and a usage traffic number.
- the second network access point that the terminal can connect is searched in the state that the terminal is currently connected to the first network access point, and the priority of the second network access point is determined according to the priority list. Whether the priority of the first network access point currently connected to the terminal is higher, wherein the priority list records priority information of the first network access point and at least one of the second network accesses Priority information of the point, the priority information is calculated according to the historical working parameter of the corresponding network access point, and when the determination result is yes, the terminal is connected to the second network access point, because the priority information It is generated according to the historical working parameters of the network access point, so the priority determination can be automatically completed and the intelligent switching of the network access point is realized, thereby improving the user experience.
- FIG. 1 is a block diagram showing the hardware structure of a mobile terminal of a method for connecting network access points according to an embodiment of the present invention
- FIG. 2 is a flowchart of a method for connecting network access points according to an embodiment of the present invention
- FIG. 3 is a structural block diagram of a connection device of a network access point according to an embodiment of the present invention.
- FIG. 4 is a block diagram 1 of an optional structure of a connection of a network access point according to an embodiment of the present invention
- FIG. 5 is a schematic diagram of an AP hotspot parameter acquisition process in Embodiment 3 of the present invention.
- FIG. 6 is a schematic flowchart of an AP prioritization process in Embodiment 3 of the present invention.
- FIG. 7 is a schematic diagram of an AP handover procedure according to Embodiment 3 of the present invention.
- FIG. 1 is a hardware structural block diagram of a mobile terminal of a method for connecting network access points according to an embodiment of the present invention.
- the mobile terminal 10 may include one or more (only one shown) processor 102 (the processor 102 may include, but is not limited to, a Microprocessor Control Unit (MCU) or a programmable logic device.
- a processing device such as an FPGA (Field-Programmable Gate Array), a memory 104 provided to store data, and a transfer device 106 provided as a communication function.
- FPGA Field-Programmable Gate Array
- the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
- the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
- the memory 104 can be configured as a software program and a module for storing application software, such as program instructions or modules corresponding to the connection method of the network access point in the embodiment of the present invention, and the processor 102 runs the software program and the module stored in the memory 104. Thus, each of the functional applications and data processing is performed, that is, the above method is implemented.
- Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
- memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Above network Examples of networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Transmission device 106 is for receiving or transmitting data via a network.
- the above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10.
- the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
- the transmission device 106 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
- NIC Network Interface Controller
- RF Radio Frequency
- FIG. 2 is a flowchart of a method for connecting a network access point according to an embodiment of the present invention. Including the following steps:
- Step S202 searching for a second network access point that the terminal can connect in a state that the terminal is currently connected to the first network access point;
- the second network access point that can be connected may be a WIFI that is searched in real time in the WIFI list, or a WIFI that receives the broadcast message, or a locally saved WIFI.
- Step S204 Determine, according to the priority list, whether the priority of the second network access point is higher than the priority of the first network access point currently connected by the terminal.
- the priority information records the priority information of the first network access point and the priority information of the at least one second network access point, and the priority information is calculated according to the historical working parameters of the corresponding network access point;
- Step S206 when the determination result is yes, connect the terminal to the second network access point.
- the terminal by searching for the second network access point that the terminal can connect in the state that the terminal is currently connected to the first network access point, and determining, according to the priority list, whether the priority of the second network access point is higher than the terminal a priority of the currently connected first network access point, wherein the priority list records priority information of the first network access point and priority information of the at least one second network access point, and the priority information is according to the corresponding The historical working parameters of the network access point are calculated. When the judgment result is yes, the terminal is connected to the second network access point.
- the priority information is generated according to the historical working parameters of the network access point, it can be automatically
- the determination of the priority is completed and the intelligent switching of the network access point is implemented, which can solve the problem that the network access point cannot be automatically switched in the related art.
- Technical issues have improved the user experience.
- the determining of the priority of the second network access point determines whether the priority of the second network access point is higher than the priority of the first network access point currently connected by the terminal according to the priority list.
- the first priority is related to the access type of the network access point.
- the access type may be related to a network type accessed by the network access point, and the access type includes: a cellular data connection, a broadband connection, a hotspot of a cellular data connection type, such as a mobile WIFI, a mobile hotspot, etc., by distinguishing between hotspots.
- a cellular data connection such as a mobile WIFI, a mobile hotspot, etc.
- a hotspot of a cellular data connection type such as a mobile WIFI, a mobile hotspot, etc.
- the priority of the broadband connection type may be set to be higher than the priority of the cellular data connection type, and when the first priority of the second network access point is higher than the first priority of the first network access point, The second network access point has a higher priority than the first network access point priority.
- the foregoing optional implementation manner further includes:
- the hotspot type when used for priority determination, the hotspot type needs to be known in advance. Specifically, when the terminal connects to a hotspot for the first time, the terminal sends a parameter request to request the AP's wide area network (WAN).
- the access mode of the AP is determined by the side access mode, and the parameter is saved and marked, that is, the first priority of the second network access point is compared with the first priority of the first network access point.
- WAN wide area network
- the signal strength of the second network access point may be added to avoid switching to a hot spot whose signal is too weak.
- the method further includes:
- Priority list including:
- S31 collecting the identifier information of the first network access point and the second network access point, where the identifier information includes a service set identifier (Service Set Identifier, abbreviated as SSID);
- SSID Service Set Identifier
- the historical operating parameters for obtaining the priority information may include, but are not limited to, an average Internet packet retriever ping packet rate, an average ping packet response time, a connection time with the terminal, and a usage traffic number.
- the parameters of the acquiring AP may not be limited to the above four points, and other parameters such as security considerations may be added.
- the priority information S can be calculated by the following formula:
- A is the average ping packet rate
- B is the average ping packet response time
- C is the connection time with the terminal
- D is the usage traffic number
- abcd is the weight coefficient corresponding to ABCD
- the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
- the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic
- a storage medium such as ROM/RAM, magnetic
- the disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present invention.
- connection device for a network access point is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
- module may implement a combination of software and/or hardware of a predetermined function.
- apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 3 is a structural block diagram of a connection device of a network access point according to an embodiment of the present invention. As shown in FIG. 3, the device includes:
- the searching module 30 is configured to search for a second network access point that the terminal can connect in a state that the terminal is currently connected to the first network access point;
- the determining module 32 is configured to determine, according to the priority list, whether the priority of the second network access point is higher than the priority of the first network access point, where the priority information of the first network access point is recorded in the priority list And the priority information of the at least one second network access point, where the priority information is calculated according to the historical working parameters of the corresponding network access point;
- the connection module 34 is configured to connect the terminal to the second network access point when the determination result is yes.
- FIG. 4 is a block diagram showing an optional structure of a connection of a network access point according to an embodiment of the present invention. As shown in FIG. 4, the device includes, in addition to all the modules shown in FIG.
- the comparing unit 40 is configured to compare the first priority of the second network access point with the first priority of the first network access point, where the first priority is related to the access type of the network access point, optionally Access types include: cellular data connection, broadband connection;
- the determining unit 42 is configured to determine that the second network access point has a higher priority than the first network access point when the first priority of the second network access point is higher than the first priority of the first network access point priority.
- the network quality needs to be further determined, as shown in FIG. 4,
- the determining unit 44 is further configured to: determine, when the first priority of the second network access point is equal to the first priority of the first network access point, whether the second priority of the second network access point is higher than the first priority The internet The second priority of the access point, wherein the second priority is related to the network quality of the network access point.
- the historical operating parameters for obtaining the priority information may include, but are not limited to, an average Internet packet retriever ping packet rate, an average ping packet response time, a connection time with the terminal, and a usage traffic number.
- the parameters of the acquiring AP may not be limited to the above four points, and other parameters such as security considerations may be added.
- the priority information S can be calculated by the following formula:
- A is the average ping packet rate
- B is the average ping packet response time
- C is the connection time with the terminal
- D is the usage traffic number
- abcd is the weight coefficient corresponding to ABCD
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are arbitrary.
- the combined forms are located in different processors.
- Embodiment 3 is an optional embodiment according to the present invention for explaining the present invention in detail:
- Embodiment 3 proposes a method and device for intelligently switching a WIFI access point, by collecting related parameters of a historically connected AP (network access point) during the connection process, and then correspondingly collecting the collected parameters.
- the algorithm performs the calculation of the connection priority and updates the priority in real time.
- the WIFI hotspot When the WIFI hotspot is connected, the broadcast message sent by other APs is received, and the SSID in the broadcast message is searched in the existing AP information list to determine Whether the priority of the AP hotspot is higher than the currently connected AP, and if it is higher than the currently connected AP hotspot, the connection is switched according to the user's setting (automatic switching or querying the user for switching). Thereby improving the user experience of the product.
- the hotspot, the network access point, the AP, and the WIFI are all equivalent meanings, and are the same reference in different scenarios, that is, all network access points.
- Step 1 Collect relevant parameters of historical connection hotspots
- the terminal When the AP hotspot is connected for the first time, the terminal sends a parameter request, requests the WAN side access mode of the AP, determines the access type of the AP, and saves the parameter for marking.
- Step 2 Sort the priority of the historical connection AP
- the AP priority of type 0 is all higher than the priority of type 1.
- a weighting coefficient is given for each index.
- the coefficient is a number less than 1, and the sum of the weight coefficients of all indicators is 1.
- the parameters of the acquiring AP may not be limited to the above four points, and other parameters such as security considerations may be added; and an interface for manually editing the AP priority may be provided, and the user may manually edit the AP priority.
- Step 3 Automatic comparison switching
- the terminal searches for other AP hotspots, it first searches the AP list for the priority value of the searched AP hotspots, and determines whether the value is higher than the currently connected AP hotspot. If the current hotspot is higher than the current hotspot, The signal strength of the hot spot is judged to determine whether it is available. If it is available, it is switched according to the user setting (automatic switching or inquiry switching). If automatic switching is selected, the automatic switching is directly performed. If the inquiry switching is selected, the prompt information is pushed. The user decides whether or not switching is required by the user; if the signal strength is poor, the switching is not performed.
- FIG. 5 is a schematic diagram of an AP hotspot parameter acquisition process in Embodiment 3 of the present invention, as shown in FIG. 5, including:
- a parameter request is added to the connection request to obtain the AP access type, and the AP returns its own access type. After receiving the STA, the STA saves the type.
- the timed record updates the length of time to connect to an AP
- Timed records update the data traffic used when connecting to an AP
- FIG. 6 is a schematic diagram of an AP priority sorting process in Embodiment 3 of the present invention. As shown in FIG. 6, the method includes:
- the value of the access type parameter of all APs is read. If all APs of access type 0 are in front of the AP of access type 1, the cellular data access type is 0 and the broadband access type is 1.
- a weighting coefficient is given for each index.
- the coefficient is a number less than 1, and the sum of the weight coefficients of all indicators is 1.
- the APs of the same type are sorted, and then all APs are sorted according to the principle that the AP priority of type 0 is higher than that of the type 1 AP.
- FIG. 7 is a schematic diagram of an AP handover process according to Embodiment 3 of the present invention. As shown in FIG. 7, the method includes:
- the STA After the STA changes the environment and location, after receiving the broadcast message sent by other APs, the STA performs the query in the AP in the priority list according to the SSID in the broadcast message. There is also a process of determining to send the broadcast message. Whether the AP is the AP in the priority list, if not, then call back to the WIFI default policy to perform the default connection; if yes, continue to determine whether the priority of the AP is higher than the priority of the currently connected AP, if not, then If the priority is higher than the currently connected AP, then it is determined whether the signal strength of the AP is normal, and if it is normal, the automatic switching is performed according to the option set by the user (automatic switching or inquiry switching), or Push the prompt message, the user confirms whether to automatically switch; otherwise, it does not switch.
- the AP When the AP is switched, if there is a problem, such as a poor signal, the AP is processed according to the WIFI default policy.
- the present invention provides an algorithm and apparatus for automatically switching WIFI connection hotspots, which can perform more humanized ordering on APs connected by users, and according to environmental changes, when a new AP is detected,
- the AP information is stored in the AP information list, and a new AP with the highest priority is selected, and the AP is automatically switched to the high-priority AP to improve the user experience of the product.
- Embodiments of the present invention also provide a storage medium.
- the foregoing storage medium may be configured to store program code for performing the following steps:
- the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
- ROM Read-Only Memory
- RAM Random Access Memory
- a mobile hard disk e.g., a hard disk
- magnetic memory e.g., a hard disk
- the processor performs, according to the stored program code in the storage medium, a second network access point that the search terminal can connect to;
- the processor performs, according to the stored program code in the storage medium, whether the priority of the second network access point is higher than the first network access point currently connected by the terminal according to the priority list.
- a priority wherein the priority list records the priority information of the first network access point and the priority information of the at least one second network access point, and the priority information is calculated according to the historical working parameters of the corresponding network access point. get;
- the processor performs, when the determination result is yes, connecting the terminal to the second network access point according to the stored program code in the storage medium.
- Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
- each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function.
- the invention is not limited to any specific form of combination of hardware and software.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the above technical solution realizes intelligent switching of network access points and improves user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Computer And Data Communications (AREA)
Abstract
一种网络接入点的连接方法及装置,其中,该方法包括:在终端当前连接第一网络接入点的状态下,搜索终端能够连接的第二网络接入点;根据优先级列表判断第二网络接入点的优先级是否高于第一网络接入点的优先级,其中,优先级列表中记录第一网络接入点的优先级信息以及至少一个第二网络接入点的优先级信息,优先级信息根据对应的网络接入点的历史工作参数进行计算得到;在判断结果为是时,将终端连接至第二网络接入点。
Description
本文涉及但不限于通信领域,具体而言,涉及一种网络接入点的连接方法及装置。
目前,用户在使用移动终端上网时,经常会使用WIFI(Wireless-Fidelity,无线保真)进行网络连接。随着WIFI的日益普遍,现在通过WIFI方式访问互联网已经成为主流的上网方式。另一方面,目前大多数的移动终端都具有热点功能,而人们也经常会携带移动热点外出时为其它的手机等移动终端提供WIFI服务。而回到家或是达到其它特定场所时,用户却需要手动断开与移动热点的连接,而去接入能力更为强大的WIFI热点。或者当用户连接了某一热点后,如果周围有更好的历史连接过的热点出现后,只有在当前连接的热点信号无法使用时才会再去搜索其他的热点,而不会自动智能的随时切换到更好的热点去。
相关技术中,当客户端STA(Station)连接到某接入点AP(Access Point)时,当以下几个场景发生时,会断开与该AP的连接:
当STA与该AP距离增大或其它原因导致的WIFI信号强度下降到某一阈值;
当AP关闭或其它原因导致的WIFI信号关闭;
当AP以某种方式拒绝该STA的连接;
STA用户手动断开与该AP的连接;
根据相关技术,某STA在AP之间切换时受到阈值影响,因此,根据相关技术,当某STA与特定的AP建立连接时,如果不发生上述的几个场景,就一直保持连接,即使用户移动到其它存在更优质的热点覆盖范围内,也不会发生改变,无法智能切换。
针对相关技术中存在的上述问题,目前尚未发现有效的解决方案。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供了一种网络接入点的连接方法及装置,能够自动切换网络接入点。
本发明实施例提供了一种网络接入点的连接方法,包括:在终端当前连接第一网络接入点的状态下,搜索所述终端能够连接的第二网络接入点;根据优先级列表判断所述第二网络接入点的优先级是否高于所述第一网络接入点的优先级,其中,所述优先级列表中记录所述第一网络接入点的优先级信息以及至少一个所述第二网络接入点的优先级信息,所述优先级信息根据对应的网络接入点的历史工作参数进行计算得到;在判断结果为是时,将所述终端连接至所述第二网络接入点。
可选地,根据优先级列表判断所述第二网络接入点的优先级是否高于所述终端当前连接的第一网络接入点的优先级包括:比较所述第二网络接入点的第一优先级与所述第一网络接入点第一优先级,其中,所述第一优先级与网络接入点的接入类型相关;在所述第二网络接入点的第一优先级高于所述第一网络接入点第一优先级时,确定所述第二网络接入点的优先级高于所述第一网络接入点优先级。
可选地,所述方法还包括:在所述第二网络接入点的第一优先级与所述第一网络接入点的第一优先级相等时,判断所述第二网络接入点的第二优先级是否高于所述第一网络接入点的第二优先级,其中,所述第二优先级与网络接入点的网络质量相关。
可选地,还包括:在比较所述第二网络接入点的第一优先级与所述第一网络接入点第一优先级之前,在第一次建立与所述第二网络接入点的连接时,向所述第二网络接入点发送请求消息;接收所述第二网络接入点根据所述请求消息反馈的携带所述第二网络接入点接入类型信息的消息;以及,在第一次建立与所述第一网络接入点的连接时,向所述第一网络接入点发送请求消息;接收所述第一网络接入点根据所述请求消息反馈的携带所述第一网络接入点接入类型信息的消息。
可选地,所述方法还包括:在将所述终端连接至所述第二网络接入点之前,判断所述第二网络接入点的信号强度是否大于或等于预设阈值;在判断结果为是时,将所述终端连接至所述第二网络接入点。
可选地,所述方法还包括:在根据优先级列表判断所述第二网络接入点的优先级是否高于所述终端当前连接的第一网络接入点的优先级之前,采集第一网络接入点和第二网络接入点的标识信息,其中,所述标识信息包括服务集标识SSID;将所述标识信息,以及与所述标识信息对应的网络接入点的优先级信息保存至所述优先级列表。
可选地,所述历史工作参数包括:平均因特网包检索器ping包速率,平均ping包响应时间,与所述终端的连接时间,使用流量数。
可选地,优先级信息根据对应的网络接入点的历史工作参数进行计算得到包括:通过以下公式计算优先级信息S:S=Aa+Bb+Cc+Dd;其中,A为所述平均ping包速率,B为所述平均ping包响应时间,C为与所述终端的连接时间,D为所述使用流量数,abcd分别为与ABCD对应的权重系数,a+b+c+d=1。
本发明实施例还提供了一种网络接入点的连接装置,包括:
搜索模块,设置为在终端当前连接第一网络接入点的状态下,搜索所述终端能够连接的第二网络接入点;
判断模块,设置为根据优先级列表判断所述第二网络接入点的优先级是否高于所述第一网络接入点的优先级,其中,所述优先级列表中记录所述第一网络接入点的优先级信息以及至少一个所述第二网络接入点的优先级信息,所述优先级信息根据对应的网络接入点的历史工作参数进行计算得到;
连接模块,设置为在判断结果为是时,将所述终端连接至所述第二网络接入点。
可选地,判断模块包括:
比较单元,设置为比较所述第二网络接入点的第一优先级与所述第一网络接入点第一优先级,其中,所述第一优先级与网络接入点的接入类型相关;
确定单元,设置为在所述第二网络接入点的第一优先级高于所述第一网
络接入点第一优先级时,确定所述第二网络接入点的优先级高于所述第一网络接入点优先级。
可选地,判断单元还设置为:在所述第二网络接入点的第一优先级与所述第一网络接入点第一优先级相等时,判断所述第二网络接入点的第二优先级是否高于所述第一网络接入点的第二优先级,其中,所述第二优先级与网络接入点的网络质量相关。
可选地,所述历史工作参数包括:平均因特网包检索器ping包速率,平均ping包响应时间,与所述终端的连接时间,使用流量数。
可选地,优先级信息根据对应的网络接入点的历史工作参数进行计算得到包括:通过以下公式计算优先级信息S:S=Aa+Bb+Cc+Dd;其中,A为所述平均ping包速率,B为所述平均ping包响应时间,C为与所述终端的连接时间,D为所述使用流量数,abcd分别为与ABCD对应的权重系数,a+b+c+d=1。
通过本发明实施例,通过在终端当前连接第一网络接入点的状态下,搜索终端能够连接的第二网络接入点,并根据优先级列表判断所述第二网络接入点的优先级是否高于所述终端当前连接的第一网络接入点的优先级,其中,所述优先级列表中记录所述第一网络接入点的优先级信息以及至少一个所述第二网络接入点的优先级信息,优先级信息根据对应的网络接入点的历史工作参数进行计算得到,在判断结果为是时,将所述终端连接至所述第二网络接入点,由于优先级信息是根据网络接入点的历史工作参数生成的,因此可以自动完成优先级的确定并实现了网络接入点的智能的切换,提高了用户的体验度。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1是本发明实施例的一种网络接入点的连接方法的移动终端的硬件结构框图;
图2是本发明实施例的网络接入点的连接方法的流程图;
图3是本发明实施例的网络接入点的连接装置的结构框图;
图4是本发明实施例的网络接入点的连接的可选结构框图一;
图5是本发明实施例3中AP热点参数获取流程示意图;
图6是本发明实施例3中AP优先级排序流程示意图;
图7是本发明实施例3的AP切换流程示意图。
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
实施例1
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种网络接入点的连接方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器(MCU,Microprocessor Control Unit)或可编程逻辑器件(FPGA,Field-Programmable Gate Array)等的处理装置)、设置为存储数据的存储器104、以及设置为通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。
存储器104可设置为存储应用软件的软件程序以及模块,如本发明实施例中的网络接入点的连接方法对应的程序指令或模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行每一种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网
络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其设置为通过无线方式与互联网进行通讯。
在本实施例中提供了一种运行于上述移动终端的网络接入点的连接方法,图2是本发明实施例的网络接入点的连接方法的流程图,如图2所示,该流程包括如下步骤:
步骤S202,在终端当前连接第一网络接入点的状态下,搜索终端能够连接的第二网络接入点;
可选的,能够连接的第二网络接入点可以是WIFI列表中实时搜索到的WIFI,也可以是收到广播消息的WIFI,或者是本地保存的WIFI等。
步骤S204,根据优先级列表判断第二网络接入点的优先级是否高于终端当前连接的第一网络接入点的优先级。
其中,优先级列表中记录第一网络接入点的优先级信息以及至少一个第二网络接入点的优先级信息,优先级信息根据对应的网络接入点的历史工作参数进行计算得到;
步骤S206,在判断结果为是时,将终端连接至第二网络接入点。
通过上述步骤,通过在终端当前连接第一网络接入点的状态下,搜索终端能够连接的第二网络接入点,并根据优先级列表判断第二网络接入点的优先级是否高于终端当前连接的第一网络接入点的优先级,其中,优先级列表中记录第一网络接入点的优先级信息以及至少一个第二网络接入点的优先级信息,优先级信息根据对应的网络接入点的历史工作参数进行计算得到,在判断结果为是时,将终端连接至第二网络接入点,由于优先级信息是根据网络接入点的历史工作参数生成的,因此可以自动完成优先级的确定并实现了网络接入点的智能的切换,可以解决相关技术中不能自动切换网络接入点的
技术问题,提高了用户的体验度。
在根据本实施例的可选实施方式中,包括两次优先级的判断,根据优先级列表判断第二网络接入点的优先级是否高于终端当前连接的第一网络接入点的优先级包括:
S11,比较第二网络接入点的第一优先级与第一网络接入点第一优先级,
其中,第一优先级与网络接入点的接入类型相关。
可选的,接入类型可以与网路接入点接入的网络类型相关,接入类型包括:蜂窝数据连接、宽带连接;蜂窝数据连接类型的热点如移动WIFI,手机热点等,通过区分热点广域网WAN侧是数据连接还是宽带连接,可以帮助用户节省流量。
可选的,可以设置宽带连接类型的优先级均高于蜂窝数据连接类型的优先级,在第二网络接入点的第一优先级高于第一网络接入点第一优先级时,确定第二网络接入点的优先级高于第一网络接入点优先级。
而在第二网络接入点的第一优先级与第一网络接入点的第一优先级相等时,上述可选实施方式还包括:
S12,在第二网络接入点的第一优先级与第一网络接入点第一优先级相等时,判断第二网络接入点的第二优先级是否高于第一网络接入点的第二优先级,其中,第二优先级与网络接入点的网络质量相关。
可选的,网络接入点的网络质量越高,第二优先级越高。
在本实施例中,在使用热点类型进行优先级判断时,还需要提前获知热点类型,具体可以在终端第一次连接某个热点的时候,终端发送一个参数请求,请求AP的广域网(WAN,Wide Area Network)侧接入方式,确定AP的接入类型,将此参数保存进行标记,也即,在比较第二网络接入点的第一优先级与第一网络接入点第一优先级之前,还包括:
在第一次建立与第二网络接入点的连接时,向第二网络接入点发送请求消息;接收第二网络接入点根据请求消息反馈的携带第二网络接入点接入类型信息的消息;
在第一次建立与第一网络接入点的连接时,向第一网络接入点发送请求
消息;接收第一网络接入点根据请求消息反馈的携带第一网络接入点接入类型信息的消息。
可选的,还可以加入对第二网络接入点的信号强度的判断,避免切换至信号太弱的热点,在将终端连接至第二网络接入点之前,还包括:
S21,判断第二网络接入点的信号强度是否大于或等于预设阈值;
S22,在判断结果为是时,将终端连接至第二网络接入点。
可选的,在根据优先级列表判断第二网络接入点的优先级是否高于终端当前连接的第一网络接入点的优先级之前,还需要建立并保存包括每一个热点优先级信息的优先级列表,包括:
S31,采集第一网络接入点和第二网络接入点的标识信息,其中,标识信息包括服务集标识(Service Set Identifier,简称为SSID);
S32,将标识信息,以及与标识信息对应的网络接入点的优先级信息保存至优先级列表。
在本实施例中,得到优先级信息的历史工作参数可以但不限于包括:平均因特网包检索器ping包速率,平均ping包响应时间,与终端的连接时间,使用流量数。可选的,获取AP的参数可以不限于上述的四点,可以增加安全性考虑等其他参数。
依据上述参数,具体的,可以通过以下公式计算优先级信息S:
S=Aa+Bb+Cc+Dd;
其中,A为平均ping包速率,B为平均ping包响应时间,C为与终端的连接时间,D为使用流量数,abcd分别为与ABCD对应的权重系数,a+b+c+d=1。如果考虑其他的参数,如安全类E,则应加入对应的权重系数e,则a+b+c+d+e=1。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁
碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。
实施例2
在本实施例中还提供了一种网络接入点的连接装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图3是根据本发明实施例的网络接入点的连接装置的结构框图,如图3所示,该装置包括:
搜索模块30,设置为在终端当前连接第一网络接入点的状态下,搜索终端能够连接的第二网络接入点;
判断模块32,设置为根据优先级列表判断第二网络接入点的优先级是否高于第一网络接入点的优先级,其中,优先级列表中记录第一网络接入点的优先级信息以及至少一个第二网络接入点的优先级信息,优先级信息根据对应的网络接入点的历史工作参数进行计算得到;
连接模块34,设置为在判断结果为是时,将终端连接至第二网络接入点。
图4是根据本发明实施例的网络接入点的连接的可选结构框图一,如图4所示,该装置除包括图3所示的所有模块外,判断模块32包括:
比较单元40,设置为比较第二网络接入点的第一优先级与第一网络接入点第一优先级,其中,第一优先级与网络接入点的接入类型相关,可选的,接入类型包括:蜂窝数据连接、宽带连接;
确定单元42,设置为在第二网络接入点的第一优先级高于第一网络接入点第一优先级时,确定第二网络接入点的优先级高于第一网络接入点优先级。
而在第二网络接入点的第一优先级与第一网络接入点的第一优先级相等时,还需要进一步判断网络质量,如图4所示,
判断单元44还设置为:在第二网络接入点的第一优先级与第一网络接入点第一优先级相等时,判断第二网络接入点的第二优先级是否高于第一网络
接入点的第二优先级,其中,第二优先级与网络接入点的网络质量相关。
在本实施例中,得到优先级信息的历史工作参数可以但不限于包括:平均因特网包检索器ping包速率,平均ping包响应时间,与终端的连接时间,使用流量数。可选的,获取AP的参数可以不限于上述的四点,可以增加安全性考虑等其他参数。
依据上述参数,具体的,可以通过以下公式计算优先级信息S:
S=Aa+Bb+Cc+Dd;
其中,A为平均ping包速率,B为平均ping包响应时间,C为与终端的连接时间,D为使用流量数,abcd分别为与ABCD对应的权重系数,a+b+c+d=1。如果考虑其他的参数,如安全类E,则应加入对应的权重系数e,则a+b+c+d+e=1。
需要说明的是,上述每一个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
实施例3
实施例3是根据本发明的可选实施例,用于对本发明进行详细具体的说明:
实施例3提出一种智能切换WIFI接入点的方法和装置,通过在连接的过程中,对历史连接过的AP(网络接入点)的相关参数进行采集,然后对采集的参数按照相应的算法进行计算连接优先级,并且对优先级进行实时的更新;当在连接WIFI热点时,收到了其他AP发送的广播消息,根据广播消息中的SSID在已存在的AP信息列表中进行检索,判断此AP热点的优先级是否高于当前连接的AP,如果高于当前连接的AP热点,则根据用户的设置(自动切换或者给用户询问切换)进行切换连接。从而提高产品的用户体验。在本实施例中,热点、网络接入点、AP、WIFI均是等同的含义,是在不同场景中的相同指代,即都是网络接入点。
本实施例的智能计算WIFI接入点优先级的算法,包括:
步骤1:采集历史连接热点的相关参数;
当第一次连接某个AP热点的时候,终端发送一个参数请求,请求AP的WAN侧接入方式,确定AP的接入类型,将此参数保存进行标记。
在连接热点的过程中,实时的获取此热点的以下参数进行保存:
Ping包平均速率;
Ping包平均响应时间;
历史连接时长;
历史使用流量数
步骤2:对于历史连接AP的优先级进行排序
首先,类型0的AP优先级全部高于类型1的优先级;
其次,对于相同类型AP间的优先级排序,可以从以下几个参数来进行综合计算排序:
历史平均ping包速率;
历史平均ping包响应时间;
历史连接时间;
历史使用流量数;
排序算法:
首先按照上述每个指标的重要性,给出每个指标一个权重系数,系数是一个小于1的数字,所有指标权重系数之和为1;
然后按照每个产品的某个指标,计算每个产品的此指标在所有产品的指标比重;
每个产品的综合指标
∑所有指标AP某指标值的比重*AP某指标权重系数
所有产品按照以上算出的综合指标数进行排序;
可选的,获取AP的参数可以不限于上面的四点,可以增加安全性考虑等其他参数;也可以提供用户手动编辑AP优先级的接口,可供用户手动编辑AP优先级。
步骤3:自动对比切换
当终端搜索到周围有其他的AP热点的时候,首先在AP列表中查询搜索到的AP热点的优先级数值,判断此数值是否高于当前连接AP热点的,如果高于当前热点的,则对此热点的信号强度等进行判断,判断是否可用,如果可用,则根据用户设置(自动切换或者询问切换)进行切换,如果选择自动切换,则直接自动切换,如果选择询问切换,则推送提示信息给用户,由用户决定是否需要切换;如果信号强度等较差,则不进行切换。
图5是本发明实施例3中AP热点参数获取流程示意图,如图5所示,包括:
当STA在第一次连接一个AP的时候,在连接请求中增加一个参数请求,请求获得AP的接入类型,AP返回自己的接入类型,STA收到后对此类型进行标记保存。
在AP连接的过程中,定时的获取以下参数:
Ping包平均速率;
可以通过定时的去ping某些网址,来统计ping包速率,并计算历史连接此AP时的平均速率;
Ping包平均响应时间;
可以通过定时的去ping某些网址,来统计ping包响应时间,并计算历史连接此AP时的平均响应时间;
历史连接时长;
定时的记录更新连接某个AP的时长;
历史使用流量数;
定时记录更新连接某个AP时使用的数据流量;
图6是本发明实施例3中AP优先级排序流程示意图,如图6所示,包括:
在每次断开AP连接的时候,对所有历史连接的AP列表进行一个优先级排序,排序的算法按照以下方法进行:
首先读取所有AP的接入类型参数的值,如果所有接入类型0的AP都排在接入类型1的AP前面;此处,可以选择蜂窝数据接入类型为0,宽带接入类型为1。
其次同一接入类型AP的排序按照以下算法来进行计算排序:
读取所有同类型AP以下四个参数的值:
Ping包平均速率;
Ping包平均响应时间;
历史连接时长;
历史使用流量数;
读取后按照以下算法,计算每个AP的综合指标值;
排序算法:
首先按照上述每个指标的重要性,给出每个指标一个权重系数,系数是一个小于1的数字,所有指标权重系数之和为1;
然后按照每个AP的某个指标,计算每个AP的此指标在所有AP的指标比重;
每个AP的综合指标:
∑所有指标AP某指标值的比重*AP某指标权重系数
按照上面的计算结果对同类型的AP进行排序,然后按照类型0的AP优先级高于类型1的AP的原则,对所有AP进行排序。
图7是本发明实施例3的AP切换流程示意图,如图7所示,包括:
当STA改变环境和地点后,接收到了其他AP发送的广播消息后,根据广播消息中的SSID,在优先级列表中AP中进行查询,此处还有一个判断的过程,用于确定发送广播消息的AP是否是优先级列表中的AP,如果不是,则回调至WIFI默认策略,执行默认连接;如果是,则继续判断此AP的优先级是否高于当前连接AP的优先级,如果不是,则不进行切换,如果高于当前连接AP的优先级,那么再判断此AP的信号强度等是否正常,如果正常,则按照用户设置的选项(自动切换或询问切换),进行自动切换,或者
推送提示消息,由用户确认是否自动切换;否则也不进行切换。
当切换后,所使用AP如果出现问题比如信号较差等,则按照WIFI默认策略进行处理;
针对现有技术中存在的不足,本发明提出一种WIFI连接热点自动切换的算法和装置,能够对用户连接过的AP进行更人性化的排序,根据环境变更,当检测到有新的AP可接入信息时,在自身存储的AP信息列表中进行检索,并选择一个优先级最高的新AP,自动切换到高优先级的AP上去,从而提高产品的用户体验。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,搜索终端能够连接的第二网络接入点;
S2,根据优先级列表判断第二网络接入点的优先级是否高于终端当前连接的第一网络接入点的优先级,其中,优先级列表中记录第一网络接入点的优先级信息以及至少一个第二网络接入点的优先级信息,优先级信息根据对应的网络接入点的历史工作参数进行计算得到;
S3,在判断结果为是时,将终端连接至第二网络接入点。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行搜索终端能够连接的第二网络接入点;
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行根据优先级列表判断第二网络接入点的优先级是否高于终端当前连接的第一网络接入点的优先级,其中,优先级列表中记录第一网络接入点的优先级信息以及至少一个第二网络接入点的优先级信息,优先级信息根据对应的网络接入点的历史工作参数进行计算得到;
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行在判断结果为是时,将终端连接至第二网络接入点。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述描述的任意一个方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储与存储器中的程序/指令来实现其相应功能。本发明不限于任何特定形式的硬件和软件的结合。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
上述技术方案实现了网络接入点的智能切换,提高了用户的体验度。
Claims (13)
- 一种网络接入点的连接方法,包括:在终端当前连接第一网络接入点的状态下,搜索所述终端能够连接的第二网络接入点;根据优先级列表判断所述第二网络接入点的优先级是否高于所述第一网络接入点的优先级,其中,所述优先级列表中记录所述第一网络接入点的优先级信息以及至少一个所述第二网络接入点的优先级信息,所述优先级信息根据对应的网络接入点的历史工作参数进行计算得到;在判断结果为是时,将所述终端连接至所述第二网络接入点。
- 根据权利要求1所述的方法,其中,根据优先级列表判断所述第二网络接入点的优先级是否高于所述终端当前连接的第一网络接入点的优先级包括:比较所述第二网络接入点的第一优先级与所述第一网络接入点第一优先级,其中,所述第一优先级与网络接入点的接入类型相关;在所述第二网络接入点的第一优先级高于所述第一网络接入点第一优先级时,确定所述第二网络接入点的优先级高于所述第一网络接入点优先级。
- 根据权利要求2所述的方法,所述方法还包括:在所述第二网络接入点的第一优先级与所述第一网络接入点的第一优先级相等时,判断所述第二网络接入点的第二优先级是否高于所述第一网络接入点的第二优先级,其中,所述第二优先级与网络接入点的网络质量相关。
- 根据权利要求2所述的方法,还包括:在比较所述第二网络接入点的第一优先级与所述第一网络接入点第一优先级之前,在第一次建立与所述第二网络接入点的连接时,向所述第二网络接入点发送请求消息;接收所述第二网络接入点根据所述请求消息反馈的携带所述 第二网络接入点接入类型信息的消息;以及,在第一次建立与所述第一网络接入点的连接时,向所述第一网络接入点发送请求消息;接收所述第一网络接入点根据所述请求消息反馈的携带所述第一网络接入点接入类型信息的消息。
- 根据权利要求1所述的方法,所述方法还包括:在将所述终端连接至所述第二网络接入点之前,判断所述第二网络接入点的信号强度是否大于或等于预设阈值;在判断结果为是时,将所述终端连接至所述第二网络接入点。
- 根据权利要求1所述的方法,所述方法还包括:在根据优先级列表判断所述第二网络接入点的优先级是否高于所述终端当前连接的第一网络接入点的优先级之前,采集第一网络接入点和第二网络接入点的标识信息,其中,所述标识信息包括服务集标识SSID;将所述标识信息,以及与所述标识信息对应的网络接入点的优先级信息保存至所述优先级列表。
- 根据权利要求1所述的方法,其中,所述历史工作参数包括:平均因特网包检索器ping包速率,平均ping包响应时间,与所述终端的连接时间,使用流量数。
- 根据权利要求7所述的方法,其中,优先级信息根据对应的网络接入点的历史工作参数进行计算得到包括:通过以下公式计算优先级信息S:S=Aa+Bb+Cc+Dd;其中,A为所述平均ping包速率,B为所述平均ping包响应时间,C为与所述终端的连接时间,D为所述使用流量数,abcd分别为与ABCD对应的权重系数,a+b+c+d=1。
- 一种网络接入点的连接装置,包括:搜索模块,设置为在终端当前连接第一网络接入点的状态下,搜索所述 终端能够连接的第二网络接入点;判断模块,设置为根据优先级列表判断所述第二网络接入点的优先级是否高于所述第一网络接入点的优先级,其中,所述优先级列表中记录所述第一网络接入点的优先级信息以及至少一个所述第二网络接入点的优先级信息,所述优先级信息根据对应的网络接入点的历史工作参数进行计算得到;连接模块,设置为在判断结果为是时,将所述终端连接至所述第二网络接入点。
- 根据权利要求9所述的装置,其中,判断模块包括:比较单元,设置为比较所述第二网络接入点的第一优先级与所述第一网络接入点第一优先级,其中,所述第一优先级与网络接入点的接入类型相关;确定单元,设置为在所述第二网络接入点的第一优先级高于所述第一网络接入点第一优先级时,确定所述第二网络接入点的优先级高于所述第一网络接入点优先级。
- 根据权利要求10所述的装置,判断单元还设置为:在所述第二网络接入点的第一优先级与所述第一网络接入点第一优先级相等时,判断所述第二网络接入点的第二优先级是否高于所述第一网络接入点的第二优先级,其中,所述第二优先级与网络接入点的网络质量相关。
- 根据权利要求9所述的装置,其中,所述历史工作参数包括:平均因特网包检索器ping包速率,平均ping包响应时间,与所述终端的连接时间,使用流量数。
- 根据权利要求12所述的装置,其中,优先级信息根据对应的网络接入点的历史工作参数进行计算得到包括:通过以下公式计算优先级信息S:S=Aa+Bb+Cc+Dd;其中,A为所述平均ping包速率,B为所述平均ping包响应时间,C为与所述终端的连接时间,D为所述使用流量数,abcd分别为与ABCD对应的权重系数,a+b+c+d=1。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610254618.XA CN107306429B (zh) | 2016-04-21 | 2016-04-21 | 网络接入点的连接方法及装置 |
CN201610254618.X | 2016-04-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017181480A1 true WO2017181480A1 (zh) | 2017-10-26 |
Family
ID=60115514
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/083337 WO2017181480A1 (zh) | 2016-04-21 | 2016-05-25 | 网络接入点的连接方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107306429B (zh) |
WO (1) | WO2017181480A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113518394A (zh) * | 2020-04-09 | 2021-10-19 | 维沃移动通信有限公司 | 一种业务处理方法、终端及网络侧设备 |
CN114553624A (zh) * | 2022-02-10 | 2022-05-27 | 青岛海尔科技有限公司 | 智能家居设备的网络连接方法和装置 |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107124744B (zh) * | 2017-06-19 | 2020-09-25 | 深圳市优克联新技术有限公司 | 一种网络切换方法及无线接入点 |
CN109982412A (zh) * | 2017-12-28 | 2019-07-05 | 中国移动通信集团陕西有限公司 | 一种wifi接入点连接方法及装置 |
CN110113769B (zh) * | 2018-02-01 | 2021-10-29 | 中兴通讯股份有限公司 | 一种WiFi信道筛选方法、装置及计算机可读存储介质 |
CN108471622B (zh) * | 2018-06-12 | 2021-08-17 | Oppo广东移动通信有限公司 | WiFi连接调整方法、装置、移动终端以及存储介质 |
CN109068360A (zh) * | 2018-09-17 | 2018-12-21 | 珠海格力电器股份有限公司 | 一种网络WiFi与热点WiFi的切换连接方法、系统及智能终端 |
CN109511146A (zh) * | 2018-12-29 | 2019-03-22 | 联想(北京)有限公司 | 一种连接方法、电子设备及网络接入设备 |
CN110392416B (zh) * | 2019-08-12 | 2021-06-29 | 广州鲁邦通物联网科技有限公司 | 一种安卓系统的网络选择方法 |
CN111314994B (zh) * | 2020-02-13 | 2022-05-24 | 深圳市潮流网络技术有限公司 | 无线网格网络接入方法及装置、计算设备、存储介质 |
CN112333100A (zh) * | 2020-06-18 | 2021-02-05 | 深圳Tcl新技术有限公司 | 路由创建方法、设备及可读存储介质 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1438789A (zh) * | 2002-02-10 | 2003-08-27 | 华为技术有限公司 | 无线局域网中移动终端在接入点间切换的方法 |
CN101521924A (zh) * | 2009-04-27 | 2009-09-02 | 杭州华三通信技术有限公司 | 一种无线局域网中的切换方法和设备 |
CN101668322A (zh) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | 终端的网络切换方法和终端设备 |
WO2011053078A2 (en) * | 2009-10-30 | 2011-05-05 | Samsung Electronics Co., Ltd. | Apparatus and method for accessing a network in a wireless terminal |
CN102448099A (zh) * | 2012-01-18 | 2012-05-09 | 北京傲天动联技术有限公司 | 无线终端漫游中快速检测切换的方法和装置 |
CN102917424A (zh) * | 2012-10-25 | 2013-02-06 | 陕西科技大学 | 一种WiFi通信中AP切换的方法 |
CN103686896A (zh) * | 2013-12-12 | 2014-03-26 | 广州市地下铁道总公司 | 无线接入点的切换方法和终端 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103118419A (zh) * | 2013-01-24 | 2013-05-22 | 中兴通讯股份有限公司 | 一种终端自动接入无线接入点的方法和装置 |
CN104796965B (zh) * | 2015-03-19 | 2018-07-10 | 四川长虹电器股份有限公司 | 一种WiFi环境下控制AP连接优先级的方法 |
-
2016
- 2016-04-21 CN CN201610254618.XA patent/CN107306429B/zh active Active
- 2016-05-25 WO PCT/CN2016/083337 patent/WO2017181480A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1438789A (zh) * | 2002-02-10 | 2003-08-27 | 华为技术有限公司 | 无线局域网中移动终端在接入点间切换的方法 |
CN101521924A (zh) * | 2009-04-27 | 2009-09-02 | 杭州华三通信技术有限公司 | 一种无线局域网中的切换方法和设备 |
CN101668322A (zh) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | 终端的网络切换方法和终端设备 |
WO2011053078A2 (en) * | 2009-10-30 | 2011-05-05 | Samsung Electronics Co., Ltd. | Apparatus and method for accessing a network in a wireless terminal |
CN102448099A (zh) * | 2012-01-18 | 2012-05-09 | 北京傲天动联技术有限公司 | 无线终端漫游中快速检测切换的方法和装置 |
CN102917424A (zh) * | 2012-10-25 | 2013-02-06 | 陕西科技大学 | 一种WiFi通信中AP切换的方法 |
CN103686896A (zh) * | 2013-12-12 | 2014-03-26 | 广州市地下铁道总公司 | 无线接入点的切换方法和终端 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113518394A (zh) * | 2020-04-09 | 2021-10-19 | 维沃移动通信有限公司 | 一种业务处理方法、终端及网络侧设备 |
CN114553624A (zh) * | 2022-02-10 | 2022-05-27 | 青岛海尔科技有限公司 | 智能家居设备的网络连接方法和装置 |
CN114553624B (zh) * | 2022-02-10 | 2023-12-19 | 青岛海尔科技有限公司 | 智能家居设备的网络连接方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
CN107306429A (zh) | 2017-10-31 |
CN107306429B (zh) | 2021-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017181480A1 (zh) | 网络接入点的连接方法及装置 | |
CN105309008B (zh) | 接入网络之间的网络接入选择方法及网络节点 | |
US8874710B2 (en) | Access network discovery | |
CN105247911B (zh) | 管理设备、操作管理设备的方法和计算机可记录介质 | |
US9807653B2 (en) | Device and method for basic service set transition management | |
US9191874B2 (en) | Advanced network characterization and migration | |
WO2016202174A1 (zh) | 一种网络接入方法、移动通信终端、网络服务器及网络接入系统 | |
CN104796962B (zh) | 一种选网方法和装置 | |
WO2016183949A1 (zh) | 网络选择方法、装置及移动终端 | |
WO2016173376A1 (zh) | 一种网络接入方法和移动通信终端 | |
US9622136B2 (en) | Methods, computer program products and apparatuses enabling to improve handovers in mobile communication networks | |
WO2017173839A1 (zh) | 开启小区测量的确定方法、装置、系统及存储介质 | |
WO2016173372A1 (zh) | 一种网络接入方法和移动通信终端 | |
US10716043B2 (en) | Access point handover method and device | |
WO2013167036A2 (zh) | 一种终端自动接入无线接入点的方法和装置 | |
JP2008503109A (ja) | 自律的異種混交的ネットワーク発見及び再使用 | |
WO2014113948A1 (en) | Limiting access to service providers based on the network traffic load of a wireless access point | |
WO2013189401A2 (zh) | 通信终端、通信系统及通信连接方法 | |
WO2018018795A1 (zh) | 识别伪基站的方法、装置、系统及存储介质 | |
CN114727345A (zh) | 聚合连接建立方法、装置及存储介质 | |
CN110366204A (zh) | 通信方法和通信装置 | |
WO2015143763A1 (zh) | 一种负荷信息传递方法、系统、网元及计算机存储介质 | |
CN103052142A (zh) | 网络选择方法、移动终端及基站 | |
CN113543282B (zh) | 一种无线漫游方法及系统 | |
EP3833107B1 (en) | Information transmission method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16899067 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16899067 Country of ref document: EP Kind code of ref document: A1 |