CN117336834A - Method and device for determining power consumption mode, electronic equipment and medium - Google Patents

Method and device for determining power consumption mode, electronic equipment and medium Download PDF

Info

Publication number
CN117336834A
CN117336834A CN202311317991.1A CN202311317991A CN117336834A CN 117336834 A CN117336834 A CN 117336834A CN 202311317991 A CN202311317991 A CN 202311317991A CN 117336834 A CN117336834 A CN 117336834A
Authority
CN
China
Prior art keywords
power consumption
consumption mode
wireless communication
parameter
mode
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
CN202311317991.1A
Other languages
Chinese (zh)
Inventor
陈文�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Espressif Systems Shanghai Co Ltd
Original Assignee
Espressif Systems 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 Espressif Systems Shanghai Co Ltd filed Critical Espressif Systems Shanghai Co Ltd
Priority to CN202311317991.1A priority Critical patent/CN117336834A/en
Publication of CN117336834A publication Critical patent/CN117336834A/en
Pending legal-status Critical Current

Links

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/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a device, electronic equipment and a medium for determining a power consumption mode, wherein the method comprises the following steps: acquiring data interaction parameters of wireless communication equipment, wherein the data interaction parameters comprise time parameters of data interaction of the wireless communication equipment; controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a preset parameter threshold, wherein the target power consumption mode is one of a first power consumption mode, a second power consumption mode and a third power consumption mode; and returning to the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment. The method can greatly reduce the overall power consumption of the wireless communication equipment on the basis of flexibly adjusting the power consumption mode of the wireless communication equipment.

Description

Method and device for determining power consumption mode, electronic equipment and medium
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a method and apparatus for determining a power consumption mode, an electronic device, and a medium.
Background
At present, some intelligent hardware products, such as wireless communication equipment, are mainly powered by lithium batteries, and considering the problems of the size, the weight and the like of the equipment, the lithium battery capacity of the wireless communication equipment is limited to a certain extent, so that the power consumption of the wireless communication equipment is particularly important.
In order to reduce the power consumption of the wireless communication device, the prior art starts a conventional power saving mode after the wireless communication device accesses to the network, and in the conventional power saving mode, the wireless communication device mainly depends on DTIM (Delivery Traffic Indication Message) intervals sent by a wireless Access Point (AP) to sleep, but the overall power consumption of the method is still higher in use, and the power consumption mode of the wireless communication device cannot be flexibly adjusted.
Disclosure of Invention
The invention provides a method, a device, electronic equipment and a medium for determining a power consumption mode, which are used for greatly reducing the overall power consumption of wireless communication equipment on the basis of flexibly adjusting the power consumption mode of the wireless communication equipment.
According to an aspect of the present invention, there is provided a method for determining a power consumption mode, including:
acquiring data interaction parameters of wireless communication equipment, wherein the data interaction parameters comprise time parameters of data interaction of the wireless communication equipment;
Controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a preset parameter threshold, wherein the target power consumption mode is one of a first power consumption mode, a second power consumption mode and a third power consumption mode;
and returning to the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment.
According to another aspect of the present invention, there is provided a power consumption mode determining apparatus including:
the acquisition module is used for acquiring data interaction parameters of the wireless communication equipment, wherein the data interaction parameters comprise time parameters of data interaction of the wireless communication equipment;
the determining module is used for controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a preset parameter threshold value, wherein the target power consumption mode is one of a first power consumption mode, a second power consumption mode and a third power consumption mode;
and the return module is used for returning to execute the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of determining a power consumption mode according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the method for determining a power consumption mode according to any of the embodiments of the present invention when executed.
The embodiment of the invention provides a method, a device, electronic equipment and a medium for determining a power consumption mode, wherein the method comprises the following steps: acquiring data interaction parameters of wireless communication equipment, wherein the data interaction parameters comprise time parameters of data interaction of the wireless communication equipment; controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a preset parameter threshold, wherein the target power consumption mode is one of a first power consumption mode, a second power consumption mode and a third power consumption mode; and returning to the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment. By using the technical scheme, after the wireless communication equipment is controlled to work based on the target power consumption mode based on the acquired data interaction parameters and the preset parameter threshold, the step of acquiring the data interaction parameters of the wireless communication equipment is continuously executed according to the target endurance time and the target power consumption mode of the wireless communication equipment, so that the overall power consumption of the wireless communication equipment can be greatly reduced on the basis of flexibly adjusting the power consumption mode of the wireless communication equipment.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for determining a power consumption mode according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for determining a power consumption mode according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of another method for determining a power consumption mode according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of determining a current first mode parameter according to a second embodiment of the present invention;
FIG. 5 is a diagram of a TWT Action frame request according to a second embodiment of the present invention;
Fig. 6 is a schematic diagram of a TIM information element format according to a second embodiment of the present invention;
fig. 7 is a schematic diagram of data transceiving in a second power consumption mode according to a second embodiment of the present invention;
fig. 8 is a schematic structural diagram of a power consumption mode determining apparatus according to a third embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for determining a power consumption mode according to a first embodiment of the present invention, where the method may be performed by a power consumption mode determining device of a wireless communication device, where the power consumption mode determining device may be implemented in hardware and/or software, and where the power consumption mode determining device may be configured in an electronic device.
It can be considered that, at present, some intelligent hardware products are mostly in wireless products, and the wireless communication devices are mainly powered by lithium batteries, so that the wireless communication devices cannot make the capacity of the lithium batteries too large in consideration of the problems of the size, the weight and the like of the devices, and the power consumption of the wireless communication devices is particularly important under the condition that the battery capacity is fixed.
In the prior art, a wireless communication device starts a conventional Wi-Fi power saving mode after accessing a network, in the conventional Wi-Fi power saving mode, the wireless communication device mainly depends on a Beacon period sent by an Access Point (AP) to sleep, and the sleep period is generally specified by parameters of a conventional traffic indication map (Delivery Traffic Indication Message, DTIM) interval configured by the AP, so that the power consumption of the wireless communication device has a strong correlation with the AP, the overall power consumption is higher in use, and in the conventional Wi-Fi power saving mode, the power consumption of the wireless communication device cannot be flexibly adjusted because the sleep period of the Wi-Fi device is already determined. The method can be concretely as follows:
Firstly, the AP does not negotiate a wake-up time with each wireless access device, and when sending the buffered multicast frames, all the wireless access points will keep the wake-up state all the time, which causes unnecessary power consumption for the wireless access devices that do not receive the multicast frames or only receive part of the multicast frames, resulting in higher power consumption of the wireless communication devices.
Secondly, the configurable DTIM interval range of the AP is 1 to 255, the value represents an integral multiple of the Beacon frame interval time interval, the DTIM period is determined after the wireless communication device and the AP complete negotiation, the wireless communication device cannot be changed, the device is awakened in the DTIM period, and the power consumption of the device cannot be flexibly adjusted.
Based on the method, the invention provides a method for determining the power consumption mode, and aims at different use scenes, and the overall average power consumption of the wireless communication equipment in use is reduced by adjusting the power consumption mode under the condition of ensuring the data communication quality, and meanwhile, the flexibility of the equipment in use is considered. As shown in fig. 1, the method includes:
s110, acquiring data interaction parameters of the wireless communication equipment, wherein the data interaction parameters comprise time parameters of data interaction of the wireless communication equipment.
The wireless communication device may refer to a wireless-based device; the data interaction parameter may refer to a parameter of the wireless communication device performing data interaction, and the data interaction parameter may include a time parameter of the wireless communication device performing data interaction, or may include other parameters than the time parameter, such as a data size, etc. The specific content of the time parameter is not limited, for example, the shortest time interval for the wireless communication device to receive information sent by other devices, the shortest time interval for the wireless communication device to send information to other devices, and the other devices may be APs or other devices in the wireless network.
The embodiment can firstly acquire the data interaction parameters of the wireless communication device so as to determine the subsequent power consumption mode based on the acquired data interaction parameters. The manner in which the data interaction parameters are obtained is not further limited in this embodiment.
And S120, controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a preset parameter threshold, wherein the target power consumption mode is one of a first power consumption mode, a second power consumption mode and a third power consumption mode.
The preset parameter threshold may be a preset critical value, which is used to determine a target power consumption mode of the wireless communication device, and the specific number and size of the preset parameter threshold are not limited, and may be preset by a relevant person based on an experience value. The target power consumption mode may be understood as a power consumption mode in which the wireless communication device is to operate, and in this embodiment, the wireless communication device may correspond to three power consumption modes, for example, the target power consumption mode may be one of a first power consumption mode, a second power consumption mode, and a third power consumption mode, and specific contents of the first power consumption mode, the second power consumption mode, and the third power consumption mode are not limited, and may be configured by a related person according to experience.
Specifically, the embodiment may control the wireless communication device to operate based on the target power consumption mode based on the acquired data interaction parameter and the preset parameter threshold, and the specific control process is not limited, for example, the target power consumption mode may be determined by comparing the two sizes, and then the wireless communication device is controlled to operate based on the determined target power consumption mode, which is not further expanded in the embodiment, so long as the target power consumption mode can be determined.
And S130, returning to the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment.
The target endurance time may refer to an endurance time threshold that may be set by the wireless communication device, for ensuring a standby endurance capability of the wireless communication device. It should be noted that the wireless communication device may be provided with a target duration, or the target duration may not be set, and further, the target durations corresponding to different wireless communication devices may be different, which may be specifically set by related personnel.
After the wireless communication device is controlled to work based on the target power consumption mode through the steps, whether to adjust the power consumption mode of the wireless communication device can be judged according to the target duration and the target power consumption mode of the wireless communication device, and the steps can be executed in a circulating manner according to whether the wireless communication device has different target durations, further, the steps can be executed in a circulating manner based on the change of the data interaction parameters, for example, the step of acquiring the data interaction parameters of the wireless communication device is executed.
In one embodiment, the step of returning to execute the step of acquiring the data interaction parameters of the wireless communication device according to the target duration and the target power consumption mode of the wireless communication device includes:
if the wireless communication equipment has the target endurance time, determining the current average power consumption parameter of the wireless communication equipment;
and when the target power consumption mode is a first power consumption mode, determining a target first mode parameter of the first power consumption mode based on the current average power consumption parameter, controlling the wireless communication equipment to work based on the target first mode parameter, and returning to the step of acquiring the data interaction parameter of the wireless communication equipment.
The current average power consumption parameter may be considered an average power consumption of the current wireless communication device; the target first mode parameter may refer to a parameter that needs to be adjusted in the first power consumption mode, for example, in this embodiment, the first power consumption mode may be a low power consumption mode based on the TWT protocol, and the target first mode parameter may include a sleep time and/or a wake-up duration of the wireless communication device, where the sleep time may be a sleep time when no data is communicated in the low power consumption mode, and the wake-up duration may be a time when the wake-up state is continuously maintained in the low power consumption mode.
In one embodiment, if the wireless communication device has the target duration, which indicates that the wireless communication device has a requirement of the total duration, at this time, a current average power consumption parameter of the wireless communication device may be determined first, and then different steps are executed according to different target power consumption modes. That is, when the target power consumption mode is the first power consumption mode, the embodiment may adjust the mode parameter in the current mode according to the requirement of the total duration, and continuously redetermine the power consumption mode of the wireless communication device based on the change of the data interaction parameter. The specific manner of determining the current average power consumption parameter and the target first mode parameter is not limited in this embodiment, and the current average power consumption parameter may be, for example, calculated from the overall average power consumption of the last wireless communication device, the average power consumption in the last power consumption mode, and the corresponding working time. For example, in this embodiment, the current average power consumption parameter may be an average power consumption of the whole device after the wireless communication device completes the last power consumption mode, where the current average power consumption parameter Ps may be obtained by calculating according to an average power consumption Pj and a working time period Tj of the whole device and an average power consumption Pi and a working time period Ti in the last power consumption mode, that is, a calculation formula of the current average power consumption parameter Ps may be ps= (pi×ti+pj×tj)/(ti+tj), and in the power consumption mode, the working time period ts=ti+tj.
In one embodiment, if the wireless communication device does not have the target duration, which indicates that the wireless communication device does not have the requirement of the total duration, the step of acquiring the data interaction parameters of the wireless communication device may be directly performed in a return.
The first embodiment of the invention provides a method for determining a power consumption mode, which is used for acquiring data interaction parameters of wireless communication equipment, wherein the data interaction parameters comprise time parameters of the data interaction of the wireless communication equipment; controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a preset parameter threshold, wherein the target power consumption mode is one of a first power consumption mode, a second power consumption mode and a third power consumption mode; and returning to the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment. According to the method, after the wireless communication equipment is controlled to work based on the target power consumption mode based on the acquired data interaction parameters and the preset parameter threshold, the step of acquiring the data interaction parameters of the wireless communication equipment is carried out continuously according to the target endurance time and the target power consumption mode of the wireless communication equipment, and the whole power consumption of the wireless communication equipment can be greatly reduced on the basis of flexibly adjusting the power consumption mode of the wireless communication equipment.
In one embodiment, the determining the target first mode parameter of the first power consumption mode based on the current average power consumption parameter comprises:
calculating a target average power consumption parameter of the wireless communication device based on the current average power consumption parameter and the target endurance time;
and calculating the target first mode parameter of the first power consumption mode according to the target average power consumption parameter and the current first mode parameter of the first power consumption mode.
The target average power consumption parameter can be understood as the average power consumption required by the current wireless communication device if the target endurance time is required to be ensured; the current first mode parameter may then be considered a mode parameter of the current wireless communication device in the first power consumption mode.
Specifically, in this embodiment, the target average power consumption parameter of the wireless communication device may be determined based on the current average power consumption parameter and the target duration obtained in the above steps, for example, the target average power consumption parameter may be obtained by calculating each parameter, or the corresponding target average power consumption parameter may be obtained by inputting the calculated target average power consumption parameter into a preset model. In a specific implementation process, the target average power consumption parameter may be calculated by using the total duration T and the overall average power consumption P of the Wi-Fi device (i.e., the wireless communication device) and the average power consumption Ps and the working time Ts of the current Wi-Fi device, for example, the calculation formula may be pn= (p×t-ps×ts)/(T-Ts).
And then calculating the target first mode parameter of the first power consumption mode according to the obtained target average power consumption parameter and the current first mode parameter of the first power consumption mode.
For example, according to average power consumption p=voltage (V) ×current (I), where voltage V is stable, I is an average current of the period, so as to calculate average current I under the target average power consumption parameter, where average currents corresponding to sleep state and wake-up state of the Wi-Fi device are I1, I2, sleep time is T1, and wake-up time is T2, average current i1= (i1×t1+i2×t2)/(t1+t2) of the period, where i1=i, total duration of the Wi-Fi device (i.e., target duration) t=t1+t2, and T1 and T2, i.e., the target first mode parameter, can be obtained by solving two binary quadratic equations.
Example two
Fig. 2 is a flowchart of a method for determining a power consumption mode according to a second embodiment of the present invention, where the second embodiment is optimized based on the above embodiments. In this embodiment, the preset parameter threshold includes a first preset threshold and a second preset threshold, and controlling the wireless communication device to operate based on the target power consumption mode based on the data interaction parameter and the preset parameter threshold is further specified as: judging whether the data interaction parameter is larger than the first preset threshold value or not; if yes, controlling the wireless communication equipment to work based on a first power consumption mode, wherein the first power consumption mode is a low power consumption mode based on a TWT protocol; otherwise, controlling the wireless communication device to work based on the target power consumption mode based on the data interaction parameter and a second preset threshold value.
For details not yet described in detail in this embodiment, refer to embodiment one.
As shown in fig. 2, the method includes:
s210, acquiring data interaction parameters of the wireless communication equipment, wherein the data interaction parameters comprise time parameters of data interaction of the wireless communication equipment.
S220, judging whether the data interaction parameter is larger than the first preset threshold value, if so, executing S230; if not, S240 is performed.
The first preset threshold may be considered as the maximum configurable DTIM interval of the access point AP, for example, the first preset threshold may be 255, and the first preset threshold may be 255 Beacon intervals (Beacon interval), where the Beacon interval may be a Time interval for the AP to transmit two beacons, typically 100 TUs (Time Unit), 1 TU may be 1024 microseconds, and 100 TUs may be 102.4 milliseconds.
In this embodiment, the wireless communication device may be controlled to operate in what power consumption mode according to the size of the acquired data interaction parameter, for example, whether the data interaction parameter is greater than a first preset threshold may be determined, and the power consumption mode of the wireless communication device may be determined according to the determination result, so as to control the wireless communication device to operate in accordance with the determined power consumption mode.
If the data interaction parameter is smaller than or equal to the first preset threshold value, the current data interaction parameter is not larger than the maximum configurable DTIM interval of the AP, and if the time interval of the current wireless communication device for data interaction is not larger than the maximum threshold value, the target power consumption mode of the wireless communication device can be further determined based on the data interaction parameter and the second preset threshold value, so that the wireless communication device can be controlled to work according to the target power consumption mode.
And S230, controlling the wireless communication device to work based on a first power consumption mode, wherein the first power consumption mode is a low power consumption mode based on TWT protocol.
The specific control process is not limited, for example, the wireless communication device can be directly controlled to work according to a preset mode parameter corresponding to the first power consumption mode, the preset mode parameter can be a preset fixed parameter, and the specific numerical value can be determined by related personnel according to an empirical value. Or the wireless communication device can be controlled to work according to the actual situation of the current device.
In one embodiment, the controlling the wireless communication device to operate based on a first power consumption mode includes:
And acquiring current first mode parameters of the first power consumption mode, and controlling the wireless communication equipment to work based on the current first mode parameters, wherein the current first mode parameters are parameters determined by interaction between the wireless communication equipment and a wireless access point.
The current first mode parameter may be a parameter determined by the wireless communication device interacting with the wireless access point in the second power consumption mode, such as a parameter determined by flexible negotiation for both, including a sleep period and a wake-up duration in the first power consumption mode.
Specifically, the process of controlling the wireless communication device to operate based on the first power consumption mode may be, for example, acquiring a current first mode parameter of the first power consumption mode, and controlling the wireless communication device to operate based on the acquired current first mode parameter.
S240, controlling the wireless communication device to work based on a target power consumption mode based on the data interaction parameter and a second preset threshold value.
The second preset threshold may refer to a DTIM interval currently configured by the access point AP, for example, the second preset threshold may be smaller than the first preset threshold, and the specific value may be configured by an actual situation.
In this step, the target power consumption mode of the wireless communication device may be further determined based on the data interaction parameter and the second preset threshold, for example, whether the data interaction parameter is greater than the second preset threshold may be continuously determined, the target power consumption mode of the wireless communication device may be determined according to the obtained determination result, or the target power consumption mode of the wireless communication device may be determined by other manners.
In one embodiment, the controlling the wireless communication device to operate based on the target power consumption mode based on the data interaction parameter and a second preset threshold value includes:
judging whether the data interaction parameter is larger than the second preset threshold value or not;
if yes, controlling the wireless communication equipment to work based on a second power consumption mode, wherein the second power consumption mode is an energy-saving mode;
otherwise, the wireless communication device is controlled to work based on a third power consumption mode, wherein the third power consumption mode is an awakening activation mode.
In one embodiment, if the data interaction parameter is greater than the second preset threshold as a result of the determination, it is indicated that the current data interaction parameter has exceeded the DTIM interval currently configured by the AP, that is, the time interval for the current wireless communication device to perform data interaction is greater than the DTIM interval currently configured and less than the maximum threshold, and at this time, it may be determined that the power consumption mode of the wireless communication device is the second power consumption mode, that is, the wireless communication device is controlled to operate based on the power saving mode.
If the data interaction parameter is smaller than the second preset threshold value, the current data interaction parameter is not larger than the currently configured DTIM interval of the AP, if the time interval of the current wireless communication device for data interaction is smaller than the currently configured DTIM interval, namely, the data interaction between the AP and the wireless communication device is more frequent, the power consumption mode of the wireless communication device can be determined to be a third power consumption mode, namely, the wireless communication device is controlled to work based on the wake-up activation mode.
S250, returning to execute the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment.
According to the method for determining the power consumption mode, which is provided by the embodiment II of the invention, the data interaction parameters of the wireless communication equipment are obtained, wherein the data interaction parameters comprise the time parameters of the data interaction of the wireless communication equipment; judging whether the data interaction parameter is larger than the first preset threshold value or not; if yes, controlling the wireless communication equipment to work based on a first power consumption mode, wherein the first power consumption mode is a low power consumption mode based on a TWT protocol; otherwise, controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a second preset threshold value; and returning to the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment. By using the method, the target power consumption mode of the wireless communication equipment can be accurately determined by embodying the preset parameter threshold value into the first preset threshold value and the second preset threshold value and judging the sizes of the data interaction parameter and the first preset threshold value and the second preset threshold value, so that the flexible adjustment of the power consumption mode is realized.
In one embodiment, the controlling the wireless communication device to operate based on a second power consumption mode includes:
and determining a current second mode parameter of the second power consumption mode, and controlling the wireless communication equipment to work based on the current second mode parameter, wherein the current second mode parameter is a DTIM interval of a wireless access point.
The current second mode parameter may be a DTIM interval corresponding to the wireless access point side.
Specifically, the process of controlling the wireless communication device to operate based on the second power consumption mode may be, for example, determining a current second mode parameter of the second power consumption mode, and controlling the wireless communication device to operate based on the obtained current second mode parameter.
The following describes an exemplary method for determining a power consumption mode according to an embodiment of the present invention:
in this embodiment, the Wi-Fi device (i.e., the wireless communication device) may be connected to the router and may also communicate with the external device.
Fig. 3 is a schematic diagram of another method for determining a power consumption mode according to the second embodiment of the present invention, as shown in fig. 3, step S1 may be performed, and the operating state of the Wi-Fi device may be monitored. In this embodiment, after the Wi-Fi device is connected to the wireless Wi-Fi network of the AP, the working state of the Wi-Fi device may be acquired, where the working state of the Wi-Fi device may refer to an awake state in which the Wi-Fi device performs data reception and transmission, and an idle dormant state in the absence of data reception and transmission.
Step S2, the data interaction frequency and duration can be obtained. In this embodiment, the Wi-Fi device may acquire the shortest time interval and duration between every two pieces of information sent by the AP or other devices in the Wi-Fi network or the shortest time interval and duration between every two pieces of information sent by the current Wi-Fi device to the AP or other devices in the Wi-Fi network, where the data interaction frequency and duration may be both 0, that is, indicate that there is no transmission or reception of wireless data for a long period of time, and at this time, the Wi-Fi device may also customize a section of data interaction frequency and duration according to the current average power consumption situation.
In a specific embodiment, the Wi-Fi device also needs to acquire the Beacon packet sent by the AP to acquire the DTIM period of the current AP configuration.
Step S3 may determine whether to switch to the first power consumption mode. In this embodiment, it may be determined whether the duration of the data interaction interval exceeds a first threshold of the preset time, if yes, the Wi-Fi device switches to a first power consumption mode, that is, executes step S4, and in the first power consumption mode, the Wi-Fi device sends an Action frame message to the wireless access point AP to perform TWT negotiation, so as to determine a current first mode parameter.
Fig. 4 is a schematic diagram of determining a current first mode parameter according to a second embodiment of the present invention, and as shown in fig. 4, a specific process of TWT negotiation is shown, where a Wi-Fi device may send a TWT Action frame request to a wireless access point AP as an STA, and the AP may calculate the TWT parameter information by using parameter information such as a TWT wake interval fraction and a normalized shortest TWT wake time, and reply to one TWT Action, so as to determine a final current first mode parameter. After the negotiation is completed, the Wi-Fi equipment enters a dormant state, wakes up at a corresponding time point (namely, the current first mode parameter) according to the negotiated service period and the wake-up duration, and can send and receive data after waking up.
Fig. 5 is a schematic diagram of a TWT Action frame request provided according to a second embodiment of the present invention, where, as shown in fig. 5, a format of TWT parameter information of an Action frame is shown, a request type, a target wake-up time (such as a wake-up duration D1), a TWT group allocation, a service period T1 of a current Wi-Fi device, and so on may be included in the TWT Action frame request.
In addition, in the mode, the Wi-Fi equipment only performs data interaction within the wake-up duration, and is in a dormant state at other times, the Wi-Fi equipment can be dormant independently of a Beacon period of the access point AP, the dormant time ranges from milliseconds, seconds and hours to days, and the average power consumption of the Wi-Fi equipment is in an extremely low state under the condition that the Wi-Fi equipment is kept connected with the access point AP under the condition that the data interaction is not frequent.
Meanwhile, the Wi-Fi device can terminate the service period of the current TWT negotiation at any time in the wake-up state, adjust the TWT service period and the wake-up duration according to the current data transmission and reception conditions and the average power consumption requirement of the device, and referring to fig. 4, the Wi-Fi device can release the current TWT negotiation by transmitting TWT Teardown Action frames, and then perform new TWT negotiation by transmitting TWT Action request frames to configure a new service period T2 and a wake-up duration D2.
It should be noted that the average power consumption of the Wi-Fi device in the first power consumption mode depends only on the frequency of the current Wi-Fi device interacting with the AP data, and the Wi-Fi device can flexibly negotiate the sleep time and the wake-up duration with the AP so as to achieve the lowest power consumption.
And S5, judging whether to switch to the second power consumption mode or not if the duration of the data interaction interval does not exceed a first threshold value of the preset time. In this embodiment, when the duration of the data interaction interval does not exceed the first threshold of the preset time, comparison with the second threshold is required, and if the duration exceeds the second threshold of the preset time, the second power consumption mode is entered, and step S6 is executed. The second threshold may be a DTIM period configured by the current AP. If the second threshold value of the preset time is not exceeded, the second power consumption mode is entered, which means that the data transmission and reception between the AP and the STA are very frequent, and the STA needs to keep the awake state all the time to transmit and receive information in time, i.e. enter the third power consumption mode, and execute step S7.
Fig. 6 is a schematic diagram of a TIM information element format according to a second embodiment of the present invention, where, as shown in fig. 6, an IEEE 802.11Beacon frame TIM information element may include a transmission traffic indication map period (i.e., a DTIM period), and in a specific implementation process, a currently configured DTIM period may be obtained by obtaining DTIM field information in a Beacon message TIM information element sent by an AP, where the AP-configurable DTIM period may range from 1 to 255 Beacon intervals.
In step S6, in the second power consumption mode, after Wi-Fi is associated with the AP as the STA, the Wi-Fi is initially in an awake state, and can receive and transmit data. If there is no data transmission/reception in a period of time, the STA sends a Power Management (Power Management) bit 1 null data frame to the AP, closes the radio frequency, enters a sleep state, and after receiving the null data frame, the AP can learn that the STA is in the sleep state, and temporarily caches data to be sent to the STA.
In a specific implementation process, a TIM information element includes a traffic indicator count (DTIM count), fig. 7 is a schematic diagram of data transceiving in a second power consumption mode provided according to a second embodiment of the present invention, as shown in fig. 7, may be a data transceiving process of Wi-Fi conventional energy saving mode in the second power consumption mode, a DTIM period configured by an AP may be 3, an STA may be awakened to receive a Beacon frame when a DTIM count field is reduced to 0, after receiving the Beacon frame, the STA may determine whether an AP has a unicast packet buffered for the STA and whether a multicast packet is buffered according to the TIM information element in the Beacon frame, and if the AP does not have a packet buffer, the STA directly turns off a radio frequency and enters a sleep state; if the AP has packet buffer, the STA can close the radio frequency after receiving the message sent by the AP, and enter a dormant state. When the STA in the sleep state has data to send, the radio frequency may be turned on first, a null data frame with a Power Management (Power Management) bit of 0 is sent to the AP, and the AP enters the awake state, then the data is sent, and after the data is sent, a null data frame with a Power Management (Power Management) bit of 1 may be sent to the AP, and the radio frequency is turned off to enter the sleep state.
It should be noted that, the average Power consumption of the Wi-Fi device in the second Power consumption mode is strongly related to the AP, which is specifically shown as whether the DTIM configuration of the AP and the AP will send the buffered multicast frame periodically, the Wi-Fi device is awakened according to the DTIM period, and the AP is notified that the current Wi-Fi device is in the awakening or sleep state by the change of the Power Management (Power Management) bit in the transmitted null data frame, however, if the DTIM configuration is too large, the time delay of the communication between the Wi-Fi device and the AP will also increase, which will affect the real-time performance of the data communication; in general, the DTIM of the AP is not changed frequently, and the Wi-Fi device cannot adjust the power consumption under the condition that the Wi-Fi device does not communicate frequently with the AP, the AP can notify the Wi-Fi device through the TIM information element after information is cached, and in the power consumption mode, the Wi-Fi device can achieve lower power consumption on the basis of keeping certain flexibility with the AP.
Step S7, a third power consumption mode. In the power consumption mode, the real-time performance of data communication between the Wi-Fi equipment and the AP is highest, the Wi-Fi equipment is in an awake state, at the moment, the Wi-Fi equipment and the AP or the external equipment perform frequent data receiving and sending, and at the moment, the average power consumption of the Wi-Fi equipment is higher.
After controlling the wireless communication device to operate based on the target power consumption mode, the average power consumption of the Wi-Fi device may be estimated, and it may be determined whether the currently determined target power consumption mode needs to be adjusted, i.e. steps S8-S9 are performed.
And S8, evaluating the average power consumption of the Wi-Fi equipment. In this embodiment, the Wi-Fi device may obtain the average power consumption of the whole device after the current device has performed the last power consumption mode, where the average power consumption of the Wi-Fi device may be obtained by calculating according to the average power consumption Pj and the working time Tj of the whole device of the last time and the average power consumption Pi and the working time Ti in the last power consumption mode, and the average power consumption calculation formula of the current Wi-Fi device is as follows: ps= (pi×ti+pj×tj)/(ti+tj), and the operation period ts=ti+tj in this power consumption mode.
And S9, adjusting the average power consumption of the Wi-Fi equipment. In this embodiment, if the current Wi-Fi device has a requirement for a total duration, the device may renegotiate the sleep time and the wake-up duration of the Wi-Fi device after entering the first power consumption mode, so as to achieve the purpose of adjusting the overall average power consumption of the Wi-Fi device.
In a specific implementation process, new average power consumption Pn of the Wi-Fi equipment to be adjusted can be calculated through total duration T and overall average power consumption P of the Wi-Fi equipment and average power consumption Ps and working time Ts of the current Wi-Fi equipment, and a calculation formula is as follows: pn= (P x T-Ps x Ts)/(T-Ts); the sleep time and the wake-up duration of the Wi-Fi equipment in the first power consumption mode can be obtained through the calculated new average power consumption of the Wi-Fi equipment to be adjusted: firstly, according to average power consumption P=voltage (V) ×current (I), wherein the voltage V is stable, the I is the average current in the period, so as to calculate the average current I under the new average power consumption of the Wi-Fi equipment to be regulated, wherein the average currents corresponding to the sleep state and the wake-up state of the Wi-Fi equipment are I1, I2, the sleep time is T1, and the wake-up time is T2, and the average current I1= (I1T 1+ I2T 2)/(T1 + T2) in the period, wherein I1=I, and the total duration T=t1 + T2 of the Wi-Fi equipment; t1 and t2 are obtained by the two binary quadratic equations, and the sleep time and the wake-up duration of the Wi-Fi device are reconfigured according to the two parameters.
In addition, if the current Wi-Fi device does not have a continuous voyage total time requirement, the Wi-Fi device can continue to monitor the current device state, and if data interaction exists, a corresponding power consumption mode is selected to work according to the interval of the data interaction and the total time of the data interaction.
The average power consumption of the Wi-Fi device in the power consumption mode in the corresponding power consumption mode may be specifically as follows:
in the first power consumption mode, the wake-up duration and the sleep period of the device are already determined, in addition, the current when the Wi-Fi device sends, receives and sleeps is also known, the average power consumption p1=voltage (V) ×current (I1) of the period of time in the first power consumption mode, the voltage V is stable, the current I1 can be the average current of the period of time, the current of the Wi-Fi device in different states is different, the working state of the Wi-Fi device comprises a sleep state and a wake-up state, the average current corresponding to the two states is I1 and I2, the average current of the period of time i1= (I1×t1+i2×t2)/T1, wherein the sum of T1 and T2 is T1, I1 is far smaller than I2, the larger T1 is smaller, and the average power consumption is lower as the corresponding average current I1 is smaller.
In the second power consumption mode, in the case of the DTIM interval determination set by the access point AP, the device wake-up period is predictable, and the average current I2 during this DTIM period is also predictable, and the average power consumption p2=voltage (V) ×current (I2) of the second power consumption during this period is generally the smaller the larger the DTIM, the lower the average current I2, and the lower the average power consumption.
In a third power consumption mode, the Wi-Fi device is in an awake state for data reception and transmission, an average current at which an average current operates is predictable, and an average power consumption p3=voltage (V) ×current (I3) of the third power consumption for this period of time.
The Wi-Fi power consumption requirement mainly means that when the total energy E of the current Wi-Fi device is fixed, if the required duration total time T or longer is to be reached, the total average power P=total energy (E)/total time (T) of the Wi-Fi device, and the average power of the Wi-Fi device in the current working state is required to be smaller than or equal to the theoretical average power P.
The Wi-Fi device adjusting parameters of TWT (Target Wake Time) to further adjust device power consumption means that the Wi-Fi device and the access point AP can flexibly negotiate a sleep period and a Wake duration of the Wi-Fi device based on a TWT protocol after being connected, the sleep period and the Wake duration of each TWT can be changed, and average power consumption can be correspondingly changed in different sleep periods and Wake durations.
According to the method for determining the power consumption mode, which is provided by the embodiment of the invention, the working state of Wi-Fi equipment in the intelligent equipment can be monitored, the Wi-Fi equipment is switched to the corresponding power consumption mode by comparing the data interaction interval and the corresponding preset time threshold value in different scenes aiming at different wireless data communication scenes of the Wi-Fi equipment, and therefore, the overall power consumption of the Wi-Fi equipment is optimized by adjusting the power consumption mode of the Wi-Fi equipment under the condition of considering the data communication quality.
Aiming at the requirement of Wi-Fi equipment power consumption, the overall average power consumption of the current Wi-Fi equipment can be estimated, and the sleep time and the wake-up duration of the Wi-Fi equipment are renegotiated after the Wi-Fi equipment is switched to a first power consumption mode, so that the overall power consumption of the Wi-Fi equipment can be flexibly adjusted.
Therefore, compared with the prior art, the embodiment of the invention can achieve optimal power consumption of Wi-Fi equipment aiming at different wireless data communication scenes, and can flexibly adjust the power consumption of the Wi-Fi equipment according to the power consumption requirement, so that the cruising ability of the intelligent Wi-Fi equipment powered by a battery is improved, and the user experience is improved.
Example III
Fig. 8 is a schematic structural diagram of a power consumption mode determining apparatus according to a third embodiment of the present invention, as shown in fig. 8, the apparatus includes:
an obtaining module 310, configured to obtain data interaction parameters of a wireless communication device, where the data interaction parameters include a time parameter of data interaction performed by the wireless communication device;
a determining module 320, configured to control the wireless communication device to operate based on a target power consumption mode based on the data interaction parameter and a preset parameter threshold, where the target power consumption mode is one of a first power consumption mode, a second power consumption mode, and a third power consumption mode;
And the returning module 330 is configured to return to executing the step of acquiring the data interaction parameters of the wireless communication device according to the target endurance and the target power consumption mode of the wireless communication device.
According to the determining device for the power consumption mode, which is provided by the embodiment of the invention, the data interaction parameters of the wireless communication equipment are obtained through the obtaining module, wherein the data interaction parameters comprise the time parameters of the data interaction of the wireless communication equipment; controlling the wireless communication equipment to work based on a target power consumption mode by a determining module based on the data interaction parameter and a preset parameter threshold, wherein the target power consumption mode is one of a first power consumption mode, a second power consumption mode and a third power consumption mode; and returning to execute the step of acquiring the data interaction parameters of the wireless communication equipment through a return module according to the target endurance time and the target power consumption mode of the wireless communication equipment. By using the device, after the wireless communication equipment is controlled to work based on the target power consumption mode based on the acquired data interaction parameters and the preset parameter threshold, the step of acquiring the data interaction parameters of the wireless communication equipment is continuously executed according to the target endurance time and the target power consumption mode of the wireless communication equipment, so that the overall power consumption of the wireless communication equipment can be greatly reduced on the basis of flexibly adjusting the power consumption mode of the wireless communication equipment.
Optionally, the preset parameter threshold includes a first preset threshold and a second preset threshold, and the determining module 320 includes:
the judging unit is used for judging whether the data interaction parameter is larger than the first preset threshold value or not;
the first control unit is used for controlling the wireless communication equipment to work based on a first power consumption mode if the data interaction parameter is larger than the first preset threshold value, wherein the first power consumption mode is a low power consumption mode based on a TWT protocol;
and the second control unit is used for controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a second preset threshold value if the data interaction parameter is not larger than the first preset threshold value.
Optionally, the first control unit is specifically configured to:
and acquiring current first mode parameters of the first power consumption mode, and controlling the wireless communication equipment to work based on the current first mode parameters, wherein the current first mode parameters are parameters determined by interaction between the wireless communication equipment and a wireless access point.
Optionally, the second control unit includes:
the judging subunit is used for judging whether the data interaction parameter is larger than the second preset threshold value or not;
The first control subunit is used for controlling the wireless communication equipment to work based on a second power consumption mode if the data interaction parameter is larger than the second preset threshold value, wherein the second power consumption mode is an energy-saving mode;
and the second control subunit is used for controlling the wireless communication equipment to work based on a third power consumption mode if the data interaction parameter is not greater than the second preset threshold value, wherein the third power consumption mode is a wake-up activation mode.
Optionally, the first control subunit is specifically configured to:
and determining a current second mode parameter of the second power consumption mode, and controlling the wireless communication equipment to work based on the current second mode parameter, wherein the current second mode parameter is a DTIM interval of a wireless access point.
Optionally, the return module 330 includes:
a first determining unit, configured to determine a current average power consumption parameter of the wireless communication device if the wireless communication device has a target endurance time;
and the second determining unit is used for determining a target first mode parameter of the first power consumption mode based on the current average power consumption parameter when the target power consumption mode is the first power consumption mode, controlling the wireless communication equipment to work based on the target first mode parameter, and returning to the step of acquiring the data interaction parameter of the wireless communication equipment.
Optionally, the second determining unit is specifically configured to:
calculating a target average power consumption parameter of the wireless communication device based on the current average power consumption parameter and the target endurance time;
and calculating the target first mode parameter of the first power consumption mode according to the target average power consumption parameter and the current first mode parameter of the first power consumption mode.
The power consumption mode determining device provided by the embodiment of the invention can execute the power consumption mode determining method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
Fig. 9 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 9, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, for example, the power consumption mode determination method.
In some embodiments, the method of determining the power consumption mode may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the above-described method of determining a power consumption pattern may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of determining the power consumption mode in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for determining a power consumption mode, comprising:
acquiring data interaction parameters of wireless communication equipment, wherein the data interaction parameters comprise time parameters of data interaction of the wireless communication equipment;
controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a preset parameter threshold, wherein the target power consumption mode is one of a first power consumption mode, a second power consumption mode and a third power consumption mode;
And returning to the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment.
2. The method of claim 1, wherein the preset parameter thresholds comprise a first preset threshold and a second preset threshold, wherein the controlling the wireless communication device to operate based on the target power consumption mode based on the data interaction parameter and the preset parameter threshold comprises:
judging whether the data interaction parameter is larger than the first preset threshold value or not;
if yes, controlling the wireless communication equipment to work based on a first power consumption mode, wherein the first power consumption mode is a low power consumption mode based on a TWT protocol;
otherwise, controlling the wireless communication device to work based on the target power consumption mode based on the data interaction parameter and a second preset threshold value.
3. The method of claim 2, wherein the controlling the wireless communication device to operate based on the first power consumption mode comprises:
and acquiring current first mode parameters of the first power consumption mode, and controlling the wireless communication equipment to work based on the current first mode parameters, wherein the current first mode parameters are parameters determined by interaction between the wireless communication equipment and a wireless access point.
4. The method of claim 2, wherein controlling the wireless communication device to operate based on a target power consumption mode based on the data interaction parameter and a second preset threshold comprises:
judging whether the data interaction parameter is larger than the second preset threshold value or not;
if yes, controlling the wireless communication equipment to work based on a second power consumption mode, wherein the second power consumption mode is an energy-saving mode;
otherwise, the wireless communication device is controlled to work based on a third power consumption mode, wherein the third power consumption mode is an awakening activation mode.
5. The method of claim 4, wherein the controlling the wireless communication device to operate based on the second power consumption mode comprises:
and determining a current second mode parameter of the second power consumption mode, and controlling the wireless communication equipment to work based on the current second mode parameter, wherein the current second mode parameter is a DTIM interval of a wireless access point.
6. The method of claim 1, wherein the step of returning to perform the step of obtaining the data interaction parameters of the wireless communication device according to the target endurance and the target power consumption mode of the wireless communication device comprises:
If the wireless communication equipment has the target endurance time, determining the current average power consumption parameter of the wireless communication equipment;
and when the target power consumption mode is a first power consumption mode, determining a target first mode parameter of the first power consumption mode based on the current average power consumption parameter, controlling the wireless communication equipment to work based on the target first mode parameter, and returning to the step of acquiring the data interaction parameter of the wireless communication equipment.
7. The method of claim 6, wherein the determining the target first mode parameter for the first power consumption mode based on the current average power consumption parameter comprises:
calculating a target average power consumption parameter of the wireless communication device based on the current average power consumption parameter and the target endurance time;
and calculating the target first mode parameter of the first power consumption mode according to the target average power consumption parameter and the current first mode parameter of the first power consumption mode.
8. A power consumption mode determining apparatus, comprising:
the acquisition module is used for acquiring data interaction parameters of the wireless communication equipment, wherein the data interaction parameters comprise time parameters of data interaction of the wireless communication equipment;
The determining module is used for controlling the wireless communication equipment to work based on a target power consumption mode based on the data interaction parameter and a preset parameter threshold value, wherein the target power consumption mode is one of a first power consumption mode, a second power consumption mode and a third power consumption mode;
and the return module is used for returning to execute the step of acquiring the data interaction parameters of the wireless communication equipment according to the target endurance time and the target power consumption mode of the wireless communication equipment.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of determining a power consumption mode according to any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the method of determining a power consumption mode according to any one of claims 1-7.
CN202311317991.1A 2023-10-11 2023-10-11 Method and device for determining power consumption mode, electronic equipment and medium Pending CN117336834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311317991.1A CN117336834A (en) 2023-10-11 2023-10-11 Method and device for determining power consumption mode, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311317991.1A CN117336834A (en) 2023-10-11 2023-10-11 Method and device for determining power consumption mode, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN117336834A true CN117336834A (en) 2024-01-02

Family

ID=89276914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311317991.1A Pending CN117336834A (en) 2023-10-11 2023-10-11 Method and device for determining power consumption mode, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN117336834A (en)

Similar Documents

Publication Publication Date Title
EP2262327B1 (en) Method and apparatus for managing power of wlan module in portable terminal
RU2313123C2 (en) Method and system for controlling power consumption of network interface module in a wireless computing device
TWI474734B (en) Power management method for a wireless communication device and wireless communication device
EP2876944A1 (en) Network card device, routing device, system and method for realizing dynamic sleep and wakeup
TWI730424B (en) Terminal state conversion method, network equipment, terminal and computer readable storage medium
CN103532684B (en) 3GPP (the 3rd generation partnership project)-based MTC (machine type communication) terminal energy-saving method through self-adaptive mixed DRX (discontinuous reception) mechanism
US9069601B2 (en) Method and apparatus for controlling task execution
US20140281623A1 (en) Wireless device including system-on-a-chip having low power consumption
WO2016180132A1 (en) Dormancy method and apparatus for wireless fidelity (wi-fi) device
US9954787B2 (en) Intelligent terminal power-saving management method and apparatus
CN104754704A (en) Method for controlling terminal to hibernate and terminal
CN115209513A (en) Apparatus and method for mobile access point station
CN110896558A (en) Working mode switching method, terminal and network equipment
TWI674018B (en) Method and apparatus for providing power saving optimization for wlan ap
CN106598193B (en) Power consumption control method and device
JP6021445B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD
CN107005935B (en) Network energy efficiency optimization method and device
CN110928586B (en) APP background keep-alive method and device
CN117336834A (en) Method and device for determining power consumption mode, electronic equipment and medium
CN109600764B (en) Awakening and sleeping control method and system
CN113011009B (en) Parameter optimization method and device based on MoreData mechanism and storage medium
Wu et al. Adaptive DRX method for MTC device energy saving by using a machine learning algorithm in an MEC framework
WO2019024173A1 (en) Batch management method for saving power of internet of things terminal devices, and relay device
CN108430098B (en) Wireless communication terminal and power saving method thereof
CN105515789A (en) Power saving method for weight length interval

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