CN112929825A - Terminal WiFi control method and device, storage medium and mobile terminal - Google Patents
Terminal WiFi control method and device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN112929825A CN112929825A CN202110291555.6A CN202110291555A CN112929825A CN 112929825 A CN112929825 A CN 112929825A CN 202110291555 A CN202110291555 A CN 202110291555A CN 112929825 A CN112929825 A CN 112929825A
- Authority
- CN
- China
- Prior art keywords
- wifi
- network
- preset
- detected
- candidate
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/02—Access restriction performed under specific conditions
- H04W48/04—Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application provides a terminal WiFi control method, a device, a storage medium and a mobile terminal, wherein the method comprises the following steps: if the current WiFi function is not started, acquiring a currently detected WiFi network; determining candidate WiFi networks from the WiFi networks; when the number of the candidate WiFi networks is not 0, displaying a specific operation area on a user page; detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected to be preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks; and establishing connection with the target WiFi network. The embodiment of the application can accelerate the connection speed of WiFi, achieves the effect that WiFi connection is completed once opened, improves user experience, and brings convenience to users.
Description
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a terminal WiFi control method, apparatus, storage medium, and mobile terminal.
Background
With the development of the storage technology of the mobile terminal, the mobile terminal is provided with a WiFi function, a mobile terminal user controls the opening and closing of the WiFi function through the switch operation on the touch screen, usually, the WiFi is connected with an access point which is connected at the current position once through access after the WiFi is opened, then network connection is carried out, for example, the mobile terminal is connected with the access point A at a certain position originally, when the mobile terminal arrives at the position next time, the mobile terminal can be automatically connected with the access point A when the WiFi is opened through the operation on the touch screen, and the user only opens the WiFi through touch in the whole process; however, in the above process, it still takes a certain time until the user turns on the touch WiFi switch until the WiFi is actually connected.
Therefore, there is a problem in the art that needs to be improved and developed.
Disclosure of Invention
The embodiment of the application provides a terminal WiFi control method, a terminal WiFi control device, a storage medium and a mobile terminal, when WiFi is switched on and off through a touch screen in the mobile terminal, the connection speed of WiFi can be increased, the effect that WiFi connection is completed once the mobile terminal is switched on is achieved, user experience is improved, and convenience is brought to users.
The embodiment of the application provides a terminal WiFi control method, which comprises the following steps: if the current WiFi function is not started, acquiring a currently detected WiFi network; determining candidate WiFi networks from the WiFi networks; when the number of the candidate WiFi networks is not 0, displaying a specific operation area on a user page; detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected to be preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks; and establishing connection with the target WiFi network.
In some embodiments, the selecting a target WiFi network to be connected from the candidate WiFi networks if the touch operation in the specific operation area is a preset network connection operation includes: if the touch operation aiming at the specific operation area is a long-press operation, and the duration of the long-press operation exceeds a preset first threshold duration, determining to trigger a preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks; and/or if the touch operation aiming at the specific operation area is click operation and the continuous click frequency of the click operation reaches a preset first threshold value, determining to trigger preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks, and/or if the touch operation aiming at the specific operation area is sliding operation and the sliding track of the sliding operation is matched with the preset sliding track, determining to trigger preset network connection operation, and selecting the target WiFi network to be connected from the candidate WiFi networks.
In some embodiments, the selecting a target WiFi network to connect to from the candidate WiFi networks includes: displaying a candidate WiFi network list, the candidate WiFi list comprising the candidate WiFi networks; when the selection operation aiming at the candidate WiFi network is detected, the candidate WiFi network selected by the selection operation is determined as the target WiFi network.
In some embodiments, the determining candidate WiFi networks from the WiFi networks comprises: acquiring a historical connection record of the WiFi network; and determining the WiFi network which is connected to be a successful WiFi network and the WiFi network without the password in the currently detected WiFi networks as candidate WiFi networks based on the historical connection records.
In some embodiments, after the confirming triggers the preset network connection operation, the method further comprises: detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected within a first preset time length and is a preset network state display operation, displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
In some embodiments, after the triggering the preset network connection operation, the method further includes: detecting touch operation aiming at the specific operation area; if the touch operation aiming at the specific operation area is detected within a second preset time length, the operation is a preset network disconnection operation, and the detection of the touch operation aiming at the specific operation area is continued; if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time after the preset network disconnection operation is detected, closing the WiFi function, otherwise, not executing the operation of closing the WiFi function, and displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
In some embodiments, the preset network connection operation, network disconnection operation, and network state display operation include the same type of touch operation; the type of the touch operation contained in the network connection operation, the network disconnection operation and the network state display operation is a click operation;
if the touch operation aiming at the specific operation area is detected within the second preset time length, the detection of the touch operation aiming at the specific operation area is continued for the preset network disconnection operation, and the detection comprises the following steps:
if the touch operation aiming at the specific operation area is detected to be the click operation within a second preset time length, and the sum of the duration times of the click operation and the preset first threshold value is smaller than a preset second threshold value, determining to trigger a preset network disconnection operation, and continuing to detect the touch operation aiming at the specific operation area;
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time length after the preset network disconnection operation is detected, the WiFi function is closed, otherwise, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed, wherein the operation comprises:
if the touch operation aiming at the specific operation area is detected to be the click operation within a third preset time length after the preset network disconnection operation is detected, and the sum of the continuous times of the click operation, the continuous times of the click operation corresponding to the preset network disconnection operation and the preset first threshold value is smaller than a preset second threshold value, determining that the touch operation matched with the preset network state display operation is not detected, and closing the WiFi function; and if the sum of the duration times of the clicking operation, the duration times of the clicking operation corresponding to the preset network disconnection operation and the preset first threshold value is equal to a preset second threshold value, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed.
The embodiment of the application provides a terminal WiFi controlling means, its characterized in that:
the first detection unit is used for acquiring the WiFi network detected at present if the WiFi function is not started at present;
a first selecting unit, configured to select an available WiFi network from the WiFi networks as a candidate WiFi network;
the first display unit is used for displaying a specific operation area on a user page when the number of the candidate WiFi networks is not 0;
the second detection unit is used for detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected to be preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks;
and the first connecting unit is used for establishing connection with the target WiFi network.
In some embodiments, the second detection unit further includes:
a first detection subunit, configured to perform detection of a touch operation on the specific operation area, and if the touch operation on the specific operation area is detected within a first preset time period and is a preset network status display operation, display WiFi status information, where the WiFi status information includes: description information and connection status information of the target WiFi network;
the second detection subunit is configured to, if the touch operation of the specific operation area is detected within a second preset duration, perform detection of the touch operation on the specific operation area continuously for a preset network disconnection operation;
a third detecting subunit, configured to close the WiFi function if a touch operation matching a preset network state display operation is not detected in the specific operation area within a third preset time period after the preset network disconnection operation is detected, otherwise, not perform the operation of closing the WiFi function, and display WiFi state information, where the WiFi state information includes: description information and connection status information of the target WiFi network.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is caused to execute the steps in the WiFi control method for a terminal.
The embodiment of the application further provides a mobile terminal, which comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is used for executing the steps in the terminal WiFi control method by calling the computer program stored in the memory.
According to the embodiment of the application, if the applied terminal is in a state that the WiFi function is not started at present, the WiFi network detected at present is obtained; determining candidate WiFi networks from the WiFi networks; when the number of the candidate WiFi networks is not 0, displaying a specific operation area on a user page; detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected to be preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks; and establishing connection with the target WiFi network. When carrying out the wiFi switch through the touch-sensitive screen in mobile terminal, this application embodiment can accelerate wiFi's connection speed, reaches the effect that just accomplish the wiFi and connect once, promotes user experience, brings the convenience for the user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a flowchart illustrating a WiFi control method for a terminal according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a first structure of a terminal WiFi control apparatus according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a second structure of a terminal WiFi control apparatus according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a third structure of a terminal WiFi control apparatus according to an embodiment of the present application.
Fig. 5 is a fourth schematic structural diagram of a terminal WiFi control apparatus according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides a terminal WiFi control method which can be applied to a mobile terminal. The mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 1, fig. 1 is a schematic flowchart of a WiFi control method for a terminal according to an embodiment of the present disclosure. The terminal WiFi control method is applied to a mobile terminal, and the mobile terminal is provided with a screen, a camera and the like. The method may comprise the steps of:
and step 101, if the current WiFi function is not started, acquiring the WiFi network detected at present.
Specifically, the current position of the terminal is detected, the WiFi network connection record of the terminal is obtained, the Bluetooth and the data link can be opened to assist positioning when necessary, and all WiFi networks in the environment where the terminal is located are detected.
Specifically, the detected WiFi network of the environment is connected according to the WiFi network connection record obtained from the terminal, and the WiFi network to which the terminal can connect is used as a candidate WiFi network.
In some embodiments, the determining candidate WiFi networks from the WiFi networks comprises:
acquiring a historical connection record of the WiFi network; and determining the WiFi network which is connected to be a successful WiFi network and the WiFi network without the password in the currently detected WiFi networks as candidate WiFi networks based on the historical connection records.
And 103, when the number of the candidate WiFi networks is not 0, displaying a specific operation area on a user page.
Specifically, when the number of the candidate WiFi networks is not 0, a certain area is selected as the specific operation area on the interface of the terminal, and the shape of the area may be preset to be a rectangle, a circle, or another shape. The touch function of the specific operation area can be called in a screen state, namely touch detection can be carried out in the screen state. And if the number of the candidate WiFi networks is 0, ending the detection.
And 104, detecting touch operation aiming at the specific operation area, and selecting a target WiFi network to be connected from the candidate WiFi networks if the touch operation aiming at the specific operation area is detected to be preset network connection operation.
Specifically, the touch operation is detected in a set specific operation area, and if the touch operation meeting the preset condition is detected, corresponding setting is performed according to a preset mapping relation, so that a target WiFi network to be connected is selected from candidate WiFi networks.
The preset touch operation condition may be that a corresponding setting action is triggered if a touch action with a touch duration exceeding a predetermined time is detected, and correspondingly, the preset specific touch operation may also be a specific touch action track, such as a left-right slide, a top-bottom slide, a circle or other touch tracks, and if a touch action conforming to the preset specific operation is detected, a corresponding setting action is triggered.
In some embodiments, if the touch operation in the specific operation area is a preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks includes:
if the touch operation aiming at the specific operation area is a long-press operation, and the duration of the long-press operation exceeds a preset first threshold duration, determining to trigger a preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks; and/or
If the touch operation aiming at the specific operation area is click operation and the continuous click frequency of the click operation reaches a preset first threshold value, confirming to trigger preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks and/or selecting a target WiFi network to be connected from the candidate WiFi networks
And if the touch operation aiming at the specific operation area is a sliding operation, and the sliding track of the sliding operation is matched with a preset sliding track, confirming to trigger a preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks.
In some embodiments, after the confirming triggers the preset network connection operation, the method further comprises:
detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected within a first preset time length and is a preset network state display operation, displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
In some embodiments, after the triggering the preset network connection operation, the method further includes:
detecting touch operation aiming at the specific operation area; if the touch operation aiming at the specific operation area is detected within a second preset time length, the operation is a preset network disconnection operation, and the detection of the touch operation aiming at the specific operation area is continued; if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time after the preset network disconnection operation is detected, closing the WiFi function, otherwise, not executing the operation of closing the WiFi function, and displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
In some embodiments, the preset network connection operation, network disconnection operation, and network state display operation include the same type of touch operation; the type of the touch operation contained in the network connection operation, the network disconnection operation and the network state display operation is a click operation;
if the touch operation aiming at the specific operation area is detected within the second preset time length, the detection of the touch operation aiming at the specific operation area is continued for the preset network disconnection operation, and the detection comprises the following steps:
if the touch operation aiming at the specific operation area is detected to be the click operation within a second preset time length, and the sum of the duration times of the click operation and the preset first threshold value is smaller than a preset second threshold value, determining to trigger a preset network disconnection operation, and continuing to detect the touch operation aiming at the specific operation area;
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time length after the preset network disconnection operation is detected, the WiFi function is closed, otherwise, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed, wherein the operation comprises:
if the touch operation aiming at the specific operation area is detected to be the click operation within a third preset time length after the preset network disconnection operation is detected, and the sum of the continuous times of the click operation, the continuous times of the click operation corresponding to the preset network disconnection operation and the preset first threshold value is smaller than a preset second threshold value, determining that the touch operation matched with the preset network state display operation is not detected, and closing the WiFi function; and if the sum of the duration times of the clicking operation, the duration times of the clicking operation corresponding to the preset network disconnection operation and the preset first threshold value is equal to a preset second threshold value, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed.
And 105, establishing connection with the target WiFi network.
Specifically, communication connection is established with the determined available target WiFi network.
In some embodiments, the selecting a target WiFi network to connect to from the candidate WiFi networks includes: displaying a candidate WiFi network list, the candidate WiFi list comprising the candidate WiFi networks; when the selection operation aiming at the candidate WiFi network is detected, the candidate WiFi network selected by the selection operation is determined as the target WiFi network.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, the WiFi control method for a terminal provided in the embodiment of the present application obtains a WiFi network detected at a current location; determining available WiFi networks from the WiFi networks as candidate WiFi networks; when the number of the candidate WiFi networks is not 0, displaying a specific operation area on a user page; detecting touch operation aiming at the specific operation area, and if the touch operation of the specific operation area is preset specific touch operation, selecting a target WiFi network to be connected from the candidate WiFi networks; and establishing connection with the WiFi network. When carrying out the wiFi switch through the touch-sensitive screen in mobile terminal, this application embodiment can accelerate wiFi's connection speed, reaches the effect that just accomplish the wiFi and connect once, promotes user experience, brings the convenience for the user.
The embodiment of the application further provides a terminal WiFi control device, the terminal WiFi control device can be integrated in the mobile terminal, and the mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 2, fig. 2 is a first structural diagram of a terminal WiFi control apparatus according to an embodiment of the present disclosure. The terminal WiFi control apparatus 20 may include:
a first detection unit 201, configured to acquire a WiFi network detected at a current location;
a first selecting unit 202, configured to determine an available WiFi network from the WiFi networks as a candidate WiFi network;
a first display unit 203 for displaying a specific operation area on a user page when the number of the candidate WiFi networks is not 0;
a second detecting unit 204, configured to perform touch operation detection on the specific operation area, and if the touch operation of the specific operation area is a preset specific touch operation, select a target WiFi network to be connected from the candidate WiFi networks;
a first connection unit 205, configured to establish a connection with the WiFi network.
In some embodiments, the first detecting unit 201 is specifically configured to: and connecting the detected WiFi network of the environment according to the WiFi network connection record obtained from the terminal, and taking the WiFi network which can be connected by the terminal as a candidate WiFi network.
In some embodiments, the first selecting unit 202 is specifically configured to: determining candidate WiFi networks from the WiFi networks, comprising: acquiring a historical connection record of the WiFi network; and determining the WiFi network which is connected to be a successful WiFi network and the WiFi network without the password in the currently detected WiFi networks as candidate WiFi networks based on the historical connection records.
In some embodiments, the first display unit 203 is specifically configured to: when the number of the candidate WiFi networks is not 0, a specific operation area is displayed on the user page.
Specifically, when the number of the candidate WiFi networks is not 0, a certain area is selected as the specific operation area on the interface of the terminal, and the shape of the area may be preset to be a rectangle, a circle, or another shape. The touch function of the specific operation area can be called in a screen state, namely touch detection can be carried out in the screen state.
In some embodiments, the second detecting unit 204 is specifically configured to: if the touch operation in the specific operation area is a preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks, including:
if the touch operation aiming at the specific operation area is a long-press operation, and the duration of the long-press operation exceeds a preset first threshold duration, determining to trigger a preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks; and/or if the touch operation aiming at the specific operation area is click operation and the continuous click frequency of the click operation reaches a preset first threshold value, determining to trigger preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks, and/or if the touch operation aiming at the specific operation area is sliding operation and the sliding track of the sliding operation is matched with the preset sliding track, determining to trigger preset network connection operation, and selecting the target WiFi network to be connected from the candidate WiFi networks.
In some embodiments, the second detecting unit 204 is specifically configured to: after the confirming triggers the preset network connection operation, the method further comprises the following steps:
detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected within a first preset time length and is a preset network state display operation, displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
In some embodiments, the second detecting unit 204 is specifically configured to: after the triggering the preset network connection operation, the method further comprises:
detecting touch operation aiming at the specific operation area;
if the touch operation aiming at the specific operation area is detected within a second preset time length, the operation is a preset network disconnection operation, and the detection of the touch operation aiming at the specific operation area is continued;
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time after the preset network disconnection operation is detected, closing the WiFi function, otherwise, not executing the operation of closing the WiFi function, and displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
In some embodiments, the second detecting unit 204 is specifically configured to:
the preset network connection operation, network disconnection operation and network state display operation comprise the same touch operation type; the type of the touch operation contained in the network connection operation, the network disconnection operation and the network state display operation is a click operation;
if the touch operation aiming at the specific operation area is detected within the second preset time length, the detection of the touch operation aiming at the specific operation area is continued for the preset network disconnection operation, and the detection comprises the following steps:
if the touch operation aiming at the specific operation area is detected to be the click operation within a second preset time length, and the sum of the duration times of the click operation and the preset first threshold value is smaller than a preset second threshold value, determining to trigger a preset network disconnection operation, and continuing to detect the touch operation aiming at the specific operation area;
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time length after the preset network disconnection operation is detected, the WiFi function is closed, otherwise, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed, wherein the operation comprises:
if the touch operation aiming at the specific operation area is detected to be the click operation within a third preset time length after the preset network disconnection operation is detected, and the sum of the continuous times of the click operation, the continuous times of the click operation corresponding to the preset network disconnection operation and the preset first threshold value is smaller than a preset second threshold value, determining that the touch operation matched with the preset network state display operation is not detected, and closing the WiFi function; and if the sum of the duration times of the clicking operation, the duration times of the clicking operation corresponding to the preset network disconnection operation and the preset first threshold value is equal to a preset second threshold value, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed.
As can be seen from the above, the terminal WiFi control apparatus 20 provided in this embodiment of the application obtains, through the first detection unit 201, the WiFi network detected at the current location; the first selection unit 202 determines available WiFi networks from the WiFi networks as candidate WiFi networks; the first display unit 203 displays a specific operation area on a user page when the number of the candidate WiFi networks is not 0; the second detecting unit 204 detects a touch operation for the specific operation area, and selects a target WiFi network to be connected from the candidate WiFi networks if the touch operation of the specific operation area is a preset specific touch operation; the first connection unit 205 establishes a connection with the WiFi network.
When carrying out the wiFi switch through the touch-sensitive screen in mobile terminal, this application embodiment can accelerate wiFi's connection speed, reaches the effect that just accomplish the wiFi and connect once, promotes user experience, brings the convenience for the user.
Referring to fig. 3, fig. 3 is a second structural diagram of a terminal WiFi control apparatus according to an embodiment of the present application, where the terminal WiFi control apparatus 30 includes a memory 120, one or more processors 180, and one or more applications, where the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a first detection unit 301, a first selection unit 302, a first display unit 303, a second detection unit 304, and a first connection unit 305.
For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
a first detection unit 301, configured to acquire a WiFi network detected at a current location;
a first selecting unit 302, configured to determine an available WiFi network from the WiFi networks as a candidate WiFi network;
a first display unit 303, configured to display a specific operation area on a user page when the number of candidate WiFi networks is not 0;
a second detecting unit 304, configured to perform touch operation detection on the specific operation area, and select a target WiFi network to be connected from the candidate WiFi networks if the touch operation of the specific operation area is a preset specific touch operation;
a first connection unit 305, configured to establish a connection with the WiFi network.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a third structure of a terminal WiFi control apparatus according to an embodiment of the present application. The terminal WiFi control apparatus 40 may include:
a first detection unit 401, configured to acquire a WiFi network detected at a current location;
a first selecting unit 402, configured to determine an available WiFi network from the WiFi networks as a candidate WiFi network;
a first display unit 403, configured to display a specific operation area on a user page when the number of candidate WiFi networks is not 0;
a second detecting unit 404, configured to perform touch operation detection on the specific operation area, and if the touch operation of the specific operation area is a preset specific touch operation, select a target WiFi network to be connected from the candidate WiFi networks;
a first detecting subunit 4041, configured to perform detection of a touch operation on the specific operation area, and if the touch operation on the specific operation area is detected within a first preset time period and is a preset network status display operation, display WiFi status information, where the WiFi status information includes: description information and connection status information of the target WiFi network;
a second detecting subunit 4042, configured to, if the touch operation in the specific operation area is detected within a second preset time period, perform detection of the touch operation on the specific operation area continuously for a preset network disconnection operation;
a third detecting subunit 4043, configured to close the WiFi function if a touch operation matching a preset network state display operation is not detected in the specific operation area within a third preset time period after the preset network disconnection operation is detected, otherwise, the operation of closing the WiFi function is not executed, and WiFi state information is displayed, where the WiFi state information includes: description information and connection status information of the target WiFi network.
A first connection unit 405, configured to establish a connection with the WiFi network.
In some embodiments, the first detecting unit 401 is specifically configured to: and connecting the detected WiFi network of the environment according to the WiFi network connection record obtained from the terminal, and taking the WiFi network which can be connected by the terminal as a candidate WiFi network.
In some embodiments, the first selecting unit 402 is specifically configured to: determining candidate WiFi networks from the WiFi networks, comprising: acquiring a historical connection record of the WiFi network; and determining the WiFi network which is connected to be a successful WiFi network and the WiFi network without the password in the currently detected WiFi networks as candidate WiFi networks based on the historical connection records.
In some embodiments, the first display unit 403 is specifically configured to: when the number of the candidate WiFi networks is not 0, a specific operation area is displayed on the user page.
Specifically, when the number of the candidate WiFi networks is not 0, a certain area is selected as the specific operation area on the interface of the terminal, and the shape of the area may be preset to be a rectangle, a circle, or another shape. The touch function of the specific operation area can be called in a screen state, namely touch detection can be carried out in the screen state.
In some embodiments, the second detecting unit 404 is specifically configured to: if the touch operation in the specific operation area is a preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks, including:
if the touch operation aiming at the specific operation area is a long-press operation, and the duration of the long-press operation exceeds a preset first threshold duration, determining to trigger a preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks; and/or
If the touch operation aiming at the specific operation area is click operation and the continuous click frequency of the click operation reaches a preset first threshold value, confirming to trigger preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks and/or selecting a target WiFi network to be connected from the candidate WiFi networks
And if the touch operation aiming at the specific operation area is a sliding operation, and the sliding track of the sliding operation is matched with a preset sliding track, confirming to trigger a preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks.
In some embodiments, the second detecting unit 404 is specifically configured to: after the confirming triggers the preset network connection operation, the method further comprises the following steps:
detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected within a first preset time length and is a preset network state display operation, displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
In some embodiments, the second detecting unit 404 is specifically configured to: after the triggering the preset network connection operation, the method further comprises: detecting touch operation aiming at the specific operation area;
if the touch operation aiming at the specific operation area is detected within a second preset time length, the operation is a preset network disconnection operation, and the detection of the touch operation aiming at the specific operation area is continued;
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time after the preset network disconnection operation is detected, closing the WiFi function, otherwise, not executing the operation of closing the WiFi function, and displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network. .
In some embodiments, the second detecting unit 404 is specifically configured to:
the preset network connection operation, network disconnection operation and network state display operation comprise the same touch operation type; the type of the touch operation contained in the network connection operation, the network disconnection operation and the network state display operation is a click operation;
if the touch operation aiming at the specific operation area is detected within the second preset time length, the detection of the touch operation aiming at the specific operation area is continued for the preset network disconnection operation, and the detection comprises the following steps:
if the touch operation aiming at the specific operation area is detected to be the click operation within a second preset time length, and the sum of the duration times of the click operation and the preset first threshold value is smaller than a preset second threshold value, determining to trigger a preset network disconnection operation, and continuing to detect the touch operation aiming at the specific operation area;
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time length after the preset network disconnection operation is detected, the WiFi function is closed, otherwise, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed, wherein the operation comprises:
if the touch operation aiming at the specific operation area is detected to be the click operation within a third preset time length after the preset network disconnection operation is detected, and the sum of the continuous times of the click operation, the continuous times of the click operation corresponding to the preset network disconnection operation and the preset first threshold value is smaller than a preset second threshold value, determining that the touch operation matched with the preset network state display operation is not detected, and closing the WiFi function; and if the sum of the duration times of the clicking operation, the duration times of the clicking operation corresponding to the preset network disconnection operation and the preset first threshold value is equal to a preset second threshold value, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a fourth structure of a terminal WiFi control apparatus according to an embodiment of the present application, where the terminal WiFi control apparatus 50 includes a memory 120, one or more processors 180, and one or more applications, where the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a first detection unit 501, a first selection unit 502, a first display unit 503, a second detection unit 504, a first detection sub-unit 5041, a second detection sub-unit 5042, a third detection sub-unit 5043, and a first connection unit 505. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
a first detection unit 501, configured to acquire a WiFi network detected at a current location;
a first selecting unit 502, configured to determine an available WiFi network from the WiFi networks as a candidate WiFi network;
a first display unit 503, configured to display a specific operation area on a user page when the number of candidate WiFi networks is not 0;
a second detecting unit 504, configured to perform touch operation detection on the specific operation area, and select a target WiFi network to be connected from the candidate WiFi networks if the touch operation of the specific operation area is a preset specific touch operation;
a first detecting subunit 5041, configured to perform detection of a touch operation on the specific operation area, and if the touch operation on the specific operation area is detected within a first preset time period and is a preset network status display operation, display WiFi status information, where the WiFi status information includes: description information and connection status information of the target WiFi network;
a second detecting subunit 5042, configured to, if the touch operation in the specific operation area is detected within a second preset time period, determine that the touch operation is a preset network disconnection operation, and continue to detect the touch operation in the specific operation area;
a third detecting subunit 5043, configured to close the WiFi function if a touch operation matching a preset network status display operation is not detected in the specific operation area within a third preset time period after the preset network disconnection operation is detected, otherwise, not execute the operation of closing the WiFi function, and display WiFi status information, where the WiFi status information includes: description information and connection status information of the target WiFi network.
A first connection unit 505, configured to establish a connection with the WiFi network.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The embodiment of the application also provides the mobile terminal. The mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application, where the mobile terminal may be used to implement the terminal WiFi control method provided in the foregoing embodiment. The mobile terminal 1200 may be a smart phone or a tablet computer.
As shown in fig. 6, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 6 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the terminal WiFi control method in the above-mentioned embodiment, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory located remotely from processor 180, which may be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. The display unit 140 is a screen in the above embodiment.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. As for other sensors such as a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 1200, detailed descriptions thereof are omitted.
The mobile terminal 1200, which may assist the user in e-mail, web browsing, and streaming media access through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 6 illustrates the transmission module 170, it is understood that it does not belong to the essential constitution of the mobile terminal 1200, and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
if the current WiFi function is not started, acquiring a currently detected WiFi network; determining candidate WiFi networks from the WiFi networks; when the number of the candidate WiFi networks is not 0, displaying a specific operation area on a user page; detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected to be preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks; and establishing connection with the target WiFi network.
In some embodiments, the processor 180 is configured to select a target WiFi network to be connected from the candidate WiFi networks if the touch operation of the specific operation area is a preset network connection operation, including: if the touch operation aiming at the specific operation area is a long-press operation, and the duration of the long-press operation exceeds a preset first threshold duration, determining to trigger a preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks; and/or if the touch operation aiming at the specific operation area is click operation and the continuous click frequency of the click operation reaches a preset first threshold value, determining to trigger preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks, and/or if the touch operation aiming at the specific operation area is sliding operation and the sliding track of the sliding operation is matched with the preset sliding track, determining to trigger preset network connection operation, and selecting the target WiFi network to be connected from the candidate WiFi networks.
In some embodiments, the processor 180 is configured to select a target WiFi network to be connected from the candidate WiFi networks, including:
displaying a candidate WiFi network list, the candidate WiFi list comprising the candidate WiFi networks;
when the selection operation aiming at the candidate WiFi network is detected, the candidate WiFi network selected by the selection operation is determined as the target WiFi network.
In some embodiments, the processor 180 is configured to determine candidate WiFi networks from the WiFi networks, including:
acquiring a historical connection record of the WiFi network;
and determining the WiFi network which is connected to be a successful WiFi network and the WiFi network without the password in the currently detected WiFi networks as candidate WiFi networks based on the historical connection records.
In some embodiments, after the processor 180 is configured to trigger the preset network connection operation, the method further includes:
detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected within a first preset time length and is a preset network state display operation, displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
In some embodiments, the processor 180 is configured to, after the triggering the preset network connection operation, further include:
detecting touch operation aiming at the specific operation area;
if the touch operation of the specific operation area is detected within a second preset time length, the detection of the touch operation is continued aiming at the specific operation area, wherein the touch operation is a preset network disconnection operation;
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time after the preset network disconnection operation is detected, closing the WiFi function, otherwise, not executing the operation of closing the WiFi function, and displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
In some embodiments, the processor 180 is configured to preset the same type of touch operations for the network connection operation, the network disconnection operation, and the network status display operation;
when the type of the touch operation of the network connection operation, the network disconnection operation, and the network state display operation is a click operation, if the touch operation of the specific operation area is detected within a second preset time period, the detection of the touch operation is continued for the specific operation area for a preset network disconnection operation, including:
if the touch operation of the specific operation area is detected to be the click operation within a second preset time length, and the continuous times of the click operation are equal to a second threshold value, determining to trigger a preset network disconnection operation, and continuing to detect the touch operation of the specific operation area;
if the touch operation matched with the preset network state display operation is not detected within a third preset time after the preset network disconnection operation is detected, the WiFi function is closed, otherwise, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed, wherein the operation comprises the following steps:
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time after the preset network disconnection operation is detected, closing the WiFi function, otherwise, not executing the operation of closing the WiFi function, and displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
As can be seen from the above, an embodiment of the present application provides a mobile terminal 1200, where the mobile terminal 1200 performs the following steps: if the current WiFi function is not started, acquiring a currently detected WiFi network; determining candidate WiFi networks from the WiFi networks; when the number of the candidate WiFi networks is not 0, displaying a specific operation area on a user page; detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected to be preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks; and establishing connection with the target WiFi network. When carrying out the wiFi switch through the touch-sensitive screen in mobile terminal, this application embodiment can accelerate wiFi's connection speed, reaches the effect that just accomplish the wiFi and connect once, promotes user experience, brings the convenience for the user.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the terminal WiFi control method according to any of the above embodiments.
It should be noted that, for the terminal WiFi control method described in this application, it can be understood by those skilled in the art that all or part of the process of implementing the terminal WiFi control method described in this application may be completed by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a mobile terminal, and executed by at least one processor in the mobile terminal, and during the execution, the process may include the process of the embodiment of the terminal WiFi control method described above. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the terminal WiFi control apparatus in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The WiFi control method, device, storage medium and mobile terminal provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A terminal WiFi control method is characterized by comprising the following steps:
if the current WiFi function is not started, acquiring a currently detected WiFi network;
determining candidate WiFi networks from the WiFi networks;
when the number of the candidate WiFi networks is not 0, displaying a specific operation area on a user page;
detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected to be preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks;
and establishing connection with the target WiFi network.
2. The terminal WiFi control method of claim 1, wherein if the touch operation of the specific operation area is a preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks, includes:
if the touch operation aiming at the specific operation area is a long-press operation, and the duration of the long-press operation exceeds a preset first threshold duration, determining to trigger a preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks; and/or
If the touch operation aiming at the specific operation area is click operation and the continuous click frequency of the click operation reaches a preset first threshold value, confirming to trigger preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks and/or selecting a target WiFi network to be connected from the candidate WiFi networks
And if the touch operation aiming at the specific operation area is a sliding operation, and the sliding track of the sliding operation is matched with a preset sliding track, confirming to trigger a preset network connection operation, and selecting a target WiFi network to be connected from the candidate WiFi networks.
3. The terminal WiFi control method of claim 1 wherein said selecting a target WiFi network to connect to from said candidate WiFi networks comprises:
displaying a candidate WiFi network list, the candidate WiFi list comprising the candidate WiFi networks;
when the selection operation aiming at the candidate WiFi network is detected, the candidate WiFi network selected by the selection operation is determined as the target WiFi network.
4. The terminal WiFi control method of claim 1 wherein said determining candidate WiFi networks from said WiFi networks comprises:
acquiring a historical connection record of the WiFi network;
and determining the WiFi network which is connected to be a successful WiFi network and the WiFi network without the password in the currently detected WiFi networks as candidate WiFi networks based on the historical connection records.
5. The terminal WiFi control method of claim 2 further comprising, after the confirming triggers a preset network connection operation:
detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected within a first preset time length and is a preset network state display operation, displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
6. The terminal WiFi control method of claim 2, further comprising after said triggering a preset network connection operation:
detecting touch operation aiming at the specific operation area;
if the touch operation aiming at the specific operation area is detected within a second preset time length, the operation is a preset network disconnection operation, and the detection of the touch operation aiming at the specific operation area is continued;
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time after the preset network disconnection operation is detected, closing the WiFi function, otherwise, not executing the operation of closing the WiFi function, and displaying WiFi state information, wherein the WiFi state information comprises: description information and connection status information of the target WiFi network.
7. The terminal WiFi control method of claim 6, characterized in that the preset network connection operation, network disconnection operation, network status display operation contain the same type of touch operation; the type of the touch operation contained in the network connection operation, the network disconnection operation and the network state display operation is a click operation;
if the touch operation aiming at the specific operation area is detected within the second preset time length, the detection of the touch operation aiming at the specific operation area is continued for the preset network disconnection operation, and the detection comprises the following steps:
if the touch operation aiming at the specific operation area is detected to be the click operation within a second preset time length, and the sum of the duration times of the click operation and the preset first threshold value is smaller than a preset second threshold value, determining to trigger a preset network disconnection operation, and continuing to detect the touch operation aiming at the specific operation area;
if the touch operation matched with the preset network state display operation is not detected in the specific operation area within a third preset time length after the preset network disconnection operation is detected, the WiFi function is closed, otherwise, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed, wherein the operation comprises:
if the touch operation aiming at the specific operation area is detected to be the click operation within a third preset time length after the preset network disconnection operation is detected, and the sum of the continuous times of the click operation, the continuous times of the click operation corresponding to the preset network disconnection operation and the preset first threshold value is smaller than a preset second threshold value, determining that the touch operation matched with the preset network state display operation is not detected, and closing the WiFi function; and if the sum of the duration times of the clicking operation, the duration times of the clicking operation corresponding to the preset network disconnection operation and the preset first threshold value is equal to a preset second threshold value, the operation of closing the WiFi function is not executed, and the WiFi state information is displayed.
8. A terminal WiFi control device is characterized in that:
the first detection unit is used for acquiring the WiFi network detected at present if the WiFi function is not started at present;
a first selecting unit, configured to select an available WiFi network from the WiFi networks as a candidate WiFi network;
the first display unit is used for displaying a specific operation area on a user page when the number of the candidate WiFi networks is not 0;
the second detection unit is used for detecting touch operation aiming at the specific operation area, and if the touch operation aiming at the specific operation area is detected to be preset network connection operation, selecting a target WiFi network to be connected from the candidate WiFi networks;
and the first connecting unit is used for establishing connection with the target WiFi network.
9. The terminal WiFi control apparatus, characterized in that, the second detecting unit further includes:
a first detection subunit, configured to perform detection of a touch operation on the specific operation area, and if the touch operation on the specific operation area is detected within a first preset time period and is a preset network status display operation, display WiFi status information, where the WiFi status information includes: description information and connection status information of the target WiFi network;
the second detection subunit is configured to, if the touch operation of the specific operation area is detected within a second preset duration, perform detection of the touch operation on the specific operation area continuously for a preset network disconnection operation;
a third detecting subunit, configured to close the WiFi function if a touch operation matching a preset network state display operation is not detected in the specific operation area within a third preset time period after the preset network disconnection operation is detected, otherwise, not perform the operation of closing the WiFi function, and display WiFi state information, where the WiFi state information includes: description information and connection status information of the target WiFi network.
10. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to perform the steps in the terminal WiFi control method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110291555.6A CN112929825B (en) | 2021-03-18 | 2021-03-18 | Terminal WiFi control method and device, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110291555.6A CN112929825B (en) | 2021-03-18 | 2021-03-18 | Terminal WiFi control method and device, storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112929825A true CN112929825A (en) | 2021-06-08 |
CN112929825B CN112929825B (en) | 2022-08-05 |
Family
ID=76174996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110291555.6A Active CN112929825B (en) | 2021-03-18 | 2021-03-18 | Terminal WiFi control method and device, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112929825B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3046371A1 (en) * | 2015-01-15 | 2016-07-20 | Gogotick, S.L. | Method for exchanging information between a group of emitter receiver devices |
CN105813115A (en) * | 2016-03-10 | 2016-07-27 | 腾讯科技(深圳)有限公司 | WIFI network configuration method and device |
CN106028426A (en) * | 2016-05-19 | 2016-10-12 | 珠海市魅族科技有限公司 | WIFI (Wireless-Fidelity) network connection method and device |
CN106648416A (en) * | 2016-10-18 | 2017-05-10 | 维沃移动通信有限公司 | Method for starting application and mobile terminal |
CN107466036A (en) * | 2017-08-08 | 2017-12-12 | 歌尔科技有限公司 | The quick method, equipment and system for establishing Wi Fi connections |
WO2020094035A1 (en) * | 2018-11-07 | 2020-05-14 | 上海连尚网络科技有限公司 | Wireless network connection method for terminal |
-
2021
- 2021-03-18 CN CN202110291555.6A patent/CN112929825B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3046371A1 (en) * | 2015-01-15 | 2016-07-20 | Gogotick, S.L. | Method for exchanging information between a group of emitter receiver devices |
CN105813115A (en) * | 2016-03-10 | 2016-07-27 | 腾讯科技(深圳)有限公司 | WIFI network configuration method and device |
CN106028426A (en) * | 2016-05-19 | 2016-10-12 | 珠海市魅族科技有限公司 | WIFI (Wireless-Fidelity) network connection method and device |
CN106648416A (en) * | 2016-10-18 | 2017-05-10 | 维沃移动通信有限公司 | Method for starting application and mobile terminal |
CN107466036A (en) * | 2017-08-08 | 2017-12-12 | 歌尔科技有限公司 | The quick method, equipment and system for establishing Wi Fi connections |
WO2020094035A1 (en) * | 2018-11-07 | 2020-05-14 | 上海连尚网络科技有限公司 | Wireless network connection method for terminal |
Also Published As
Publication number | Publication date |
---|---|
CN112929825B (en) | 2022-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108710456B (en) | Application icon processing method and device and mobile terminal | |
US10331965B2 (en) | Method, device and computer-readable medium for updating sequence of fingerprint templates for matching | |
CN108932102B (en) | Data processing method and device and mobile terminal | |
CN106951143B (en) | Method and device for hiding application icons | |
CN106371749A (en) | Method and device for terminal control | |
CN111078108A (en) | Screen display method and device, storage medium and mobile terminal | |
CN113050863A (en) | Page switching method and device, storage medium and electronic equipment | |
CN108803961B (en) | Data processing method and device and mobile terminal | |
CN111064847B (en) | False touch prevention method and device, storage medium and electronic equipment | |
CN110062412B (en) | Wireless pairing method, system, storage medium and mobile terminal | |
CN110225106B (en) | Data transmission method, device and storage medium | |
CN111897916A (en) | Voice instruction recognition method and device, terminal equipment and storage medium | |
CN108958578B (en) | File control method and device and electronic device | |
CN112929825B (en) | Terminal WiFi control method and device, storage medium and mobile terminal | |
CN109618234A (en) | Video playing control method, device, mobile terminal and storage medium | |
CN108769093B (en) | Push method and device for software application store and mobile terminal | |
CN109085944B (en) | Data processing method and device and mobile terminal | |
CN108446579B (en) | Method and terminal for identifying graphic code | |
CN113132535A (en) | Screen state control method and device, storage medium and mobile terminal | |
CN111399944A (en) | Application function starting method and device, storage medium and mobile terminal | |
CN111143580A (en) | Multimedia data storage method and device, storage medium and electronic equipment | |
CN111026259A (en) | Control method and device of mobile terminal and storage medium | |
CN111654578B (en) | Mobile terminal sensor restoration method | |
CN109189296A (en) | Screenshotss method, apparatus, mobile terminal and storage medium | |
CN111182141B (en) | Method, device and storage medium for acquiring state of terminal 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |