CN109905911B - WiFi control method and device, wearable intelligent equipment and storage medium - Google Patents

WiFi control method and device, wearable intelligent equipment and storage medium Download PDF

Info

Publication number
CN109905911B
CN109905911B CN201910206209.6A CN201910206209A CN109905911B CN 109905911 B CN109905911 B CN 109905911B CN 201910206209 A CN201910206209 A CN 201910206209A CN 109905911 B CN109905911 B CN 109905911B
Authority
CN
China
Prior art keywords
wifi
wifi module
duration
module
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910206209.6A
Other languages
Chinese (zh)
Other versions
CN109905911A (en
Inventor
李震
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910206209.6A priority Critical patent/CN109905911B/en
Publication of CN109905911A publication Critical patent/CN109905911A/en
Application granted granted Critical
Publication of CN109905911B publication Critical patent/CN109905911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a WiFi control method, a device, a wearable intelligent device and a storage medium, wherein the WiFi control method is applied to the wearable intelligent device and comprises the following steps: monitoring the working state of a WiFi module in the wearable intelligent equipment, and judging whether the WiFi module is in an unconnected state or not; and if the WiFi module is in the unconnected state, acquiring the duration of the unconnected state of the WiFi module, and controlling the connection mode of the WiFi module according to the duration. The application solves the technical problems that the prior wearable intelligent device often automatically and frequently turns on the WiFi module, so that the wearable intelligent device heats, the power consumption is increased and the like.

Description

WiFi control method and device, wearable intelligent equipment and storage medium
Technical Field
The application relates to the technical field of communication, in particular to a WiFi control method and device, a wearable intelligent device and a storage medium.
Background
With the development of wearable smart devices such as wearable smart bracelets, many wearable smart devices already have the ability to connect to a network through a WiFi module, in the process that the wearable smart device connects to a network through a WiFi module, the wearable smart device often frequently and frequently opens the WiFi module, i.e. the WiFi module of the wearable smart device is usually in a state of continuously and actively scanning, frequently sending a detection frame, and frequently exchanging connection information with an unknown WiFi network, which can cause technical problems of heating, power consumption increase, and the like of the wearable smart device.
Disclosure of Invention
The application mainly aims to provide a WiFi control method and device, a wearable intelligent device and a storage medium, and aims to solve the technical problems that the existing wearable intelligent device often automatically and frequently starts a WiFi module, so that the wearable intelligent device generates heat, power consumption is increased and the like.
To achieve the above objective, an embodiment of the present application provides a WiFi control method, where the WiFi control method is applied to a wearable smart device, and the WiFi control method includes:
monitoring the working state of a WiFi module in the wearable intelligent equipment, and judging whether the WiFi module is in an unconnected state or not;
and if the WiFi module is in the unconnected state, acquiring the duration of the unconnected state of the WiFi module, and controlling the connection mode of the WiFi module according to the duration.
Optionally, the step of monitoring the working state of the WiFi module in the wearable intelligent device, and determining whether the WiFi module is in the unconnected state includes:
if the WiFi module is in a connection state, acquiring first position information of the wearable intelligent equipment in the connection state;
and acquiring WiFi information of the WiFi module in the connection state, and storing the WiFi information and the first position information in a preset first position information list in an associated manner.
Optionally, when the WiFi module is in the unconnected state, the step of obtaining the duration of the WiFi module in the unconnected state, and controlling the connection mode of the WiFi module according to the duration includes:
if the WiFi module is in the unconnected state, acquiring the duration of the WiFi module in the unconnected state, and judging whether the duration is smaller than a first preset duration or not;
and if the duration is smaller than the first preset duration, controlling the connection mode of the WiFi module to be an active detection mode so as to actively detect and connect the WiFi network within a preset distance.
Optionally, the step of determining whether the duration is less than a first preset duration further includes:
and if the duration time is longer than the first preset duration time, controlling the connection mode of the WiFi module to be a passive detection mode so as to passively receive and connect the WiFi network within a preset distance.
Optionally, if the duration is longer than the first preset duration, controlling the connection mode of the WiFi module to be a passive detection mode, so as to passively receive and connect to the WiFi network within a preset distance, including:
and if the WiFi module is not received to be in the connection state within the second preset time, closing the WiFi module.
Optionally, if the WiFi module is in the connected state after not received within the second preset time period, the step of closing the WiFi module includes:
acquiring second position information of the wearable intelligent device every third preset time length, and judging whether the second position information is consistent with any first position information in the first position information list;
if the second position information is consistent with any first position information in the first position information list, starting the WiFi module, and searching and connecting a target WiFi matched with the second position information from the first position information list according to the second position information.
Optionally, if the WiFi module is in the connected state after not received within the second preset time period, the step of closing the WiFi module includes:
and if the opening instruction triggering the opening of the WiFi module by the touch operation is detected, controlling the connection mode of the WiFi module to be an active detection mode so as to actively detect and connect the WiFi network within a preset distance.
The application also provides a WiFi control device, which is applied to the wearable intelligent equipment, and comprises:
the judging module is used for monitoring the working state of the WiFi module in the wearable intelligent equipment and judging whether the WiFi module is in an unconnected state or not;
the first acquisition module is used for acquiring the duration of the unconnected state of the WiFi module if the WiFi module is in the unconnected state, and controlling the connection mode of the WiFi module according to the duration.
Optionally, the WiFi control device further includes:
the second acquisition module is used for acquiring the first position information of the wearable intelligent device in the connection state if the WiFi module is in the connection state;
and the third acquisition module is used for acquiring the WiFi information of the WiFi module in the connection state, and storing the WiFi information and the first position information in a preset first position information list in an associated manner.
Optionally, the first acquisition module includes:
the first acquisition unit is used for acquiring the duration of the unconnected state of the WiFi module if the WiFi module is in the unconnected state, and judging whether the duration is smaller than a first preset duration or not;
and the first control unit is used for controlling the connection mode of the WiFi module to be an active detection mode if the duration is smaller than a first preset duration so as to actively detect and connect the WiFi network within a preset distance.
Optionally, the first acquisition module further includes:
and the second control unit is used for controlling the connection mode of the WiFi module to be a passive detection mode if the duration time is longer than the first preset duration time so as to passively receive and connect the WiFi network within the preset distance.
Optionally, the first acquisition module further includes:
and if the closing unit is used for closing the WiFi module when the WiFi module is in the connection state and is not received within the second preset time length.
Optionally, the first acquisition module further includes:
a second obtaining unit, configured to obtain second location information of the wearable intelligent device every third preset duration, and determine whether the second location information is consistent with any first location information in the first location information list;
and the starting unit is used for starting the WiFi module if the second position information is consistent with any first position information in the first position information list, and searching and connecting a target WiFi matched with the second position information from the first position information list according to the second position information.
Optionally, the first acquisition module further includes:
and the third control unit is used for controlling the connection mode of the WiFi module to be an active detection mode when detecting an opening instruction triggered by touch operation to open the WiFi module so as to actively detect and connect the WiFi network within a preset distance.
The application also provides a wearable intelligent device, comprising: the WiFi control system comprises a memory, a processor and a WiFi control program which is stored in the memory and can run on the processor, wherein the WiFi control program realizes the steps of the WiFi control method when being executed by the processor.
The application also provides a storage medium, wherein the storage medium stores a WiFi control program, and the WiFi control program realizes the steps of the WiFi control method when being executed by a processor.
According to the method, whether the WiFi module is in an unconnected state is judged by monitoring the working state of the WiFi module in the wearable intelligent equipment; and if the WiFi module is in the unconnected state, acquiring the duration of the unconnected state of the WiFi module, and controlling the connection mode of the WiFi module according to the duration. In the application, firstly, the working state of a WiFi module in the wearable intelligent equipment is monitored, if the WiFi module is in an unconnected state, the WiFi module is not automatically started frequently, and if the WiFi module is in the unconnected state, the duration of the unconnected state of the WiFi module is obtained, and the connection mode of the WiFi module is controlled according to the duration. In the application, the problems of heating and power consumption increase of the wearable intelligent device caused by the fact that the WiFi module of the wearable intelligent device is continuously actively scanned, the detection frame is frequently sent, and the connection information is frequently exchanged with the unknown WiFi network are avoided, and the technical problems of heating and power consumption increase of the wearable intelligent device caused by the fact that the WiFi module of the existing wearable intelligent device is frequently and automatically started are solved.
Drawings
Fig. 1 is a flowchart of a first embodiment of a WiFi control method according to the present application;
fig. 2 is a schematic diagram of a refinement flow after the step of monitoring the working state of a WiFi module in a wearable intelligent device and determining whether the WiFi module is in an unconnected state in a second embodiment of the WiFi control method of the present application;
FIG. 3 is a schematic diagram of a device architecture of a hardware operating environment involved in a method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a first scenario of a wearable smart device involved in a WiFi control method of the application;
fig. 5 is a second schematic view of a wearable intelligent device according to the WiFi control method of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The application provides a WiFi control method which is mainly applied to wearable intelligent equipment, and in one embodiment of the WiFi control method, referring to FIG. 1, the WiFi control method comprises the following steps:
step S10, monitoring the working state of a WiFi module in the wearable intelligent equipment, and judging whether the WiFi module is in an unconnected state or not;
step S20, if the WiFi module is in the unconnected state, acquiring a duration of the WiFi module in the unconnected state, and controlling a connection mode of the WiFi module according to the duration.
The method comprises the following specific steps:
step S10, monitoring the working state of a WiFi module in the wearable intelligent equipment, and judging whether the WiFi module is in an unconnected state or not;
it should be noted that, in this embodiment, the wearable device includes smart wristband, such as devices like a smart watch, as shown in fig. 4 and 5, in addition, this wearable device further includes devices like smart glasses, be provided with the wiFi module on this wearable device, set up the function of convenient internet access is realized in the purpose that the user or user connect the wiFi network through the wearable device to the wiFi module that is convenient to set up, at present, there is the often frequent wiFi module of opening of wearable device automatically in the in-process that the wearable device is networked through the wiFi module, also there is the continuous active scanning of wiFi module in the wearable device, frequent transmission detection frame, and frequent and unknown wiFi network terminal exchange the condition of connecting information. That is, in a common scenario, when a user is at home or in a company, the user's wearable smart watch is usually connected to a WiFi network through a WiFi module, but when the user leaves these places, the user usually does not actively turn off the WiFi module switch of the wearable smart watch to turn off the WiFi module, so that the WiFi module is still in an active scanning state, which can cause problems of heating and increasing power consumption of the wearable device, so that the standby time of the wearable device is shortened, the user experience is affected, and the user needs to perform operations such as charging of the wearable device continuously and frequently.
In order to solve the above-mentioned problem, in this embodiment, the working state of the WiFi module in the wearable intelligent device is monitored in real time or at intervals of a certain period of time, and whether the WiFi module is in an unconnected state is determined, where the working state of the WiFi module includes a connected state and a unconnected state.
The determining whether the WiFi module is in the unconnected state may be two manners as follows:
mode one: judging whether the wearable intelligent device is at a preset geographic position, if the wearable intelligent device is not at the preset geographic position, determining that the working state of the WiFi module is a non-connection state, wherein the preset geographic position is the geographic position of the connected WiFi network stored in the wearable intelligent device, namely, in the embodiment, the preset geographic position can be in a changed state.
Mode two: judging whether a WiFi switch corresponding to the WiFi module is in an unopened state, if the WiFi switch corresponding to the WiFi module is in an unopened state, determining that the WiFi module is in an unconnected state, in addition, if the WiFi switch corresponding to the WiFi module is in an opened state, further determining whether the WiFi module starts a scanning function, if the WiFi module starts the scanning function, determining that the working state of the WiFi module is in a non-connected state, and if the WiFi module does not start the scanning function and the WiFi module is in an opened state, determining that the working state of the WiFi module is in a connected state.
Referring to fig. 2, the step of monitoring the working state of the WiFi module in the wearable intelligent device, and determining whether the WiFi module is in the unconnected state includes:
step S11, if the WiFi module is in a connection state, acquiring first position information of the wearable intelligent equipment in the connection state;
in this embodiment, if the WiFi module is in the connection state, the first location information of the wearable smart device in the connection state is obtained, where the first location information may be location information of a user's home or a company, and it should be noted that the first location information is not limited to location information of the user's home or the company, that is, the first location information also includes geographic location information of all geographic locations where the wearable smart device is connected to the WiFi network through the WiFi module.
Step S12, acquiring WiFi information of the WiFi module in the connection state, and storing the WiFi information and the first position information in a preset first position information list in an associated mode.
Acquiring WiFi information of the WiFi module in the connection state, storing the WiFi information and the first position information in a preset first position information list in an associated mode, namely, in the preset first position information list, the WiFi information and the first position information have a one-to-one mapping relation, for example, the WiFi information is AWIFi, the first position information is a position information, the AWIFi and the a position information are stored in an associated mode, the WiFi information is BWIFi, the first position information is b position, and the BWIFi and the b position are stored in an associated mode. It should be noted that, in order to avoid possible duplicate storage, in this embodiment, the WiFi information and the first location information in the first location information list are subjected to deduplication processing, that is, only the new WiFi information of the WiFi module in the connected state is acquired, and the new WiFi information and the new first location information are associated and stored in a preset first location information list.
Step S20, if the WiFi module is in the unconnected state, acquiring a duration of the WiFi module in the unconnected state, and controlling a connection mode of the WiFi module according to the duration.
If the WiFi module is in an unconnected state, at this time, the duration of the WiFi module in the unconnected state is obtained, and the connection mode of the WiFi module is controlled according to the duration, that is, in this embodiment, the WiFi module is not in a state of continuously actively scanning, frequently sending a detection frame, and frequently exchanging connection information with an unknown WiFi network end, but the connection mode of the WiFi module is controlled according to the duration, where the connection mode includes an active detection mode and a passive detection mode, and a closing mode, where the active detection mode refers to the active detection mode, so as to attempt quick connection, the passive detection mode refers to the passive receiving of information sent by a surrounding hot spot or a WiFi network, and the passive detection mode has a slow speed compared with the active detection mode, but can greatly reduce power consumption, and the closing mode does not receive information sent by the surrounding hot spot or the WiFi network any more, and the connection mode of the WiFi module is closer to the passive detection mode or the closing mode if the duration is longer. Therefore, the loss of energy consumption of the wearable intelligent device caused by long-time scanning and the like is avoided.
Specifically, if the WiFi module is in the unconnected state, the step of obtaining the duration of the WiFi module in the unconnected state, and controlling the connection mode of the WiFi module according to the duration includes:
step S21, if the WiFi module is in the unconnected state, acquiring the duration of the WiFi module in the unconnected state, and judging whether the duration is smaller than a first preset duration;
if the WiFi module is in the unconnected state, acquiring the duration of the unconnected state of the WiFi module, judging whether the duration is smaller than a first preset duration, and judging whether the duration is smaller than the first preset duration or not, wherein objective factors comprise signal fluctuation, change of the user position and the like, and the aim of judging whether the duration is an objective factor to cause the unconnected state of the WiFi module.
Step S22, if the duration is less than the first preset duration, controlling the connection mode of the WiFi module to be an active detection mode so as to actively detect and connect the WiFi network within a preset distance.
If the duration is less than the first preset duration, controlling the connection mode of the WiFi module to be an active detection mode so as to actively detect and connect the WiFi network within a preset distance, namely, when the WiFi module is in an unconnected state due to objective factors, still maintaining the active detection mode so as to try to quickly reconnect the network, thereby avoiding the condition of inconvenient Internet surfing of a user.
It should be noted that, if the wearable intelligent device is connected to the WiFi network in a duration less than a first preset duration, the first location information of the wearable intelligent device in the connected state is acquired again; and acquiring WiFi information of the WiFi module in the connection state, and storing the WiFi information and the first position information in a preset first position information list in an associated manner.
According to the method, whether the WiFi module is in an unconnected state is judged by monitoring the working state of the WiFi module in the wearable intelligent equipment; and if the WiFi module is in the unconnected state, acquiring the duration of the unconnected state of the WiFi module, and controlling the connection mode of the WiFi module according to the duration. In the application, firstly, the working state of a WiFi module in the wearable intelligent equipment is monitored, if the WiFi module is in an unconnected state, the WiFi module is not automatically started frequently, and if the WiFi module is in the unconnected state, the duration of the unconnected state of the WiFi module is obtained, and the connection mode of the WiFi module is controlled according to the duration. In the application, the problems of heating and power consumption increase of the wearable intelligent device caused by the fact that the WiFi module of the wearable intelligent device is continuously actively scanned, the detection frame is frequently sent, and the connection information is frequently exchanged with the unknown WiFi network are avoided, and the technical problems of heating and power consumption increase of the wearable intelligent device caused by the fact that the WiFi module of the existing wearable intelligent device is frequently and automatically started are solved.
Further, in another embodiment of the present application, the step of determining whether the duration is less than the first preset duration further includes:
step S23, if the duration is longer than the first preset duration, controlling the connection mode of the WiFi module to be a passive detection mode so as to passively receive and connect the WiFi network within a preset distance.
In this embodiment, if the duration is longer than the first preset duration, that is, the wearable intelligent device is not connected to the WiFi network for a time longer than the first preset duration, the connection mode of the WiFi module is controlled to be a passive detection mode, so as to passively receive and connect to the WiFi network within a preset distance, and the passive detection has a slow speed of acquiring information relative to the active detection, so that power consumption can be greatly reduced.
It should be noted that, if the wearable intelligent device is connected to the WiFi network in the passive detection mode, the first location information of the wearable intelligent device in the connection state is obtained again; and acquiring WiFi information of the WiFi module in the connection state, and storing the WiFi information and the first position information in a preset first position information list in an associated manner.
And if the duration is longer than the first preset duration, controlling the connection mode of the WiFi module to be a passive detection mode so as to passively receive and connect the WiFi network within a preset distance, wherein the method comprises the following steps of:
and step S24, if the WiFi module is not received to be in the connection state within the second preset time, closing the WiFi module.
If the WiFi module is not received in the second preset duration and is in the connection state, the WiFi module is turned off, that is, the connection mode of the WiFi module is controlled to be the off mode, so that the WiFi network in the preset distance is not received or connected, and the power consumption can be further greatly reduced compared with the passive detection by the off detection.
If the WiFi module is in the connection state and is not received within the second preset time period, the step of closing the WiFi module includes:
step S25, acquiring second position information of the wearable intelligent device every third preset time length, and judging whether the second position information is consistent with any first position information in the first position information list;
in this embodiment, in order to avoid that the wearable intelligent device is not in the connection state of the WiFi network all the time, therefore, the wearable intelligent device presets a time interval, that is, a third preset duration, to obtain positioning information once, that is, obtains second position information of the wearable intelligent device every third preset duration, determines whether the second position information is consistent with any first position information in the first position information list, and determines whether the second position information is consistent with any first position information in the first position information list, so as to determine whether direct connection to specific WiFi is required, thereby skipping the WiFi search process.
Step S26, if the second location information is consistent with any first location information in the first location information list, starting the WiFi module, and according to the second location information, searching for and connecting a target WiFi matched with the second location information from the first location information list.
If the second position information is consistent with any first position information in the first position information list, automatically starting the WiFi module, searching and connecting a target WiFi matched with the second position information from the first position information list according to the second position information, namely determining that the specific WiFi needs to be directly connected when the second position information is the pre-stored positioning, and skipping the WiFi searching process.
In this embodiment, second location information of the wearable intelligent device is obtained through a third preset duration at each interval, and whether the second location information is consistent with any first location information in the first location information list is judged; if the second position information is consistent with any first position information in the first position information list, starting the WiFi module, and searching and connecting a target WiFi matched with the second position information from the first position information list according to the second position information. In other words, in this embodiment, the user is prevented from being unable to connect to the WiFi network at the common location because the WiFi module is always in the power-saving and power-saving state.
Further, in another embodiment of the present application, in the embodiment, if the WiFi module is in the connected state after not received within the second preset period of time, the step of closing the WiFi module includes:
step S27, if an opening command triggering the opening of the WiFi module by the touch operation is detected, controlling the connection mode of the WiFi module to be an active detection mode, so as to actively detect and connect to the WiFi network within a preset distance.
In this embodiment, when the WiFi module is in the off state and the on command for starting the WiFi module triggered by the touch operation is detected, the connection mode of the WiFi module is controlled to be an active detection mode, so as to actively detect and connect to the WiFi network within a preset distance. That is, in this embodiment, if the user triggers to start the WiFi module by touching, i.e. enters an active detection mode to actively detect and connect to the WiFi network within a preset distance, it should be noted that, when entering the active detection mode, the location information of the current wearable smart device is obtained, and if it is determined that the wearable smart device is in a common location, the user directly connects to a specific WiFi.
In this embodiment, when the start instruction for starting the WiFi module triggered by the touch operation is detected, the connection mode of the WiFi module is controlled to be an active detection mode, so as to actively detect and connect to the WiFi network within a preset distance. That is, in this embodiment, when the user opens the WiFi module, the user realizes a fast-connection WiFi network.
In addition, the embodiment of the application also provides a WiFi control device, which is applied to the wearable intelligent equipment and comprises:
the judging module is used for monitoring the working state of the WiFi module in the wearable intelligent equipment and judging whether the WiFi module is in an unconnected state or not;
the first acquisition module is used for acquiring the duration of the unconnected state of the WiFi module if the WiFi module is in the unconnected state, and controlling the connection mode of the WiFi module according to the duration.
Optionally, the WiFi control device further includes:
the second acquisition module is used for acquiring the first position information of the wearable intelligent device in the connection state if the WiFi module is in the connection state;
and the third acquisition module is used for acquiring the WiFi information of the WiFi module in the connection state, and storing the WiFi information and the first position information in a preset first position information list in an associated manner.
Optionally, the first acquisition module includes:
the first acquisition unit is used for acquiring the duration of the unconnected state of the WiFi module if the WiFi module is in the unconnected state, and judging whether the duration is smaller than a first preset duration or not;
and the first control unit is used for controlling the connection mode of the WiFi module to be an active detection mode if the duration is smaller than a first preset duration so as to actively detect and connect the WiFi network within a preset distance.
Optionally, the first acquisition module further includes:
and the second control unit is used for controlling the connection mode of the WiFi module to be a passive detection mode if the duration time is longer than the first preset duration time so as to passively receive and connect the WiFi network within the preset distance.
Optionally, the first acquisition module further includes:
and if the closing unit is used for closing the WiFi module when the WiFi module is in the connection state and is not received within the second preset time length.
Optionally, the first acquisition module further includes:
a second obtaining unit, configured to obtain second location information of the wearable intelligent device every third preset duration, and determine whether the second location information is consistent with any first location information in the first location information list;
and the starting unit is used for starting the WiFi module if the second position information is consistent with any first position information in the first position information list, and searching and connecting a target WiFi matched with the second position information from the first position information list according to the second position information.
Optionally, the first acquisition module further includes:
and the third control unit is used for controlling the connection mode of the WiFi module to be an active detection mode when detecting an opening instruction triggered by touch operation to open the WiFi module so as to actively detect and connect the WiFi network within a preset distance.
The expansion content of the specific implementation mode of the WiFi control device is basically the same as that of each embodiment of the WiFi control method, and is not repeated here.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware running environment according to an embodiment of the present application.
The wearable device of the embodiment of the application can be a PC, or can be a terminal device such as a smart phone, a tablet personal computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player, a portable computer and the like.
As shown in fig. 3, the wearable device may include: a processor 1001, such as a CPU, memory 1005, and a communication bus 1002. Wherein a communication bus 1002 is used to enable connected communication between the processor 1001 and a memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the wearable device may further include a target user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on. The target user interface may comprise a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the selectable target user interface may further comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the wearable device structure shown in fig. 3 is not limiting of the wearable device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 3, an operating system, a network communication module, and a WiFi control program may be included in a memory 1005, which is one type of computer storage medium. The operating system is a program that manages and controls the wearable device hardware and software resources, supporting the execution of WiFi control programs and other software and/or programs. The network communication module is used to enable communication between components within the memory 1005 and with other hardware and software in the wearable device.
In the wearable device shown in fig. 3, the processor 1001 is configured to execute a WiFi control program stored in the memory 1005, to implement the steps of the WiFi control method described in any one of the foregoing.
The specific implementation manner of the wearable device of the present application is basically the same as that of each embodiment of the WiFi control method described above, and will not be repeated here.
Furthermore, the present application provides a computer storage medium storing one or more programs, where the one or more programs are further executable by one or more processors to implement the steps of the embodiments of the WiFi control method described above.
The expansion content of the specific implementation manners of the wearable intelligent device and the storage medium (i.e., the computer storage medium) of the present application is basically the same as that of the embodiments of the WiFi control method described above, and will not be described herein.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a wearable smart device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (9)

1. A WiFi control method, wherein the WiFi control method is applied to a wearable smart device, the WiFi control method comprising:
monitoring the working state of a WiFi module in the wearable intelligent equipment, and judging whether the WiFi module is in an unconnected state or not;
if the WiFi module is in the unconnected state, acquiring the duration of the unconnected state of the WiFi module, and controlling the connection mode of the WiFi module according to the duration;
and if the WiFi module is in the unconnected state, acquiring the duration of the unconnected state of the WiFi module, and controlling the connection mode of the WiFi module according to the duration, wherein the step of controlling the connection mode of the WiFi module comprises the following steps:
if the WiFi module is in the unconnected state, acquiring the duration of the WiFi module in the unconnected state, and judging whether the duration is smaller than a first preset duration or not;
and if the duration is smaller than the first preset duration, controlling the connection mode of the WiFi module to be an active detection mode so as to actively detect and connect the WiFi network within a preset distance.
2. The WiFi control method according to claim 1, wherein the step of monitoring the working state of the WiFi module in the wearable smart device, and determining whether the WiFi module is in the unconnected state includes:
if the WiFi module is in a connection state, acquiring first position information of the wearable intelligent equipment in the connection state;
and acquiring WiFi information of the WiFi module in the connection state, and storing the WiFi information and the first position information in a preset first position information list in an associated manner.
3. The WiFi control method according to claim 2, wherein the step of determining whether the duration is less than a first preset duration further includes:
and if the duration time is longer than the first preset duration time, controlling the connection mode of the WiFi module to be a passive detection mode so as to passively receive and connect the WiFi network within a preset distance.
4. The WiFi control method according to claim 3, wherein if the duration is longer than a first preset duration, the step of controlling the connection mode of the WiFi module to be a passive detection mode to passively receive and connect to the WiFi network within a preset distance includes:
and if the WiFi module is not received to be in the connection state within the second preset time, closing the WiFi module.
5. The WiFi control method of claim 4, wherein if the WiFi module is in the connected state after the WiFi module is not received within the second preset time period, the step of closing the WiFi module includes:
acquiring second position information of the wearable intelligent device every third preset time length, and judging whether the second position information is consistent with any first position information in the first position information list;
if the second position information is consistent with any first position information in the first position information list, starting the WiFi module, and searching and connecting a target WiFi matched with the second position information from the first position information list according to the second position information.
6. The WiFi control method of claim 4, wherein if the WiFi module is in the connected state after the WiFi module is not received within the second preset time period, the step of closing the WiFi module includes:
and if the opening instruction triggering the opening of the WiFi module by the touch operation is detected, controlling the connection mode of the WiFi module to be an active detection mode so as to actively detect and connect the WiFi network within a preset distance.
7. WiFi controlling means, its characterized in that, wiFi controlling means is applied to wearable smart machine, the
The WiFi control device comprises:
the judging module is used for monitoring the working state of the WiFi module in the wearable intelligent equipment and judging whether the WiFi module is in an unconnected state or not;
the first acquisition module is used for acquiring the duration of the unconnected state of the WiFi module if the WiFi module is in the unconnected state, and controlling the connection mode of the WiFi module according to the duration;
wherein, the first acquisition module includes:
the first acquisition unit is used for acquiring the duration of the unconnected state of the WiFi module if the WiFi module is in the unconnected state, and judging whether the duration is smaller than a first preset duration or not;
and the first control unit is used for controlling the connection mode of the WiFi module to be an active detection mode if the duration is smaller than a first preset duration so as to actively detect and connect the WiFi network within a preset distance.
8. A wearable smart device, the wearable smart device comprising: memory, a processor and a WiFi control program stored on the memory and executable on the processor, which WiFi control program when executed by the processor implements the steps of the WiFi control method according to any of claims 1 to 6.
9. A storage medium having stored thereon a WiFi control program which when executed by a processor implements the steps of the WiFi control method according to any of claims 1 to 6.
CN201910206209.6A 2019-03-18 2019-03-18 WiFi control method and device, wearable intelligent equipment and storage medium Active CN109905911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910206209.6A CN109905911B (en) 2019-03-18 2019-03-18 WiFi control method and device, wearable intelligent equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910206209.6A CN109905911B (en) 2019-03-18 2019-03-18 WiFi control method and device, wearable intelligent equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109905911A CN109905911A (en) 2019-06-18
CN109905911B true CN109905911B (en) 2023-09-19

Family

ID=66952209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910206209.6A Active CN109905911B (en) 2019-03-18 2019-03-18 WiFi control method and device, wearable intelligent equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109905911B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449411A (en) * 2019-08-27 2021-03-05 北京君正集成电路股份有限公司 Intelligent equipment working mode switching method and device
CN111092656A (en) * 2019-12-28 2020-05-01 深圳市优必选科技股份有限公司 Robot network connection method, device, robot and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015131562A1 (en) * 2014-09-22 2015-09-11 中兴通讯股份有限公司 Wifi connecting method and device
CN106445073A (en) * 2016-09-28 2017-02-22 惠州Tcl移动通信有限公司 Method and system for automatic scene mode switching of mobile terminal
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal
CN107567080A (en) * 2017-08-24 2018-01-09 广东欧珀移动通信有限公司 Reduce the method and terminal device of power consumption
CN107950062A (en) * 2016-06-30 2018-04-20 华为技术有限公司 A kind of method for scanning wireless fidelity network and mobile equipment
CN108012304A (en) * 2017-12-04 2018-05-08 广东欧珀移动通信有限公司 Wireless local area network scan method, apparatus, computer equipment and storage medium
CN108040357A (en) * 2017-11-30 2018-05-15 广东欧珀移动通信有限公司 Mobile terminal wireless local area network scan method and apparatus, computer equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015131562A1 (en) * 2014-09-22 2015-09-11 中兴通讯股份有限公司 Wifi connecting method and device
CN107950062A (en) * 2016-06-30 2018-04-20 华为技术有限公司 A kind of method for scanning wireless fidelity network and mobile equipment
CN106445073A (en) * 2016-09-28 2017-02-22 惠州Tcl移动通信有限公司 Method and system for automatic scene mode switching of mobile terminal
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal
CN107567080A (en) * 2017-08-24 2018-01-09 广东欧珀移动通信有限公司 Reduce the method and terminal device of power consumption
CN108040357A (en) * 2017-11-30 2018-05-15 广东欧珀移动通信有限公司 Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN108012304A (en) * 2017-12-04 2018-05-08 广东欧珀移动通信有限公司 Wireless local area network scan method, apparatus, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109905911A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN110430558B (en) Device control method, device, electronic device and storage medium
CN110831096B (en) Network switching method and electronic equipment
CN110401583B (en) Method, device, system, mobile terminal and storage medium for replacing equipment
RU2658813C2 (en) Electronic device control method and apparatus
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
CN104660685A (en) Method and device for obtaining equipment information
CN109946986B (en) Household appliance control method, wearable device and computer readable storage medium
CN109284144B (en) Fast application processing method and mobile terminal
CN107656793B (en) Application program interface switching method and mobile terminal
CN109905911B (en) WiFi control method and device, wearable intelligent equipment and storage medium
CN114565070B (en) Label binding method and device and mobile terminal
CN111866976B (en) Network switching method and device
CN105183493A (en) Display method and device of network information
US20150264727A1 (en) Wireless communication apparatus, non-transitory computer-readable medium, wireless communication method, peripheral apparatus, and central apparatus
WO2018161788A1 (en) Multimedia data sharing method and device
CN114428546B (en) Background application cleaning method and device, storage medium and terminal equipment
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
CN108375912B (en) Intelligent household control method and related product
KR101921207B1 (en) Method and apparatus for performing function in mobile terminal using short range communication
CN111313114B (en) Charging method and electronic equipment
CN112437476A (en) Network switching control method and device, intelligent terminal and readable storage medium
CN111026456B (en) Application management method and device, storage medium and electronic equipment
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN109947323B (en) Terminal display method and terminal
CN111966373A (en) APN resetting method, terminal equipment and storage medium

Legal Events

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