A method and device for adjusting the length of a wake-up window
By dynamically adjusting the wake-up window length based on beacon frame reception ratios, the method addresses unnecessary power consumption in STAs due to fixed long windows, ensuring efficient frame reception and reduced power usage.
Patent Information
- Application Number
- CN202211201334.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-09-29
AI Technical Summary
In wireless local area networks, due to uncertainty such as data frames and beacon frame collisions and channel preemption, there is a deviation in the timing of the STA receiving beacon frames. The prior art adopts a fixed long wake-up window, causing some STAs to increase unnecessary power consumption.
By periodically dynamically adjusting the wake-up window length of each STA, the proportional value is determined based on the actual value of the received beacon frame and the preset reference value, the current wake-up window is adjusted to meet the reception needs of the beacon frame, and ensuring that the STA receives more beacon frames at low power consumption levels.
It realizes dynamic adjustment of the wake-up window length within each detection cycle, reducing unnecessary power consumption of STA, and ensuring the reception rate of beacon frames and saving processing costs.
Smart Images

Figure CN115623568B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technologies, and in particular, to a method and apparatus for adjusting the length of a wake-up window. Background Art
[0002] In a Wireless Local Area Network (WLAN), after a STA completes a task, it will enter a sleep state. If a wireless AP sends a data packet to the STA when the STA is in the sleep state, it is difficult for the STA to receive it. Therefore, in order to ensure the normal transmission of service data between the STA and the wireless AP, it is necessary to periodically wake up the STA to receive the beacon frames sent by the wireless AP. The STA can actively obtain the data packets missed due to being in the sleep state from the wireless AP based on the identifiers of the data packets carried in the beacon frames.
[0003] Currently, due to many uncertain situations such as data frame and beacon frame conflicts and channel preemption that may occur in the WLAN, the beacon frames sent by the wireless AP do not arrive at the STA strictly according to the pre-configured sending period, resulting in a deviation in the timing of the STA receiving the beacon frames. The current countermeasure is to usually configure a fixed long wake-up window based on the automatic triggering of waking up the STA by the sleep timer of each STA, in order to expect to receive more beacon frames as much as possible within the window length.
[0004] However, for some STAs, there are few data frame and beacon frame conflicts and channel preemption situations, or the deviation in the timing of the STA receiving the beacon frames is very small or even negligible. If a fixed long wake-up window is uniformly configured for the STA, it will cause unnecessary power consumption for some STAs due to the long wake-up window. Summary of the Invention
[0005] In view of this, the present application provides a method and apparatus for adjusting the length of a wake-up window, so as to dynamically adjust the length of the wake-up window adapted to each STA periodically, while receiving as many beacon frames as possible, keeping the STA at a low power level, and thus effectively saving the processing cost on each STA.
[0006] The present application mainly provides the following technical solutions:
[0007] A first aspect of the present application provides a method for adjusting the length of a wake-up window, the method including:
[0008] Determining a ratio value according to the actual value and the preset reference value of receiving beacon frames in a first detection period;
[0009] Adjust the current wake-up window based on the length of the current wake-up window and the ratio value to obtain a target wake-up window;
[0010] Receive beacon frames according to the target wake-up window.
[0011] In some alternative embodiments of the first aspect of the present application, before determining the ratio value according to the actual value of the received beacon frames in the first detection period and the preset reference value, the method further includes:
[0012] Determine the period duration of the transmission period corresponding to the beacon frames sent by the wireless AP;
[0013] Configure the period duration of the sleep wake-up period of the STA by multiplying the period duration by a preset integer multiple;
[0014] Configure the preset reference value for receiving beacon frames in each preset detection period by dividing the period duration of the preset detection period by the period duration of the sleep wake-up period, where the preset detection period includes at least the first detection period and the adjacent second detection period;
[0015] In some alternative embodiments of the first aspect of the present application, the method further includes:
[0016] Determine each detection moment corresponding to the preset detection period according to the period duration of the preset detection period;
[0017] Configure a storage area for recording the cumulative number of received beacon frames at each detection moment.
[0018] In some alternative embodiments of the first aspect of the present application, determining the ratio value according to the actual value of the received beacon frames in the first detection period and the preset reference value includes:
[0019] Obtain a first cumulative value corresponding to the received beacon frames recorded at the current detection moment and a second cumulative value corresponding to the received beacon frames recorded at the adjacent previous detection moment from the storage area;
[0020] Perform a subtraction operation on the second cumulative value and the first cumulative value to obtain the actual value of the received beacon frames in the first detection period;
[0021] Obtain the ratio value by dividing the actual value by the preset reference value.
[0022] In some alternative embodiments of the first aspect of the present application, adjusting the current wake-up window based on the length of the current wake-up window and the ratio value to obtain a target wake-up window includes:
[0023] Determine whether the ratio value reaches a preset ratio value;
[0024] If so, according to the first preset constraint rule corresponding to the current wake-up window, reduce the length of the current wake-up window to obtain a target wake-up window;
[0025] If not, according to the second preset constraint rule corresponding to the current wake-up window, increase the length of the current wake-up window to obtain a target wake-up window.
[0026] In some modified implementation manners of the first aspect of the present application, the reducing the length of the current wake-up window according to the first preset constraint rule corresponding to the current wake-up window to obtain a target wake-up window includes:
[0027] Parse a first mapping relationship between a preset window length interval and a preset reduction length from the first preset constraint rule;
[0028] Based on the first mapping relationship, determine a target reduction length corresponding to the length of the current wake-up window;
[0029] According to the target reduction length, adjust the length of the current wake-up window to obtain a target wake-up window.
[0030] In some modified implementation manners of the first aspect of the present application, the increasing the length of the current wake-up window according to the second preset constraint rule corresponding to the current wake-up window to obtain a target wake-up window includes:
[0031] Parse a second mapping relationship between a preset window length interval and a preset increase length from the first preset constraint rule;
[0032] Based on the second mapping relationship, determine a target increase length corresponding to the length of the current wake-up window;
[0033] According to the target increase length, adjust the length of the current wake-up window to obtain an adjusted window length;
[0034] Determine whether the adjusted window length reaches a preset window length upper limit value;
[0035] If so, determine a target wake-up window according to the preset window length upper limit value;
[0036] If not, determine a target wake-up window according to the adjusted window length.
[0037] The second aspect of the present application provides a device for adjusting the length of a wake-up window, and the device includes:
[0038] A first determination unit, configured to determine a proportional value according to an actual value of a beacon frame received in a first detection period and a preset reference value;
[0039] An adjustment unit, configured to adjust the current wake-up window based on the length of the current wake-up window and the ratio value to obtain a target wake-up window;
[0040] A receiving unit, configured to receive beacon frames according to the target wake-up window.
[0041] In some alternative embodiments of the second aspect of the present application, before determining the ratio value according to the actual value of the received beacon frames in the first detection period and the preset reference value, the apparatus further includes:
[0042] A second determination unit, configured to determine the period duration of the transmission period corresponding to the beacon frames transmitted by the wireless AP;
[0043] A first configuration unit, configured to configure the period duration of the sleep wake-up period of the STA by multiplying the period duration by a preset integer multiple;
[0044] The first configuration unit is further configured to configure the preset reference value of the received beacon frames in each of the preset detection periods by dividing the period duration of the preset detection period by the period duration of the sleep wake-up period, where the preset detection period includes at least the first detection period and the adjacent second detection period;
[0045] In some alternative embodiments of the second aspect of the present application, the apparatus further includes:
[0046] A third determination unit, configured to determine each detection moment corresponding to the preset detection period according to the period duration of the preset detection period;
[0047] A second configuration unit, configured to configure a storage area for recording the cumulative number of received beacon frames at each detection moment.
[0048] In some alternative embodiments of the second aspect of the present application, the first determination unit includes:
[0049] An acquisition module, configured to acquire a first cumulative value corresponding to the received beacon frames recorded at the current detection moment and a second cumulative value corresponding to the received beacon frames recorded at the adjacent previous detection moment from the storage area;
[0050] A calculation module, configured to perform a subtraction operation on the second cumulative value and the first cumulative value to obtain the actual value of the received beacon frames in the first detection period;
[0051] The calculation module is further configured to obtain a ratio value according to the actual value divided by the preset reference value.
[0052] In some alternative embodiments of the second aspect of the present application, the adjustment unit includes:
[0053] A judgment module, configured to judge whether the ratio value reaches a preset ratio value;
[0054] A reduction module, configured to, when it is judged that the ratio value reaches the preset ratio value, reduce the length of the current wake-up window according to a first preset constraint rule corresponding to the current wake-up window, so as to obtain a target wake-up window;
[0055] An increase module, configured to, when it is judged that the ratio value does not reach the preset ratio value, increase the length of the current wake-up window according to a second preset constraint rule corresponding to the current wake-up window, so as to obtain a target wake-up window.
[0056] In some modified implementation manners of the second aspect of the present application, the reduction module is further specifically configured to include:
[0057] Parse a first mapping relationship between a preset window length interval and a preset reduction length from the first preset constraint rule;
[0058] Based on the first mapping relationship, determine a target reduction length corresponding to the length of the current wake-up window;
[0059] Adjust the length of the current wake-up window according to the target reduction length, so as to obtain a target wake-up window.
[0060] In some modified implementation manners of the second aspect of the present application, the increase module is further specifically configured to:
[0061] Parse a second mapping relationship between a preset window length interval and a preset increase length from the first preset constraint rule;
[0062] Based on the second mapping relationship, determine a target increase length corresponding to the length of the current wake-up window;
[0063] Adjust the length of the current wake-up window according to the target increase length, so as to obtain an adjusted window length;
[0064] Judge whether the adjusted window length reaches a preset window length upper limit value;
[0065] If so, determine a target wake-up window according to the preset window length upper limit value;
[0066] If not, determine a target wake-up window according to the adjusted window length.
[0067] The third aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for adjusting the length of a wake-up window as described above is implemented.
[0068] A fourth aspect of the present application provides an electronic device, which may be a chip or a chip system. The electronic device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for adjusting the wake-up window length as described above is implemented.
[0069] By means of the above technical solution, the technical solution provided by the present application has at least the following advantages:
[0070] The present application provides a method and device for adjusting the wake-up window length. The present application first sets a plurality of detection periods, which at least include a first detection period and an adjacent second detection period. Then, based on the actual value of the beacon frame received within the first detection period and a preset reference value, a proportional value is determined. Furthermore, based on the length of the current wake-up window and this proportional value, the current wake-up window is adjusted to obtain a target wake-up window. Thus, based on this target wake-up window, the beacon frame is received within the second detection period. Therefore, the present application realizes dynamically adjusting the wake-up window length adapted to each STA based on each detection period. Compared with the prior art, the technical problem that some STAs (such as STAs with better beacon frame reception) increase unnecessary power consumption due to using a fixed long wake-up window for each STA is solved. The technical solution of periodically and dynamically adjusting the wake-up window length provided by the present application can configure a wake-up window with an appropriate length for each STA, so that each STA can receive more beacon frames as much as possible while still being at a low power consumption level, thereby effectively saving the processing cost on each STA.
[0071] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features, and advantages of the present application more obvious and understandable, the specific embodiments of the present application are specifically exemplified below. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is a schematic diagram of the wireless local area network system structure exemplified in the embodiment of the present application;
[0073] Figure 2 It is a flowchart of a method for adjusting the wake-up window length provided by the embodiment of the present application;
[0074] Figure 3 It is a flowchart of another method for adjusting the wake-up window length provided by the embodiment of the present application;
[0075] Figure 4 It is a block diagram of the composition of a device for adjusting the wake-up window length provided by the embodiment of the present application;
[0076] Figure 5It is a block diagram of another device for adjusting the wake-up window length provided by the embodiments of the present application. Detailed implementation manners
[0077] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. The method provided by the embodiments of the present application can be applied to a Wireless Local Area Network (WLAN) system. As Figure 1 shown, the WLAN system may include a Station (STA) 101 and an Access Point (AP) 102. Optionally, the WLAN system may further include a Wireless Medium (WM) and a Distributed System (DS). Among them, the STA 101 is generally a client in the WLAN, and it may be, but is not limited to, a computer equipped with a WiFi function, a smart phone, etc.; the wireless AP 102 is a wireless switch for a wireless network, and it is an access point for the client to access the wired network. In the WLAN system, compared with the STA 101 as a client, the wireless AP 102 is usually used to represent the access device side, such as the terminals corresponding to devices such as wireless routers (including wireless gateways, wireless bridges).
[0078] The embodiments of the present application provide a method for adjusting the wake-up window length based on the WLAN system. The execution subject of this method is the station STA. As Figure 2 shown, the embodiments of the present application provide the following specific steps:
[0079] 201. Determine a proportional value according to the actual value of the beacon frame received in the first detection period and a preset reference value.
[0080] In the process of the station STA receiving the beacon frame sent by the wireless AP, the embodiments of the present application also set a detection period, so as to adjust the wake-up window length with one detection period as the time unit. The detection period includes at least a first detection period and an adjacent second detection period.
[0081] The preset reference value is set according to the number of beacon frames that can be received in a theoretical detection period.
[0082] Among them, the function of the STA wake-up window provided by the embodiments of this application is as follows: The wireless AP has its own transmission cycle for sending beacon frames to the STA. After each STA completes its task, it will enter the sleep state. However, before receiving other tasks, it is not always in the sleep state, but has its own sleep-wake cycle. To prevent the STA from quickly entering the sleep state after waking up and missing some beacon frames, the embodiments of this application use the time length of a wake-up window to control the STA to stay awake to receive as many beacon frames as possible.
[0083] However, due to various uncertain situations such as data frame and beacon frame conflicts and channel preemption that may occur in the WLAN, the beacon frames sent by the wireless AP do not reach the STA strictly according to the pre-configured transmission cycle, resulting in a deviation in the timing of the STA receiving the beacon frames. Therefore, there will be a certain deviation between the actual value of the STA receiving the beacon frames and the theoretically preset reference value within a detection cycle.
[0084] The embodiments of this application determine a ratio value based on this actual value and the preset reference value to further judge the magnitude of the deviation between the two.
[0085] 202. Based on the length of the current wake-up window and the ratio value, adjust the current wake-up window to obtain a target wake-up window.
[0086] The embodiments of this application determine the ratio value according to the actual value and the preset reference value of receiving beacon frames within the detection cycle to further determine the deviation between the actual value and the theoretical value of receiving beacon frames. For example, the larger the ratio value, the smaller the deviation between the two, and vice versa.
[0087] Furthermore, if the deviation is smaller, it indicates that the number of beacon frames received using the current wake-up window is sufficient to support the normal transmission of service data between the subsequent STA and the wireless AP. It should be further considered whether the window length can be reduced to save power on the STA.
[0088] However, if the deviation is larger, it indicates that using the current wake-up window will miss receiving many beacon frames, which will have an adverse impact on the normal transmission of service data between the STA and the wireless AP. The current wake-up window is no longer suitable for receiving beacon frames.
[0089] Therefore, the embodiments of this application adjust the current wake-up window to obtain a target wake-up window according to the length of the current wake-up window and the above-mentioned ratio value.
[0090] 203. Receive beacon frames according to the target wake-up window.
[0091] In the embodiment of the present application, between two adjacent detection periods, an operation is performed to determine whether the STA meets the sleep condition. The time occupied by this determination operation is very small and can be ignored for the period duration of the detection period. However, the purpose of this determination operation is that the embodiment of the present application performs the window adjustment operation between two detection periods and after the STA is in the sleep state.
[0092] The specific implementation process is as follows: After obtaining the ratio value between the actual value and the theoretical value of the received beacon frame based on the first detection period, at this time, it is determined whether the STA meets the sleep condition. If so, after the STA enters the sleep state, the length of the current wake-up window is adjusted to obtain the target wake-up window, and then the target wake-up window is applied to the second detection period, so as to receive the beacon frame with the length of the target wake-up window within the second detection period. Accordingly, the embodiment of the present application realizes adjusting the length of the current wake-up window based on the ratio value between the actual value and the theoretical value of the received beacon frame within the previous detection period, and applying it to the next detection period to receive the beacon frame. Through such iterative operations, the length of the wake-up window adapted to the STA is dynamically adjusted periodically.
[0093] The embodiment of the present application provides a method for adjusting the length of the wake-up window. The embodiment of the present application first sets multiple detection periods, and the multiple detection periods at least include the first detection period and the adjacent second detection period. Then, the ratio value is determined according to the actual value of the received beacon frame and the preset reference value within the first detection period. Furthermore, based on the length of the current wake-up window and this ratio value, the current wake-up window is adjusted to obtain the target wake-up window, so as to receive the beacon frame within the second detection period based on the target wake-up window. Thus, the present application realizes dynamically adjusting the length of the wake-up window adapted to each STA based on each detection period. Compared with the prior art, the technical problem that some STAs (such as STAs with better beacon frame reception) increase unnecessary power consumption due to using a fixed long wake-up window for each STA is solved. The technical solution of periodically and dynamically adjusting the length of the wake-up window provided by the embodiment of the present application can configure a wake-up window with an appropriate length for each STA, so that each STA can receive as many beacon frames as possible while still being at a low power consumption level, thereby effectively saving the processing cost on each STA.
[0094] To make the above embodiments more detailed, the embodiment of the present application also provides another method for adjusting the length of the wake-up window, as Figure 3 shown. The embodiment of the present application provides the following specific steps:
[0095] 301. Determine the period duration of the transmission period corresponding to the beacon frame sent by the wireless AP.
[0096] In the embodiments of the present application, the transmission period for the wireless AP to send beacon frames can be pre-configured according to actual requirements, for example, with a transmission period of 102 ms (milliseconds).
[0097] 302. Multiply the period duration of the transmission period corresponding to the wireless AP by a preset integer multiple to configure the period duration of the sleep wake-up period of the STA.
[0098] The wireless AP has its own transmission period for sending beacon frames to the STA. Moreover, each STA will enter the sleep state after completing tasks, but it is not always in the sleep state before receiving other tasks. The STA also has its own sleep wake-up period.
[0099] To avoid the situation where the STA is awakened but misses receiving the beacon frame due to the existence of the above two different periods, the preferred implementation method provided by the embodiments of the present application is: multiply the period duration of the transmission period for the wireless AP to send beacon frames by a preset integer multiple to configure the period duration of the sleep period of the STA, so as to obtain the sleep period of the STA.
[0100] For example, if the transmission period for the wireless AP to send beacon frames is 102 ms (milliseconds), the period duration of the sleep period of the STA can be configured as N * 102 ms (milliseconds), so as to ensure that the STA can receive the beacon frame when it is awakened on the premise that the beacon frames sent by the wireless AP arrive at the STA strictly according to the transmission period.
[0101] 303. Divide the period duration of the preset detection period by the period duration of the sleep wake-up period to configure a preset reference value for receiving beacon frames within each preset detection period.
[0102] The preset reference value for receiving beacon frames within each preset detection period refers to: if the SAT can definitely receive the beacon frame when it is awakened within the preset detection period, then the theoretical number of beacon frames received within the preset detection period. And the specific implementation method for obtaining this theoretical number is: divide the period duration of the preset detection period by the period duration of the sleep wake-up period.
[0103] For example, if the sleep wake-up period of the STA is N * 102 ms (milliseconds) and the detection period is 100 s (seconds), then the theoretical number of beacon frames received is calculated using the following formula (1).
[0104] beacon_theory_n = (T * 1000) ms / (N * 102 ms) Formula (1);
[0105] where beacon_theory_n represents the theoretical number of beacon frames received; T is the detection period of 100 s.
[0106] It should be noted that the preset detection period provided in the embodiments of the present application at least includes: a first detection period and an adjacent second detection period, and the durations of the first detection period and the second detection period can be equal or unequal. The embodiments of the present application only conveniently use the words "first" and "second" to distinguish and refer to two adjacent detection periods. It should be understood that the embodiments of the present application do not limit the number of detection periods.
[0107] 304. Determine each detection moment corresponding to the preset detection period according to the period duration of the preset detection period.
[0108] 305. Configure a storage area for recording the cumulative number of received beacon frames at each detection moment.
[0109] In the embodiments of the present application, a pre-configured storage area is used to record the cumulative number of received beacon frames at each detection moment. For example, a register is used as a counter to accumulate the number of received beacon frames at each detection moment.
[0110] 306. For the first detection period, obtain a first cumulative value corresponding to the received beacon frame recorded at the current detection moment and a second cumulative value corresponding to the received beacon frame recorded at the adjacent previous detection moment from the storage area.
[0111] 307. Perform a subtraction operation on the second cumulative value and the first cumulative value to obtain the actual value of the received beacon frames within the first detection period.
[0112] 308. Divide the actual value of the received beacon frames within the first detection period by a preset reference value to obtain a ratio value.
[0113] For example, in the embodiments of the present application, the following formula (2) is used to calculate the ratio value between the actual value of the received beacon frames within the first detection period and the preset reference value.
[0114] beacon_cnt = cur_beacon_cnt – last_beacon_cnt;
[0115] beacon_per = (beacon_cnt / beacon_theory_n) * 100%; Formula (2);
[0116] Among them, cur_beacon_cnt is the first cumulative value corresponding to the received beacon frame for obtaining the record corresponding to the current detection moment from the storage area; last_beacon_cnt is the second cumulative value corresponding to the received beacon frame for the record corresponding to the previous adjacent detection moment, and the difference between these two detection moments is the first detection period; beacon_cnt is the actual value of the received beacon frame within the first detection period; beacon_theory_n is the preset reference value corresponding to the first detection period, that is, the theoretical value of the received beacon frame for this detection period; beacon_per is the beacon frame reception percentage corresponding to the first detection period.
[0117] 309. Based on the length and ratio value of the current wake-up window, adjust the current wake-up window to obtain the target wake-up window.
[0118] In the embodiment of the present application, this step is refined to include: determining whether the beacon frame reception percentage in the first detection period reaches the preset ratio value; if so, according to the first preset constraint rule corresponding to the current wake-up window, reduce the length of the current wake-up window to obtain the target wake-up window; if not, according to the second preset constraint rule corresponding to the current wake-up window, increase the length of the current wake-up window to obtain the target wake-up window.
[0119] Among them, the preset threshold is set according to a large amount of historical test data, and the embodiment of the present application uses it to measure whether the reception percentage of the beacon frame in the first detection period is too large or too small. If the reception percentage of the beacon frame is too large, it indicates that the length of the STA wake-up window can be reduced on the premise of not affecting the subsequent transmission of service data between the STA and the wireless AP, so as to reduce the power consumption of the STA; but if the reception percentage of the beacon frame is too small, it indicates that the wake-up window length needs to be increased to receive more beacon frames, otherwise it will affect the normal operation of the subsequent transmission of service data between the STA and the wireless AP.
[0120] It should be noted that the normal operation of the subsequent transmission of service data between the STA and the wireless AP referred to in the embodiment of the present application means that during the period when the STA is in the sleep state, although it cannot receive the service data sent by other terminals to it, these data packets will be temporarily stored in the wireless AP, and the wireless AP will carry the identifiers of these temporarily stored data packets when periodically sending beacon frames to the STA. Thus, when the STA is awakened, it can know which data packets have not been received and actively obtain them from the wireless AP side, so as to ensure the normal operation of the subsequent transmission of service data between the STA and the wireless AP based on the identifiers of the data packets carried by the beacon frames.
[0121] Furthermore, it should be noted that after the STA obtains the data packet from the wireless AP, the subsequent beacon frames received by the STA will no longer carry the identifier of a certain data packet. Therefore, for the beacon frames received within a detection period, the proportion of the beacon frames carrying the data packet identifier is not very large. However, if the reception percentage of the beacon frames within the detection period is too small, it indicates that the STA will miss receiving many beacon frames, and it is inevitable that there will be beacon frames carrying the data packet identifier among them. If there are any, it will cause the STA not to know the existence of this data packet, and thus will not obtain this data packet from the wireless AP, thereby affecting the normal operation of the transmission of service data between the STA and the wireless AP.
[0122] Next, the embodiments of the present application will explain in detail the specific implementation methods for reducing or increasing the length of the wake-up window:
[0123] First, the embodiments of the present application adopt the first preset constraint rule corresponding to the current wake-up window to reduce the length of the current wake-up window. The exemplary explanation is as follows:
[0124] This step is refined to include: parsing out the first mapping relationship between the preset window length interval and the preset reduction length from the first preset constraint rule; determining the target reduction length corresponding to the current wake-up window length based on the first mapping relationship; and adjusting the length of the current wake-up window according to the target reduction length to obtain the target wake-up window.
[0125] Example 1: The beacon frame reception percentage is greater than 70%, and the current wake-up window length > 5 ms (milliseconds), then reduce the length, such as 1 ms (milliseconds);
[0126] Example 2: The beacon frame reception percentage is greater than 70%, and the current wake-up window length is between 3.5 ms (milliseconds) and 5 ms (milliseconds), then reduce the length, such as 0.5 ms (milliseconds).
[0127] Secondly, the embodiments of the present application adopt the second preset constraint rule corresponding to the current wake-up window to increase the length of the current wake-up window to obtain the target wake-up window. The exemplary explanation is as follows:
[0128] This step is refined to include: parsing out the second mapping relationship between the preset window length interval and the preset increase length from the first preset constraint rule; determining the target increase length corresponding to the current wake-up window length based on the second mapping relationship; and adjusting the length of the current wake-up window according to the target increase length to obtain the adjusted window length.
[0129] Example 3: The beacon frame reception percentage is less than 50% and greater than 30%, then increase the wake-up window length, such as 0.2 ms (milliseconds);
[0130] Example 4: If the beacon frame reception percentage is less than 30%, increase the wake-up window length, such as 0.4 ms (milliseconds).
[0131] Further, after obtaining the adjusted window length, the preferred implementation method provided by the embodiments of the present application is as follows: Determine whether the adjusted window length reaches the preset window length upper limit value; if so, determine the target wake-up window according to the preset window length upper limit value; if not, determine the target wake-up window according to the adjusted window length. The purpose of providing the preset window length upper limit value in the embodiments of the present application is to limit the power consumption of the STA due to the wake-up window, so as to avoid too high power consumption of the STA while meeting the requirement of increasing the number of received beacon frames.
[0132] Example 5: If the wake-up window length is greater than 8 ms after increasing, use an 8 ms window as the length of the adjusted wake-up window.
[0133] 310. Receive beacon frames according to the target wake-up window.
[0134] The embodiments of the present application provide a solution for dynamically adjusting the wake-up window length based on the detection period. Therefore, for the first detection period, the length of the wake-up window can be pre-configured, and for the next detection period, iterative adjustment operations are performed based on the wake-up window length obtained in the previous detection period. Thus, through such iterative adjustment operations, each STA can use a more appropriate wake-up window and reduce its own power consumption.
[0135] Further, as an implementation of the method shown above Figure 2 、 Figure 3 The embodiments of the present application provide a device for adjusting the wake-up window length. The device embodiments correspond to the foregoing method embodiments. For the convenience of reading, the details in the foregoing method embodiments will not be repeated one by one in the device embodiments, but it should be clear that the device in this embodiment can correspondingly implement all the contents in the foregoing method embodiments. The device is applied to periodically and dynamically adjust the wake-up window of the STA to reduce its own power consumption while receiving as many beacon frames as possible. Specifically, as Figure 4 shown, the device includes:
[0136] A first determination unit 41, configured to determine a ratio value according to the actual value of received beacon frames and a preset reference value in a first detection period;
[0137] An adjustment unit 42, configured to adjust the current wake-up window based on the length of the current wake-up window and the ratio value to obtain a target wake-up window;
[0138] A receiving unit 43, configured to receive beacon frames according to the target wake-up window.
[0139] Further, as Figure 5 shown, the apparatus further includes:
[0140] A second determination unit 44, configured to determine a cycle duration of a transmission cycle corresponding to a beacon frame sent by a wireless AP before determining a proportional value according to an actual value of a received beacon frame and a preset reference value within a first detection cycle;
[0141] A first configuration unit 45, configured to configure a cycle duration of a sleep wake-up cycle of a STA by multiplying the cycle duration by a preset integer multiple;
[0142] The first configuration unit 45 is further configured to configure a preset reference value for receiving a beacon frame within each preset detection cycle by dividing the cycle duration of the preset detection cycle by the cycle duration of the sleep wake-up cycle, where the preset detection cycle includes at least the first detection cycle and an adjacent second detection cycle;
[0143] Further, as Figure 5 shown, the apparatus further includes:
[0144] A third determination unit 46, configured to determine each detection moment corresponding to the preset detection cycle according to the cycle duration of the preset detection cycle;
[0145] A second configuration unit 47, configured to configure a storage area for recording a cumulative number of received beacon frames at each detection moment.
[0146] Further, as Figure 5 shown, the first determination unit 41 includes:
[0147] An acquisition module 411, configured to acquire a first cumulative value corresponding to a received beacon frame recorded at a current detection moment and a second cumulative value corresponding to a received beacon frame recorded at an adjacent previous detection moment from the storage area;
[0148] A calculation module 412, configured to perform a subtraction operation on the second cumulative value and the first cumulative value to obtain an actual value of a received beacon frame within a first detection cycle;
[0149] The calculation module 412 is further configured to obtain a proportional value by dividing the actual value by a preset reference value.
[0150] Further, as Figure 5 shown, the adjustment unit 42 includes:
[0151] A judgment module 421, configured to judge whether the proportional value reaches a preset proportional value;
[0152] A reduction module 422, configured to, when it is determined that the ratio value reaches a preset ratio value, reduce the length of the current wake-up window according to a first preset constraint rule corresponding to the current wake-up window, so as to obtain a target wake-up window;
[0153] An increase module 423, configured to, when it is determined that the ratio value does not reach the preset ratio value, increase the length of the current wake-up window according to a second preset constraint rule corresponding to the current wake-up window, so as to obtain a target wake-up window.
[0154] Further, as Figure 5 shown, the reduction module 422 is further specifically configured to include:
[0155] Parse a first mapping relationship between a preset window length interval and a preset reduction length from the first preset constraint rule;
[0156] Based on the first mapping relationship, determine a target reduction length corresponding to the length of the current wake-up window;
[0157] According to the target reduction length, adjust the length of the current wake-up window to obtain a target wake-up window.
[0158] Further, as Figure 5 shown, the increase module 423 is further specifically configured to:
[0159] Parse a second mapping relationship between a preset window length interval and a preset increase length from the first preset constraint rule;
[0160] Based on the second mapping relationship, determine a target increase length corresponding to the length of the current wake-up window;
[0161] According to the target increase length, adjust the length of the current wake-up window to obtain an adjusted window length;
[0162] Determine whether the adjusted window length reaches a preset window length upper limit value;
[0163] If so, determine a target wake-up window according to the preset window length upper limit value;
[0164] If not, determine a target wake-up window according to the adjusted window length.
[0165] In summary, the embodiments of the present application provide a method and device for adjusting the wake-up window length. The embodiments of the present application first configure multiple detection periods and a storage area for recording the cumulative number of received beacon frames at each detection moment. Thus, for any detection period, based on the first cumulative value and the second cumulative value of the beacon frames corresponding to two adjacent detection moments obtained from the storage area, the actual value of the received beacon frames in this detection period can be obtained. Then, the percentage of beacon frame reception is calculated by calculating the ratio between it and the preset reference value (i.e., the theoretical value of the received beacon frames) corresponding to this detection period. Furthermore, based on the length of the current wake-up window and this ratio value, the current wake-up window is adjusted to obtain the target wake-up window. Thus, beacon frames are received in the second detection period based on this target wake-up window. The embodiments of the present application achieve dynamically adjusting the wake-up window length adapted to each STA based on each detection period.
[0166] Compared with the prior art, the technical problem of unnecessary power consumption increase for some STAs (such as STAs with better beacon frame reception) caused by using a fixed long wake-up window for each STA is solved. The technical solution of periodically and dynamically adjusting the wake-up window length provided by the present application can configure a wake-up window with an appropriate length for each STA, so that each STA can receive as many beacon frames as possible while still being at a low power consumption level, thereby effectively saving the processing cost on each STA.
[0167] The device for adjusting the wake-up window length includes a processor and a memory. The above first determination unit, adjustment unit, receiving unit, etc. are all stored in the memory as program units, and the corresponding functions are implemented by the processor executing the above program units stored in the memory.
[0168] The processor includes a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set, and by adjusting the kernel parameters, the wake-up window length adapted to each STA is periodically and dynamically adjusted. While receiving as many beacon frames as possible, the STA remains at a low power consumption level, thereby effectively saving the processing cost on each STA.
[0169] The embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for adjusting the wake-up window length as described above is implemented.
[0170] The embodiments of the present application provide an electronic device, which can be a chip or a chip system. The electronic device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for adjusting the wake-up window length as described above is implemented.
[0171] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to produce a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices produce means for implementing the functions specified in one Figure 1 one process or multiple processes and / or blocks Figure 1 or multiple blocks.
[0172] In a typical configuration, the device includes one or more processors (CPUs), a memory, and a bus. The device may also include an input / output interface, a network interface, etc.
[0173] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip. The memory is an example of computer-readable media.
[0174] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0175] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.
[0176] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, system or computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0177] The above are only the embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent insertion, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A method for adjusting the length of a wake-up window, characterized in that, The method includes: Determine the cycle duration of the transmission cycle corresponding to the beacon frame sent by the wireless AP; Multiply the cycle duration by a preset integer multiple to configure the cycle duration of the sleep wake-up cycle of the STA; Divide the cycle duration of the preset detection cycle by the cycle duration of the sleep wake-up cycle to configure a preset reference value for receiving beacon frames within each preset detection cycle, where the preset detection cycle includes at least a first detection cycle and an adjacent second detection cycle; In each preset detection cycle, determine a ratio value based on the actual value of the received beacon frame in the first detection cycle and the preset reference value; Based on the length of the current wake-up window and the ratio value, adjust the current wake-up window to obtain a target wake-up window; In the second detection cycle, receive beacon frames according to the target wake-up window.
2. The method according to claim 1, characterized in that, The method further includes: Determine each detection moment corresponding to the preset detection cycle according to the cycle duration of the preset detection cycle; Configure a storage area for recording the cumulative number of received beacon frames at each detection moment.
3. The method according to claim 2, wherein The determining the ratio value according to the actual value of the received beacon frame in the first detection cycle and the preset reference value includes: Obtain a first cumulative value corresponding to the received beacon frame recorded at the current detection moment and a second cumulative value corresponding to the received beacon frame recorded at the adjacent previous detection moment from the storage area; Perform a subtraction operation on the second cumulative value and the first cumulative value to obtain the actual value of the received beacon frame in the first detection cycle; Obtain a ratio value by dividing the actual value by the preset reference value.
4. The method according to claim 1 or 3, characterized in that, The adjusting the current wake-up window based on the length of the current wake-up window and the ratio value to obtain a target wake-up window includes: Determine whether the ratio value reaches a preset ratio value; If so, reduce the length of the current wake-up window according to a first preset constraint rule corresponding to the current wake-up window to obtain a target wake-up window; If not, increase the length of the current wake-up window according to a second preset constraint rule corresponding to the current wake-up window to obtain a target wake-up window.
5. The method according to claim 4, wherein The reducing the length of the current wake-up window according to the first preset constraint rule corresponding to the current wake-up window to obtain a target wake-up window includes: Parse a first mapping relationship between a preset window length range and a preset reduction length from the first preset constraint rule; Based on the first mapping relationship, determine a target reduction length corresponding to the length of the current wake-up window; Adjust the length of the current wake-up window according to the target reduction length to obtain a target wake-up window.
6. The method according to claim 4, characterized in that, The increasing the length of the current wake-up window according to the second preset constraint rule corresponding to the current wake-up window to obtain a target wake-up window includes: Parse a second mapping relationship between a preset window length range and a preset increase length from the first preset constraint rule; Based on the second mapping relationship, determine a target increase length corresponding to the length of the current wake-up window; Adjust the length of the current wake-up window according to the target increase length to obtain an adjusted window length; Determine whether the adjusted window length reaches a preset window length upper limit value; If so, determine a target wake-up window according to a preset upper limit value of the window length; If not, determine a target wake-up window according to the adjusted window length.
7. An apparatus for adjusting the length of a wake-up window, characterized in that The device includes: A second determination unit, configured to determine the period duration of the transmission period corresponding to the beacon frame sent by the wireless AP; A first configuration unit, configured to configure the period duration of the sleep wake-up period of the STA by multiplying the period duration by a preset integer multiple; The first configuration unit is further configured to configure a preset reference value for receiving a beacon frame within each of the preset detection periods by dividing the period duration of the preset detection period by the period duration of the sleep wake-up period, where the preset detection period includes at least a first detection period and an adjacent second detection period; A first determination unit, configured to determine a ratio value according to the actual value of the beacon frame received in the first detection period and the preset reference value in each of the preset detection periods; An adjustment unit, configured to adjust the current wake-up window based on the length of the current wake-up window and the ratio value to obtain a target wake-up window; A receiving unit, configured to receive a beacon frame according to the target wake-up window within the second detection period.
8. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for adjusting the wake-up window length according to any one of claims 1-6 is implemented.
9. An electronic device, characterized in that, Including: A memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the method for adjusting the wake-up window length according to any one of claims 1-6 is implemented.
Citation Information
Patent Citations
Apparatus and method for a mobile access point station
US20200008141A1