CN111669799A - Network connection method and device and electronic equipment - Google Patents

Network connection method and device and electronic equipment Download PDF

Info

Publication number
CN111669799A
CN111669799A CN202010437817.0A CN202010437817A CN111669799A CN 111669799 A CN111669799 A CN 111669799A CN 202010437817 A CN202010437817 A CN 202010437817A CN 111669799 A CN111669799 A CN 111669799A
Authority
CN
China
Prior art keywords
network
target
condition
module
under
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010437817.0A
Other languages
Chinese (zh)
Inventor
匡运生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010437817.0A priority Critical patent/CN111669799A/en
Publication of CN111669799A publication Critical patent/CN111669799A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/06Access restriction performed under specific conditions based on traffic conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Landscapes

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

Abstract

The application discloses a network connection method, a network connection device and electronic equipment, which belong to the technical field of communication, wherein the method comprises the following steps: searching recorded internet traffic and network quality parameters corresponding to a connectable target Wi-Fi network under the condition that the connectable target Wi-Fi network is scanned; and connecting the target Wi-Fi network under the condition that the internet surfing flow and the network quality parameter both meet preset conditions. The network connection method can improve the reliability of the connected Wi-Fi network, and therefore the internet surfing experience of a user after the user accesses the target Wi-Fi network is improved.

Description

Network connection method and device and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a network connection method, a network connection device and electronic equipment.
Background
At present, the automatic connection function of Wi-Fi (Wireless Fidelity) network has become the standard configuration function of electronic equipment. The Wi-Fi network automatic connection means that in the process that a user uses an electronic device historically, after the electronic device accesses a certain Wi-Fi network, the system can automatically store access information of the Wi-Fi network, when the electronic device searches a signal of a Wi-Fi network access point again, the Wi-Fi networking priority is higher than that of a data network, and under the condition that the Wi-Fi and the data network of the electronic device are both opened, the user does not need to input Wi-Fi network access information again, and the Wi-Fi network is automatically connected.
The existing Wi-Fi network is automatically connected, although the Wi-Fi network can be accessed without manual operation of a user and user data traffic can be saved, the existing Wi-Fi network has the following defects: when the searched connectable Wi-Fi network has poor quality, if the Wi-Fi network is directly connected, the internet surfing experience of the user is influenced. For example: when a user enters a certain market, the quality of a free Wi-Fi network provided by the market is poor due to the fact that multiple users access the network at the same time, but because the electronic equipment of the user is connected with the free Wi-Fi network provided by the market before, the electronic equipment can automatically access the Wi-Fi network after the user enters the market, the user is unaware of the situation, and finally the electronic equipment of the user cannot normally receive messages or refresh webpages and the like.
Disclosure of Invention
The embodiment of the application aims to provide a network connection method, which can solve the problem that the quality of a connected Wi-Fi network is poor in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present application provides a network connection method, where the method includes: searching recorded internet traffic and network quality parameters corresponding to a connectable target Wi-Fi network under the condition that the connectable target Wi-Fi network is scanned; and connecting the target Wi-Fi network under the condition that the internet surfing flow and the network quality parameter both meet preset conditions.
In a second aspect, an embodiment of the present application provides a network connection apparatus, where the apparatus includes: the searching module is used for searching the recorded internet traffic and network quality parameters corresponding to the target Wi-Fi network under the condition that the connectable target Wi-Fi network is scanned; and the connection module is used for connecting the target Wi-Fi network under the condition that the internet surfing flow and the network quality parameter both meet preset conditions.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the recorded internet access flow and network quality parameters corresponding to the target Wi-Fi network are searched under the condition that the connectable target Wi-Fi network is scanned; under the condition that both the internet flow and the network quality parameters meet preset conditions, the target Wi-Fi network is connected again under the condition that the network quality of the target Wi-Fi network is reliable during historical connection, the reliability of the connected Wi-Fi network can be improved, and therefore internet surfing experience of a user after the target Wi-Fi network is accessed is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart illustrating the steps of a method of network connectivity according to an embodiment of the present application;
FIG. 2 is a schematic view of a first prompt message display interface;
FIG. 3 is a flow chart illustrating the steps of a method for managing a Wi-Fi network according to an embodiment of the present application;
FIG. 4 is a second prompt message display interface diagram;
FIG. 5 is a flowchart illustrating steps of another Wi-Fi network management method according to an embodiment of the application;
fig. 6 is a block diagram showing a configuration of a network connection device according to an embodiment of the present application;
fig. 7 is a block diagram showing a configuration of an electronic apparatus according to an embodiment of the present application;
fig. 8 is a schematic diagram showing a hardware configuration of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein and that the objects identified as "first," "second," etc. are generally a class and do not limit the number of objects, e.g., a first object may be one or more. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The network connection method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of a network connection method according to an embodiment of the present application is shown.
The network connection method of the embodiment of the application comprises the following steps:
step 101: and searching the recorded internet access flow and network quality parameters corresponding to the target Wi-Fi network under the condition of scanning the connectable target Wi-Fi network.
Wherein the network quality parameter comprises at least one of: the uplink average transmission rate and the downlink average transmission rate.
The network connection device records network quality parameters of the Wi-Fi network connected in history.
In the historical use process of the network connection device, after the network connection device accesses the Wi-Fi network each time, network related parameters such as internet flow, upper and lower average transmission rates, downlink average transmission rate and the like are calculated and recorded, and the network quality of the Wi-Fi network can be represented by recording the network related parameters to be used as a basis for judging whether the subsequent network connection device is automatically connected with the Wi-Fi network or not. The network related parameters corresponding to the Wi-Fi network can be stored in a designated file or a cache of the network connection device and can be called by the system at any time. An exemplary recorded network-related parameter for each Wi-Fi network is shown in table 1:
Figure BDA0002502946020000041
step 102: and connecting the target Wi-Fi network under the condition that the uplink flow and the network quality parameters both meet preset conditions.
Under the condition that the internet traffic and the network quality parameters corresponding to the target Wi-Fi network both meet preset conditions, the target Wi-Fi network can be preliminarily judged to be an available network and has the conditions of providing conventional network services, so that the target Wi-Fi network is connected.
The preset conditions met by the internet traffic and the preset conditions met by the network quality parameters can be set by a person skilled in the art or a user according to actual requirements. For example: the internet traffic can be set to be higher than a preset traffic threshold value, and the internet traffic is determined to meet a preset condition. The method comprises the steps that under the condition that an uplink transmission rate is larger than a preset first rate threshold value and the uplink transmission rate is larger than a preset second rate threshold value, it is determined that a network quality parameter meets a preset condition; the method can also be used for determining that the network quality parameter meets the preset condition when only the uplink transmission rate is greater than a preset first rate threshold, or determining that the network quality parameter meets the preset condition when only the downlink transmission rate is greater than a preset second rate threshold.
Currently, there are mainly the following three ways to access the Wi-Fi network:
the method I comprises the following steps of password authentication: the Access mode is commonly found in a home Wi-Fi network, an Access Point (AP) corresponding to the Wi-Fi network sets an Access password, a user needs to input the password, and the Access to the Wi-Fi is realized after the password is verified by AP equipment; the AP is typically a wireless router, a mobile hotspot, etc.
Mode two, account verification: the access mode is commonly found in an enterprise Wi-Fi network or a Wi-Fi network in other public places, and the password is not required to be input when the access mode is used for accessing the Wi-Fi network of the type, but a corresponding account type verification mode is required after connection, for example, the account password registered by a user is input, and the Wi-Fi network can be accessed after verification.
Mode three, no verification: the access mode AP can be accessed as long as a Wi-Fi network corresponding to the AP is scanned without setting any authentication mode.
In the embodiment of the present application, a Wi-Fi network is accessed by using a third non-authentication method as an example.
In an optional embodiment, after the step of searching the recorded internet traffic and the network quality parameter corresponding to the target Wi-Fi network, the following process may be further performed:
under the condition that at least one of the uplink flow and the network quality parameter does not meet a preset condition, outputting first prompt information; receiving a first input of a first prompt message from a user; in response to the first input, connection to the target Wi-Fi network is disabled.
The first prompt message is used for prompting a user to scan a connectable target Wi-Fi network, the target Wi-Fi network is a low-speed network, and the low-speed network comprises an invalid network with an uplink/downlink transmission rate of 0. The first prompt message can be a message prompt box, a first option and a second option can be set in the message prompt box, the first option is used for triggering connection with a target Wi-Fi network, and the second option is used for triggering omission of the target Wi-Fi network. The first input may be a single-click operation, a double-click operation, a long-press operation or the like for the second option in the first prompt message. An exemplary first reminder information display interface is shown in FIG. 2, including in the display interface: "have found Wi-Fi network 'Rainbow' to be a low speed network, connected? The prompt of "connect" option is the first option, and "ignore" option is the second option, and the user can select touch "connect" option or "ignore" option according to the needs.
In the optional mode, when any one of the network flow and the network quality parameters does not meet the preset condition, the target Wi-Fi network is judged to be unavailable, and an alarm prompt is output to prompt a user to select other Wi-Fi networks for connection.
According to the method and the device, the recorded internet access flow and network quality parameters corresponding to the target Wi-Fi network are searched under the condition that the connectable target Wi-Fi network is scanned; under the condition that both the internet flow and the network quality parameters meet preset conditions, the target Wi-Fi network is connected again under the condition that the network quality of the target Wi-Fi network is reliable during historical connection, the reliability of the connected Wi-Fi network can be improved, and therefore internet surfing experience of a user after the target Wi-Fi network is accessed is improved.
For Wi-Fi networks frequently accessed such as home Wi-Fi networks and company Wi-Fi networks, the data transmission rate cannot be guaranteed to be stable all the time, and under certain conditions, if a large number of users access the same Wi-Fi network in a short time, problems such as network congestion, uplink network faults and AP faults can be caused, so that the data transmission rate of the Wi-Fi networks suddenly drops and even the Internet cannot be accessed, and finally, bad phenomena such as blockage, interruption and the like of upper-layer application operation can be caused, and the Internet access experience of the users is influenced. For this situation, after connecting to the target Wi-Fi network, the target Wi-Fi network needs to be managed.
In an optional embodiment, after the step of connecting to the target Wi-Fi network, the target Wi-Fi network management method shown in fig. 3 may be further executed, specifically including the following steps:
step 301: monitoring a network quality parameter of a target Wi-Fi network;
the average uplink/downlink transmission rate of the Wi-Fi network is influenced by the bandwidth of the network itself and also by the communication content of the user accessing the internet, so that the large fluctuation of the average uplink/downlink transmission rate is a normal phenomenon. However, if the uplink/downlink transmission rate of the Wi-Fi network is continuously lower than the preset threshold, it indicates that the Wi-Fi network is congested or even fails, and the user's online fluency may be affected. Therefore, in order to ensure that the network connection device can still enjoy good internet surfing experience after being connected with the target Wi-Fi network, the network quality parameters of the target Wi-Fi network need to be monitored.
Step 302: and detecting the response delay of the target Wi-Fi network under the condition that the network quality parameters in the first preset time are all smaller than a preset threshold value.
The first preset time period may be set by a person skilled in the art or a user according to actual needs, which is not specifically limited in this embodiment of the application. For example: set to 1 minute, 40 seconds, 30 seconds, etc.
If the network quality parameters are different, the preset thresholds are different, and if the network quality parameters are only the uplink average transmission rate, only the uplink average transmission rate threshold is set; if the network quality parameter is only the downlink average transmission rate, only setting a downlink average transmission rate threshold; if the network quality parameters include the downlink average transmission rate and the uplink average transmission rate, the downlink average transmission rate threshold and the uplink average transmission rate threshold need to be set. For example: the uplink average transmission rate threshold may be set to 10kbps and the downlink average transmission rate threshold may be set to 50 kbps.
One way to optionally detect response latency of a target Wi-Fi network is to: the system of the Wi-Fi network connection device sends a test data packet to a specified webpage address according to a preset frequency to obtain response delay; and the system calculates the average response delay of the test data packet and determines the average response delay as the response delay of the target Wi-Fi network.
The designated webpage address can be written into a corresponding configuration file as default configuration, and the designated webpage address can be set to the address of some large-scale portals or the portal website address of the Wi-Fi network connection device manufacturer. The daily visit amount of the appointed webpage address is large, and the operation of the websites is stable, so that the current network blocking condition can be accurately reflected by sending test data packets to the websites.
Step 303: and switching from the target Wi-Fi network to the data network under the condition that the response delay is greater than the preset delay.
Under the condition that the response delay of the target Wi-Fi network is larger than the preset delay, the target Wi-Fi network is blocked or fails, the network is blocked, and the internet surfing experience of a user is influenced.
In an alternative embodiment, in the case where the response delay is greater than the preset delay, the step of switching from the target Wi-Fi network to the data network comprises the sub-steps of:
outputting second prompt information under the condition that the response delay is greater than the preset delay; receiving a second input of a second prompt message from the user; switching from the target Wi-Fi network to the data network in response to the second input.
And the second prompt message is used for prompting the user that the target Wi-Fi network is a low-speed network currently. The second prompt message may be a message prompt box, and a third option and a fourth option may be set in the message prompt box, where the third option is used to trigger keeping of connection with the target Wi-Fi network, and the fourth option is used to trigger disconnection of the target Wi-Fi network. The second input may be a single-click operation, a double-click operation, a long-press operation, or the like for the fourth option in the second prompt information. An exemplary second toast display interface is shown in fig. 4, and includes in the display interface: "is the current network speed low, is the connection maintained? The prompt of 'holding' option is the third option, and 'disconnecting' option is the fourth option, and the user can select to touch the 'holding' option or the 'disconnecting' option according to the requirement. When the "hold" option is touched, no target Wi-Fi network switch is made.
The mode of outputting the second prompt information for the user to select whether to disconnect the network connection with the target Wi-Fi can meet the actual requirements of the user and improve the use experience of the user.
In the optional implementation mode, in the process of using the target Wi-Fi network, the response delay of the target Wi-Fi network is detected, the network quality of the target Wi-Fi network can be objectively judged according to the mode of judging the network quality of the Wi-Fi network by the response delay, and the reliability of the judgment result is ensured. Moreover, under the condition that the network quality of the Wi-Fi network is judged to be poor, the mode of automatically switching to the data network or outputting the second prompt message to prompt the user to switch the network can be avoided, and the influence on the internet surfing experience of the user caused by the fact that the network of the Wi-Fi network connecting device is continuously in a poor state can be avoided.
The management mode of the target Wi-Fi network provided in the embodiment of the application may consume data traffic, and network policy options can be set in the system for users to select according to different user requirements in view of the fact that users sensitive to the data traffic still exist at present. Network policy options may include, but are not limited to: the method comprises three options of 'traffic priority', 'experience priority' and 'traffic experience compromise'.
Flow priority: as long as an available Wi-Fi network is available, no data network switching is performed no matter the network quality of the connected Wi-Fi network; experience priority: automatically switching to a data network when the response delay of the currently connected Wi-Fi network is greater than the preset delay; the flow experience is considered: setting an upper limit of data traffic consumed in the current month, and if the data traffic consumed in the current month does not exceed the upper limit, giving "experience priority"; if the data flow consumed in the current month exceeds the upper limit, the flow is switched to the flow priority.
In step 303, when it is determined that the response delay of the currently connected target Wi-Fi network is greater than the preset delay, the situation of switching to the data network is automatically performed, corresponding to the network policy of "experience priority".
Under the condition that the network strategy option selected by the user is 'flow priority', even if the response delay of the currently connected target Wi-Fi network is greater than the preset delay, the target Wi-Fi network cannot be automatically switched to the data network. But may output the second prompt information for the user to select whether to switch to the data network or not, or may not output the second prompt information to prompt the user about the poor network quality.
In the specific implementation process, a user can select any network strategy to manage the connected target Wi-Fi network, the flexibility is strong, and the personalized requirements of the user can be met.
After the step of connecting the target Wi-Fi network, in addition to the target Wi-Fi network management method as shown in fig. 3, the target Wi-Fi network management method as shown in fig. 5 may be performed, including the steps of:
step 501: and monitoring the received signal strength of the access point corresponding to the target Wi-Fi network.
The access point corresponding to the target Wi-Fi network periodically broadcasts beacon frames, namely beacon frames, outwards, the beacon frames carry basic information of access point equipment, and when the Wi-Fi network connecting device receives beacon frame signals broadcast by the access point corresponding to the nearby Wi-Fi network, the Wi-Fi network connecting device equivalently searches the Wi-Fi network. After receiving the beacon frame signal, the Wi-Fi chip of the Wi-Fi network connection device calculates the received signal strength of the beacon frame signal, and the smaller the value of the received signal strength is, the weaker the received signal strength is represented. In the practical application process, in order to ensure Wi-Fi network connection and normal internet access, the received signal strength needs to be greater than a first preset signal strength threshold, and if the received signal strength of the access point is continuously lower than the first preset signal strength threshold, the network connection between the access point corresponding to the Wi-Fi network and the Wi-Fi network connection device cannot be maintained, so that intermittent internet disconnection occurs, and internet access experience of a user is affected.
In the embodiment of the application, the network connection can be successfully established and continuously maintained between the target Wi-Fi network and the network connection device, which indicates that the received signal strength of the access point corresponding to the target Wi-Fi network is greater than a first preset signal strength threshold value within a certain time before the Wi-Fi network connection device is accessed.
The first preset signal strength threshold value can be set by those skilled in the art according to actual requirements, for example: the setting is-90 dBm, -85dBm or-99 dBm, etc., which is not limited in this embodiment.
Step 502: and under the condition that the fluctuation amplitude of the received signal strength of the access point in the second preset time is greater than the preset amplitude, disconnecting the connection with the target Wi-Fi network.
The second preset time period may be set by a person skilled in the art or a user according to actual needs, which is not specifically limited in this embodiment of the application. For example: the second preset time period may be set to 20s, 30s, 1 minute, or the like.
After the network connection device is connected with the target Wi-Fi network, if the received signal strength of the access point corresponding to the target Wi-Fi network is suddenly high and suddenly low and the fluctuation amplitude is too large, the target Wi-Fi network shows an unstable state, which causes network disconnection and linear reduction of network transmission rate, and the fluency of user surfing the internet cannot be ensured, so the fluctuation amplitude of the received signal strength of the access point corresponding to the target Wi-Fi network needs to be monitored. And under the condition that the fluctuation amplitude of the received signal strength of the access point corresponding to the target Wi-Fi network is detected to be larger than the preset amplitude, in order to ensure the fluency of the user on the Internet, the connection with the target Wi-Fi network can be disconnected.
And the user can be reminded that other networks need to be switched for connection in a variable way by disconnecting the connection with the target Wi-Fi network. Optionally, after the connection with the target Wi-Fi network is disconnected, the data network is automatically connected, and this way of automatically connecting the data network does not need manual participation of the user, and can avoid a situation of transient network disconnection when the user manually switches the network.
In the method for managing the target Wi-Fi network provided in steps 501 to 502 in this embodiment of the application, by monitoring the received signal strength of the access point corresponding to the target Wi-Fi network, a problem can be timely found when the target Wi-Fi network is unstable, a user is prompted to perform network switching, and the use experience of the user can be improved.
It should be noted that, in the network connection method provided in the embodiment of the present application, the execution main body may be a network connection device, or a control module in the network connection device for executing the network connection method. In the embodiment of the present application, a network connection device executing a network connection method is taken as an example to describe the network connection device provided in the embodiment of the present application.
Fig. 6 is a block diagram of a network connection device for implementing an embodiment of the present application. The network connection apparatus shown in fig. 6 is used to implement the network connection method shown in fig. 1 to 5.
The network connection device 600 of the embodiment of the present application includes:
the searching module 601 is configured to search recorded internet traffic and network quality parameters corresponding to a target Wi-Fi network when a connectable target Wi-Fi network is scanned;
a connection module 602, configured to connect to the target Wi-Fi network when both the internet traffic and the network quality parameter meet preset conditions.
Optionally, the apparatus further comprises:
the first output module is used for outputting first prompt information under the condition that the searching module searches recorded internet traffic and network quality parameters corresponding to the target Wi-Fi network under the condition that the connectable target Wi-Fi network is scanned by the searching module, and at least one of the internet traffic and the network quality parameters does not meet preset conditions, wherein the first prompt information is used for prompting a user to scan the connectable target Wi-Fi network and the target Wi-Fi network is a low-speed network;
the first receiving module is used for receiving first input of the first prompt message from a user;
a first response module to prohibit connection to the target Wi-Fi network in response to the first input.
Optionally, the apparatus further comprises:
the first monitoring module is used for monitoring the network quality parameters of the target Wi-Fi network after the connection module is connected with the target Wi-Fi network;
the test module is used for detecting the response delay of the target Wi-Fi network under the condition that the network quality parameters are all smaller than a preset threshold value within a first preset time length;
and the switching module is used for switching the target Wi-Fi network to the data network under the condition that the response delay is greater than the preset delay.
Optionally, the switching module includes: the output sub-module is used for outputting second prompt information under the condition that the response delay is greater than the preset delay, wherein the second prompt information is used for prompting a user that the target Wi-Fi network is a low-speed network currently;
the receiving submodule is used for receiving second input of the second prompt message from the user;
a response submodule, configured to switch from the target Wi-Fi network to a data network in response to the second input.
Optionally, the apparatus further comprises:
the second monitoring module is used for monitoring the received signal strength of the access point corresponding to the target Wi-Fi network after the connection module is connected with the target Wi-Fi network;
and the disconnection module is used for disconnecting the connection with the target Wi-Fi network under the condition that the fluctuation amplitude of the received signal strength of the access point is greater than the preset amplitude in a second preset time period.
According to the network connection device provided by the embodiment of the application, the recorded internet access flow and network quality parameters corresponding to the target Wi-Fi network are searched under the condition that the connectable target Wi-Fi network is scanned; under the condition that both the internet flow and the network quality parameters meet preset conditions, the target Wi-Fi network is connected again under the condition that the network quality of the target Wi-Fi network is reliable during historical connection, the reliability of the connected Wi-Fi network can be improved, and therefore internet surfing experience of a user after the target Wi-Fi network is accessed is improved.
The network connection device shown in fig. 6 in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The network connection device shown in fig. 6 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The network connection device shown in fig. 6 provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 810 is configured to, in the case that a connectable target Wi-Fi network is scanned, search recorded internet traffic and network quality parameters corresponding to the target Wi-Fi network;
the network module 802 is configured to connect to the target Wi-Fi network when the internet traffic and the network quality parameter both meet preset conditions.
Optionally, after the step of searching the recorded internet traffic and network quality parameters corresponding to the target Wi-Fi network by the processor 810, the display unit 806 is configured to output first prompt information, where the first prompt information is used to prompt a user to scan a connectable target Wi-Fi network, and the target Wi-Fi network is a low-speed network;
a user input unit 807 for receiving a first input of the first prompt information by a user;
a network module 802 configured to disable connection to the target Wi-Fi network in response to the first input.
Optionally, after the step of connecting the network module 802 to the target Wi-Fi network, the processor 810 is further configured to monitor a network quality parameter of the target Wi-Fi network;
the network module 802 is further configured to detect a response delay of the target Wi-Fi network when the network quality parameters are all smaller than a preset threshold within a first preset duration; and switching from the target Wi-Fi network to a data network under the condition that the response delay is greater than the preset delay.
Optionally, the display unit 806 is further configured to output a second prompt message when the response delay is greater than a preset delay, where the second prompt message is used to prompt the user that the target Wi-Fi network is a low-speed network currently;
a user input unit 807 for receiving a second input of the second prompt information by the user;
a network module 802 further configured to switch from the target Wi-Fi network to a data network in response to the second input.
Optionally, after the step of connecting the network module 802 to the target Wi-Fi network, the processor 810 is further configured to monitor a received signal strength of an access point corresponding to the target Wi-Fi network; the network module 802 is further configured to disconnect the target Wi-Fi network when the fluctuation amplitude of the received signal strength of the access point within a second preset time period is greater than a preset amplitude.
According to the electronic equipment provided by the embodiment of the application, the recorded internet access flow and network quality parameters corresponding to the target Wi-Fi network are searched under the condition that the connectable target Wi-Fi network is scanned; under the condition that both the internet flow and the network quality parameters meet preset conditions, the target Wi-Fi network is connected again under the condition that the network quality of the target Wi-Fi network is reliable during historical connection, the reliability of the connected Wi-Fi network can be improved, and therefore internet surfing experience of a user after the target Wi-Fi network is accessed is improved.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the graphics processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A method of network connectivity, the method comprising:
searching recorded internet traffic and network quality parameters corresponding to a connectable target Wi-Fi network under the condition that the connectable target Wi-Fi network is scanned;
and connecting the target Wi-Fi network under the condition that the internet surfing flow and the network quality parameter both meet preset conditions.
2. The method according to claim 1, wherein after the step of searching the recorded internet traffic and network quality parameters corresponding to the target Wi-Fi network when the connectable target Wi-Fi network is scanned, the method further comprises:
under the condition that at least one of the internet traffic and the network quality parameters does not meet preset conditions, outputting first prompt information, wherein the first prompt information is used for prompting a user to scan a connectable target Wi-Fi network, and the target Wi-Fi network is a low-speed network; receiving a first input of the first prompt message from a user;
in response to the first input, refraining from connecting to the target Wi-Fi network.
3. The method of claim 1, wherein after the step of connecting to the target Wi-Fi network, the method further comprises:
monitoring a network quality parameter of the target Wi-Fi network;
detecting response delay of the target Wi-Fi network under the condition that the network quality parameters are all smaller than a preset threshold value within a first preset time length;
and switching from the target Wi-Fi network to a data network under the condition that the response delay is greater than the preset delay.
4. The method of claim 3, wherein the switching from the target Wi-Fi network to a data network if the response latency is greater than a preset latency comprises:
under the condition that the response delay is greater than the preset delay, outputting second prompt information, wherein the second prompt information is used for prompting a user that the target Wi-Fi network is a low-speed network currently;
receiving a second input of the second prompt message from the user;
switching from the target Wi-Fi network to a data network in response to the second input.
5. The method of claim 1, wherein after the step of connecting to the target Wi-Fi network, the method further comprises:
monitoring the received signal strength of an access point corresponding to the target Wi-Fi network;
and under the condition that the fluctuation amplitude of the received signal strength of the access point is greater than the preset amplitude within a second preset time, disconnecting the connection with the target Wi-Fi network.
6. A network connection apparatus, the apparatus comprising:
the searching module is used for searching the recorded internet traffic and network quality parameters corresponding to the target Wi-Fi network under the condition that the connectable target Wi-Fi network is scanned;
and the connection module is used for connecting the target Wi-Fi network under the condition that the internet surfing flow and the network quality parameter both meet preset conditions.
7. The apparatus of claim 6, further comprising:
the first output module is used for outputting first prompt information under the condition that the searching module searches recorded internet traffic and network quality parameters corresponding to the target Wi-Fi network under the condition that the connectable target Wi-Fi network is scanned by the searching module, and at least one of the internet traffic and the network quality parameters does not meet preset conditions, wherein the first prompt information is used for prompting a user to scan the connectable target Wi-Fi network and the target Wi-Fi network is a low-speed network;
the first receiving module is used for receiving first input of the first prompt message from a user;
a first response module to prohibit connection to the target Wi-Fi network in response to the first input.
8. The apparatus of claim 6, further comprising:
the first monitoring module is used for monitoring the network quality parameters of the target Wi-Fi network after the connection module is connected with the target Wi-Fi network;
the test module is used for detecting the response delay of the target Wi-Fi network under the condition that the network quality parameters are all smaller than a preset threshold value within a first preset time length;
and the switching module is used for switching the target Wi-Fi network to the data network under the condition that the response delay is greater than the preset delay.
9. The apparatus of claim 8, wherein the switching module comprises:
the output sub-module is used for outputting second prompt information under the condition that the response delay is greater than the preset delay, wherein the second prompt information is used for prompting a user that the target Wi-Fi network is a low-speed network currently;
the receiving submodule is used for receiving second input of the second prompt message from the user;
a response submodule, configured to switch from the target Wi-Fi network to a data network in response to the second input.
10. The apparatus of claim 6, further comprising:
the second monitoring module is used for monitoring the received signal strength of the access point corresponding to the target Wi-Fi network after the connection module is connected with the target Wi-Fi network;
and the disconnection module is used for disconnecting the connection with the target Wi-Fi network under the condition that the fluctuation amplitude of the received signal strength of the access point is greater than the preset amplitude in a second preset time period.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the network connection method of any of claims 1 to 5.
CN202010437817.0A 2020-05-21 2020-05-21 Network connection method and device and electronic equipment Pending CN111669799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010437817.0A CN111669799A (en) 2020-05-21 2020-05-21 Network connection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010437817.0A CN111669799A (en) 2020-05-21 2020-05-21 Network connection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111669799A true CN111669799A (en) 2020-09-15

Family

ID=72384293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010437817.0A Pending CN111669799A (en) 2020-05-21 2020-05-21 Network connection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111669799A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112469099A (en) * 2020-11-25 2021-03-09 维沃移动通信有限公司 Networking control method, networking control device, electronic equipment and storage medium
CN113329461A (en) * 2021-06-04 2021-08-31 永旗(北京)科技有限公司 Connection switching method for smart phone WIFI and data network
CN114501566A (en) * 2022-02-24 2022-05-13 维沃移动通信有限公司 Network switching method and device
CN114650573A (en) * 2020-12-21 2022-06-21 深圳市万普拉斯科技有限公司 Network delay processing method and device and mobile terminal
CN114786278A (en) * 2021-01-22 2022-07-22 深圳市万普拉斯科技有限公司 Network connection method and device and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869574A (en) * 2015-05-22 2015-08-26 小米科技有限责任公司 Wireless network connection method and apparatus
CN107241770A (en) * 2017-05-16 2017-10-10 北京小米移动软件有限公司 Method for connecting network and device
US20180242148A1 (en) * 2017-02-20 2018-08-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Wi-fi connection method, mobile terminal and storage medium
CN108632823A (en) * 2018-05-14 2018-10-09 Oppo广东移动通信有限公司 A kind of method for switching network, terminal and computer storage media
CN111093238A (en) * 2019-11-25 2020-05-01 Oppo广东移动通信有限公司 Wireless network control method and device, storage medium and electronic equipment
CN111182595A (en) * 2019-12-30 2020-05-19 Oppo广东移动通信有限公司 Network switching method and device, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869574A (en) * 2015-05-22 2015-08-26 小米科技有限责任公司 Wireless network connection method and apparatus
US20180242148A1 (en) * 2017-02-20 2018-08-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Wi-fi connection method, mobile terminal and storage medium
CN107241770A (en) * 2017-05-16 2017-10-10 北京小米移动软件有限公司 Method for connecting network and device
CN108632823A (en) * 2018-05-14 2018-10-09 Oppo广东移动通信有限公司 A kind of method for switching network, terminal and computer storage media
CN111093238A (en) * 2019-11-25 2020-05-01 Oppo广东移动通信有限公司 Wireless network control method and device, storage medium and electronic equipment
CN111182595A (en) * 2019-12-30 2020-05-19 Oppo广东移动通信有限公司 Network switching method and device, storage medium and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112469099A (en) * 2020-11-25 2021-03-09 维沃移动通信有限公司 Networking control method, networking control device, electronic equipment and storage medium
CN112469099B (en) * 2020-11-25 2023-06-23 维沃移动通信有限公司 Networking control method, networking control device, electronic equipment and storage medium
CN114650573A (en) * 2020-12-21 2022-06-21 深圳市万普拉斯科技有限公司 Network delay processing method and device and mobile terminal
CN114650573B (en) * 2020-12-21 2023-10-27 深圳市万普拉斯科技有限公司 Network delay processing method and device and mobile terminal
CN114786278A (en) * 2021-01-22 2022-07-22 深圳市万普拉斯科技有限公司 Network connection method and device and mobile terminal
CN113329461A (en) * 2021-06-04 2021-08-31 永旗(北京)科技有限公司 Connection switching method for smart phone WIFI and data network
CN114501566A (en) * 2022-02-24 2022-05-13 维沃移动通信有限公司 Network switching method and device

Similar Documents

Publication Publication Date Title
CN111669799A (en) Network connection method and device and electronic equipment
CN108834203B (en) Network switching method, device, terminal and storage medium
CN104363638B (en) router signal intensity adjusting method and device
CN111182602A (en) SIM card switching method of mobile terminal, mobile terminal and computer storage medium
US20140082057A1 (en) Data transfer method and system
US8738094B2 (en) Automatically enabling wireless communication
CN105635084A (en) Apparatus and method for authenticating terminal
CN112738856A (en) Cell switching method and device and user equipment
CN105828408B (en) Method and device for controlling internet surfing time
CN106954248A (en) A kind of method for network access and device
WO2022111407A1 (en) Cell handover method and apparatus
CN111866976B (en) Network switching method and device
CN113891410A (en) IMS network registration method and device, terminal and readable storage medium
WO2016180240A1 (en) Network application management method, device and terminal
US9736711B2 (en) Methods and devices for adjusting signal strength of router
WO2021052128A1 (en) Notification message control method and related apparatus
CN107396408B (en) Method and system for recovering user service when communication link changes
KR101993778B1 (en) Apparatus and Method for Displaying Indicator According to Interwork Network
CN113038506B (en) Measuring method and device
CN112673663A (en) Pseudo base station processing method, pseudo base station processing device, mobile terminal and storage medium
CN112601241A (en) Network access method and device
KR100991629B1 (en) Apparatus and method of dualizing network connection path
CN114650616A (en) Network mode control method and device
CN106376096B (en) Wireless network connection method and equipment thereof
CN114501566A (en) Network switching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200915

RJ01 Rejection of invention patent application after publication