Movatterモバイル変換


[0]ホーム

URL:


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

Wireless network connection method and related device
Download PDF

Info

Publication number
CN110493779B
CN110493779BCN201910785902.3ACN201910785902ACN110493779BCN 110493779 BCN110493779 BCN 110493779BCN 201910785902 ACN201910785902 ACN 201910785902ACN 110493779 BCN110493779 BCN 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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910785902.3ApriorityCriticalpatent/CN110493779B/en
Publication of CN110493779ApublicationCriticalpatent/CN110493779A/en
Priority to PCT/CN2020/102114prioritypatent/WO2021036558A1/en
Application grantedgrantedCritical
Publication of CN110493779BpublicationCriticalpatent/CN110493779B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例公开了一种无线网络的连接方法及相关装置,方法包括:在检测到第二WiFi网络接口关联的无线网络需要登录认证时,获取所述第二WiFi网络接口对应的无线网络列表;在预设时段内检测无线网络列表是否存在无需登录认证的无线网络;若否,则弹出第二WiFi网络接口关联的无线网络的认证窗口,通过认证窗口接收无线网络的认证信息,以及在检测到认证信息正确时,与第二WiFi网络接口关联的无线网络的接入点AP设备完成关联过程以获得第二WiFi网络接口关联的无线网络的完全访问权;若是,则在预设时段内通过第二WiFi网络接口接入无需登录认证的无线网络。实施本申请实施例有利于减少用户在连接网络时的操作时间,提升了移动终端在连接无线网络时的灵活性。

Figure 201910785902

The embodiment of the present application discloses a wireless network connection method and a related device. The method includes: when it is detected that a wireless network associated with a second WiFi network interface requires login authentication, acquiring a wireless network list corresponding to the second WiFi network interface ; Detect whether there is a wireless network that does not require login authentication in the wireless network list within a preset time period; if not, pop up the authentication window of the wireless network associated with the second WiFi network interface, receive the authentication information of the wireless network through the authentication window, and detect When the authentication information is correct, the access point AP device of the wireless network associated with the second WiFi network interface completes the association process to obtain full access rights to the wireless network associated with the second WiFi network interface; The second WiFi network interface is connected to a wireless network that does not require login authentication. Implementing the embodiments of the present application helps to reduce the operation time of the user when connecting to the network, and improves the flexibility of the mobile terminal when connecting to the wireless network.

Figure 201910785902

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, acommunication 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 aconnection device 600 of a wireless network according to an embodiment of the present application. Theconnection 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, theconnection device 600 of the wireless network comprises aprocessing unit 601 and acommunication unit 602, wherein:
theprocessing unit 601 is configured to, when it is detected through thecommunication unit 602 that a wireless network associated with the second WiFi network interface needs login authentication, obtain, through thecommunication 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 thecommunication 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.
Theconnection device 600 of the wireless network may further include astorage unit 603, and thestorage unit 603 is used for storing program codes and data of the electronic device. Theprocessing unit 601 may be a processor, thecommunication unit 602 may be a touch display screen or a transceiver, and thestorage 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, theprocessing 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 thecommunication 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, theprocessing 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 thecommunication 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, theprocessing unit 601 is specifically configured to: acquiring historical connection data of a wireless network associated with the second WiFi network interface through thecommunication 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)

Translated fromChinese
1.一种无线网络的连接方法,其特征在于,应用于支持双无线高保真WiFi功能的移动终端,所述移动终端通过第一WiFi网络接口接入第一无线网络,所述方法包括:1. A method for connecting a wireless network, characterized in that it is applied to a mobile terminal supporting dual wireless high-fidelity WiFi functions, and the mobile terminal accesses a first wireless network through a first WiFi network interface, the method comprising:在请求获得第二WiFi网络接口关联的无线网络的完全访问权时检测到所述第二WiFi网络接口关联的无线网络需要登录认证时,获取所述第二WiFi网络接口对应的无线网络列表,所述无线网络列表由通过所述第二WiFi网络接口扫描到的至少一个无线网络构成,所述无线网络列表中不包括当前第二WiFi网络接口关联的无线网络,所述第二WiFi网络接口扫描到至少一个无线网络的方式为主动扫描或被动扫描;When requesting to obtain the full access right of the wireless network associated with the second WiFi network interface and detecting that the wireless network associated with the second WiFi network interface requires login authentication, obtain the wireless network list corresponding to the second WiFi network interface, and the The wireless network list is composed of at least one wireless network scanned through the second WiFi network interface, the wireless network list does not include the wireless network currently associated with the second WiFi network interface, and the second WiFi network interface has scanned at least one wireless network. The mode of a wireless network is active scanning or passive scanning;在预设时段内检测所述无线网络列表中是否存在无需登录认证的无线网络;Detecting whether there is a wireless network that does not require login authentication in the wireless network list within a preset period of time;若否,则弹出所述第二WiFi网络接口关联的无线网络的认证窗口,通过所述认证窗口接收所述第二WiFi网络接口关联的无线网络的认证信息,以及在检测到所述认证信息正确时,与所述第二WiFi网络接口关联的无线网络的接入点AP设备完成关联过程以获得所述第二WiFi网络接口关联的无线网络的完全访问权;If not, pop up the authentication window of the wireless network associated with the second WiFi network interface, receive the authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when it is detected that the authentication information is correct When the access point AP device of the wireless network associated with the second WiFi network interface completes the association process to obtain full access to the wireless network associated with the second WiFi network interface;若是,则在所述预设时段内通过所述第二WiFi网络接口接入所述无需登录认证的无线网络。If so, accessing the wireless network that does not require login authentication through the second WiFi network interface within the preset time period.2.根据权利要求1所述的方法,其特征在于,所述第二WiFi网络接口关联的无线网络包括以下任意一种:2. The method according to claim 1, wherein the wireless network associated with the second WiFi network interface comprises any one of the following:所述移动终端通过所述第二WiFi网络接口首次扫描到,且网络质量满足预设质量约束条件的无线网络;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;连接中因登录密码变更而中断连接的无线网络;The wireless network that is disconnected due to the change of the login password during the connection;所述移动终端历史接入过的网络,且该网络的登录密码发生变更;The network that the mobile terminal has accessed in the past, and the login password of the network is changed;所述移动终端根据用户录入的WiFi网络的网络标识而搜索到的网络。The network searched by the mobile terminal according to the network identifier of the WiFi network entered by the user.3.根据权利要求2所述的方法,其特征在于,所述第二WiFi网络接口关联的无线网络包括所述移动终端通过所述第二WiFi网络接口首次扫描到,且网络质量评分满足预设质量约束条件的无线网络;3. The method according to claim 2, wherein the wireless network associated with the second WiFi network interface comprises that the mobile terminal scans for the first time through the second WiFi network interface, and the network quality score satisfies a preset Wireless networks with quality constraints;所述预设时段的持续时长是根据所述网络质量评分动态确定的,且所述持续时长与所述网络质量评分成反比例关系。The duration of the preset period is dynamically determined according to the network quality score, and the duration is inversely proportional to the network quality score.4.根据权利要求3所述的方法,其特征在于,所述第二WiFi网络接口关联的无线网络的网络质量评分通过以下步骤计算得到:4. The method according to claim 3, wherein the network quality score of the wireless network associated with the second WiFi network interface is calculated by the following steps:获取所述移动终端在当前时间点之前的预设时长内的运动轨迹和所述第二WiFi网络接口关联的无线网络的有效覆盖范围;acquiring the motion trajectory of the mobile terminal within a preset time period before the current time point and the effective coverage of the wireless network associated with the second WiFi network interface;根据所述运动轨迹确定活动面积;Determine the active area according to the motion trajectory;根据所述有效覆盖范围、所述活动面积和所述第二WiFi网络接口关联的无线网络的信号强度计算得到所述网络质量评分。The network quality score is calculated and obtained according to the effective coverage range, the active area, and the signal strength of the wireless network associated with the second WiFi network interface.5.根据权利要求2所述的方法,其特征在于,所述第二WiFi网络接口关联的无线网络包括连接中因登录密码变更而中断连接的无线网络;所述预设时段的持续时长是根据以下步骤计算得到的:5. The method according to claim 2, wherein the wireless network associated with the second WiFi network interface comprises a wireless network that is disconnected due to a login password change during the connection; the duration of the preset time period is based on Calculated by the following steps:获取所述第二WiFi网络接口关联的无线网络的历史网络状态信息和当前所述移动终端运行的至少一个应用程序的运行数据,所述历史网络状态信息包括上行速度均值;下行速度均值和网络稳定度;Acquire historical network status information of the wireless network associated with the second WiFi network interface and operation data of at least one application currently running by the mobile terminal, where the historical network status information includes the mean value of uplink speed; the mean value of downlink speed and network stability Spend;根据所述运行数据确定所述上行速度均值,所述下行速度均值和所述网络稳定度分别对应的权重值;Determine the average value of the uplink speed, the weight values corresponding to the average value of the downlink speed and the network stability according to the operation data;根据所述权重值计算得到所述第二WiFi网络接口关联的无线网络的网络质量评分;Obtaining the network quality score of the wireless network associated with the second WiFi network interface by calculating according to the weight value;根据所述网络质量评分确定所述预设时段的持续时长。The duration of the preset period is determined according to the network quality score.6.根据权利要求2所述的方法,其特征在于,所述第二WiFi网络接口关联的无线网络包括所述移动终端历史接入过的网络,且该网络的登录密码发生变更;所述预设时段的持续时长是根据以下步骤得到的:6. The method according to claim 2, wherein the wireless network associated with the second WiFi network interface includes a network that the mobile terminal has accessed in the past, and the login password of the network is changed; The duration of the set period is obtained according to the following steps:获取所述第二WiFi网络接口关联的无线网络的历史连接数据;obtaining historical connection data of the wireless network associated with the second WiFi network interface;根据所述历史连接数据确定高频连接时间段;Determine a high-frequency connection time period according to the historical connection data;确定所述高频连接时间段在每个预设时间区间内的时长;determining the duration of the high-frequency connection time period within each preset time interval;根据所述高频连接时间段在所述每个预设时间区间内的时长以及所述每个预设时间区间内单位时间对应的时长确定所述预设时段的持续时长。The duration of the preset period is determined according to the duration of the high-frequency connection period in each preset time interval and the duration corresponding to a unit time in each preset time interval.7.根据权利要求2所述的方法,其特征在于,所述第二WiFi网络接口关联的无线网络包括所述移动终端根据用户录入的WiFi网络的网络标识而搜索到的网络;7. The method according to claim 2, wherein the wireless network associated with the second WiFi network interface comprises a network searched by the mobile terminal according to the network identifier of the WiFi network entered by the user;所述预设时段的持续时长是根据用户的设置操作确定的,或者,The duration of the preset time period is determined according to the user's setting operation, or,所述预设时段的持续时长等于预设时长阈值。The duration of the preset time period is equal to the preset duration threshold.8.一种无线网络的连接装置,其特征在于,应用于支持双无线高保真WiFi功能的移动终端,所述移动终端通过第一WiFi网络接口接入第一无线网络,所述无线网络的连接装置包括处理单元和通信单元,其中,8. A device for connecting a wireless network, characterized in that it is applied to a mobile terminal that supports dual wireless high-fidelity WiFi functions, the mobile terminal accesses a first wireless network through a first WiFi network interface, and the connection of the wireless network The apparatus includes a processing unit and a communication unit, wherein,所述处理单元,用于在请求获得第二WiFi网络接口关联的无线网络的完全访问权时通过所述通信单元检测到所述第二WiFi网络接口关联的无线网络需要登录认证时,通过所述通信单元获取所述第二WiFi网络接口对应的无线网络列表,所述无线网络列表由通过所述第二WiFi网络接口扫描到的至少一个无线网络构成,所述无线网络列表中不包括当前第二WiFi网络接口关联的无线网络,所述第二WiFi网络接口扫描到至少一个无线网络的方式为主动扫描或被动扫描;在预设时段内通过所述通信单元检测所述无线网络列表中是否存在无需登录认证的无线网络;若否,则弹出所述第二WiFi网络接口关联的无线网络的认证窗口,通过所述认证窗口接收所述第二WiFi网络接口关联的无线网络的认证信息,以及在检测到所述认证信息正确时,与所述第二WiFi网络接口关联的无线网络的接入点AP设备完成关联过程以获得所述第二WiFi网络接口关联的无线网络的完全访问权;若是,则在所述预设时段内通过所述第二WiFi网络接口接入所述无需登录认证的无线网络。The processing unit is configured to, when requesting to obtain full access rights to the wireless network associated with the second WiFi network interface, detect through the communication unit that the wireless network associated with the second WiFi network interface requires login authentication, and perform the communication through the communication unit. The unit acquires a wireless network list corresponding to the second WiFi network interface, 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 current second WiFi A wireless network associated with a network interface, the second WiFi network interface scans at least one wireless network in an active scanning or passive scanning manner; within a preset period of time, it is detected by the communication unit whether there is no login required in the wireless network list The authenticated wireless network; if not, pop up the authentication window of the wireless network associated with the second WiFi network interface, and receive the authentication information of the wireless network associated with the second WiFi network interface through the authentication window, and when detecting When the authentication information is correct, the access point AP device of the wireless network associated with the second WiFi network interface completes the association process to obtain full access rights to the wireless network associated with the second WiFi network interface; Accessing the wireless network that does not require login authentication through the second WiFi network interface within the preset time period.9.一种移动终端,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-7任一项所述的方法中的步骤的指令。9. A mobile terminal, comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured by the processor Executing, the program includes instructions for performing the steps in the method of any of claims 1-7.10.一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-7任一项所述的方法。10. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201910785902.3A2019-08-232019-08-23Wireless network connection method and related deviceActiveCN110493779B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201910785902.3ACN110493779B (en)2019-08-232019-08-23Wireless network connection method and related device
PCT/CN2020/102114WO2021036558A1 (en)2019-08-232020-07-15Wireless network connection method and related apparatus

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910785902.3ACN110493779B (en)2019-08-232019-08-23Wireless network connection method and related device

Publications (2)

Publication NumberPublication Date
CN110493779A CN110493779A (en)2019-11-22
CN110493779Btrue CN110493779B (en)2022-01-25

Family

ID=68553473

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910785902.3AActiveCN110493779B (en)2019-08-232019-08-23Wireless network connection method and related device

Country Status (2)

CountryLink
CN (1)CN110493779B (en)
WO (1)WO2021036558A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110493779B (en)*2019-08-232022-01-25Oppo广东移动通信有限公司Wireless network connection method and related device
CN110611890B (en)*2019-09-172021-07-06Oppo广东移动通信有限公司 Notification message control method and related device
CN114531742B (en)*2020-10-302023-03-03荣耀终端有限公司Dual Wi-Fi connection method and electronic equipment
CN116095394A (en)*2022-12-282023-05-09海信视像科技股份有限公司Display device and multi-network connection method

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101622887A (en)*2007-02-212010-01-06高通股份有限公司 Wireless Node Search Program
CN105682191A (en)*2016-03-102016-06-15努比亚技术有限公司Mobile terminal and Wi-Fi control method
CN105682007A (en)*2016-01-302016-06-15努比亚技术有限公司Mobile terminal and WIFI (Wireless Fidelity) control method
CN106211254A (en)*2016-06-152016-12-07维沃移动通信有限公司 A network connection method and mobile terminal
CN106376054A (en)*2016-08-292017-02-01上海纽菲斯信息科技有限公司Dual-wifi system and network connection control method of mobile device
CN107635234A (en)*2017-09-292018-01-26努比亚技术有限公司Wi Fi control methods, mobile terminal and computer-readable recording medium
CN107770840A (en)*2017-09-292018-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 numberPriority datePublication dateAssigneeTitle
CN102791016B (en)*2012-07-042014-12-10大唐移动通信设备有限公司Access processing method and device
CN103619019B (en)*2013-11-292017-04-12孙伟力Network access authentication method for wireless network
CA2873008C (en)*2013-12-032017-02-14Emerson Electric Co.Providing wireless network authentication data to climate control system devices
US9674768B2 (en)*2014-07-282017-06-06Xiaomi Inc.Method and device for accessing wireless network
CN105228228B (en)*2015-09-222019-07-12Oppo广东移动通信有限公司A kind of method for intelligent connection and device of terminal network
CN105307286B (en)*2015-09-222018-11-27广东欧珀移动通信有限公司A kind of the WIFI method for intelligent connection and device of terminal
CN109219044A (en)*2017-07-062019-01-15中兴通讯股份有限公司Switching method, mobile terminal and the computer readable storage medium of wireless network
CN110493779B (en)*2019-08-232022-01-25Oppo广东移动通信有限公司Wireless network connection method and related device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101622887A (en)*2007-02-212010-01-06高通股份有限公司 Wireless Node Search Program
CN105682007A (en)*2016-01-302016-06-15努比亚技术有限公司Mobile terminal and WIFI (Wireless Fidelity) control method
CN105682191A (en)*2016-03-102016-06-15努比亚技术有限公司Mobile terminal and Wi-Fi control method
CN106211254A (en)*2016-06-152016-12-07维沃移动通信有限公司 A network connection method and mobile terminal
CN106376054A (en)*2016-08-292017-02-01上海纽菲斯信息科技有限公司Dual-wifi system and network connection control method of mobile device
CN107635234A (en)*2017-09-292018-01-26努比亚技术有限公司Wi Fi control methods, mobile terminal and computer-readable recording medium
CN107770840A (en)*2017-09-292018-03-06努比亚技术有限公司Focus signal display method, mobile terminal and computer-readable recording medium

Also Published As

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

Similar Documents

PublicationPublication DateTitle
CN110493779B (en)Wireless network connection method and related device
CN105991600B (en)Identity identifying method, device, server and terminal
US9936390B2 (en)Method and apparatus of triggering applications in a wireless environment
EP3857922B1 (en)Method and apparatus for providing services in local area data network
WO2017113527A1 (en)Method and device for switching virtual sim card, and terminal
US20160316368A1 (en)Method, apparatus, and system for selecting authentication algorithm
CN106658709B (en)Positioning method and device, electronic equipment and server
US9661493B2 (en)Apparatus and method for providing a wireless communication in a portable terminal
CN105939519B (en)A kind of authentication method and device
CN106507444A (en)A kind of method and device of scanning WAP
CN108574735A (en)Data processing method, terminal and computer readable storage medium
CN104363262A (en)Wireless access device, server, service information push system and service information push method
WO2020147646A1 (en)Navigation method and related product
CN107182042B (en)Short message channel quality evaluation method, device, medium and system
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
CN106162640A (en)A kind of portal authentication method and system
Alamleh et al.Architecture for continuous authentication in location-based services
CN107786557B (en) A team game acceleration method and related products
CN112817248B (en) A shared device management method, device, storage medium and electronic device
US20170134383A1 (en)Method and device for sharing a resource
CN110611890B (en) Notification message control method and related device
US20150350217A1 (en)Method and system for allowing access to electronic devices
CN109788518A (en)The method for tracing and device of mobile terminal
CN107454599B (en)Method for detecting terminal access pseudo base station and related product

Legal Events

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

[8]ページ先頭

©2009-2025 Movatter.jp