CN108391305B - WiFi hotspot selection method and terminal equipment - Google Patents

WiFi hotspot selection method and terminal equipment Download PDF

Info

Publication number
CN108391305B
CN108391305B CN201810160117.4A CN201810160117A CN108391305B CN 108391305 B CN108391305 B CN 108391305B CN 201810160117 A CN201810160117 A CN 201810160117A CN 108391305 B CN108391305 B CN 108391305B
Authority
CN
China
Prior art keywords
wifi hotspot
connection
wifi
hotspot
weight
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810160117.4A
Other languages
Chinese (zh)
Other versions
CN108391305A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810160117.4A priority Critical patent/CN108391305B/en
Publication of CN108391305A publication Critical patent/CN108391305A/en
Application granted granted Critical
Publication of CN108391305B publication Critical patent/CN108391305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a WiFi hotspot selection method and terminal equipment, which are applied to the technical field of communication and used for solving the problem that the optimal WiFi hotspot cannot be selected by the existing WiFi hotspot selection method. The method comprises the following steps: acquiring connection parameters of at least one scanned accessible WiFi hotspot; the connection parameters comprise historical connection parameters of each WiFi hotspot in a preset time period, and the historical connection parameters comprise user use parameters when the WiFi hotspots are successfully connected each time; determining the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot; and selecting a target WiFi hotspot from at least one WiFi hotspot according to the connection weight of each WiFi hotspot to carry out network connection.

Description

WiFi hotspot selection method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a WiFi hotspot selection method and terminal equipment.
Background
With the development of Wireless network technology, more and more people establish a Wireless network environment by connecting Wireless Fidelity (WiFi) hotspots in daily life and work. Public WiFi hotspots (e.g., free WiFi hotspots provided by operators, free WiFi hotspots provided by public places such as malls, airports, etc.) are provided in each large public place in most cities today. With the complication of the wireless network environment, 2 or more than 2 public WiFi hotspots are usually set in each public place, and at this time, the user is required to select one public WiFi hotspot to connect.
In the prior art, a mobile terminal scans WiFi hotspots according to the location of the mobile terminal, and then adds all the scanned WiFi hotspots to a WiFi hotspot list for a user to select.
However, the user only connects to one WiFi hotspot randomly selected from the WiFi hotspot list, and the WiFi hotspot is not always the best WiFi hotspot, and the WiFi signal generated by the WiFi hotspot is likely to have a problem of unstable WiFi signal, which further causes the user to be unable to surf the internet normally due to network abnormality (e.g., frequent network drop, network delay, network congestion, etc.).
Disclosure of Invention
The embodiment of the invention provides a WiFi hotspot selection method and terminal equipment, which are used for solving the problem that the optimal WiFi hotspot cannot be selected by the existing WiFi hotspot selection method.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a WiFi hotspot selection method, where the method includes:
acquiring connection parameters of at least one scanned accessible WiFi hotspot; the connection parameters comprise historical connection parameters of each WiFi hotspot in a preset time period, and the historical connection parameters comprise user use parameters each time the WiFi hotspots are successfully connected;
determining the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot;
and determining a target WiFi hotspot to carry out network connection from the at least one WiFi hotspot according to the connection weight of each WiFi hotspot.
In a second aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes:
the acquisition module is used for acquiring the connection parameters of the scanned at least one accessible WiFi hotspot; the connection parameters comprise historical connection parameters of each WiFi hotspot in a preset time period, and the historical connection parameters comprise user use parameters each time the WiFi hotspots are successfully connected;
the determining module is used for determining the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot acquired by the acquiring module;
and the selection module is used for determining a target WiFi hotspot to carry out network connection from the at least one WiFi hotspot according to the connection weight of each WiFi hotspot determined by the determination module.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the WiFi hotspot selection method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the WiFi hotspot selection method according to the first aspect.
In the embodiment of the invention, the terminal equipment acquires the historical connection parameters of each WiFi hotspot in at least one accessible WiFi hotspot in a preset time period, and the historical connection parameters of each WiFi hotspot specifically comprise user use parameters of the WiFi hotspot every time the WiFi hotspot is successfully connected, so that the determined connection weight of each WiFi hotspot can represent the usability of the WiFi hotspot according to the historical connection parameters of each WiFi hotspot, so that the terminal equipment can select an optimal target WiFi hotspot from at least one WiFi hotspot for connection according to the connection weight of each WiFi hotspot, and the internet surfing experience of a user is improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a WiFi hotspot selection method provided by an embodiment of the present invention;
fig. 3 is a first schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. The term "plurality" herein means two or more, unless otherwise specified.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion. In the embodiments of the present invention, "of", "corresponding" and "corresponding" may be sometimes used in combination, and it should be noted that the intended meaning is consistent when the difference is not emphasized. The meaning of "a plurality" in the embodiments of the present invention means two or more.
The terminal device in the embodiment of the invention can be a mobile terminal device and can also be a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied by the WiFi hotspot selection method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application program layer, an application program framework layer, a system runtime library layer and a kernel layer (specifically, the system runtime library layer may be a Linux kernel layer), wherein:
the application layer comprises various applications (including system applications and third party applications) in the android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the WiFi hotspot selection method provided in the embodiment of the present invention based on the above system architecture of the android operating system shown in fig. 1, so that the WiFi hotspot selection method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the WiFi hotspot selection method provided by the embodiment of the invention by running the software program in the android operating system.
The first embodiment:
the WiFi hotspot selection method according to the embodiment of the present invention is described below with reference to fig. 2, where fig. 2 is a schematic flow diagram of the WiFi hotspot selection method according to the embodiment of the present invention, and the WiFi hotspot selection method includes steps S201 to S203:
s201, the terminal device obtains the connection parameters of the scanned at least one accessible WiFi hotspot.
In the embodiment of the present invention, the connection parameters include historical connection parameters of each WiFi hotspot in a predetermined time period, and the historical connection parameters of each WiFi hotspot include total times of successful connection of the WiFi hotspot and user usage parameters of successful connection of the WiFi hotspot each time.
Optionally, in this embodiment of the present invention, the user usage parameters for each successful connection to the WiFi hotspot include: the network traffic generated by the WiFi hotspot and the network traffic generated by the WiFi hotspot are greater than 0 for a sustained connection time.
In the embodiment of the present invention, the accessible WiFi hotspot is an accessible WiFi hotspot that can be currently scanned by the terminal device. Illustratively, the accessible WiFi hotspots in the embodiments of the present invention generally include two types: one is a free WiFi hotspot, for example: the WiFi hotspot free of charge provided by an operator, the WiFi hotspot free of charge provided by a merchant and the WiFi hotspot shared by friends are the WiFi hotspots connected with the terminal equipment.
Illustratively, the free WiFi hotspots include two types: one is a free password-free WiFi hotspot and one is a free encrypted WiFi hotspot. It should be noted that although the free encrypted WiFi hotspot needs a password, if the password terminal device or the user of the WiFi hotspot can obtain the password terminal device or the user, the encrypted WiFi hotspot may be considered as a free WiFi hotspot. For the WiFi hotspot connected with the terminal device, since the password is stored by the terminal device after the user manually inputs the password for connection, when the terminal device scans the WiFi hotspot again, the terminal device can directly access the WiFi hotspot, and therefore, the WiFi hotspot connected with the terminal device can be considered as an accessible WiFi hotspot.
For example, in the embodiment of the present invention, the terminal device may store the usage data of the user in the cloud database each time the user accesses a WiFi hotspot, so that for a certain WiFi hotspot, when obtaining the connection parameter of the WiFi hotspot, the terminal device may query the usage data of all users accessing the WiFi hotspot from the cloud database according to the network parameter of the WiFi hotspot (for example, information such as a WiFi hotspot name, a MAC address, and the like), for example, the usage time of the user accessing the WiFi hotspot each time, and traffic generated by the WiFi hotspot during the usage time. Further, all data stored in the cloud database may be updated periodically (fixed time per day update, i.e. only usage data of WiFi hotspots used by each user during a day is stored in the cloud database) or non-periodically (passively updated according to administrator's instructions).
Optionally, in the embodiment of the present invention, S201 specifically includes the following steps:
s201a, the terminal device obtains the WiFi hotspot list.
Illustratively, when receiving a WiFi access request, a terminal device scans surrounding WiFi hotspots of the terminal device to obtain a WiFi hotspot list, where the WiFi hotspot list includes at least one WiFi hotspot that can be scanned by the terminal device.
S201b, the terminal device traverses the WiFi hot spot list.
In the process of traversing the WiFi hotspot list, the terminal device executes the following operations on each WiFi hotspot in the WiFi hotspot list:
step A: the terminal equipment judges whether the current WiFi hotspot is an accessible WiFi hotspot.
Step B1: if the current WiFi hotspot is the WiFi hotspot which can be accessed currently, the terminal equipment acquires the connection parameter of the current WiFi hotspot and continuously traverses the next WiFi hotspot of the current WiFi hotspot in the WiFi hotspot list;
step B2: and if the current WiFi hotspot is the current inaccessible WiFi hotspot, the terminal equipment deletes the current WiFi hotspot.
In the embodiment of the present invention, the terminal device may determine whether the current WiFi hotspot is an accessible WiFi hotspot by determining whether the current WiFi hotspot is a free WiFi hotspot, or may determine whether the current WiFi hotspot is an accessible WiFi hotspot by determining whether a password of the current WiFi hotspot is stored inside the terminal device.
In an example, WiFi hotspots are generally classified into two categories, one is a home WiFi hotspot, and the other is a public WiFi hotspot, because the home WiFi hotspot generally has a fast network speed and a good user experience, in the embodiment of the present invention, all home WiFi hotspots in a WiFi hotspot list may be excluded, and then the remaining public WiFi hotspots are used as currently accessible WiFi hotspots to further obtain connection parameters of the public WiFi hotspots. For example, since a public WiFi hotspot is usually connected by multiple people at the same time, the embodiment of the present invention may determine whether the WiFi hotspot is a public WiFi hotspot by determining whether the connection frequency of the WiFi hotspot at the same time is greater than a specific threshold, if so, determine that the WiFi hotspot is an accessible WiFi hotspot, and if not, determine that the WiFi hotspot is an inaccessible WiFi hotspot.
S202, the terminal device determines the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot.
In the embodiment of the present invention, the connection weight of the WiFi hotspot is used to characterize the usability of the WiFi hotspot, or to characterize the network performance of the WiFi hotspot.
Optionally, in this embodiment of the present invention, S202 may be implemented by at least the following two implementation manners:
a first possible implementation:
illustratively, S202 specifically includes the following steps:
s202a, the terminal device performs the following operations for each WiFi hotspot of the at least one WiFi hotspot:
and C: and the terminal equipment calculates the connection weight of the WiFi hot spots according to the total times, the first times and the second times of the WiFi hot spots.
The first times are the times of connection when the network traffic generated by the WiFi hotspot is greater than a first threshold, and the second times are the times of connection when the connection time duration during which the network traffic generated by the WiFi hotspot is greater than 0 is greater than a second threshold.
Further optionally, the step C specifically includes the following steps:
step C1, the terminal device calculates a first weight component of the WiFi hotspot according to the total number of times and the first number of times of the WiFi hotspot, and calculates a second weight component of the WiFi hotspot according to the total number of times and the second number of times of the WiFi hotspot.
And step C2, the terminal device calculates the connection weight of the WiFi hotspot according to the first weight component and the second weight component.
The first weight component is proportional to the first number of times, or a ratio of the total number of times of the WiFi hotspots to the first number of times is proportional to the first weight component, and the second weight component is proportional to the second number of times, or a ratio of the total number of times of the WiFi hotspots to the second number of times is proportional to the second weight component.
A second possible implementation:
illustratively, S202 specifically includes the following steps:
s202b, the terminal device performs the following operations for each WiFi hotspot of the at least one WiFi hotspot:
step D: the terminal device calculates the connection weight beta of the WiFi hotspot according to the total times N of the WiFi hotspot, the network flow generated by the WiFi hotspot when the WiFi hotspot is successfully connected every time, the connection time during which the network flow generated by the WiFi hotspot is greater than 0 and a preset formula.
In one example, the preset formula is:
Figure BDA0001582694380000051
wherein, G is as defined aboveiThe network traffic generated by the WiFi hotspot when the WiFi hotspot is successfully connected for the ith time, T isiThe connection time for which the network traffic generated by the WiFi hotspot when the WiFi hotspot is successfully connected for the ith time is greater than 0, G aboveoIs a third threshold value, T0And a is a fourth threshold, a is a weight of the network speed, b is a weight of the internet access time, a and b are both constants, and N is greater than or equal to 1.
For example, for a certain WiFi hotspot, the terminal device calculates the usability variable of the WiFi hotspot when the WiFi hotspot is successfully connected each time, and then adds all the usability variables to obtain an average value, so as to obtain the connection weight of the WiFi hotspot.
Further alternatively, a + b is 1.
Further alternatively, since the network speed is generally required to be high by users, b > a may be set.
It should be noted that G is described aboveoAnd T0The setting can be flexibly set according to the actual application user scene, which is not limited by the invention.
For example, assume the above-mentioned T0=10min,GoWhen the network traffic generated after a certain WiFi hotspot is successfully connected exceeds 10M, the WiFi hotspot is indicated to be an available WiFi hotspot, and when the network traffic generated after a certain WiFi hotspot is successfully connected exceeds 10M, the WiFi hotspot is indicated to be an available WiFi hotspot.
The corresponding formula is:
Figure BDA0001582694380000052
s203, the terminal device selects a target WiFi hotspot from at least one WiFi hotspot according to the connection weight of each WiFi hotspot to perform network connection.
In the embodiment of the invention, after the terminal device obtains the connection weight of each WiFi hotspot, the WiFi hotspot with the maximum connection weight can be used as a target WiFi hotspot, and then the target WiFi hotspot is accessed. Or after the terminal device acquires the currently accessible WiFi hotspot list, deleting the WiFi hotspots in the WiFi hotspot list whose connection weight is smaller than a fifth threshold (for example, β <0.5), and displaying the updated WiFi hotspot list for the user to select.
According to the WiFi hotspot selection method provided by the embodiment of the invention, the terminal equipment obtains the historical connection parameters of each WiFi hotspot in at least one accessible WiFi hotspot in a preset time period, and the historical connection parameters of each WiFi hotspot specifically comprise the user use parameters of the WiFi hotspot every time the WiFi hotspot is successfully connected, so that the determined connection weight of each WiFi hotspot can represent the usability of the WiFi hotspot according to the historical connection parameters of each WiFi hotspot, and the terminal equipment can select an optimal target WiFi hotspot from at least one WiFi hotspot for connection according to the connection weight of each WiFi hotspot, thereby improving the internet surfing experience of the user.
Second embodiment:
fig. 3 is a schematic diagram of a possible structure of a terminal device according to an embodiment of the present invention, as shown in fig. 3, a terminal device 300 includes an obtaining module 301, a determining module 302, and a selecting module 303, where:
an obtaining module 301, configured to obtain connection parameters of the scanned at least one accessible WiFi hotspot; the connection parameters comprise historical connection parameters of each WiFi hotspot in a preset time period, and the historical connection parameters comprise user use parameters each time the WiFi hotspot is successfully connected.
A determining module 302, configured to determine a connection weight of each WiFi hotspot according to the historical connection parameter of each WiFi hotspot acquired by the acquiring module 301;
a selecting module 303, configured to select a target WiFi hotspot from the at least one WiFi hotspot for network connection according to the connection weight of each WiFi hotspot determined by the determining module 302.
Optionally, the historical connection parameters further include a total number of successful connections of the WiFi hotspot; the user usage parameters include: the network traffic generated by the WiFi hotspot and the network traffic generated by the WiFi hotspot are greater than 0 for the continuous connection time.
Optionally, the determining module 302 is specifically configured to: for each of the at least one WiFi hotspot, performing the following: calculating the connection weight of the WiFi hotspot according to the total times, the first times and the second times of the WiFi hotspot; the first number of times is the number of times of connection when the network traffic is greater than a first threshold, and the second number of times is the number of times of connection when the connection time is greater than a second threshold.
Further optionally, the determining module 302 is specifically configured to: calculating a first weight component of the WiFi hotspot according to the total times and the first times of the WiFi hotspot, and calculating a second weight component of the WiFi hotspot according to the total times and the second times of the WiFi hotspot; calculating the connection weight of the WiFi hotspot according to the first weight component and the second weight component; wherein the first weight component is proportional to the first fraction and the second weight component is proportional to the second fraction.
Optionally, the determining module 302 is specifically configured to: for each of the at least one WiFi hotspot, performing the following: calculating a connection weight beta of the WiFi hotspot according to the total times N of the WiFi hotspot, the network flow generated by the WiFi hotspot, the continuous connection time when the network flow generated by the WiFi hotspot is greater than 0 and a preset formula;
wherein, the preset formula is as follows:
Figure BDA0001582694380000061
g aboveiThe above T is the network traffic generated by the WiFi hotspot when the WiFi hotspot is successfully connected for the ith timeiThe connection time, G, for which the network traffic generated by the WiFi hotspot when the WiFi hotspot is successfully connected for the ith time is greater than 0o、T0A and b are constants, and N is greater than or equal to 1.
According to the terminal device provided by the embodiment of the invention, the terminal device obtains the historical connection parameters of each WiFi hotspot in at least one accessible WiFi hotspot in a preset time period, and the historical connection parameters of each WiFi hotspot specifically comprise the user use parameters of the WiFi hotspot every time the WiFi hotspot is successfully connected, so that the determined connection weight of each WiFi hotspot can represent the usability of the WiFi hotspot according to the historical connection parameters of each WiFi hotspot, so that the terminal device can select an optimal target WiFi hotspot from at least one WiFi hotspot for connection according to the connection weight of each WiFi hotspot, and the internet surfing experience of a user is improved.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
The third embodiment:
fig. 4 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the configuration of the terminal device 100 shown in fig. 4 does not constitute a limitation of the terminal device, and that the terminal device 100 may include more or less components than those shown, or combine some components, or arrange different components. In the embodiment of the present invention, the terminal device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 110 is configured to: acquiring connection parameters of at least one scanned accessible WiFi hotspot; the connection parameters comprise historical connection parameters of each WiFi hotspot in a preset time period, and the historical connection parameters comprise user use parameters when the WiFi hotspots are successfully connected each time; and according to the historical connection parameters of each WiFi hotspot, determining the connection weight of each WiFi hotspot, and selecting a target WiFi hotspot from at least one WiFi hotspot to carry out network connection according to the determined connection weight of each WiFi hotspot.
According to the terminal device provided by the embodiment of the invention, the terminal device obtains the historical connection parameters of each WiFi hotspot in at least one accessible WiFi hotspot in a preset time period, and the historical connection parameters of each WiFi hotspot specifically comprise the user use parameters of the WiFi hotspot every time the WiFi hotspot is successfully connected, so that the determined connection weight of each WiFi hotspot can represent the usability of the WiFi hotspot according to the historical connection parameters of each WiFi hotspot, so that the terminal device can select an optimal target WiFi hotspot from at least one WiFi hotspot for connection according to the connection weight of each WiFi hotspot, and the internet surfing experience of a user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device 100 provides the user with wireless broadband internet access via the network module 102, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device 100. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 4, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device 100, connects various parts of the entire terminal device 100 by various interfaces and lines, and performs various functions of the terminal device 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device 100. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
The fourth embodiment:
optionally, an embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor 110, where the computer program, when executed by the processor, implements each process of the foregoing WiFi hotspot selection method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
Fifth embodiment:
the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned WiFi hotspot selection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. 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, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A WiFi hotspot selection method, comprising:
acquiring connection parameters of at least one scanned accessible WiFi hotspot; the connection parameters comprise historical connection parameters of each WiFi hotspot in a preset time period, and the historical connection parameters comprise user use parameters each time the WiFi hotspots are successfully connected;
determining the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot;
according to the connection weight of each WiFi hotspot, determining a target WiFi hotspot to carry out network connection from at least one WiFi hotspot;
determining the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot comprises the following steps:
for each of the at least one WiFi hotspot, performing the following:
calculating the connection weight of the WiFi hot spot according to the total times, the first times and the second times of the WiFi hot spot;
wherein, the first times is the times of connection that the network flow is greater than a first threshold, the second times is the times of connection that the connection time is greater than a second threshold, and the user usage parameters include: the network traffic generated by the WiFi hotspot and the network traffic generated by the WiFi hotspot are greater than 0, and the connection weight of the WiFi hotspot is used for representing the usability of the WiFi hotspot and the network performance of the WiFi hotspot is good or bad.
2. The method of claim 1, wherein the historical connection parameters further comprise a total number of times the WiFi hotspot was successfully connected; the user usage parameters include: and the network traffic generated by the WiFi hotspot are greater than 0 for the continuous connection time.
3. The method of claim 1, wherein the calculating the connection weight of the WiFi hotspot according to the total number of the WiFi hotspots, the first number of times, and the second number of times comprises:
calculating a first weight component of the WiFi hot spot according to the total times and the first times of the WiFi hot spot, and calculating a second weight component of the WiFi hot spot according to the total times and the second times of the WiFi hot spot;
calculating a connection weight of the WiFi hotspot according to the first weight component and the second weight component;
wherein the first weight component is proportional to the first fraction and the second weight component is proportional to the second fraction.
4. The method of claim 2, wherein the determining the connection weight of each WiFi hotspot according to its historical connection parameters comprises:
for each of the at least one WiFi hotspot, performing the following:
calculating a connection weight beta of the WiFi hotspot according to the total number N of the WiFi hotspots, the network flow and the connection time when the WiFi hotspot is successfully connected each time and a preset formula;
wherein the preset formula is as follows:
Figure FDA0002580019160000011
the G isiThe T is the network traffic when the WiFi hotspot is successfully connected for the ith timeiThe connection time when the i-th successful connection of the WiFi hotspot is given as Go、T0A and b are constants, and N is greater than or equal to 1.
5. A terminal device, comprising:
the acquisition module is used for acquiring the connection parameters of the scanned at least one accessible WiFi hotspot; the connection parameters comprise historical connection parameters of each WiFi hotspot in a preset time period, and the historical connection parameters comprise user use parameters each time the WiFi hotspots are successfully connected;
the determining module is used for determining the connection weight of each WiFi hotspot according to the historical connection parameters of each WiFi hotspot acquired by the acquiring module;
the selection module is used for determining a target WiFi hotspot to carry out network connection from the at least one WiFi hotspot according to the connection weight of each WiFi hotspot determined by the determination module;
the determining module is specifically configured to:
for each of the at least one WiFi hotspot, performing the following:
calculating the connection weight of the WiFi hot spot according to the total times, the first times and the second times of the WiFi hot spot;
the first times are the times of connection with the network flow larger than a first threshold, and the second times are the times of connection with the connection time larger than a second threshold.
6. The terminal device of claim 5, wherein the historical connection parameters further include a total number of times the WiFi hotspot was successfully connected; the user usage parameters include: and the network traffic generated by the WiFi hotspot are greater than 0 for the continuous connection time.
7. The terminal device of claim 5, wherein the determining module is specifically configured to:
calculating a first weight component of the WiFi hot spot according to the total times and the first times of the WiFi hot spot, and calculating a second weight component of the WiFi hot spot according to the total times and the second times of the WiFi hot spot;
calculating a connection weight of the WiFi hotspot according to the first weight component and the second weight component;
wherein the first weight component is proportional to the first fraction and the second weight component is proportional to the second fraction.
8. The terminal device of claim 6, wherein the determining module is specifically configured to:
for each of the at least one WiFi hotspot, performing the following:
calculating a connection weight beta of the WiFi hotspot according to the total times N of the WiFi hotspot, the network flow generated by the WiFi hotspot, the continuous connection time when the network flow generated by the WiFi hotspot is greater than 0 and a preset formula;
wherein the preset formula is as follows:
Figure FDA0002580019160000021
the G isiThe T is the network traffic generated by the WiFi hotspot when the WiFi hotspot is successfully connected for the ith timeiThe connection time, G, lasting for the WiFi hotspot when the ith successful connection is carried out on the WiFi hotspot, wherein the network flow generated by the WiFi hotspot is greater than 0o、T0A and b are constants, and N is greater than or equal to 1.
CN201810160117.4A 2018-02-26 2018-02-26 WiFi hotspot selection method and terminal equipment Active CN108391305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810160117.4A CN108391305B (en) 2018-02-26 2018-02-26 WiFi hotspot selection method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810160117.4A CN108391305B (en) 2018-02-26 2018-02-26 WiFi hotspot selection method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108391305A CN108391305A (en) 2018-08-10
CN108391305B true CN108391305B (en) 2020-09-01

Family

ID=63068540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810160117.4A Active CN108391305B (en) 2018-02-26 2018-02-26 WiFi hotspot selection method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108391305B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010724B (en) * 2019-12-21 2022-08-16 锐捷网络股份有限公司 Terminal access method and device based on WLAN
CN111866994B (en) * 2020-07-26 2021-02-05 广云物联网科技(广州)有限公司 Method and device for rapidly distributing network at hot spot

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050118A (en) * 2015-07-31 2015-11-11 腾讯科技(深圳)有限公司 Wi-Fi hotspot connecting method and device
CN106612535A (en) * 2017-01-17 2017-05-03 广东欧珀移动通信有限公司 WIFI hotspot connecting method and device
CN106658652A (en) * 2016-12-07 2017-05-10 广东欧珀移动通信有限公司 WiFi hotspot connecting method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363379B2 (en) * 2003-09-30 2008-04-22 Intel Corporation Access point association history in wireless networks
KR100736046B1 (en) * 2005-09-07 2007-07-06 삼성전자주식회사 Method and apparatus for guiding associating stable access point using previous connection history
TWI394475B (en) * 2009-03-24 2013-04-21 Inst Information Industry Intelligent hotspot connection systems and methods, and computer program products thereof
CN106550366A (en) * 2016-11-07 2017-03-29 广东欧珀移动通信有限公司 A kind of connection control method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050118A (en) * 2015-07-31 2015-11-11 腾讯科技(深圳)有限公司 Wi-Fi hotspot connecting method and device
CN106658652A (en) * 2016-12-07 2017-05-10 广东欧珀移动通信有限公司 WiFi hotspot connecting method and device
CN106612535A (en) * 2017-01-17 2017-05-03 广东欧珀移动通信有限公司 WIFI hotspot connecting method and device

Also Published As

Publication number Publication date
CN108391305A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN110995923B (en) Screen projection control method and electronic equipment
CN109699059B (en) Cell reselection method and terminal equipment
CN109194818B (en) Information processing method and terminal
CN110166439B (en) Equipment sharing method, terminal, router and server
CN111142991A (en) Application function page display method and electronic equipment
CN110445924B (en) Network task execution method and terminal equipment
CN110752981B (en) Information control method and electronic equipment
CN111328119B (en) Voice service processing method and electronic equipment
CN110913455B (en) Method for forbidding abnormal cell, electronic equipment and server
CN108984066B (en) Application icon display method and mobile terminal
CN109831359B (en) Method for detecting connection state of data network and terminal equipment thereof
CN110597437A (en) Screen capturing method and terminal equipment
CN111107223B (en) Message processing method and electronic equipment
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN111343710A (en) Power adjustment method and electronic equipment
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN108391305B (en) WiFi hotspot selection method and terminal equipment
CN108366171B (en) Temperature rise control method and mobile terminal
EP3962223A1 (en) Random access method and terminal
CN107995669B (en) Display method of wireless access point AP information and mobile terminal
CN110995816B (en) Sharing method and electronic device
CN111010455B (en) Hotspot name modification method and electronic equipment
CN111045588B (en) Information viewing method and electronic equipment
CN110933305B (en) Electronic equipment and focusing method
CN110493831B (en) Power determination method and terminal equipment

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