WO2020103080A1 - Method for reducing power consumption, terminal device, and storage medium - Google Patents

Method for reducing power consumption, terminal device, and storage medium

Info

Publication number
WO2020103080A1
WO2020103080A1 PCT/CN2018/116931 CN2018116931W WO2020103080A1 WO 2020103080 A1 WO2020103080 A1 WO 2020103080A1 CN 2018116931 W CN2018116931 W CN 2018116931W WO 2020103080 A1 WO2020103080 A1 WO 2020103080A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
terminal device
state
kat
wifi module
Prior art date
Application number
PCT/CN2018/116931
Other languages
French (fr)
Chinese (zh)
Inventor
仇磊
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/116931 priority Critical patent/WO2020103080A1/en
Priority to CN201880097555.9A priority patent/CN112715040B/en
Publication of WO2020103080A1 publication Critical patent/WO2020103080A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • 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

Definitions

  • the present application belongs to the technical field of wireless communication, and particularly relates to a method for reducing power consumption, a terminal device, and a computer-readable storage medium.
  • the so-called wireless network card is actually one of the three important modules of Intel Centrino mobile technology-the WIFI module.
  • the WIFI module usually includes a transmitter module and a receiver module. When terminal devices such as mobile phones turn on the WIFI function, the power consumption usually becomes larger.
  • the present application provides a method for reducing power consumption, a terminal device, and a computer-readable storage medium to reduce the power consumption of the terminal device after the WIFI function of the terminal device is turned on.
  • the first aspect of the present application provides a method for reducing power consumption, including:
  • the KAT time of the WIFI module of the terminal device is adjusted to the first time, and the KAT time is the time that the WIFI module remains dormant after sending or receiving a data packet;
  • the KAT time of the WIFI module of the terminal device is adjusted to the second time, and the second time is greater than the first time.
  • the second aspect of the present application provides a terminal device, including:
  • the monitoring unit is used to monitor the state of the terminal device after the WIFI function of the terminal device is turned on;
  • the first adjusting unit is used to adjust the KAT time of the WIFI module of the terminal device to the first time if the state of the terminal device is the first state, and the KAT time is to send or receive data packets by the WIFI module After staying in sleep time;
  • the second adjusting unit is configured to adjust the KAT time of the WIFI module of the terminal device to a second time if the state of the terminal device is switched to the second state, and the second time is greater than the first time.
  • a third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program
  • the steps of the method provided in the first aspect of the embodiments of the present application are implemented.
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium that stores a computer program, and the computer program is executed by one or more processors to implement the first embodiment of the present application.
  • a fifth aspect of the embodiments of the present application provides a computer program product.
  • the computer program product includes a computer program, and the computer program is executed by one or more processors to implement the first aspect of the present application. Method steps.
  • FIG. 1 is a schematic diagram of an implementation process of a method for reducing power consumption provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of an implementation process of another method for reducing power consumption provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of an implementation process of another method for reducing power consumption provided by an embodiment of the present application.
  • FIG. 4 is a schematic block diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 5 is a schematic block diagram of another terminal device provided by an embodiment of the present application.
  • the term “if” may be interpreted as “when” or “once” or “in response to determination” or “in response to detection” depending on the context .
  • the phrase “if determined” or “if [described condition or event] is detected” can be interpreted in the context to mean “once determined” or “in response to a determination” or “once detected [described condition or event ] “Or” In response to detection of [the described condition or event] ".
  • FIG. 1 is a schematic diagram of an implementation process of a method for reducing power consumption provided by an embodiment of the present application. As shown in the figure, the method may include the following steps:
  • Step S101 After the WIFI function of the terminal device is turned on, monitor the state of the terminal device.
  • a virtual button may be set on the display interface of the terminal device, and the user may select to turn on or off the WIFI function of the terminal device through the virtual button.
  • the state of the terminal device may be the amount of uplink data or downlink data of the terminal device based on the WIFI module, or the type of application running in the foreground of the terminal device, or the display of the terminal device The current state of the screen. No more examples are given here.
  • the embodiments of the present application may set the WIFI module to an intermittent sleep state.
  • the WIFI module may alternately maintain an active state and a sleep state, for example, active for the first time and sleep for the second Time, active first time, sleep second time, ...
  • the embodiments of the present application also set that after the WIFI module sends a data packet or receives a data packet, it is necessary to maintain an active KAT time (keep time), that is, the KAT time is Describe the time that the WIFI module keeps not sleeping after sending or receiving data packets.
  • the KAT time of the WIFI module of the terminal device is set as the initial time. That is, an initial value is previously set for the KAT time.
  • Step S102 if the state of the terminal device is the first state, the KAT time of the WIFI module of the terminal device is adjusted to the first time, and the KAT time is that the WIFI module remains dormant after sending or receiving a data packet time.
  • the monitoring of the status of the terminal device may be monitoring of applications running in the foreground of the terminal device; correspondingly, if the applications running in the foreground of the terminal device are applications of a preset category, it means that The state of the terminal device is a first state, and the first state is a state in which the terminal device set in advance does not require high real-time performance of data transmission based on the WIFI module.
  • the application running in the foreground of the terminal device is an application that does not require network connection or an application that requires low real-time data transmission.
  • the KAT time of the WIFI module of the terminal device can be reduced, therefore, if the state of the terminal device is the first state, the WIFI module of the terminal device is adjusted
  • the KAT time is the first time, and the first time is less than the initial time.
  • the first state of the terminal device may be multiple states, and different first times may be set according to different first states.
  • the method before monitoring the application running in the foreground of the terminal device, the method further includes:
  • the terminal device's uplink data volume or downlink data volume based on the WIFI module is greater than the data volume threshold, the application running in the foreground of the terminal device is monitored.
  • the terminal device's uplink data volume based on the WIFI module is less than or equal to the data volume threshold, and the downlink data volume is less than or equal to the data volume threshold, then adjust the KAT time of the terminal device's WIFI module to For a time.
  • the terminal device may also first monitor the uplink data amount or the downlink data amount based on the WIFI module, if the uplink data amount is less than or equal to the data amount threshold, and the downlink data amount is less than or It is equal to the data volume threshold, indicating that the terminal device currently does not have a high requirement for data transmission, and the KAT time of the WIFI module of the terminal device can be adjusted to the first time. If the amount of uplink data or the amount of downlink data is greater than the threshold of the data amount, it means that the terminal device currently has high requirements for timeliness of data transmission, and it can be further judged by the application running in the foreground of the terminal device whether the KAT of the WIFI module needs to be reduced time.
  • adjusting the KAT time of the WIFI module of the terminal device to the first time includes:
  • the KAT time of the WIFI module of the terminal device is adjusted to the first time.
  • adjusting the KAT time of the WIFI module of the terminal device to the first time includes:
  • the KAT time of the WIFI module of the terminal device is adjusted to the first time.
  • the state of the terminal device when the state of the terminal device is the standby state or the screen off state, it may also be used as the first state of the terminal device, or the KAT time of the WIFI module of the terminal device may be reduced.
  • the KAT time of the WIFI module of the terminal device it may also be determined whether the application running in the background of the terminal device is an application of a preset category when the terminal device is in a standby state or a screen off state If the application running in the background of the terminal device is an application of a preset category, the KAT time of the WIFI module of the terminal device can be reduced. This is because it is possible that the terminal device also needs to download tasks through downloading software in the background when the screen is off. This situation requires relatively high timeliness of data. Therefore, if the state of the terminal device is the standby state or off In the screen state, and the application running in the background of the terminal device is an application of a preset category, the KAT time of the WIFI module of the terminal device is reduced.
  • Step S103 If the state of the terminal device is switched from the first state to the second state, the KAT time of the WIFI module of the terminal device is adjusted to a second time, and the second time is greater than the first time.
  • the second state is a state other than the first state, or a specific state other than the first state.
  • the second state is opposite to the first state, so The second state is a state in which the preset terminal device has relatively high real-time requirements for data transmission based on the WIFI module. If the second state is a state other than the first state, after the state of the terminal device is switched from the first state to the second state, the KAT time of the WIFI module of the terminal device is adjusted to the second Time, the second time may be equal to the initial time. If the second state is a specific state other than the first state, when the KAT time of the WIFI module of the terminal device is adjusted to the second time, the second time may also be greater than the initial time.
  • the KAT time of the WIFI module of the terminal device is set as the initial time, and the status of the terminal device is monitored; if the status of the terminal device is first State, the KAT time of the WIFI module of the terminal device is reduced; if the state of the terminal device is switched from the first state to the second state, the KAT time of the WIFI module of the terminal device is adjusted to the initial time.
  • the KAT time of the terminal device can be adjusted in real time according to the state of the terminal device, and when the real-time requirement of the network of the terminal device is not too high for the network, the KAT time is reduced, thereby reducing the Working current, thereby reducing power consumption, when the state of the terminal device requires high real-time performance of the network, modify the KAT time to an initial value, thereby ensuring real-time performance of data transmission. In this way, it is possible to simultaneously reduce power consumption and meet user requirements for network real-time.
  • FIG. 2 is a schematic flowchart of another method for reducing power consumption provided by an embodiment of the present application. As shown in the figure, the method may include the following steps:
  • Step S201 Simulate power consumption and data transmission delay corresponding to the WIFI module of the terminal device at multiple KAT times, respectively.
  • multiple KAT times may be selected within the selectable range of the KAT time of the WIFI module of the terminal device to simulate the corresponding power consumption and corresponding power consumption of the WIFI module of the terminal device at multiple KAT times, respectively.
  • the selectable range of the KAT time may be set in advance, or 0 to the initial time may be used as the selectable range.
  • multiple times are selected as the simulation time within the selectable range of the KAT time, where the selectable range of the KAT time is [0, a], a is the initial time; the WIFI module KAT time is set as the simulation time, a preset number and a preset size of data packets are randomly transmitted in the simulation period, and the power consumption and data transmission delay corresponding to the KAT time of the WIFI module in the simulation period are counted Mean. Assume that five simulation times are selected: t1, t2, t3, t4, and t5. A simulation period may also be set, the simulation period being greater than the simulation time (for example, when the maximum simulation time is 200 ms, the simulation period may be 3 min).
  • the terminal device Set the KAT time of the WIFI module of the terminal device to the above 5 simulation times, and in each simulation period, control the terminal device to randomly transmit a preset number and a preset size of data packets to another terminal device And count the power consumption of the terminal device during the simulation period and the average transmission delay of the data packet received by another terminal device (the average delay of multiple data packets).
  • the internal power consumption and the average transmission delay of the data packets received by the terminal device are not limited herein. According to any one of the above-mentioned methods, the power consumption and data transmission delay (average value in any of the above-mentioned methods) corresponding to the WIFI module of the terminal device at multiple KAT times can be obtained by simulation.
  • Step S202 based on the respective power consumption and data transmission delay corresponding to the multiple KAT times, generate a curve of the power consumption and the data transmission delay varying with the KAT time.
  • a curve of the power consumption and the data transmission delay varying with the KAT time may also be generated, In this way, the corresponding relationship between any KAT time within the selectable range of the KAT time and power consumption and data transmission delay can be obtained more accurately.
  • the function correspondence between KAT time and power consumption and data transmission delay can be obtained according to the curve, and the function correspondence is stored in the database of the terminal device.
  • Step S203 After the WIFI function of the terminal device is turned on, monitor the state of the terminal device.
  • step S203 The content of step S203 is the same as that of step S101.
  • steps S101 For details, refer to the description of step S101, and details are not described herein again.
  • Step S204 If the state of the terminal device is the first state, obtain a preset maximum data transmission delay allowed by the terminal device in the first state.
  • the maximum data transmission delay allowed by the terminal device in the first state may be preset based on the first state of the terminal device. For example, three first states are set for the terminal device in advance: Z1, Z2, and Z3, and the maximum allowed data transmission delay for the first state Z1 can be set to ty1, and the maximum allowed data transmission for the first state Z2 can be set The delay is ty2, and the maximum allowable data transmission delay for the first state Z3 is set to ty3.
  • Step S205 Obtain the first time corresponding to the maximum data transmission delay based on the curve, and adjust the KAT time of the WIFI module of the terminal device to the first time.
  • the maximum allowable data transmission corresponding to the first state can be extended Time minus the preset delay as the data transmission delay of the terminal device in the first state, and then through a pre-simulated curve (curve of the data transmission delay varying with the KAT time) or a functional relationship ( The corresponding relationship between the KAT time and the data transmission delay function) obtains the time corresponding to the current data transmission delay in the first state as the first time.
  • ty3 may be subtracted from y3 as the The data transmission delay of the terminal device in the first state Z3, and then, a KAT time corresponding to (ty3-y3) is obtained based on the curve, and this KAT time is the first time.
  • the preset delay y3 is set to ensure that the KAT time of the WIFI module is set to the first time, and the real-time performance of data transmission can also be satisfied.
  • the obtained curve may not include the curve of the power consumption changing with the KAT time, or may include the curve of the power consumption changing with the KAT time.
  • the obtained functional relationship may not include the functional relationship between the power consumption and the KAT time, or may include the functional relationship between the power consumption and the KAT time.
  • FIG. 3 is a schematic diagram of an implementation process of another method for reducing power consumption provided by an embodiment of the present application. As shown in the figure, the method may include the following steps:
  • Step S301 Simulate the power consumption and data transmission delay corresponding to the WIFI module of the terminal device at multiple KAT times, respectively.
  • step S201 This step is consistent with the content of step S201. For details, reference may be made to the description of step S201, and details are not described herein again.
  • the first time corresponding to the first state of the terminal device may also be obtained through other methods.
  • the first time corresponding to the first state of the terminal device may also be obtained through other methods. For example, to display a preset interface and receive the first time corresponding to the first state set by the user through the preset interface, refer to step S302.
  • Step S302 displaying power consumption and data transmission delay corresponding to multiple KAT times in the preset interface respectively, and receiving a KAT time selected by the user based on the power consumption and data transmission delay corresponding to the multiple KAT times respectively As the first time corresponding to the first state.
  • the user when there are multiple first states, the user may set a first time for each first state separately, for example, by displaying a preset interface, the preset interface may display the terminal device In the first state, the power consumption and data transmission delay respectively corresponding to the terminal device when multiple KAT times obtained through pre-simulation can also be displayed.
  • the user can select one of the multiple KAT times according to the power consumption and data transmission delay of the terminal device corresponding to the displayed multiple KAT times as the currently displayed first state to be set corresponding to the preset interface.
  • first timing It is also possible to input a time as the first time corresponding to the first state to be set currently displayed on the preset interface according to the power consumption and data transmission delay respectively corresponding to the terminal device when displaying multiple KAT times.
  • the user may set the first time corresponding to the first state to ta before running the application a, while running the application Before b, the first time corresponding to the first state is set to tb.
  • the initial time of the WIFI module may also be displayed in the preset interface to remind the user that the first time set corresponding to the first state is less than the initial time.
  • the user can set the first time of the first state according to personal habits, and can also modify the first time of the first state at any time.
  • the KAT time of the WIFI module of the terminal device can be adjusted to the first time.
  • the first time corresponding to the first state of the terminal device may also be obtained in other ways.
  • Step S303 Obtain the first time corresponding to the first state set by the user through the preset interface in the historical period.
  • the user can set or modify the first time corresponding to the first state at any time, and can also set a historical period, for example, one week, half month, and one month. After the elapsed time period, the first time corresponding to the first state set by the user through the preset interface during the historical period may be obtained.
  • Step S304 Train a pre-built convolutional neural network model based on the first time corresponding to the first state to obtain a trained convolutional neural network model.
  • the characteristic parameter of the first state may be obtained, and the characteristic parameter of the first state includes at least one of the following: the terminal device is based on the uplink data amount of the WIFI module, and the terminal device is based on The amount of downlink data of the WIFI module, the category of applications running in the foreground of the terminal device, the category of applications running in the background of the terminal device, whether the terminal device is in a sleep state or a screen-off state, and the current time.
  • the feature parameters of the first state are used as the input of the pre-built convolutional neural network model, and the first time corresponding to the first state is used as the label value to train the convolutional neural network model to obtain the trained Convolutional neural network model.
  • the convolutional neural network model loaded in the terminal device is a mathematical model conforming to the user's personal behavior habits.
  • Step S305 After the WIFI function of the terminal device is turned on, monitor the state of the terminal device.
  • Step S306 if the state of the terminal device is the first state, acquire the characteristic parameters of the first state, and input the characteristic parameters of the first state into the trained convolutional neural network model to output the first time, And adjust the KAT time of the WIFI module of the terminal device as the first time output.
  • the first state may be a plurality of preset states. Although the first state is set, actually, the terminal device may have different characteristic parameters in the first state, and the The convolutional neural network model is trained based on the feature parameters. Therefore, at the first time when the output is obtained through the convolutional neural network model, the feature parameters of the first state can be obtained and the The feature parameters are input to the trained convolutional neural network model to output the first time, and the KAT time of the WIFI module of the terminal device is adjusted to the first time output.
  • the first time obtained through the convolutional neural network model can be more in line with the user's personal behavior habits. It is an adaptive way to adjust the KAT time to reduce the power consumption while meeting the timeliness of data transmission.
  • the priority of the first time set by the user through the preset interface is higher than the first time output by the convolutional neural network model.
  • the KAT time is adjusted according to the first time set by the user through the preset interface.
  • a virtual button can be set on the terminal device, and the user can switch to adjust the KAT time according to the first time output by the convolutional neural network model through the virtual button.
  • FIG. 4 is a schematic block diagram of a terminal device provided by an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • the terminal device 4 may be a software unit, a hardware unit, or a combination of software and hardware built in terminal devices such as mobile phones, tablet computers, and notebooks, or may be integrated as an independent pendant into the terminal devices such as mobile phones, tablet computers, and notebooks. in.
  • the terminal device 4 includes:
  • the monitoring unit 41 is configured to monitor the state of the terminal device after the WIFI function of the terminal device is turned on;
  • the first adjusting unit 42 is configured to adjust the KAT time of the WIFI module of the terminal device to the first time if the state of the terminal device is the first state, and the KAT time is data sent or received by the WIFI module The time to keep non-sleep after packing;
  • the second adjusting unit 43 is configured to adjust the KAT time of the WIFI module of the terminal device to a second time if the state of the terminal device is switched to the second state, and the second time is greater than the first time.
  • the terminal device 4 further includes:
  • the initial time setting unit 44 is used to set the KAT time of the WIFI module of the terminal device as the initial time after the WIFI function of the terminal device is turned on, the first time is less than the initial time, and the second time is equal to The initial time.
  • the monitoring unit 41 is also used to:
  • the first adjustment unit 42 is also used to:
  • the KAT time of the WIFI module of the terminal device is adjusted to the first time.
  • the monitoring unit 41 is also used to:
  • the terminal device's uplink data volume or downlink data volume based on the WIFI module is greater than the data volume threshold, the application running in the foreground of the terminal device is monitored.
  • the first adjustment unit 42 is further used to:
  • the KAT time of the WIFI module of the terminal device is adjusted to the first time.
  • the first adjustment unit 42 is further used to:
  • the KAT time of the WIFI module of the terminal device is adjusted to the first time.
  • the first adjustment unit 42 is further used to:
  • the KAT time of the WIFI module of the terminal device is adjusted to the first time.
  • the terminal device 4 further includes:
  • the simulation unit 45 is used to simulate the corresponding power consumption and data transmission delay of the WIFI module of the terminal device at multiple KAT times, respectively;
  • the curve generating unit 46 is configured to generate a curve that changes the power consumption and the data transmission delay with the KAT time based on the power consumption and the data transmission delay corresponding to the multiple KAT times, respectively.
  • the simulation unit 45 is further used to:
  • the first adjustment unit 42 is further used to:
  • the state of the terminal device is the first state, obtain a preset maximum data transmission delay allowed by the terminal device in the first state;
  • the terminal device 4 further includes:
  • the setting unit 47 is configured to display a preset interface and receive a first time corresponding to the first state set by the user through the preset interface.
  • the setting unit 47 is further used to:
  • the initial time of the WIFI module is displayed in the preset interface.
  • the terminal device 4 further includes:
  • the model obtaining unit 48 is configured to obtain the first time corresponding to the first state set by the user through the preset interface in the historical period;
  • the model obtaining unit 48 is further used to:
  • the feature parameters of the first state are used as the input of the pre-built convolutional neural network model, and the first time corresponding to the first state is used as the label value to train the convolutional neural network model to obtain the trained Convolutional neural network model.
  • the characteristic parameters of the first state include at least one of the following: the terminal device is based on the uplink data volume of the WIFI module, the terminal device is based on the downlink data volume of the WIFI module, and The category of the application running in the foreground of the terminal device, the category of the application running in the background of the terminal device, whether the terminal device is in a sleep state or a screen off state, and the current time.
  • the first adjustment unit 42 is further used to:
  • the state of the terminal device is the first state
  • the characteristic parameters of the first state are obtained, and the characteristic parameters of the first state are input to the trained convolutional neural network model to output for a first time, and the The KAT time of the WIFI module of the terminal device is the first time output.
  • each functional unit and module is used as an example for illustration.
  • the above-mentioned functions may be allocated by different functional units,
  • the module is completed, that is, the internal structure of the terminal device is divided into different functional units or modules to complete all or part of the functions described above.
  • the functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may use hardware It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application.
  • For the specific working processes of the units and modules in the foregoing terminal device reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
  • FIG. 5 is a schematic block diagram of a terminal device provided by another embodiment of the present application.
  • the terminal device 5 of this embodiment includes: one or more processors 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50.
  • the processor 50 executes the computer program 52, the steps in the above method embodiments are implemented, for example, steps S101 to S103 shown in FIG. 1.
  • the processor 50 executes the computer program 52
  • the functions of each module / unit in the foregoing embodiment of the terminal device are realized, for example, the functions of the modules 41 to 43 shown in FIG. 4.
  • the computer program 52 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 51 and executed by the processor 50 to complete This application.
  • the one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the terminal device 5.
  • the computer program 52 may be divided into a monitoring unit, a first adjustment unit, and a second adjustment unit, exemplary:
  • the monitoring unit is used to monitor the state of the terminal device after the WIFI function of the terminal device is turned on;
  • the first adjusting unit is used to adjust the KAT time of the WIFI module of the terminal device to the first time if the state of the terminal device is the first state, and the KAT time is to send or receive data packets by the WIFI module After staying in sleep time;
  • the second adjusting unit is configured to adjust the KAT time of the WIFI module of the terminal device to a second time if the state of the terminal device is switched to the second state, and the second time is greater than the first time.
  • the terminal device includes but is not limited to the processor 50 and the memory 51. Those skilled in the art may understand that FIG. 5 is only an example of the terminal device 5 and does not constitute a limitation on the terminal device 5. It may include more or fewer components than the illustration, or combine some components, or different Components, for example, the terminal device may further include an input device, an output device, a network access device, a bus, a touch screen, and so on.
  • the processor 50 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5.
  • the memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk equipped on the terminal device 5, a smart memory card (Smart, Media, Card, SMC), and a secure digital (SD) Cards, flash cards, etc.
  • the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device.
  • the memory 51 is used to store the computer program and other programs and data required by the terminal device.
  • the memory 51 can also be used to temporarily store data that has been or will be output.
  • the disclosed terminal device and method may be implemented in other ways.
  • the terminal device embodiments described above are only schematic.
  • the division of the modules or units is only a division of logical functions.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by a computer program instructing relevant hardware.
  • the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments may be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals and software distribution media, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signals telecommunications signals and software distribution media, etc.

Abstract

Disclosed are a method for reducing power consumption, a terminal device, and a computer-readable storage medium. The method comprises: after a WiFi function of a terminal device is enabled, monitoring the state of the terminal device; if the state of the terminal device is a first state, adjusting a KAT time of a WiFi module of the terminal device to be a first time, wherein the KAT time is a time when the WiFi module keeps active after sending or receiving a data packet; and if the state of the terminal device is switched from the first state to a second state, adjusting the KAT time of the WiFi module of the terminal device to be a second time, wherein the second time is greater than the first time. By means of the present application, the power consumption of a terminal device can be reduced after a WiFi function of the terminal device is enabled.

Description

一种降低功耗的方法、终端设备及存储介质Method for reducing power consumption, terminal equipment and storage medium 技术领域Technical field
本申请属于无线通信技术领域,尤其涉及一种降低功耗的方法、终端设备及计算机可读存储介质。The present application belongs to the technical field of wireless communication, and particularly relates to a method for reducing power consumption, a terminal device, and a computer-readable storage medium.
背景技术Background technique
目前,大部分手机等终端设备上设有无线网卡,所谓无线网卡实际上是英特尔迅驰移动技术的三大重要模块之一—WIFI模块,所述WIFI模块通常包括发射端模块和接收端模块。手机等终端设备开启WIFI功能后,通常耗电量会变得较大。At present, most terminal devices such as mobile phones are equipped with wireless network cards. The so-called wireless network card is actually one of the three important modules of Intel Centrino mobile technology-the WIFI module. The WIFI module usually includes a transmitter module and a receiver module. When terminal devices such as mobile phones turn on the WIFI function, the power consumption usually becomes larger.
发明内容Summary of the invention
本申请提供一种降低功耗的方法、终端设备及计算机可读存储介质,以在终端设备的WIFI功能开启后降低终端设备的功耗。The present application provides a method for reducing power consumption, a terminal device, and a computer-readable storage medium to reduce the power consumption of the terminal device after the WIFI function of the terminal device is turned on.
本申请的第一方面提供了一种降低功耗的方法,包括:The first aspect of the present application provides a method for reducing power consumption, including:
在终端设备的WIFI功能开启后,监测所述终端设备的状态;After the WIFI function of the terminal device is turned on, monitor the state of the terminal device;
若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间,所述KAT时间为所述WIFI模块发送或接收数据包后保持不休眠的时间;If the state of the terminal device is the first state, the KAT time of the WIFI module of the terminal device is adjusted to the first time, and the KAT time is the time that the WIFI module remains dormant after sending or receiving a data packet;
若所述终端设备的状态由第一状态切换为第二状态,则调节所述终端设备的WIFI模块的KAT时间为第二时间,所述第二时间大于所述第一时间。If the state of the terminal device is switched from the first state to the second state, the KAT time of the WIFI module of the terminal device is adjusted to the second time, and the second time is greater than the first time.
本申请的第二方面提供了一种终端设备,包括:The second aspect of the present application provides a terminal device, including:
监测单元,用于在终端设备的WIFI功能开启后,监测所述终端设备的状态;The monitoring unit is used to monitor the state of the terminal device after the WIFI function of the terminal device is turned on;
第一调节单元,用于若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间,所述KAT时间为所述WIFI模块发送或接收数据包后保持不休眠的时间;The first adjusting unit is used to adjust the KAT time of the WIFI module of the terminal device to the first time if the state of the terminal device is the first state, and the KAT time is to send or receive data packets by the WIFI module After staying in sleep time;
第二调节单元,用于若所述终端设备的状态切换为第二状态,则调节所述终端设备的WIFI模块的KAT时间为第二时间,所述第二时间大于所述第一时间。The second adjusting unit is configured to adjust the KAT time of the WIFI module of the terminal device to a second time if the state of the terminal device is switched to the second state, and the second time is greater than the first time.
本申请实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请实施例第一方面提供的所述方法的步骤。A third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program The steps of the method provided in the first aspect of the embodiments of the present application are implemented.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现本申请实施例第一方面提供的所述方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium that stores a computer program, and the computer program is executed by one or more processors to implement the first embodiment of the present application Aspects provide the steps of the method.
本申请实施例的第五方面提供了一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被一个或多个处理器执行时实现本申请实施例第一方面提供的所 述方法的步骤。A fifth aspect of the embodiments of the present application provides a computer program product. The computer program product includes a computer program, and the computer program is executed by one or more processors to implement the first aspect of the present application. Method steps.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only for the application For some embodiments, those of ordinary skill in the art can obtain other drawings based on these drawings without paying any creative labor.
图1是本申请实施例提供的一种降低功耗的方法的实现流程示意图;1 is a schematic diagram of an implementation process of a method for reducing power consumption provided by an embodiment of the present application;
图2是本申请实施例提供的另一种降低功耗的方法的实现流程示意图;2 is a schematic diagram of an implementation process of another method for reducing power consumption provided by an embodiment of the present application;
图3是本申请实施例提供的另一种降低功耗的方法的实现流程示意图;3 is a schematic diagram of an implementation process of another method for reducing power consumption provided by an embodiment of the present application;
图4是本申请实施例提供的一种终端设备的示意框图;4 is a schematic block diagram of a terminal device provided by an embodiment of the present application;
图5是本申请实施例提供的另一种终端设备的示意框图。5 is a schematic block diagram of another terminal device provided by an embodiment of the present application.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structure and technology are proposed to thoroughly understand the embodiments of the present application. However, those skilled in the art should understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details hindering the description of the present application.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements, and / or components, but does not exclude one or more other features , Wholes, steps, operations, elements, components and / or their existence or addition.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of this application is for the purpose of describing particular embodiments only and is not intended to limit this application. As used in the specification of the present application and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and / or" used in the specification of the present application and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "once" or "in response to determination" or "in response to detection" depending on the context . Similarly, the phrase "if determined" or "if [described condition or event] is detected" can be interpreted in the context to mean "once determined" or "in response to a determination" or "once detected [described condition or event ] "Or" In response to detection of [the described condition or event] ".
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solutions described in the present application, the following will be described with specific embodiments.
图1是本申请实施例提供的一种降低功耗的方法的实现流程示意图,如图所示,该方 法可以包括以下步骤:FIG. 1 is a schematic diagram of an implementation process of a method for reducing power consumption provided by an embodiment of the present application. As shown in the figure, the method may include the following steps:
步骤S101,在终端设备的WIFI功能开启后,监测所述终端设备的状态。Step S101: After the WIFI function of the terminal device is turned on, monitor the state of the terminal device.
在本申请实施例中,终端设备的显示界面上可以设置虚拟按钮,用户可以通过虚拟按钮选择开启或者关闭所述终端设备的WIFI功能。所述终端设备的状态,可以是所述终端设备基于所述WIFI模块的上行数据量、下行数据量,也可以是所述终端设备前台运行的应用的类别,还可以是所述终端设备的显示屏当前的状态。在此不再一一举例。In the embodiment of the present application, a virtual button may be set on the display interface of the terminal device, and the user may select to turn on or off the WIFI function of the terminal device through the virtual button. The state of the terminal device may be the amount of uplink data or downlink data of the terminal device based on the WIFI module, or the type of application running in the foreground of the terminal device, or the display of the terminal device The current state of the screen. No more examples are given here.
本申请实施例为了降低功耗,可以设置WIFI模块为间歇休眠状态,在WIFI模块处于间歇休眠状态时,所述WIFI模块可以轮流保持活跃状态和休眠状态,例如,活跃第一时间、休眠第二时间、活跃第一时间、休眠第二时间、……。当然,本申请实施例为了保证数据传输的及时性,还设置了在所述WIFI模块发送数据包后或接收数据包后,需要保持活跃KAT时间(keep alive time),即所述KAT时间为所述WIFI模块发送或接收数据包后保持不休眠的时间。In order to reduce power consumption, the embodiments of the present application may set the WIFI module to an intermittent sleep state. When the WIFI module is in the intermittent sleep state, the WIFI module may alternately maintain an active state and a sleep state, for example, active for the first time and sleep for the second Time, active first time, sleep second time, ... Of course, in order to ensure the timeliness of data transmission, the embodiments of the present application also set that after the WIFI module sends a data packet or receives a data packet, it is necessary to maintain an active KAT time (keep time), that is, the KAT time is Describe the time that the WIFI module keeps not sleeping after sending or receiving data packets.
作为本申请另一实施例,在终端设备的WIFI功能开启后,将所述终端设备的WIFI模块的KAT时间设为初始时间。即预先为所述KAT时间设置一个初始值。As another embodiment of the present application, after the WIFI function of the terminal device is turned on, the KAT time of the WIFI module of the terminal device is set as the initial time. That is, an initial value is previously set for the KAT time.
步骤S102,若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间,所述KAT时间为所述WIFI模块发送或接收数据包后保持不休眠的时间。Step S102, if the state of the terminal device is the first state, the KAT time of the WIFI module of the terminal device is adjusted to the first time, and the KAT time is that the WIFI module remains dormant after sending or receiving a data packet time.
在本申请实施例中,所述监测所述终端设备的状态可以是监测所述终端设备前台运行的应用;相应的,若所述终端设备前台运行的应用为预设类别的应用,则表示所述终端设备的状态为第一状态,所述第一状态为预先设置的所述终端设备对基于WIFI模块的数据传输的实时性要求不太高的状态。例如,所述终端设备前台运行的应用为无需联网的应用或者对数据传输的实时性要求较低的应用。In the embodiment of the present application, the monitoring of the status of the terminal device may be monitoring of applications running in the foreground of the terminal device; correspondingly, if the applications running in the foreground of the terminal device are applications of a preset category, it means that The state of the terminal device is a first state, and the first state is a state in which the terminal device set in advance does not require high real-time performance of data transmission based on the WIFI module. For example, the application running in the foreground of the terminal device is an application that does not require network connection or an application that requires low real-time data transmission.
如果对于数据传输的实时性要求不太高,则可以降低所述终端设备的WIFI模块的KAT时间,因此,若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间,所述第一时间小于所述初始时间。If the real-time requirements for data transmission are not too high, the KAT time of the WIFI module of the terminal device can be reduced, therefore, if the state of the terminal device is the first state, the WIFI module of the terminal device is adjusted The KAT time is the first time, and the first time is less than the initial time.
当然,所述终端设备的第一状态可以为多种状态,还可以根据不同的第一状态设置不同的第一时间。Of course, the first state of the terminal device may be multiple states, and different first times may be set according to different first states.
作为本申请另一实施例,在监测所述终端设备前台运行的应用之前,还包括:As another embodiment of the present application, before monitoring the application running in the foreground of the terminal device, the method further includes:
监测所述终端设备基于所述WIFI模块的上行数据量或下行数据量;Monitoring the uplink data volume or the downlink data volume of the terminal device based on the WIFI module;
若所述终端设备基于所述WIFI模块的上行数据量或下行数据量大于数据量阈值,则监测所述终端设备前台运行的应用。If the terminal device's uplink data volume or downlink data volume based on the WIFI module is greater than the data volume threshold, the application running in the foreground of the terminal device is monitored.
若所述终端设备基于所述WIFI模块的上行数据量小于或等于所述数据量阈值、且下行 数据量小于或等于所述数据量阈值,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the terminal device's uplink data volume based on the WIFI module is less than or equal to the data volume threshold, and the downlink data volume is less than or equal to the data volume threshold, then adjust the KAT time of the terminal device's WIFI module to For a time.
在本申请实施例中,还可以先监测所述终端设备基于所述WIFI模块的上行数据量或下行数据量,若所述上行数据量小于或等于所述数据量阈值、且下行数据量小于或等于所述数据量阈值,表示所述终端设备当前对数据传输的要去不高,就可以调节所述终端设备的WIFI模块的KAT时间为第一时间。如果上行数据量或下行数据量大于数据量阈值,则表示所述终端设备当前对数据传输的及时性要求较高,在可以进一步通过终端设备前台运行的应用判断是否需要降低所述WIFI模块的KAT时间。In the embodiment of the present application, the terminal device may also first monitor the uplink data amount or the downlink data amount based on the WIFI module, if the uplink data amount is less than or equal to the data amount threshold, and the downlink data amount is less than or It is equal to the data volume threshold, indicating that the terminal device currently does not have a high requirement for data transmission, and the KAT time of the WIFI module of the terminal device can be adjusted to the first time. If the amount of uplink data or the amount of downlink data is greater than the threshold of the data amount, it means that the terminal device currently has high requirements for timeliness of data transmission, and it can be further judged by the application running in the foreground of the terminal device whether the KAT of the WIFI module needs to be reduced time.
作为本申请另一实施例,所述若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间包括:As another embodiment of the present application, if the state of the terminal device is the first state, adjusting the KAT time of the WIFI module of the terminal device to the first time includes:
若所述终端设备的状态为待机状态或者熄屏状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the state of the terminal device is the standby state or the screen off state, the KAT time of the WIFI module of the terminal device is adjusted to the first time.
作为本申请另一实施例,所述若所述终端设备的状态为待机状态或者熄屏状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间包括:As another embodiment of the present application, if the state of the terminal device is a standby state or a screen off state, adjusting the KAT time of the WIFI module of the terminal device to the first time includes:
若所述终端设备的状态为待机状态或者熄屏状态、且所述终端设备后台运行的应用为预设类别的应用,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the state of the terminal device is the standby state or the screen off state, and the application running in the background of the terminal device is an application of a preset category, the KAT time of the WIFI module of the terminal device is adjusted to the first time.
在本申请实施例中,所述终端设备的状态为待机状态或者熄屏状态时,也可以作为所述终端设备的第一状态,也可以降低所述终端设备的WIFI模块的KAT时间。In the embodiment of the present application, when the state of the terminal device is the standby state or the screen off state, it may also be used as the first state of the terminal device, or the KAT time of the WIFI module of the terminal device may be reduced.
为了更加准确的调节所述终端设备的WIFI模块的KAT时间,还可以在所述终端设备的状态为待机状态或者熄屏状态时,确定所述终端设备后台运行的应用是否为预设类别的应用,若所述终端设备后台运行的应用为预设类别的应用,则可以降低所述终端设备的WIFI模块的KAT时间。这是因为,有可能终端设备在熄屏状态下,也需要后台通过下载软件下载任务,这种情况对数据的及时性要求相对较高,因此,若所述终端设备的状态为待机状态或者熄屏状态、且所述终端设备后台运行的应用为预设类别的应用,则降低所述终端设备的WIFI模块的KAT时间。In order to more accurately adjust the KAT time of the WIFI module of the terminal device, it may also be determined whether the application running in the background of the terminal device is an application of a preset category when the terminal device is in a standby state or a screen off state If the application running in the background of the terminal device is an application of a preset category, the KAT time of the WIFI module of the terminal device can be reduced. This is because it is possible that the terminal device also needs to download tasks through downloading software in the background when the screen is off. This situation requires relatively high timeliness of data. Therefore, if the state of the terminal device is the standby state or off In the screen state, and the application running in the background of the terminal device is an application of a preset category, the KAT time of the WIFI module of the terminal device is reduced.
步骤S103,若所述终端设备的状态由第一状态切换为第二状态,则调节所述终端设备的WIFI模块的KAT时间为第二时间,所述第二时间大于所述第一时间。Step S103: If the state of the terminal device is switched from the first state to the second state, the KAT time of the WIFI module of the terminal device is adjusted to a second time, and the second time is greater than the first time.
在本申请实施例中,所述第二状态为所述第一状态之外的状态,或者所述第一状态之外的特定的状态,所述第二状态与所述第一状态相反,所述第二状态为预先设置的所述终端设备对基于WIFI模块的数据传输的实时性要求相对较高的状态。如果所述第二状态为所述第一状态之外的状态,则在所述终端设备的状态由第一状态切换为第二状态后,调节所述终端设备的WIFI模块的KAT时间为第二时间,所述第二时间可以等于所述初始时间。如 果所述第二状态为所述第一状态之外的特定的状态,在调节所述终端设备的WIFI模块的KAT时间为第二时间时,所述第二时间也可以大于所述初始时间。In the embodiment of the present application, the second state is a state other than the first state, or a specific state other than the first state. The second state is opposite to the first state, so The second state is a state in which the preset terminal device has relatively high real-time requirements for data transmission based on the WIFI module. If the second state is a state other than the first state, after the state of the terminal device is switched from the first state to the second state, the KAT time of the WIFI module of the terminal device is adjusted to the second Time, the second time may be equal to the initial time. If the second state is a specific state other than the first state, when the KAT time of the WIFI module of the terminal device is adjusted to the second time, the second time may also be greater than the initial time.
本申请实施例中,在终端设备的WIFI功能开启后,将所述终端设备的WIFI模块的KAT时间设为初始时间,并监测所述终端设备的状态;若所述终端设备的状态为第一状态,则降低所述终端设备的WIFI模块的KAT时间;若所述终端设备的状态由第一状态切换为第二状态,则调节所述终端设备的WIFI模块的KAT时间为初始时间。本申请实施例可以根据所述终端设备的状态实时的调节所述终端设备的KAT时间,在终端设备的状态对网络的实时性要求不太高时,降低所述KAT时间,从而降低WIFI模块的工作电流,进而降低功耗,在所述终端设备的状态对网络的实时性要求较高时,将所述KAT时间修改为初始值,从而保证数据传输的实时性。这样,可以同时兼顾降低功耗和满足用户对网络实时性的要求。In the embodiment of the present application, after the WIFI function of the terminal device is turned on, the KAT time of the WIFI module of the terminal device is set as the initial time, and the status of the terminal device is monitored; if the status of the terminal device is first State, the KAT time of the WIFI module of the terminal device is reduced; if the state of the terminal device is switched from the first state to the second state, the KAT time of the WIFI module of the terminal device is adjusted to the initial time. In the embodiment of the present application, the KAT time of the terminal device can be adjusted in real time according to the state of the terminal device, and when the real-time requirement of the network of the terminal device is not too high for the network, the KAT time is reduced, thereby reducing the Working current, thereby reducing power consumption, when the state of the terminal device requires high real-time performance of the network, modify the KAT time to an initial value, thereby ensuring real-time performance of data transmission. In this way, it is possible to simultaneously reduce power consumption and meet user requirements for network real-time.
图2是本申请实施例提供的另一种降低功耗的方法的实现流程示意图,如图所示,该方法可以包括以下步骤:FIG. 2 is a schematic flowchart of another method for reducing power consumption provided by an embodiment of the present application. As shown in the figure, the method may include the following steps:
步骤S201,模拟所述终端设备的WIFI模块在多个KAT时间时分别对应的功耗和数据传输延时。Step S201: Simulate power consumption and data transmission delay corresponding to the WIFI module of the terminal device at multiple KAT times, respectively.
在本申请实施例中,可以在所述终端设备的WIFI模块的KAT时间的可选范围内选取多个KAT时间,模拟所述终端设备的WIFI模块在多个KAT时间时分别对应的功耗和数据传输延时,所述KAT时间的可选范围可以预先设置,也可以将0至初始时间作为可选范围。In the embodiment of the present application, multiple KAT times may be selected within the selectable range of the KAT time of the WIFI module of the terminal device to simulate the corresponding power consumption and corresponding power consumption of the WIFI module of the terminal device at multiple KAT times, respectively. For data transmission delay, the selectable range of the KAT time may be set in advance, or 0 to the initial time may be used as the selectable range.
作为举例,在所述KAT时间的可选范围内选取多个时间作为模拟时间,其中,所述KAT时间的可选范围为[0,a],a为所述初始时间;将所述WIFI模块的KAT时间设为所述模拟时间,在模拟周期内随机发射预设数量和预设大小的数据包,并统计所述模拟周期内所述WIFI模块的KAT时间对应的功耗和数据传输延时均值。假设选取了5个模拟时间:t1、t2、t3、t4、t5。还可以设置模拟周期,所述模拟周期大于所述模拟时间(例如,最大的模拟时间为200ms时,所述模拟周期可以是3min)。分别将所述终端设备的WIFI模块的KAT时间设置为上述5个模拟时间,在每个模拟周期内,控制所述终端设备向另一台终端设备随机发射预设数量和预设大小的数据包,并统计所述终端设备在所述模拟周期内的功耗,和另一台终端设备收到的数据包的传输延时均值(多个数据包的延时均值)。当然,实际应用中,也可以在每个模拟周期内,控制另一台终端设备向所述终端设备随机发射预设数量和预设大小的数据包,并统计所述终端设备在所述模拟周期内的功耗,和所述终端设备收到的数据包的传输延时均值(多个数据包的延时均值),在此不做限制。按照上述任一种方式均可以模拟获得所述终端设备的WIFI模块在多个KAT时间时分别对应的功耗和数据传输延时(上述任一种方式中的均值)。As an example, multiple times are selected as the simulation time within the selectable range of the KAT time, where the selectable range of the KAT time is [0, a], a is the initial time; the WIFI module KAT time is set as the simulation time, a preset number and a preset size of data packets are randomly transmitted in the simulation period, and the power consumption and data transmission delay corresponding to the KAT time of the WIFI module in the simulation period are counted Mean. Assume that five simulation times are selected: t1, t2, t3, t4, and t5. A simulation period may also be set, the simulation period being greater than the simulation time (for example, when the maximum simulation time is 200 ms, the simulation period may be 3 min). Set the KAT time of the WIFI module of the terminal device to the above 5 simulation times, and in each simulation period, control the terminal device to randomly transmit a preset number and a preset size of data packets to another terminal device And count the power consumption of the terminal device during the simulation period and the average transmission delay of the data packet received by another terminal device (the average delay of multiple data packets). Of course, in actual application, it is also possible to control another terminal device to randomly transmit a preset number and a preset size of data packets to the terminal device in each simulation period, and to count the terminal device during the simulation period The internal power consumption and the average transmission delay of the data packets received by the terminal device (the average delay of multiple data packets) are not limited herein. According to any one of the above-mentioned methods, the power consumption and data transmission delay (average value in any of the above-mentioned methods) corresponding to the WIFI module of the terminal device at multiple KAT times can be obtained by simulation.
步骤S202,基于所述多个KAT时间时分别对应的功耗和数据传输延时,生成所述功耗和所述数据传输延时随所述KAT时间变化的曲线。Step S202, based on the respective power consumption and data transmission delay corresponding to the multiple KAT times, generate a curve of the power consumption and the data transmission delay varying with the KAT time.
在本申请实施例中,在获得了多个KAT时间时分别对应的功耗和数据传输延时后,还可以生成所述功耗和所述数据传输延时随所述KAT时间变化的曲线,这样就可以更加精确的获得所述KAT时间的可选范围内任一个KAT时间与功耗和数据传输延时的对应关系。可以根据所述曲线获得KAT时间与功耗和数据传输延时的函数对应关系,并将函数对应关系存储在终端设备的数据库中。In the embodiment of the present application, after obtaining the corresponding power consumption and data transmission delay when multiple KAT times are obtained, a curve of the power consumption and the data transmission delay varying with the KAT time may also be generated, In this way, the corresponding relationship between any KAT time within the selectable range of the KAT time and power consumption and data transmission delay can be obtained more accurately. The function correspondence between KAT time and power consumption and data transmission delay can be obtained according to the curve, and the function correspondence is stored in the database of the terminal device.
步骤S203,在终端设备的WIFI功能开启后,监测所述终端设备的状态。Step S203: After the WIFI function of the terminal device is turned on, monitor the state of the terminal device.
步骤S203与步骤S101内容一致,具体可参照步骤S101的描述,在此不再赘述。The content of step S203 is the same as that of step S101. For details, refer to the description of step S101, and details are not described herein again.
步骤S204,若所述终端设备的状态为第一状态,则获取预设的所述终端设备在所述第一状态时允许的最大数据传输延时。Step S204: If the state of the terminal device is the first state, obtain a preset maximum data transmission delay allowed by the terminal device in the first state.
在本申请实施例中,可以基于所述终端设备的第一状态,预先设置所述终端设备在所述第一状态时允许的最大数据传输延时。例如,预先为所述终端设备设置了3个第一状态:Z1、Z2和Z3,可以为第一状态Z1设置允许的最大数据传输延时为ty1、为第一状态Z2设置允许的最大数据传输延时为ty2、为第一状态Z3设置允许的最大数据传输延时为ty3。In the embodiment of the present application, the maximum data transmission delay allowed by the terminal device in the first state may be preset based on the first state of the terminal device. For example, three first states are set for the terminal device in advance: Z1, Z2, and Z3, and the maximum allowed data transmission delay for the first state Z1 can be set to ty1, and the maximum allowed data transmission for the first state Z2 can be set The delay is ty2, and the maximum allowable data transmission delay for the first state Z3 is set to ty3.
步骤S205,基于所述曲线获得所述最大数据传输延时对应的第一时间,并调节所述终端设备的WIFI模块的KAT时间为第一时间。Step S205: Obtain the first time corresponding to the maximum data transmission delay based on the curve, and adjust the KAT time of the WIFI module of the terminal device to the first time.
在本申请实施例中,为了保证所述终端设备在所述第一状态时,既能够满足数据传输的实时性,又能够降低功耗,可以将所述第一状态对应的允许最大数据传输延时减去预设延时作为所述终端设备在所述第一状态的数据传输延时,然后通过预先模拟的曲线(所述数据传输延时随所述KAT时间变化的曲线)或者函数关系(所述KAT时间与所述数据传输延时的函数对应关系)获得与当前的第一状态的数据传输延时对应的时间作为第一时间。In the embodiment of the present application, in order to ensure that the terminal device can satisfy the real-time performance of data transmission while reducing the power consumption in the first state, the maximum allowable data transmission corresponding to the first state can be extended Time minus the preset delay as the data transmission delay of the terminal device in the first state, and then through a pre-simulated curve (curve of the data transmission delay varying with the KAT time) or a functional relationship ( The corresponding relationship between the KAT time and the data transmission delay function) obtains the time corresponding to the current data transmission delay in the first state as the first time.
作为举例,假设所述终端设备的状态为第一状态Z3,第一状态Z3设置的允许的最大数据传输延时为ty3,为了保证数据传输的及时性,可以将ty3减去y3后作为所述终端设备在第一状态Z3下的数据传输延时,然后,基于所述曲线获得与(ty3-y3)对应的KAT时间,这个KAT时间就为第一时间。如果不按照(ty3-y3)获得对应的时间,而是按照ty3获得对应的时间,很可能由于其它因素(例如模拟曲线或函数的误差、设置允许的最大数据传输延时的误差)导致所述终端设备的WIFI模块的KAT时间设为第一时间后,虽然保证了功耗降低,然而,可能不满足数据传输的实时性要求。因此设置预设延时y3保证将WIFI模块的KAT时间设为第一时间后,也能够满足数据传输的实时性。As an example, assume that the state of the terminal device is the first state Z3, and the maximum allowable data transmission delay set in the first state Z3 is ty3. In order to ensure the timeliness of data transmission, ty3 may be subtracted from y3 as the The data transmission delay of the terminal device in the first state Z3, and then, a KAT time corresponding to (ty3-y3) is obtained based on the curve, and this KAT time is the first time. If the corresponding time is not obtained according to (ty3-y3), but the corresponding time is obtained according to ty3, it is likely to be caused by other factors (such as the error of the analog curve or function, the error of setting the maximum allowable data transmission delay) After the KAT time of the WIFI module of the terminal device is set to the first time, although the reduction in power consumption is guaranteed, it may not meet the real-time requirements of data transmission. Therefore, the preset delay y3 is set to ensure that the KAT time of the WIFI module is set to the first time, and the real-time performance of data transmission can also be satisfied.
需要说明的是,图2所示实施例中,获得的曲线可以不包括所述功耗随所述KAT时间变化的曲线,也可以包括所述功耗随所述KAT时间变化的曲线。获得的函数关系也可以不 包括所述功耗与所述KAT时间的函数对应关系,也可以包括所述功耗与所述KAT时间的函数对应关系。It should be noted that, in the embodiment shown in FIG. 2, the obtained curve may not include the curve of the power consumption changing with the KAT time, or may include the curve of the power consumption changing with the KAT time. The obtained functional relationship may not include the functional relationship between the power consumption and the KAT time, or may include the functional relationship between the power consumption and the KAT time.
图3是本申请实施例提供的另一种降低功耗的方法的实现流程示意图,如图所示,该方法可以包括以下步骤:FIG. 3 is a schematic diagram of an implementation process of another method for reducing power consumption provided by an embodiment of the present application. As shown in the figure, the method may include the following steps:
步骤S301,模拟所述终端设备的WIFI模块在多个KAT时间时分别对应的功耗和数据传输延时。Step S301: Simulate the power consumption and data transmission delay corresponding to the WIFI module of the terminal device at multiple KAT times, respectively.
该步骤与步骤S201内容一致,具体可参照步骤S201的描述,在此不再赘述。This step is consistent with the content of step S201. For details, reference may be made to the description of step S201, and details are not described herein again.
本申请实施例,还可以通过其他方式获得与所述终端设备的第一状态对应的第一时间。例如,显示预设界面,并接收用户通过所述预设界面设置的与所述第一状态对应的第一时间,可参照步骤S302。In the embodiment of the present application, the first time corresponding to the first state of the terminal device may also be obtained through other methods. For example, to display a preset interface and receive the first time corresponding to the first state set by the user through the preset interface, refer to step S302.
步骤S302,在所述预设界面中显示多个KAT时间分别对应的功耗和数据传输延时,并接收用户基于所述多个KAT时间分别对应的功耗和数据传输延时选中的KAT时间作为与所述第一状态对应的第一时间。Step S302, displaying power consumption and data transmission delay corresponding to multiple KAT times in the preset interface respectively, and receiving a KAT time selected by the user based on the power consumption and data transmission delay corresponding to the multiple KAT times respectively As the first time corresponding to the first state.
在本申请实施例中,当存在多个第一状态时,可以由用户为每个第一状态分别设置第一时间,例如通过显示预设界面,所述预设界面中可以显示所述终端设备的第一状态,还可以显示预先模拟获得的多个KAT时间时所述终端设备分别对应的功耗和数据传输延时。用户可以根据显示的多个KAT时间时所述终端设备分别对应的功耗和数据传输延时,从多个KAT时间中选择一个作为所述预设界面当前显示的待设置的第一状态对应的第一时间。也可以根据显示的多个KAT时间时所述终端设备分别对应的功耗和数据传输延时输入一个时间作为所述预设界面当前显示的待设置的第一状态对应的第一时间。In the embodiment of the present application, when there are multiple first states, the user may set a first time for each first state separately, for example, by displaying a preset interface, the preset interface may display the terminal device In the first state, the power consumption and data transmission delay respectively corresponding to the terminal device when multiple KAT times obtained through pre-simulation can also be displayed. The user can select one of the multiple KAT times according to the power consumption and data transmission delay of the terminal device corresponding to the displayed multiple KAT times as the currently displayed first state to be set corresponding to the preset interface. first timing. It is also possible to input a time as the first time corresponding to the first state to be set currently displayed on the preset interface according to the power consumption and data transmission delay respectively corresponding to the terminal device when displaying multiple KAT times.
作为举例,所述第一状态为所述终端设备前台运行的应用为预设类别的应用时,用户可以在运行应用a之前,设置所述第一状态对应的第一时间为ta,在运行应用b之前,设置所述第一状态对应的第一时间为tb。As an example, when the first state is that the application running in the foreground of the terminal device is an application of a preset category, the user may set the first time corresponding to the first state to ta before running the application a, while running the application Before b, the first time corresponding to the first state is set to tb.
当然,所述预设界面中还可以显示所述WIFI模块的初始时间,以提醒用户设置的与所述第一状态对应的第一时间小于所述初始时间。Of course, the initial time of the WIFI module may also be displayed in the preset interface to remind the user that the first time set corresponding to the first state is less than the initial time.
通过步骤S301和步骤S302,用户可以根据个人习惯设置所述第一状态的第一时间,也可以随时修改所述第一状态的第一时间。按照上述方法,当所述终端设备的状态为第一状态时,就可以调节所述终端设备的WIFI模块的KAT时间为第一时间。当然,在经过历史周期后,还可以按照其它方式获得与所述终端设备的第一状态对应的第一时间。Through step S301 and step S302, the user can set the first time of the first state according to personal habits, and can also modify the first time of the first state at any time. According to the above method, when the state of the terminal device is the first state, the KAT time of the WIFI module of the terminal device can be adjusted to the first time. Of course, after the historical period has passed, the first time corresponding to the first state of the terminal device may also be obtained in other ways.
步骤S303,获取历史周期内用户通过所述预设界面设置的与所述第一状态对应的第一时间。Step S303: Obtain the first time corresponding to the first state set by the user through the preset interface in the historical period.
在本申请实施例中,用户可以随时设置或者修改所述第一状态对应的第一时间,还可以设定历史周期,例如,一个星期、半个月、一个月。当经过历时周期后,可以获取在所述历史周期期间内用户通过所述预设界面设置的与所述第一状态对应的第一时间。In the embodiment of the present application, the user can set or modify the first time corresponding to the first state at any time, and can also set a historical period, for example, one week, half month, and one month. After the elapsed time period, the first time corresponding to the first state set by the user through the preset interface during the historical period may be obtained.
步骤S304,基于所述第一状态对应的第一时间训练预先构建的卷积神经网络模型,获得训练后的卷积神经网络模型。Step S304: Train a pre-built convolutional neural network model based on the first time corresponding to the first state to obtain a trained convolutional neural network model.
在本申请实施例中,可以获取所述第一状态的特征参数,所述第一状态的特征参数包括以下至少一项:所述终端设备基于所述WIFI模块上行数据量、所述终端设备基于所述WIFI模块的下行数据量、所述终端设备前台运行的应用的类别、所述终端设备后台运行的应用的类别、所述终端设备是否为休眠状态或熄屏状态、当前时间。将所述第一状态的特征参数作为预先构建的卷积神经网络模型的输入,并将所述第一状态对应的第一时间作为标签值,训练所述卷积神经网络模型,获得训练后的卷积神经网络模型。将训练后的卷积神经网络模型加载到所述终端设备中。还可以每经过一个历史周期就获取本次历史周期内用户通过所述预设界面设置的与所述第一状态对应的第一时间,然后,基于所述第一状态对应的第一时间训练所述终端设备中当前加载的卷积神经网络模型,获得本次历史周期对应的卷积神经网络模型,这样,终端设备中加载的卷积神经网络模型就是符合用户的个人行为习惯的数学模型。In the embodiment of the present application, the characteristic parameter of the first state may be obtained, and the characteristic parameter of the first state includes at least one of the following: the terminal device is based on the uplink data amount of the WIFI module, and the terminal device is based on The amount of downlink data of the WIFI module, the category of applications running in the foreground of the terminal device, the category of applications running in the background of the terminal device, whether the terminal device is in a sleep state or a screen-off state, and the current time. The feature parameters of the first state are used as the input of the pre-built convolutional neural network model, and the first time corresponding to the first state is used as the label value to train the convolutional neural network model to obtain the trained Convolutional neural network model. Loading the trained convolutional neural network model into the terminal device. It is also possible to obtain the first time corresponding to the first state set by the user through the preset interface in the current historical period every time a historical period passes, and then train the training center based on the first time corresponding to the first state The convolutional neural network model currently loaded in the terminal device is obtained to obtain the convolutional neural network model corresponding to this historical period. In this way, the convolutional neural network model loaded in the terminal device is a mathematical model conforming to the user's personal behavior habits.
步骤S305,在终端设备的WIFI功能开启后,监测所述终端设备的状态。Step S305: After the WIFI function of the terminal device is turned on, monitor the state of the terminal device.
步骤S306,若所述终端设备的状态为第一状态,则获取所述第一状态的特征参数,并将所述第一状态的特征参数输入训练后的卷积神经网络模型输出第一时间,并调节所述终端设备的WIFI模块的KAT时间为输出的第一时间。Step S306, if the state of the terminal device is the first state, acquire the characteristic parameters of the first state, and input the characteristic parameters of the first state into the trained convolutional neural network model to output the first time, And adjust the KAT time of the WIFI module of the terminal device as the first time output.
在本申请实施例中,所述第一状态可以是预先设置的多个状态,虽然设置了第一状态,实际上,终端设备在第一状态下,可能特征参数也会存在差别,而所述卷积神经网络模型是基于所述特征参数训练的,因此,在通过卷积神经网络模型获得输出的第一时间时,可以获取所述第一状态的特征参数,并将所述第一状态的特征参数输入训练后的卷积神经网络模型输出第一时间,并调节所述终端设备的WIFI模块的KAT时间为输出的第一时间。通过卷积神经网络模型获得的第一时间能够更加符合用户的个人行为习惯,是一种自适应的调节KAT时间的方式,以在满足数据传输的及时性的同时还能够降低功耗。In the embodiment of the present application, the first state may be a plurality of preset states. Although the first state is set, actually, the terminal device may have different characteristic parameters in the first state, and the The convolutional neural network model is trained based on the feature parameters. Therefore, at the first time when the output is obtained through the convolutional neural network model, the feature parameters of the first state can be obtained and the The feature parameters are input to the trained convolutional neural network model to output the first time, and the KAT time of the WIFI module of the terminal device is adjusted to the first time output. The first time obtained through the convolutional neural network model can be more in line with the user's personal behavior habits. It is an adaptive way to adjust the KAT time to reduce the power consumption while meeting the timeliness of data transmission.
需要说明的是,用户通过预设界面设置的第一时间的优先权高于所述卷积神经网络模型输出的第一时间。当用户通过预设界面设置了第一状态的第一时间后,按照用户通过预设界面设置的第一时间调节KAT时间。在终端设备上可以设置虚拟按钮,用户可以通过虚拟按钮切换到按照卷积神经网络模型输出的第一时间调节KAT时间。It should be noted that the priority of the first time set by the user through the preset interface is higher than the first time output by the convolutional neural network model. After the user sets the first time in the first state through the preset interface, the KAT time is adjusted according to the first time set by the user through the preset interface. A virtual button can be set on the terminal device, and the user can switch to adjust the KAT time according to the first time output by the convolutional neural network model through the virtual button.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
图4是本申请一实施例提供的终端设备的示意框图,为了便于说明,仅示出与本申请实施例相关的部分。FIG. 4 is a schematic block diagram of a terminal device provided by an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
该终端设备4可以是内置于手机、平板电脑、笔记本等终端设备内的软件单元、硬件单元或者软硬结合的单元,也可以作为独立的挂件集成到所述手机、平板电脑、笔记本等终端设备中。The terminal device 4 may be a software unit, a hardware unit, or a combination of software and hardware built in terminal devices such as mobile phones, tablet computers, and notebooks, or may be integrated as an independent pendant into the terminal devices such as mobile phones, tablet computers, and notebooks. in.
所述终端设备4包括:The terminal device 4 includes:
监测单元41,用于在终端设备的WIFI功能开启后,监测所述终端设备的状态;The monitoring unit 41 is configured to monitor the state of the terminal device after the WIFI function of the terminal device is turned on;
第一调节单元42,用于若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间,所述KAT时间为所述WIFI模块发送或接收数据包后保持不休眠的时间;The first adjusting unit 42 is configured to adjust the KAT time of the WIFI module of the terminal device to the first time if the state of the terminal device is the first state, and the KAT time is data sent or received by the WIFI module The time to keep non-sleep after packing;
第二调节单元43,用于若所述终端设备的状态切换为第二状态,则调节所述终端设备的WIFI模块的KAT时间为第二时间,所述第二时间大于所述第一时间。The second adjusting unit 43 is configured to adjust the KAT time of the WIFI module of the terminal device to a second time if the state of the terminal device is switched to the second state, and the second time is greater than the first time.
作为本申请另一实施例,所述终端设备4还包括:As another embodiment of the present application, the terminal device 4 further includes:
初始时间设置单元44,用于在终端设备的WIFI功能开启后,将所述终端设备的WIFI模块的KAT时间设为初始时间,所述第一时间小于所述初始时间,所述第二时间等于所述初始时间。The initial time setting unit 44 is used to set the KAT time of the WIFI module of the terminal device as the initial time after the WIFI function of the terminal device is turned on, the first time is less than the initial time, and the second time is equal to The initial time.
作为本申请另一实施例,所述监测单元41还用于:As another embodiment of the present application, the monitoring unit 41 is also used to:
监测所述终端设备前台运行的应用;Monitoring applications running in the foreground of the terminal device;
相应的,所述第一调节单元42还用于:Correspondingly, the first adjustment unit 42 is also used to:
若所述终端设备前台运行的应用为预设类别的应用,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the application running in the foreground of the terminal device is an application of a preset category, the KAT time of the WIFI module of the terminal device is adjusted to the first time.
作为本申请另一实施例,所述监测单元41还用于:As another embodiment of the present application, the monitoring unit 41 is also used to:
在监测所述终端设备前台运行的应用之前,监测所述终端设备基于所述WIFI模块的上行数据量或下行数据量;Before monitoring the application running in the foreground of the terminal device, monitoring the uplink data amount or the downlink data amount of the terminal device based on the WIFI module;
若所述终端设备基于所述WIFI模块的上行数据量或下行数据量大于数据量阈值,则监测所述终端设备前台运行的应用。If the terminal device's uplink data volume or downlink data volume based on the WIFI module is greater than the data volume threshold, the application running in the foreground of the terminal device is monitored.
作为本申请另一实施例,所述第一调节单元42还用于:As another embodiment of the present application, the first adjustment unit 42 is further used to:
在监测所述终端设备基于所述WIFI模块的上行数据量或下行数据量之后,若所述终端设备基于所述WIFI模块的上行数据量小于或等于所述数据量阈值、且下行数据量小于或等 于所述数据量阈值,则调节所述终端设备的WIFI模块的KAT时间为第一时间。After monitoring the uplink data volume or the downlink data volume of the terminal device based on the WIFI module, if the uplink data volume of the terminal device based on the WIFI module is less than or equal to the data volume threshold, and the downlink data volume is less than or If it is equal to the data volume threshold, the KAT time of the WIFI module of the terminal device is adjusted to the first time.
作为本申请另一实施例,所述第一调节单元42还用于:As another embodiment of the present application, the first adjustment unit 42 is further used to:
若所述终端设备的状态为待机状态或者熄屏状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the state of the terminal device is the standby state or the screen off state, the KAT time of the WIFI module of the terminal device is adjusted to the first time.
作为本申请另一实施例,所述第一调节单元42还用于:As another embodiment of the present application, the first adjustment unit 42 is further used to:
若所述终端设备的状态为待机状态或者熄屏状态、且所述终端设备后台运行的应用为预设类别的应用,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the state of the terminal device is the standby state or the screen off state, and the application running in the background of the terminal device is an application of a preset category, the KAT time of the WIFI module of the terminal device is adjusted to the first time.
作为本申请另一实施例,所述终端设备4还包括:As another embodiment of the present application, the terminal device 4 further includes:
模拟单元45,用于模拟所述终端设备的WIFI模块在多个KAT时间时分别对应的功耗和数据传输延时;The simulation unit 45 is used to simulate the corresponding power consumption and data transmission delay of the WIFI module of the terminal device at multiple KAT times, respectively;
曲线生成单元46,用于基于所述多个KAT时间时分别对应的功耗和数据传输延时,生成所述功耗和所述数据传输延时随所述KAT时间变化的曲线。The curve generating unit 46 is configured to generate a curve that changes the power consumption and the data transmission delay with the KAT time based on the power consumption and the data transmission delay corresponding to the multiple KAT times, respectively.
作为本申请另一实施例,所述模拟单元45还用于:As another embodiment of the present application, the simulation unit 45 is further used to:
在所述KAT时间的可选范围内选取多个时间作为模拟时间,其中,所述KAT时间的可选范围为[0,a],a为所述初始时间;Selecting multiple times as the simulation time within the selectable range of the KAT time, wherein the selectable range of the KAT time is [0, a], and a is the initial time;
将所述WIFI模块的KAT时间设为所述模拟时间,在模拟周期内随机发射预设数量和预设大小的数据包,并统计所述模拟周期内所述WIFI模块的KAT时间对应的功耗和数据传输延时均值。Set the KAT time of the WIFI module to the simulation time, randomly transmit a preset number and a preset size of data packets in the simulation period, and count the power consumption corresponding to the KAT time of the WIFI module in the simulation period And the average data transmission delay.
作为本申请另一实施例,所述第一调节单元42还用于:As another embodiment of the present application, the first adjustment unit 42 is further used to:
若所述终端设备的状态为第一状态,则获取预设的所述终端设备在所述第一状态时允许的最大数据传输延时;If the state of the terminal device is the first state, obtain a preset maximum data transmission delay allowed by the terminal device in the first state;
基于所述曲线获得所述最大数据传输延时对应的第一时间,并调节所述终端设备的WIFI模块的KAT时间为第一时间。Obtain the first time corresponding to the maximum data transmission delay based on the curve, and adjust the KAT time of the WIFI module of the terminal device to the first time.
作为本申请另一实施例,所述终端设备4还包括:As another embodiment of the present application, the terminal device 4 further includes:
设置单元47,用于显示预设界面,并接收用户通过所述预设界面设置的与所述第一状态对应的第一时间。The setting unit 47 is configured to display a preset interface and receive a first time corresponding to the first state set by the user through the preset interface.
作为本申请另一实施例,所述设置单元47还用于:As another embodiment of the present application, the setting unit 47 is further used to:
在所述预设界面中显示多个KAT时间分别对应的功耗和数据传输延时,并接收用户基于所述多个KAT时间分别对应的功耗和数据传输延时选中的KAT时间作为与所述第一状态对应的第一时间。Display the power consumption and data transmission delay corresponding to multiple KAT times on the preset interface respectively, and receive the KAT time selected by the user based on the power consumption and data transmission delay corresponding to the multiple KAT times as the The first time corresponding to the first state.
作为本申请另一实施例,所述预设界面中显示所述WIFI模块的初始时间。As another embodiment of the present application, the initial time of the WIFI module is displayed in the preset interface.
作为本申请另一实施例,所述终端设备4还包括:As another embodiment of the present application, the terminal device 4 further includes:
模型获得单元48,用于获取历史周期内用户通过所述预设界面设置的与所述第一状态对应的第一时间;The model obtaining unit 48 is configured to obtain the first time corresponding to the first state set by the user through the preset interface in the historical period;
基于所述第一状态对应的第一时间训练预先构建的卷积神经网络模型,获得训练后的卷积神经网络模型。Train a pre-built convolutional neural network model based on the first time corresponding to the first state to obtain a trained convolutional neural network model.
作为本申请另一实施例,所述模型获得单元48还用于:As another embodiment of the present application, the model obtaining unit 48 is further used to:
将所述第一状态的特征参数作为预先构建的卷积神经网络模型的输入,并将所述第一状态对应的第一时间作为标签值,训练所述卷积神经网络模型,获得训练后的卷积神经网络模型。The feature parameters of the first state are used as the input of the pre-built convolutional neural network model, and the first time corresponding to the first state is used as the label value to train the convolutional neural network model to obtain the trained Convolutional neural network model.
作为本申请另一实施例,所述第一状态的特征参数包括以下至少一项:所述终端设备基于所述WIFI模块上行数据量、所述终端设备基于所述WIFI模块的下行数据量、所述终端设备前台运行的应用的类别、所述终端设备后台运行的应用的类别、所述终端设备是否为休眠状态或熄屏状态、当前时间。As another embodiment of the present application, the characteristic parameters of the first state include at least one of the following: the terminal device is based on the uplink data volume of the WIFI module, the terminal device is based on the downlink data volume of the WIFI module, and The category of the application running in the foreground of the terminal device, the category of the application running in the background of the terminal device, whether the terminal device is in a sleep state or a screen off state, and the current time.
作为本申请另一实施例,所述第一调节单元42还用于:As another embodiment of the present application, the first adjustment unit 42 is further used to:
若所述终端设备的状态为第一状态,则获取所述第一状态的特征参数,并将所述第一状态的特征参数输入训练后的卷积神经网络模型输出第一时间,并调节所述终端设备的WIFI模块的KAT时间为输出的第一时间。If the state of the terminal device is the first state, the characteristic parameters of the first state are obtained, and the characteristic parameters of the first state are input to the trained convolutional neural network model to output for a first time, and the The KAT time of the WIFI module of the terminal device is the first time output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述终端设备的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述终端设备中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for convenience and conciseness of description, only the above-mentioned division of each functional unit and module is used as an example for illustration. In practical applications, the above-mentioned functions may be allocated by different functional units, The module is completed, that is, the internal structure of the terminal device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may use hardware It can also be implemented in the form of software functional units. In addition, the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the foregoing terminal device, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
图5是本申请又一实施例提供的终端设备的示意框图。如图5所示,该实施例的终端设备5包括:一个或多个处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机程序52。所述处理器50执行所述计算机程序52时实现上述各个方法实施例中的步骤,例如图1所示的步骤S101至S103。或者,所述处理器50执行所述计算机程序52时实现上述终端设备实施例中各模块/单元的功能,例如图4所示模块41至 43的功能。FIG. 5 is a schematic block diagram of a terminal device provided by another embodiment of the present application. As shown in FIG. 5, the terminal device 5 of this embodiment includes: one or more processors 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above method embodiments are implemented, for example, steps S101 to S103 shown in FIG. 1. Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the foregoing embodiment of the terminal device are realized, for example, the functions of the modules 41 to 43 shown in FIG. 4.
示例性的,所述计算机程序52可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器51中,并由所述处理器50执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序52在所述终端设备5中的执行过程。例如,所述计算机程序52可以被分割成监测单元、第一调节单元、第二调节单元,示例性的:Exemplarily, the computer program 52 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 51 and executed by the processor 50 to complete This application. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the terminal device 5. For example, the computer program 52 may be divided into a monitoring unit, a first adjustment unit, and a second adjustment unit, exemplary:
监测单元,用于在终端设备的WIFI功能开启后,监测所述终端设备的状态;The monitoring unit is used to monitor the state of the terminal device after the WIFI function of the terminal device is turned on;
第一调节单元,用于若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间,所述KAT时间为所述WIFI模块发送或接收数据包后保持不休眠的时间;The first adjusting unit is used to adjust the KAT time of the WIFI module of the terminal device to the first time if the state of the terminal device is the first state, and the KAT time is to send or receive data packets by the WIFI module After staying in sleep time;
第二调节单元,用于若所述终端设备的状态切换为第二状态,则调节所述终端设备的WIFI模块的KAT时间为第二时间,所述第二时间大于所述第一时间。The second adjusting unit is configured to adjust the KAT time of the WIFI module of the terminal device to a second time if the state of the terminal device is switched to the second state, and the second time is greater than the first time.
其它单元或者模块可参照图4所示的实施例中的描述,在此不再赘述。For other units or modules, reference may be made to the description in the embodiment shown in FIG. 4, and details are not described herein again.
所述终端设备包括但不仅限于处理器50、存储器51。本领域技术人员可以理解,图5仅仅是终端设备5的一个示例,并不构成对终端设备5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入设备、输出设备、网络接入设备、总线、触控显示屏等。The terminal device includes but is not limited to the processor 50 and the memory 51. Those skilled in the art may understand that FIG. 5 is only an example of the terminal device 5 and does not constitute a limitation on the terminal device 5. It may include more or fewer components than the illustration, or combine some components, or different Components, for example, the terminal device may further include an input device, an output device, a network access device, a bus, a touch screen, and so on.
所述处理器50可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 50 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
所述存储器51可以是所述终端设备5的内部存储单元,例如终端设备5的硬盘或内存。所述存储器51也可以是所述终端设备5的外部存储设备,例如所述终端设备5上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器51还可以既包括所述终端设备5的内部存储单元也包括外部存储设备。所述存储器51用于存储所述计算机程序以及所述终端设备所需的其他程序和数据。所述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk equipped on the terminal device 5, a smart memory card (Smart, Media, Card, SMC), and a secure digital (SD) Cards, flash cards, etc. Further, the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the terminal device. The memory 51 can also be used to temporarily store data that has been or will be output.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以 硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的终端设备和方法,可以通过其它的方式实现。例如,以上所描述的终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed terminal device and method may be implemented in other ways. For example, the terminal device embodiments described above are only schematic. For example, the division of the modules or units is only a division of logical functions. In actual implementation, there may be other divisions, such as multiple units or components Can be combined or integrated into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括电载波信号和电信信号。If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by a computer program instructing relevant hardware. The computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments may be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals and software distribution media, etc. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media The storage medium does not include electrical carrier signals and telecommunication signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed or recorded in an embodiment, you can refer to the related descriptions of other embodiments.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施 例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the foregoing The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application. Within the scope of protection of this application.

Claims (20)

  1. 一种降低功耗的方法,其特征在于,包括:A method for reducing power consumption, which includes:
    在终端设备的WIFI功能开启后,监测所述终端设备的状态;After the WIFI function of the terminal device is turned on, monitor the state of the terminal device;
    若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间,所述KAT时间为所述WIFI模块发送或接收数据包后保持不休眠的时间;If the state of the terminal device is the first state, the KAT time of the WIFI module of the terminal device is adjusted to the first time, and the KAT time is the time that the WIFI module remains dormant after sending or receiving a data packet;
    若所述终端设备的状态由第一状态切换为第二状态,则调节所述终端设备的WIFI模块的KAT时间为第二时间,所述第二时间大于所述第一时间。If the state of the terminal device is switched from the first state to the second state, the KAT time of the WIFI module of the terminal device is adjusted to the second time, and the second time is greater than the first time.
  2. 如权利要求1所述的降低功耗的方法,其特征在于,在终端设备的WIFI功能开启后,还包括:The method for reducing power consumption according to claim 1, wherein after the WIFI function of the terminal device is turned on, further comprising:
    将所述终端设备的WIFI模块的KAT时间设为初始时间,所述第一时间小于所述初始时间,所述第二时间等于所述初始时间。The KAT time of the WIFI module of the terminal device is set as an initial time, the first time is less than the initial time, and the second time is equal to the initial time.
  3. 如权利要求2所述的降低功耗的方法,其特征在于,所述监测所述终端设备的状态包括:The method for reducing power consumption according to claim 2, wherein the monitoring the state of the terminal device comprises:
    监测所述终端设备前台运行的应用;Monitoring applications running in the foreground of the terminal device;
    相应的,所述若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间包括:Correspondingly, if the state of the terminal device is the first state, adjusting the KAT time of the WIFI module of the terminal device to the first time includes:
    若所述终端设备前台运行的应用为预设类别的应用,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the application running in the foreground of the terminal device is an application of a preset category, the KAT time of the WIFI module of the terminal device is adjusted to the first time.
  4. 如权利要求3所述的降低功耗的方法,其特征在于,在监测所述终端设备前台运行的应用之前,还包括:The method for reducing power consumption according to claim 3, wherein before monitoring the application running in the foreground of the terminal device, the method further comprises:
    监测所述终端设备基于所述WIFI模块的上行数据量或下行数据量;Monitoring the uplink data volume or the downlink data volume of the terminal device based on the WIFI module;
    若所述终端设备基于所述WIFI模块的上行数据量或下行数据量大于数据量阈值,则监测所述终端设备前台运行的应用。If the terminal device's uplink data volume or downlink data volume based on the WIFI module is greater than the data volume threshold, the application running in the foreground of the terminal device is monitored.
  5. 如权利要求4所述的降低功耗的方法,其特征在于,在监测所述终端设备基于所述WIFI模块的上行数据量或下行数据量之后,还包括:The method for reducing power consumption according to claim 4, wherein after monitoring the amount of uplink data or downlink data of the terminal device based on the WIFI module, the method further comprises:
    若所述终端设备基于所述WIFI模块的上行数据量小于或等于所述数据量阈值、且下行数据量小于或等于所述数据量阈值,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the terminal device's uplink data volume based on the WIFI module is less than or equal to the data volume threshold, and the downlink data volume is less than or equal to the data volume threshold, then adjust the KAT time of the terminal device's WIFI module to For a time.
  6. 如权利要求2所述的降低功耗的方法,其特征在于,所述若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间包括:The method for reducing power consumption according to claim 2, wherein, if the state of the terminal device is the first state, adjusting the KAT time of the WIFI module of the terminal device to the first time includes:
    若所述终端设备的状态为待机状态或者熄屏状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the state of the terminal device is the standby state or the screen off state, the KAT time of the WIFI module of the terminal device is adjusted to the first time.
  7. 如权利要求6所述的降低功耗的方法,其特征在于,所述若所述终端设备的状态为待机状态或者熄屏状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间包括:The method for reducing power consumption according to claim 6, characterized in that, if the terminal device is in a standby state or a screen-off state, the KAT time of the WIFI module of the terminal device is adjusted to the first time include:
    若所述终端设备的状态为待机状态或者熄屏状态、且所述终端设备后台运行的应用为预设类别的应用,则调节所述终端设备的WIFI模块的KAT时间为第一时间。If the state of the terminal device is the standby state or the screen off state, and the application running in the background of the terminal device is an application of a preset category, the KAT time of the WIFI module of the terminal device is adjusted to the first time.
  8. 如权利要求1所述的降低功耗的方法,其特征在于,在调节所述终端设备的WIFI模块的KAT时间为第一时间之前,还包括:The method for reducing power consumption according to claim 1, wherein before adjusting the KAT time of the WIFI module of the terminal device to the first time, further comprising:
    模拟所述终端设备的WIFI模块在多个KAT时间时分别对应的功耗和数据传输延时;Simulate the corresponding power consumption and data transmission delay of the WIFI module of the terminal device at multiple KAT times, respectively;
    基于所述多个KAT时间时分别对应的功耗和数据传输延时,生成所述功耗和所述数据传输延时随所述KAT时间变化的曲线。Based on the respective power consumption and data transmission delay corresponding to the plurality of KAT times, a curve of the power consumption and the data transmission delay varying with the KAT time is generated.
  9. 如权利要求8所述的降低功耗的方法,其特征在于,所述模拟所述终端设备的WIFI模块在多个KAT时间时分别对应的功耗和数据传输延时包括:The method for reducing power consumption according to claim 8, wherein the corresponding power consumption and data transmission delay of the WIFI module simulating the terminal device at multiple KAT times respectively include:
    在所述KAT时间的可选范围内选取多个时间作为模拟时间,其中,所述KAT时间的可选范围为[0,a],a为所述初始时间;Selecting multiple times as the simulation time within the selectable range of the KAT time, wherein the selectable range of the KAT time is [0, a], and a is the initial time;
    将所述WIFI模块的KAT时间设为所述模拟时间,在模拟周期内随机发射预设数量和预设大小的数据包,并统计所述模拟周期内所述WIFI模块的KAT时间对应的功耗和数据传输延时均值。Set the KAT time of the WIFI module to the simulation time, randomly transmit a preset number and a preset size of data packets in the simulation period, and count the power consumption corresponding to the KAT time of the WIFI module in the simulation period And the average data transmission delay.
  10. 如权利要求8所述的降低功耗的方法,其特征在于,所述若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间包括:The method for reducing power consumption according to claim 8, wherein, if the state of the terminal device is the first state, adjusting the KAT time of the WIFI module of the terminal device to the first time includes:
    若所述终端设备的状态为第一状态,则获取预设的所述终端设备在所述第一状态时允许的最大数据传输延时;If the state of the terminal device is the first state, obtain a preset maximum data transmission delay allowed by the terminal device in the first state;
    基于所述曲线获得所述最大数据传输延时对应的第一时间,并调节所述终端设备的WIFI模块的KAT时间为第一时间。Obtain the first time corresponding to the maximum data transmission delay based on the curve, and adjust the KAT time of the WIFI module of the terminal device to the first time.
  11. 如权利要求8所述的降低功耗的方法,其特征在于,在调节所述终端设备的WIFI模块的KAT时间为第一时间之前,还包括:The method for reducing power consumption according to claim 8, wherein before adjusting the KAT time of the WIFI module of the terminal device to the first time, further comprising:
    显示预设界面,并接收用户通过所述预设界面设置的与所述第一状态对应的第一时间。The preset interface is displayed, and the first time corresponding to the first state set by the user through the preset interface is received.
  12. 如权利要求11所述的降低功耗的方法,其特征在于,所述显示预设界面,并接收用户通过所述预设界面设置的与所述第一状态对应的第一时间包括:The method for reducing power consumption according to claim 11, wherein the displaying a preset interface and receiving the first time corresponding to the first state set by the user through the preset interface includes:
    在所述预设界面中显示多个KAT时间分别对应的功耗和数据传输延时,并接收用户基于所述多个KAT时间分别对应的功耗和数据传输延时选中的KAT时间作为与所述第一状态对应的第一时间。Display the power consumption and data transmission delay corresponding to multiple KAT times on the preset interface respectively, and receive the KAT time selected by the user based on the power consumption and data transmission delay corresponding to the multiple KAT times as the The first time corresponding to the first state.
  13. 如权利要求11或12所述的降低功耗的方法,其特征在于,所述预设界面中显示所述WIFI模块的初始时间。The method for reducing power consumption according to claim 11 or 12, wherein the initial time of the WIFI module is displayed in the preset interface.
  14. 如权利要求12所述的降低功耗的方法,其特征在于,在接收用户通过所述预设界面设置的与所述第一状态对应的第一时间之后,还包括:The method for reducing power consumption according to claim 12, wherein after receiving the first time set by the user through the preset interface corresponding to the first state, the method further comprises:
    获取历史周期内用户通过所述预设界面设置的与所述第一状态对应的第一时间;Acquiring the first time corresponding to the first state set by the user through the preset interface in the historical period;
    基于所述第一状态对应的第一时间训练预先构建的卷积神经网络模型,获得训练后的卷积神经网络模型。Train a pre-built convolutional neural network model based on the first time corresponding to the first state to obtain a trained convolutional neural network model.
  15. 如权利要求14所述的降低功耗的方法,其特征在于,所述基于所述第一状态对应的第一时间训练预先构建的卷积神经网络模型,获得训练后的卷积神经网络模型包括:The method for reducing power consumption according to claim 14, wherein the training a pre-built convolutional neural network model based on the first time corresponding to the first state, and obtaining the trained convolutional neural network model includes :
    将所述第一状态的特征参数作为预先构建的卷积神经网络模型的输入,并将所述第一状态对应的第一时间作为标签值,训练所述卷积神经网络模型,获得训练后的卷积神经网络模型。The feature parameters of the first state are used as the input of the pre-built convolutional neural network model, and the first time corresponding to the first state is used as the label value to train the convolutional neural network model to obtain the trained Convolutional neural network model.
  16. 如权利要求15所述的降低功耗的方法,其特征在于,所述第一状态的特征参数包括以下至少一项:所述终端设备基于所述WIFI模块上行数据量、所述终端设备基于所述WIFI模块的下行数据量、所述终端设备前台运行的应用的类别、所述终端设备后台运行的应用的类别、所述终端设备是否为休眠状态或熄屏状态、当前时间。The method for reducing power consumption according to claim 15, wherein the characteristic parameter of the first state includes at least one of the following: the terminal device is based on the uplink data amount of the WIFI module, and the terminal device is based on The amount of downlink data of the WIFI module, the category of applications running in the foreground of the terminal device, the category of applications running in the background of the terminal device, whether the terminal device is in a sleep state or a screen-off state, and the current time.
  17. 如权利要求16所述的降低功耗的方法,其特征在于,所述若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间包括:The method for reducing power consumption according to claim 16, wherein, if the state of the terminal device is the first state, adjusting the KAT time of the WIFI module of the terminal device to the first time includes:
    若所述终端设备的状态为第一状态,则获取所述第一状态的特征参数,并将所述第一状态的特征参数输入训练后的卷积神经网络模型输出第一时间,并调节所述终端设备的WIFI模块的KAT时间为输出的第一时间。If the state of the terminal device is the first state, the characteristic parameters of the first state are obtained, and the characteristic parameters of the first state are input to the trained convolutional neural network model to output for a first time, and the The KAT time of the WIFI module of the terminal device is the first time output.
  18. 一种终端设备,其特征在于,包括:A terminal device is characterized by comprising:
    监测单元,用于在终端设备的WIFI功能开启后,监测所述终端设备的状态;The monitoring unit is used to monitor the state of the terminal device after the WIFI function of the terminal device is turned on;
    第一调节单元,用于若所述终端设备的状态为第一状态,则调节所述终端设备的WIFI模块的KAT时间为第一时间,所述KAT时间为所述WIFI模块发送或接收数据包后保持不休眠的时间;The first adjusting unit is used to adjust the KAT time of the WIFI module of the terminal device to the first time if the state of the terminal device is the first state, and the KAT time is to send or receive data packets by the WIFI module After staying in sleep time;
    第二调节单元,用于若所述终端设备的状态切换为第二状态,则调节所述终端设备的WIFI模块的KAT时间为第二时间,所述第二时间大于所述第一时间。The second adjusting unit is configured to adjust the KAT time of the WIFI module of the terminal device to a second time if the state of the terminal device is switched to the second state, and the second time is greater than the first time.
  19. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至17任一项所述方法的步骤。A terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it is implemented as claimed in claims 1 to 17. The method of any one of the steps.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现如权利要求1至17任一项所述方法的步骤。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 17 is implemented A step of.
PCT/CN2018/116931 2018-11-22 2018-11-22 Method for reducing power consumption, terminal device, and storage medium WO2020103080A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/116931 WO2020103080A1 (en) 2018-11-22 2018-11-22 Method for reducing power consumption, terminal device, and storage medium
CN201880097555.9A CN112715040B (en) 2018-11-22 2018-11-22 Method for reducing power consumption, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/116931 WO2020103080A1 (en) 2018-11-22 2018-11-22 Method for reducing power consumption, terminal device, and storage medium

Publications (1)

Publication Number Publication Date
WO2020103080A1 true WO2020103080A1 (en) 2020-05-28

Family

ID=70774331

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116931 WO2020103080A1 (en) 2018-11-22 2018-11-22 Method for reducing power consumption, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN112715040B (en)
WO (1) WO2020103080A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235760A (en) * 2020-09-25 2021-01-15 深圳市杉川机器人有限公司 Robot pairing method and device, terminal equipment and storage medium
CN116804960A (en) * 2023-05-24 2023-09-26 荣耀终端有限公司 Power consumption processing method and system of terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825815A (en) * 2005-02-25 2006-08-30 乐金电子(中国)研究开发中心有限公司 Wireless lan module electricity saving method
US20090239574A1 (en) * 2008-03-18 2009-09-24 Hussain Farooq S Power management for multimode wireless communication device
CN105992317A (en) * 2015-02-05 2016-10-05 Tcl集团股份有限公司 Wireless communication module management method and wireless communication module management apparatus
CN106547335A (en) * 2016-11-01 2017-03-29 上海传英信息技术有限公司 Energy consumption reduces method and mobile terminal
CN106879007A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Method and device for controlling working state of wireless equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9668204B2 (en) * 2014-09-19 2017-05-30 Qualcomm Inc. Collaborative demand-based dual-mode Wi-Fi network control to optimize wireless power and performance
CN105050164A (en) * 2015-01-16 2015-11-11 中国矿业大学 Method for lowering wifi power consumption based on data importance
CN106331374B (en) * 2016-09-28 2019-11-08 珠海市魅族科技有限公司 A kind of network connection control method and device
CN108337720B (en) * 2018-01-12 2021-11-12 深圳全志在线有限公司 WLAN equipment power saving mode implementation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825815A (en) * 2005-02-25 2006-08-30 乐金电子(中国)研究开发中心有限公司 Wireless lan module electricity saving method
US20090239574A1 (en) * 2008-03-18 2009-09-24 Hussain Farooq S Power management for multimode wireless communication device
CN105992317A (en) * 2015-02-05 2016-10-05 Tcl集团股份有限公司 Wireless communication module management method and wireless communication module management apparatus
CN106547335A (en) * 2016-11-01 2017-03-29 上海传英信息技术有限公司 Energy consumption reduces method and mobile terminal
CN106879007A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Method and device for controlling working state of wireless equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235760A (en) * 2020-09-25 2021-01-15 深圳市杉川机器人有限公司 Robot pairing method and device, terminal equipment and storage medium
CN116804960A (en) * 2023-05-24 2023-09-26 荣耀终端有限公司 Power consumption processing method and system of terminal equipment

Also Published As

Publication number Publication date
CN112715040B (en) 2023-03-10
CN112715040A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN106774786B (en) Power consumption control method and device
CN104601203B (en) A kind of low-power consumption bluetooth equipment dynamically adjusts the method and device of Connecting quantity
CN106776036A (en) A kind of resource allocation methods and device
CN107425568B (en) Method and device for preventing over-discharge of battery, mobile terminal and storage medium
CN110703944B (en) Touch data processing method and device, terminal and storage medium
CN110727561A (en) Abnormal heat dissipation detection method and device, terminal and storage medium
CN107613087B (en) Control method and mobile terminal
CN107332997B (en) Method and device for reducing terminal heating, mobile terminal and storage medium
WO2020103080A1 (en) Method for reducing power consumption, terminal device, and storage medium
CN111538678A (en) Data buffering method, device and computer readable storage medium
CN113051465A (en) Push method and device for optimization strategy, server and storage medium
WO2020102928A1 (en) Wireless signal transmission method, wireless signal transmission device and terminal device
WO2020048243A1 (en) Window adjustment method, window adjustment device and mobile terminal
CN110602772A (en) WiFi module control method, control device, electronic device and storage medium
WO2018076698A1 (en) Terminal delay display method and apparatus, and terminal and computer storage medium
WO2021036748A1 (en) Control method and apparatus, chip and device
WO2023241026A1 (en) Data transmission method and apparatus, and terminal and storage medium
WO2023179119A1 (en) Near field communication device connection method and apparatus, device, storage medium, and product
WO2021077375A1 (en) Communication frequency adjustment method and apparatus, and electronic device and storage medium
CN112702146A (en) Data processing method and device
CN108363628A (en) Message treatment method, device, terminal and computer readable storage medium
CN108650421B (en) Display control method and related product
WO2021031786A1 (en) Data transmission method and related device
US9639137B2 (en) Control method and electronic device
WO2016180114A1 (en) Method and apparatus for making hotspot of terminal sleep

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18941080

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18941080

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 30.09.2021.)

122 Ep: pct application non-entry in european phase

Ref document number: 18941080

Country of ref document: EP

Kind code of ref document: A1