CN109905911A - WiFi control method, device, wearable smart machine and storage medium - Google Patents
WiFi control method, device, wearable smart machine and storage medium Download PDFInfo
- Publication number
- CN109905911A CN109905911A CN201910206209.6A CN201910206209A CN109905911A CN 109905911 A CN109905911 A CN 109905911A CN 201910206209 A CN201910206209 A CN 201910206209A CN 109905911 A CN109905911 A CN 109905911A
- Authority
- CN
- China
- Prior art keywords
- wifi
- wifi module
- duration
- module
- location 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.)
- Granted
Links
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of WiFi control method, device, wearable smart machine and storage mediums, the WiFi control method is applied to wearable smart machine, the WiFi control method includes: the working condition of WiFi module in the wearable smart machine of monitoring, judges whether the WiFi module is in not-connected status;If the WiFi module is in not-connected status, the duration that the WiFi module is in not-connected status is obtained, the connection mode of the WiFi module is controlled according to the duration.The present invention, which solves existing wearable smart machine, usually automatically can frequently open WiFi module, lead to the technical problems such as wearable smart machine fever, power consumption increase.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of WiFi control method, device, wearable smart machine and
Storage medium.
Background technique
With the development of for example wearable Intelligent bracelet of wearable smart machine, many wearable smart machines have had logical
The ability for crossing WiFi module connection network, it is wearable during wearable smart machine connects network by WiFi module
Smart machine usually automatically can frequently open WiFi module, i.e., the WiFi module of wearable smart machine is generally in constantly
Active scan, it is frequent to send detection frame, and the state of link information is frequently exchanged with unknown WiFi network, this, which will lead to, to wear
Wear the technical problems such as smart machine fever, power consumption increase.
Summary of the invention
The main purpose of the present invention is to provide a kind of WiFi control method, device, wearable smart machine and storages to be situated between
Matter, it is intended to which solving existing wearable smart machine usually automatically can frequently open WiFi module, lead to wearable smart machine
The technical problems such as fever, power consumption increase.
To achieve the above object, the embodiment of the present invention provides a kind of WiFi control method, the WiFi control method application
In wearable smart machine, the WiFi control method includes:
The working condition for monitoring WiFi module in wearable smart machine, judges whether the WiFi module is in not connected
State;
If the WiFi module is in not-connected status, obtain the WiFi module be in not-connected status it is lasting when
It is long, the connection mode of the WiFi module is controlled according to the duration.
Whether the optionally working condition for monitoring WiFi module in wearable smart machine, judge the WiFi module
Include: after not-connected status step
If the WiFi module is in connection status, of the wearable smart machine under the connection status is obtained
One location information;
The WiFi information for obtaining the WiFi module under the connection status, by the WiFi information and the first position
Information association is stored in preset first location information list.
Optionally, it if the WiFi module is in not-connected status, obtains the WiFi module and is in not connected
The duration of state includes: according to the connection mode step that the duration controls the WiFi module
If the WiFi module is in not-connected status, obtain the WiFi module be in not-connected status it is lasting when
It is long, judge the duration whether less than the first preset duration;
If the duration, less than the first preset duration, the connection mode for controlling the WiFi module is actively to detect mould
Formula, actively to detect and connect the WiFi network in pre-determined distance.
Optionally, it is described judge the duration whether less than the first preset duration step after further include:
If the duration is greater than the first preset duration, the connection mode for controlling the WiFi module is passive detecting mould
Formula, passively to receive and connect the WiFi network in pre-determined distance.
Optionally, if the duration is greater than the first preset duration, the connection mode of the WiFi module is controlled
For passive sense mode, include: passively to receive and connect the WiFi network step in pre-determined distance later
If closing the WiFi mould when not receiving the WiFi module in the second preset duration and being in connection status
Block.
Optionally, if it is described when not receiving the WiFi module in the second preset duration and being in connection status, it closes
Include: after the WiFi module step
The second location information that the wearable smart machine is obtained at interval of third preset duration, judges the second
Whether confidence breath is consistent with any first location information in the first location information list;
If the second location information is consistent with any first location information in the first location information list, open
The WiFi module is opened, and according to the second location information, searched from the first location information list and connected and institute
State the matched target WiFi of second location information.
Optionally, if it is described when not receiving the WiFi module in the second preset duration and being in connection status, it closes
Include: after the WiFi module step
If detect the open command of the unlatching WiFi module of touch operation triggering, the WiFi module is controlled
Connection mode is active sense mode, actively to detect and connect the WiFi network in pre-determined distance.
The present invention also provides a kind of WiFi control device, the WiFi control device is applied to wearable smart machine, institute
Stating WiFi control device includes:
Judgment module judges the WiFi module for monitoring the working condition of WiFi module in wearable smart machine
Whether not-connected status is in;
First obtains module, if be in not-connected status for the WiFi module, obtain the WiFi module and is in
The duration of not-connected status controls the connection mode of the WiFi module according to the duration.
Optionally, the WiFi control device further include:
Second obtains module, if be in connection status for the WiFi module, obtains described under the connection status
The first location information of wearable smart machine;
Third obtains module, for obtaining the WiFi information of the WiFi module under the connection status, by the WiFi
Information is associated with the first location information to be stored in preset first location information list.
Optionally, the first acquisition module includes:
First acquisition unit obtains the WiFi module and is in if be in not-connected status for the WiFi module
Whether the duration of not-connected status judges the duration less than the first preset duration;
First control unit, if controlling the company of the WiFi module less than the first preset duration for the duration
Connecing mode is active sense mode, actively to detect and connect the WiFi network in pre-determined distance.
Optionally, described first module is obtained further include:
Second control unit controls the company of the WiFi module if being greater than the first preset duration for the duration
Connecing mode is passive sense mode, passively to receive and connect the WiFi network in pre-determined distance.
Optionally, described first module is obtained further include:
If closing unit, when being in connection status for not receiving the WiFi module in the second preset duration, close
Close the WiFi module.
Optionally, described first module is obtained further include:
Second acquisition unit, for obtaining the second confidence of the wearable smart machine at interval of third preset duration
Breath, judges whether the second location information is consistent with any first location information in the first location information list;
Opening unit, if for any first position in the second location information and the first location information list
Information is consistent, then opens the WiFi module, and according to the second location information, looks into from the first location information list
It looks for and connects and the matched target WiFi of the second location information.
Optionally, described first module is obtained further include:
Third control unit, if when for detecting the open command of the unlatching WiFi module of touch operation triggering,
The connection mode for controlling the WiFi module is active sense mode, actively to detect and connect the WiFi net in pre-determined distance
Network.
The present invention also provides a kind of wearable smart machine, the wearable smart machine include: memory, processor and
It is stored in the WiFi control program that can be run on the memory and on the processor, the WiFi control program is described
It realizes when processor executes such as the step of above-mentioned WiFi control method.
The present invention also provides a kind of storage medium, WiFi control program, the WiFi control are stored on the storage medium
It realizes when processing procedure sequence is executed by processor such as the step of above-mentioned WiFi control method.
Whether the present invention judges the WiFi module by the working condition of WiFi module in the wearable smart machine of monitoring
In not-connected status;If the WiFi module is in not-connected status, obtains the WiFi module and be in not-connected status
Duration, the connection mode of the WiFi module is controlled according to the duration.In this application, monitoring can be worn first
The working condition of WiFi module in smart machine is worn, if whether the WiFi module is in not-connected status, no longer automatically
Frequently open WiFi module, if but WiFi module when be in not-connected status, obtain the WiFi module in not connecting
The duration for connecing state controls the connection mode of the WiFi module according to the duration.Namely in this application, it keeps away
Exempt to be in constantly active scan because of the WiFi module of wearable smart machine, it is frequent to send detection frame, and frequently with it is unknown
The problem of WiFi network exchanges the state of link information and leads to wearable smart machine fever, power consumption increase, solves existing
Wearable smart machine usually automatically can frequently open WiFi module, lead to wearable smart machine fever, power consumption increase etc.
Technical problem.
Detailed description of the invention
Fig. 1 is the flow diagram of WiFi control method first embodiment of the present invention;
Fig. 2 is the work that WiFi module in wearable smart machine is monitored in WiFi control method second embodiment of the present invention
State judges the refinement flow diagram after whether the WiFi module is in not-connected status step;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to;
Fig. 4 is the first schematic diagram of a scenario that smart machine is dressed involved in WiFi control method of the present invention;
Fig. 5 is the second schematic diagram of a scenario that smart machine is dressed involved in WiFi control method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of WiFi control method, which is mainly used on wearable smart machine,
In one embodiment of WiFi control method, referring to Fig.1, WiFi control method includes:
Step S10 monitors the working condition of WiFi module in wearable smart machine, judges whether the WiFi module is located
In not-connected status;
Step S20 obtains the WiFi module and is in not-connected status if the WiFi module is in not-connected status
Duration, the connection mode of the WiFi module is controlled according to the duration.
Specific step is as follows:
Step S10 monitors the working condition of WiFi module in wearable smart machine, judges whether the WiFi module is located
In not-connected status;
It should be noted that in the present embodiment, wearable device includes Intelligent bracelet, such as smartwatch equipment,
Such as Fig. 4, shown in Fig. 5, in addition, the wearable device further includes the equipment such as intelligent glasses, it is provided in the wearable device
WiFi module, the purpose that WiFi module is arranged are to connect WiFi net by wearable device convenient for user or user
Network realizes the function of convenient online, currently, there are wearable during wearable device is networked by WiFi module
Formula equipment usually automatically can frequently open WiFi module, namely there are WiFi modules in wearable device constantly actively to sweep
The case where retouching, frequent transmission detection frame, and frequently exchanging link information with unknown WiFi network end.A namely common field
Scape is exactly that user is in or in company, and the wearable smartwatch of user would generally connect WiFi network by WiFi module,
But when leaving these places, due to user usually will not active remove to close wearable smartwatch WiFi module switch
To close WiFi module, thus, WiFi module is even still in active scan state at this time, this will lead to wearable device hair
The problems such as heat, power consumption increase, shortens the stand-by time of wearable device, affects user experience, as user needs constantly
Continually carry out the operations such as the charging of wearable device.
To solve the above-mentioned problems, in the present embodiment, wearable intelligence is monitored in real time or at interval of certain period of time
The working condition of WiFi module in equipment, judges whether the WiFi module is in not-connected status, wherein the work of WiFi module
It include connection status and notconnect state as state.
Wherein, judging whether the WiFi module is in not-connected status can be the following two kinds mode:
Mode one: judging whether the wearable smart machine is in preset geographical position, if the wearable intelligence is set
It is standby to be not in preset geographical position, it is determined that the working condition of WiFi module is notconnect state, it should be noted that default ground
Managing position is the geographical location for having connected WiFi network being stored in wearable smart machine, namely in the present embodiment,
Preset geographical position may be at change state.
Mode two: the corresponding WiFi switch of the WiFi module is judged whether in non-open state, if WiFi module pair
The WiFi switch answered is in non-open state, it is determined that WiFi module is in not-connected status, in addition, if WiFi module is corresponding
WiFi switch is in the open state, then further determines that whether the WiFi module opens scanning function, if the WiFi module
Open scanning function, it is determined that the working condition of WiFi module is notconnect state, if the WiFi module does not open scanning function
Can and WiFi module it is in the open state when, it is determined that the working condition of WiFi module be connect state.
Wherein, referring to Fig. 2, the working condition for monitoring WiFi module in wearable smart machine judges the WiFi
Whether module is in not-connected status step
Step S11 obtains the wearable intelligence under the connection status if the WiFi module is in connection status
The first location information of equipment;
In the present embodiment, if the WiFi module is in connection status, obtaining under the connection status described can be worn
Wear the first location information of smart machine, wherein the first location information can be the position letter of the either company, family of user
Breath, it should be noted that the first location information be also not necessarily limited to user family either company location information namely this first
Location information further includes the geographical position of all geographical locations that WiFi network is connected by WiFi module of wearable smart machine
Confidence breath.
Step S12 obtains the WiFi information of the WiFi module under the connection status, by the WiFi information with it is described
First location information association is stored in preset first location information list.
The WiFi information for obtaining the WiFi module under the connection status, by the WiFi information and the first position
Information association is stored in preset first location information list, that is, the WiFi in the preset first location information list
There are mapping relations one by one in information and first location information, for example, WiFi information is AWiFi, first location information is the position a letter
AWiFi is then associated with preservation with a location information by breath, and WiFi information is BWiFi, and first location information is the position b, will be by BWiFi
Preservation is associated with the position b.It should be noted that avoid repetition that may be present from storing, in the present embodiment, to first position
WiFi information and first location information in information list carry out duplicate removal processing, that is, only obtaining institute under the connection status
The new WiFi information for stating WiFi module, the new WiFi information is associated with new first location information be stored in it is preset
In first location information list.
Step S20 obtains the WiFi module and is in not-connected status if the WiFi module is in not-connected status
Duration, the connection mode of the WiFi module is controlled according to the duration.
If the WiFi module is in not-connected status, at this point, obtaining the WiFi module is in holding for not-connected status
Continuous duration, controlling WiFi module in the connection mode namely the present embodiment of the WiFi module according to the duration is not
It is frequent to send detection frame in constantly active scan, and the state of link information is frequently exchanged with unknown WiFi network end,
But the connection mode of the WiFi module is controlled according to duration, wherein connection mode includes active sense mode, passive
Sense mode, close pattern, wherein active sense mode refers to active sense mode, passive to detect to attempt quickly connection
Mode refers to the information for passively receiving surrounding hot spot or WiFi network is sent, and passive sense mode is detected relative to active
Pattern acquiring information rate is slow, but power consumption can be greatly decreased, and close pattern no longer receives surrounding hot spot or WiFi network
The information of transmission, wherein continuous duration is longer, then the connection mode of the WiFi module be closer to passive sense mode either
Close pattern.Thus, avoid wearable smart machine because of the loss of energy consumption caused by lengthy scan etc..
Specifically, it if the WiFi module is in not-connected status, obtains the WiFi module and is in not connected
The duration of state includes: according to the connection mode step that the duration controls the WiFi module
Step S21 obtains the WiFi module and is in not-connected status if the WiFi module is in not-connected status
Duration, judge the duration whether less than the first preset duration;
If the WiFi module is in not-connected status, obtain the WiFi module be in not-connected status it is lasting when
It is long, judge that the duration whether less than the first preset duration, judges the duration whether less than the first preset duration
Purpose be to judge whether it is objective factor and WiFi module is caused to be in not-connected status, wherein objective factor include letter
Number fluctuation, user location changes.
Step S22, if the duration less than the first preset duration, based on the connection mode for controlling the WiFi module
Dynamic sense mode, actively to detect and connect the WiFi network in pre-determined distance.
If the duration, less than the first preset duration, the connection mode for controlling the WiFi module is actively to detect mould
Formula actively to detect and connect the WiFi network in pre-determined distance, namely is worked as and WiFi module is caused to be in not because of objective factor
When connection status, active sense mode is still kept, it is inconvenient to avoid causing user to surf the Internet to attempt quick reconnection network
Situation.
It should be noted that if wearable smart machine is connected to WiFi in the duration less than the first preset duration
Network then reacquires the first location information of the wearable smart machine under the connection status;It obtains under the connection status
The WiFi information is associated with the first location information and is stored in preset first by the WiFi information of the WiFi module
It sets in information list.
Whether the present invention judges the WiFi module by the working condition of WiFi module in the wearable smart machine of monitoring
In not-connected status;If the WiFi module is in not-connected status, obtains the WiFi module and be in not-connected status
Duration, the connection mode of the WiFi module is controlled according to the duration.In this application, monitoring can be worn first
The working condition of WiFi module in smart machine is worn, if whether the WiFi module is in not-connected status, no longer automatically
Frequently open WiFi module, if but WiFi module when be in not-connected status, obtain the WiFi module in not connecting
The duration for connecing state controls the connection mode of the WiFi module according to the duration.Namely in this application, it keeps away
Exempt to be in constantly active scan because of the WiFi module of wearable smart machine, it is frequent to send detection frame, and frequently with it is unknown
The problem of WiFi network exchanges the state of link information and leads to wearable smart machine fever, power consumption increase, solves existing
Wearable smart machine usually automatically can frequently open WiFi module, lead to wearable smart machine fever, power consumption increase etc.
Technical problem.
Further, another embodiment of WiFi control method is provided in the present invention, in this embodiment, described in the judgement
After whether duration is less than the first preset duration step further include:
Step S23, if the duration is greater than the first preset duration, the connection mode for controlling the WiFi module is quilt
Dynamic sense mode, passively to receive and connect the WiFi network in pre-determined distance.
In the present embodiment, if the duration is greater than the first preset duration, that is, wearable smart machine is being greater than
When being not attached to WiFi network in the time of the first preset duration, the connection mode for controlling the WiFi module is passive detecting mould
Formula, passively to receive and connect the WiFi network in pre-determined distance, passive detecting is slow relative to active detecting acquisition information rate,
Power consumption can thus be greatly decreased.
It should be noted that if wearable smart machine is connected to WiFi network in passive sense mode, then reacquire
The first location information of the wearable smart machine under the connection status;Obtain the WiFi module under the connection status
The WiFi information is associated with the first location information and is stored in preset first location information list by WiFi information.
Wherein, if the duration is greater than the first preset duration, the connection mode for controlling the WiFi module is
Passive sense mode includes: after the WiFi network step in pre-determined distance passively to receive and connect
Step S24, if do not receive the WiFi module in the second preset duration and be in connection status, described in closing
WiFi module.
If closing the WiFi mould when not receiving the WiFi module in the second preset duration and being in connection status
Block, that is, the connection mode for controlling the WiFi module is close pattern, not receive or connect the WiFi in pre-determined distance
Network, power consumption can be further greatly decreased by closing detecting relative to passive detecting.
If described when not receiving the WiFi module in the second preset duration and being in connection status, the WiFi is closed
Include: after module step
Step S25 obtains the second location information of the wearable smart machine at interval of third preset duration, judges institute
Whether consistent with any first location information in the first location information list state second location information;
In the present embodiment, in order to avoid the connection status that wearable smart machine is not in always WiFi network, thus,
Wearable smart machine presets a time interval namely third preset duration obtains a location information, namely at interval of third
Whether preset duration obtains the second location information of the wearable smart machine, judge the second location information with described
Any first location information in one location information list is consistent, judge the second location information whether with the first position
The consistent purpose of any first location information in information list is, it is determined whether direct-connected specific WiFi is needed, to skip
WiFi retrieving.
Step S26, if any first location information in the second location information and the first location information list
Unanimously, then the WiFi module is opened, and according to the second location information, is searched simultaneously from the first location information list
Connection and the matched target WiFi of the second location information.
If the second location information is consistent with any first location information in the first location information list,
The WiFi module is automatically turned on, and according to the second location information, searches and connects from the first location information list
Connect with the matched target WiFi of the second location information, namely determine second location information when be the positioning prestored, determination
Direct-connected specific WiFi is needed, to skip WiFi retrieving.
In the present embodiment, by obtaining the second confidence of the wearable smart machine at interval of third preset duration
Breath, judges whether the second location information is consistent with any first location information in the first location information list;If
The second location information is consistent with any first location information in the first location information list, then opens the WiFi
Module, and according to the second location information, it searches and connects and the second position from the first location information list
The target WiFi of information matches.Namely in the present embodiment, WiFi module is avoided to make due to closing and save under power consumption state because being constantly in
At user WiFi network can not be connected in common site.
Further, another embodiment of WiFi control method is provided in the present invention, in this embodiment, if described second
When not receiving the WiFi module in preset duration and being in connection status, closes after the WiFi module step and include:
Step S27, if detect the open command of the unlatching WiFi module of touch operation triggering, described in control
The connection mode of WiFi module is active sense mode, actively to detect and connect the WiFi network in pre-determined distance.
In the present embodiment, when WiFi module is in close state, if detecting described in the unlatching of touch operation triggering
When the open command of WiFi module, the connection mode for controlling the WiFi module is active sense mode, is detected and is connected with active
Connect the WiFi network in pre-determined distance.Namely in the present embodiment, as long as since user is because touching, described in clicking trigger unlatching
WiFi module enters active sense mode and needs to illustrate actively to detect and connect the WiFi network in pre-determined distance
It is while entering active sense mode, to obtain the location information of contemporary wearable smart machine, however, it is determined that wearable intelligence
Equipment is in common position, then also direct-connected specific WiFi.
In the present embodiment, if passing through the open command in the unlatching WiFi module for detecting touch operation triggering
When, the connection mode for controlling the WiFi module is active sense mode, actively to detect and connect the WiFi in pre-determined distance
Network.Namely in the present embodiment, for user when opening the WiFi module, realization connects WiFi network fastly.
In addition, the embodiment of the present invention also proposes a kind of WiFi control device, the present invention also provides a kind of WiFi control device,
The WiFi control device is applied to wearable smart machine, and the WiFi control device includes:
Judgment module judges the WiFi module for monitoring the working condition of WiFi module in wearable smart machine
Whether not-connected status is in;
First obtains module, if be in not-connected status for the WiFi module, obtain the WiFi module and is in
The duration of not-connected status controls the connection mode of the WiFi module according to the duration.
Optionally, the WiFi control device further include:
Second obtains module, if be in connection status for the WiFi module, obtains described under the connection status
The first location information of wearable smart machine;
Third obtains module, for obtaining the WiFi information of the WiFi module under the connection status, by the WiFi
Information is associated with the first location information to be stored in preset first location information list.
Optionally, the first acquisition module includes:
First acquisition unit obtains the WiFi module and is in if be in not-connected status for the WiFi module
Whether the duration of not-connected status judges the duration less than the first preset duration;
First control unit, if controlling the company of the WiFi module less than the first preset duration for the duration
Connecing mode is active sense mode, actively to detect and connect the WiFi network in pre-determined distance.
Optionally, described first module is obtained further include:
Second control unit controls the company of the WiFi module if being greater than the first preset duration for the duration
Connecing mode is passive sense mode, passively to receive and connect the WiFi network in pre-determined distance.
Optionally, described first module is obtained further include:
If closing unit, when being in connection status for not receiving the WiFi module in the second preset duration, close
Close the WiFi module.
Optionally, described first module is obtained further include:
Second acquisition unit, for obtaining the second confidence of the wearable smart machine at interval of third preset duration
Breath, judges whether the second location information is consistent with any first location information in the first location information list;
Opening unit, if for any first position in the second location information and the first location information list
Information is consistent, then opens the WiFi module, and according to the second location information, looks into from the first location information list
It looks for and connects and the matched target WiFi of the second location information.
Optionally, described first module is obtained further include:
Third control unit, if when for detecting the open command of the unlatching WiFi module of touch operation triggering,
The connection mode for controlling the WiFi module is active sense mode, actively to detect and connect the WiFi net in pre-determined distance
Network.
The expansion content of the specific embodiment of WiFi control device of the present invention and above-mentioned each embodiment of WiFi control method
Essentially identical, this will not be repeated here.
Referring to Fig. 3, Fig. 3 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Wearable device of the embodiment of the present invention can be PC, be also possible to smart phone, tablet computer, e-book reading
Device, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio
Level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression
Standard audio level 4) terminal devices such as player, portable computer.
As shown in figure 3, the wearable device may include: processor 1001, such as CPU, memory 1005, communication is always
Line 1002.Wherein, communication bus 1002 is for realizing the connection communication between processor 1001 and memory 1005.Memory
1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as disk is deposited
Reservoir.Memory 1005 optionally can also be the storage equipment independently of aforementioned processor 1001.
Optionally, which can also include target user interface, network interface, camera, RF (Radio
Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..Target user interface may include display screen
(Display), input unit such as keyboard (Keyboard), optional target user interface can also include that the wired of standard connects
Mouth, wireless interface.Network interface optionally may include standard wireline interface and wireless interface (such as WI-FI interface).
It will be understood by those skilled in the art that wearable device structure shown in Fig. 3 is not constituted to wearable
The restriction of equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
As shown in figure 3, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe that module and WiFi control program.Operating system is to manage and control the program of wearable device hardware and software resource,
Support the operation of WiFi control program and other softwares and/or program.Network communication module is for realizing in memory 1005
Communication between each component in portion, and communicated between hardware and softwares other in wearable device.
In wearable device shown in Fig. 3, processor 1001 is used to execute the WiFi control stored in memory 1005
Processing procedure sequence, the step of realizing WiFi control method described in any of the above embodiments.
Wearable device specific embodiment of the present invention and above-mentioned each embodiment of WiFi control method are essentially identical, herein
It repeats no more.
In addition, the present invention also provides a kind of computer storage medium, the computer storage medium be stored with one or
More than one program of person, the one or more programs can also be executed by one or more than one processor with
In the step of realizing each embodiment of above-mentioned WiFi control method.
The expansion of the specific embodiment of the wearable smart machine of the present invention and storage medium (i.e. computer storage medium)
Content and above-mentioned each embodiment of WiFi control method are essentially identical, and this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a wearable smart machine (can be mobile phone, count
Calculation machine, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of WiFi control method, which is characterized in that the WiFi control method is applied to wearable smart machine, described
WiFi control method includes:
The working condition for monitoring WiFi module in wearable smart machine, judges whether the WiFi module is in not connected shape
State;
If the WiFi module is in not-connected status, the duration that the WiFi module is in not-connected status is obtained,
The connection mode of the WiFi module is controlled according to the duration.
2. WiFi control method as described in claim 1, which is characterized in that WiFi mould in the wearable smart machine of monitoring
The working condition of block, judges whether the WiFi module is in not-connected status step and includes: later
If the WiFi module is in connection status, first of the wearable smart machine under the connection status is obtained
Confidence breath;
The WiFi information for obtaining the WiFi module under the connection status, by the WiFi information and the first location information
Association is stored in preset first location information list.
3. such as the described in any item WiFi control methods of claim 1-2, which is characterized in that if the WiFi module is in
When not-connected status, the duration that the WiFi module is in not-connected status is obtained, institute is controlled according to the duration
The connection mode step for stating WiFi module includes:
If the WiFi module is in not-connected status, the duration that the WiFi module is in not-connected status is obtained,
Judge the duration whether less than the first preset duration;
If the duration is less than the first preset duration, the connection mode for controlling the WiFi module is active sense mode,
Actively to detect and connect the WiFi network in pre-determined distance.
4. WiFi control method as claimed in claim 3, which is characterized in that described to judge the duration whether less than
After one preset duration step further include:
If the duration is greater than the first preset duration, the connection mode for controlling the WiFi module is passive sense mode,
Passively to receive and connect the WiFi network in pre-determined distance.
5. WiFi control method as claimed in claim 4, which is characterized in that preset if the duration is greater than first
Duration, the connection mode for controlling the WiFi module is passive sense mode, passively to receive and connect in pre-determined distance
Include: after WiFi network step
If closing the WiFi module when not receiving the WiFi module in the second preset duration and being in connection status.
6. WiFi control method as claimed in claim 5, which is characterized in that if described do not receive in the second preset duration
When the WiFi module is in connection status, close the WiFi module step includes: later
The second location information that the wearable smart machine is obtained at interval of third preset duration judges the second confidence
It whether consistent with any first location information in the first location information list ceases;
If the second location information is consistent with any first location information in the first location information list, institute is opened
WiFi module is stated, and according to the second location information, searched from the first location information list and connected and described
The matched target WiFi of two location informations.
7. WiFi control method as claimed in claim 5, which is characterized in that if described do not receive in the second preset duration
When the WiFi module is in connection status, close the WiFi module step includes: later
If detect the open command of the unlatching WiFi module of touch operation triggering, the connection of the WiFi module is controlled
Mode is active sense mode, actively to detect and connect the WiFi network in pre-determined distance.
8. a kind of WiFi control device, which is characterized in that the WiFi control device is applied to wearable smart machine, described
WiFi control device includes:
Whether judgment module judges the WiFi module for monitoring the working condition of WiFi module in wearable smart machine
In not-connected status;
First obtains module, if be in not-connected status for the WiFi module, obtains the WiFi module in not connecting
The duration for connecing state controls the connection mode of the WiFi module according to the duration.
9. a kind of wearable smart machine, which is characterized in that the wearable smart machine includes: memory, processor and deposits
The WiFi control program that can be run on the memory and on the processor is stored up, the WiFi control program is by the place
Manage the step of realizing the WiFi control method as described in any one of claims 1 to 7 when device executes.
10. a kind of storage medium, which is characterized in that be stored with WiFi control program, the WiFi control on the storage medium
The step of WiFi control method as described in any one of claims 1 to 7 is realized when program is executed by processor.
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 true CN109905911A (en) | 2019-06-18 |
CN109905911B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111092656A (en) * | 2019-12-28 | 2020-05-01 | 深圳市优必选科技股份有限公司 | Robot network connection method, device, robot and storage medium |
CN112449411A (en) * | 2019-08-27 | 2021-03-05 | 北京君正集成电路股份有限公司 | Intelligent equipment working mode switching method and device |
Citations (7)
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 |
-
2019
- 2019-03-18 CN CN201910206209.6A patent/CN109905911B/en active Active
Patent Citations (7)
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 |
Cited By (2)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN109905911B (en) | 2023-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104081316B (en) | The system and method for the cell load management in portable computing device | |
CN105302274B (en) | A kind of sensor control method and device | |
CN108541002B (en) | A kind of monitor method of paging message, mobile terminal and server | |
CN107329559A (en) | A kind of application control method, device, terminal and storage medium | |
CN102981756A (en) | Touch screen mobile terminal fast application switch method | |
CN108347277A (en) | Method of controlling antenna, device, storage medium and electronic equipment | |
CN106095051B (en) | A kind of processing method of application program for mobile terminal, device and mobile terminal | |
CN109905911A (en) | WiFi control method, device, wearable smart machine and storage medium | |
CN105187653B (en) | Network connection switchs method for closing and device | |
CN105607843A (en) | Method and device for controlling terminal on the basis of gesture | |
CN106851642A (en) | Wireless networking authorization method and device | |
CN102375728A (en) | Network line connecting control method and relevant electronic device | |
CN109523977A (en) | Backlight adjusting method, device, mobile terminal and storage medium | |
CN107943570A (en) | application management method, device, storage medium and electronic equipment | |
CN105335216A (en) | Communication terminal application management method and system | |
CN106980558A (en) | The method for cleaning and mobile terminal of Backup Data | |
CN109683821A (en) | Data processing method, device, mobile terminal and storage medium | |
CN104657163A (en) | Method for opening and closing networking application program and electronic equipment | |
CN106021137B (en) | The method of a kind of electronic equipment, peripheral hardware and controlling electronic devices | |
CN105282330B (en) | The method and device of automatic connection network | |
CN104412274A (en) | Portable terminal, program, and control method | |
CN110045994B (en) | Application program processing method and device, electronic equipment and computer readable storage medium | |
CN109375995B (en) | Application freezing method and device, storage medium and electronic equipment | |
CN110046033B (en) | Application program processing method and device, electronic equipment and computer readable storage medium | |
CN104427097B (en) | Terminal device and changing method |
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 |