CN109803360A - WiFi dormancy control method, device, electronic equipment and storage medium - Google Patents

WiFi dormancy control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109803360A
CN109803360A CN201910113167.1A CN201910113167A CN109803360A CN 109803360 A CN109803360 A CN 109803360A CN 201910113167 A CN201910113167 A CN 201910113167A CN 109803360 A CN109803360 A CN 109803360A
Authority
CN
China
Prior art keywords
application
electronic equipment
wifi network
network module
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910113167.1A
Other languages
Chinese (zh)
Inventor
唐荣政
醋波涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910113167.1A priority Critical patent/CN109803360A/en
Publication of CN109803360A publication Critical patent/CN109803360A/en
Pending legal-status Critical Current

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

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application discloses a kind of WiFi dormancy control method, device, electronic equipment and storage medium, method includes: to monitor in electronic equipment with the presence or absence of the application using WiFi network module, when there is the application using WiFi network module in monitoring electronic equipment, determine whether the application belongs to preset target application, the delay of target application is less than preset duration;When the application belongs to target application, and when not carrying out data transmission in the first free time length, or, when the application belongs to non-targeted application, and when not carrying out data transmission in the second free time length, it controls above-mentioned WiFi network module and enters suspend mode, above-mentioned first free time length is greater than above-mentioned second free time length.The application formulates WiFi dormancy strategy according to the delay for the application for using WiFi network module, can not only ensure the timeliness of the data transmission of low delay application, but also can effectively reduce the power consumption of WiFi network module.

Description

WiFi dormancy control method, device, electronic equipment and storage medium
Technical field
The present invention relates to technical field of electronic equipment more particularly to a kind of WiFi dormancy control methods, device, electronic equipment And storage medium.
Background technique
WIFI (Wireless-Fidelity, Wireless Fidelity) technology is more more and more universal, and electronic equipment can pass through WIFI network module is connected in internet, to obtain more resources.But since the power consumption of WIFI network module is larger, Therefore it inevitably will affect the standby time of electronic equipment, the power consumption for how effectively reducing WIFI network module seems especially heavy It wants.
Summary of the invention
The application provides a kind of WiFi dormancy control method, device, electronic equipment and storage medium, can effectively reduce The power consumption of WIFI network module, specific:
The application first aspect provides a kind of WiFi dormancy control method, this method comprises:
It monitors with the presence or absence of the application using WiFi network module in electronic equipment, the WiFi network module is set to institute It states in electronic equipment;
In monitoring electronic equipment exist using WiFi network module in application, determine it is described application whether belong to it is pre- If target application, the delay of the target application is less than preset duration;
When the application belongs to target application, and the application does not carry out data transmission in the first free time length, or Person controls institute when the application belongs to non-targeted application, and the application does not carry out data transmission in the second free time length It states WiFi network module and enters suspend mode, first free time length is greater than second free time length.
The application second aspect provides a kind of WiFi suspend mode control device, which includes:
Detection module, for monitoring in electronic equipment with the presence or absence of the application using WiFi network module, the WiFi net Network module is set in the electronic equipment;
Determining module, it is using WiFi network module in application, described in determining for existing in monitoring electronic equipment Using whether preset target application is belonged to, the delay of the target application is less than preset duration;
First control module, for belonging to target application when the application, and in the first free time length, the application is not When carrying out data transmission, alternatively, the application does not carry out when the application belongs to non-targeted application, and in the second free time length When data are transmitted, controls the WiFi network module and enter suspend mode, it is idle that first free time length is greater than described second Duration.
The embodiment of the present application third aspect provide a kind of electronic equipment, including WiFi network module, memory, processor and The computer program that can be run on a memory and on a processor is stored, when the processor executes the computer program, Realize each step in the WiFi dormancy control method of first aspect.
The embodiment of the present application fourth aspect provides a kind of storage medium, and the storage medium is computer-readable storage medium Matter is stored thereon with computer program, when the computer program is executed by processor, realizes the WiFi suspend mode control of first aspect Each step in method processed.
A kind of WiFi dormancy control method provided by the embodiment of the present application, according to the application for using WiFi network module Delay, for low delay application, when it does not carry out data transmission, needs to wait the longer free time to formulate WiFi dormancy strategy After duration, then controls WiFi network module and enter suspend mode, and for height delay application, when it does not carry out data transmission, After only needing to wait shorter free time length, i.e., controllable WiFi network module enters suspend mode, can both ensure as a result, low The timeliness of the data transmission of delay application, and the power consumption of WiFi network module can be effectively reduced.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those skilled in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is the structural block diagram of a kind of electronic equipment in the embodiment of the present application;
Fig. 2 is the flow diagram of WiFi dormancy control method in the embodiment of the present application;
Fig. 3 is another flow diagram of WiFi dormancy control method in the embodiment of the present application;
Fig. 4 is the another flow diagram of WiFi dormancy control method in the embodiment of the present application;
Fig. 5 is the another flow diagram of WiFi dormancy control method in the embodiment of the present application;
Fig. 6 is the another flow diagram of WiFi dormancy control method in the embodiment of the present application;
Fig. 7 is the program module schematic diagram of WiFi suspend mode control device in the embodiment of the present application;
Fig. 8 is another program module schematic diagram of WiFi suspend mode control device in the embodiment of the present application;
Fig. 9 is the another program module schematic diagram of WiFi suspend mode control device in the embodiment of the present application;
Figure 10 is the another program module schematic diagram of WiFi suspend mode control device in the embodiment of the present application.
Specific embodiment
To enable present invention purpose, feature, advantage more obvious and understandable, below in conjunction with the application Attached drawing in embodiment, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described reality Applying example is only some embodiments of the present application, and not all embodiments.Based on the embodiment in the application, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to Fig.1, Fig. 1 is the structural block diagram of a kind of electronic equipment in the embodiment of the present application.It is provided by the embodiments of the present application WiFi dormancy control method can be applied in electronic equipment 100 as shown in Figure 1.Illustratively, electronic equipment 100 can be shifting Any one of dynamic or portable and various types of computer system devices for executing wireless communication are (only exemplary in Fig. 1 Show a kind of form).Specifically, electronic equipment 100 can be mobile phone or smart phone (for example, being based on iPhone TM, the phone based on Android TM), portable gaming device (such as Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), laptop computer, PDA (Personal Digital Assistant, palm PC), portable Internet appliance, music player and data storage device, it is other wearable to set Standby (such as smartwatch).In some cases, electronic equipment 100 can execute multiple functions (such as play music, display view Frequently, it stores picture and sends and receivees call).
Wherein, electronic equipment 100 may include storage and processing circuit 110.The storage and processing circuit 110 may include Memory, such as hard drive memory, nonvolatile memory (such as flash memory or the other electricity for being used to form solid state drive Sub- programmable read only memory etc.), volatile memory (such as either statically or dynamically random access memory etc.) etc., the application is real Apply example with no restriction.Processing circuit in storage and processing circuit 110 can be used for the operating of controlling electronic devices 100.At this Managing circuit can microprocessor, microcontroller, digital signal processor, baseband processor, power management based on one or more Unit, audio codec chip, specific integrated circuit, display-driver Ics etc. are realized.
Storage and processing circuit 110 can be used for running the software in electronic equipment 100, such as operating system, application software Deng.These softwares can be used for executing some control operations, for example, the Image Acquisition based on camera, is based on ambient light sensing The ambient light measurement of device, the proximity sensor measurement based on proximity sensor, the status indicator lamp based on such as light emitting diode The information display function that equal positioning indicators are realized, the touch event detection based on touch sensor (such as are layered with multiple ) the associated function of information is shown on display, sound is collected and generated to operation associated with wireless communication function is executed and The associated operation of frequency signal, control operation associated with collection and treatment button press event data and electronic equipment Other functions in 100 etc., the embodiment of the present application is with no restriction.
Electronic equipment 100 can also include input-output circuit 120.Input-output circuit 120 can be used for setting electronics Standby 100 realization data are output and input, i.e. permission electronic equipment 100 allows electronic equipment from outer equipment receiving data and also 100 export data to external equipment from electronic equipment 100.
Input-output circuit 120 may include WiFi network module 121, and WiFi network module 121 can be used for for electronics Equipment 100 provides the ability with external device communication.WiFi network module 121 belongs to Internet of Things transport layer, and function is by serial ports Or Transistor-Transistor Logic level switchs to the embedded module for meeting Wi-Fi wireless network communication standards, built-in wireless network protocol IEEE802.11b.g.n protocol stack and ICP/IP protocol stack.Electronic equipment can be directly sharp after being embedded in WiFi network module 121 Internet is connected to Wi-Fi.
Input-output circuit 120 can further include input-output unit 122.Input-output unit 122 can be with Including button, control stick, click wheel, scroll wheel, touch tablet, keypad, keyboard, camera, light emitting diode and other states Indicator etc..
User can input a command for the operation of controlling electronic devices 100 by input-output circuit 120, and can be with Status information and other outputs from electronic equipment 100 are received using the output data of input-output circuit 120 to realize.
WiFi dormancy control method in the embodiment of the present application is described based on above-mentioned electronic equipment 100, WiFi suspend mode control Method formulates WiFi dormancy strategy according to the delay for the application for using WiFi network module, for low delay application, its not When carrying out data transmission, after needing to wait longer free time length, then controls WiFi network module and enter suspend mode, and for Height delay application, when it does not carry out data transmission, it is only necessary to after waiting shorter free time length, i.e., controllable WiFi network mould Block enters suspend mode, can not only ensure the timeliness of the data transmission of low delay application as a result, but also can effectively reduce The power consumption of WiFi network module.
Specifically, referring to Fig. 2, Fig. 2 is the flow diagram of WiFi dormancy control method in the embodiment of the present application, the party Method includes:
With the presence or absence of the application using WiFi network module in step 201, monitoring electronic equipment, which is set It is placed in above-mentioned electronic equipment.
Wherein, wireless network protocol IEEE802.11b.g.n protocol stack and ICP/IP protocol built in WiFi network module Stack can directly utilize the WiFi net after electronic equipment insertion WiFi network module for providing communication function for electronic equipment Network module is linked into Wi-Fi network access point, and then electronic equipment is accessed internet.
In the embodiment of the present application, when the WiFi connection on electronic equipment is set on state, real-time monitoring electronics is set With the presence or absence of the application using WiFi network module in standby, wherein the application is referred to as APP (Application, application Program), including installing application on an electronic device and the included application of electronic device system.Use WiFi network The application of module include before and after electronic equipment or running background and by the access interconnection of the WiFi network module of electronic equipment The application of net.
In addition, in the embodiment of the present application, when the WiFi connection on electronic equipment is set on state, if electronic equipment In there is no using WiFi network module application, then after waiting preset duration (such as 20ms), control WiFi network module into Enter suspend mode.
Step 202 exists using WiFi network module in application, whether determining the application in monitoring electronic equipment Belong to preset target application, the delay of the target application is less than preset duration.
It is understood that different applications generally have a different delay requirements, for example, some instant messagings application or Pay down application, user is generally required to receive or send message at the first time, therefore delay requirement can be higher, typically Such as QQ, wechat, Alipay are applied in instant messaging.And for certain applications, user and whether pay no attention to can be at the first time Message is sent or receives, the requirement to time delay can be lower, typical such as mailbox, weather and shopping class application.
In the embodiment of the present application, a duration can be preset, according to the duration to each application in electronic equipment It distinguishes, the application that delay is less than the duration is determined as low delay application, i.e. target application in the present embodiment.
Wherein, when monitor in electronic equipment exist using WiFi network module in application, determine the application whether belong to In preset target application, that is, determining whether the time delay of the application is less than preset duration.
Step 203 belongs to target application when above-mentioned application, and the application does not carry out data transmission in the first free time length When, alternatively, belong to non-targeted application when the application, and when the application does not carry out data transmission in the second free time length, control Above-mentioned WiFi network module enters suspend mode, and above-mentioned first free time length is greater than above-mentioned second free time length.
Wherein, data transmission (data transmission), refers to according to regulation appropriate, by one or more Data in electronic equipment are sent to other equipment or electronic equipment receive the data of other equipment transmissions by link.
In the embodiment of the present application, when the application for monitoring to have using WiFi network module in electronic equipment, and the application When belonging to target application, detect whether the application is carrying out data transmission, if the application does not carry out in the first free time length Data transmission, then control above-mentioned WiFi network module and enter suspend mode;WiFi net is used when monitoring to exist in electronic equipment The application of network module, and when the application is not belonging to target application, equally detect whether the application is carrying out data transmission, if The application does not carry out data transmission in second free time length, then controls above-mentioned WiFi network module and enter suspend mode.
Wherein, above-mentioned first free time length is greater than above-mentioned second free time length.It is understood that small for time delay answers With, it is more demanding to the timeliness of WiFi network data transmission, so can be waited longer when it does not carry out data transmission Free time (such as 200ms), then control above-mentioned WiFi network module again and enter suspend mode;The application big for time delay, It is lower to the timeliness requirement of WiFi network data transmission, so can wait shorter when it does not carry out data transmission Free time (such as 100ms) then controls above-mentioned WiFi network module again and enters suspend mode.
Wherein, the suspend mode of WiFi network module is alternatively referred to as being low-power consumption mode, and WiFi network module enters suspend mode Mode, partially or mostly function meeting break-off, to reduce the power consumption of entire WiFi network module.In the present embodiment, The suspend mode of WiFi network module may include following two:
Mode 1:Sleep mode: system operation clock remains unchanged, and WiFi network module can pass through serial ports or network data Packet wakes up, and GPIO (General Purpose Input Output, universal input/output) mouth keeps output.
Mode 2:Deepsleep mode: system operation clock is reduced to half, can be called out by serial ports or network packet It wakes up, it is slightly long to wake up response time ratio Sleep mode for GPIO mouthfuls of holding outputs.
A kind of WiFi dormancy control method provided herein comes according to the delay for the application for using WiFi network module It formulates WiFi dormancy strategy low delay application when it does not carry out data transmission, is needed to wait longer free time length Afterwards, it then controls WiFi network module and enters suspend mode, and for height delay application, when it does not carry out data transmission, only need After waiting shorter free time length, i.e., controllable WiFi network module enters suspend mode, can both ensure low delay as a result, The timeliness of the data transmission of application, and the power consumption of WiFi network module can be effectively reduced.
It further, based on the above embodiment, is WiFi dormancy control method in the embodiment of the present application referring to Fig. 3, Fig. 3 Another flow diagram, in the embodiment of the present application, above-mentioned WiFi dormancy control method includes the following steps:
With the presence or absence of the application using WiFi network module in step 301, monitoring electronic equipment.
Step 302 exists using WiFi network module in application, determining that the application is in monitoring electronic equipment It is no to be in running background.
Step 303 is in running background when the application, and the application does not carry out data biography in third free time length When defeated, control the WiFi network module and enter suspend mode, the third free time length is less than second free time length.
Step 304, when the application is in front stage operation, determine it is described application whether belong to preset target application.
Step 305 belongs to target application when the application, and the application does not carry out data biography in the first free time length When defeated, alternatively, the application does not carry out data transmission when the application belongs to non-targeted application, and in the second free time length When, it controls the WiFi network module and enters suspend mode, first free time length is greater than second free time length.
It, can be with when using the application of WiFi network module to be in running background in electronic equipment in the embodiment of the present application Default user is lower to the delay requirement of the application at this time, at this point it is possible to shorter free time (such as 100ms) be waited, if should Background application does not carry out data transmission, then controls above-mentioned WiFi network module and enter suspend mode.
Embodiment in order to better understand the present invention is WiFi suspend mode controlling party in the embodiment of the present application referring to Fig. 4, Fig. 4 The another flow diagram of method.
WiFi dormancy control method provided by the embodiment of the present application, when answering using WiFi network module in electronic equipment It, can be after waiting shorter free time (such as 100ms), if the background application does not carry out data biography when with being in running background It is defeated, then it controls WiFi network module and enters suspend mode, thus the significantly more efficient power consumption for reducing WiFi network module.
Further, based on the above embodiment, referring to Fig. 5, Fig. 5 is WiFi dormancy control method in the embodiment of the present application Another flow diagram, this method comprises:
Step 501, the delay for determining each application in electronic equipment.
Delay is less than the application of the preset duration and is determined as the target application by step 502, and by fixed mesh Mark is saved using list to the electronic equipment.
With the presence or absence of the application using WiFi network module in step 503, monitoring electronic equipment.
Step 504 exists using WiFi network module in application, determining that the application is in monitoring electronic equipment It is no to belong to preset target application.
Step 505 belongs to target application when the application, and the application does not carry out data biography in the first free time length When defeated, alternatively, the application does not carry out data transmission when the application belongs to non-targeted application, and in the second free time length When, it controls the WiFi network module and enters suspend mode, first free time length is greater than second free time length.
In the embodiment of the present application, in order to ensure low delay application data transmission timeliness, it may be predetermined that electronics Then the application that delay is less than preset duration is determined as target application by the delay of each application in equipment, and will be fixed Target application list is saved to electronic equipment.Then, there is the application using WiFi network module in determining electronic equipment Afterwards, if this is applied in the target application list that electronic equipment prestores, and the application does not carry out data in the first free time length Transmission, then control above-mentioned WiFi network module and enter suspend mode.
Wherein, the content that step 503 to step 505 describes is consistent with the content that above-mentioned steps 201 to step 203 describe, Specifically it can refer to step 201 to step 203, details are not described herein.
Further, above-mentioned steps 501 determine that the process of target application can also be in the following ways into step 502:
Step a, in response to the sort operation of user's input, determine that the sort operation is answered in each of the electronic equipment With middle chosen application.
Step b, the application for being chosen the sort operation in each application of the electronic equipment is determined as described Target application, and fixed target application list is saved to the electronic equipment.
I.e. in the embodiment of the present invention, above-mentioned steps a and step b can be used to replace above-mentioned steps 501 and step 502.It can With understanding, for a user, the determination basis of target application can not only be only limited to the delay of each application, may be used also To be other factors, such as significance level, the frequency of use of the application of the application to user therefore can be according to user's Actual demand selects certain applications as above-mentioned target application in the electronic device.
Further, based on the above embodiment, referring to Fig. 6, Fig. 6 is WiFi dormancy control method in the embodiment of the present application Another flow diagram, this method comprises:
With the presence or absence of the application using WiFi network module in step 601, monitoring electronic equipment.
Step 602 exists using WiFi network module in application, determining that the application is in monitoring electronic equipment It is no to belong to preset target application.
Step 603 belongs to target application when the application, and the application does not carry out data biography in the first free time length When defeated, alternatively, the application does not carry out data transmission when the application belongs to non-targeted application, and in the second free time length When, it controls the WiFi network module and enters suspend mode, first free time length is greater than second free time length.
Wherein, the content that step 601 to step 603 describes is consistent with the content that above-mentioned steps 201 to step 203 describe, Specifically it can refer to step 201 to step 203, details are not described herein.
Step 604, when the electronic equipment receives data receiver message, wake up the WiFi network module, it is described Data receiver message includes beacon beacon.
Wherein, beacon have real time monitoring, historical data analysis and multiplicity instant alarming (sound, SMS, The modes such as Email) function, it can be used for detecting whether electronic equipment has data to need to receive.
I.e. in the embodiment of the present application, after WiFi network module enters suspend mode, electronic equipment can be at regular intervals Interval, detects whether electronic equipment has data to need to receive by receiving antenna, if electronic equipment has data to need to receive, WiFi network module is waken up, corresponding data are then received by WiFi network module, to ensure that the data of electronic equipment are logical Letter will not interrupt.
Further, the application also provides a kind of WiFi suspend mode control device 200, referring to Fig. 7, Fig. 7 is that the application is real The program module schematic diagram of WiFi suspend mode control device in example is applied, which includes:
Detection module 701, for monitoring in electronic equipment with the presence or absence of the application using WiFi network module, the WiFi Network module is set in the electronic equipment.
Determining module 702, for existing in monitoring electronic equipment using WiFi network module in application, determining institute It states using whether preset target application is belonged to, the delay of the target application is less than preset duration.
First control module 703, for belonging to target application, and the application in the first free time length when the application When not carrying out data transmission, alternatively, belong to non-targeted application when the application, and in the second free time length the application not into When row data are transmitted, controls the WiFi network module and enter suspend mode, it is empty that first free time length is greater than described second Idle is long.
A kind of WiFi suspend mode control device 200 provided herein, according to prolonging for the application for using WiFi network module When formulate WiFi dormancy strategy, for low delay application, when it does not carry out data transmission, when needing to wait the longer free time After length, then controls WiFi network module and enter suspend mode, and for height delay application, when it does not carry out data transmission, only After needing to wait shorter free time length, i.e., controllable WiFi network module enters suspend mode, can both ensure low prolong as a result, The timeliness of the data transmission of Shi Yingyong, and the power consumption of WiFi network module can be effectively reduced.
It further, based on the above embodiment, is WiFi suspend mode control device in the embodiment of the present application referring to Fig. 8, Fig. 8 Another program module schematic diagram, in the embodiment of the present application, above-mentioned WiFi suspend mode control device 200 further include:
Determining module 801 is run, described in determining before determining whether the application belongs to preset target application Using whether in running background.
Second control module 802, for being in running background, and the application in third free time length when the application It when not carrying out data transmission, controls the WiFi network module and enters suspend mode, the third free time length is less than described the Two free time lengths;When the application is in front stage operation, continue to execute whether the determination application belongs to preset mesh Mark application.
WiFi suspend mode control device 200 provided by the embodiment of the present application, when in electronic equipment use WiFi network module Application when being in running background, can be after waiting shorter free time (such as 100ms), if the background application is not counted It according to transmission, then controls WiFi network module and enters suspend mode, thus the significantly more efficient power consumption for reducing WiFi network module.
Further, based on the above embodiment, referring to Fig. 9, Fig. 9 is WiFi suspend mode control device in the embodiment of the present application Another program module schematic diagram, the device 200 further include:
Be delayed determining module 901, for determining the delay of each application in electronic equipment.
First division module 902, the application for that will be delayed less than the preset duration are determined as the target application, and Fixed target application list is saved to the electronic equipment.
Further, above-mentioned apparatus 200 further include:
Respond module, the sort operation for inputting in response to user determine the sort operation in the electronic equipment Each application in the application chosen.
Second division module, the application for being chosen the sort operation in each application of the electronic equipment It is determined as the target application, and fixed target application list is saved to the electronic equipment.
I.e. in the embodiment of the present invention, above-mentioned respond module and the second division module are substituted for above-mentioned delay and determine mould Block 901 and the first division module 902.
For a user, the determination basis of target application can not only be merely the delay of each application, can also be Other factors, such as significance level, the frequency of use of the application of the application to user, therefore can also be according to user's oneself Actual demand selects certain applications as above-mentioned target application in the electronic device.
Further, based on the above embodiment, referring to Fig. 10, Figure 10 is WiFi suspend mode control dress in the embodiment of the present application The another program module schematic diagram set, the device 200 further include:
Wake-up module 1001, for after controlling the WiFi network module and entering suspend mode, when the electronics is set For when receiving data receiver message, the WiFi network module is waken up, the data receiver message includes beacon beacon.
I.e. in the embodiment of the present application, after WiFi network module enters suspend mode, electronic equipment can be at regular intervals Interval wakes up receiving antenna and detects whether electronic equipment has data to need to receive, if electronic equipment has data to need to receive, WiFi network module is waken up, corresponding data are then received by WiFi network module, to ensure that the data of electronic equipment are logical Letter will not interrupt.
Further, the embodiment of the present application also provides a kind of electronic equipment, including WiFi network module, memory, processing Device and storage on a memory and the computer program that can run on a processor, when processor executes computer program, realization Each step in WiFi dormancy control method in any one above-mentioned embodiment.
Illustratively, when processor executes above-mentioned computer program, may be implemented: whether there is in monitoring electronic equipment makes With the application of WiFi network module;Exist in monitoring electronic equipment using WiFi network module in application, determining that this is answered With whether belonging to preset target application;When the application belongs to target application, and the application does not carry out in the first free time length When data are transmitted, alternatively, when the application belongs to non-targeted application, and the application does not carry out data transmission in the second free time length When, control WiFi network module enters suspend mode.
In addition, computer program can also be divided into one or more modules, one or more module is stored in It in memory, and is executed by processor, to complete the present invention.One or more modules, which can be, can complete the one of specific function Family computer program instruction section, the instruction segment are used to describe computer program and are calculating the implementation procedure in equipment.For example, meter Calculation machine program can be divided into detection module 701 as shown in Figure 7, determining module 702, the first control module 703.
Processor can be central processing unit (Central Processing Unit, CPU), can also be that other are logical With processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The embodiment of the present application also provides a kind of readable storage medium storing program for executing, which is computer-readable storage medium Matter is stored thereon with computer program, when computer program is executed by processor, realizes any one implementation in above-described embodiment Each step in WiFi dormancy control method in example.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or module Letter connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The above are to a kind of WiFi dormancy control method provided herein, device, electronic equipment and storage medium Description, for those skilled in the art, according to the thought of the embodiment of the present application, in specific embodiments and applications It will change, to sum up, the contents of this specification should not be construed as limiting the present application.

Claims (12)

1. a kind of WiFi dormancy control method, which is characterized in that the described method includes:
It monitors with the presence or absence of the application using WiFi network module in electronic equipment, the WiFi network module is set to the electricity In sub- equipment;
In monitoring electronic equipment exist using WiFi network module in application, determine it is described application whether belong to it is preset The delay of target application, the target application is less than preset duration;
When the application belongs to target application, and the application does not carry out data transmission in the first free time length, alternatively, working as The application belongs to non-targeted application, and the application is not when carrying out data transmission in the second free time length, described in control WiFi network module enters suspend mode, and first free time length is greater than second free time length.
2. the method as described in claim 1, which is characterized in that whether the determination application belongs to preset target application The step of before, further includes:
Determine the application whether in running background;
When the application is in running background, and the application does not carry out data transmission in third free time length, institute is controlled It states WiFi network module and enters suspend mode, the third free time length is less than second free time length;
When the application is in front stage operation, continue to execute whether the determination application belongs to preset target application Step.
3. the method as described in claim 1, which is characterized in that whether there is in the monitoring electronic equipment and use WiFi network Before the step of application of module, further includes:
Determine the delay of each application in electronic equipment;
The application that delay is less than the preset duration is determined as the target application, and fixed target application list is protected It deposits to the electronic equipment.
4. the method as described in claim 1, which is characterized in that whether there is in the monitoring electronic equipment and use WiFi network Before the step of application of module, further includes:
In response to the sort operation of user's input, determine that the sort operation is chosen in each application of the electronic equipment Application;
The application that the sort operation is chosen in each application of the electronic equipment is determined as the target application, and Fixed target application list is saved to the electronic equipment.
5. the method as described in Claims 1-4 any one, which is characterized in that the control WiFi network module into After the step of entering suspend mode, further includes:
When the electronic equipment receives data receiver message, the WiFi network module, the data receiver message are waken up Including beacon beacon.
6. a kind of WiFi suspend mode control device, which is characterized in that described device includes:
Detection module, for monitoring in electronic equipment with the presence or absence of the application using WiFi network module, the WiFi network mould Block is set in the electronic equipment;
Determining module, for existing in monitoring electronic equipment using WiFi network module in application, determining the application Whether preset target application is belonged to, and the delay of the target application is less than preset duration;
First control module, for belonging to target application when the application, and in the first free time length, the application is not carried out When data are transmitted, alternatively, the application does not carry out data when the application belongs to non-targeted application, and in the second free time length When transmission, controls the WiFi network module and enter suspend mode, first free time length is greater than second free time length.
7. device as claimed in claim 6, which is characterized in that described device further include:
Determining module is run, for determining that the application is before determining whether the application belongs to preset target application It is no to be in running background;
Second control module, for being in running background when the application, and in third free time length, the application is not carried out When data are transmitted, controls the WiFi network module and enter suspend mode, it is idle that the third free time length is less than described second Duration;When the application is in front stage operation, continue to execute whether the determination application belongs to preset target application.
8. device as claimed in claim 6, which is characterized in that described device further include:
Be delayed determining module, for determining the delay of each application in electronic equipment;
First division module is less than the application of the preset duration and is determined as the target application for that will be delayed, and will really Fixed target application list is saved to the electronic equipment.
9. device as claimed in claim 6, which is characterized in that described device further include:
Respond module, the sort operation for inputting in response to user determine the sort operation in each of the electronic equipment The application chosen in a application;
Second division module, the application for being chosen the sort operation in each application of the electronic equipment determine For the target application, and fixed target application list is saved to the electronic equipment.
10. the device as described in claim 6 to 9 any one, which is characterized in that described device further include:
Wake-up module, for after controlling the WiFi network module and entering suspend mode, when the electronic equipment receives When data receiver message, the WiFi network module is waken up, the data receiver message includes beacon beacon.
11. a kind of electronic equipment, including WiFi network module, memory, processor and storage on a memory and can handled The computer program run on device, which is characterized in that when the processor executes the computer program, realize claim 1 Each step into WiFi dormancy control method described in 5 any one.
12. a kind of storage medium, the storage medium is computer readable storage medium, is stored thereon with computer program, It is characterized in that, when the computer program is executed by processor, realizes WiFi suspend mode described in claim 1 to 5 any one Each step in control method.
CN201910113167.1A 2019-02-13 2019-02-13 WiFi dormancy control method, device, electronic equipment and storage medium Pending CN109803360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910113167.1A CN109803360A (en) 2019-02-13 2019-02-13 WiFi dormancy control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910113167.1A CN109803360A (en) 2019-02-13 2019-02-13 WiFi dormancy control method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109803360A true CN109803360A (en) 2019-05-24

Family

ID=66562096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910113167.1A Pending CN109803360A (en) 2019-02-13 2019-02-13 WiFi dormancy control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109803360A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110703897A (en) * 2019-08-29 2020-01-17 华为技术有限公司 Control method, device, chip and equipment
CN112731875A (en) * 2020-12-21 2021-04-30 珠海格力电器股份有限公司 Target device control method and device, nonvolatile storage medium and processor
CN114158136A (en) * 2020-08-17 2022-03-08 Oppo(重庆)智能科技有限公司 WiFi mode configuration method and device and computer readable storage medium
CN114173339A (en) * 2020-09-10 2022-03-11 合肥君正科技有限公司 Method and device for quickly connecting WiFi network, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050164A (en) * 2015-01-16 2015-11-11 中国矿业大学 Method for lowering wifi power consumption based on data importance
US20160357248A1 (en) * 2015-06-04 2016-12-08 Apple Inc. Opportunistic waking of an application processor
CN109089261A (en) * 2018-10-18 2018-12-25 Oppo广东移动通信有限公司 Method, apparatus, computer equipment and the storage medium of radio roaming triggering

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050164A (en) * 2015-01-16 2015-11-11 中国矿业大学 Method for lowering wifi power consumption based on data importance
US20160357248A1 (en) * 2015-06-04 2016-12-08 Apple Inc. Opportunistic waking of an application processor
CN109089261A (en) * 2018-10-18 2018-12-25 Oppo广东移动通信有限公司 Method, apparatus, computer equipment and the storage medium of radio roaming triggering

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110703897A (en) * 2019-08-29 2020-01-17 华为技术有限公司 Control method, device, chip and equipment
WO2021036748A1 (en) * 2019-08-29 2021-03-04 华为技术有限公司 Control method and apparatus, chip and device
CN110703897B (en) * 2019-08-29 2022-01-07 荣耀终端有限公司 Control method, device, chip and equipment
CN114158136A (en) * 2020-08-17 2022-03-08 Oppo(重庆)智能科技有限公司 WiFi mode configuration method and device and computer readable storage medium
CN114158136B (en) * 2020-08-17 2023-06-09 Oppo(重庆)智能科技有限公司 WiFi mode configuration method and device and computer-readable storage medium
CN114173339A (en) * 2020-09-10 2022-03-11 合肥君正科技有限公司 Method and device for quickly connecting WiFi network, storage medium and electronic equipment
CN114173339B (en) * 2020-09-10 2023-05-05 合肥君正科技有限公司 Method and device for quickly connecting WiFi network, storage medium and electronic equipment
CN112731875A (en) * 2020-12-21 2021-04-30 珠海格力电器股份有限公司 Target device control method and device, nonvolatile storage medium and processor

Similar Documents

Publication Publication Date Title
CN109803360A (en) WiFi dormancy control method, device, electronic equipment and storage medium
CN105786878B (en) Display method and device of browsing object
CN107368400B (en) CPU monitoring method and device, computer readable storage medium and mobile terminal
CN105830016B (en) Power management method and power management device for user equipment
WO2019128546A1 (en) Application program processing method, electronic device, and computer readable storage medium
CN107577508B (en) Application processing method and device, readable storage medium and mobile terminal
CN107766139B (en) Application management method and device
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
WO2017206918A1 (en) Terminal awakening accelerating method and related product
CN107332997A (en) Reduce method, device, mobile terminal and the storage medium of terminal heating
CN106020962B (en) A kind of course control method and terminal device
CN107948404A (en) A kind of method, terminal device and computer-readable recording medium for handling message
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN106055455A (en) Anti-interference method and device for key
CN106302101B (en) Message reminding method, terminal and server
CN106066769B (en) A kind of processing method and mobile terminal of mobile terminal
CN111405112A (en) Message prompting method and electronic equipment
CN108200635B (en) Operation control method of application program and mobile terminal
CN106454953B (en) Flow control method, device and terminal
CN109218313A (en) A kind of method, equipment and the storage medium of supervision application
CN106815085B (en) Message processing method and terminal equipment
CN107635277A (en) The power saving management method and internet-of-things terminal equipment of a kind of internet-of-things terminal equipment
CN110045811B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment

Legal Events

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

Application publication date: 20190524