CN111163505A - Power consumption control method, system, device and medium for WiFi device - Google Patents

Power consumption control method, system, device and medium for WiFi device Download PDF

Info

Publication number
CN111163505A
CN111163505A CN201911319346.7A CN201911319346A CN111163505A CN 111163505 A CN111163505 A CN 111163505A CN 201911319346 A CN201911319346 A CN 201911319346A CN 111163505 A CN111163505 A CN 111163505A
Authority
CN
China
Prior art keywords
wifi
route
mode
external server
power consumption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911319346.7A
Other languages
Chinese (zh)
Inventor
周子铨
余琰知
李�浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201911319346.7A priority Critical patent/CN111163505A/en
Publication of CN111163505A publication Critical patent/CN111163505A/en
Pending legal-status Critical Current

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
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • H04W52/0216Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave using a pre-established activity schedule, e.g. traffic indication frame
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage
    • 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
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • 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

Abstract

The invention discloses a power consumption control method, a power consumption control system, power consumption control equipment and power consumption control media of WiFi equipment. The power consumption control method comprises the following steps: controlling the WiFi equipment to enter a dormant state and sending a frame signal for informing the WiFi equipment of entering the dormant state to the WiFi route; judging whether to control the flow sent to the WiFi route by an external server in communication connection with the WiFi equipment; if yes, switching the WiFi equipment to a first mode; if not, the WiFi equipment is switched to the second mode. According to the invention, based on whether the flow sent to the WiFi route by the external server in communication connection with the WiFi equipment is controlled, the WiFi equipment is switched between the first mode and the second mode, wherein the WiFi equipment can rapidly enter a dormant state in the first mode, and high throughput can be realized in the second mode, so that the power consumption of the WiFi equipment powered by a battery is optimized, and the user experience is improved.

Description

Power consumption control method, system, device and medium for WiFi device
Technical Field
The present invention relates to the field of WiFi (wireless internet access) technologies, and in particular, to a power consumption control method, system, device, and medium for WiFi devices.
Background
In a WiFi-based wireless system, due to the high Power consumption of WiFi, it is necessary to optimize the Power consumption of WiFi in a battery-powered WiFi device, and currently, the Power saving mode of the WiFi device includes a Fast PS mechanism, a PS-Poll (Power saving polling) mechanism, an APSD (Automatic Power Save Delivery) mechanism, and the like. For example, in a Fast PS mechanism, although the throughput of WiFi is high, a certain waiting period needs to pass when a WiFi device switches from an Active state to a Sleep state, so that it takes a long time for the WiFi device to enter the Sleep state and the power consumption is increased by the process.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a power consumption control method, system, device and medium for WiFi devices in order to overcome the defect that WiFi power consumption needs to be optimized in the prior art.
The invention solves the technical problems through the following technical scheme:
a power consumption control method of a WiFi device that is communicatively connected with an external server via a WiFi route, the power consumption control method comprising:
controlling the WiFi equipment to enter a sleep state and sending a frame signal for informing the WiFi equipment of entering the sleep state to the WiFi route;
judging whether to control the flow sent by the external server to the WiFi route;
if yes, switching the WiFi equipment to a first mode;
if not, switching the WiFi equipment to a second mode;
in the first mode, the WiFi equipment sends a frame signal for receiving data to the WiFi route when the WiFi route notifies that the data are received, and enters a dormant state when the data are received;
in the second mode, the WiFi device enters an active state when the WiFi route notifies receiving data and sends a frame signal for notifying the WiFi device to enter the active state to the WiFi route, and the WiFi device enters a dormant state after waiting for a preset time after data reception is completed and sends a frame signal for notifying the WiFi device to enter the dormant state to the WiFi route.
Preferably, the step of determining whether to control the traffic sent by the external server to the WiFi route includes:
judging whether the residual cache of the WiFi equipment is smaller than a first threshold value or not;
if yes, determining to control the flow sent to the WiFi route by the external server;
if not, determining not to control the flow sent by the external server to the WiFi route.
Preferably, when the step of determining whether to control the traffic sent by the external server to the WiFi route is determined to be yes, the method further includes:
sending a download stopping request to the external server, wherein the download stopping request is used for requesting the external server to stop sending data to the WiFi route;
alternatively, the first and second electrodes may be,
and setting the size of a TCP receiving window of the WiFi equipment to be 0 based on a TCP (Transmission Control Protocol) Protocol so as to enable the external server to stop sending data to the WiFi route.
Preferably, the power consumption control method further includes:
judging whether the residual cache of the WiFi equipment is larger than a second threshold value, wherein the second threshold value is larger than the first threshold value;
and if so, sending a downloading request to the external server, wherein the downloading request is used for requesting the external server to send data to the WiFi route.
Preferably, the first mode comprises a PS-Poll mode, and the frame signal for receiving data comprises a PS-Poll frame;
alternatively, the first and second electrodes may be,
the first mode comprises a UAPSD mode, and the frame signal for receiving data comprises a Trigger frame.
Preferably, the second mode comprises a Fast PS mode, and the frame signal for notifying the WiFi device to enter an Active state comprises a PS-Active frame;
and/or the presence of a gas in the gas,
the frame signal for informing the WiFi device to enter the Sleep state comprises a PS-Sleep frame.
A power consumption control system of a WiFi device communicatively connected with an external server via a WiFi route, the power consumption control system comprising:
the control module is used for controlling the WiFi equipment to enter a dormant state and sending a frame signal for informing the WiFi equipment of entering the dormant state to the WiFi route;
the first judgment module is used for judging whether to control the flow sent by the external server to the WiFi route;
if so, calling a first switching module for switching the WiFi equipment to a first mode;
if not, calling a second switching module for switching the WiFi equipment to a second mode;
in the first mode, the WiFi equipment sends a frame signal for receiving data to the WiFi route when the WiFi route notifies that the data are received, and enters a dormant state when the data are received;
in the second mode, the WiFi device enters an active state when the WiFi route notifies receiving data and sends a frame signal for notifying the WiFi device to enter the active state to the WiFi route, and the WiFi device enters a dormant state after waiting for a preset time after data reception is completed and sends a frame signal for notifying the WiFi device to enter the dormant state to the WiFi route.
Preferably, the first determining module includes:
the first judgment unit is used for judging whether the residual cache of the WiFi equipment is smaller than a first threshold value or not;
if so, calling a first determining unit for determining to control the flow sent by the external server to the WiFi route;
if not, a second determining unit is called for determining not to control the flow sent by the external server to the WiFi route.
Preferably, the power consumption control system further includes:
the second request module is used for sending a downloading stopping request to the external server when the first judgment unit judges that the external server stops sending data to the WiFi route;
alternatively, the first and second electrodes may be,
and the setting module is used for setting the size of a TCP receiving window of the WiFi equipment to be 0 based on a TCP protocol when the first judging unit judges that the data is transmitted to the WiFi route by the external server.
Preferably, the power consumption control system further includes:
the second judgment module is used for judging whether the residual cache of the WiFi equipment is larger than a second threshold value, and the second threshold value is larger than the first threshold value;
if yes, a first request module is called and used for sending a downloading request to the external server, and the downloading request is used for requesting the external server to send data to the WiFi route.
Preferably, the first mode comprises a PS-Poll mode, and the frame signal for receiving data comprises a PS-Poll frame;
alternatively, the first and second electrodes may be,
the first mode comprises a UAPSD mode, and the frame signal for receiving data comprises a Trigger frame.
Preferably, the second mode comprises a Fast PS mode, and the frame signal for notifying the WiFi device to enter an Active state comprises a PS-Active frame;
and/or the presence of a gas in the gas,
the frame signal for informing the WiFi device to enter the Sleep state comprises a PS-Sleep frame.
An electronic device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the power consumption control method of any one of the WiFi devices.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the above-described power consumption control methods for a WiFi device.
The positive progress effects of the invention are as follows: according to the invention, based on whether the flow sent to the WiFi route by the external server in communication connection with the WiFi equipment is controlled, the WiFi equipment is switched between the first mode and the second mode, wherein the WiFi equipment can rapidly enter a Sleep state in the first mode, and high throughput can be realized in the second mode, so that the power consumption of the WiFi equipment powered by a battery is optimized, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of a power consumption control method of a WiFi device according to embodiment 1 of the present invention.
Fig. 2 is a schematic diagram illustrating signal transceiving of a PS-Poll mode in a power consumption control method of a WiFi device according to embodiment 1 of the present invention.
Fig. 3 is a schematic diagram of signal transceiving in a UAPSD mode in a power consumption control method of a WiFi device according to embodiment 1 of the present invention.
Fig. 4 is a schematic signal transceiving diagram of a Fast PS mode in a power consumption control method of a WiFi device according to embodiment 1 of the present invention.
Fig. 5 is a schematic block diagram of a power consumption control system of a WiFi device according to embodiment 2 of the present invention.
Fig. 6 is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
In this embodiment, a WiFi device is in communication connection with an external server via a WiFi route, and fig. 1 shows a flowchart of this embodiment. Referring to fig. 1, the power consumption control method of the present embodiment includes:
and S1, controlling the WiFi equipment to enter the sleep state and sending a frame signal for informing the WiFi equipment that the WiFi equipment enters the sleep state to the WiFi route.
In step S1, the frame signal for notifying the WiFi device that it has entered the Sleep state may include a PS-Sleep frame, and after receiving the PS-Sleep frame sent by the WiFi device, the WiFi route may buffer data sent by the external server for the WiFi device.
Further, when a TBTT (Target Beacon Transmission Time, Beacon scheduled Transmission Time) arrives, the WiFi route actively sends a Beacon frame, the WiFi device actively (enters an awake state in advance at the TBTT Time) receives the Beacon frame, and performs Time synchronization by using the Beacon frame.
S2, judging whether to control the flow sent by the external server to the WiFi route;
if yes, go to step S3; if not, go to step S4;
s3, switching the WiFi equipment to a first mode;
and S4, switching the WiFi device to the second mode.
In this embodiment, the operation mode of the WiFi device may be switched according to whether to control traffic sent to the WiFi route by an external server in communication connection with the WiFi device. Specifically, in this embodiment, the situation that the flow control needs to be performed may include that the speed of sending data by the external server is faster than the speed of receiving data by the WiFi device, and in this situation, in order to avoid data loss, the speed of sending data by the external server needs to be controlled.
For example, step S2 may specifically include a step of determining whether the remaining cache of the WiFi device is smaller than a first threshold, when the remaining cache of the WiFi device is smaller than the first threshold, determining to control the traffic sent by the external server to the WiFi route, and when the remaining cache of the WiFi device is not smaller than the first threshold, determining not to control the traffic sent by the external server to the WiFi route. The first threshold value can be set in a self-defined mode according to practical application.
For another example, step S2 may specifically determine, by combining the current WiFi signal strength, the current WiFi transmission rate, the size of the data to be downloaded, and the like, whether to control the traffic sent by the external server to the WiFi route.
Further, in this embodiment, when it is necessary to control the traffic sent by the external server to the WiFi route, a download stop request for requesting the external server to stop sending data to the WiFi route may be directly sent to the external server, so as to stop the external server from sending data to the WiFi route, or the size of the receive window of the WiFi device may be set to 0 according to a sliding window protocol in the TCP protocol, so that the external server no longer sends data to the WiFi route.
In this embodiment, when it is necessary to control a traffic sent from an external server to a WiFi route, the WiFi device is switched to a first mode, and in the first mode, the WiFi device sends a frame signal for receiving data to the WiFi route when the WiFi route notifies that the data is received, and enters a sleep state when the data reception is completed.
Specifically, in this embodiment, the first mode may be a PS-Poll mode, and fig. 2 shows a signaling diagram of the PS-Poll mode. Referring to fig. 2, in the PS-Poll mode, the WiFi device is in a sleep state, when the TBTT arrives and the beacon frame indicates that there is data, the WiFi device may send a PS-Poll frame for receiving the data, after the WiFi route receives the PS-Poll frame, the WiFi route may reply a data frame to the WiFi device, if the WiFi device further needs to acquire the data, the WiFi device needs to send the PS-Poll frame again, and when the WiFi device does not need to acquire the data, the WiFi device enters the sleep state.
In this embodiment, the first mode may also be a UAPSD (Unscheduled Automatic Power save delivery) mode, and fig. 3 shows a signal transceiving schematic diagram of the UAPSD mode. Referring to fig. 3, in the UAPSD mode, the WiFi device is in a sleep state, when the TBTT arrives and the beacon frame indicates that there is data, the WiFi device may send a Trigger frame for receiving the data, after receiving the Trigger frame, the WiFi router may reply a plurality of data frames to the WiFi device, if the WiFi device still needs to acquire the data, the Trigger frame needs to be sent again, and when the WiFi device does not need to acquire the data, the WiFi device enters the sleep state.
In this embodiment, when it is not necessary to control a traffic sent from an external server to a WiFi route, the WiFi device is switched to a second mode, in the second mode, the WiFi device enters an active state when the WiFi route notifies receiving data and sends a frame signal for notifying that the WiFi device has entered the active state to the WiFi route, and after the data reception is completed, the WiFi device enters a sleep state after waiting for a preset time and sends a frame signal for notifying that the WiFi device has entered the sleep state to the WiFi route. In the second mode, the WiFi route does not need to cache data for the WiFi device, and the WiFi device does not need to send a frame signal for receiving data to the WiFi route for multiple times according to the size of the cached data, so that a large amount of data throughput can be achieved.
Specifically, in this embodiment, the second mode may be a Fast PS mode, and fig. 4 shows a signal transceiving diagram of the Fast PS mode. Referring to fig. 4, in a Fast PS mode, a WiFi device is in a Sleep state, when a TBTT arrives and a beacon frame indicates data, the WiFi device may send a PS-Active frame for notifying that the WiFi device has entered an Active state, and has informed that it can continuously receive data, and after the WiFi device has no data reception, the WiFi device enters the Sleep state after waiting for a preset time (idle Timeout), and sends a PS-Sleep frame to a WiFi route.
Further, the power consumption control method of this embodiment may further include a step of determining whether the remaining cache of the WiFi device is greater than a second threshold, and with the release of the cache of the WiFi device, when the remaining cache of the WiFi device is greater than the second threshold, sending a download request to the external server for requesting the external server to send data to the WiFi route. In this embodiment, the second threshold may be set in a customized manner according to the actual application and is greater than the first threshold. In addition, on the basis that the size of the TCP receiving window of the WiFi device is set to 0 according to the TCP protocol to stop the external server from transmitting data to the WiFi route, when data needs to be downloaded from the server, the size of the TCP receiving window of the WiFi device may be recovered according to the TCP protocol to enable the external server to transmit data to the WiFi route.
In this embodiment, the WiFi device may be a WiFi headset or a WiFi speaker. For example, when listening to music on-line using a WiFi headset, a download request for downloading audio data may be sent to an external server and the first mode may be entered to quickly download the audio data. When the cache of the WiFi headset is full, a download stop request can be sent to the external server, the second mode is entered, the sleep state can be rapidly entered, and meanwhile a small amount of audio data can be acquired. And after the WiFi earphone buffer is released to a certain degree, the downloading request can be sent to the external server again, and the first mode is entered to continue downloading the audio data.
In addition, in this embodiment, a switching instruction may be directly sent to the WiFi device, the WiFi device is switched to the first mode or the second mode, or a switching instruction that controls the WiFi device to switch to the first mode or the second mode may be carried in the frame signal, and the WiFi device may obtain a specific switching instruction by analyzing the frame signal to be sent to the WiFi route.
The embodiment realizes that the WiFi equipment is switched between the first mode and the second mode based on whether the flow sent to the WiFi route by the external server in communication connection with the WiFi equipment is controlled, wherein the WiFi equipment can quickly enter a sleep state in the first mode, high throughput can be realized in the second mode, the power consumption of the WiFi equipment powered by a battery is optimized, the power saving mode of the WiFi equipment is further optimized, and the user experience is improved.
Example 2
The present embodiment provides a power consumption control system of a WiFi device, in the present embodiment, the WiFi device is in communication connection with an external server via a WiFi route, and fig. 5 shows a module diagram of the present embodiment. Referring to fig. 5, the power consumption control system of the present embodiment includes:
the control module 1 is configured to control the WiFi device to enter a sleep state and send a frame signal to the WiFi router, where the frame signal is used to notify the WiFi device that the WiFi device has entered the sleep state.
In this embodiment, the frame signal for notifying the WiFi device that the WiFi device has entered the Sleep state may include a PS-Sleep frame, and after receiving the PS-Sleep frame sent by the WiFi device, the WiFi route may buffer data sent by the external server for the WiFi device.
Further, when a TBTT (Target Beacon Transmission Time, Beacon scheduled Transmission Time) arrives, the WiFi route actively sends a Beacon frame, the WiFi device actively (enters an awake state in advance at the TBTT Time) receives the Beacon frame, and performs Time synchronization by using the Beacon frame.
The first judgment module 2 is used for judging whether to control the flow sent by the external server to the WiFi route;
if yes, calling a first switching module 3; if not, calling the second switching module 4;
the first switching module 3 is used for switching the WiFi equipment to a first mode;
and the second switching module 4 is used for switching the WiFi device to the second mode.
In this embodiment, the operation mode of the WiFi device may be switched according to whether to control traffic sent to the WiFi route by an external server in communication connection with the WiFi device. Specifically, in this embodiment, the situation that the flow control needs to be performed may include that the speed of sending data by the external server is faster than the speed of receiving data by the WiFi device, and in this situation, in order to avoid data loss, the speed of sending data by the external server needs to be controlled.
For example, the first determining module 2 may include a first determining unit 21 configured to determine whether the remaining cache of the WiFi device is smaller than a first threshold, and when the remaining cache of the WiFi device is smaller than the first threshold, invoke the first determining unit 22 to determine to control the traffic sent by the external server to the WiFi route, and when the remaining cache of the WiFi device is not smaller than the first threshold, invoke the second determining unit 23 to determine not to control the traffic sent by the external server to the WiFi route. The first threshold value can be set in a self-defined mode according to practical application.
For another example, the first determining module 2 may specifically determine whether to control the traffic sent from the external server to the WiFi route according to the current WiFi signal strength, the current WiFi transmission rate, the size of the data to be downloaded, and the like.
Further, in this embodiment, a second request module 7 may be further included, and when it is necessary to control traffic sent by the external server to the WiFi route, the second request module may be configured to directly send a download stop request for requesting the external server to stop sending data to the WiFi route, so as to stop sending data to the WiFi route by the external server. The device also can comprise a setting module, when the traffic sent to the WiFi route by the external server needs to be controlled, the setting module is used for setting the size of the receiving window of the WiFi device to 0 according to the sliding window protocol in the TCP protocol, so that the external server does not send data to the WiFi route any more.
In this embodiment, when it is necessary to control a traffic sent from an external server to a WiFi route, the WiFi device is switched to a first mode, and in the first mode, the WiFi device sends a frame signal for receiving data to the WiFi route when the WiFi route notifies that the data is received, and enters a sleep state when the data reception is completed.
Specifically, in this embodiment, the first mode may be a PS-Poll mode, and a signaling diagram of the PS-Poll mode is also shown in fig. 2. Referring to fig. 2, in the PS-Poll mode, the WiFi device is in a sleep state, when the TBTT arrives and the beacon frame indicates that there is data, the WiFi device may send a PS-Poll frame for receiving the data, after the WiFi route receives the PS-Poll frame, the WiFi route may reply a data frame to the WiFi device, if the WiFi device further needs to acquire the data, the WiFi device needs to send the PS-Poll frame again, and when the WiFi device does not need to acquire the data, the WiFi device enters the sleep state.
In this embodiment, the first mode may also be a UAPSD (Unscheduled Automatic Power save delivery) mode, and a signal transceiving schematic diagram of the UAPSD mode is also shown in fig. 3. Referring to fig. 3, in the UAPSD mode, the WiFi device is in a sleep state, when the TBTT arrives and the beacon frame indicates that there is data, the WiFi device may send a Trigger frame for receiving the data, after receiving the Trigger frame, the WiFi router may reply a plurality of data frames to the WiFi device, if the WiFi device still needs to acquire the data, the Trigger frame needs to be sent again, and when the WiFi device does not need to acquire the data, the WiFi device enters the sleep state.
In this embodiment, when it is not necessary to control a traffic sent from an external server to a WiFi route, the WiFi device is switched to a second mode, in the second mode, the WiFi device enters an active state when the WiFi route notifies receiving data and sends a frame signal for notifying that the WiFi device has entered the active state to the WiFi route, and after the data reception is completed, the WiFi device enters a sleep state after waiting for a preset time and sends a frame signal for notifying that the WiFi device has entered the sleep state to the WiFi route. In the second mode, the WiFi route does not need to cache data for the WiFi device, and the WiFi device does not need to send a frame signal for receiving data to the WiFi route for multiple times according to the size of the cached data, so that a large amount of data throughput can be achieved.
Specifically, in the present embodiment, the second mode may be a Fast PS mode, and a signal transceiving diagram of the Fast PS mode is also shown in fig. 4. Referring to fig. 4, in a Fast PS mode, a WiFi device is in a Sleep state, when a TBTT arrives and a beacon frame indicates data, the WiFi device may send a PS-Active frame for notifying that the WiFi device has entered an Active state, and has informed that it can continuously receive data, and after the WiFi device has no data reception, the WiFi device enters the Sleep state after waiting for a preset time (idle Timeout), and sends a PS-Sleep frame to a WiFi route.
Further, the power consumption control method of this embodiment may further include a second determining module 5 configured to determine whether the remaining cache of the WiFi device is greater than a second threshold, and along with the release of the cache of the WiFi device, when the remaining cache of the WiFi device is greater than the second threshold, invoke the first requesting module 6 to send a download request to the external server, where the download request is used to request the external server to send data to the WiFi route. In this embodiment, the second threshold may be set in a customized manner according to the actual application and is greater than the first threshold. In addition, on the basis that the setting module sets the size of the TCP receiving window of the WiFi device to 0 according to the TCP protocol to stop the external server from sending data to the WiFi route, when data needs to be downloaded from the server, the setting module may recover the size of the TCP receiving window of the WiFi device according to the TCP protocol to enable the external server to send data to the WiFi route.
In this embodiment, the WiFi device may be a WiFi headset or a WiFi speaker. For example, when listening to music on-line using a WiFi headset, a download request for downloading audio data may be sent to an external server and the first mode may be entered to quickly download the audio data. When the cache of the WiFi headset is full, a download stop request can be sent to the external server, the second mode is entered, the sleep state can be rapidly entered, and meanwhile a small amount of audio data can be acquired. And after the WiFi earphone buffer is released to a certain degree, the downloading request can be sent to the external server again, and the first mode is entered to continue downloading the audio data.
In addition, in this embodiment, the first switching module 3 and the second switching module 4 may directly send a switching instruction to the WiFi device, and switch the WiFi device to the first mode or the second mode, and the first switching module 3 and the second switching module 4 may also carry the switching instruction for controlling the WiFi device to switch to the first mode or the second mode in the frame signal, and the WiFi device may obtain a specific switching instruction by analyzing the frame signal to be sent to the WiFi route.
The embodiment realizes that the WiFi equipment is switched between the first mode and the second mode based on whether the flow sent to the WiFi route by the external server in communication connection with the WiFi equipment is controlled, wherein the WiFi equipment can quickly enter a sleep state in the first mode, high throughput can be realized in the second mode, the power consumption of the WiFi equipment powered by a battery is optimized, the power saving mode of the WiFi equipment is further optimized, and the user experience is improved.
Example 3
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, which shows a block diagram of an exemplary electronic device 90 suitable for implementing an embodiment of the present invention. The electronic device 90 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 6, the electronic device 90 may take the form of a general purpose computing device, which may be a server device, for example. The components of the electronic device 90 may include, but are not limited to: the at least one processor 91, the at least one memory 92, and a bus 93 that connects the various system components (including the memory 92 and the processor 91).
The bus 93 includes a data bus, an address bus, and a control bus.
Memory 92 may include volatile memory, such as Random Access Memory (RAM)921 and/or cache memory 922, and may further include Read Only Memory (ROM) 923.
Memory 92 may also include a program tool 925 (or utility) having a set (at least one) of program modules 924, such program modules 924 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 91 executes various functional applications and data processing, such as a power consumption control method of the WiFi device provided in embodiment 1 of the present invention, by running the computer program stored in the memory 92.
The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboard, pointing device, etc.). Such communication may be through an input/output (I/O) interface 95. Also, the model-generated electronic device 90 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via a network adapter 96. As shown, the network adapter 96 communicates with the other modules of the model-generated electronic device 90 via a bus 93. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generating electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
In this embodiment, the electronic device is a WiFi device.
Example 4
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the steps of the power consumption control method of the WiFi device provided in embodiment 1.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code for causing a terminal device to execute the steps of implementing the power consumption control method of the WiFi device described in embodiment 1 when the program product is run on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (14)

1. A power consumption control method of a WiFi device, wherein the WiFi device is in communication connection with an external server via a WiFi route, the power consumption control method comprising:
controlling the WiFi equipment to enter a sleep state and sending a frame signal for informing the WiFi equipment of entering the sleep state to the WiFi route;
judging whether to control the flow sent by the external server to the WiFi route;
if yes, switching the WiFi equipment to a first mode;
if not, switching the WiFi equipment to a second mode;
in the first mode, the WiFi equipment sends a frame signal for receiving data to the WiFi route when the WiFi route notifies that the data are received, and enters a dormant state when the data are received;
in the second mode, the WiFi device enters an active state when the WiFi route notifies receiving data and sends a frame signal for notifying the WiFi device to enter the active state to the WiFi route, and the WiFi device enters a dormant state after waiting for a preset time after data reception is completed and sends a frame signal for notifying the WiFi device to enter the dormant state to the WiFi route.
2. The power consumption control method of the WiFi device of claim 1, wherein the step of determining whether to control the traffic sent by the external server to the WiFi route comprises:
judging whether the residual cache of the WiFi equipment is smaller than a first threshold value or not;
if yes, determining to control the flow sent to the WiFi route by the external server;
if not, determining not to control the flow sent by the external server to the WiFi route.
3. The power consumption control method of the WiFi device of claim 1, wherein when the step of determining whether to control the traffic sent by the external server to the WiFi route determines yes, further comprising:
sending a download stopping request to the external server, wherein the download stopping request is used for requesting the external server to stop sending data to the WiFi route;
alternatively, the first and second electrodes may be,
and setting the size of a TCP receiving window of the WiFi equipment to be 0 based on a TCP protocol so as to enable the external server to stop sending data to the WiFi route.
4. The power consumption control method of the WiFi device of claim 2, characterized in that the power consumption control method further comprises:
judging whether the residual cache of the WiFi equipment is larger than a second threshold value, wherein the second threshold value is larger than the first threshold value;
and if so, sending a downloading request to the external server, wherein the downloading request is used for requesting the external server to send data to the WiFi route.
5. The power consumption control method of a WiFi device of claim 1, wherein said first mode comprises a PS-Poll mode, said frame signal for receiving data comprises a PS-Poll frame;
alternatively, the first and second electrodes may be,
the first mode comprises a UAPSD mode, and the frame signal for receiving data comprises a Trigger frame.
6. The power consumption control method of a WiFi device of claim 1, wherein the second mode comprises a FastPS mode, the frame signal for notifying the WiFi device to enter an Active state comprises a PS-Active frame;
and/or the presence of a gas in the gas,
the frame signal for informing the WiFi device to enter the Sleep state comprises a PS-Sleep frame.
7. A power consumption control system of a WiFi device, wherein the WiFi device is in communication connection with an external server via a WiFi route, the power consumption control system comprising:
the control module is used for controlling the WiFi equipment to enter a dormant state and sending a frame signal for informing the WiFi equipment of entering the dormant state to the WiFi route;
the first judgment module is used for judging whether to control the flow sent by the external server to the WiFi route;
if so, calling a first switching module for switching the WiFi equipment to a first mode;
if not, calling a second switching module for switching the WiFi equipment to a second mode;
in the first mode, the WiFi equipment sends a frame signal for receiving data to the WiFi route when the WiFi route notifies that the data are received, and enters a dormant state when the data are received;
in the second mode, the WiFi device enters an active state when the WiFi route notifies receiving data and sends a frame signal for notifying the WiFi device to enter the active state to the WiFi route, and the WiFi device enters a dormant state after waiting for a preset time after data reception is completed and sends a frame signal for notifying the WiFi device to enter the dormant state to the WiFi route.
8. The power consumption control system of the WiFi device of claim 7, the first determining module comprising:
the first judgment unit is used for judging whether the residual cache of the WiFi equipment is smaller than a first threshold value or not;
if so, calling a first determining unit for determining to control the flow sent by the external server to the WiFi route;
if not, a second determining unit is called for determining not to control the flow sent by the external server to the WiFi route.
9. The power consumption control system of the WiFi device of claim 7, further comprising:
the second request module is used for sending a downloading stopping request to the external server when the first judgment unit judges that the external server stops sending data to the WiFi route;
alternatively, the first and second electrodes may be,
and the setting module is used for setting the size of a TCP receiving window of the WiFi equipment to be 0 based on a TCP protocol when the first judging unit judges that the data is transmitted to the WiFi route by the external server.
10. The power consumption control system of the WiFi device of claim 8, characterized in that the power consumption control system further comprises:
the second judgment module is used for judging whether the residual cache of the WiFi equipment is larger than a second threshold value, and the second threshold value is larger than the first threshold value;
if yes, a first request module is called and used for sending a downloading request to the external server, and the downloading request is used for requesting the external server to send data to the WiFi route.
11. The power consumption control system of WiFi device of claim 7 wherein said first mode comprises PS-Poll mode, said frame signal for receiving data comprises PS-Poll frame;
alternatively, the first and second electrodes may be,
the first mode comprises a UAPSD mode, and the frame signal for receiving data comprises a Trigger frame.
12. The power consumption control system of the WiFi device of claim 7 wherein the second mode comprises a Fast PS mode, the frame signal to notify the WiFi device to enter an Active state comprises a PS-Active frame;
and/or the presence of a gas in the gas,
the frame signal for informing the WiFi device to enter the Sleep state comprises a PS-Sleep frame.
13. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the power consumption control method of the WiFi device of any of claims 1-6 when executing the computer program.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for power consumption control of a WiFi device as claimed in any one of claims 1-6.
CN201911319346.7A 2019-12-19 2019-12-19 Power consumption control method, system, device and medium for WiFi device Pending CN111163505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911319346.7A CN111163505A (en) 2019-12-19 2019-12-19 Power consumption control method, system, device and medium for WiFi device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911319346.7A CN111163505A (en) 2019-12-19 2019-12-19 Power consumption control method, system, device and medium for WiFi device

Publications (1)

Publication Number Publication Date
CN111163505A true CN111163505A (en) 2020-05-15

Family

ID=70557423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911319346.7A Pending CN111163505A (en) 2019-12-19 2019-12-19 Power consumption control method, system, device and medium for WiFi device

Country Status (1)

Country Link
CN (1) CN111163505A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835888A (en) * 2021-09-23 2021-12-24 深圳创维数字技术有限公司 Method for improving WiFi performance through CPU dynamic allocation, WiFi communication equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070238438A1 (en) * 2006-03-30 2007-10-11 Ayelet Alon Learning mechanism to configure power save parameters for automatic power save delivery
WO2016180132A1 (en) * 2015-08-03 2016-11-17 中兴通讯股份有限公司 Dormancy method and apparatus for wireless fidelity (wi-fi) device
US20170118707A1 (en) * 2015-10-21 2017-04-27 Qualcomm Incorporated Techniques for achieving optimal power and mean opinion scores for internet protocol multimedia subsystem-based dual connectivity calling

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070238438A1 (en) * 2006-03-30 2007-10-11 Ayelet Alon Learning mechanism to configure power save parameters for automatic power save delivery
WO2016180132A1 (en) * 2015-08-03 2016-11-17 中兴通讯股份有限公司 Dormancy method and apparatus for wireless fidelity (wi-fi) device
US20170118707A1 (en) * 2015-10-21 2017-04-27 Qualcomm Incorporated Techniques for achieving optimal power and mean opinion scores for internet protocol multimedia subsystem-based dual connectivity calling

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835888A (en) * 2021-09-23 2021-12-24 深圳创维数字技术有限公司 Method for improving WiFi performance through CPU dynamic allocation, WiFi communication equipment and storage medium
CN113835888B (en) * 2021-09-23 2023-09-08 深圳创维数字技术有限公司 Method for improving WiFi performance through CPU dynamic allocation, wiFi communication equipment and storage medium

Similar Documents

Publication Publication Date Title
JP5648670B2 (en) Wireless device for saving power and method for saving power of a wireless device
EP2733995B1 (en) Control method and device for awaking intelligent terminal
EP2154922B1 (en) Power saving method of portable internet device and portable internet device thereof, and instant messaging system using the same
KR101281354B1 (en) Universal serial bus (usb) remote wakeup
US8135346B2 (en) Method and system for a reduced USB polling rate to save power on a Bluetooth host
US20160112947A1 (en) Method and apparatus to improve wireless device performance
JP2005323369A (en) Method for maintaining wireless network response time while saving wireless adapter power
EP2984810B1 (en) Energy efficient data handling for mobile devices
WO2020237703A1 (en) Communication mode switching method and device, storage medium, processor, and system
CN104411003A (en) Dormancy wakeup control method and system of wireless communication equipment
KR20130000116A (en) System for saving energy through controlling of sleep mode and method for operating system
JP3338818B2 (en) Power management system for wireless LAN terminals
US8127159B1 (en) Power management in a wireless local area network
JP2017509272A (en) Fast sleep system and process
WO2022268068A1 (en) Wireless communication method and apparatus, electronic device, and readable storage medium
CN113840269B (en) Multimedia data transmission method and device, electronic equipment and storage medium
CN106060280B (en) Data service management method, device and terminal
CN111163505A (en) Power consumption control method, system, device and medium for WiFi device
CN103686956A (en) Mobile terminal and data network communication method and data network request proxy device
JP2011259281A (en) Background transfer system and program by mobile phone
KR20190129219A (en) Method And Apparatus for Providing Power Saving Optimization
CN108337720B (en) WLAN equipment power saving mode implementation method and device
CN115529654A (en) Method, apparatus, storage medium, and relay device for standby communication
CN104954148A (en) Control method and device of node equipment and router
CN107306440B (en) Internet of things data transmission method and Internet of things terminal

Legal Events

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

Application publication date: 20200515