CN112165728A - Network connection method, terminal and computer storage medium - Google Patents

Network connection method, terminal and computer storage medium Download PDF

Info

Publication number
CN112165728A
CN112165728A CN202011138637.9A CN202011138637A CN112165728A CN 112165728 A CN112165728 A CN 112165728A CN 202011138637 A CN202011138637 A CN 202011138637A CN 112165728 A CN112165728 A CN 112165728A
Authority
CN
China
Prior art keywords
frequency band
target
available
wifi
terminal
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.)
Pending
Application number
CN202011138637.9A
Other languages
Chinese (zh)
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 CN202011138637.9A priority Critical patent/CN112165728A/en
Publication of CN112165728A publication Critical patent/CN112165728A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The embodiment of the application discloses a network connection method, a terminal and a computer storage medium, wherein the method comprises the following steps: when residing to the frequency band of the available cellular network, if a starting instruction of WiFi is received, responding to the starting instruction, and detecting the available AP; determining a target interference WiFi frequency band according to the available cellular network frequency band; selecting a target AP from the available APs based on the priority corresponding to the available APs and the target interference WiFi frequency band; and performing wireless network access processing according to the target AP.

Description

Network connection method, terminal and computer storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network connection method, a terminal, and a computer storage medium.
Background
With the rapid development of the mobile internet, more and more public and office places and various home network devices acquire internet services by using the WiFi technology, and a network architecture in which a current cellular network system and a WiFi system coexist is formed. However, when the cellular network system coexists with the WiFi system, the frequency band mutual interference problem inevitably occurs. For example: when the terminal resides in both the telecommunications LTE B5 band and the WiFi 13 band, there will be harmonic interference between the cellular band and the WiFi band.
The occurrence of the above interference problem not only causes the reduction of the data transmission rate of the terminal, but also increases the risk of information loss, even the situation that the terminal cannot be accessed due to network congestion occurs. Therefore, how to effectively solve the mutual interference problem when the cellular network frequency band and the WiFi frequency band coexist is a technical problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a network connection method, a terminal and a computer storage medium, which effectively solve the problem of mutual interference when a cellular network frequency band and a WiFi frequency band coexist, have high data transmission rate, avoid the risk of information loss, and further improve the terminal intelligence.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a network connection method, where the method includes:
when residing to the frequency band of the available cellular network, if a starting instruction of WiFi is received, responding to the starting instruction, and detecting the available AP;
determining a target interference WiFi frequency band according to the available cellular network frequency band;
selecting a target AP from the available APs based on the corresponding priority of the available APs and the target interference WiFi frequency band;
and performing wireless network access processing according to the target AP.
In a second aspect, an embodiment of the present application provides a terminal, where the terminal includes: a detection unit, a determination unit, a selection unit and an access unit,
the detection unit is used for responding to a starting instruction and detecting an available AP if the starting instruction of WiFi is received when the mobile terminal resides in an available cellular network frequency band;
the determining unit is used for determining a target interference WiFi frequency band according to the available cellular network frequency band;
the selecting unit is configured to select a target AP from the available APs based on the priority corresponding to the available AP and the target interference WiFi frequency band;
and the access unit is used for performing wireless network access processing according to the target AP.
In a third aspect, an embodiment of the present application provides a terminal, where the terminal includes a processor and a memory storing instructions executable by the processor, and when the instructions are executed by the processor, the network connection method is implemented.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the program implements the network connection method as described above.
The embodiment of the application provides a network connection method, a terminal and a computer storage medium, wherein when the terminal resides in an available cellular network frequency band, if a starting instruction of WiFi is received, the starting instruction is responded, and an available AP is detected; determining a target interference WiFi frequency band according to the available cellular network frequency band; selecting a target AP from the available APs based on the priority corresponding to the available APs and the target interference WiFi frequency band; and performing wireless network access processing according to the target AP. That is to say, in the embodiment of the present application, when the terminal already resides in the available cellular network frequency band, if a start instruction for WiFi network connection is received, the terminal may first respond to the start instruction to detect the current available AP, and after determining a target interference WiFi frequency band having harmonic interference with the resident cellular network frequency band according to the current resident cellular network frequency band, further select a target AP from the available AP by combining the priority of the current available AP and the target interference WiFi frequency band, and then perform wireless network access processing according to the target AP. Therefore, in the application, when the terminal is in the resident cellular network frequency band and is simultaneously ready to connect the WiFi network, the terminal can autonomously select a target AP with a low harmonic interference rate with the currently resident cellular network frequency band from the currently available APs, so as to perform WiFi network connection, reduce the probability of residing in the cellular network frequency band and the WiFi frequency band with harmonic interference, effectively solve the mutual interference problem of coexistence of the cellular network frequency band and the WiFi frequency band during network connection, achieve high data transmission rate, avoid the risk of information loss, and further improve terminal intelligence.
Drawings
Fig. 1 is a first schematic flow chart illustrating an implementation of a network connection method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation process of the network connection method according to the embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of a network connection method according to an embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation of a network connection method according to an embodiment of the present application;
fig. 5 is a schematic flow chart illustrating an implementation of the network connection method according to the embodiment of the present application;
fig. 6 is a schematic diagram of a network connection processing procedure according to an embodiment of the present application;
fig. 7 is a first schematic structural diagram of a terminal assembly according to an embodiment of the present application;
fig. 8 is a schematic view illustrating a terminal composition structure according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
With the rapid development of mobile internet, more and more public and office places and various home network devices acquire internet services by using the WiFi technology, and a network architecture in which a current cellular network system and a WiFi system coexist is formed. However, when the terminal resides in some specific communication frequency bands and WiFi frequency bands, that is, when the cellular network system and the WiFi system coexist, harmonic interference (e.g., second harmonic interference, third harmonic interference, etc.) exists between the frequency bands, and the problem of mutual interference between the frequency bands inevitably occurs. For example: when the terminal resides in both the telecommunications LTE B5 band and the WiFi 13 band, there will be harmonic interference between the cellular band and the WiFi band.
Specifically, when the frequency band of the currently-residing cellular network and the currently-connected WiFi frequency band are frequency bands that interfere with each other, if a user has a call requirement at this time, the existence of harmonic interference may cause uplink resource deficiency, which causes Packet loss of an uplink Packet Data Convergence Protocol (PDCP) layer, thereby affecting the call quality; or when the user is using the WiFi network for data service at this time, the harmonic interference may also affect the user's data service experience.
Therefore, the occurrence of the above interference problem not only causes the reduction of the data transmission rate of the terminal, but also increases the risk of information loss, even the situation that the terminal cannot be accessed due to network congestion occurs. Further, in order to solve the problem in the related art, a Time-division multiplexing (TDM) mechanism is proposed to allow the uplink communication band and the WiFi band to be used in a Time-sharing manner, so as to reduce harmonic interference. However, the TDM time division mechanism is a compromise for achieving the performance balance between the WiFi side and the Modem side of the terminal, and when there is harmonic interference between the cellular network frequency band and the WiFi frequency band of the terminal, the TDM time division mechanism cannot completely guarantee the quality of the call and the WiFi data service at any time point during the terminal using period.
Therefore, how to effectively solve the mutual interference problem when the cellular network frequency band and the WiFi frequency band coexist is a technical problem to be solved urgently.
In order to solve the problem of mutual interference existing when a cellular network frequency band and a WiFi frequency band coexist in the related art, embodiments of the present application provide a network connection method, a terminal, and a computer storage medium. Specifically, when the terminal already resides in the available cellular network frequency band, if a start instruction for WiFi network connection is received, the terminal may first respond to the start instruction to detect the current available AP, and after determining a target interference WiFi frequency band having harmonic interference with the resident cellular network frequency band according to the current resident cellular network frequency band, further select a target AP from the available AP in combination with the priority of the current available AP and the target interference WiFi frequency band, and then perform wireless network access processing according to the target AP. Therefore, in the application, when the terminal is in the resident cellular network frequency band and is simultaneously ready to connect the WiFi network, the terminal can autonomously select a target AP with a low harmonic interference rate with the currently resident cellular network frequency band from the currently available APs, so as to perform WiFi network connection, reduce the probability of residing in the cellular network frequency band and the WiFi frequency band with harmonic interference, effectively solve the mutual interference problem of coexistence of the cellular network frequency band and the WiFi frequency band during network connection, achieve high data transmission rate, avoid the risk of information loss, and further improve terminal intelligence.
It should be understood that, in the embodiments of the present application, in the network architecture where the current cellular network system and the WiFi system coexist, the harmonic interference existing between the cellular network frequency band and the WiFi frequency band is at least second harmonic interference.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Fig. 1 is a schematic flow chart illustrating an implementation process of a network connection method provided in an embodiment of the present application, and as shown in fig. 1, in an embodiment of the present application, a method for a terminal to perform network connection may include the following steps:
step 101, when residing to an available cellular network frequency band, if receiving a start instruction of WiFi, responding to the start instruction, and detecting an available AP.
In the embodiment of the application, when the terminal resides in an available cellular network frequency band, if the terminal receives a WiFi start instruction, the terminal may detect a currently available AP in response to the WiFi start instruction.
It should be noted that in the embodiments of the present application, a terminal can be a UE, a subscriber unit, a subscriber station, a mobile station, a remote terminal device, a mobile device, a user terminal device, a wireless communication device, the user agent or the user device, and the terminal may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with a Wireless communication function, a computing device or other processing devices connected to a Wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G Network, or a terminal device in a Public Land Mobile Network (PLMN) for future evolution, and the like, which is not particularly limited in this application.
It should be noted that, in the embodiment of the present application, the available cellular network frequency band refers to an operator network frequency band that can realize successful call and is supported by the terminal, such as a 3g frequency band, a 4g frequency band, and the like; wherein, cellular network frequency ranges and systems of each large operator are different, and the cellular network frequency ranges of 4g of China mobile are 1880-1900MHz, 2320-2370MHz and 2575-2635 MHz; the frequency bands of the Chinese telecommunication 4g cellular network are 2370-.
It should be noted that, in the embodiment of the present application, an available wireless Access Point (AP) refers to a current available wireless hotspot that can be detected when a terminal performs WiFi connection; the corresponding status information of different APs, such as signal strength and WiFi frequency bands, are different.
It can be understood that, if the terminal receives the WiFi connection start instruction while residing in the cellular network frequency band, it indicates that the terminal will simultaneously access the cellular network frequency band and a WiFi frequency band corresponding to a certain available AP, and the terminal will face a situation where the cellular network frequency band and the WiFi frequency band coexist.
Specifically, in the embodiment of the present application, while the terminal resides in the cellular network frequency band, if a WiFi start instruction is received, the terminal may first respond to the WiFi start instruction, and detect and obtain the currently available AP.
Optionally, the WiFi enabling instruction may be received by the terminal based on a WiFi enabling operation of the user on the setting interface, for example, clicking a WiFi connection enabling button; or a WiFi start instruction is received through a pre-trigger mechanism, for example, the terminal needs to perform software update currently, and the WiFi start mechanism is automatically triggered.
It should be noted that, in the embodiment of the present application, there may be at least one available AP. That is, after the terminal performs the detection process of the available APs in response to the WiFi enabling instruction, the terminal may currently obtain at least one available AP.
Further, in the embodiment of the application, the terminal receives the WiFi start instruction while residing the available cellular network frequency band, responds to the WiFi start instruction, and after detecting and obtaining the current available AP, may further determine the WiFi frequency band having harmonic interference with the residing cellular network frequency band.
And step 102, determining a target interference WiFi frequency band according to the available cellular network frequency band.
In the embodiment of the application, the terminal receives the WiFi starting instruction while residing in the frequency band of the available cellular network, responds to the WiFi starting instruction, and determines the target interference WiFi frequency band according to the frequency band of the currently residing cellular network after detecting the available AP.
It should be noted that, in the embodiment of the present application, the target interference WiFi frequency band refers to a WiFi frequency band where harmonic interference exists between the target interference WiFi frequency band and a currently residing available cellular network frequency band; wherein one cellular network frequency band may correspond to at least one interfering WiFi frequency band. For example, if the currently camped cellular network frequency band is the B5 frequency band of the telecommunication 4g network, the corresponding one of the interfering WiFi frequency bands may be the WiFi CH13 frequency band.
Specifically, in the embodiment of the present application, the terminal may previously establish a corresponding relationship between a cellular network frequency band and an interference WiFi frequency band in which harmonic interference exists between the cellular network frequency band and the interference WiFi frequency band, and when residing to the available cellular network frequency band, the terminal may determine a target interference WiFi frequency band corresponding to the currently residing cellular network frequency band according to the currently residing available cellular network frequency band, the previously established corresponding relationship between the cellular network frequency band and the interference WiFi frequency band.
It should be noted that, in the embodiment of the present application, after detecting an available AP, the terminal may determine the target interference WiFi frequency band, that is, after step 101, continue to perform step 102; the terminal may also determine a target interference WiFi frequency band of the currently residing cellular network frequency band while detecting the available AP, that is, step 101 and step 102 are performed synchronously; on the other hand, when residing in the current cellular network frequency band, the terminal may also determine in advance a corresponding target interference WiFi frequency band, and then detect a current available AP when receiving a WiFi start instruction, that is, step 102 is before step 101. The sequence time of detecting the available AP and determining the target interference WiFi frequency band corresponding to the frequency band of the currently residing cellular network is not specifically limited.
Optionally, the terminal may pre-configure a relevant code for selecting the interference WiFi frequency band, and after the terminal knows the currently residing cellular network frequency band, the terminal may further execute the relevant code through the processor, so as to determine, on the code side, the WiFi frequency band with harmonic interference with the currently residing cellular network frequency band according to the currently residing cellular network frequency band.
Optionally, after the terminal determines the target interference WiFi frequency band corresponding to the currently residing cellular network frequency band, the terminal may store the interference WiFi frequency band in a list form.
Further, in the embodiment of the application, after the terminal determines the target interference WiFi frequency band according to the currently camped cellular network frequency band, the terminal may further select the target AP based on the priority corresponding to the available AP and the target interference WiFi frequency band.
And 103, selecting a target AP from the available APs based on the priority corresponding to the available APs and the target interference WiFi frequency band.
In the embodiment of the application, after the terminal determines the target interference WiFi frequency band according to the frequency band of the currently residing cellular network, the terminal may further select the target AP from the currently available APs by combining the priority corresponding to the currently available AP and the target interference WiFi frequency band.
It should be noted that, in the embodiment of the present application, the target AP is an AP with a lower interference rate between a corresponding WiFi frequency band and a frequency band of a currently-residing cellular network.
Optionally, if both the WiFi frequency band corresponding to the currently available AP and the currently camped cellular network frequency band have interference, the target AP may be the AP with the highest priority in the available APs, so as to reduce the interference rate between the WiFi frequency band and the currently camped cellular network frequency band.
Optionally, if there is an AP in which the WiFi frequency band and the frequency band of the currently camped cellular network do not have harmonic interference, the target AP may be the AP in which no harmonic interference exists.
Specifically, in the embodiment of the present application, after the terminal detects and obtains the current available AP, the terminal may first obtain state information, such as signal strength, corresponding to the available AP; and then determining the priority corresponding to the current available AP according to the signal strength so as to select the target AP based on the priority and the target interference WiFi frequency band.
Further, after determining the priority corresponding to the available AP, the terminal may further generate an initial AP list based on the priority. To further select a target AP based on the initial AP list and a target interfering WiFi frequency band. Optionally, the initial AP list may be arranged in order from high priority to low priority, or may be arranged in order from low priority to high priority.
Specifically, in the embodiment of the present application, the terminal may execute the interference determination process of the available APs by combining the priority corresponding to the current available AP and the target interference WiFi frequency band, and further select the target AP from the current available APs; that is to say, the terminal may determine whether the WiFi frequency band corresponding to the AP belongs to the target interference WiFi frequency band according to the priority corresponding to the available AP, so as to further determine the target AP based on the determination result.
Further, in the embodiment of the present application, after the terminal selects the target AP from the currently available APs based on the priority of the currently available APs and the target interference WiFi frequency band, the terminal may further perform network access according to the target AP.
And step 104, performing wireless network access processing according to the target AP.
In the embodiment of the application, after the terminal selects the target AP from the available APs based on the priority corresponding to the currently available AP and the target interference WiFi frequency band, the terminal may further perform wireless network access processing according to the target AP.
It should be noted that, in the embodiment of the present application, after the terminal performs the wireless network access processing according to the target AP, the terminal is successfully connected to the target WiFi frequency band corresponding to the target AP, and at this time, the terminal is in a state where the cellular network frequency band and the target WiFi frequency band coexist.
It can be understood that, since the target WiFi frequency band corresponding to the target AP is a WiFi frequency band having a low interference rate with the currently residing cellular network frequency band, even no interference exists, when the cellular network frequency band coexists with the target WiFi frequency band, the risk of data transmission loss can be reduced to the greatest extent.
The embodiment of the application provides a network connection method, when a terminal resides in an available cellular network frequency band, if a WiFi starting instruction is received, the starting instruction is responded, and an available AP is detected; determining a target interference WiFi frequency band according to the available cellular network frequency band; selecting a target AP from the available APs based on the priority corresponding to the available APs and the target interference WiFi frequency band; and performing wireless network access processing according to the target AP. That is to say, in the embodiment of the present application, when the terminal already resides in the available cellular network frequency band, if a start instruction for WiFi network connection is received, the terminal may first respond to the start instruction to detect the current available AP, and after determining a target interference WiFi frequency band having harmonic interference with the resident cellular network frequency band according to the current resident cellular network frequency band, further select a target AP from the available AP by combining the priority of the current available AP and the target interference WiFi frequency band, and then perform wireless network access processing according to the target AP. Therefore, in the application, when the terminal is in the resident cellular network frequency band and is simultaneously ready to connect the WiFi network, the terminal can autonomously select a target AP with a low harmonic interference rate with the currently resident cellular network frequency band from the currently available APs, so as to perform WiFi network connection, reduce the probability of residing in the cellular network frequency band and the WiFi frequency band with harmonic interference, effectively solve the mutual interference problem of coexistence of the cellular network frequency band and the WiFi frequency band during network connection, achieve high data transmission rate, avoid the risk of information loss, and further improve terminal intelligence.
Based on the foregoing embodiment, in yet another embodiment of the present application, fig. 2 is a schematic diagram of an implementation flow of a network connection method provided in the embodiment of the present application, and as shown in fig. 2, in the embodiment of the present application, a method for a terminal to select a target AP from available APs based on a priority corresponding to the available AP and a target interference WiFi frequency band may include the following steps:
and 103a, sequencing the available APs according to the priorities corresponding to the available APs to generate an AP list.
And 103b, determining one AP with the highest priority in the AP list as the AP to be tested.
And 103c, judging whether the AP to be detected meets the preset network access condition or not according to the target interference WiFi frequency band.
In the embodiment of the application, after the terminal detects the available APs and determines the priorities corresponding to the available APs according to the state information, the terminal may first sort the available APs according to the priorities to generate an AP list, and first determine the available AP with the highest priority in the AP list as the AP to be detected, so as to further determine whether the AP to be detected meets the preset network access condition according to the target interference WiFi frequency band.
It should be noted that after determining the priority based on the state information and generating the AP list based on the priority, that is, after obtaining the initial AP list, the AP to be measured determined from the initial AP list is the first AP to be measured.
Optionally, in the embodiment of the present application, the terminal may perform descending order arrangement on the available APs according to the order from high priority to low priority, so as to obtain a descending order AP list, for example, a first AP in the AP list is a highest priority AP; the terminal can also perform ascending order arrangement on the available APs according to the sequence of the priority levels from low to high, so as to obtain a positive-order AP list, for example, a first AP in the AP list is a lowest-priority AP; this is not a particular limitation of the present application.
Further, after generating the AP list, the terminal may select an AP to be detected from the list, and then execute an interference determination procedure corresponding to the WiFi frequency band based on the AP to be detected; at this time, the AP to be measured is the AP corresponding to the highest priority.
It should be noted that, in the embodiment of the present application, the preset network access condition indicates that the WiFi frequency band corresponding to the AP does not have harmonic interference with the frequency band of the currently-residing cellular network.
Specifically, when the terminal judges whether the AP to be detected meets the preset network access condition according to the target interference WiFi frequency band, the terminal may acquire the WiFi frequency band corresponding to the AP to be detected, and if the WiFi frequency band does not belong to the target interference WiFi frequency band, it indicates that the AP to be detected meets the preset network access condition; that is to say, when the terminal resides in the frequency band of the current cellular network and accesses the WiFi frequency band corresponding to the AP to be tested, no harmonic interference exists.
On the other hand, if the WiFi frequency band belongs to the target interference WiFi frequency band, it is indicated that the AP to be tested does not meet the preset network access condition; that is to say, when the terminal resides in the frequency band of the current cellular network and accesses the WiFi frequency band corresponding to the AP to be tested, harmonic interference exists.
Further, in the embodiment of the application, after the terminal determines whether the AP to be detected meets the preset network access condition according to the target interference WiFi frequency band, the terminal may further determine the target AP based on the determination result.
And 103d, if the preset network access condition is judged to be met, determining the AP to be tested as the target AP.
In the embodiment of the application, after the terminal judges whether the AP to be detected meets the preset network access condition according to the target interference WiFi frequency band, if the preset network access condition is determined to be met, the terminal directly determines the current AP to be detected as the target AP.
It should be noted that, in the embodiment of the present application, if it is determined that the AP to be tested satisfies the preset network access condition, it is indicated that the WiFi frequency band corresponding to the AP to be tested and the currently residing cellular network frequency band do not generate harmonic interference, because the AP to be tested at this time is the highest priority AP, even though an AP corresponding to the WiFi frequency band and the currently residing cellular network frequency band may exist in an AP with a lower priority, the terminal does not need to perform selection processing of the AP to be tested, and does not need to determine whether the remaining available APs satisfy the preset network access condition, the AP to be tested can be directly determined as the target AP, and network access is performed according to the target AP.
The embodiment of the application provides a network connection method, a terminal can combine the priority of available APs and a target interference WiFi frequency band corresponding to a current resident cellular network frequency band, and a target AP which does not have harmonic interference with the current resident cellular network frequency band is selected from the current available APs, so that WiFi network connection is performed, the probability of residing in the cellular network frequency band and the WiFi frequency band with harmonic interference at the same time is reduced, the problem of mutual interference of the cellular network frequency band and the WiFi frequency band in coexistence during network connection is effectively solved, the data transmission rate is high, the risk of information loss is avoided, and the terminal intelligence is further improved. And selecting a target AP with lower interference probability.
Further, based on the foregoing embodiment, in yet another embodiment of the present application, fig. 3 is a schematic flow chart illustrating an implementation process of the network connection method provided in the embodiment of the present application, and as shown in fig. 3, in the embodiment of the present application, after the terminal determines, based on the priority corresponding to the available AP and the target interference WiFi frequency band, whether the AP to be detected satisfies the preset network access condition according to the target interference WiFi frequency band in a process of selecting the target AP from the available APs, that is, after step 103c, the method for the terminal to perform network connection may further include the following steps:
and 103e, if the preset network access condition is judged not to be met, setting the next AP behind the AP to be tested in the AP list as the next AP to be tested.
In the embodiment of the application, after the terminal judges whether the AP to be detected meets the preset network access condition according to the target interference WiFi frequency band, if the terminal judges that the AP to be detected does not meet the preset network access condition, the terminal may determine a next available AP after the AP to be detected in the AP list as a next AP to be detected.
It should be noted that, in the embodiment of the present application, if it is determined that the AP to be tested does not satisfy the preset network access condition, that is, it indicates that the WiFi frequency band corresponding to the AP to be tested will generate harmonic interference with the frequency band of the currently residing cellular network, the terminal may continue to select the next AP to be tested from the remaining available APs except the current AP to be tested.
Optionally, in the embodiment of the present application, when the terminal performs the selection processing of the next AP to be tested based on the remaining available APs, the terminal may select the next AP to be tested according to the priority order of the available APs in the fixed initial AP list; the terminal can also update the initial AP list, and the next AP to be tested is determined based on the updated list.
Specifically, after determining that the current AP to be measured does not satisfy the preset network access condition, the terminal may directly determine, in the AP list, a next available AP after the current AP to be measured as a next AP to be measured.
For example, assuming that the highest priority in the AP list corresponds to the first priority, and then sequentially the highest priority and the third priority are …, and so on, after the terminal determines that the first priority AP, that is, AP1, belongs to the target interference WiFi frequency band, the terminal may continue to determine the second priority AP, that is, AP2, as the next AP to be detected, and continue to execute the interference determination procedure corresponding to the WiFi frequency band based on the next AP to be detected until it is determined that a certain AP satisfies the preset network access condition and does not belong to the target interference WiFi frequency band list corresponding to the currently-residing cellular network frequency band.
Therefore, when the terminal selects the next AP to be detected according to the priority order of the available APs in the fixed and unchangeable AP list, the AP to be detected is always the AP corresponding to the highest priority among the remaining available APs except the AP which has already executed the interference judgment process and is confirmed to belong to the target interference WiFi frequency band.
Specifically, after determining that the current AP to be measured does not satisfy the preset network access condition, the terminal may update the priority of the current AP list based on the current AP to be measured, that is, the terminal changes the priority corresponding to the current AP to be measured from the highest priority to the lowest priority in the updated AP list, and meanwhile, the priorities corresponding to the other available APs are sequentially increased, that is, the current (i +1) th priority of the other available APs is determined as the ith priority in the updated AP list, and then the available AP corresponding to the highest priority in the updated AP list is continuously determined as the next AP to be measured. That is, the terminal sets the next AP in the current AP list after the AP to be tested as the AP corresponding to the highest priority in the updated AP list, and then sets the next AP to be tested.
For example, assuming that there are n available APs in the AP list, the highest priority corresponds to the first priority, and then the first priority and the third priority are …, the nth priority in sequence, after the terminal determines that the first priority AP, that is, AP1 belongs to the target interference WiFi frequency band, the terminal may perform priority update processing, and the terminal determines the current AP to be detected as the nth priority in the updated AP list from the first priority; meanwhile, the current second priority AP is determined as the first priority AP in the updated AP list, the current third priority AP is determined as the second priority AP in the updated AP list, …, and the current nth priority is determined as the (n-1) th priority in the updated AP list.
And obviously, the terminal updates the AP list, and when the next AP to be tested is determined based on the updated list, the AP to be tested is always the AP corresponding to the highest priority in the updated AP list.
Further, in the embodiment of the application, after the terminal determines to obtain the next AP to be tested, the terminal may continue to determine the target AP according to the next AP to be tested and the target interference WiFi frequency band.
And 103f, determining a target AP according to the next AP to be detected and the target interference WiFi frequency band.
In the embodiment of the application, after the terminal determines to obtain the next AP to be detected, the terminal may determine the target AP according to the next AP to be detected and the target interference WiFi frequency band.
Specifically, in the embodiment of the application, after the terminal determines the next AP to be detected, the terminal may continue to determine whether the next AP to be detected meets the preset network access condition according to the target WiFi frequency band. If the next AP to be tested meets the preset network access condition, the terminal directly determines the next AP to be tested as a target AP and performs network connection; and if the next AP to be tested does not meet the preset network access condition, the terminal continues to select the next AP to be tested.
Specifically, when the selection of the AP to be tested is realized by the fixed AP list, after the terminal determines that the next AP to be tested does not satisfy the preset network access condition, the terminal may continue to determine the next available AP after the next AP to be tested as the next AP to be tested until it is determined that the AP to be tested satisfies the preset network access condition.
Specifically, when performing the AP list updating process and performing the selection process of the AP to be detected based on the updated AP list, if it is determined that the next AP to be detected does not satisfy the preset network access condition, the terminal continues to update the AP list, determines the next AP to be detected from the current highest priority as the lowest priority in the updated AP list, and continues to determine the next available AP after the current AP to be detected as the next AP to be detected until the mth AP to be detected, that is, the available AP corresponding to the highest priority in a certain updated AP list satisfies the preset network access condition, that is, the WiFi frequency band corresponding to the mth AP to be detected no longer belongs to the target interference WiFi frequency band, and at this time, the terminal ends the interference determination process of the available APs, can directly determine the mth AP to be detected as the target AP, and performs the network connection; wherein, M may be smaller than the number of available APs, or M may be equal to the number of available APs.
Obviously, if the current AP to be detected does not meet the preset network access condition, the terminal may continue to sequentially select the APs to be detected based on the priorities corresponding to the available APs in the AP list until a certain AP to be detected no longer belongs to the target interference WiFi frequency band, and at this time, the terminal ends the interference judgment process of the available APs, determines the current AP to be detected as the target AP, and performs network connection.
The embodiment of the application provides a network connection method, a terminal can combine the priority of available APs and a target interference WiFi frequency band corresponding to a current resident cellular network frequency band, and a target AP which does not have harmonic interference with the current resident cellular network frequency band is selected from the current available APs, so that WiFi network connection is performed, the probability of residing in the cellular network frequency band and the WiFi frequency band with harmonic interference at the same time is reduced, the problem of mutual interference of the cellular network frequency band and the WiFi frequency band in coexistence during network connection is effectively solved, the data transmission rate is high, the risk of information loss is avoided, and the terminal intelligence is further improved. And selecting a target AP with lower interference probability.
Further, based on the foregoing embodiment, in yet another embodiment of the present application, fig. 4 is a schematic diagram of an implementation flow of a network connection method provided in the embodiment of the present application, and as shown in fig. 4, in the embodiment of the present application, a method for a terminal to select a target AP from available APs based on a priority corresponding to the available AP and a target interference WiFi frequency band may further include the following steps:
and 103g, if the WiFi frequency bands corresponding to the available APs all belong to the target interference WiFi frequency bands, determining the AP corresponding to the highest priority in the current available APs as the target AP.
It can be understood that, in the embodiment of the present application, if the terminal traverses all available APs and determines that WiFi frequency bands corresponding to all available APs all belong to the target interference WiFi frequency band, the terminal may select an AP with a lower interference rate from the available APs as the target AP. Specifically, the AP corresponding to the highest priority among the available APs may be determined as the target AP.
Optionally, in an embodiment of the present application, if the terminal further selects the AP to be detected through the update processing of the AP list, the terminal may preset a counter, initialize the counter while detecting the available AP and determining the target WiFi frequency band, and update the current AP list, where the terminal may update the number of times of updating the priority synchronously by using the counter, and when the number of times of updating the priority is equal to the number of available APs, it indicates that the terminal has traversed all available APs currently, and at this time, the terminal may determine that the WiFi frequency bands corresponding to all available APs all belong to the target interference WiFi frequency band.
Further, the terminal may obtain a final priority corresponding to the available APs, that is, when the number of updates is accumulated to n, the final updated priority corresponding to the available APs, and determine the AP corresponding to the highest priority in the final updated priority as the target AP.
As can be seen from steps 103e to 103f, in the process of updating the AP list, the terminal continuously resets the AP corresponding to the highest priority in the AP list before updating to the AP corresponding to the lowest priority in the updated AP list, and sequentially raises the priority levels of other APs, so that after traversing all available APs, the finally obtained updated AP list is equal to the initial AP list in step 103a, that is, the initial AP list is further generated according to the state information at the beginning, and at this time, the terminal can select to determine the updated highest priority AP in the finally updated AP list, which is equal to the highest priority AP in the initial AP list, as the target AP.
Optionally, in an embodiment of the present application, if the terminal implements selection of the AP to be detected according to the fixed initial AP list, when the terminal traverses all available APs, it is determined that WiFi frequency bands corresponding to all available APs all belong to the target interference WiFi frequency band. At this time, the terminal may directly determine the highest priority AP in the initial AP list as the target AP.
For example, if the AP list is prioritized by signal strength, if all available APs are determined to belong to the target interfering WiFi frequency band, the terminal may directly determine the AP with the highest signal strength as the target AP.
The embodiment of the application provides a network connection method, when a terminal traverses all available APs and determines that all available APs belong to a target interference WiFi frequency band, the terminal can select the AP corresponding to the highest priority from the priorities corresponding to the current available APs to determine the AP as the target AP, the interference rate is low, so that WiFi network connection is performed, the risk of information loss is reduced to the maximum extent, and the terminal intelligence is further improved.
Based on the foregoing embodiment, in a further embodiment of the present application, fig. 5 is a schematic flow chart of an implementation process of a network connection method provided in the embodiment of the present application, as shown in fig. 5, in the embodiment of the present application, a method for a terminal to perform network connection may include the following steps:
step 201, when residing to the available cellular network frequency band, if receiving a start instruction of WiFi, responding to the start instruction, and detecting N available APs.
Specifically, if the terminal receives a WiFi connection start instruction while residing in the cellular network frequency band, it indicates that the terminal will simultaneously access the cellular network frequency band and a WiFi frequency band corresponding to a certain available AP, and the terminal will face a situation where the cellular network frequency band and the WiFi frequency band coexist. At this time, the terminal may respond to the WiFi start instruction first, and detect to obtain the currently available AP; wherein N is an integer greater than 1.
Step 202, determining a target interference WiFi frequency band according to an available cellular network frequency band.
Specifically, the terminal may establish a corresponding relationship between the frequency band of the cellular network and the interference WiFi frequency band in which harmonic interference exists in advance, and then determine a target interference WiFi frequency band corresponding to the frequency band of the cellular network currently residing according to the available cellular network frequency band currently residing and the corresponding relationship between the frequency band of the cellular network and the interference WiFi frequency band established in advance.
Step 203, obtaining the state information corresponding to the N available APs, and determining the priority corresponding to the N available APs according to the state information.
Specifically, after the terminal detects the current available AP, the terminal may first obtain state information, such as signal strength, corresponding to the available AP; and determining the priority corresponding to the currently available AP according to the signal strength.
And step 204, sequencing the available APs according to the priorities corresponding to the N available APs to generate an AP list.
Step 205, selecting an AP to be tested; and the AP to be detected is the AP corresponding to the highest priority.
Specifically, the terminal may perform ranking processing on the available APs based on the priority to generate an AP list, and then determine the AP corresponding to the highest priority in the AP list as the AP to be tested.
Step 206, judging whether the updating times corresponding to the AP list are equal to N; if not, go to step 207, and if it is, go to step 208.
Specifically, if the number of updates corresponding to the AP list is equal to N, it indicates that the terminal has traversed all available APs, and all available APs all belong to the target interference WiFi frequency band, at this time, the terminal skips to execute step 208; specifically, if the number of updates corresponding to the AP list is not equal to N (smaller than N), it indicates that the terminal needs to continue to perform step 207; and judging whether the current AP to be detected meets the preset network access condition.
Step 207, judging whether the AP to be detected meets a preset network access condition or not according to the target interference WiFi frequency band; if yes, go to step 208, and if not, go to step 209.
Specifically, if the WiFi frequency band corresponding to the AP to be tested belongs to the target interference WiFi frequency band, it is determined that the AP to be tested does not satisfy the preset network access condition, and the terminal skips to execute step 209; if the WiFi frequency band corresponding to the AP to be tested does not belong to the target interference WiFi frequency band, it is determined that the AP to be tested satisfies the preset network access condition, and the terminal continues to execute step 208.
And step 208, determining the AP to be tested as a target AP, and performing network connection.
And step 209, updating the AP list to obtain an updated AP list.
Specifically, if the preset network access condition is not met, the terminal determines the highest priority of the AP to be tested in the current AP list as the lowest priority in the updated AP list, and updates the (i +1) th priority of other (N-1) available APs as the ith priority; wherein i ═ is (1, 2, …, N-1).
Further, after the terminal performs step 209, the terminal jumps to perform step 205, and continues to perform the selection processing of the AP to be tested based on the updated AP list, that is, continues to select the AP corresponding to the highest priority from the updated AP list as the next AP to be tested.
Based on the network connection method proposed in the foregoing steps 201 to 209, when the terminal is in the resident cellular network frequency band and is simultaneously ready to connect to the WiFi network, the terminal may combine the priority corresponding to the currently available AP and the target interference WiFi frequency band corresponding to the resident cellular network frequency band, and autonomously select a target AP from the currently available AP, which has a lower harmonic interference rate with the currently resident cellular network frequency band or even has no interference, so as to perform WiFi network connection, thereby further reducing the probability of residing in both the cellular network frequency band with harmonic interference and the WiFi frequency band.
For example, fig. 6 is a schematic diagram of a network connection processing process provided in the embodiment of the present application, as shown in fig. 6, when a terminal already resides in an available cellular network frequency band, if a WiFi start instruction is received, the terminal may respond to the start instruction to detect n currently available APs (step S01), and then the terminal may determine m target interference WiFi frequency bands with which harmonic interference exists according to the currently residing cellular network frequency band, to obtain an interference WiFi frequency band a ═ a1, a2, …, am ], and initialize an update counter value d to 0 (step S02); further, the terminal determines the priority corresponding to the currently available AP according to the signal strength, and performs priority descending processing to obtain an AP list B ═ AP1, AP2, …, APn ]; here, AP1 represents the highest priority AP, and APn represents the lowest priority AP (step S03). Then, the terminal selects the AP to be tested, and determines the AP1 corresponding to the highest priority in the AP list as the AP to be tested (step S04); then the terminal first judges whether the value d of the update counter is equal to n (step S05); if n, determining the AP1 in the current AP list as the target AP and performing network connection (step S07); if not, it is continuously determined whether the current AP1 belongs to the target interference WiFi band (step S06).
If the determination result is that the AP1 in the current AP list is not the target AP, the terminal directly determines the AP1 in the current AP list as the target AP and performs network access (step S07).
If the judgment result is that the current AP belongs to the AP list, the terminal updates the current AP list, determines the original highest-priority AP1 as the lowest-priority APn in the updated AP list, and then updates the priorities corresponding to the rest (n-1) APs from the (i +1) th priority to the ith priority, wherein i is (1, 2, …, n-1); the value of the counter d is updated at the same time.
Specifically, the terminal may update the priority corresponding to the available AP and the value of the counter by executing a preset code. Illustratively, the code of the update process may be:
APtemp=AP1
APi=AP(i+1),k=(1,2,…,n-1)
APn=APtemp
d=d+1
the AP1 immediately before update is determined to be the updated APn, the AP2 before update is determined to be the updated APs 1 and …, and so on, and the AP (i +1) before update is determined to be the updated APi (step S08).
Further, the terminal jumps to execute step S04, and continues to determine whether the value d of the update counter is equal to n, and if so, executes step S07; if not, step S06 is executed until the highest priority AP1 not belonging to the target interfering WiFi frequency band is determined from the current AP list.
The embodiment of the application provides a network connection method, when a terminal resides in an available cellular network frequency band, if a starting instruction for WiFi network connection is received, the terminal can respond to the starting instruction to detect a current available AP, and after a target interference WiFi frequency band with harmonic interference with the resident cellular network frequency band is determined according to the current resident cellular network frequency band, a target AP is further selected from the available AP by combining the priority of the current available AP and the target interference WiFi frequency band, and then wireless network access processing is carried out according to the target AP. Therefore, in the application, when the terminal is in the resident cellular network frequency band and is simultaneously ready to connect the WiFi network, the terminal can autonomously select a target AP with a low harmonic interference rate with the currently resident cellular network frequency band from the currently available APs, so as to perform WiFi network connection, reduce the probability of residing in the cellular network frequency band and the WiFi frequency band with harmonic interference, effectively solve the mutual interference problem of coexistence of the cellular network frequency band and the WiFi frequency band during network connection, achieve high data transmission rate, avoid the risk of information loss, and further improve terminal intelligence.
Based on the foregoing embodiments, in another embodiment of the present application, fig. 7 is a schematic diagram of a composition structure of a terminal provided in the present application, and as shown in fig. 7, a terminal 10 provided in the present application may include a detecting unit 11, a determining unit 12, a selecting unit 13, an accessing unit 14, an establishing unit 15, and an obtaining unit 16,
the detection unit 11 is configured to, when residing in an available cellular network frequency band, respond to a start instruction of WiFi if the start instruction is received, and detect an available AP;
the determining unit 12 is configured to determine a target interference WiFi frequency band according to the available cellular network frequency band;
the selecting unit 13 is configured to select a target AP from the available APs based on the priority corresponding to the available AP and the target interference WiFi frequency band;
the access unit 14 is configured to perform wireless network access processing according to the target AP.
Further, in an embodiment of the present application, the establishing unit 15 is configured to establish a correspondence between a cellular network frequency band and an interference WiFi frequency band before determining a target interference WiFi frequency band according to the available cellular network frequency band.
Further, in an embodiment of the present application, the determining unit 12 is specifically configured to determine, according to the available cellular network frequency band and a correspondence between the cellular network frequency band and an interference WiFi frequency band, a target interference WiFi frequency band corresponding to the available cellular network frequency band.
Further, in this embodiment of the application, the obtaining unit 16 is configured to obtain the status information corresponding to the available AP before selecting a target AP from the available APs based on the priority corresponding to the available AP and the target interference WiFi frequency band.
Further, in the embodiment of the present application, the determining unit 12 is further configured to determine the priority according to the status information.
Further, in an embodiment of the present application, the selecting unit 13 is specifically configured to perform sorting processing on the available APs according to the priority, and generate an AP list; determining one AP with the highest priority in the AP list as an AP to be tested; judging whether the AP to be tested meets a preset network access condition or not according to the target interference WiFi frequency band; and if the preset network access condition is judged to be met, determining the AP to be tested as the target AP.
Further, in an embodiment of the present application, the determining unit 12 is further specifically configured to, after determining whether the AP to be tested satisfies a preset network access condition according to the target interference WiFi frequency band, if it is determined that the preset network access condition is not satisfied, set a next AP in the AP list after the AP to be tested as a next AP to be tested; and determining a target AP according to the next AP to be detected and the target interference WiFi frequency band.
Further, in an embodiment of the present application, the determining unit 12 is further specifically configured to determine that the preset network access condition is not satisfied if the WiFi frequency band corresponding to the AP to be tested belongs to the target interference WiFi frequency band; and if the WiFi frequency band corresponding to the AP to be tested does not belong to the target interference WiFi frequency band, judging that the preset network access condition is met.
Further, in this embodiment of the application, the determining unit 12 is further specifically configured to determine, as the target AP, an AP corresponding to a highest priority among the available APs if all WiFi frequency bands corresponding to the available APs belong to the target interference WiFi frequency band.
In the embodiment of the present application, further, fig. 8 is a schematic diagram of a terminal composition structure provided in the embodiment of the present application, and as shown in fig. 8, the terminal 10 provided in the embodiment of the present application may further include a processor 17, a memory 18 storing instructions executable by the processor 17, and further, the terminal 10 may further include a communication interface 19, and a bus 110 for connecting the processor 17, the memory 18, and the communication interface 19.
In an embodiment of the present Application, the Processor 17 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a ProgRAMmable Logic Device (PLD), a Field ProgRAMmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular. The terminal 10 may further comprise a memory 18, which memory 18 may be connected to the processor 17, wherein the memory 18 is adapted to store executable program code comprising computer operating instructions, and wherein the memory 18 may comprise a high speed RAM memory and may further comprise a non-volatile memory, such as at least two disk memories.
In the embodiment of the present application, the bus 110 is used to connect the communication interface 19, the processor 17, and the memory 18 and the intercommunication among these devices.
In an embodiment of the present application, the memory 18 is used for storing instructions and data.
Further, in an embodiment of the present application, the processor 17 is configured to, when residing to an available cellular network frequency band, respond to a start instruction of WiFi if the start instruction is received, and detect an available AP; determining a target interference WiFi frequency band according to the available cellular network frequency band; selecting a target AP from the available APs based on the corresponding priority of the available APs and the target interference WiFi frequency band; and performing wireless network access processing according to the target AP.
In practical applications, the Memory 18 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 17.
In addition, each functional module in this embodiment 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 or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiment of the application provides a terminal, wherein when the terminal resides in an available cellular network frequency band, if a WiFi starting instruction is received, the WiFi starting instruction is responded, and an available AP is detected; determining a target interference WiFi frequency band according to the available cellular network frequency band; selecting a target AP from the available APs based on the priority corresponding to the available APs and the target interference WiFi frequency band; and performing wireless network access processing according to the target AP. That is to say, in the embodiment of the present application, when the terminal already resides in the available cellular network frequency band, if a start instruction for WiFi network connection is received, the terminal may first respond to the start instruction to detect the current available AP, and after determining a target interference WiFi frequency band having harmonic interference with the resident cellular network frequency band according to the current resident cellular network frequency band, further select a target AP from the available AP by combining the priority of the current available AP and the target interference WiFi frequency band, and then perform wireless network access processing according to the target AP. Therefore, in the application, when the terminal is in the resident cellular network frequency band and is simultaneously ready to connect the WiFi network, the terminal can autonomously select a target AP with a low harmonic interference rate with the currently resident cellular network frequency band from the currently available APs, so as to perform WiFi network connection, reduce the probability of residing in the cellular network frequency band and the WiFi frequency band with harmonic interference, effectively solve the mutual interference problem of coexistence of the cellular network frequency band and the WiFi frequency band during network connection, achieve high data transmission rate, avoid the risk of information loss, and further improve terminal intelligence.
An embodiment of the present application provides a computer-readable storage medium, on which a program is stored, which when executed by a processor implements the network connection method as described above.
Specifically, the program instructions corresponding to a network connection method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the program instructions corresponding to a network connection method in the storage medium are read or executed by an electronic device, the method includes the following steps:
when residing to the frequency band of the available cellular network, if a starting instruction of WiFi is received, responding to the starting instruction, and detecting the available AP;
determining a target interference WiFi frequency band according to the available cellular network frequency band;
selecting a target AP from the available APs based on the corresponding priority of the available APs and the target interference WiFi frequency band;
and performing wireless network access processing according to the target AP.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of implementations of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks in the flowchart and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (11)

1. A method of network connectivity, the method comprising:
when residing to the frequency band of the available cellular network, if a starting instruction of wireless Internet WiFi is received, responding to the starting instruction, and detecting an available wireless access point AP;
determining a target interference WiFi frequency band according to the available cellular network frequency band;
selecting a target AP from the available APs based on the corresponding priority of the available APs and the target interference WiFi frequency band;
and performing wireless network access processing according to the target AP.
2. The method of claim 1, wherein prior to determining a target interfering WiFi band based on the available cellular network bands, the method further comprises:
and establishing a corresponding relation between the frequency band of the cellular network and the interference WiFi frequency band.
3. The method of claim 2, wherein the determining a target interference WiFi band based on the available cellular network bands comprises:
and determining a target interference WiFi frequency band corresponding to the available cellular network frequency band according to the available cellular network frequency band and the corresponding relation between the cellular network frequency band and the interference WiFi frequency band.
4. The method of claim 1, wherein before the selecting the target AP from the available APs based on the priorities of the available APs and the target interfering WiFi bands, the method further comprises:
acquiring state information corresponding to the available AP;
and determining the priority according to the state information.
5. The method of claim 4, wherein the selecting a target AP from the available APs based on the priorities of the available APs and the target interfering WiFi band comprises:
sequencing the available APs according to the priority to generate an AP list;
determining one AP with the highest priority in the AP list as an AP to be tested;
judging whether the AP to be tested meets a preset network access condition or not according to the target interference WiFi frequency band;
and if the preset network access condition is judged to be met, determining the AP to be tested as the target AP.
6. The method according to claim 5, wherein after determining whether the AP to be tested satisfies a preset network access condition according to the target interference WiFi frequency band, the method further comprises:
if the preset network access condition is judged not to be met, setting the next AP behind the AP to be tested in the AP list as the next AP to be tested;
and determining a target AP according to the next AP to be detected and the target interference WiFi frequency band.
7. The method according to claim 5, wherein the determining whether the AP to be tested satisfies a preset network access condition according to the target interference WiFi frequency band comprises:
if the WiFi frequency band corresponding to the AP to be tested belongs to the target interference WiFi frequency band, judging that the preset network access condition is not met;
and if the WiFi frequency band corresponding to the AP to be tested does not belong to the target interference WiFi frequency band, judging that the preset network access condition is met.
8. The method of claim 1, wherein the selecting a target AP from the available APs based on the priorities of the available APs and the target interfering WiFi band comprises:
and if the WiFi frequency bands corresponding to the available APs all belong to the target interference WiFi frequency band, determining one AP corresponding to the highest priority in the available APs as the target AP.
9. A terminal, characterized in that the terminal comprises: a detection unit, a determination unit, a selection unit and an access unit,
the detection unit is used for responding to a starting instruction and detecting an available AP if the starting instruction of WiFi is received when the mobile terminal resides in an available cellular network frequency band;
the determining unit is used for determining a target interference WiFi frequency band according to the available cellular network frequency band;
the selecting unit is configured to select a target AP from the available APs based on the priority corresponding to the available AP and the target interference WiFi frequency band;
and the access unit is used for performing wireless network access processing according to the target AP.
10. A terminal, characterized in that the terminal comprises a processor, a memory storing instructions executable by the processor, which instructions, when executed by the processor, implement the method according to any of claims 1-8.
11. A computer-readable storage medium, on which a program is stored, for use in a terminal, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-8.
CN202011138637.9A 2020-10-22 2020-10-22 Network connection method, terminal and computer storage medium Pending CN112165728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011138637.9A CN112165728A (en) 2020-10-22 2020-10-22 Network connection method, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011138637.9A CN112165728A (en) 2020-10-22 2020-10-22 Network connection method, terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN112165728A true CN112165728A (en) 2021-01-01

Family

ID=73864571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011138637.9A Pending CN112165728A (en) 2020-10-22 2020-10-22 Network connection method, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN112165728A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150063323A1 (en) * 2013-09-04 2015-03-05 Qualcomm Incorporated Channel selection to reduce interference to a wireless local area network from a cellular network
CN104796965A (en) * 2015-03-19 2015-07-22 四川长虹电器股份有限公司 Method for controlling AP connection priority under WiFi environment
WO2016101111A1 (en) * 2014-12-22 2016-06-30 华为技术有限公司 Method and apparatus for reducing interference between wifi and lte
US20170063484A1 (en) * 2015-08-28 2017-03-02 Qualcomm Incorporated Techniques for performing carrier sense adaptive transmission in unlicensed spectrum
CN106658652A (en) * 2016-12-07 2017-05-10 广东欧珀移动通信有限公司 WiFi hotspot connecting method and device
CN108430094A (en) * 2018-04-20 2018-08-21 Oppo广东移动通信有限公司 Reduce method, apparatus and terminal that WIFI and LTE is interfered with each other
CN108712766A (en) * 2018-05-28 2018-10-26 维沃移动通信有限公司 A kind of communication port selection method and mobile terminal
US20190200236A1 (en) * 2017-11-01 2019-06-27 Apple Inc. Avoiding Interference Between Hotspot Service and LTE Unlicensed Cellular Operation
CN110418417A (en) * 2019-08-08 2019-11-05 普联技术有限公司 Reduce the method, apparatus and storage medium of mutual interference in equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150063323A1 (en) * 2013-09-04 2015-03-05 Qualcomm Incorporated Channel selection to reduce interference to a wireless local area network from a cellular network
WO2016101111A1 (en) * 2014-12-22 2016-06-30 华为技术有限公司 Method and apparatus for reducing interference between wifi and lte
CN104796965A (en) * 2015-03-19 2015-07-22 四川长虹电器股份有限公司 Method for controlling AP connection priority under WiFi environment
US20170063484A1 (en) * 2015-08-28 2017-03-02 Qualcomm Incorporated Techniques for performing carrier sense adaptive transmission in unlicensed spectrum
CN106658652A (en) * 2016-12-07 2017-05-10 广东欧珀移动通信有限公司 WiFi hotspot connecting method and device
US20190200236A1 (en) * 2017-11-01 2019-06-27 Apple Inc. Avoiding Interference Between Hotspot Service and LTE Unlicensed Cellular Operation
CN108430094A (en) * 2018-04-20 2018-08-21 Oppo广东移动通信有限公司 Reduce method, apparatus and terminal that WIFI and LTE is interfered with each other
CN108712766A (en) * 2018-05-28 2018-10-26 维沃移动通信有限公司 A kind of communication port selection method and mobile terminal
CN110418417A (en) * 2019-08-08 2019-11-05 普联技术有限公司 Reduce the method, apparatus and storage medium of mutual interference in equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
SHWETA SAGARI;AKASH BAID,ETC.: "Performance evaluation of mobile hotspots in densely deployed WLAN environments", 《2013 IEEE 24TH ANNUAL INTERNATIONAL SYMPOSIUM ON PERSONAL, INDOOR, AND MOBILE RADIO COMMUNICATIONS (PIMRC)》 *
SHWETA SAGARI;AKASH BAID,ETC.: "Performance evaluation of mobile hotspots in densely deployed WLAN environments", 《2013 IEEE 24TH ANNUAL INTERNATIONAL SYMPOSIUM ON PERSONAL, INDOOR, AND MOBILE RADIO COMMUNICATIONS (PIMRC)》, 18 November 2013 (2013-11-18), pages 2935 *
俞悦: "WiFi和LTE在非授权频段的共存优化研究", 《CNKI 信息科技》 *
俞悦: "WiFi和LTE在非授权频段的共存优化研究", 《CNKI 信息科技》, 15 February 2020 (2020-02-15) *

Similar Documents

Publication Publication Date Title
CN109644436B (en) Resource sharing method and terminal equipment
US10834703B2 (en) Resource selection method and terminal device
JP7048603B2 (en) Measurement method, terminal equipment and network equipment
CN108366403B (en) Network switching method, device, terminal and storage medium
CN111277974B (en) Carrier selection method and communication equipment
CN111404814B (en) Data transmission method and communication device
WO2004004227A1 (en) Load balancing in wireless communication network
CN109479300B (en) Information transmission method, network equipment and terminal equipment
CN111988820B (en) Cell reselection control method and device
CN105517076A (en) Cell reselection method and device for mobile terminal
JP2020533921A5 (en)
CN108243484B (en) Access method, access point AP and station STA in wireless local area network
JP6731540B2 (en) Wireless communication method, base station, and terminal device based on unlicensed band
CN113890696A (en) Method and device for determining side link auxiliary information and electronic equipment
WO2015081540A1 (en) Redirection method, device and system
EP2926585A1 (en) Selecting among spectrums within cells of a wireless communication network
CN111107535B (en) Home network reselection method and related device
JP4976559B2 (en) Method, apparatus, and computer program for configuring a network by dynamically utilizing channel bandwidth to provide support and power saving for legacy equipment
CN115243330A (en) Method, terminal and storage medium for automatically switching WiFi and cellular network
CN111132352B (en) Channel control method of WLAN antenna and mobile terminal
CN111526255B (en) Voice communication method, device, terminal and storage medium
CN110267346B (en) Communication method, device and storage medium
CN112165728A (en) Network connection method, terminal and computer storage medium
CN110741708B (en) Method for selecting carrier in D2D communication and terminal equipment
CN111314939B (en) Voice communication method, device, terminal and storage medium

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