CN107306429B - Method and device for connecting network access points - Google Patents

Method and device for connecting network access points Download PDF

Info

Publication number
CN107306429B
CN107306429B CN201610254618.XA CN201610254618A CN107306429B CN 107306429 B CN107306429 B CN 107306429B CN 201610254618 A CN201610254618 A CN 201610254618A CN 107306429 B CN107306429 B CN 107306429B
Authority
CN
China
Prior art keywords
network access
access point
priority
terminal
information
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
Application number
CN201610254618.XA
Other languages
Chinese (zh)
Other versions
CN107306429A (en
Inventor
叶新宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610254618.XA priority Critical patent/CN107306429B/en
Priority to PCT/CN2016/083337 priority patent/WO2017181480A1/en
Publication of CN107306429A publication Critical patent/CN107306429A/en
Application granted granted Critical
Publication of CN107306429B publication Critical patent/CN107306429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/00835Determination of neighbour cell lists
    • H04W36/008357Determination of target cell based on access point [AP] properties, e.g. AP service capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/302Reselection being triggered by specific parameters by measured or perceived connection quality data due to low signal strength

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method and a device for connecting network access points, wherein the method comprises the following steps: searching a second network access point which can be connected with the terminal under the state that the terminal is currently connected with the first network access point; judging whether the priority of the second network access point is higher than that of the first network access point or not according to the priority list, wherein the priority information of the first network access point and the priority information of at least one second network access point are recorded in the priority list, and the priority information is obtained by calculation according to the historical working parameters of the corresponding network access point; and when the judgment result is yes, connecting the terminal to the second network access point. By the method and the device, the technical problem that the network access point cannot be automatically switched in the related technology is solved, and the technical effect of improving user experience is achieved.

Description

Method and device for connecting network access points
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for connecting a network access point.
Background
At present, when a user uses a mobile terminal to surf the internet, the user often uses Wireless-Fidelity (WIFI) to connect the network. With the increasing popularity of WIFI, it has become the mainstream way to access internet through WIFI. On the other hand, most mobile terminals have a hotspot function, and people often carry the mobile hotspot to provide WIFI service for other mobile terminals such as mobile phones when going out. When the user returns home or arrives at other specific places, the user needs to manually disconnect the mobile hotspot and access the WIFI hotspot with stronger access capability. Or after the user connects a certain hotspot, if a hotspot connected by a better history appears around, other hotspots can be searched again only when the hotspot signal connected currently cannot be used, and the user cannot automatically and intelligently switch to a better hotspot at any time.
In the related art, when a client sta (station) is connected to an access point AP (access point), the connection with the AP is disconnected when the following scenarios occur:
when the distance between the STA and the AP is increased or the WIFI signal strength caused by other reasons is reduced to a certain threshold value;
when the AP is closed or the WIFI signal caused by other reasons is closed;
when the AP refuses the connection of the STA in some way;
the STA user manually disconnects the connection with the AP;
according to the related art, a certain STA is affected by a threshold value when switching between APs, and therefore, according to the related art, when a certain STA establishes a connection with a specific AP, if the above-mentioned several scenarios do not occur, the connection is maintained all the time, and even if a user moves into other hot-spot coverage areas with higher quality, the change does not occur, and intelligent switching cannot be performed.
In view of the above problems in the related art, no effective solution has been found at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for connecting network access points, which are used for at least solving the technical problem that the network access points cannot be automatically switched in the related technology.
According to an embodiment of the present invention, there is provided a method for connecting a network access point, including: searching a second network access point which can be connected with a terminal under the state that the terminal is currently connected with a first network access point; judging whether the priority of the second network access point is higher than that of the first network access point or not according to a priority list, wherein the priority list records the priority information of the first network access point and the priority information of at least one second network access point, and the priority information is obtained by calculation according to the historical working parameters of the corresponding network access points; and when the judgment result is yes, connecting the terminal to the second network access point.
Optionally, the determining, 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 to which the terminal is currently connected includes: comparing a first priority of the second network access point to a first priority of the first network access point, wherein the first priority is related to an access type of a network access point; determining 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 network access point first priority.
Optionally, when the first priority of the second network access point is equal to the first priority of the first network access point, the method further comprises: determining whether a second priority of the second network access point is higher than a second priority of the first network access point, wherein the second priority is related to a network quality of the network access point.
Optionally, before comparing the first priority of the second network access point with the first priority of the first network access point, further comprising: when the connection with the second network access point is established for the first time, sending a request message to the second network access point; receiving a message which is fed back by the second network access point according to the request message and carries the access type information of the second network access point; and sending a request message to the first network access point when establishing a connection with the first network access point for the first time; and receiving a message which is fed back by the first network access point according to the request message and carries the access type information of the first network access point.
Optionally, before connecting the terminal to the second network access point, the method further comprises: judging whether the signal intensity of the second network access point is greater than or equal to a preset threshold value or not; and when the judgment result is yes, connecting the terminal to the second network access point.
Optionally, before determining whether the priority of the second network access point is higher than the priority of the first network access point to which the terminal is currently connected according to the priority list, the method further includes: acquiring identification information of a first network access point and a second network access point, wherein the identification information comprises a Service Set Identification (SSID); and storing the identification information and the priority information of the network access point corresponding to the identification information into the priority list.
Optionally, the historical operating parameters include: average internet packet retriever ping packet rate, average ping packet response time, connection time with the terminal, usage flow number.
Optionally, the calculating the priority information according to the historical operating parameters of the corresponding network access point includes: the priority information S is calculated by the following formula: (ii) S ═ Aa + Bb + Cc + Dd; wherein 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 coefficients corresponding to ABCD, respectively, and a + B + C + D is 1.
According to another embodiment of the present invention, there is provided a connection apparatus of a network access point, including: the terminal comprises a searching module, a judging module and a judging module, wherein the searching module is used for searching a second network access point which can be connected with the terminal under the state that the terminal is currently connected with a first network access point; the judging module is used for judging whether the priority of the second network access point is higher than that of the first network access point according to a priority list, wherein the priority list records the priority information of the first network access point and the priority information of at least one second network access point, and the priority information is obtained by calculation according to the historical working parameters of the corresponding network access point; and the connection module is used for connecting the terminal to the second network access point when the judgment result is yes.
Optionally, the determining module further 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 is related to an access type of a network access point; a determining unit, configured to determine that the priority of the second network access point is higher than the priority of 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.
Optionally, the determining module further includes: and the judging unit is used for judging whether the second priority of the second network access point is higher than the second priority of the first network access point when the first priority of the second network access point is equal to the first priority of the first network access point, wherein the second priority is related to the network quality of the network access point.
Optionally, the historical operating parameters include: average internet packet retriever ping packet rate, average ping packet response time, connection time with the terminal, usage flow number.
Optionally, the calculating the priority information according to the historical operating parameters of the corresponding network access point includes: the priority information S is calculated by the following formula: (ii) S ═ Aa + Bb + Cc + Dd; wherein 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 coefficients corresponding to ABCD, respectively, and a + B + C + D is 1.
By the invention, in the state that the terminal is currently connected with the first network access point, the second network access point which can be connected with the terminal is searched, and whether the priority of the second network access point is higher than the priority of the first network access point which is currently connected with the terminal is judged according to the priority list, wherein the priority information of the first network access point and the priority information of at least one second network access point are recorded in the priority list, the priority information is obtained by calculation according to the historical working parameters of the corresponding network access point, when the judgment result is yes, the terminal is connected to the second network access point, and the priority information is generated according to the historical working parameters of the network access point, so that the determination of the priority can be automatically completed, the intelligent switching can be realized, and the technical problem that the network access points can not be automatically switched in the related technology can be solved, the technical effect of improving the user experience is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a method for connecting a network access point according to an embodiment of the present invention;
fig. 2 is a flowchart of a connection method of a network access point according to an embodiment of the present invention;
fig. 3 is a block diagram of a connection apparatus of a network access point according to an embodiment of the present invention;
FIG. 4 is a block diagram one alternative architecture of a connection of network access points according to an embodiment of the present invention;
fig. 5 is a schematic view of a flow of acquiring an AP hotspot parameter in embodiment 3 of the present invention;
fig. 6 is a schematic flow chart of AP priority ranking in embodiment 3 of the present invention;
fig. 7 is a schematic diagram of an AP handover procedure in embodiment 3 of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on the mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of a connection method of a network access point according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmitting device 106 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the connection method of the network access point in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the method described above. The 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. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a method for connecting a network access point operating in the mobile terminal is provided, and fig. 2 is a flowchart of a method for connecting a network access point according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, searching a second network access point which can be connected with the terminal under the state that the terminal is currently connected with the first network access point; optionally, the connectable second network access point may be WIFI searched in the WIFI list in real time, or may also be WIFI that receives the broadcast message, or locally stored WIFI, and the like.
Step S204, judging whether the priority of the second network access point is higher than the priority of the first network access point currently connected with the terminal according to a priority list, wherein the priority information of the first network access point and the priority information of at least one second network access point are recorded in the priority list, and the priority information is obtained by calculation according to the historical working parameters of the corresponding network access points;
and step S206, when the judgment result is yes, connecting the terminal to the second network access point.
Through the steps, in the state that the terminal is currently connected with the first network access point, searching a second network access point which can be connected with the terminal, and judging whether the priority of the second network access point is higher than the priority of the first network access point currently connected with the terminal according to a priority list, wherein the priority list records the priority information of the first network access point and the priority information of at least one second network access point, the priority information is obtained by calculation according to the historical working parameters of the corresponding network access point, when the judgment result is yes, the terminal is connected to the second network access point, and as the priority information is generated according to the historical working parameters of the network access points, the priority can be automatically determined, intelligent switching can be realized, and the technical problem that the network access points can not be automatically switched in the related technology can be solved, the technical effect of improving the user experience is achieved.
In an optional implementation manner according to this embodiment, the determining, including two times of priorities, whether the priority of the second network access point is higher than the priority of the first network access point to which the terminal is currently connected according to the priority list includes:
s11, comparing 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, and optionally, the access type may be related to the network type accessed by the network access point, including: cellular data connection, broadband connection; the cellular data connection type hotspots such as mobile WIFI, mobile phone hotspots and the like can help users to save traffic by distinguishing whether the WAN side of the hotspot wide area network is in data connection or broadband connection.
Optionally, 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, it is determined that the priority of the second network access point is higher than the priority of the first network access point.
When the first priority of the second network access point is equal to the first priority of the first network access point, the above optional embodiment further includes:
and S12, when the first priority of the second network access point is equal to the first priority of the first network access point, judging whether the second priority of the second network access point 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.
In this embodiment, when determining the priority by using the hotspot type, it is further required to obtain the hotspot type in advance, specifically, when the terminal connects to a certain hotspot for the first time, the terminal sends a parameter request to request a WAN side access manner of the AP, determines an access type of the AP, and stores and marks the parameter, that is, before comparing the first priority of the second network access point with the first priority of the first network access point, the method further includes:
when the connection with the second network access point is established for the first time, a request message is sent to the second network access point; receiving a message which is fed back by the second network access point according to the request message and carries the access type information of the second network access point;
when the connection with the first network access point is established for the first time, a request message is sent to the first network access point; and receiving a message which is fed back by the first network access point according to the request message and carries the access type information of the first network access point.
Optionally, the method may further include determining the signal strength of the second network access point, so as to avoid switching to a hot spot with a too weak signal, and before connecting the terminal to the second network access point, the method further includes:
s21, judging whether the signal intensity of the second network access point is larger than or equal to a preset threshold value;
and S22, if the judgment result is yes, connecting the terminal to the second network access point.
Optionally, before determining whether the priority of the second network access point is higher than the priority of the first network access point currently connected to the terminal according to the priority list, a priority list including priority information of each hotspot needs to be established and stored, which specifically includes:
s31, collecting identification information of the first network access point and the second network access point, wherein the identification information includes Service Set Identifier (SSID);
s32, storing the identification information and the priority information of the network access point corresponding to the identification information into a priority list.
In this embodiment, the historical operating parameters for obtaining the priority information may include, but are not limited to: average internet packet retriever ping packet rate, average ping packet response time, connection time with the terminal, usage flow number. Optionally, the parameters for acquiring the AP may not be limited to the four points described above, and other parameters such as security considerations may be added.
According to the above parameters, specifically, the priority information S can be calculated by the following formula:
S=Aa+Bb+Cc+Dd;
wherein, a is an average ping packet rate, B is an average ping packet response time, C is a connection time with the terminal, D is a used flow rate, ABCD is a weight coefficient corresponding to ABCD, and a + B + C + D is 1. If other parameters are considered, such as security class E, then the corresponding weighting factor E should be added, and a + b + c + d + E is equal to 1.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a connection device for a network access point is further provided, where the connection device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a connection apparatus of a network access point according to an embodiment of the present invention, as shown in fig. 3, the apparatus including:
a searching module 30, configured to search a second network access point to which the terminal can connect in a state where the terminal is currently connected to the first network access point;
the judging module 32 is configured to judge whether the priority of the second network access point is higher than the priority of the first network access point according to a priority list, where the priority list records priority information of the first network access point and priority information of at least one second network access point, and the priority information is obtained by calculation according to historical working parameters of the corresponding network access point;
and a connection module 34, configured to connect the terminal to the second network access point when the determination result is yes.
Fig. 4 is a block diagram of an alternative structure of the connection of the network access point according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes, in addition to all the modules shown in fig. 3, the 32 determining module further includes:
a comparing unit 40, 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 an access type of the network access point, and optionally, the access type includes: cellular data connection, broadband connection;
a determining unit 42, configured to determine that the priority of the second network access point is higher than the priority of 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.
When the first priority of the second network access point is equal to the first priority of the first network access point, the network quality needs to be further determined, as shown in fig. 4, fig. 4 further includes:
a determining unit 44, configured to determine whether a second priority of the second network access point is higher than a second priority of the first network access point when the first priority of the second network access point is equal to the first priority of the first network access point, where the second priority is related to the network quality of the network access point.
In this embodiment, the historical operating parameters for obtaining the priority information may include, but are not limited to: average internet packet retriever ping packet rate, average ping packet response time, connection time with the terminal, usage flow number. Optionally, the parameters for acquiring the AP may not be limited to the four points described above, and other parameters such as security considerations may be added.
According to the above parameters, specifically, the priority information S can be calculated by the following formula:
S=Aa+Bb+Cc+Dd;
wherein, a is an average ping packet rate, B is an average ping packet response time, C is a connection time with the terminal, D is a used flow rate, ABCD is a weight coefficient corresponding to ABCD, and a + B + C + D is 1. If other parameters are considered, such as security class E, then the corresponding weighting factor E should be added, and a + b + c + d + E is equal to 1.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Example 3 is an alternative example according to the present invention for describing the invention in detail:
embodiment 3 provides a method and an apparatus for intelligently switching WIFI access points, which collect relevant parameters of historically connected APs (network access points) in a connection process, calculate connection priorities of the collected parameters according to a corresponding algorithm, and update the priorities in real time; when the WIFI hotspot is connected, the broadcast messages sent by other APs are received, the searching is carried out in the existing AP information list according to the SSID in the broadcast messages, whether the priority of the AP hotspot is higher than that of the currently connected AP or not is judged, and if the priority of the AP hotspot is higher than that of the currently connected AP hotspot, the connection switching is carried out according to the setting of a user (automatic switching or switching inquiry to the user). Thereby improving the user experience of the product. In this embodiment, the hotspot, the network access point, the AP, and the WIFI are all equivalent meanings, and are the same reference in different scenes, that is, all are network access points.
The algorithm for intelligently calculating the priority of the WIFI access point comprises the following steps:
step 1: collecting related parameters of historical connection hot spots;
when a certain AP hotspot is connected for the first time, the terminal sends a parameter request to request the WAN side access mode of the AP, determines the access type of the AP, and stores and marks the parameter.
In the process of connecting the hot spots, the following parameters of the hot spots are acquired in real time and stored:
average rate of Ping packets;
average response time of Ping packets;
a historical connection duration;
flow rate of historical use
Step 2: prioritizing historical connected APs
Firstly, the priority of the AP of type 0 is higher than that of type 1;
secondly, for the priority ranking among APs of the same type, the ranking can be calculated comprehensively from several parameters:
historical average ping packet rates;
historical average ping packet response time;
a historical connection time;
historical usage flow rate;
and (3) sequencing algorithm:
firstly, according to the importance of each index, giving a weight coefficient of each index, wherein the coefficient is a number less than 1, and the sum of all index weight coefficients is 1;
then according to a certain index of each product, calculating the index proportion of the index of each product in all products;
comprehensive index of each product
All indexesWeight of some index value of AP and weight coefficient of some index of AP
All products are sorted according to the calculated comprehensive index number;
optionally, the parameters of the AP may not be limited to the above four points, and other parameters such as security consideration may be added; an interface for the user to manually edit the AP priority may also be provided, allowing the user to manually edit the AP priority.
And step 3: automatic contrast switching
When the terminal searches other AP hotspots around, firstly, the priority value of the searched AP hotspots is inquired in an AP list, whether the value is higher than the current connected AP hotspot is judged, if the value is higher than the current hotspot, the signal intensity and the like of the hotspot are judged, whether the value is available is judged, if the value is available, switching is carried out according to user setting (automatic switching or inquiry switching), if the automatic switching is selected, direct automatic switching is carried out, if the inquiry switching is selected, prompt information is pushed to the user, and the user determines whether switching is needed; if the signal strength or the like is poor, the handover is not performed.
Fig. 5 is a schematic diagram of a process of acquiring an AP hotspot parameter in embodiment 3 of the present invention, as shown in fig. 5, including:
when the STA connects with an AP for the first time, a parameter request is added in the connection request to obtain the access type of the AP, the AP returns the access type of the AP, and the STA marks and stores the type after receiving the access type.
In the process of AP connection, the following parameters are acquired periodically:
average rate of Ping packets;
the speed of ping packets can be counted by regularly going to ping certain websites, and the average speed when the AP is connected historically is calculated;
average response time of Ping packets;
the response time of the ping packet can be counted by regularly going to ping certain websites, and the average response time when the AP is connected historically is calculated;
a historical connection duration;
the time length for connecting a certain AP is updated according to the timed record;
historical usage flow rate;
regularly recording and updating data flow used when a certain AP is connected;
fig. 6 is a schematic flow chart of AP priority ordering in embodiment 3 of the present invention, as shown in fig. 6, including:
when AP connection is disconnected every time, a priority ranking is carried out on the AP lists of all historical connections, and a ranking algorithm is carried out according to the following method:
firstly, reading the values of the access type parameters of all APs, if all APs with the access type 0 are arranged in front of the APs with the access type 1; here, the cellular data access type may be selected to be 0 and the broadband access type may be selected to be 1.
Secondly, the sequence of the same access type AP is calculated and sequenced according to the following algorithm:
reading the values of the following four parameters of all the APs of the same type:
average rate of Ping packets;
average response time of Ping packets;
a historical connection duration;
historical usage flow rate;
after reading, calculating a comprehensive index value of each AP according to the following algorithm;
and (3) sequencing algorithm:
firstly, according to the importance of each index, giving a weight coefficient of each index, wherein the coefficient is a number less than 1, and the sum of all index weight coefficients is 1;
then according to a certain index of each AP, calculating the index proportion of the index of each AP in all APs;
the comprehensive index of each AP:
all indexesWeight of some index value of AP and weight coefficient of some index of AP
And sequencing the APs of the same type according to the calculation result, and then sequencing all the APs according to the principle that the priority of the AP of the type 0 is higher than that of the AP of the type 1.
Fig. 7 is a schematic diagram of an AP handover procedure in embodiment 3 of the present invention, and as shown in fig. 7, the AP handover procedure includes:
after the STA changes the environment and the location, after receiving the broadcast messages sent by other APs, inquiring in the APs in the priority list according to the SSID in the broadcast messages, wherein a judgment process is also provided for determining whether the AP sending the broadcast messages is the AP in the priority list, and if not, calling back to a WIFI default strategy and executing default connection; if yes, continuously judging whether the priority of the AP is higher than that of the currently connected AP or not, if not, not switching, if so, judging whether the signal intensity and the like of the AP are normal or not, if so, automatically switching according to an option (automatic switching or inquiry switching) set by a user or pushing a prompt message, and confirming whether the AP is automatically switched or not by the user; otherwise, the handover is not performed.
After switching, if the used AP has problems such as poor signals and the like, processing according to a WIFI default strategy;
aiming at the defects in the prior art, the invention provides an algorithm and a device for automatically switching WIFI connection hotspots, which can perform more humanized sequencing on APs connected by a user, search in an AP information list stored by the device when detecting that new AP accessible information exists according to environment change, select a new AP with the highest priority level, and automatically switch to the AP with the high priority level, thereby improving the user experience of products.
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, searching a second network access point to which the terminal can be connected;
s2, judging whether the priority of the second network access point is higher than the priority of the first network access point currently connected with the terminal according to the priority list, wherein the priority information of the first network access point and the priority information of at least one second network access point are recorded in the priority list, and the priority information is obtained by calculation according to the historical working parameters of the corresponding network access points;
and S3, if the judgment result is yes, connecting the terminal to the second network access point.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, in this embodiment, the processor executes, according to the program code stored in the storage medium, search for a second network access point to which the terminal can connect;
optionally, in this embodiment, the processor executes, according to a program code stored in the storage medium, to determine whether the priority of the second network access point is higher than the priority of the first network access point to which the terminal is currently connected according to a priority list, where priority information of the first network access point and priority information of at least one second network access point are recorded in the priority list, and the priority information is obtained by calculation according to a historical operating parameter of the corresponding network access point;
optionally, in this embodiment, the processor executes, according to the program code stored in the storage medium, to connect the terminal to the second network access point when the determination result is yes.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A method for connecting to a network access point, comprising:
searching a second network access point which can be connected with a terminal under the state that the terminal is currently connected with a first network access point;
judging whether the priority of the second network access point is higher than that of the first network access point or not according to a priority list, wherein the priority list records the priority information of the first network access point and the priority information of at least one second network access point, the priority information is obtained by calculation according to the historical working parameters of the corresponding network access point, and the network quality of the second network access point is higher than that of the first network access point;
if so, connecting the terminal to the second network access point;
the historical operating parameters include: average internet packet retriever ping packet rate, average ping packet response time, connection time with the terminal, usage flow number;
the priority information is calculated according to the historical working parameters of the corresponding network access points, and the calculation comprises the following steps: the priority information S is calculated by the following formula: s = Aa + Bb + Cc + Dd, wherein 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 used flow rate, ABCD is the weight coefficient corresponding to ABCD respectively, and a + B + C + D = 1;
judging whether the priority of the second network access point is higher than the priority of the first network access point currently connected with the terminal according to the priority list comprises the following steps:
comparing a first priority of the second network access point to a first priority of the first network access point, wherein the first priority is related to an access type of a network access point;
determining 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 network access point first priority.
2. The method of claim 1, wherein when the first priority of the second network access point is equal to the first priority of the first network access point, the method further comprises:
determining whether a second priority of the second network access point is higher than a second priority of the first network access point, wherein the second priority is related to a network quality of the network access point.
3. The method of claim 1, further comprising, prior to comparing the first priority of the second network access point to the first priority of the first network access point:
when the connection with the second network access point is established for the first time, sending a request message to the second network access point; receiving a message which is fed back by the second network access point according to the request message and carries the access type information of the second network access point; and the number of the first and second groups,
sending a request message to the first network access point when establishing a connection with the first network access point for the first time; and receiving a message which is fed back by the first network access point according to the request message and carries the access type information of the first network access point.
4. The method of claim 1, wherein prior to connecting the terminal to the second network access point, the method further comprises:
judging whether the signal intensity of the second network access point is greater than or equal to a preset threshold value or not;
and when the judgment result is yes, connecting the terminal to the second network access point.
5. The method of claim 1, wherein before determining whether the priority of the second network access point is higher than the priority of the first network access point to which the terminal is currently connected according to the priority list, the method further comprises:
acquiring identification information of a first network access point and a second network access point, wherein the identification information comprises a Service Set Identification (SSID);
and storing the identification information and the priority information of the network access point corresponding to the identification information into the priority list.
6. An apparatus for connecting network access points, comprising:
the terminal comprises a searching module, a judging module and a judging module, wherein the searching module is used for searching a second network access point which can be connected with the terminal under the state that the terminal is currently connected with a first network access point;
the judging module is used for judging whether the priority of the second network access point is higher than that of the first network access point according to a priority list, wherein the priority list records the priority information of the first network access point and the priority information of at least one second network access point, the priority information is obtained by calculation according to the historical working parameters of the corresponding network access point, and the network quality of the second network access point is higher than that of the first network access point;
the connection module is used for connecting the terminal to the second network access point when the judgment result is yes;
the historical operating parameters include: average internet packet retriever ping packet rate, average ping packet response time, connection time with the terminal, usage flow number;
the priority information is calculated according to the historical working parameters of the corresponding network access points, and the calculation comprises the following steps: the priority information S is calculated by the following formula: s = Aa + Bb + Cc + Dd, wherein 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 used flow rate, ABCD is the weight coefficient corresponding to ABCD respectively, and a + B + C + D = 1;
the judging module further comprises:
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 is related to an access type of a network access point;
a determining unit, configured to determine that the priority of the second network access point is higher than the priority of 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.
7. The apparatus of claim 6, wherein the determining module further comprises:
and the judging unit is used for judging whether the second priority of the second network access point is higher than the second priority of the first network access point when the first priority of the second network access point is equal to the first priority of the first network access point, wherein the second priority is related to the network quality of the network access point.
CN201610254618.XA 2016-04-21 2016-04-21 Method and device for connecting network access points Active CN107306429B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610254618.XA CN107306429B (en) 2016-04-21 2016-04-21 Method and device for connecting network access points
PCT/CN2016/083337 WO2017181480A1 (en) 2016-04-21 2016-05-25 Connecting method and device for network access point

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610254618.XA CN107306429B (en) 2016-04-21 2016-04-21 Method and device for connecting network access points

Publications (2)

Publication Number Publication Date
CN107306429A CN107306429A (en) 2017-10-31
CN107306429B true CN107306429B (en) 2021-07-13

Family

ID=60115514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610254618.XA Active CN107306429B (en) 2016-04-21 2016-04-21 Method and device for connecting network access points

Country Status (2)

Country Link
CN (1) CN107306429B (en)
WO (1) WO2017181480A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124744B (en) * 2017-06-19 2020-09-25 深圳市优克联新技术有限公司 Network switching method and wireless access point
CN109982412A (en) * 2017-12-28 2019-07-05 中国移动通信集团陕西有限公司 A kind of wifi access point connection method and device
CN110113769B (en) * 2018-02-01 2021-10-29 中兴通讯股份有限公司 WiFi channel screening method and device and computer readable storage medium
CN108471622B (en) * 2018-06-12 2021-08-17 Oppo广东移动通信有限公司 WiFi connection adjustment method and device, mobile terminal and storage medium
CN109068360A (en) * 2018-09-17 2018-12-21 珠海格力电器股份有限公司 A kind of switching connection method, system and the intelligent terminal of network WiFi and hot spot WiFi
CN109511146A (en) * 2018-12-29 2019-03-22 联想(北京)有限公司 A kind of connection method, electronic equipment and network access equipment
CN110392416B (en) * 2019-08-12 2021-06-29 广州鲁邦通物联网科技有限公司 Network selection method of android system
CN111314994B (en) * 2020-02-13 2022-05-24 深圳市潮流网络技术有限公司 Wireless mesh network access method and device, computing equipment and storage medium
CN112333100A (en) * 2020-06-18 2021-02-05 深圳Tcl新技术有限公司 Route creating method, device and readable storage medium
CN114553624B (en) * 2022-02-10 2023-12-19 青岛海尔科技有限公司 Network connection method and device of intelligent household equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118419A (en) * 2013-01-24 2013-05-22 中兴通讯股份有限公司 Terminal wireless access point reclosure method and device using the same

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100508474C (en) * 2002-02-10 2009-07-01 华为技术有限公司 Method for switching over between switch-in points moving terminal in wireless local network
CN101521924B (en) * 2009-04-27 2011-11-16 杭州华三通信技术有限公司 Switching method and device of wireless local area network
CN101668322B (en) * 2009-09-17 2012-06-27 华为终端有限公司 Network switching method of terminal and terminal equipment
KR101600472B1 (en) * 2009-10-30 2016-03-08 삼성전자주식회사 Apparatus and method for associating network in an wireless terminal
CN102448099A (en) * 2012-01-18 2012-05-09 北京傲天动联技术有限公司 Method and device for quickly detecting and switching during roaming of wireless terminal
CN102917424A (en) * 2012-10-25 2013-02-06 陕西科技大学 AP (application process) switching method used in WiFi (wireless fidelity) communication
CN103686896B (en) * 2013-12-12 2016-06-15 广州市地下铁道总公司 The changing method of WAP and terminal
CN104796965B (en) * 2015-03-19 2018-07-10 四川长虹电器股份有限公司 A kind of method that AP connection priorities are controlled under WiFi environment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118419A (en) * 2013-01-24 2013-05-22 中兴通讯股份有限公司 Terminal wireless access point reclosure method and device using the same

Also Published As

Publication number Publication date
WO2017181480A1 (en) 2017-10-26
CN107306429A (en) 2017-10-31

Similar Documents

Publication Publication Date Title
CN107306429B (en) Method and device for connecting network access points
CN105247911B (en) Management device, method of operating management device, and computer recordable medium
US9807653B2 (en) Device and method for basic service set transition management
US9974009B2 (en) Network access method for mobile terminal
CN103765958B (en) Search for the method and device of network
US10021591B2 (en) Limiting access to service providers based on the network traffic load of a wireless access point
CN104796962B (en) Network selection method and device
US20120166622A1 (en) Automated service provider network selection using a wireless air-time auction
CN108366403B (en) Network switching method, device, terminal and storage medium
US10716043B2 (en) Access point handover method and device
CN109327883A (en) The method and apparatus for transmitting information
CN110419242B (en) Aggregation connection establishment method, device and storage medium
WO2013185354A1 (en) Methods, computer program products and apparatuses enabling to improve handovers in mobile communication networks
CN101841875A (en) Realization method and realization device for cell reselection
CN107529154B (en) Communication method and device of multimode terminal
CN108738104A (en) A kind of method, terminal and network equipment for establishing local network connection
CN102711200A (en) Method and device for switching wireless local area network (WLAN) and mobile terminal
CN105451274A (en) Network convergence preprocessing method, device and system
CN106604358B (en) Method and device for adaptively selecting data network
KR20150013286A (en) Communication method and system, access network device, terminal, and core network device
CN114828125A (en) Voice service switching method and device, electronic equipment and storage medium
CN106162808B (en) A kind of method and apparatus of network insertion
CN104284392A (en) Information sending and cell searching method and device
CN112333764A (en) Network slice selection method and device, slice mapping system and network equipment
EP3103285A1 (en) Method and apparatus for determining a network search parameter in a mobile communications network

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