A device power saving mode control method and apparatus for listen interval adaptive adjustment

By adaptively adjusting the listening interval of Wi-Fi devices and dynamically adjusting the listening cycle and window, the problem of devices being unable to respond to remote wake-up in a timely manner and increasing power consumption under wireless interference is solved, achieving a balance between low latency and low power consumption.

CN123035527APending Publication Date: 2026-11-03ZHUHAI HUGE IC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611085139.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-21
Publication Date
2026-11-03

AI Technical Summary

Technical Problem

In the existing Wi-Fi power-saving mode, the device cannot respond to remote wake-up in a timely manner and the power consumption increases significantly in environments with wireless interference.

Method used

By adaptively adjusting the listening interval, the device's listening cycle is dynamically adjusted. The listening interval is shortened according to the number of consecutive packet losses, and a dense listening window is inserted to ensure the rapid acquisition of beacon frames. After the interference is eliminated, the device resumes a long-cycle sleep mode to reduce power consumption.

Benefits of technology

In environments with wireless interference, the device achieves a balance between low power consumption and low latency, enabling it to respond quickly to remote wake-up while avoiding a significant increase in power consumption, thus meeting stringent requirements for immediate response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123035527A_ABST
    Figure CN123035527A_ABST
Patent Text Reader

Abstract

The application discloses a device power saving mode control method and device for adaptive adjustment of listening interval, and the method comprises the following steps: obtaining sleep communication parameters before entering the power saving mode, setting the initial listening period as an integer multiple of the beacon frame sending period; waking up and starting the listening window at the time corresponding to each initial listening period after entering the power saving mode; if the beacon frame is not successfully received, counting the number of continuous packet loss, and dynamically adjusting the initial listening period to update the adjusted listening period; waking up and listening based on the adjusted listening period, and resetting the number of continuous packet loss and restoring the listening period to the initial listening period when the beacon frame is received in any window. The application adjusts and shortens the listening period when the beacon frame is lost, so that the device can quickly respond to the downlink data even in the wireless interference environment, and the period can be quickly reset to control the power consumption after the environment is restored, and the synergistic optimization of low power consumption and high wake-up speed is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless communication technology, and in particular to a device power-saving mode control method and apparatus for adaptive adjustment of listening interval. Background Technology

[0002] 802.11 PSM (Power Save Mode) is the earliest energy-saving mechanism defined in the IEEE 802.11 standard, designed to extend the battery life of mobile terminals (such as smartphones and IoT devices). Its core idea is that when there is no data transmission, the station (STA) enters a low-power sleep state, and the access point (AP) caches downlink data, which is then actively requested by the STA upon waking. This mechanism is suitable for unicast communication in Infrastructure Mode and forms the theoretical basis for subsequent energy-saving technologies (such as APSD and TWT).

[0003] However, with the dense deployment of WiFi devices and the increasing congestion of the 2.4GHz open frequency band, wireless interference has become increasingly prominent, severely impacting the actual energy-saving effect and communication performance of the PSM mechanism. In the existing PSM mechanism, the STA periodically wakes up at a fixed listening interval to receive beacon frames broadcast by the AP, and determines whether there is buffered data to be received by parsing the bitmap (TIM, Traffic Indication Map) in the beacon frame. However, this fixed listening interval scheme has obvious drawbacks: on the one hand, in a wireless interference environment, the STA may not be able to successfully receive the beacon frame after waking up. Each packet loss means that the device needs to wait for a complete listening interval before it can try to receive again, resulting in a significant increase in wake-up response latency; on the other hand, in order to cope with packet loss, the listening window is often simply increased to improve the reception probability, which directly leads to a significant increase in device power consumption.

[0004] Therefore, a device power-saving mode control method with adaptive adjustment of listening interval is needed to ensure that the device can respond to remote wake-up in a timely manner under interference environment, while avoiding a significant increase in power consumption, effectively balancing the device's power consumption and response speed. Summary of the Invention

[0005] In view of this, the present invention provides a device power-saving mode control method and apparatus for adaptive adjustment of listening interval, in order to solve the technical problem in the prior art that when a wireless terminal device in Wi-Fi power-saving mode loses beacon frames continuously due to wireless interference, it is impossible to both receive beacon frames again to reduce the response delay of remote wake-up and not significantly increase the power consumption of the device.

[0006] To achieve the above-mentioned technical objectives, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a device power-saving mode control method with adaptive adjustment of the listening interval, comprising:

[0008] Before entering power-saving mode, the device acquires sleep communication parameters and sets an initial listening period based on the sleep communication parameters; wherein, the sleep communication parameters include at least the beacon frame transmission period, and the initial listening period is an integer multiple of the beacon frame transmission period;

[0009] When the device enters power saving mode, it is woken up at the listening time corresponding to each initial listening cycle and opens the listening window to receive beacon frames sent by the access point.

[0010] If the beacon frame is not successfully received within the listening window corresponding to the initial listening period, the number of consecutive packet loss is counted, and the initial listening period is dynamically adjusted based on the number of consecutive packet loss, and the initial listening period is updated to the adjusted listening period.

[0011] The listening window is woken up and opened based on the adjusted listening period. When a beacon frame is received in any listening window, the number of consecutive packet loss is reset and the adjusted listening period is restored to the initial listening period.

[0012] In a second aspect, the present invention provides a device power-saving mode control apparatus for adaptive adjustment of listening interval, comprising:

[0013] The setting module is used to acquire sleep communication parameters before the device enters power saving mode, and set an initial listening period according to the sleep communication parameters; wherein, the sleep communication parameters include at least the beacon frame transmission period, and the initial listening period is an integer multiple of the beacon frame transmission period;

[0014] The listening module is used to wake up at the listening time corresponding to each initial listening cycle after the device enters power saving mode, and to open the listening window to receive beacon frames sent by the access point.

[0015] An adjustment module is used to count the number of consecutive packet losses when the beacon frame is not successfully received within the listening window corresponding to the initial listening period, dynamically adjust the initial listening period according to the number of consecutive packet losses, and update the initial listening period to the adjusted listening period.

[0016] The recovery module is used to wake up and open a listening window based on the adjusted listening period. When a beacon frame is received in any listening window, the number of consecutive packet losses is reset and the adjusted listening period is restored to the initial listening period.

[0017] Thirdly, the present invention also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the device power-saving mode control method for adaptive adjustment of the listening interval described in the above technical solution.

[0018] Compared with existing technologies, the device power-saving mode control method and apparatus for adaptive adjustment of listening interval proposed in this invention have the following advantages:

[0019] This invention achieves a balance between low power consumption and low latency in interference environments, breaking the traditional deadlock of "increasing wake-up speed must sacrifice power consumption" or "reducing power consumption must tolerate long latency." Specifically, it includes:

[0020] (1) This method uses an innovative adaptive adjustment model to dynamically shorten the current listening interval based on the continuous packet loss count when the original large-cycle node loses beacon frames under wireless interference. It actively and accurately inserts a denser temporary listening window, ensuring that even in a harsh electromagnetic interference environment, the device can recapture beacon frames and parse beacon frame data at an extremely fast frequency, thereby keeping the maximum network wake-up delay within an extremely low range. This can meet the application scenarios with stringent requirements for remote instant response speed.

[0021] (2) Once the device successfully captures a beacon frame within the dynamically adjusted dense listening window and determines that environmental interference has been eliminated, the present invention will immediately reset the count to zero and restore the large cycle, and intelligently calculate the subsequent listening time to be aligned with the next listening time. When it is determined that the restored timing cannot be aligned, the system will actively extend the current sleep time and perform special blanking control during the extended sleep period—directly canceling one or more normal listening windows that should have been opened according to the large cycle beat. Through this precise timing shift and window cancellation, the subsequent "deep sleep" successfully offsets and cancels the extra power consumed by the previous dynamic insertion of windows due to interference, achieving the technical effect of significantly improving the response speed under severe interference without significantly increasing the total power consumption of the device.

[0022] In summary, the present invention is able to dynamically adjust the listening interval according to the packet loss situation within the listening window, so as to achieve a balance between device power consumption and remote wake-up speed. It solves the technical problem that the existing solution keeps the listening interval unchanged and cannot both receive beacon frames again to reduce the response latency of remote wake-up without significantly increasing the power consumption of the device. Attached Figure Description

[0023] Figure 1 A flowchart illustrating the device power-saving mode control method for adaptive adjustment of listening interval provided by the present invention;

[0024] Figure 2A timing diagram illustrating the device receiving beacon packets during each wake-up under the ideal, interference-free state provided by this invention;

[0025] Figure 3 This is a schematic diagram of the implementation process of the method provided by the present invention;

[0026] Figure 4a This is a timing diagram illustrating the reception of beacon packets in a listening window at t=35 under interference conditions, as provided by the present invention.

[0027] Figure 4b This invention provides a timing diagram showing that, under interference conditions, no beacon packet is received in the listening window at t=35, and a beacon packet is received in the listening window at t=40.

[0028] Figure 5 This is a timing diagram illustrating the reception of a beacon packet in the listening window at t=43, as provided by the present invention.

[0029] Figure 6 This is a timing diagram provided by the present invention showing that no beacon packet is received in the listening window at t=43 and a beacon packet is received in the listening window at t=46;

[0030] Figure 7 The timing diagram provided by the present invention shows that no beacon packets were received in the listening windows at t=43 and t=46, but a beacon packet was received in the listening window at t=49.

[0031] Figure 8 This is a timing diagram illustrating the reception of a beacon packet in the listening window of t=56, as provided by the present invention.

[0032] Figure 9 This is a timing diagram provided by the present invention showing that no beacon packet was received in the listening window at t=56;

[0033] Figure 10 A schematic diagram of the device power-saving mode control device for adaptive adjustment of listening interval provided by the present invention. Detailed Implementation

[0034] Before describing the specific embodiments of the present invention, the relevant terms appearing in this application will be explained.

[0035] Beacon Frame Synchronization: The AP periodically broadcasts beacon frames (usually every 100ms), carrying a timestamp (TSF) and flow indicator map (TIM) to synchronize the wake-up time of all associated STAs.

[0036] TIM (Traffic Indication Map): A bitmap field in the beacon frame, each bit corresponds to an AID (Association ID) of an associated STA; if a bit is 1, it means that the AP has cached the unicast data of that STA; if it is 0, there is no cache.

[0037] DTIM (Delivery Traffic Indication Message): When a beacon frame contains a DTIM, it indicates that subsequent frames are multicast or broadcast data, and all STAs must wake up to receive them, regardless of their listening interval settings.

[0038] Listen Interval: STA can be configured to wake up once every N beacon cycles (N ≥ 1), and only check TIM upon wakeup. If there is no cached data, it immediately returns to sleep.

[0039] Data request mechanism: After the STA wakes up, if it finds that the TIM bit is 1, it needs to send a Null Function Frame or PS-Poll frame to the AP to request the cached data, and the AP will then unicast it down.

[0040] In existing technologies, when low-power devices enter power-saving mode, power consumption and wake-up speed present a contradiction: 1) Low power consumption requires the device to remain in sleep mode for extended periods, minimizing its active time, including data reception and transmission. 2) Fast wake-up speed requires the device to remain frequently active, communicating with the access point (AP) to determine whether to wake from sleep mode. 3) In practical applications, interference from other Wi-Fi signals frequently affects both power consumption and wake-up speed.

[0041] The difficulty in development that balances these contradictory needs lies in the fact that it is easy to achieve one metric by pursuing only one metric. For example, to save power, the sleep time can be increased to a very long time, but this will sacrifice another metric, and vice versa.

[0042] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not intended to limit the scope of the present invention.

[0043] Example 1

[0044] Please see Figure 1 This embodiment provides a device power-saving mode control method with adaptive adjustment of the listening interval, including:

[0045] Step S101: Before entering power saving mode, the device acquires sleep communication parameters and sets an initial listening period according to the sleep communication parameters; wherein, the sleep communication parameters include at least the beacon frame transmission period, and the initial listening period is an integer multiple of the beacon frame transmission period;

[0046] Step S102: When the device enters power saving mode, it is woken up at the listening time corresponding to each initial listening cycle and the listening window is opened to receive beacon frames sent by the access point.

[0047] Step S103: If the beacon frame is not successfully received within the listening window corresponding to the initial listening period, the number of consecutive packet loss is counted, and the initial listening period is dynamically adjusted according to the number of consecutive packet loss, and the initial listening period is updated to the adjusted listening period.

[0048] Step S104: Wake up and open the listening window based on the adjusted listening period. When a beacon frame is received in any listening window, reset the number of consecutive packet loss and restore the adjusted listening period to the initial listening period.

[0049] The device power-saving mode control method with adaptive adjustment of listening interval proposed in this invention first sets an initial listening period, which is an integer multiple of the beacon frame period, based on communication parameters such as the acquired beacon frame transmission period before the device enters power-saving mode. After entering power-saving mode, the device periodically wakes up and opens a window to receive beacon frames according to this initial listening period. Second, if a beacon frame is not successfully received within the window of the initial listening period, the device counts the number of consecutive packet losses and dynamically adjusts and shortens the listening period according to the severity of the packet loss, updating it to a more intensive adjusted listening period. Finally, the device continues to wake up and listen based on the adjusted intensive period. Once a beacon frame is successfully captured within any window, the packet loss count is immediately reset, and the listening period is restored to the original initial listening period. This method, by adaptively adjusting and shortening the listening period when beacon frames are lost, enables the device to quickly respond to downlink data even in wireless interference environments, and can quickly reset the period to control power consumption after the environment recovers, achieving a balance between low power consumption and high wake-up speed.

[0050] As a specific example, the implementation process is described below:

[0051] Step S1: Before the STA device goes to sleep, it parses the beacon interval (beacon frame transmission period), DTIM period, maximum sleep time (listen interval) and other information sent by the AP, and sets the initial listening period to k beacon periods (k is a positive integer).

[0052] Step S2: After the STA enters sleep mode and sleeps for k beacon cycles, it resumes its receiving function and prepares to receive beacons sent by the AP. At this point, there are two possibilities:

[0053] Scenario 1: If a beacon is received in the listening window, the AP will determine whether it has cached data by parsing the TIM bitmap in the beacon. If there is cached data, the AP needs to receive all the cached data before going to sleep.

[0054] Scenario 2: If no beacon is received within the listening window, the system will wait for a timeout and then go to sleep. If M consecutive beacons are lost, the initial listening period will be adjusted according to the following rules:

[0055] a) Define continuous packet loss as follows: Assume the initial listening period is N (N is a positive integer), and in an ideal situation there is no packet loss. The wake-up times are t_N, t_2N, t_3N, t_4N, etc. Only the packets that are not received at these times are used to count packet loss.

[0056] b) If M beacon packets are lost consecutively, the listening interval (denoted as P) is modified to 1 / (M+1) of the original interval, that is: P=N*1 / (M+1).

[0057] For example, after the first packet loss, the listening interval is adjusted to P = N / (1+1) = N / 2. If two packets are lost consecutively, the listening interval is adjusted to P = N / 3.

[0058] It should be noted that: ① If the adjusted listening period is not an integer multiple of the beacon period, it needs to be rounded or adjusted to an integer to ensure that the listening window is aligned with the nearest beacon; ② The minimum listening interval is one beacon interval; ③ If the continuous packet loss statistics M≠0, the device must open the listening window at the original listening interval. That is, when M≠0, the listening window must be opened at positions t_N, t_2N, t_3N, t_4N... (This ensures that the device always retains the standard large-cycle node as the absolute time anchor point during dynamic adaptive frequency conversion to receive traffic indications (such as critical broadcast frames like DTIM) sent by the access point at the standard cycle point, guaranteeing absolute compatibility with the native wireless communication protocol architecture).

[0059] The aforementioned listening cycle adjustment method can adaptively shrink the temporary listening frequency in a stepwise manner according to the severity of continuous packet loss. Under slight interference, it reduces power consumption by suppressing wake-ups, and under severe interference, it ensures low-latency response through dense windowing. Furthermore, the calculation method is simple, simplifying the computational complexity of large-cycle track alignment and power blanking compensation after interference cancellation. Simultaneously, this method breaks the vicious cycle in traditional power-saving modes where the maximum wake-up latency increases linearly with the number of packet losses, enabling the device to control the beacon re-acquisition time within a safe convergence range even in harsh communication environments. Finally, by forcibly opening the window at standard cycle times, the device gains a necessary opportunity to periodically calibrate its local time synchronization (TSF) function, effectively eliminating the phase accumulation deviation between the device and the access point caused by prolonged temporary frequency conversion.

[0060] Step S3: After receiving a beacon at any listening time point, reset the continuous packet loss count to zero and restore the listening interval to its original value, i.e., the initial listening interval N.

[0061] After capturing a beacon frame and confirming that the interference has been eliminated, the device immediately terminates high-frequency wake-up and instantly switches back to long-cycle sleep mode, eliminating redundant RF reception and power consumption overhead. This allows the device to maximize its recovery to ultra-low power normal operation. At the same time, the device can return to standard operation the moment the wireless channel quality improves without going through a complex cooling transition period.

[0062] Step S4: After restoring the original initial listening cycle, the listening window also needs to be aligned to an integer multiple of the listening interval.

[0063] In a preferred embodiment, the update method for the number of consecutive packet losses is as follows:

[0064] The number of packet losses is accumulated only when no beacon frame is received at the preset listening time corresponding to the initial listening period;

[0065] If a beacon frame is not received at a listening time determined according to the adjusted listening period and which does not coincide with the preset listening time corresponding to the initial listening period, it will not be counted in the number of consecutive packet losses.

[0066] For example, if no beacon is received within the originally expected listening window with a period of N*beacon, it is defined as a lost beacon. If no beacon is received within the listening window at other times, it is not considered a lost beacon. For instance, if N=10*beacon, a lost beacon is only defined as not receiving a beacon within the listening windows of t=10*beacon, t=20*beacon, t=30*beacon, and so on.

[0067] By limiting the accumulation sources of packet loss counts, it is possible to effectively prevent the device from experiencing a vicious surge in packet loss counts due to occasional missed receptions within dynamically inserted temporary listening windows. This eliminates unbalanced noise interference introduced by temporary frequency conversion and nonlinear increase in sampling frequency, and avoids the listening interval from instantly shrinking to a minimum value (such as becoming a continuously fully open state). This makes the switching decision more accurate and robust, prevents power overload caused by frequent wake-ups of temporary windows, and effectively extends battery life.

[0068] In some embodiments, round(T) is used to round the listening interval to the nearest integer multiple of the beacon period. For example, when N=10 and there is one packet loss, 10*beacon / (1+1)=5*beacon has been aligned to an integer multiple of the beacon period, so round(5*beacon)=5*beacon.

[0069] When there are two consecutive packet losses, 10*beacon / (1+2)=3.3*beacon is not an integer multiple, so round(3.3*beacon)=3*beacon. Similarly, when there are three consecutive packet losses, the listening interval is set to round(10*beacon / (1+3)) = round(2.5*beacon) = 3*beacon.

[0070] It should be noted that this method can also set a threshold for the number of packet losses. The listening interval is adjusted only after consecutive packet losses exceed the threshold. By setting a packet loss threshold, occasional transient interference is filtered out, preventing the device from frequently and sensitively switching its listening cycle due to slight channel jitter, thereby improving the stability of system operation and the smoothness of power consumption control.

[0071] Example 2

[0072] Assuming the AP's beacon transmission interval is one time unit, and the STA enters power-saving mode at t=0 with an initial listening period of 10 beacon cycles, N = 10: ideally, the STA will receive beacon packets from the AP within the listening window starting at t=10, 20, 30... and then parse the TIM information in the beacon packets to determine whether to continue sleeping or exit PSM mode. Figure 2 As shown.

[0073] However, in reality, because routers operate in open frequency bands and there are various Wi-Fi / Bluetooth devices in the surrounding environment, wireless interference in the air is inevitable, making it unavoidable that beacon packets cannot be received within the listening window.

[0074] Therefore, it is necessary to adjust the initial listening period and restore the adjusted listening period to the initial listening period upon receiving a beacon packet. To further optimize device power consumption, based on Embodiment 1, the method for optimizing the listening period further includes:

[0075] When a beacon frame is received within the listening window of the adjusted listening period, and the time after adding the initial listening period to the current listening time is not an integer multiple of the initial listening period, the single sleep time after this successful reception is extended, and the time of the next opening of the listening window is aligned to a time point that satisfies an integer multiple of the initial listening period. For example... Figure 3 As shown, Figure 3 A complete implementation flowchart is shown.

[0076] Specifically, assuming normal reception occurs at wakeups at t=10 and t=20, but no beacon is received within the listening window at t=30, this is recorded as a consecutive loss of one beacon packet (M = 1). The listening interval before t=40 is then adjusted to P=N / (M+1)=10 / (1 + 1) = 5, meaning a new listening window is opened at t=35. Several scenarios are possible at this point:

[0077] Scenario 1: If a beacon is received at t=35, the current listening period P=5 is not equal to N=10 after receiving the beacon packet. Therefore, the listening period needs to be restored to N=10. The next listening window is calculated at t=35+10=45. However, t=45 is not an integer multiple of N=10, so the sleep time needs to be increased to align with t=50, which is an integer multiple of N=10. Ultimately, the listening window is not opened at t=40, achieving the goal of saving power. The entire timing diagram is as follows. Figure 4a As shown.

[0078] Figure 4a In the diagram, dashed arrows indicate that no beacon packets were received within the listening window starting at that moment; solid arrows indicate that beacon packets were received within the listening window starting at that moment; the text corresponding to the arrows indicates the listening time; the X symbol indicates that the listening was canceled (i.e., the listening window will not be reopened at t=40). It should be noted that the following... Figure 4b , Figures 5-9 The definitions of the middle arrow, font, and symbols are consistent with the above.

[0079] from Figure 4aAs can be seen, using this method, the device was woken up a total of 5 times during the period from t=0 to 50, without any additional power consumption compared to the ideal situation. At the same time, the maximum latency changed from 10 to 15 (i.e., the maximum interval for beacon reception: t35 - t20 = 15, t50 - t35 = 15).

[0080] Scenario 2: Assume no beacon is received at t=35, but a beacon is received at t=40. The subsequent normal listening interval N=10, with the timing as follows: Figure 4b As shown. In this time period from t=0 to 50, compared to the ideal situation, there is only an additional power consumption for listening once at t=35, and the maximum delay is 20 (the maximum interval of beacon reception is 20: t40 - t20 = 20).

[0081] Furthermore, assuming no beacon is received within the listening window opened at t=40, then according to the continuous packet loss statistics method, it is marked as two consecutive beacon losses (i.e., beacon was lost at two consecutive expected listening times, t=30 and t=40), and M=2. Therefore, the listening interval before t=50 is adjusted to P = N / (M+1)=10 / (2+1)=3.3.

[0082] Here we encounter a situation where the listening interval is not an integer multiple. Since the beacon at the AP is sent at integer multiples of the beacon period, in order to align the listening window, we round P: round(P) = 3, that is, we adjust the listening period to 3. Therefore, the next listening window at t=40 is t=40 + 3 = 43.

[0083] Then at t=43, the following scenarios still exist:

[0084] Case 1: If a beacon is received within the listening window of t = 43, the listening interval needs to be restored to the original N = 10. However, the corresponding listening window t = 43 + 10 = 53 is not an integer multiple of N = 10, so the sleep time needs to be increased until t = 60 before the listening window is reopened. The entire timing is as follows: Figure 5 As shown.

[0085] Scenario 2: If no beacon is received within the listening window at t=43, then after a listening interval P=3, listening resumes at t=46 (note that the packet loss count M is still 2, as the count is accumulated based on the consecutive packet loss counts during the initial listening period). If a beacon is received within the listening window at t=46, the process is the same as receiving a beacon at t=43: the listening interval is restored to N=10, and the sleep time is adjusted so that the listening window is a multiple of 10, meaning the next listening session will begin at t=60. Figure 6 As shown.

[0086] Case 3: If no beacon is received during the listening periods t=43 and t=46, then listening continues at t=49. Assuming a beacon packet is received at t=49, the normal listening interval (i.e., 10) is resumed thereafter, with the timing as follows: Figure 7 As shown.

[0087] It should be noted that, in addition to adding uniform intervals between the original listening times, the dynamic adjustment of the listening interval can also be set to other adjustment methods, which do not have to be uniform intervals, but can also be exponential, etc.

[0088] Furthermore, if no beacon is received at t=49, and if the sleep period is still set to P=3, then the sleep period includes t=50, which is an integer multiple of (N*beacon). According to the process of this method, when the sleep period includes an integer multiple of (N*beacon), the listening interval P needs to be adjusted again so that the listening window is aligned to t=50.

[0089] If a beacon is received at t=50, the normal listening interval P=N=10 is resumed afterwards.

[0090] If no beacon is received at t = 50: this is denoted as the beacon being lost 3 times in a row (i.e., the beacon is lost three times in a row at the expected listening times of t=30, t=40, and t=50). If M=3, then the listening interval is adjusted to P=N / (M+1)=10 / (3+1)=2.5. Since P is not an integer, the adjustment is P=round(P)=3.

[0091] Next, if a beacon packet is received at t=53, the listening interval is resumed to P=N=10 and aligned to integer multiples of 10, meaning the next listening time is t=70. Figure 8 As shown.

[0092] If no beacon is received at t=53, listening needs to resume at t=56. If a beacon is received at t=56, the listening interval is restored to P=N=10 and aligned to integer multiples of 10. The next listening time is t=70. Figure 9 As shown.

[0093] Similarly, if no beacon is received at t=56, listening needs to continue at t=59. If a beacon is received, the next listening time is t=70. (Diagram omitted.)

[0094] Similarly, if no beacon is received at t=59, and the sleep period continues at P=3, the sleep time includes an integer multiple of N*beacon at t=60. According to the procedure, the listening interval needs to be adjusted to P=1 again so that the listening window is aligned to t=60.

[0095] If a beacon is received at t=60, the listening interval returns to the normal value (i.e., 10), and the next listening time is t=70.

[0096] If no beacon is received by t=60, it is recorded as four consecutive beacon losses (i.e., the beacon is lost four times in a row at the expected time points t=30, t=40, t=50, and t=60). M=4, and the listening interval is adjusted to 10 / (4+1)=2. The next listening time is t=62. The subsequent process is similar and will not be described further.

[0097] The design concept and advantages of the above method lie in the fact that by extending the sleep time after successfully receiving the beacon, the device can safely skip over the regular listening moment that would normally be approaching in a longer cycle. Since the device has just completed beacon reception and status update, waking it up again in a very short time would be meaningless. This alignment method directly eliminates this redundant wake-up window, achieving maximum energy saving during the timing transition phase. By dynamically extending the single sleep time, the average wake-up frequency of the device during the specific transient process of "re-acquiring the beacon after packet loss" does not increase due to the previous intensive listening. Instead, sleep compensation maintains an extremely low wake-up ratio on the overall timeline, thus ensuring rapid response while achieving better power consumption performance than a conventional fixed cycle.

[0098] Example 3

[0099] Please see Figure 10This illustration shows a schematic diagram of a device power-saving mode control apparatus for adaptive adjustment of listening interval provided in an exemplary embodiment of this application, hereinafter referred to as apparatus 10. Apparatus 10 can be implemented as all or part of a computer device through software, hardware, or a combination of both. Apparatus 10 includes: a setting module 1001, a listening module 1002, an adjustment module 1003, and a recovery module 1004; wherein:

[0100] Setting module 1001 is used to acquire sleep communication parameters before the device enters power saving mode, and set an initial listening period according to the sleep communication parameters; wherein, the sleep communication parameters include at least the beacon frame transmission period, and the initial listening period is an integer multiple of the beacon frame transmission period;

[0101] The listening module 1002 is used to wake up at the listening time corresponding to each initial listening cycle after the device enters power saving mode, and open the listening window to receive beacon frames sent by the access point.

[0102] The adjustment module 1003 is used to count the number of consecutive packet losses when the beacon frame is not successfully received within the listening window corresponding to the initial listening period, dynamically adjust the initial listening period according to the number of consecutive packet losses, and update the initial listening period to the adjusted listening period.

[0103] The recovery module 1004 is used to wake up and open a listening window based on the adjusted listening period. When a beacon frame is received in any listening window, the number of consecutive packet losses is reset and the adjusted listening period is restored to the initial listening period.

[0104] It should be noted that the device 10 provided in the above embodiments, when executing the device power-saving mode control method for adaptive adjustment of the listening interval, is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the above functions. In addition, the device power-saving mode control method embodiments for adaptive adjustment of the listening interval provided in the above embodiments belong to the same concept, and its implementation process is detailed in the method embodiments, which will not be repeated here.

[0105] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0106] Example 4

[0107] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figure 1 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figure 1 The description of the illustrated embodiments will not be repeated here.

[0108] This application also provides a computer program product that stores at least one instruction, which is loaded and executed by the processor to implement the device power-saving mode control method for adaptive adjustment of the listening interval as described in the above embodiments.

[0109] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A device power-saving mode control method with adaptive adjustment of listening interval, characterized in that, include: Before entering power-saving mode, the device acquires sleep communication parameters and sets an initial listening period based on the sleep communication parameters; wherein, the sleep communication parameters include at least the beacon frame transmission period, and the initial listening period is an integer multiple of the beacon frame transmission period; When the device enters power saving mode, it is woken up at the listening time corresponding to each initial listening cycle and opens the listening window to receive beacon frames sent by the access point. If the beacon frame is not successfully received within the listening window corresponding to the initial listening period, the number of consecutive packet loss is counted, and the initial listening period is dynamically adjusted based on the number of consecutive packet loss, and the initial listening period is updated to the adjusted listening period. The listening window is woken up and opened based on the adjusted listening period. When a beacon frame is received in any listening window, the number of consecutive packet loss is reset and the adjusted listening period is restored to the initial listening period.

2. The method according to claim 1, characterized in that, The step of dynamically adjusting the current initial listening period based on the number of consecutive packet losses, and updating the initial listening period to the adjusted listening period, includes: The adjusted listening period is calculated using the formula P = N / (M+1); Wherein, N is the initial listening period, M is the number of consecutive packet losses, and P is the adjusted listening period.

3. The method according to claim 2, characterized in that, If the adjusted listening period is not an integer multiple of the beacon frame transmission period, the adjusted listening period is rounded to the nearest integer, so that the listening window determined by the rounded adjusted listening period is aligned with the transmission time of the nearest beacon frame.

4. The method according to claim 1, characterized in that, The minimum value of the adjusted listening period is one beacon frame transmission period.

5. The method according to claim 1, characterized in that, Restoring the adjusted listening period to the initial listening period further includes: When a beacon frame is received within the listening window of the adjusted listening period, and the time after adding the initial listening period to the current listening time is not an integer multiple of the initial listening period, the single sleep time after this successful reception is extended, and the time of the next opening of the listening window is aligned to a time point that satisfies an integer multiple of the initial listening period.

6. The method according to claim 1, characterized in that, The update method for the consecutive packet loss count is as follows: The number of packet losses is accumulated only when no beacon frame is received at the preset listening time corresponding to the initial listening period; If a beacon frame is not received at a listening time determined according to the adjusted listening period and which does not coincide with the preset listening time corresponding to the initial listening period, it will not be counted in the number of consecutive packet losses.

7. The method according to claim 1, characterized in that, During the process of waking up and opening the listening window based on the adjusted listening cycle, the method further includes: In addition to opening the listening window at the listening time corresponding to each adjusted listening cycle, the listening window is also opened at each preset listening time corresponding to the initial listening cycle.

8. The method according to claim 1, characterized in that, Upon receiving the beacon frame within any listening window, the traffic indication mapping information carried in the beacon frame is parsed to determine whether the access point contains data cached by the device. If there is cached data, the device will enter sleep mode again after receiving the cached data.

9. A device for controlling a power-saving mode of equipment with adaptive adjustment of the listening interval, characterized in that, include: The setting module is used to acquire sleep communication parameters before the device enters power saving mode, and set an initial listening period according to the sleep communication parameters; wherein, the sleep communication parameters include at least the beacon frame transmission period, and the initial listening period is an integer multiple of the beacon frame transmission period; The listening module is used to wake up at the listening time corresponding to each initial listening cycle after the device enters power saving mode, and to open the listening window to receive beacon frames sent by the access point. An adjustment module is used to count the number of consecutive packet losses when the beacon frame is not successfully received within the listening window corresponding to the initial listening period, dynamically adjust the initial listening period according to the number of consecutive packet losses, and update the initial listening period to the adjusted listening period. The recovery module is used to wake up and open a listening window based on the adjusted listening period. When a beacon frame is received in any listening window, the number of consecutive packet losses is reset and the adjusted listening period is restored to the initial listening period.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the device power-saving mode control method for adaptive adjustment of the listening interval as described in any one of claims 1-8.