Movatterモバイル変換


[0]ホーム

URL:


CN109618394B - Wireless network access method, device, terminal equipment and storage medium - Google Patents

Wireless network access method, device, terminal equipment and storage medium
Download PDF

Info

Publication number
CN109618394B
CN109618394BCN201910112089.3ACN201910112089ACN109618394BCN 109618394 BCN109618394 BCN 109618394BCN 201910112089 ACN201910112089 ACN 201910112089ACN 109618394 BCN109618394 BCN 109618394B
Authority
CN
China
Prior art keywords
aps
signal quality
terminal device
type
accessible
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
CN201910112089.3A
Other languages
Chinese (zh)
Other versions
CN109618394A (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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910112089.3ApriorityCriticalpatent/CN109618394B/en
Publication of CN109618394ApublicationCriticalpatent/CN109618394A/en
Application grantedgrantedCritical
Publication of CN109618394BpublicationCriticalpatent/CN109618394B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例提供一种无线网络的接入方法、装置、终端设备及存储介质。包括:终端设备获取可接入的接入点AP的信息,若所述可接入的AP中信号质量值大于第一预设阈值的AP包括第一类AP和第二类AP,且所述可接入的AP中信号质量值最大的AP为第一类AP中的第一AP,则所述终端设备从所述第二类AP中确定是否存在第二AP,所述第二AP与所述第一AP的信号质量值之间的差值小于第二预设阈值,若存在所述第二AP,则所述终端设备接入所述第二AP。本发明实施例可以提升终端设备进行互联网访问的速度。

Figure 201910112089

Embodiments of the present invention provide a wireless network access method, device, terminal device, and storage medium. Including: the terminal device obtains the information of the accessible access point AP, if the AP whose signal quality value is greater than the first preset threshold in the accessible AP includes the first type AP and the second type AP, and the The AP with the highest signal quality value among the accessible APs is the first AP in the first type of APs, and the terminal device determines from the second type of APs whether there is a second AP, the second AP and the The difference between the signal quality values of the first AP is less than a second preset threshold, and if the second AP exists, the terminal device accesses the second AP. The embodiments of the present invention can improve the speed at which the terminal device performs Internet access.

Figure 201910112089

Description

Wireless network access method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method and an apparatus for accessing a wireless network, a terminal device, and a storage medium.
Background
With the rapid development of the Internet, the timeliness and convenience of information acquisition become more and more important, and Wireless Local Area Networks (WLANs) are rapidly developed due to their characteristics of flexibility, expansibility, mobility, simplicity and convenience in installation, and the like. The protocol standards included in WLANs include: ieee802.11b protocol, ieee802.11a protocol, ieee802.11g protocol, ieee802.11e protocol, ieee802.11i protocol, Wireless Application Protocol (WAP), etc. Wireless Fidelity (WIFI) is a Wireless network communication technology based on IEEE802.11 series standards.
The working frequency bands supported by the WIFI technology comprise 2.4GHz and 5 GHz. The terminal device can Access the internet through a Wireless Access Point (AP) of 2.4GHz, and can also Access the internet through an AP of 5 GHz. When the terminal equipment needs to access the AP to realize Internet access, the terminal equipment scans all the APs in the environment, acquires the information of the scanned APs, and automatically selects one AP with the strongest signal to access.
However, the AP with the strongest signal accessed by the above prior art often fails to meet the data transmission requirement of the user, and affects the internet access speed.
Disclosure of Invention
The embodiment of the invention provides an access method and device of a wireless network, terminal equipment and a storage medium. The method and the device can improve the speed of the terminal equipment for accessing the internet.
In a first aspect, an embodiment of the present invention provides an access method for a wireless network, including:
the method comprises the steps that terminal equipment obtains information of an accessible Access Point (AP);
if the APs with the signal quality values larger than the first preset threshold value in the accessible APs comprise a first type of AP and a second type of AP, and the AP with the largest signal quality value in the accessible APs is the first AP in the first type of AP, the terminal device judges whether a second AP exists in the second type of APs, and the difference value between the signal quality values of the second AP and the first AP is smaller than a second preset threshold value;
if the second AP exists, the terminal equipment accesses the second AP;
wherein the data transmission rate of the first type of AP is lower than the data transmission rate of the second type of AP.
In a second aspect, an embodiment of the present invention provides an access apparatus for a wireless network, including:
a receiving module, configured to acquire information of an accessible AP;
the processing module is used for judging whether a second AP exists in the second type of AP if the AP with the signal quality value larger than a first preset threshold value in the accessible APs comprises a first type of AP and a second type of AP, and the AP with the maximum signal quality value in the accessible APs is the first AP in the first type of AP, wherein the difference value between the signal quality values of the second AP and the first AP is smaller than a second preset threshold value;
the processing module is further used for accessing the second AP through the sending module if the second AP exists;
wherein the data transmission rate of the first type of AP is lower than the data transmission rate of the second type of AP.
In a third aspect, an embodiment of the present invention provides a terminal device, including: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory, so that the processor executes the access method of the wireless network according to the embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is used for implementing an access method of a wireless network according to an embodiment of the present invention.
According to the wireless network access method, the wireless network access device, the terminal device and the storage medium provided by the embodiment of the invention, the terminal device obtains information of accessible Access Points (APs), if the APs with the signal quality values larger than a first preset threshold value in the accessible APs comprise a first type of AP and a second type of AP, and the AP with the largest signal quality value in the accessible APs is the first AP in the first type of AP, the terminal device judges whether a second AP exists in the second type of AP, the difference value between the signal quality values of the second AP and the first AP is smaller than a second preset threshold value, and if the second AP exists, the terminal device accesses the second AP. Through the mode, the second AP with higher data transmission rate is selected for accessing under the condition that the signal quality values of the first AP and the second AP are not different, so that the speed of the terminal equipment for accessing the Internet can be increased.
Drawings
Fig. 1 is a schematic diagram of a communication network architecture to which the embodiment of the present invention is applied;
FIG. 2A is a graph showing the variation of the data transmission rate of an AP with RSSI equal to-71 in a 5GHz band;
FIG. 2B is a graph showing the variation of the data transmission rate of the AP at RSSI equal to-70 in the 2.4GHz band;
fig. 3 is a flowchart of an access method of a wireless network according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for accessing a wireless network according to an embodiment of the present invention;
fig. 5 is a flowchart of another method for accessing a wireless network according to an embodiment of the present invention;
fig. 6 is a flowchart of another method for accessing a wireless network according to an embodiment of the present invention;
fig. 7 is a flowchart of another method for accessing a wireless network according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an access device of a wireless network according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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, but 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.
Embodiments of the present invention may be described with reference to "first," "second," etc. (if any) being used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Station (Station): the terminal equipment supporting the 802.11 protocol can access the internet through the AP. The terminal device may be a Personal Computer (PC) or a mobile terminal, and the mobile terminal may also be referred to as a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a User terminal, a wireless communication device, a User agent, or a User Equipment. The mobile terminal may be a smartphone, a cellular phone, a cordless phone, a tablet, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication capability or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, etc. In the embodiment of the present invention, the terminal device has an interface for communicating with a Wireless Local Area Network (WLAN). For convenience of description, the following embodiments of the present invention explain an access method of a wireless network of the present invention by a terminal device.
AP: the Station (Station) is provided with a wireless access function based on the 802.11 protocol, and is a bridge of wireless and wired networks, which can also be called as a "hot spot". The working frequency bands of the AP include a 2.4GHz band and a 5GHz band. Wherein, the 2.4GHz frequency band refers to the wireless frequency of 2.4GHz-2.5GHz, and the 5GHz frequency band refers to the wireless frequency of 4.9GHz-5.9 GHz.
The embodiment of the invention divides the accessible APs with the signal quality value larger than the first preset threshold into the first type of APs and the second type of APs by using the attribute of the working frequency band of the APs. For example, the first type of AP is an AP with a signal quality value greater than a first preset threshold in the accessible APs, and the operating frequency band in the AP is a 2.4GHz band, the second type of AP is an AP with a signal quality value greater than a first preset threshold in the accessible APs, and the operating frequency band in the AP is a 5GHz band, or the first type of AP is an AP with a signal quality value greater than a first preset threshold in the accessible APs, and the second type of AP is an AP with a signal quality value greater than a first preset threshold in the accessible APs, and the operating frequency band in the AP is a 2.4GHz band. For convenience of description, the embodiment of the present invention takes as an example that the first type of AP is an AP whose operating frequency band is a 2.4GHz band among APs whose signal quality values are greater than a first preset threshold among the accessible APs, and the second type of AP is an AP whose operating frequency band is a 5GHz band among the APs whose signal quality values are greater than the first preset threshold among the accessible APs.
The AP may manage the terminal devices within its coverage area, including connection, authentication, and other processes of the terminal devices. The coverage area of an AP is typically a circular area, centered around the AP, that spreads out, within which a terminal device can establish a connection with the AP. The indoor coverage of an AP is typically 30m to 100 m. Multiple APs may be deployed in an area to increase WLAN coverage area. Multiple APs may provide wireless access functions to mobile terminals within the coverage area of the WLAN.
Fig. 1 is a schematic diagram of a communication network architecture applied in the embodiment of the present invention. As shown in fig. 1, the communication network architecture comprises: aterminal device 11 and a plurality ofAPs 12. In the figure, 1terminal device 11 is taken as an example for illustration, and it is understood that there may be a plurality ofterminal devices 11.
Theterminal device 11 may be any one of the above terminal devices. EachAP 12 has the functions of an AP as described above.
Theterminal device 11 performs access to one AP selected from the plurality ofAPs 12 to perform internet access. When selecting an AP for access, the prior art adopts a method of selecting an AP with the strongest signal for access as described in the above background art.
However, through the analysis and study on the signal strength and the data transmission rate of the AP, the transmission characteristics as shown in fig. 2A and fig. 2B are found, wherein fig. 2A is a variation curve of the data transmission rate of the AP when the RSSI of the AP in the 5GHz band is equal to-71, fig. 2B is a variation curve of the data transmission rate of the AP when the RSSI of the AP in the 2.4GHz band is equal to-70, and the horizontal axis and the vertical axis of fig. 2A and fig. 2B are the time axis and the data transmission rate axis, respectively. The data transmission rate may be throughput (throughput). By analyzing fig. 2A, it can be found that the average throughput of the AP in the 5GHz band is 40M when the RSSI is equal to-71, and by analyzing fig. 2B, it can be found that the average throughput of the AP in the 2.4GHz band is 20M when the RSSI is equal to-70. Therefore, the data transmission rate of the AP with the 2.4GHz band with the higher signal strength is lower than that of the AP with the 5GHz band with the lower signal strength. If the prior art method is adopted to select the AP in the 2.4GHz band with better signal strength for access, it is obvious that the AP does not provide the optimal network service for the terminal device. Therefore, the embodiment of the present invention provides an access network of a wireless network, which enables a terminal device to access an AP capable of providing a higher data transmission rate for the terminal device, thereby improving an internet access speed. Reference is made to the following examples for specific embodiments thereof.
There may be several different application scenarios for the network architecture shown in fig. 1.
Scene one: the plurality ofAPs 12 may include an AP in a 2.4GHz band and an AP in a 5GHz band, that is, both an AP in a 2.4GHz band and an AP in a 5GHz band exist in the plurality ofAPs 12. The embodiment of the invention provides a main application scene of the wireless network access method.
Due to the mobility of the terminal device, after the terminal device moves, the scene in which the terminal device is located can be switched to the second scene or the third scene.
Scene two: and a plurality ofAPs 12, wherein eachAP 12 is an AP in a 2.4GHz band.
Scene three: and a plurality ofAPs 12, wherein eachAP 12 is an AP with a 5GHz frequency band.
The following explains the technical solutions provided by the embodiments of the present invention with specific embodiments in conjunction with the communication network architecture shown in fig. 1 and the scenario one, scenario two, and scenario three described above.
The first embodiment is as follows: and aiming at the scene, the AP of the 2.4GHz band and the AP of the 5GHz band coexist.
Fig. 3 is a flowchart of an access method of a wireless network according to an embodiment of the present invention. Wherein the method may be performed by an access device of a wireless network, which may be implemented by means of software and/or hardware. For example: the device can be a client or the terminal equipment. The following describes an access method to a wireless network with a terminal device as an execution subject. As shown in fig. 3, the method comprises the steps of:
step S31: the terminal equipment acquires the information of the accessible access point AP.
The access method of the wireless network according to the embodiment of the present invention refers to a method for a terminal device to automatically access a wireless network, where an accessible AP of the terminal device specifically refers to an AP that the terminal device has successfully accessed, that is, the terminal device stores configuration information of a corresponding AP, such as a Service Set Identifier (SSID), an access password, an IP address, and an MAC address.
It should be noted that the terminal device is also located in the coverage of the accessible AP.
The information of the accessible AP may include any one or more of SSID, signal quality value, IP address, MAC address, etc.
The terminal device may obtain the information of the accessible AP in an active scanning or passive scanning manner.
Active scanning: the terminal device periodically broadcasts or unicasts a Probe Request frame (Probe Request frame) in a supported channel list to scan the wireless network. When the AP receives the Probe request frame, it notifies the wireless network information that can be provided in Response to a Probe Response frame (Probe Response frame). And the terminal equipment acquires the information of the accessible AP according to the Probe Response frame.
Passive scanning: the terminal device discovers the wireless network by monitoring a Beacon frame (Beacon frame) periodically transmitted by the AP. The terminal device listens for beacon frames on each channel of its supported channel list. And the terminal equipment acquires the information of the accessible AP according to the received beacon frame.
The present embodiment is directed to the scenario one described above, that is, the accessible APs acquired by the terminal device include an AP in a 2.4GHz band and an AP in a 5GHz band. That is, the terminal device obtains the accessible information of the AP in the 2.4GHz band and the information of the AP in the 5GHz band by the active scanning or the passive scanning.
Step S32: and if the APs with the signal quality values larger than the first preset threshold value in the accessible APs comprise a first type of AP and a second type of AP, and the AP with the largest signal quality value in the accessible APs is the first AP in the first type of APs, the terminal equipment judges whether a second AP exists in the second type of APs. If yes, go to step S33; if not, go to step S34.
The first type of AP is an AP with a 2.4GHz frequency band, the signal quality of which is greater than a first preset threshold value, of the accessible APs, and the second type of AP is an AP with a 5GHz frequency band, the signal quality of which is greater than the first preset threshold value, of the accessible APs. In this embodiment, the AP with the largest signal quality value among the accessible APs is the first AP in the first class of APs, and the difference between the signal quality values of the second AP and the first AP is smaller than the second preset threshold. The second preset threshold is different from the first preset threshold, and is used for determining whether a second AP having a signal quality value that is not much different from that of the first AP exists in the second class of APs, for example, the second preset threshold is 30.
The data transmission rate of the first type of AP (the AP of the 2.4GHz band with the signal quality greater than the first preset threshold among the accessible APs) is lower than the data transmission rate of the second type of AP (the AP of the 5GHz band with the signal quality greater than the first preset threshold among the accessible APs).
In this embodiment, the first preset threshold may be any value, and the specific value thereof may be flexibly selected according to the requirement, for example, the first preset threshold is-70 dbm. In this embodiment, the signal quality values of the accessible first class AP and the accessible second class AP are both greater than the first preset threshold.
The first class of APs may include one or more APs and the second class of APs may include one or more APs. In this embodiment, the AP with the largest signal quality value among the APs accessible to the terminal device is the first AP in the first class of APs, and the terminal device determines whether the second AP exists from the second class of APs, where the second AP satisfies the above condition, that is, the difference between the second AP and the first AP is smaller than the second preset threshold. I.e., the signal quality values of the first AP and the second AP do not differ much. I.e. the signal quality values of the second AP with a high data transmission rate and the first AP with a low data transmission rate do not differ much.
Step S33: and the terminal equipment accesses the second AP. And (6) ending.
And when the second AP exists in the second type of AP, the terminal equipment accesses the second AP.
In some embodiments, when there are multiple second APs in the second class of APs, the terminal device selects the second AP with the highest signal quality value for access.
The implementation manner of the terminal device accessing the second AP may include: an authentication procedure and an association procedure. And (3) authentication process: and establishing authentication between the terminal equipment and the second AP, such as open system authentication or shared key authentication, and entering an association process after the authentication is passed. And (3) association process: and the terminal equipment sends an association request frame to the second AP, the AP adds the information of the terminal equipment to the database, and feeds back an association response to the terminal equipment. Thereby, the terminal device can make internet access through the second AP.
Step S34: and the terminal equipment accesses the first AP. And (6) ending.
When the second AP does not exist in the second class of APs, that is, there is no AP whose difference between the signal quality value of the second class of APs and the signal quality value of the first AP is smaller than the second preset threshold, the terminal device accesses the first AP, that is, accesses the AP with the largest signal quality value. The method for the terminal device to access the first AP may refer to a specific implementation manner of the terminal device to access the second AP in step S33, that is, through the authentication process and the association process, only the access objects are different, and details are not described here.
Signal quality values in embodiments of the invention include at least one of the following signal quality values: received Signal Strength Indicator (RSSI), Link Quality Indicator (LQI), Signal-to-Noise Ratio (SNR), or Signal-to-Interference plus Noise Ratio (SINR). It can be transmitted to the terminal device by the AP through a Probe Response frame (Probe Response frame) or a Beacon frame (Beacon frame).
In this embodiment, a terminal device obtains information of an accessible AP, and if an AP having a signal quality value greater than a first preset threshold in the accessible AP includes a first type AP and a second type AP, and the AP having the largest signal quality value in the accessible AP is the first AP in the first type AP, the terminal device determines whether a second AP exists in the second type AP, where a difference between the signal quality values of the second AP and the first AP is less than a second preset threshold, and if the second AP exists, the terminal device accesses the second AP. Through the mode, the second AP with higher data transmission rate is selected for accessing under the condition that the signal quality values of the first AP and the second AP are not different, so that the speed of the terminal equipment for accessing the Internet can be increased.
On the basis of the above embodiment, the second AP may further support at least one of: very High Throughput (VHT), High Throughput (HT).
In the above step 32, the terminal device determines whether there is a second AP from the second type of AP, and may obtain the second AP through the following three ways:
one alternative is to: and the terminal equipment judges whether the second AP supporting the Very High Throughput (VHT) exists in the second type of AP or not.
Another alternative is: the terminal device determines whether the second AP supporting High Throughput (HT) exists in the second class of APs.
Yet another alternative is: the terminal equipment judges whether the second AP supporting VHT exists in the second type of AP; if the second AP supporting VHT does not exist, the terminal device determines whether the second AP supporting HT exists from the second class AP.
The terminal device may determine whether the second AP supports VHT and/or HT according to an implementation manner, where the terminal device acquires the VHT and/or HT attribute from a management frame broadcast by the AP to determine whether the AP supports VHT and/or HT, and if so, determines that the AP is the second AP, that is, the AP providing higher data transmission rate for the terminal device.
It should be noted that VHT and/or HT attributes of an AP are related to signal quality.
In the above embodiment, for the APs with the signal quality value greater than the first preset threshold among the accessible APs in the scenario one, the APs include a first class AP and a second class AP, and the AP with the largest signal quality value among the accessible APs is one AP in the first class AP. It is understood that there is another case where the AP with the largest signal quality value among the accessible APs is one AP in the second class of APs.
And if the APs with the signal quality values larger than the first preset threshold value in the accessible APs comprise the first type of APs and the second type of APs, and the AP with the largest signal quality value in the accessible APs is the third AP in the second type of APs, the terminal equipment can access the third AP. Namely, one of the second APs with the larger signal quality value is selected for access.
In the above embodiment, for the APs with the signal quality value greater than the first preset threshold among the APs accessible in the scenario one, the APs include the first class of APs and the second class of APs. In the first scenario, there is another case where the first type AP and the second AP coexist, but an AP whose signal quality is greater than the first preset threshold in the accessible APs only includes the first type AP, and for this case and the above second scenario, the present embodiment provides the following second embodiment:
fig. 4 is a flowchart of another method for accessing a wireless network according to an embodiment of the present invention. As shown in fig. 4, the method includes the steps of:
step S41: the terminal equipment acquires the information of the accessible access point AP.
For a detailed explanation of step S41, refer to step S32 in the embodiment shown in fig. 3, which is not described herein again.
Step S42: and if the AP with the signal quality value larger than the first preset threshold value in the accessible APs only comprises the first type of AP, the terminal equipment accesses the AP with the maximum signal quality value in the first type of AP.
In this embodiment, a terminal device obtains information of an accessible AP, and if an AP having a signal quality value greater than a first preset threshold in the accessible APs only includes a first type of AP, the terminal device accesses an AP having a maximum signal quality value in the first type of AP, so as to access the internet through the AP having the maximum signal quality value.
In the first scenario, there is another case where the first type AP and the second AP coexist, but an AP with a signal quality greater than the first preset threshold in the accessible APs only includes the second type AP, and for this case and the above scenario three, the embodiment provides the following third embodiment:
fig. 5 is a flowchart of another method for accessing a wireless network according to an embodiment of the present invention. As shown in fig. 5, the method includes the steps of:
step S51: the terminal equipment acquires the information of the accessible access point AP.
For a detailed explanation of step S51, refer to step S32 in the embodiment shown in fig. 3, which is not described herein again.
Step S52: and if the AP with the signal quality value larger than the first preset threshold value in the accessible APs only comprises a second type of AP, the terminal equipment accesses the AP with the maximum signal quality value in the second type of AP.
In this embodiment, the terminal device obtains information of accessible APs, and if an AP whose signal quality value is greater than a first preset threshold in the accessible APs only includes a second type of AP, the terminal device accesses an AP whose signal quality value is maximum in the second type of AP, so as to access the internet through the AP whose signal quality value is maximum.
On the basis of any one of the above embodiments, the embodiment of the present invention further provides an embodiment four as follows:
fig. 6 is a flowchart of another method for accessing a wireless network according to an embodiment of the present invention. As shown in fig. 6, the method includes the steps of:
step S61: the terminal equipment acquires the information of the accessible access point AP.
For a detailed explanation of step S61, refer to step S32 in the embodiment shown in fig. 3, which is not described herein again.
Step S62: and the terminal equipment screens the accessible APs to acquire the APs with the signal quality values larger than the first preset threshold value.
After step S62, step S32 to step S34 in the embodiment shown in fig. 3 may be executed, step S42 in the embodiment shown in fig. 4 may be executed, or step S52 in the embodiment shown in fig. 5 may be executed.
In some embodiments, one realizable manner of step 62 above: the terminal equipment sorts the accessible APs according to the signal quality value; and the terminal equipment screens the accessible APs according to the sequence to obtain the APs with the signal quality values larger than a first preset threshold value.
The sorting can be from large to small, or from small to large, and can be flexibly set according to requirements.
Alternatively, before step S62, steps S63 to S64 (shown by dotted lines as optional) may be further performed.
Step S63: the terminal device judges whether the maximum signal quality value of the accessible AP is less than or equal to the first preset threshold, if so, performs step S64, and if not, performs step S62.
Step S64: and if the maximum signal quality value is smaller than or equal to the first preset threshold, the terminal equipment accesses the AP corresponding to the maximum signal quality value.
In this embodiment, a terminal device obtains information of an accessible AP, and the terminal device selects an AP having a signal quality value greater than a first preset threshold from the accessible APs, where if the AP having a signal quality value greater than the first preset threshold in the accessible AP includes a first type AP and a second type AP, and the AP having the largest signal quality value in the accessible AP is the first AP in the first type AP, the terminal device determines whether a second AP exists in the second type AP, where a difference between the signal quality values of the second AP and the first AP is less than the second preset threshold, and if the second AP exists, the terminal device accesses the second AP. Through the mode, the second AP with higher data transmission rate is selected for accessing under the condition that the signal quality values of the first AP and the second AP are not different, so that the speed of the terminal equipment for accessing the Internet can be increased.
And if the AP with the signal quality value larger than the first preset threshold value in the accessible APs only comprises the first type of AP, the terminal equipment accesses the AP with the maximum signal quality value in the first type of AP, so that the AP with the maximum signal quality value accesses the Internet.
And if the AP with the signal quality value larger than the first preset threshold value in the accessible APs only comprises the second type of AP, the terminal equipment accesses the AP with the maximum signal quality value in the second type of AP, so that the AP with the maximum signal quality value accesses the Internet.
Before the terminal device screens and acquires the APs with the signal quality values larger than the first preset threshold from the accessible APs, whether the maximum signal quality value of the accessible APs is smaller than or equal to the first preset threshold is judged, and if the maximum signal quality value is smaller than or equal to the first preset threshold, the terminal device accesses the AP corresponding to the maximum signal quality value, so that the processing efficiency of the wireless network access method of the embodiment of the invention can be improved.
The embodiment of the invention also provides a wireless network access method which can be realized, and the embodiment of the invention comprises the following steps:
fig. 7 is a flowchart of another method for accessing a wireless network according to an embodiment of the present invention. In this embodiment, the signal quality is taken as an RSSI for example, as shown in fig. 7, the method includes the following steps:
step S71: the terminal device obtains a list of available APs.
Wherein the available AP list includes information of APs accessible to the terminal device. Specifically, the terminal device may obtain the information of the AP accessible to the terminal device in the active scanning or passive scanning manner as described above, and for a specific explanation, reference may be made to step S31 in the embodiment shown in fig. 3, which is not described herein again.
Step S72: the terminal device determines whether the maximum signal quality of the accessible AP is less than or equal to a first preset value, if so, performs step S73, and if not, performs step S74.
Step S73: and the terminal equipment accesses the AP corresponding to the maximum RSSI.
Step S74: the terminal device determines whether the available AP list coexists with the first class AP and the second class AP, if not, performs step S75, and if so, performs step S76.
Step S75: and the terminal equipment accesses the AP corresponding to the maximum RSSI. And (6) ending.
Step S76: and the terminal equipment eliminates the AP with the RSSI (received signal strength indicator) being less than a first preset threshold value in the available AP list.
Step S77: the terminal device determines whether the available AP list coexists with the first class AP and the second class AP, if not, performs step S75, and if so, performs step S78.
Step S78: the terminal device determines whether an AP whose difference value with the first AP is smaller than a second preset threshold exists in the second class of APs, if not, performs step S79, and if so, performs step S80.
The first AP is an AP with the largest signal quality value in the available AP list, and the first AP belongs to a first class of AP, that is, an AP in a 2.4GHz frequency band.
Step S79: the terminal equipment accesses the first AP. And (6) ending.
Step S80: the terminal device determines whether the second AP supports VHT, if so, performs step S81, and if not, performs step S82.
When there is an AP whose difference from the first AP is smaller than the second preset threshold, that is, there is a second AP, in the second class of APs, step S80 is executed.
Step S81: and the terminal equipment accesses the second AP. And (6) ending.
Step S82: the terminal device determines whether the second AP supports HT, if yes, performs step S81, and if no, performs step S83.
Step S83: and the terminal equipment accesses the AP corresponding to the maximum RSSI. And (6) ending.
In this embodiment, in the above manner, the second AP with a higher data transmission rate is selected for accessing under the condition that the signal quality values of the first AP and the second AP are not different from each other, so that the speed of the terminal device for accessing the internet can be increased.
The foregoing describes in detail an access method of a wireless network provided in an embodiment of the present invention, and an access apparatus of a wireless network provided in an embodiment of the present invention is described below.
Fig. 8 is a schematic structural diagram of an access device of a wireless network according to an embodiment of the present invention. The access means of the wireless network may be the above-mentioned station or an internal chip of the station. As shown in fig. 8, the access device of the wireless network includes:
a receivingmodule 11, configured to obtain information of an accessible AP;
aprocessing module 12, configured to determine whether a second AP exists in the second class of APs if an AP having a signal quality value greater than a first preset threshold in the accessible APs includes a first class of AP and a second class of AP, and an AP having a maximum signal quality value in the accessible APs is a first AP in the first class of APs, where a difference between the signal quality values of the second AP and the first AP is smaller than a second preset threshold;
theprocessing module 12 is further configured to access the second AP through the sendingmodule 13 if the second AP exists;
wherein the data transmission rate of the first type of AP is lower than the data transmission rate of the second type of AP.
Optionally, the second AP further supports a very high throughput VHT.
Optionally, the second AP also supports high throughput HT.
Optionally, theprocessing module 12 is further configured to: judging whether the second AP supports VHT; if not, determining whether the second AP supports HT, and if the second AP supports VHT or HT, accessing the second AP through a sendingmodule 13.
Optionally, theprocessing module 12 is further configured to: if it is determined that there is no second AP in the second class of APs, the first AP is accessed through the sendingmodule 13.
Optionally, theprocessing module 12 is further configured to: if the APs with the signal quality values larger than the first preset threshold value in the accessible APs include the first type of APs and the second type of APs, and the AP with the largest signal quality value in the accessible APs is the third AP in the second type of APs, the third AP is accessed through the sendingmodule 13.
Optionally, theprocessing module 12 is further configured to: if the APs with the signal quality values larger than the first preset threshold value in the accessible APs only comprise first-class APs, the APs with the largest signal quality values in the first-class APs are accessed through the sendingmodule 13; or, if the AP whose signal quality value is greater than the first preset threshold in the accessible APs only includes the second type of AP, the AP with the largest signal quality value in the second type of AP is accessed through the sendingmodule 13.
Optionally, theprocessing module 12 is further configured to, after obtaining information of accessible APs, screen for APs, from which the obtained signal quality value is greater than the first preset threshold.
Optionally, theprocessing module 12 is configured to: sorting the accessible APs according to the magnitude of the signal quality value; and screening the accessible APs according to the sequence to obtain the APs with the signal quality values larger than a first preset threshold value.
Optionally, theprocessing module 12 is further configured to determine whether a maximum signal quality value of the accessible AP is less than or equal to the first preset threshold before screening the accessible APs to obtain the APs with the signal quality values greater than the first preset threshold; if the maximum signal quality value is smaller than or equal to the first preset threshold, accessing the AP corresponding to the maximum signal quality value through the sending module; correspondingly, if the maximum signal quality value is greater than the first preset threshold, screening the accessible APs to obtain the APs with the signal quality values greater than the first preset threshold.
Optionally, the signal quality value comprises at least one of the following signal quality values: signal strength indication RSSI, link quality indication LQI, signal to noise ratio SNR, or signal to interference and noise ratio SINR.
The access device of the wireless network according to the embodiment of the present invention may be configured to execute the technical solutions in the above method embodiments of the present invention, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The mobile terminal can also be called a UE, access terminal, subscriber unit, subscriber station, mobile station, user terminal, wireless communication device, user agent, or user equipment. The mobile terminal may be a smartphone, cellular phone, cordless phone, tablet, PDA device, handheld device with wireless communication capability or other processing device connected to a wireless modem, in-vehicle device, wearable device, etc. As shown in fig. 9, the terminal device includes: aprocessor 21 and amemory 22.
Thememory 22 stores computer-executable instructions;
theprocessor 21 executes the computer-executable instructions stored by thememory 22, so that theprocessor 22 executes the above-mentioned access method of the wireless network.
The terminal device further includes: and atransceiver 23 for enabling communication with the AP or the terminal device.
The terminal device of the embodiment of the present invention may be configured to execute the technical solutions in the method embodiments of the present invention, and the implementation principles and technical effects are similar, which are not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer executable instruction is stored in the computer-readable storage medium, and when the computer executable instruction is executed by a processor, the computer executable instruction is used to implement any of the above-mentioned access methods for a wireless network.
An embodiment of the present invention further provides a computer program product, where the program product includes computer executable instructions, and the computer executable instructions are executed by a processor to implement any of the above-mentioned wireless network access methods.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The computer program may be stored in a computer readable storage medium. The computer program, when executed by a processor, performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

Translated fromChinese
1.一种无线网络的接入方法,其特征在于,包括:1. A method for accessing a wireless network, comprising:终端设备获取可接入的接入点AP的信息;The terminal device obtains the information of the accessible access point AP;若所述可接入的AP中信号质量值大于第一预设阈值的AP包括第一类AP和第二类AP,且所述可接入的AP中信号质量值最大的AP为第一类AP中的第一AP,则所述终端设备从所述第二类AP中判断是否存在第二AP,所述第二AP与所述第一AP的信号质量值之间的差值小于第二预设阈值;If the APs whose signal quality value is greater than the first preset threshold in the accessible APs include the first type AP and the second type AP, and the AP with the highest signal quality value among the accessible APs is the first type The first AP in the AP, the terminal device determines whether there is a second AP from the second type of APs, and the difference between the signal quality values of the second AP and the first AP is smaller than the second AP. preset threshold;若存在所述第二AP,则所述终端设备判断所述第二AP是否支持极高吞吐量VHT;If the second AP exists, the terminal device determines whether the second AP supports very high throughput VHT;若不支持VHT,则所述终端设备判断所述第二AP是否支持高吞吐量HT;If VHT is not supported, the terminal device determines whether the second AP supports high throughput HT;若所述第二AP支持VHT或HT,则所述终端设备接入所述第二AP;If the second AP supports VHT or HT, the terminal device accesses the second AP;若所述可接入的AP中信号质量值大于第一预设阈值的AP包括第一类AP和第二类AP,且所述可接入AP中信号质量值最大的AP为第二类AP中的第三AP,则所述终端设备接入所述第三AP;If the APs whose signal quality value is greater than the first preset threshold in the accessible APs include the first type AP and the second type AP, and the AP with the highest signal quality value among the accessible APs is the second type AP the third AP in the terminal device, then the terminal device accesses the third AP;其中,所述第一类AP的数据传输速率低于所述第二类AP的数据传输速率。The data transmission rate of the APs of the first type is lower than the data transmission rate of the APs of the second type.2.根据权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising:若所述终端设备确定所述第二类AP中不存在第二AP,则所述终端设备接入所述第一AP。If the terminal device determines that there is no second AP in the second type of APs, the terminal device accesses the first AP.3.根据权利要求1或2所述的方法,其特征在于,还包括:3. The method according to claim 1 or 2, characterized in that, further comprising:若所述可接入的AP中信号质量值大于第一预设阈值的AP只包括第一类AP,则所述终端设备接入所述第一类AP中信号质量值最大的AP;If the accessible APs whose signal quality value is greater than the first preset threshold include only the first type of APs, the terminal device accesses the AP with the largest signal quality value among the first type of APs;或者,or,若所述可接入的AP中信号质量值大于第一预设阈值的AP只包括第二类AP,则所述终端设备接入所述第二类AP中信号质量值最大的AP。If the accessible APs whose signal quality value is greater than the first preset threshold include only APs of the second type, the terminal device accesses the AP with the highest signal quality value among the APs of the second type.4.根据权利要求1或2所述的方法,其特征在于,终端设备获取可接入的接入点AP的信息之后,还包括:4. The method according to claim 1 or 2, wherein after the terminal device acquires the information of the accessible access point AP, the method further comprises:所述终端设备从所述可接入的AP中筛选获取信号质量值大于所述第一预设阈值的AP。The terminal device selects and obtains APs whose signal quality value is greater than the first preset threshold from the accessible APs.5.根据权利要求4所述的方法,其特征在于,所述终端设备从所述可接入的AP中筛选获取信号质量值大于所述第一预设阈值的AP,包括:5. The method according to claim 4, wherein the terminal device selects APs whose signal quality values are greater than the first preset threshold from the accessible APs, comprising:所述终端设备根据信号质量值的大小对所述可接入的AP进行排序;The terminal device sorts the accessible APs according to the magnitude of the signal quality value;所述终端设备根据所述排序从所述可接入的AP中筛选获取信号质量值大于第一预设阈值的AP。The terminal device selects and obtains APs whose signal quality value is greater than a first preset threshold from the accessible APs according to the ranking.6.根据权利要求5所述的方法,其特征在于,所述终端设备从所述可接入的AP中筛选获取信号质量值大于所述第一预设阈值的AP之前,还包括:6 . The method according to claim 5 , wherein before the terminal device selects and obtains APs whose signal quality value is greater than the first preset threshold from the accessible APs, the method further comprises: 6 .所述终端设备判断所述可接入的AP的最大信号质量值是否小于等于所述第一预设阈值;The terminal device determines whether the maximum signal quality value of the accessible AP is less than or equal to the first preset threshold;若所述最大信号质量值小于等于所述第一预设阈值,则所述终端设备接入所述最大信号质量值所对应的AP;If the maximum signal quality value is less than or equal to the first preset threshold, the terminal device accesses the AP corresponding to the maximum signal quality value;相应的,corresponding,若所述最大信号质量值大于所述第一预设阈值,则执行所述终端设备从所述可接入的AP中筛选获取信号质量值大于所述第一预设阈值的AP。If the maximum signal quality value is greater than the first preset threshold, perform screening by the terminal device to obtain APs whose signal quality value is greater than the first preset threshold from the accessible APs.7.根据权利要求1或2所述的方法,其特征在于,所述信号质量值包括以下至少一个信号质量的值:7. The method according to claim 1 or 2, wherein the signal quality value comprises at least one of the following signal quality values:信号强度指示RSSI、链路质量指示LQI、信号噪声比SNR、或信号与干扰噪声比SINR。Signal strength indicator RSSI, link quality indicator LQI, signal-to-noise ratio SNR, or signal-to-interference-noise ratio SINR.8.一种无线网络的接入装置,其特征在于,包括:8. A device for accessing a wireless network, comprising:接收模块,用于获取可接入的接入点AP的信息;a receiving module, used to obtain information of an accessible access point AP;处理模块,用于若所述可接入的AP中信号质量值大于第一预设阈值的AP包括第一类AP和第二类AP,且所述可接入的AP中信号质量值最大的AP为第一类AP中的第一AP,则从所述第二类AP中判断是否存在第二AP,所述第二AP与所述第一AP的信号质量值之间的差值小于第二预设阈值;A processing module, used for if the APs whose signal quality values in the accessible APs are greater than the first preset threshold include the first type APs and the second type APs, and the accessible APs have the largest signal quality values The AP is the first AP in the first type of APs, then it is determined whether there is a second AP from the second type of APs, and the difference between the signal quality values of the second AP and the first AP is smaller than the first AP. Two preset thresholds;处理模块,还用于若存在所述第二AP,则判断所述第二AP是否存在支持极高吞吐量VHT;若不支持VHT,则判断所述第二AP是否支持高吞吐量HT;若所述第二AP支持VHT或HT,则通过发送模块接入所述第二AP;The processing module is further configured to, if the second AP exists, determine whether the second AP supports very high throughput VHT; if it does not support VHT, determine whether the second AP supports high throughput HT; if If the second AP supports VHT or HT, then access the second AP through the sending module;处理模块,还用于若所述可接入的AP中信号质量值大于第一预设阈值的AP包括第一类AP和第二类AP,且所述可接入AP中信号质量值最大的AP为第二类AP中的第三AP,则接入所述第三AP;The processing module is further configured to, if the APs whose signal quality values are greater than the first preset threshold in the accessible APs include APs of the first type and APs of the second type, and the APs with the highest signal quality values among the accessible APs If the AP is the third AP in the second type of AP, access the third AP;其中,所述第一类AP的数据传输速率低于所述第二类AP的数据传输速率。The data transmission rate of the APs of the first type is lower than the data transmission rate of the APs of the second type.9.一种终端设备,其特征在于,包括:处理器和存储器;9. A terminal device, comprising: a processor and a memory;所述存储器存储计算机执行指令;the memory stores computer-executable instructions;所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如权利要求1至7任一项所述的无线网络的接入方法。The processor executes the computer-executable instructions stored in the memory, so that the processor executes the wireless network access method according to any one of claims 1 to 7.10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当所述计算机执行指令被处理器执行时用于实现如权利要求1至7任一项所述的无线网络的接入方法。10. A computer-readable storage medium, characterized in that, computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, are used to implement any one of claims 1 to 7 The access method of the wireless network described in item.
CN201910112089.3A2019-02-132019-02-13Wireless network access method, device, terminal equipment and storage mediumActiveCN109618394B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910112089.3ACN109618394B (en)2019-02-132019-02-13Wireless network access method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910112089.3ACN109618394B (en)2019-02-132019-02-13Wireless network access method, device, terminal equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN109618394A CN109618394A (en)2019-04-12
CN109618394Btrue CN109618394B (en)2021-04-27

Family

ID=66021981

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910112089.3AActiveCN109618394B (en)2019-02-132019-02-13Wireless network access method, device, terminal equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN109618394B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106413051A (en)*2016-09-212017-02-15乐视控股(北京)有限公司WiFi connection method and system
CN107466081A (en)*2017-09-152017-12-12努比亚技术有限公司A kind of wireless switching method and terminal
CN108040358A (en)*2017-12-292018-05-15广东欧珀移动通信有限公司Wireless network connection method, terminal device and storage medium
CN108770027A (en)*2018-05-282018-11-06深圳市零度智控科技有限公司Switching method, mobile terminal and the computer readable storage medium of wireless access point
WO2018223553A1 (en)*2017-06-062018-12-13深圳市乃斯网络科技有限公司Terminal wifi access control method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106413051A (en)*2016-09-212017-02-15乐视控股(北京)有限公司WiFi connection method and system
WO2018223553A1 (en)*2017-06-062018-12-13深圳市乃斯网络科技有限公司Terminal wifi access control method and system
CN107466081A (en)*2017-09-152017-12-12努比亚技术有限公司A kind of wireless switching method and terminal
CN108040358A (en)*2017-12-292018-05-15广东欧珀移动通信有限公司Wireless network connection method, terminal device and storage medium
CN108770027A (en)*2018-05-282018-11-06深圳市零度智控科技有限公司Switching method, mobile terminal and the computer readable storage medium of wireless access point

Also Published As

Publication numberPublication date
CN109618394A (en)2019-04-12

Similar Documents

PublicationPublication DateTitle
EP2824870B1 (en)Wireless local area network discovery and selection method, device and system, and terminal
US9020502B2 (en)Proximity indication using out-of-band links
CN105706500B (en)Method, device and system for accessing site equipment to access point
CN104798414B (en)System and method for dual-mode network selection
JP2017153149A (en)Out-of-band scanning for femto access point detection
JP5305453B2 (en) Wireless LAN high-speed roaming system, high-speed roaming method, and high-speed roaming program
GB2554671A (en)WLAN Extender placement
US20150146702A1 (en)Method and device for accessing network
JP2015518682A (en) Network access method and apparatus
RU2684474C1 (en)Access point supporting at least two virtual networks, and method accomplished by means of access point for data exchanging with wireless device
US11057770B2 (en)Method and apparatus for dynamically changing connection in wireless LAN
KR20130055501A (en)Apparatus and method for selecting of access point
WO2015043089A1 (en)Network access point, network controller, network device, and load control method thereof
CN104038984A (en)Wireless local area network access method and auxiliary device for wireless local area network access
CN111970750A (en)Multi-frequency WiFi identification method and device
CN110958611A (en)WiFi connection control method and device, storage medium and terminal
US10880770B2 (en)Method and apparatus for managing quality of wireless LAN
KR20180026750A (en) Inter-RAT Measurement Reporting
CN115038180B (en) Frequency selection method, device, equipment and storage medium
CN109618394B (en)Wireless network access method, device, terminal equipment and storage medium
US9462537B2 (en)Network access point, network controller, network device, and load control method thereof
CN108633030A (en)Channel access method and device
US11665608B2 (en)Systems and methods for interference mitigation for non-member user equipment devices in the vicinity of closed access small cells
Yao et al.OppoScan: enabling fast handoff in dense 802.11 WMNs via opportunistic probing with virtual radio
WO2013123528A1 (en)Out-of-band scanning for femto access point detection

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp