CN106658652B - Method and device for connecting WiFi hotspot - Google Patents

Method and device for connecting WiFi hotspot Download PDF

Info

Publication number
CN106658652B
CN106658652B CN201611116958.2A CN201611116958A CN106658652B CN 106658652 B CN106658652 B CN 106658652B CN 201611116958 A CN201611116958 A CN 201611116958A CN 106658652 B CN106658652 B CN 106658652B
Authority
CN
China
Prior art keywords
hotspot
channel
wifi
target
evaluation value
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
CN201611116958.2A
Other languages
Chinese (zh)
Other versions
CN106658652A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611116958.2A priority Critical patent/CN106658652B/en
Publication of CN106658652A publication Critical patent/CN106658652A/en
Application granted granted Critical
Publication of CN106658652B publication Critical patent/CN106658652B/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/02Access restriction performed under specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The embodiment of the invention discloses a method for connecting a WiFi hotspot, which comprises the following steps: detecting a WiFi signal, and acquiring a hotspot identification of a detected WiFi hotspot, hotspot signal strength and a target channel where the WiFi hotspot is located according to the WiFi signal; acquiring the channel signal intensity of all channels adjacent to the target channel, and calculating a channel interference reference value corresponding to the target channel according to the channel signal intensity of all channels adjacent to the target channel; calculating a channel quality evaluation value corresponding to the target channel according to the channel interference reference value and the hot spot signal strengths of all WiFi hot spots on the target channel; and selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value and the hotspot signal strength. In addition, the embodiment of the invention also discloses a device for connecting the WiFi hotspot. The method and the device for connecting the WiFi hotspot can improve the internet surfing quality.

Description

Method and device for connecting WiFi hotspot
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for connecting a WiFi hotspot.
Background
In the traditional technology, wireless coverage of a plurality of Wi-Fi hotspots may exist in the same area, when an intelligent terminal of a user enters or starts up in the area, the Wi-Fi hotspots nearby can be detected, and one Wi-Fi hotspot among the Wi-Fi hotspots is automatically selected for connection.
However, in the conventional technology, the above method for automatically detecting and connecting Wi-Fi hotspots has at least the following problems: Wi-Fi hotspot manager software or Wi-Fi hotspot connection software in the traditional technology generally only takes the signal strength of Wi-Fi hotspots as reference, and Wi-Fi hotspots with stronger signal strength are preferentially selected to be connected. However, the Wi-Fi hotspot with stronger signal strength is not necessarily the hotspot with the best internet access quality, for example, the WIFI hotspot with the strongest signal strength may have larger channel interference to cause poor internet access quality, thereby causing poor internet access quality of the intelligent terminal accessing the network.
Disclosure of Invention
Therefore, in order to solve the technical problem of poor terminal internet access quality caused by the method of selecting the WiFi hotspot to access only according to the signal intensity of the WiFi hotspot in the traditional technology, a method for connecting the WiFi hotspot is particularly provided.
A method of connecting WiFi hotspots, comprising:
detecting a WiFi signal, and acquiring a hotspot identification of a detected WiFi hotspot, hotspot signal strength and a target channel where the WiFi hotspot is located according to the WiFi signal;
acquiring the channel signal intensity of all channels adjacent to the target channel, and calculating a channel interference reference value corresponding to the target channel according to the channel signal intensity of all channels adjacent to the target channel;
calculating a channel quality evaluation value corresponding to the target channel according to the channel interference reference value and the hot spot signal strengths of all WiFi hot spots on the target channel;
and selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value and the hotspot signal strength.
Optionally, in one embodiment, the step of calculating a channel interference reference value corresponding to the target channel according to channel signal strengths of all channels adjacent to the target channel further includes:
and acquiring a preset first weight coefficient, weighting the channel signal strengths of all the channels adjacent to the target channel according to the first weight coefficient, and generating a channel interference reference value corresponding to the target channel.
Optionally, in one embodiment, the step of calculating a channel quality evaluation value corresponding to the target channel according to the channel interference reference value and hotspot signal strengths of all WiFi hotspots on the target channel further includes:
calculating the sum of the hot spot signal strengths of all WiFi hot spots on the target channel as the signal strength sum of the target channel;
and calculating the channel quality evaluation value corresponding to the target channel according to the signal strength of the target channel and the channel interference reference value corresponding to the target channel.
Optionally, in one embodiment, the step of selecting, according to the channel quality evaluation value and the hotspot signal strength, a WiFi hotspot corresponding to a corresponding hotspot identifier to access specifically includes:
and acquiring a preset second weight coefficient, weighting the hotspot signal strength of the detected WiFi hotspot and the channel quality evaluation value corresponding to the channel where the WiFi hotspot is located according to the second weight coefficient, generating a hotspot evaluation value corresponding to the detected WiFi hotspot, and selecting the corresponding detected WiFi hotspot to access according to the hotspot evaluation value.
Optionally, in one embodiment, after the step of obtaining the hotspot identification of the detected WiFi hotspot, the hotspot signal strength, and the target channel where the WiFi hotspot is located according to the WiFi signal, the method further includes:
acquiring the disconnection rate and/or the average network speed corresponding to the detected WiFi hotspot as a hotspot quality parameter corresponding to the WiFi hotspot;
the step of selecting a WiFi hotspot corresponding to a corresponding hotspot identification to access according to the channel quality evaluation value and the signal strength specifically includes:
and selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value, the signal strength and the hotspot quality parameter.
In addition, in order to solve the technical problem that the internet access quality of the terminal is poor due to the fact that the WiFi hotspot access method is selected only according to the signal strength of the WiFi hotspot in the traditional technology, a device for connecting the WiFi hotspot is particularly provided.
An apparatus for connecting WiFi hotspots, comprising:
the WiFi signal detection module is used for detecting a WiFi signal and acquiring a hotspot identification of a detected WiFi hotspot, hotspot signal strength and a target channel where the WiFi hotspot is located according to the WiFi signal;
a channel interference determining module, configured to obtain channel signal strengths of all channels adjacent to the target channel, and calculate a channel interference reference value corresponding to the target channel according to the channel signal strengths of all channels adjacent to the target channel;
a channel quality evaluation value calculation module, configured to calculate a channel quality evaluation value corresponding to the target channel according to the channel interference reference value and hotspot signal strengths of all WiFi hotspots on the target channel;
and the hotspot access module is used for selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value and the hotspot signal strength.
Optionally, in one embodiment, the channel interference determining module is further configured to obtain a preset first weight coefficient, weight the channel signal strengths of all channels adjacent to the target channel according to the first weight coefficient, and generate a channel interference reference value corresponding to the target channel.
Optionally, in one embodiment, the channel quality evaluation value calculation module is further configured to calculate a sum of hotspot signal strengths of all WiFi hotspots on the target channel as a signal strength sum of the target channel; and calculating the channel quality evaluation value corresponding to the target channel according to the signal strength of the target channel and the channel interference reference value corresponding to the target channel.
Optionally, in one embodiment, the hotspot access module is further configured to acquire a preset second weight coefficient, weight the hotspot signal strength of the detected WiFi hotspot and the channel quality evaluation value corresponding to the channel where the WiFi hotspot is located according to the second weight coefficient, generate a hotspot evaluation value corresponding to the detected WiFi hotspot, and select a corresponding detected WiFi hotspot to access according to the hotspot evaluation value.
Optionally, in one embodiment, the apparatus further includes a hotspot quality parameter obtaining module, configured to obtain a drop rate and/or an average network speed corresponding to the detected WiFi hotspot as a hotspot quality parameter corresponding to the WiFi hotspot;
and the hotspot access module is also used for selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value, the signal strength and the hotspot quality parameter.
In this embodiment, in order to solve the technical problem in the conventional art that the internet access quality of the terminal is poor due to the method of selecting the WiFi hotspot access only according to the signal strength of the WiFi hotspot, a mobile terminal is further provided, which includes:
a processor and a memory; wherein the processor executes the aforementioned method of connecting to a WiFi hotspot by invoking code or instructions in the memory.
The embodiment of the invention has the following beneficial effects:
after the method and the device for connecting the WiFi hotspots are adopted, when the intelligent terminal selects the WiFi hotspots for access, the intelligent terminal does not only rely on the signal strength as the only judgment basis for judging the quality of the hotspot network, but also considers the number of the WiFi hotspots in the channel where each WiFi hotspot is located and the interference of adjacent channels while considering the signal strength, namely, the channel quality of the channel where the WiFi hotspot is located is also considered. And selecting the WiFi hotspot needing to be connected finally by combining the signal strength and the channel quality, so that the WiFi hotspot selected to be connected by the intelligent terminal is always the WiFi hotspot with the optimal network quality, and the internet access quality of the intelligent terminal accessing the network is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flowchart illustrating a method for connecting a WiFi hotspot in one embodiment;
FIG. 2 is a diagram illustrating WiFi hot spot distribution on different channels in one embodiment;
FIG. 3 is a schematic diagram illustrating a detected Wi-Fi hotspot interface in one embodiment;
FIG. 4 is a schematic diagram illustrating networking of multiple terminals accessing a Wi-Fi hotspot in one embodiment;
FIG. 5 is a block diagram of an apparatus for connecting WiFi hotspots in one embodiment;
fig. 6 is a schematic structural diagram of a computer device operating the foregoing method for connecting a WiFi hotspot in one embodiment.
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
In order to solve the technical problem of poor terminal internet access quality caused by a method of selecting a WiFi hotspot to access only according to the signal intensity of the WiFi hotspot in the conventional technology, in this embodiment, a method of connecting a WiFi hotspot is especially provided, the method can be implemented by relying on a computer program, the computer program can run on a computer system based on a von neumann system, and the computer system can be a computer device such as a smart phone, a notebook computer, a tablet computer, etc., which is provided with a wireless network card or a Wi-Fi chip. The computer program can be a Wi-Fi connection management program or a hotspot management program on an intelligent terminal such as a smart phone or a tablet computer.
Specifically, as shown in fig. 1, the method for connecting a WiFi hotspot includes the following steps S102 to S108:
step S102: and detecting a WiFi signal, and acquiring the hotspot identification of the detected WiFi hotspot, the hotspot signal strength and a target channel where the WiFi hotspot is located according to the WiFi signal.
In this embodiment, if the Wi-Fi connection on the smart terminal of the user is Set to the on state, the smart terminal is in the detection state for the Wi-Fi signal, and the Wi-Fi connection management program or the hot spot management program may obtain a hot spot Identifier, such as a Service Set Identifier (SSID) and a physical address (MAC), of the Wi-Fi signal detected by the Wi-Fi chip by calling a driver of the smart terminal. And combining the SSID and the MAC as hotspot identifiers, establishing an index according to the SSID, and then determining a specific Wi-Fi hotspot according to the MAC.
Since the same area may have wireless network coverage of multiple Wi-Fi hotspots, a Wi-Fi connection management program or a hotspot management program on the intelligent terminal may detect Wi-Fi signals of multiple channels, the Wi-Fi signal of each channel corresponds to one Wi-Fi hotspot, and an SSID broadcast in the Wi-Fi signal of each channel is the Wi-Fi hotspot corresponding to the Wi-Fi signal of the channel. In an area covered by a wireless network of a plurality of Wi-Fi hotspots, a Wi-Fi connection management program or a hotspot management program can obtain a list of hotspot identifications of the plurality of Wi-Fi hotspots by detecting Wi-Fi signals.
Correspondingly, the Wi-Fi connection management program or the hot spot management program on the intelligent terminal obtains the hot spot identification of the Wi-Fi signal detected by the Wi-Fi chip through the driving program of the intelligent terminal, and obtains the hot spot signal strength of the Wi-Fi signal detected by the Wi-Fi chip through the driving program of the intelligent terminal.
As shown in fig. 2, fig. 2 shows distribution diagrams of SSIDs 1,2, 3, and 4 on channels 1 and 6, and although the signal strength of SSID1 is optimal, there are two WiFi hotspots, SSID2 and SSID3, interfering on the same channel, whereas SSID4 is slightly weaker than SSID1, but only one WiFi hotspot, SSID4, is located on the 6 channel, and there is no signal interference on the same channel.
Therefore, in this embodiment, after acquiring the detected WiFi hotspot identification and the hotspot signal strength, a WiFi chip of the terminal needs to detect a channel where each detected WiFi hotspot is located.
Step S104: and acquiring the channel hot spot signal intensity of all channels adjacent to the target channel, and calculating a channel interference reference value corresponding to the target channel according to the channel hot spot signal intensity of all channels adjacent to the target channel.
After the channel where each detected WiFi hotspot is located is determined, the number of WiFi hotspots on each channel and the hotspot signal strength of each WiFi hotspot may be determined, and then the channel hotspot signal strength corresponding to each channel may be further obtained.
In this embodiment, whether a channel where a WiFi hotspot is located is interference to signals on other channels also affects the signal quality of the WiFi hotspot, because the signal quality of the WiFi hotspot with too much channel interference is not good.
Specifically, when calculating the channel interference corresponding to a certain channel, the channel interference reference value corresponding to the signal is calculated according to the channel signal strengths corresponding to all channels adjacent to the channel. For example, the channel interference reference value of the target channel may be calculated by calculating the sum of channel signal strengths corresponding to all channels adjacent to the signal. In specific implementation, a calculation formula of the channel interference reference value is preset, that is, a calculation formula for calculating the channel interference reference value corresponding to the signal according to the channel signal strengths corresponding to all channels adjacent to the target channel is determined.
Alternatively, in an embodiment, the channel interference reference value of the target channel may be a weighted sum of channel signal strengths of all adjacent channels.
Specifically, the step of calculating the channel interference reference value corresponding to the target channel according to the channel signal strengths of all channels adjacent to the target channel further includes: and acquiring a preset first weight coefficient, weighting the channel signal strengths of all the channels adjacent to the target channel according to the first weight coefficient, and generating a channel interference reference value corresponding to the target channel.
The weight coefficient of each adjacent channel is preset, and after all channels adjacent to the target channel and the corresponding channel signal strength are obtained, the channel signal strength of each adjacent channel can be weighted according to the weight coefficient, so that the channel interference reference value corresponding to the target channel is generated.
In particular toIf j is 1,2, …,8 adjacent channels exist in a certain channel, and the corresponding channel signal strength is ADJ _ RSSI1,ADJ_RSSI2,…,ADJ_RSSI8Then, the channel interference reference value result _ ADJ _ RSSI corresponding to the channel can be calculated by the following formula:
result_ADJ_RSSI=ADJ_RSSI1+ADJ_RSSI2+…+ADJ_RSSI8
because the interference effect of each channel on the target channel is different, the strength of the interference effect of each adjacent channel on the target channel needs to be considered. Specifically, each adjacent channel corresponds to a weight coefficient, and when calculating the channel interference reference value result _ ADJ _ RSSI, it is also necessary to consider the signal strength of each channel as ADJ _ RSSIjThe corresponding weighting coefficients. Specifically, if the signal strength of each channel is ADJ _ RSSIjCorresponding weighting coefficient is ajThen, the corresponding channel interference reference value is calculated as follows:
result_ADJ_RSSI=a1ADJ_RSSI1+a2ADJ_RSSI2+…+a8ADJ_RSSI8
wherein, a1+a2+…+a8=1。
Taking 2.4G as an example, for 13 channels (1 channel, 2 channel, … …, 13 channels) of 2.4G, only 1 channel, 6 channel and 13 channel are completely non-interference channels, when calculating the channel interference reference value of 1 channel, the channel signal interference of 2 channel to 5 channel to 1 channel needs to be considered, that is, the channel interference reference value of 1 channel can be calculated by the following formula:
result_ADJ_RSSI=a2RSSI_ADJ2+a3RSSI_ADJ3+a4RSSI_ADJ4+a5RSSI_ADJ5
in the present embodiment, the formula result _ ADJ ═ Σ may be usedjajRSSI_ADJj,∑jajThe calculation process of the channel interference reference value is denoted by 1.
Step S106: and calculating a channel quality evaluation value corresponding to the target channel according to the channel interference reference value and the hot spot signal strengths of all WiFi hot spots on the target channel.
In step S104, signal interference of all channels adjacent to the target channel to the WiFi hotspot on the current channel is considered, in this embodiment, not only the channel interference of the adjacent channel but also signal interference between other WiFi hotspots on the same channel need to be considered.
Specifically, the signal strength corresponding to all detected WiFi hotspots of the same channel is considered, which represents the interference of other WiFi hotspots on the same channel to the signal of the current WiFi hotspot.
Specifically, in this embodiment, a specific quantized value of signal interference between WiFi hotspots on the same channel may be a signal interference reference value, and the signal interference reference value may be calculated according to hotspot signal strengths of all WiFi hotspots on the channel.
Specifically, in an embodiment, if there are 5 WiFi hotspots i ═ 1,2, …,5 on the present channel, and the detected hotspot signal strength result _ RSSI of each WiFi hotspot is:
result_RSSI=RSSI_1+RSSI_2+…+RSSI_5。
that is, the channel interference reference value corresponding to the target channel is obtained by calculating the sum of the hotspot signal strengths of all WiFi hotspots on the target channel as the signal strength sum of the target channel.
In this embodiment, the channel quality evaluation value corresponding to the channel where a WiFi hotspot is located needs to be calculated by considering channel interference on the local channel and channel interference on an adjacent channel, that is, calculating the channel quality evaluation value corresponding to the target channel where the WiFi hotspot is located according to the channel interference reference value on the adjacent channel and the signal interference reference value on the local channel.
Specifically, in an embodiment, the channel quality evaluation value corresponding to a certain channel is equal to the sum of the channel interference reference value of the channel and the signal interference reference value on the channel, that is, the channel quality evaluation value is the channel interference reference value + the signal interference reference value, and may be expressed as:
result_evaluation=result_RSSI+result_ADJ_RSSI,
wherein, result _ evaluation represents a channel quality evaluation value, result _ RSSI represents a signal interference reference value, and result _ ADJ _ RSSI represents a channel interference reference value.
That is to say, the step of calculating the channel quality evaluation value corresponding to the target channel according to the channel interference reference value and the hotspot signal strengths of all WiFi hotspots on the target channel further includes: calculating the sum of the hot spot signal strengths of all WiFi hot spots on the target channel as the signal strength sum of the target channel; and calculating the channel quality evaluation value corresponding to the target channel according to the signal strength of the target channel and the channel interference reference value corresponding to the target channel.
Step S108: and selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value and the hotspot signal strength.
In this embodiment, the channel quality evaluation values and the hotspot signal strengths of the WiFi hotspots are ranked according to a preset rule, and then an overall optimal WiFi hotspot access is selected.
Specifically, in an embodiment, the step of selecting a WiFi hotspot corresponding to a corresponding hotspot identifier according to the channel quality evaluation value and the hotspot signal strength to access specifically includes: and acquiring a preset second weight coefficient, weighting the hotspot signal strength of the detected WiFi hotspot and the channel quality evaluation value corresponding to the channel where the WiFi hotspot is located according to the second weight coefficient, generating a hotspot evaluation value corresponding to the detected WiFi hotspot, and selecting the corresponding detected WiFi hotspot to access according to the hotspot evaluation value.
Specifically, a weighting coefficient corresponding to the hot spot signal strength RSSI _ OBJ of the detected WiFi hot spot is preset to be α, and a weighting coefficient corresponding to the channel quality evaluation value result _ evaluation corresponding to the channel where the WiFi hot spot is located is β, so that the corresponding calculation formula for calculating the hot spot evaluation value result is as follows:
result=α·result_evaluation+β·RSSI_OBJ,α+β=1。
after the hotspot signal strength corresponding to each detected WiFi hotspot and the channel quality evaluation value of the WiFi hotspot are obtained, a hotspot evaluation value corresponding to the WiFi hotspot can be calculated according to the corresponding hotspot signal strength and the channel quality evaluation value, and then a corresponding WiFi hotspot is selected from all detected WiFi hotspots for access according to the hotspot evaluation value of each WiFi hotspot.
As shown in fig. 3, after the hotspot evaluation value corresponding to the detected Wi-Fi hotspot is calculated, a corresponding hotspot evaluation value may be displayed at a position corresponding to a hotspot identifier of the Wi-Fi hotspot in the displayed detected Wi-Fi hotspot list, and the detected Wi-Fi hotspot list may be sorted according to the size of the hotspot evaluation value, and automatically connected to the Wi-Fi hotspot with a better hotspot evaluation value for access. And if the access fails after the specified times of retry failure, the access still fails, and sequentially selecting Wi-Fi hotspots in the Wi-Fi hotspot list according to the size sequence of the hotspot evaluation values to access.
It should be noted that, in this embodiment, in the process of selecting an access WiFi hotspot, the considered factors may include not only the hotspot signal strength and the channel quality of the channel where the WiFi hotspot is located, but also the hotspot quality of the WiFi hotspot, for example, the internet speed and the line drop rate are considered, because the good hotspot signal strength and the channel quality are not equal to the good internet quality and the internet experience.
Specifically, after the step of obtaining the hotspot identification of the detected WiFi hotspot, the hotspot signal strength, and the target channel where the WiFi hotspot is located according to the WiFi signal, the method further includes: acquiring the disconnection rate and/or the average network speed corresponding to the detected WiFi hotspot as a hotspot quality parameter corresponding to the WiFi hotspot; the step of selecting a WiFi hotspot corresponding to a corresponding hotspot identification to access according to the channel quality evaluation value and the signal strength specifically includes: and selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value, the signal strength and the hotspot quality parameter.
After the Wi-Fi connection management program or the hotspot management program obtains hotspot identifications of a plurality of Wi-Fi hotspots in a coverage area and corresponding signal strengths thereof by detecting Wi-Fi signals, the obtained hotspot identifications can be uploaded to a server through a hotspot quality query request, and hotspot quality parameters corresponding to the obtained hotspot identifications stored by the server are queried on the server.
The hotspot quality parameter is parameter information reflecting network access quality of the Wi-Fi hotspot, and can be obtained by detecting the network access quality in the access process and uploading the network access quality to a server for storage by a plurality of intelligent terminals which access the Wi-Fi hotspot historically, or by configuring the server (for example, information such as a charging algorithm or a tariff standard). For example, as shown in fig. 4, if the terminal 1, the terminal 2, and the terminal 3 access the Wi-Fi hotspot a in advance, the terminal 1, the terminal 2, and the terminal 3 upload the network quality parameters in their respective connection states with the Wi-Fi hotspot a to the server, and the server stores the network quality parameters. When the terminal 4 starts to execute the method, detects the Wi-Fi signal, and obtains the hotspot identification of the Wi-Fi hotspot in the area, a hotspot quality query request can be generated according to the obtained hotspot identification (including the hotspot identification of the Wi-Fi hotspot a), and is uploaded to the server, and the server queries the hotspot quality parameters which are uploaded in advance by the terminal 1, the terminal 2 and the terminal 3 and correspond to the hotspot identification of the Wi-Fi hotspot a, and issues the hotspot quality parameters to the terminal 4.
Preferably, the hotspot quality parameter may include at least one of a dropped call rate, an average network speed, or a charging parameter.
The disconnection rate is the probability of disconnection in unit time after the terminal accesses the hotspot, and the lower the disconnection rate is, the more stable the network quality of the Wi-Fi hotspot is, and the lower disconnection rate can bring better experience to the terminal application needing to keep long connection. For example, if a user uses a smart phone to play a network game requiring long connection in a Wi-Fi hotspot, if a drop occurs, the user needs to log in the game again, and a low drop rate can ensure that the user can smoothly play the game.
The average network speed is the average value of the network transmission speed of the terminal in unit time after accessing the hotspot. The higher the average network speed, the faster the data transmission speed. The higher average network speed can facilitate the user to browse the movies and videos with higher resolution on line.
In this embodiment, a preset weighting coefficient may be obtained, a hotspot quality parameter, a channel quality evaluation value, and a signal strength corresponding to a hotspot identifier of a detected WiFi hotspot are weighted according to the weighting coefficient to generate a hotspot evaluation value corresponding to the detected WiFi hotspot, and then a corresponding detected WiFi hotspot is selected for access according to the hotspot evaluation value.
It should be noted that the hot spot quality parameter returned by the server may be a value calculated by the server after weighting, or may be an exact value of the dropped rate and the average network speed, and is automatically generated according to the weighting coefficient after being normalized by the received intelligent terminal.
In addition, in order to solve the technical problem of poor terminal internet access quality caused by the method of selecting a WiFi hotspot access only according to the signal strength of the WiFi hotspot in the conventional technology, in an embodiment, as shown in fig. 5, a device for connecting the WiFi hotspot is further provided, which includes a WiFi signal detection module 102, a channel interference determination module 104, a channel quality evaluation value calculation module 106, and a hotspot access module 108, where:
the WiFi signal detection module 102 is configured to detect a WiFi signal, and obtain a hotspot identifier of a detected WiFi hotspot, a hotspot signal strength, and a target channel where the WiFi hotspot is located according to the WiFi signal;
a channel interference determining module 104, configured to obtain channel signal strengths of all channels adjacent to the target channel, and calculate a channel interference reference value corresponding to the target channel according to the channel signal strengths of all channels adjacent to the target channel;
a channel quality evaluation value calculation module 106, configured to calculate a channel quality evaluation value corresponding to the target channel according to the channel interference reference value and hotspot signal strengths of all WiFi hotspots on the target channel;
and the hotspot access module 108 is configured to select a WiFi hotspot corresponding to the corresponding hotspot identifier to access according to the channel quality evaluation value and the hotspot signal strength.
Optionally, in an embodiment, the channel interference determining module 104 is further configured to obtain a preset first weight coefficient, weight the channel signal strengths of all channels adjacent to the target channel according to the first weight coefficient, and generate a channel interference reference value corresponding to the target channel.
Optionally, in an embodiment, the channel quality evaluation value calculation module 106 is further configured to calculate a sum of hotspot signal strengths of all WiFi hotspots on the target channel as a signal strength sum of the target channel; and calculating the channel quality evaluation value corresponding to the target channel according to the signal strength of the target channel and the channel interference reference value corresponding to the target channel.
Optionally, in an embodiment, the hotspot access module 108 is further configured to acquire a preset second weight coefficient, weight the hotspot signal strength of the detected WiFi hotspot and the channel quality evaluation value corresponding to the channel where the WiFi hotspot is located according to the second weight coefficient, generate a hotspot evaluation value corresponding to the detected WiFi hotspot, and select a corresponding detected WiFi hotspot to access according to the hotspot evaluation value.
Optionally, in an embodiment, as shown in fig. 5, the apparatus further includes a hotspot quality parameter obtaining module 110, configured to obtain a drop rate and/or an average network speed corresponding to the detected WiFi hotspot as a hotspot quality parameter corresponding to the WiFi hotspot; and the hotspot access module is also used for selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value, the signal strength and the hotspot quality parameter.
The embodiment of the invention has the following beneficial effects:
after the method and the device for connecting the WiFi hotspots are adopted, when the intelligent terminal selects the WiFi hotspots for access, the intelligent terminal does not only rely on the signal strength as the only judgment basis for judging the quality of the hotspot network, but also considers the number of the WiFi hotspots in the channel where each WiFi hotspot is located and the interference of adjacent channels while considering the signal strength, namely, the channel quality of the channel where the WiFi hotspot is located is also considered. And selecting the WiFi hotspot needing to be connected finally by combining the signal strength and the channel quality, so that the WiFi hotspot selected to be connected by the intelligent terminal is always the WiFi hotspot with the optimal network quality, and the internet access quality of the intelligent terminal accessing the network is improved.
In one embodiment, as shown in fig. 6, fig. 6 illustrates a terminal of a von neumann-based computer system that runs the above-described method of connecting WiFi hotspots. The computer system can be a terminal device which comprises a WiFi chip and can be connected with a WiFi hotspot, such as a smart phone, a tablet computer, a palm computer, a notebook computer or a personal computer. Specifically, an external input interface 1001, a processor 1002, a memory 1003, and an output interface 1004 connected through a system bus may be included. The external input interface 1001 may optionally include at least a network interface 10012 (in this embodiment, a WiFi chip). Memory 1003 can include external memory 10032 (e.g., a hard disk, optical or floppy disk, etc.) and internal memory 10034. The output interface 1004 may include at least a display 10042 or the like.
In this embodiment, the method is executed based on a computer program, program files of which are stored in the external memory 10032 of the computer system based on the von neumann architecture, loaded into the internal memory 10034 at runtime, and then compiled into machine code, and then transferred to the processor 1002 for execution, so that the WiFi signal detection module 102, the channel interference determination module 104, the channel quality evaluation value calculation module 106, the hot spot access module 108, and the hot spot quality parameter acquisition module 110 are logically formed in the computer system based on the von neumann architecture. In the execution process of the method for connecting the WiFi hotspot, the input parameters are all received through the external input interface 1001, and are transferred to the memory 1003 for buffering, and then are input into the processor 1002 for processing, and the processed result data is buffered in the memory 1003 for subsequent processing, or is transferred to the output interface 1004 for output.
Specifically, the processor 1002 is configured to perform the following operations:
detecting a WiFi signal, and acquiring a hotspot identification of a detected WiFi hotspot, hotspot signal strength and a target channel where the WiFi hotspot is located according to the WiFi signal;
acquiring the channel signal intensity of all channels adjacent to the target channel, and calculating a channel interference reference value corresponding to the target channel according to the channel signal intensity of all channels adjacent to the target channel;
calculating a channel quality evaluation value corresponding to the target channel according to the channel interference reference value and the hot spot signal strengths of all WiFi hot spots on the target channel;
and selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value and the hotspot signal strength.
Optionally, in an embodiment, the processor 1002 is further configured to obtain a preset first weight coefficient, and weight the channel signal strengths of all channels adjacent to the target channel according to the first weight coefficient to generate a channel interference reference value corresponding to the target channel.
Optionally, in an embodiment, the processor 1002 is further configured to calculate a sum of hotspot signal strengths of all WiFi hotspots on the target channel as a signal strength sum of the target channel; and calculating the channel quality evaluation value corresponding to the target channel according to the signal strength of the target channel and the channel interference reference value corresponding to the target channel.
Optionally, in an embodiment, the processor 1002 is further configured to obtain a preset second weight coefficient, weight the hotspot signal strength of the detected WiFi hotspot and the channel quality evaluation value corresponding to the channel where the WiFi hotspot is located according to the second weight coefficient, generate a hotspot evaluation value corresponding to the detected WiFi hotspot, and select a corresponding detected WiFi hotspot to access according to the hotspot evaluation value.
Optionally, in an embodiment, the processor 1002 is further configured to obtain a drop rate and/or an average network speed corresponding to the detected WiFi hotspot as a hotspot quality parameter corresponding to the WiFi hotspot; the step of selecting a WiFi hotspot corresponding to a corresponding hotspot identification to access according to the channel quality evaluation value and the signal strength specifically includes: and selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value, the signal strength and the hotspot quality parameter.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (11)

1. A method for connecting a WiFi hotspot, comprising:
detecting WiFi signals, acquiring hotspot identifications of the detected WiFi hotspots, hotspot signal strength and target channels where the WiFi hotspots are located according to the WiFi signals, wherein each channel comprises one or more WiFi hotspots, acquiring the number of the WiFi hotspots in the same channel to determine the interference degree of each WiFi hotspot, and when the number of the WiFi hotspots contained in one channel is greater than that contained in another channel, determining the another channel as a target channel where the WiFi hotspots are located;
acquiring the channel signal intensity of all channels adjacent to the target channel, and calculating a channel interference reference value corresponding to the target channel according to the channel signal intensity of all channels adjacent to the target channel;
calculating a channel quality evaluation value corresponding to the target channel according to the channel interference reference value and the hot spot signal strengths of all WiFi hot spots on the target channel;
and selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value and the hotspot signal strength.
2. The method of claim 1, wherein the step of calculating the channel interference reference value corresponding to the target channel according to the channel signal strengths of all channels adjacent to the target channel further comprises:
and acquiring a preset first weight coefficient, weighting the channel signal strengths of all the channels adjacent to the target channel according to the first weight coefficient, and generating a channel interference reference value corresponding to the target channel.
3. The method according to claim 1, wherein the step of calculating the channel quality evaluation value corresponding to the target channel according to the channel interference reference value and the hotspot signal strengths of all WiFi hotspots on the target channel further comprises:
calculating the sum of the hot spot signal strengths of all WiFi hot spots on the target channel as the signal strength sum of the target channel;
and calculating the channel quality evaluation value corresponding to the target channel according to the signal strength of the target channel and the channel interference reference value corresponding to the target channel.
4. The method according to claim 1, wherein the step of selecting the WiFi hotspot corresponding to the corresponding hotspot identifier to access according to the channel quality evaluation value and the hotspot signal strength specifically comprises:
and acquiring a preset second weight coefficient, weighting the hotspot signal strength of the detected WiFi hotspot and the channel quality evaluation value corresponding to the channel where the WiFi hotspot is located according to the second weight coefficient, generating a hotspot evaluation value corresponding to the detected WiFi hotspot, and selecting the corresponding detected WiFi hotspot to access according to the hotspot evaluation value.
5. The method according to any one of claims 1 to 4, wherein after the step of obtaining the hotspot identification of the detected WiFi hotspot, the hotspot signal strength and the target channel where the WiFi hotspot is located according to the WiFi signal, the method further comprises:
acquiring the disconnection rate and/or the average network speed corresponding to the detected WiFi hotspot as a hotspot quality parameter corresponding to the WiFi hotspot;
the step of selecting a WiFi hotspot corresponding to a corresponding hotspot identification to access according to the channel quality evaluation value and the signal strength specifically includes:
and selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value, the signal strength and the hotspot quality parameter.
6. An apparatus for connecting a WiFi hotspot, comprising:
the WiFi signal detection module is used for detecting WiFi signals, acquiring hotspot identifications of the detected WiFi hotspots, hotspot signal strength and a target channel where the WiFi hotspots are located according to the WiFi signals, wherein each channel comprises one or more WiFi hotspots, acquiring the number of the WiFi hotspots in the same channel to determine the interference degree of each WiFi hotspot, and when the number of the WiFi hotspots contained in one channel is greater than that contained in the other channel, determining the other channel as the target channel where the WiFi hotspots are located;
a channel interference determining module, configured to obtain channel signal strengths of all channels adjacent to the target channel, and calculate a channel interference reference value corresponding to the target channel according to the channel signal strengths of all channels adjacent to the target channel;
a channel quality evaluation value calculation module, configured to calculate a channel quality evaluation value corresponding to the target channel according to the channel interference reference value and hotspot signal strengths of all WiFi hotspots on the target channel;
and the hotspot access module is used for selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value and the hotspot signal strength.
7. The device according to claim 6, wherein the channel interference determining module is further configured to obtain a preset first weight coefficient, and weight the channel signal strengths of all channels adjacent to the target channel according to the first weight coefficient to generate a channel interference reference value corresponding to the target channel.
8. The apparatus of claim 6, wherein the channel quality assessment value calculation module is further configured to calculate a sum of hotspot signal strengths of all WiFi hotspots on the target channel as a signal strength sum of target channels; and calculating the channel quality evaluation value corresponding to the target channel according to the signal strength of the target channel and the channel interference reference value corresponding to the target channel.
9. The device according to claim 6, wherein the hotspot access module is further configured to obtain a preset second weight coefficient, weight the hotspot signal strength of the detected WiFi hotspot and a channel quality evaluation value corresponding to a channel where the WiFi hotspot is located according to the second weight coefficient, generate a hotspot evaluation value corresponding to the detected WiFi hotspot, and select a corresponding detected WiFi hotspot to access according to the hotspot evaluation value.
10. The device according to any one of claims 6 to 9, further comprising a hotspot quality parameter obtaining module, configured to obtain a drop rate and/or an average network speed corresponding to the detected WiFi hotspot as a hotspot quality parameter corresponding to the WiFi hotspot;
and the hotspot access module is also used for selecting a WiFi hotspot corresponding to the corresponding hotspot identification to access according to the channel quality evaluation value, the signal strength and the hotspot quality parameter.
11. A mobile terminal, comprising:
a processor and a memory; wherein the processor performs the method of any one of claims 1 to 5 by calling code or instructions in the memory.
CN201611116958.2A 2016-12-07 2016-12-07 Method and device for connecting WiFi hotspot Active CN106658652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611116958.2A CN106658652B (en) 2016-12-07 2016-12-07 Method and device for connecting WiFi hotspot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611116958.2A CN106658652B (en) 2016-12-07 2016-12-07 Method and device for connecting WiFi hotspot

Publications (2)

Publication Number Publication Date
CN106658652A CN106658652A (en) 2017-05-10
CN106658652B true CN106658652B (en) 2020-03-10

Family

ID=58820213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611116958.2A Active CN106658652B (en) 2016-12-07 2016-12-07 Method and device for connecting WiFi hotspot

Country Status (1)

Country Link
CN (1) CN106658652B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659987B (en) * 2017-09-18 2021-06-08 捷开通讯(深圳)有限公司 Method for adjusting terminal transmitting power, mobile terminal and storage device
CN108040358B (en) * 2017-12-29 2020-07-31 Oppo广东移动通信有限公司 Wireless network connection method, terminal device and storage medium
CN108055687B (en) * 2018-01-31 2020-01-14 Oppo广东移动通信有限公司 Wireless network connection method and device and terminal equipment
CN108391305B (en) * 2018-02-26 2020-09-01 维沃移动通信有限公司 WiFi hotspot selection method and terminal equipment
CN108429857B (en) * 2018-03-05 2020-10-20 Oppo广东移动通信有限公司 Information processing method and device, mobile terminal and computer readable storage medium
CN110113804A (en) * 2019-05-05 2019-08-09 Oppo广东移动通信有限公司 Wireless network access point selection method, device, terminal and computer storage medium
CN110446241A (en) * 2019-07-09 2019-11-12 广东以诺通讯有限公司 A kind of WiFi selection cut-in method, AP hot spot and terminal
CN111491348B (en) * 2020-04-28 2022-04-19 国家广播电视总局广播电视科学研究院 Channel switching method and system for radio and television white spectrum cognition WiFi
CN112165728A (en) * 2020-10-22 2021-01-01 Oppo广东移动通信有限公司 Network connection method, terminal and computer storage medium
CN112383950B (en) * 2020-10-26 2024-01-19 深圳Tcl新技术有限公司 Channel selection method, device, terminal equipment and readable storage medium
CN113114396B (en) * 2021-04-16 2023-10-13 海信视像科技股份有限公司 Display device and channel selection method
CN113727407A (en) * 2021-08-30 2021-11-30 歌尔光学科技有限公司 Data transmission method and device, electronic equipment and storage medium
CN115243339A (en) * 2022-07-08 2022-10-25 深圳绿米联创科技有限公司 Network access method and device of target equipment, electronic equipment and intelligent home system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835243A (en) * 2010-05-25 2010-09-15 北京星网锐捷网络技术有限公司 Wireless access point working channel selecting method and device
CN102378303A (en) * 2010-08-26 2012-03-14 中国移动通信有限公司 Method and device for selecting WIFI (Wireless Fidelity) access point to access to network
CN102378218A (en) * 2011-11-04 2012-03-14 中国联合网络通信集团有限公司 Access point equipment of wireless local area network and channel selection method thereof
CN105050118A (en) * 2015-07-31 2015-11-11 腾讯科技(深圳)有限公司 Wi-Fi hotspot connecting method and device
CN106060946A (en) * 2016-05-31 2016-10-26 杭州华三通信技术有限公司 Channel distribution method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835243A (en) * 2010-05-25 2010-09-15 北京星网锐捷网络技术有限公司 Wireless access point working channel selecting method and device
CN102378303A (en) * 2010-08-26 2012-03-14 中国移动通信有限公司 Method and device for selecting WIFI (Wireless Fidelity) access point to access to network
CN102378218A (en) * 2011-11-04 2012-03-14 中国联合网络通信集团有限公司 Access point equipment of wireless local area network and channel selection method thereof
CN105050118A (en) * 2015-07-31 2015-11-11 腾讯科技(深圳)有限公司 Wi-Fi hotspot connecting method and device
CN106060946A (en) * 2016-05-31 2016-10-26 杭州华三通信技术有限公司 Channel distribution method and device

Also Published As

Publication number Publication date
CN106658652A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106658652B (en) Method and device for connecting WiFi hotspot
US9713074B2 (en) Network association in an environment with hidden networks
WO2017020654A1 (en) Wireless network access method and device
US10743252B2 (en) Method for identifying access point and hotspot and terminal
CN106612535A (en) WIFI hotspot connecting method and device
CN109982293B (en) Flow product pushing method and system, electronic equipment and storage medium
CN108600399A (en) Information-pushing method and Related product
US20230134357A1 (en) Radio frequency resource allocation method and apparatus, and electronic device
CN108901035B (en) Identification method and device for terminal of Internet of things
CN108924908B (en) WiFi scanning method and device and electronic device
CN112346751A (en) Application program installation method and device, electronic equipment and storage medium
CN112333734A (en) Serving cell switching method and device
CN111866976A (en) Network switching method and device
WO2019015040A1 (en) Signal strength based frequency point selection method and internet of things terminal
CN111093238B (en) Wireless network control method and device, storage medium and electronic equipment
WO2018103404A1 (en) Wireless fidelity (wi-fi) scanning method and related product
CN107222847B (en) Data transmission method, device and terminal
CN112153679B (en) Network switching method and device
CN110602738A (en) Network connection method and device and electronic device
US9648554B2 (en) Mobile terminal for cell reselection in cellular mobile communication system and methods therefor
US11288335B2 (en) Method for search resource recommendation and smart device
KR102112627B1 (en) Apparatus and Method for Displaying Indicator According to Interwork Network
CN108924902B (en) Wireless network disconnection method and device and electronic device
CN105722216B (en) Distance detection method, terminal device and storage medium
CN111148188A (en) Network connection method, device, storage medium and electronic 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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant