CN110493779B - Wireless network connection method and related device - Google Patents

Wireless network connection method and related device Download PDF

Info

Publication number
CN110493779B
CN110493779B CN201910785902.3A CN201910785902A CN110493779B CN 110493779 B CN110493779 B CN 110493779B CN 201910785902 A CN201910785902 A CN 201910785902A CN 110493779 B CN110493779 B CN 110493779B
Authority
CN
China
Prior art keywords
wireless network
network interface
wifi
network
wifi network
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
CN201910785902.3A
Other languages
Chinese (zh)
Other versions
CN110493779A (en
Inventor
林进全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910785902.3A priority Critical patent/CN110493779B/en
Publication of CN110493779A publication Critical patent/CN110493779A/en
Priority to PCT/CN2020/102114 priority patent/WO2021036558A1/en
Application granted granted Critical
Publication of CN110493779B publication Critical patent/CN110493779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The embodiment of the application discloses a wireless network connection method and a related device, wherein the method comprises the following steps: when detecting that a wireless network associated with a second WiFi network interface needs login authentication, acquiring a wireless network list corresponding to the second WiFi network interface; detecting whether a wireless network which does not need login authentication exists in a wireless network list in a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network through the authentication window, and when the authentication information is detected to be correct, finishing an association process by the access point AP equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within a preset time period. The embodiment of the application is beneficial to reducing the operation time of the user when the user is connected with the network, and the flexibility of the mobile terminal when the mobile terminal is connected with the wireless network is improved.

Description

Wireless network connection method and related device
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a connection method for a wireless network and a related device.
Background
With the progress of electronic technology, more and more life scenes are provided with WiFi networks at present, the coverage area of the WiFi networks is larger and larger, and convenience of users in using the wireless networks is greatly facilitated. When a user turns on a switch of a WiFi network of the mobile terminal, the mobile terminal can select a wireless network with better network quality to connect, an authentication window pops up under the condition that the connected wireless network needs to log in authentication, authentication information is received through the authentication window, and association operation with the wireless network is completed under the condition that the authentication information is detected to be correct, so that the user can use the Internet through the currently connected wireless network.
Disclosure of Invention
The embodiment of the application provides a wireless network connection method and a related device, which are beneficial to reducing the operation time of a user in the network connection process and improving the flexibility of a mobile terminal in the wireless network connection process.
In a first aspect, an embodiment of the present application provides a connection method for a wireless network, which is applied to a mobile terminal supporting a dual-wireless high-fidelity WiFi function, and the method includes:
when the fact that the wireless network associated with the second WiFi network interface needs login authentication is detected, a wireless network list corresponding to the second WiFi network interface is obtained, wherein the wireless network list is composed of at least one wireless network scanned through the second WiFi network interface; detecting whether a wireless network which does not need login authentication exists in the wireless network list within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process with Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within the preset time period.
In a second aspect, the present invention provides a connection device for a wireless network, which is applied to a mobile terminal supporting dual wireless high fidelity WiFi function, the connection device for the wireless network includes a processing unit and a communication unit, wherein,
the processing unit is configured to, when it is detected that a wireless network associated with the second WiFi network interface needs login authentication through the communication unit, obtain a wireless network list corresponding to the second WiFi network interface through the communication unit, where the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface; detecting whether a wireless network which does not need login authentication exists in the wireless network list or not through the communication unit within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process with Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within the preset time period.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a controller, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the controller, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the application, when detecting that the wireless network associated with the second WiFi network interface needs login authentication, the mobile terminal obtains a wireless network list corresponding to the second WiFi network interface, where the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface; detecting whether a wireless network which does not need login authentication exists in a wireless network list within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process by Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within a preset time period. Therefore, in the embodiment of the application, the mobile terminal can flexibly execute different connection strategies in the process of connecting the wireless network, when the fact that the wireless network associated with the second WiFi network interface needs login authentication is detected, the mobile terminal is switched to the wireless network which does not need login authentication, authentication operation aiming at the wireless network associated with the second WiFi network interface is executed under the condition that the switching is unsuccessful, and the flexibility of the mobile terminal in the process of connecting the wireless network is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 2A is a flowchart illustrating a method for connecting a wireless network according to an embodiment of the present application;
FIG. 2B is a schematic diagram of a motion trajectory determination activity area provided by an embodiment of the present application;
fig. 2C is a schematic view of a pop-up window provided in an embodiment of the present application;
fig. 3 is a flowchart illustrating another method for connecting to a wireless network according to an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating another method for connecting to a wireless network according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of a connection device of a wireless network according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure, where the mobile terminal includes a processor, a Memory, a signal processor, a communication interface, a touch screen, a dual WiFi module, a speaker, a microphone, a Random Access Memory (RAM), a camera, and the like.
The storage, the signal processor, the double WiFi modules, the touch screen, the loudspeaker, the microphone, the RAM and the camera are connected with the processor, and the communication interface is connected with the signal processor.
The two WiFi network interfaces can be simultaneously connected with the same wireless network or two different wireless networks, so that the mobile terminal can upload or download data through the two WiFi network interfaces simultaneously, and the effect of network acceleration is realized.
The memory stores WiFi historical connection data, WiFi passwords and other wireless network information.
The Mobile terminal may include various handheld devices, vehicle-mounted devices, wearable devices (such as smartwatches, smartbands, pedometers, and the like), computing devices, or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
Referring to fig. 2A, fig. 2A is a schematic flowchart of a connection method of a wireless network according to an embodiment of the present application, and the connection method is applied to a mobile terminal supporting dual-wireless high-fidelity WiFi function, where the mobile terminal accesses a first wireless network through a first WiFi network interface. As shown in the figure, the connection method of the wireless network includes:
step 201, when detecting that the wireless network associated with the second WiFi network interface needs login authentication, the mobile terminal acquires a wireless network list corresponding to the second WiFi network interface, where the wireless network list is composed of at least one wireless network scanned through the second WiFi network interface.
And the wireless network list does not include the wireless network associated with the current second WiFi network interface.
The mode of scanning the second WiFi network interface to the at least one wireless network may be active scanning or passive scanning.
The specific process of passive scanning in the embodiment of the present application may include: and the mobile terminal sets a second WiFi network interface to continuously switch among all channels listed in a preset channel list and waits for the arrival of a Beacon frame. All received Beacon frames are buffered to extract the relevant data of the Wireless Access Point (AP) transmitting the frames. During the passive scan, the station will switch between channels and will record information from any Beacon frame received. The Beacon frame is intended to let the mobile terminal know the parameters needed to join a certain AP for communication.
Step 202, the mobile terminal detects whether a wireless network without login authentication exists in the wireless network list within a preset time period.
Step 203, if not, the mobile terminal pops up an authentication window of the wireless network associated with the second WiFi network interface, receives authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when detecting that the authentication information is correct, the access point AP device of the wireless network associated with the second WiFi network interface completes an association process to obtain a complete access right of the wireless network associated with the second WiFi network interface.
After the mobile terminal obtains the complete access right of the wireless network associated with the second WiFi network interface, the mobile terminal can access the Internet without limitation.
The mobile terminal pops up an authentication window on the display screen, and a user can input account information, passwords and other information required to be input when the mobile terminal is connected with a wireless network associated with the second WiFi network interface; when the mobile terminal receives a confirmation instruction of a user for the authentication window, the mobile terminal sends information input by the user in the authentication window to an access point AP of a wireless network associated with the second WiFi network interface, the access point AP of the wireless network associated with the second WiFi network interface verifies the information, if the verification is successful, a message of successful authentication is returned to the mobile terminal, and the mobile terminal establishes communication connection with the access point AP of the wireless network associated with the second WiFi network interface; and the mobile terminal is associated with the access point AP of the wireless network associated with the second WiFi network interface, and under the condition of successful association, the mobile terminal can access the Internet through the wireless network associated with the second WiFi network interface.
And 204, if yes, accessing the mobile terminal to the wireless network without login authentication through the second WiFi network interface within the preset time period.
It can be seen that, in the embodiment of the application, when detecting that the wireless network associated with the second WiFi network interface needs login authentication, the mobile terminal obtains a wireless network list corresponding to the second WiFi network interface, where the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface; detecting whether a wireless network which does not need login authentication exists in a wireless network list within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process by Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within a preset time period. Therefore, in the embodiment of the application, the mobile terminal can flexibly execute different connection strategies in the process of connecting the wireless network, when the fact that the wireless network associated with the second WiFi network interface needs login authentication is detected, the mobile terminal is switched to the wireless network which does not need login authentication, authentication operation aiming at the wireless network associated with the second WiFi network interface is executed under the condition that the switching is unsuccessful, and the flexibility of the mobile terminal in the process of connecting the wireless network is improved.
In one possible example, the wireless network associated with the second WiFi network interface includes any one of: the mobile terminal scans the wireless network for the first time through the second WiFi network interface, and the network quality meets the preset quality constraint condition; a wireless network in which connection is interrupted due to a change in a login password during connection; the mobile terminal has access to a network historically, and the login password of the network is changed; and the mobile terminal searches the network according to the network identification of the WiFi network input by the user.
The quality constraint condition can be preset through a software system or set by a user; in the specific setting process, different signal intensity levels can be divided according to the signal intensity of the wireless network, and when the signal level of the wireless network associated with the second WiFi network interface is determined according to the signal intensity corresponding to the wireless network associated with the second WiFi network interface, whether the signal level of the wireless network associated with the second WiFi network interface is a preset signal intensity level or not is judged; and if so, determining that the network quality meets the preset quality constraint condition, otherwise, determining that the wireless network associated with the second WiFi network interface does not meet the preset quality constraint condition. For example, the signal strength levels are divided into four levels, a first level, a second level, a third level, and a fourth level; the method comprises the steps of determining that the current signal strength grade is a first grade when a detected signal strength value is larger than or equal to a first preset value, determining that the current signal strength grade is a second grade when the detected signal strength value is smaller than the first preset value and larger than or equal to a second preset value, determining that the current signal strength grade is a third grade when the detected signal strength value is smaller than the second preset value and larger than or equal to a third preset value, and determining that the current signal strength grade is a fourth grade when the detected signal strength value is smaller than the third preset value, wherein the first preset value is larger than the second preset value and larger than the third preset value. When the signal intensity level is a first level and a second level, the network quality can meet a preset quality constraint condition; and when the signal intensity grades are a third grade and a fourth grade, the network quality does not meet the preset quality constraint condition.
In one possible example, the wireless networks associated with the second WiFi network interface include wireless networks that the mobile terminal first scans through the second WiFi network interface and whose network quality scores meet the preset quality constraint condition; the duration of the preset time period is dynamically determined according to the network quality score, and the duration and the network quality score are in an inverse proportional relation.
Wherein the duration and the network quality score are in inverse proportion, and the duration is k/network quality score, and k is a positive integer.
In this example, the mobile terminal determines the duration of the preset time period according to the network quality score, the network quality score and the duration are in an inverse proportion relation, and a shorter duration is set to search for the authentication-free network without logging under the condition that the network quality of the wireless network associated with the second WiFi network interface is better; under the condition that the network quality of the wireless network associated with the second WiFi network interface is poor, setting longer time length to search the network which does not need to log in authentication; the wireless network associated with the second WiFi network interface can be selected more probably under the condition that the network quality of the wireless network associated with the second WiFi network interface is better, the wireless network without login authentication is selected as much as possible under the condition that the network quality of the wireless network associated with the second WiFi network interface is poorer, and the network quality of the wireless network finally connected with the mobile terminal is improved.
In one possible example, the network quality score of the wireless network associated with the second WiFi network interface is calculated by: acquiring a motion track of the mobile terminal in a preset time length before the current time point and an effective coverage range of a wireless network associated with the second WiFi network interface; determining the activity area according to the motion track; and calculating to obtain the network quality score according to the effective coverage area, the active area and the signal strength of the wireless network associated with the second WiFi network interface.
The specific steps of determining the activity area by the mobile terminal according to the motion track comprise: the mobile terminal firstly acquires a motion track and displays the motion track on a map within a certain range, wherein the map within the certain range can completely include the motion track; secondly, dividing the map within a certain range according to area units with preset sizes, determining the area unit passed by the motion trail, and further determining the size of the moving area of the area unit passed by the motion trail; wherein the shape of the area cells may be square, triangular, hexagonal, etc., without limitation. Specifically, referring to fig. 2B, fig. 2B is a schematic diagram of a motion trajectory determining an active area, wherein a unit of a predetermined size of the active area representsIn an actual scene, the side length is 10 meters, the motion trail in the graph is the motion trail of the mobile terminal within half an hour before the current time point, and if the motion trail passes through 14 area units, the activity area is determined to be 1400m2
The specific calculation mode for calculating the network quality score according to the effective coverage area, the active area and the signal strength of the wireless network associated with the second WiFi network interface may be: and inquiring a preset mapping relation according to the obtained signal intensity value, and determining the signal percentage corresponding to the current signal intensity value, wherein the preset mapping relation comprises the corresponding relation between the signal intensity value and the signal percentage, and the network quality score is equal to the effective coverage range, the activity area and the signal percentage. For example, the active area in FIG. 2B is 1400m2If the effective coverage area of the wireless network is 3600 pi and the signal percentage is 100%, the network quality score is 3600 pi ÷ 1400 × 100% ═ 8.08.
As can be seen, in this example, the mobile terminal may generate a network quality score according to the active area and the effective coverage area of the wireless network, determine whether the current wireless network is suitable for the current user according to the active area and the effective coverage area of the wireless network, and if the active area is large and the effective coverage area is small, the network quality score is low; if the active area is small and the effective coverage area is large, the network quality score is high; the intelligence of the mobile terminal in the process of configuring the wireless network is improved.
In one possible example, the wireless network associated with the second WiFi network interface includes a wireless network of the connection that is interrupted due to a login password change; the duration of the preset time period is calculated according to the following steps: acquiring historical network state information of a wireless network associated with the second WiFi network interface and operation data of at least one application program operated by the mobile terminal at present, wherein the historical network state information comprises the uplink speed average value; downlink speed average and network stability; determining the uplink speed average value according to the operation data, wherein the downlink speed average value and the network stability respectively correspond to weight values; calculating to obtain a network quality score of the wireless network associated with the second WiFi network interface according to the weight value; and determining the duration of the preset time period according to the network quality score.
The mobile terminal may be preset with a basic weight value corresponding to each application program for the uplink speed average, the downlink speed average and the network stability, and an uplink weight value, a downlink weight value and a network stability weight value, for example, if the first application is a cloud disk application, the mobile terminal sets the uplink weight value, the downlink weight value and the network stability weight value to be 40%, 40% and 20% respectively in the open state of the cloud disk application; when the cloud disk application carries out a downloading task, the uplink weight value, the downlink weight value and the network stability weight value are respectively 45%, 40% and 15%, when the cloud disk application carries out an uploading task, the uplink weight value, the downlink weight value and the network stability weight value are respectively 40%, 45% and 15%, and when the cloud disk application simultaneously carries out the uploading task and the downloading task, the uplink weight value, the downlink weight value and the network stability weight value are respectively 40%, 40% and 20%. If the mobile terminal runs a plurality of application programs simultaneously, calculating to obtain an uplink weight value mean value, a downlink weight value mean value and a network stability weight value mean value according to the uplink weight values, the downlink weight values and the network stability weight values which correspond to the plurality of applications respectively. Meanwhile, the mobile terminal can determine scores corresponding to the uplink speed average value and the downlink speed average value of the wireless network associated with the second WiFi network interface according to a preset mapping relation, and the score is between 1 and 100; for example, when the uplink speed is greater than 256KB/s, the score of the current uplink data mean value is considered to be 100, the uplink speed is considered to be 99 from 250KB/s to 256KB/s, and … … is considered to be 1 when the speed is less than or equal to 1 KB/s. Wherein the value of the network stability is likewise between 1 and 100. The network quality score is the score of the uplink speed average value, multiplied by the uplink weight value average value, multiplied by the downlink speed average value, multiplied by the downlink weight value average value, multiplied by the network stability weight value average value. The duration of the preset time period is equal to a first preset value + a second preset value/the network quality score, and the first preset value and the second preset value are positive integers.
Optionally, the mobile terminal may determine a standard value of the uplink speed, a standard value of the downlink speed, and a standard value of the network stability according to the operation data of the at least one application program in operation; calculating a first difference value between an uplink speed average value and a standard value of an uplink speed of the wireless network associated with the second WiFi network interface, calculating a second difference value between a downlink speed average value and a standard value of a downlink speed of the wireless network associated with the second WiFi network interface, and calculating a third difference value between the network stability and the standard value of the network stability; calculating a deviation degree value according to the first difference value, the second difference value and the third difference value, specifically, calculating an average value of the first difference value, the second difference value and the third difference value to obtain the deviation degree value; and determining the duration of the preset time period according to a preset mapping relation, wherein the preset mapping relation comprises the mapping relation between the deviation degree value and the duration, and the smaller the deviation degree value is, the smaller the corresponding duration is, the larger the deviation degree value is, and the longer the corresponding duration is.
If it is not detected that there is an authenticated wireless network that does not need to be logged in the wireless network list within the duration of the preset time period, popping up an authentication window, please refer to fig. 2C, where fig. 2C is a schematic diagram of a pop-up window; firstly, a first interface is displayed on a display screen of the mobile terminal, an arrow of other selectable networks is displayed at the uppermost part of the popup window, and when a user clicks the arrow, the user jumps to a second interface; sequentially displaying the name of the wireless network associated with the second WiFi network interface and the current wireless network password in the middle part of the first display interface, and please refill the password: prompt information, password entry area and input keyboard. Displaying the current selectable wireless networks on a second display interface, and when a user clicks any one of the wireless networks, popping up a password input box on the display interface so that the user can input the network password of the wireless network clicked by the user; and an arrow of the wireless network associated with the second WiFi network interface is displayed at the top of the second display interface, and when the user clicks the arrow of the wireless network associated with the second WiFi network interface, the popup window is switched back to the display content of the first interface.
As can be seen, in this example, the mobile terminal may flexibly adjust the weight value according to the operation data of the at least one application program, so that the calculated network quality score more accurately reflects the application condition of the current wireless network to the mobile terminal, and then the duration of the preset time period is set to be shorter when the applicability of the wireless network associated with the second WiFi network interface to the mobile terminal is higher, and the duration of the preset time period is set to be longer when the applicability of the wireless network associated with the second WiFi network interface to the mobile terminal is lower.
In one possible example, the wireless network associated with the second WiFi network interface includes a network that the mobile terminal has historically accessed, and a login password of the network is changed; the duration of the preset time period is obtained according to the following steps: acquiring historical connection data of a wireless network associated with the second WiFi network interface; determining a high-frequency connection time period according to the historical connection data; determining the duration of the high-frequency connection time period in each preset time interval; and determining the duration of the preset time period according to the duration of the high-frequency time period in each preset time interval and the duration corresponding to unit time in each preset time interval.
The unit time can be hours, minutes or seconds. For example, between 7 o 'clock and 19 o' clock, the duration per unit time may be 1 second per hour.
For example, the time interval from 0 point to 7 point of the working day, from 19 point to 24 point, corresponds to a time length of 2s per hour, and from 7 point to 9 point, corresponds to a time length of 1s per hour; if the high-frequency time period of the wireless network associated with the second WiFi network interface is 19 to 23 points at present, the duration of the preset time period is 8 seconds, the wireless network associated with the second WiFi network interface may be a home wireless network, and the possibility that a user knows a network password is high under the condition that the password is modified; if the high-frequency time period of the wireless network associated with the second WiFi network interface is 12 to 19 points on the weekend, the duration of the corresponding preset time period is 3.5 seconds, the wireless network associated with the second WiFi network interface may be a public network, and the possibility that a user knows the network password is low under the condition that the password is modified; if the high-frequency time period of the wireless network associated with the second WiFi network interface is from 9 to 19 points of the working day, the duration of the corresponding preset time period is 10 seconds, and the wireless network associated with the second WiFi network interface may be a wireless network of a company.
Therefore, in this example, the mobile terminal can judge the high-frequency time period of accessing the current wireless network according to the historical access data, so as to predict the type of the current wireless network, further determine the duration of the preset time period, and improve the intelligence of the mobile terminal.
In one possible example, the wireless network associated with the second WiFi network interface includes a network searched by the mobile terminal according to a network identification of the WiFi network entered by a user; the duration of the preset time period is determined according to the setting operation of the user, or the duration of the preset time period is equal to a preset time period threshold value.
As can be seen, in this example, the mobile terminal allows the user to enter the duration of the preset time period or set the duration as the preset time threshold, which improves the flexibility of setting the duration of the preset time period.
Referring to fig. 3, fig. 3 is a schematic flowchart of a connection method of a wireless network according to an embodiment of the present application, and the connection method is applied to a mobile terminal supporting dual wireless high fidelity WiFi functions, where the mobile terminal accesses a first wireless network through a first WiFi network interface. As shown in the figure, the connection method of the wireless network includes:
step 301, when detecting that a wireless network associated with the second WiFi network interface needs login authentication, the mobile terminal acquires a wireless network list corresponding to the second WiFi network interface, where the wireless network list is composed of at least one wireless network scanned through the second WiFi network interface, and the wireless network associated with the second WiFi network interface includes a wireless network which is scanned by the mobile terminal through the second WiFi network interface for the first time and whose network quality score meets the preset quality constraint condition.
Step 302, the mobile terminal obtains a motion track of the mobile terminal within a preset time before a current time point and an effective coverage area of a wireless network associated with the second WiFi network interface.
Step 303, the mobile terminal determines the activity area according to the motion track.
And step 304, the mobile terminal calculates the network quality score according to the effective coverage area, the active area and the signal intensity of the wireless network associated with the second WiFi network interface.
And 305, the mobile terminal determines the duration of a preset time period according to the network quality score, and the duration and the network quality score are in an inverse proportional relation.
Step 306, the mobile terminal detects whether a wireless network without login authentication exists in the wireless network list within a preset time period.
Step 307, if not, the mobile terminal pops up an authentication window of the wireless network associated with the second WiFi network interface, receives authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when detecting that the authentication information is correct, the access point AP device of the wireless network associated with the second WiFi network interface completes an association process to obtain a complete access right of the wireless network associated with the second WiFi network interface.
And 308, if yes, accessing the mobile terminal to the wireless network without login authentication through the second WiFi network interface within the preset time period.
It can be seen that, in the embodiment of the application, when detecting that the wireless network associated with the second WiFi network interface needs login authentication, the mobile terminal obtains a wireless network list corresponding to the second WiFi network interface, where the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface; detecting whether a wireless network which does not need login authentication exists in a wireless network list within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process by Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within a preset time period. Therefore, in the embodiment of the application, the mobile terminal can flexibly execute different connection strategies in the process of connecting the wireless network, when the fact that the wireless network associated with the second WiFi network interface needs login authentication is detected, the mobile terminal is switched to the wireless network which does not need login authentication, authentication operation aiming at the wireless network associated with the second WiFi network interface is executed under the condition that the switching is unsuccessful, and the flexibility of the mobile terminal in the process of connecting the wireless network is improved.
In addition, the mobile terminal determines the duration of a preset time period according to the network quality score, the network quality score and the duration are in an inverse proportion relation, and under the condition that the network quality of the wireless network associated with the second WiFi network interface is good, a shorter duration is set to search for the authentication network which does not need to be logged in; under the condition that the network quality of the wireless network associated with the second WiFi network interface is poor, setting longer time length to search the network which does not need to log in authentication; the wireless network associated with the second WiFi network interface can be selected more probably under the condition that the network quality of the wireless network associated with the second WiFi network interface is better, the wireless network without login authentication is selected as much as possible under the condition that the network quality of the wireless network associated with the second WiFi network interface is poorer, and the network quality of the wireless network finally connected with the mobile terminal is improved.
In addition, the mobile terminal can generate a network quality score according to the active area and the effective coverage range of the wireless network, judge whether the current wireless network is suitable for the current user according to the active area and the effective coverage range of the wireless network, and if the active area is large and the effective coverage range is small, the network quality score is low; if the active area is small and the effective coverage area is large, the network quality score is high; the intelligence of the mobile terminal in the process of configuring the wireless network is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a connection method of a wireless network according to an embodiment of the present application, and the connection method is applied to a mobile terminal supporting dual wireless high fidelity WiFi functions, where the mobile terminal accesses a first wireless network through a first WiFi network interface. As shown in the figure, the connection method of the wireless network includes:
step 401, when detecting that the wireless network associated with the second WiFi network interface needs login authentication, the mobile terminal obtains a wireless network list corresponding to the second WiFi network interface, where the wireless network list is composed of at least one wireless network scanned through the second WiFi network interface, and the wireless network associated with the second WiFi network interface includes a wireless network whose connection is interrupted due to a change of a login password in connection.
Step 402, the mobile terminal obtains historical network state information of a wireless network associated with the second WiFi network interface and operation data of at least one application program currently operated by the mobile terminal, wherein the historical network state information includes the uplink speed average value; the average downlink speed and the network stability.
And 403, the mobile terminal determines the uplink speed average value according to the operation data, and the downlink speed average value and the network stability respectively correspond to weight values.
And step 404, the mobile terminal calculates a network quality score of the wireless network associated with the second WiFi network interface according to the weight value.
Step 405, the mobile terminal determines the duration of a preset time period according to the network quality score.
Step 406, the mobile terminal detects whether there is a wireless network without login authentication in the wireless network list within a preset time period
Step 407, if not, the mobile terminal pops up an authentication window of the wireless network associated with the second WiFi network interface, receives authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when detecting that the authentication information is correct, the access point AP device of the wireless network associated with the second WiFi network interface completes an association process to obtain a complete access right of the wireless network associated with the second WiFi network interface.
And step 408, if yes, the mobile terminal accesses the wireless network without login authentication through the second WiFi network interface within the preset time period.
It can be seen that, in the embodiment of the application, when detecting that the wireless network associated with the second WiFi network interface needs login authentication, the mobile terminal obtains a wireless network list corresponding to the second WiFi network interface, where the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface; detecting whether a wireless network which does not need login authentication exists in a wireless network list within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process by Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within a preset time period. Therefore, in the embodiment of the application, the mobile terminal can flexibly execute different connection strategies in the process of connecting the wireless network, when the fact that the wireless network associated with the second WiFi network interface needs login authentication is detected, the mobile terminal is switched to the wireless network which does not need login authentication, authentication operation aiming at the wireless network associated with the second WiFi network interface is executed under the condition that the switching is unsuccessful, and the flexibility of the mobile terminal in the process of connecting the wireless network is improved.
In addition, the mobile terminal can flexibly regulate and control the weight value according to the running data of at least one application program, so that the calculated network quality score can more accurately reflect the application condition of the current wireless network to the mobile terminal, the duration of the preset time period is set to be shorter under the condition that the application degree of the wireless network to the mobile terminal is higher, and the duration of the preset time period is set to be longer under the condition that the application degree of the wireless network to the mobile terminal is higher.
Consistent with the embodiments shown in fig. 2A, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a mobile terminal 500 according to an embodiment of the present application, as shown in the figure, the mobile terminal 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for:
when the fact that the wireless network associated with the second WiFi network interface needs login authentication is detected, a wireless network list corresponding to the second WiFi network interface is obtained, wherein the wireless network list is composed of at least one wireless network scanned through the second WiFi network interface;
detecting whether a wireless network which does not need login authentication exists in the wireless network list within a preset time period;
if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process with Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface;
and if so, accessing the wireless network without login authentication through the second WiFi network interface within the preset time period.
It can be seen that, in the embodiment of the application, when detecting that the wireless network associated with the second WiFi network interface needs login authentication, the mobile terminal obtains a wireless network list corresponding to the second WiFi network interface, where the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface; detecting whether a wireless network which does not need login authentication exists in a wireless network list within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process by Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within a preset time period. Therefore, in the embodiment of the application, the mobile terminal can flexibly execute different connection strategies in the process of connecting the wireless network, when the fact that the wireless network associated with the second WiFi network interface needs login authentication is detected, the mobile terminal is switched to the wireless network which does not need login authentication, authentication operation aiming at the wireless network associated with the second WiFi network interface is executed under the condition that the switching is unsuccessful, and the flexibility of the mobile terminal in the process of connecting the wireless network is improved.
In one possible example, the wireless network associated with the second WiFi network interface includes any one of: the mobile terminal scans the wireless network for the first time through the second WiFi network interface, and the network quality meets the preset quality constraint condition; a wireless network in which connection is interrupted due to a change in a login password during connection; the mobile terminal has access to a network historically, and the login password of the network is changed; and the mobile terminal searches the network according to the network identification of the WiFi network input by the user.
In one possible example, the wireless networks associated with the second WiFi network interface include wireless networks that the mobile terminal first scans through the second WiFi network interface and whose network quality scores meet the preset quality constraint condition; the duration of the preset time period is dynamically determined according to the network quality score, and the duration and the network quality score are in an inverse proportional relation.
In one possible example, the instructions in the program are specifically configured to, in calculating the network quality score for the wireless network associated with the second WiFi network interface, perform the following: acquiring a motion track of the mobile terminal in a preset time length before the current time point and an effective coverage range of a wireless network associated with the second WiFi network interface; determining the activity area according to the motion track; and calculating to obtain the network quality score according to the effective coverage area, the active area and the signal strength of the wireless network associated with the second WiFi network interface.
In one possible example, the wireless network associated with the second WiFi network interface includes a wireless network of the connection that is interrupted due to a login password change; in terms of determining the duration of the preset time period, the instructions in the program are specifically configured to perform the following operations: acquiring historical network state information of a wireless network associated with the second WiFi network interface and operation data of at least one application program operated by the mobile terminal at present, wherein the historical network state information comprises the uplink speed average value; downlink speed average and network stability; determining the uplink speed average value according to the operation data, wherein the downlink speed average value and the network stability respectively correspond to weight values; calculating to obtain a network quality score of the wireless network associated with the second WiFi network interface according to the weight value; and determining the duration of the preset time period according to the network quality score.
In one possible example, the wireless network associated with the second WiFi network interface includes a network that the mobile terminal has historically accessed, and a login password of the network is changed; in terms of determining the duration of the preset time period, the instructions in the program are specifically configured to perform the following operations: acquiring historical connection data of a wireless network associated with the second WiFi network interface; determining a high-frequency connection time period according to the historical connection data; determining the duration of the high-frequency connection time period in each preset time interval; and determining the duration of the preset time period according to the duration of the high-frequency time period in each preset time interval and the duration corresponding to unit time in each preset time interval.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one control 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. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram of functional units of a connection device 600 of a wireless network according to an embodiment of the present application. The connection device 600 of the wireless network is applied to a mobile terminal supporting a dual-wireless high-fidelity WiFi function, the mobile terminal accesses a first wireless network through a first WiFi network interface, the connection device 600 of the wireless network comprises a processing unit 601 and a communication unit 602, wherein:
the processing unit 601 is configured to, when it is detected through the communication unit 602 that a wireless network associated with the second WiFi network interface needs login authentication, obtain, through the communication unit 602, a wireless network list corresponding to the second WiFi network interface, where the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface; detecting whether a wireless network without login authentication exists in the wireless network list through the communication unit 602 within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process with Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within the preset time period.
The connection device 600 of the wireless network may further include a storage unit 603, and the storage unit 603 is used for storing program codes and data of the electronic device. The processing unit 601 may be a processor, the communication unit 602 may be a touch display screen or a transceiver, and the storage unit 603 may be a memory.
It can be seen that, in the embodiment of the application, when detecting that the wireless network associated with the second WiFi network interface needs login authentication, the mobile terminal obtains a wireless network list corresponding to the second WiFi network interface, where the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface; detecting whether a wireless network which does not need login authentication exists in a wireless network list within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process by Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within a preset time period. Therefore, in the embodiment of the application, the mobile terminal can flexibly execute different connection strategies in the process of connecting the wireless network, when the fact that the wireless network associated with the second WiFi network interface needs login authentication is detected, the mobile terminal is switched to the wireless network which does not need login authentication, authentication operation aiming at the wireless network associated with the second WiFi network interface is executed under the condition that the switching is unsuccessful, and the flexibility of the mobile terminal in the process of connecting the wireless network is improved.
In one possible example, the wireless network associated with the second WiFi network interface includes any one of: the mobile terminal scans the wireless network for the first time through the second WiFi network interface, and the network quality meets the preset quality constraint condition; a wireless network in which connection is interrupted due to a change in a login password during connection; the mobile terminal has access to a network historically, and the login password of the network is changed; and the mobile terminal searches the network according to the network identification of the WiFi network input by the user.
In one possible example, the wireless networks associated with the second WiFi network interface include wireless networks that the mobile terminal first scans through the second WiFi network interface and whose network quality scores meet the preset quality constraint condition; the duration of the preset time period is dynamically determined according to the network quality score, and the duration and the network quality score are in an inverse proportional relation.
In one possible example, in terms of calculating the network quality score of the wireless network associated with the second WiFi network interface, the processing unit 601 is specifically configured to: acquiring a motion track of the mobile terminal within a preset time before a current time point and an effective coverage range of a wireless network associated with the second WiFi network interface through the communication unit 602; determining the activity area according to the motion track; and calculating to obtain the network quality score according to the effective coverage area, the active area and the signal strength of the wireless network associated with the second WiFi network interface.
In one possible example, the wireless network associated with the second WiFi network interface includes a wireless network of the connection that is interrupted due to a login password change; in terms of determining the duration of the preset time period, the processing unit 601 is specifically configured to: acquiring historical network state information of a wireless network associated with the second WiFi network interface and operation data of at least one application program currently operated by the mobile terminal through the communication unit 602, where the historical network state information includes the uplink speed average value; downlink speed average and network stability; determining the uplink speed average value according to the operation data, wherein the downlink speed average value and the network stability respectively correspond to weight values; calculating to obtain a network quality score of the wireless network associated with the second WiFi network interface according to the weight value; and determining the duration of the preset time period according to the network quality score.
In one possible example, the wireless network associated with the second WiFi network interface includes a network that the mobile terminal has historically accessed, and a login password of the network is changed; in terms of determining the duration of the preset time period, the processing unit 601 is specifically configured to: acquiring historical connection data of a wireless network associated with the second WiFi network interface through the communication unit 602; determining a high-frequency connection time period according to the historical connection data; determining the duration of the high-frequency connection time period in each preset time interval; and determining the duration of the preset time period according to the duration of the high-frequency time period in each preset time interval and the duration corresponding to unit time in each preset time interval. Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, 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 of some interfaces, devices or units, and may be an electric 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, each functional unit in the embodiments of the present application may be integrated into one control 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.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A wireless network connection method is applied to a mobile terminal supporting a double wireless high fidelity (WiFi) function, and the mobile terminal accesses a first wireless network through a first WiFi network interface, and the method comprises the following steps:
when the fact that the wireless network associated with the second WiFi network interface needs login authentication is detected when the fact that the full access right of the wireless network associated with the second WiFi network interface is obtained is requested, a wireless network list corresponding to the second WiFi network interface is obtained, the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface, the wireless network list does not include the wireless network associated with the current second WiFi network interface, and the mode that the second WiFi network interface scans the at least one wireless network is active scanning or passive scanning;
detecting whether a wireless network which does not need login authentication exists in the wireless network list within a preset time period;
if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process with Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface;
and if so, accessing the wireless network without login authentication through the second WiFi network interface within the preset time period.
2. The method of claim 1, wherein the wireless network associated with the second WiFi network interface comprises any one of:
the mobile terminal scans the wireless network for the first time through the second WiFi network interface, and the network quality meets the preset quality constraint condition;
a wireless network in which connection is interrupted due to a change in a login password during connection;
the mobile terminal has access to a network historically, and the login password of the network is changed;
and the mobile terminal searches the network according to the network identification of the WiFi network input by the user.
3. The method of claim 2, wherein the wireless networks associated with the second WiFi network interface include wireless networks that the mobile terminal first scans through the second WiFi network interface and whose network quality scores satisfy a preset quality constraint condition;
the duration of the preset time period is dynamically determined according to the network quality score, and the duration and the network quality score are in an inverse proportional relation.
4. The method of claim 3, wherein the network quality score of the wireless network associated with the second WiFi network interface is calculated by:
acquiring a motion track of the mobile terminal in a preset time length before the current time point and an effective coverage range of a wireless network associated with the second WiFi network interface;
determining the activity area according to the motion track;
and calculating to obtain the network quality score according to the effective coverage area, the active area and the signal strength of the wireless network associated with the second WiFi network interface.
5. The method of claim 2, wherein the wireless network associated with the second WiFi network interface comprises a wireless network of which connection is interrupted due to a login password change; the duration of the preset time period is calculated according to the following steps:
acquiring historical network state information of a wireless network associated with the second WiFi network interface and operation data of at least one application program operated by the mobile terminal at present, wherein the historical network state information comprises an uplink speed average value; downlink speed average and network stability;
determining the uplink speed average value according to the operation data, wherein the downlink speed average value and the network stability respectively correspond to weight values;
calculating to obtain a network quality score of the wireless network associated with the second WiFi network interface according to the weight value;
and determining the duration of the preset time period according to the network quality score.
6. The method of claim 2, wherein the wireless network associated with the second WiFi network interface comprises a network that the mobile terminal has historically accessed, and a login password of the network is changed; the duration of the preset time period is obtained according to the following steps:
acquiring historical connection data of a wireless network associated with the second WiFi network interface;
determining a high-frequency connection time period according to the historical connection data;
determining the duration of the high-frequency connection time period in each preset time interval;
and determining the duration of the preset time period according to the duration of the high-frequency connection time period in each preset time interval and the duration corresponding to unit time in each preset time interval.
7. The method of claim 2, wherein the wireless network associated with the second WiFi network interface comprises a network searched by the mobile terminal according to a network identification of a WiFi network entered by a user;
the duration of the preset period is determined according to a setting operation of a user, or,
the duration of the preset time period is equal to a preset time threshold.
8. A connecting device of a wireless network is applied to a mobile terminal supporting double wireless high fidelity WiFi function, the mobile terminal accesses a first wireless network through a first WiFi network interface, the connecting device of the wireless network comprises a processing unit and a communication unit, wherein,
the processing unit is configured to, when it is detected that a wireless network associated with a second WiFi network interface needs login authentication through the communication unit when a request is made to obtain a full access right of the wireless network associated with the second WiFi network interface, obtain a wireless network list corresponding to the second WiFi network interface through the communication unit, where the wireless network list is formed by at least one wireless network scanned through the second WiFi network interface, the wireless network list does not include the wireless network associated with the current second WiFi network interface, and a manner in which the second WiFi network interface scans the at least one wireless network is active scanning or passive scanning; detecting whether a wireless network which does not need login authentication exists in the wireless network list or not through the communication unit within a preset time period; if not, popping up an authentication window of the wireless network associated with the second WiFi network interface, receiving authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when the authentication information is detected to be correct, finishing an association process with Access Point (AP) equipment of the wireless network associated with the second WiFi network interface to obtain the complete access right of the wireless network associated with the second WiFi network interface; and if so, accessing the wireless network without login authentication through the second WiFi network interface within the preset time period.
9. A mobile terminal comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201910785902.3A 2019-08-23 2019-08-23 Wireless network connection method and related device Active CN110493779B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910785902.3A CN110493779B (en) 2019-08-23 2019-08-23 Wireless network connection method and related device
PCT/CN2020/102114 WO2021036558A1 (en) 2019-08-23 2020-07-15 Wireless network connection method and related apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910785902.3A CN110493779B (en) 2019-08-23 2019-08-23 Wireless network connection method and related device

Publications (2)

Publication Number Publication Date
CN110493779A CN110493779A (en) 2019-11-22
CN110493779B true CN110493779B (en) 2022-01-25

Family

ID=68553473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910785902.3A Active CN110493779B (en) 2019-08-23 2019-08-23 Wireless network connection method and related device

Country Status (2)

Country Link
CN (1) CN110493779B (en)
WO (1) WO2021036558A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493779B (en) * 2019-08-23 2022-01-25 Oppo广东移动通信有限公司 Wireless network connection method and related device
CN110611890B (en) * 2019-09-17 2021-07-06 Oppo广东移动通信有限公司 Notification message control method and related device
CN114531742B (en) * 2020-10-30 2023-03-03 荣耀终端有限公司 Dual Wi-Fi connection method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101622887A (en) * 2007-02-21 2010-01-06 高通股份有限公司 Wireless node search procedure
CN105682007A (en) * 2016-01-30 2016-06-15 努比亚技术有限公司 Mobile terminal and WIFI (Wireless Fidelity) control method
CN105682191A (en) * 2016-03-10 2016-06-15 努比亚技术有限公司 Mobile terminal and Wi-Fi control method
CN106211254A (en) * 2016-06-15 2016-12-07 维沃移动通信有限公司 A kind of method for connecting network and mobile terminal
CN106376054A (en) * 2016-08-29 2017-02-01 上海纽菲斯信息科技有限公司 Dual-wifi system and network connection control method of mobile device
CN107635234A (en) * 2017-09-29 2018-01-26 努比亚技术有限公司 Wi Fi control methods, mobile terminal and computer-readable recording medium
CN107770840A (en) * 2017-09-29 2018-03-06 努比亚技术有限公司 Focus signal display method, mobile terminal and computer-readable recording medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102791016B (en) * 2012-07-04 2014-12-10 大唐移动通信设备有限公司 Access processing method and device
CN103619019B (en) * 2013-11-29 2017-04-12 孙伟力 Network access authentication method for wireless network
CA2873008C (en) * 2013-12-03 2017-02-14 Emerson Electric Co. Providing wireless network authentication data to climate control system devices
US9674768B2 (en) * 2014-07-28 2017-06-06 Xiaomi Inc. Method and device for accessing wireless network
CN105307286B (en) * 2015-09-22 2018-11-27 广东欧珀移动通信有限公司 A kind of the WIFI method for intelligent connection and device of terminal
CN105228228B (en) * 2015-09-22 2019-07-12 Oppo广东移动通信有限公司 A kind of method for intelligent connection and device of terminal network
CN109219044A (en) * 2017-07-06 2019-01-15 中兴通讯股份有限公司 Switching method, mobile terminal and the computer readable storage medium of wireless network
CN110493779B (en) * 2019-08-23 2022-01-25 Oppo广东移动通信有限公司 Wireless network connection method and related device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101622887A (en) * 2007-02-21 2010-01-06 高通股份有限公司 Wireless node search procedure
CN105682007A (en) * 2016-01-30 2016-06-15 努比亚技术有限公司 Mobile terminal and WIFI (Wireless Fidelity) control method
CN105682191A (en) * 2016-03-10 2016-06-15 努比亚技术有限公司 Mobile terminal and Wi-Fi control method
CN106211254A (en) * 2016-06-15 2016-12-07 维沃移动通信有限公司 A kind of method for connecting network and mobile terminal
CN106376054A (en) * 2016-08-29 2017-02-01 上海纽菲斯信息科技有限公司 Dual-wifi system and network connection control method of mobile device
CN107635234A (en) * 2017-09-29 2018-01-26 努比亚技术有限公司 Wi Fi control methods, mobile terminal and computer-readable recording medium
CN107770840A (en) * 2017-09-29 2018-03-06 努比亚技术有限公司 Focus signal display method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN110493779A (en) 2019-11-22
WO2021036558A1 (en) 2021-03-04

Similar Documents

Publication Publication Date Title
CN110493779B (en) Wireless network connection method and related device
CN104618316B (en) Safe verification method, device and system
CN107182042B (en) Short message channel quality evaluation method, device, medium and system
CN104980949B (en) A kind of the startup method and relevant device of different-frequency measure
CN104010355A (en) Apparatus and method for providing a wireless communication in a portable terminal
US9654552B2 (en) Methods and systems for delegating group ownership for the formation of a new group
CN109831333A (en) A kind of router setting method, system and equipment
EP3079392A1 (en) Method, apparatus and system for selecting authentication algorithm
KR20200057483A (en) Apparatus and method for providing service at a local area data network
CN106162640A (en) A kind of portal authentication method and system
CN103856959A (en) Wireless local area network quality monitoring method, device and system
CN103973639A (en) Network access control method, device and system
CN108574735A (en) Data processing method, terminal and computer readable storage medium
CN107087293A (en) A kind of cut-in method, terminal and server
CN112634932B (en) Audio signal processing method and device, server and related equipment
CN106028323A (en) Network access method, terminal and access point
CN107786965B (en) Team game communication method and related product
CN110611890B (en) Notification message control method and related device
CN110575670A (en) Game data configuration strategy generation method and related product
CN108541003B (en) VoWiFi call control method and device
US20190191324A1 (en) Signal acquisition method and device
CN111010724B (en) Terminal access method and device based on WLAN
CN112385253A (en) Network state display method and device
CN114786242B (en) Wireless high-fidelity Wi-Fi access point selection method and related device
CN103906148B (en) System information block method of reseptance and device and residence reselecting

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant