Dormancy-based earphone control method, earphone and storage medium

By setting sleep and non-sleep modes in true wireless earbuds and adjusting the wake-up frequency and caching strategy, the problems of high power consumption and playback latency in true wireless earbuds have been solved, achieving efficient audio playback in different scenarios, extending the earbuds' battery life and reducing playback latency.

CN122269183APending Publication Date: 2026-06-23HENGXUAN TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HENGXUAN TECH (BEIJING) CO LTD
Filing Date
2026-03-26
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

True wireless earbuds have high power consumption in their wireless communication modules, resulting in short battery life and making it difficult to play for extended periods while the user is sleeping. This problem is particularly pronounced when using a Wi-Fi module. Furthermore, caching audio data can cause playback delays, making it difficult to balance the real-time nature of audio playback with power consumption requirements.

Method used

By setting sleep mode and non-sleep mode, different wake-up frequencies are set for different scenarios. In sleep mode, the wake-up frequency is reduced to extend the sleep time of the wireless communication module, while in non-sleep mode, the wake-up frequency is increased to ensure audio real-time performance. Combined with caching strategy and power management, power consumption and playback latency are optimized.

Benefits of technology

Balancing headphone battery life and real-time audio playback in different scenarios, this design reduces the power consumption of the wireless communication module, extends headphone usage time, and minimizes audio playback latency to meet users' needs for audio quality and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122269183A_ABST
    Figure CN122269183A_ABST
Patent Text Reader

Abstract

The application provides a hibernation-based earphone control method, an earphone and a storage medium. The hibernation-based earphone control method comprises the following steps: acquiring a current working mode of the earphone; determining a target wake-up frequency corresponding to the current working mode based on a first preset control strategy; wherein the target wake-up frequency is used to control a wake-up interval duration for waking up the wireless communication module from a hibernation state; the first preset control strategy comprises a first wake-up frequency corresponding to the non-sleep mode and a second wake-up frequency corresponding to the sleep mode, and the first wake-up frequency is higher than the second wake-up frequency; and controlling the wireless communication module to hibernate and wake up based on the target wake-up frequency. The earphone uses different modes to control the wireless communication module to hibernate by using different wake-up frequencies, so as to meet the needs of different scenes for playing real-time performance or power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of audio devices, and more specifically, provides a sleep-based headphone control method, headphones, and storage medium. Background Technology

[0002] When true wireless earbuds play audio, they need to continuously acquire audio data from the audio source device via their wireless communication module. This requires the wireless communication module to maintain a connection with the audio source device and to work frequently to receive audio data, resulting in high power consumption for the wireless communication module. Since true wireless earbuds are small, their battery capacity is limited. If the power consumption is too high, the earbuds will have a shorter battery life, making it unsuitable for extended playback in scenarios such as when the user is sleeping. This is especially true for earbuds with wireless communication modules, including Wi-Fi (Wireless Fidelity) modules that receive audio data. Compared to Bluetooth, Wi-Fi modules consume even more power, significantly impacting the earbuds' battery life.

[0003] Currently, an audio buffer can be set on true wireless earbuds, so that after the true wireless earbuds have cached a certain amount of audio data, the wireless communication module can temporarily stop receiving audio data and enter a sleep state, thereby reducing the power consumption of the wireless communication module.

[0004] However, audio data will be delayed in playback due to caching. The more audio data cached, the greater the audio playback delay. Therefore, although caching audio data can reduce headphone power consumption to some extent, it is difficult to meet the needs of scenarios with high real-time requirements for audio playback or scenarios that require long-term audio playback because the real-time requirements of audio playback also need to be considered. Summary of the Invention

[0005] In view of this, this application aims to provide a sleep-based headphone control method, headphone, and storage medium to balance audio playback power consumption and real-time performance, and to meet the power consumption and real-time performance requirements of different scenarios.

[0006] In a first aspect, embodiments of this application provide a sleep-based headphone control method, applied to headphones, the headphones including a wireless communication module; the sleep-based headphone control method includes: acquiring the current operating mode of the headphones; the operating mode of the headphones includes a sleep mode representing user sleep and a non-sleep mode representing user non-sleep; determining a target wake-up frequency corresponding to the current operating mode based on a first preset control strategy; wherein, the target wake-up frequency is used to control the wake-up interval duration for waking the wireless communication module from a sleep state; the first preset control strategy includes a first wake-up frequency corresponding to the non-sleep mode and a second wake-up frequency corresponding to the sleep mode, and the first wake-up frequency is higher than the second wake-up frequency; controlling the sleep and wake-up of the wireless communication module based on the target wake-up frequency; wherein, the wireless communication module stops receiving the audio data and enters the sleep state after the audio data reception is completed, and resumes receiving the audio data after being woken up.

[0007] In a second aspect, embodiments of this application provide an earphone, comprising: a wireless communication module, a memory, a processor, and an audio playback module; the processor is connected to the wireless communication module, the memory, and the audio playback module respectively; wherein, the wireless communication module is used to connect to an audio source device to acquire audio data; the memory is used to cache the audio data; the audio playback module is used to output the audio data; and the processor is used to control the wireless communication module, the memory, and the audio playback module to execute the sleep-based earphone control method as described in any of the first aspects.

[0008] Thirdly, embodiments of this application provide a readable storage medium storing a program that, when run on a processor, causes the processor to implement the sleep-based headphone control method as described in any of the first aspects.

[0009] While a wireless communication module in sleep mode significantly reduces power consumption, it needs to periodically wake up to receive audio data for playback. The more frequently it wakes up to receive audio data, the lower the audio playback latency. When the wireless communication module wakes up from sleep mode, it typically performs operations such as powering on the RF unit, clock initialization, protocol synchronization, and data monitoring. This process incurs relatively fixed energy costs. Furthermore, in the wake-up state, the wireless communication module and its related control units operate at relatively high power consumption. Therefore, controlling the reasonable sleep and wake-up times of the wireless communication module is crucial to meeting both real-time audio playback and power consumption requirements.

[0010] In this embodiment, corresponding working modes are set for different scenarios: a sleep mode suitable for use during user sleep and a non-sleep mode suitable for use during user non-sleep. Different working modes balance the real-time performance and power consumption of audio playback based on the user's perception characteristics of audio playback in different scenarios. In non-sleep mode, the user has higher requirements for audio real-time performance, so a higher first wake-up frequency is used to enable the wireless communication module to frequently wake up, receive audio data promptly, and play it. In sleep mode, the user's perception of audio is poor, and longer playback is required, so a lower second wake-up frequency is used to reduce the frequency of waking up to receive audio data, thereby enabling the wireless communication module to remain in a sleep state for a longer period, reducing power consumption. Through this method, the headphones can balance audio playback power consumption and real-time performance, meeting the power consumption and real-time requirements of different scenarios. Attached Figure Description

[0011] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 A flowchart illustrating an audio playback method provided in an embodiment of this application; Figure 2 This is a structural block diagram of an earphone provided in an embodiment of this application.

[0013] Icons: Headphones 300; Processor 310; Wireless communication module 320; Memory 330; Audio playback module 340. Detailed Implementation

[0014] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0015] First, this application provides a sleep-based headphone control method that can be applied to headphones.

[0016] In the embodiments of this application, the earphone can be a true wireless earphone, which refers to an earphone device in which the left and right earphones are not connected by a physical wire and communicate wirelessly. However, the earphone can also be other types of wireless earphones, and this is not limited to any particular type.

[0017] In embodiments of this application, the earphone has a wireless communication module that supports wireless communication. This wireless communication module can be a Bluetooth module, a UWB (Ultra Wide Band) module, or other functional modules used for wireless communication.

[0018] In the embodiments of this application, the wireless communication module can also be a WIFI module, and the headset can also be called a WIFI headset. A WIFI module refers to a module that conducts wireless communication based on the IEEE 802.11 protocol family. It can operate in infrastructure mode, point-to-point mode, or private communication mode, as can be found in the prior art.

[0019] Compared to other types of wireless communication, Wi-Fi communication consumes more power. Entering a sleep mode for the Wi-Fi module significantly reduces power consumption, thereby improving the headphone's battery life. Therefore, when the method provided in this application is applied to headphones with a Wi-Fi module, it can effectively reduce the headphone's power consumption and improve its battery life.

[0020] The wireless communication module may also include one or more communication modules of different types, without any restrictions.

[0021] In embodiments of this application, the headphones may include a single headphone or a pair of headphones, with the headphone pair comprising a left and a right headphone, each including a wireless communication module. The left and right headphones can be interconnected via the wireless communication modules and also establish a communication connection with an audio source to receive audio data. The left and right headphones can also cooperate in receiving audio data in other ways, which are not limited in this invention.

[0022] In this embodiment, the sleep state refers to a low-power operating state of the wireless communication module relative to its normal operating state. In this state, the wireless communication module does not continuously receive audio data, thereby reducing power consumption. Furthermore, in addition to receiving audio data, the sleep state also includes other power-saving control methods. For example, in different implementations, the sleep state may include turning off or reducing the power consumption of the radio frequency unit, reducing the wake-up frequency, or entering a power-saving mode supported by the protocol. There are various specific implementations of the sleep mode; the above are merely examples, and further details can be found in existing technologies.

[0023] Therefore, if the wireless communication module is in sleep mode, power consumption can be significantly reduced. However, when the wireless communication module is woken from sleep mode, it typically needs to perform operations such as powering on the RF unit, clock initialization, protocol synchronization, and data monitoring, which incurs some energy overhead. In some cases, the fixed energy overhead caused by waking up is only used for communication preparation or monitoring operations and does not necessarily correspond to actual audio data reception. Furthermore, in the wake-up state (normal operating state), the wireless communication module and its related control units operate in a relatively high-power state.

[0024] Therefore, when the wake-up frequency of the wireless communication module is high, the number of high-power operations mentioned above increases per unit time, and the continuous sleep time is cut off, reducing the proportion of entering low-power or deep sleep states, which leads to an increase in overall power consumption.

[0025] In the embodiments of this application, the headphones can communicate with the audio source device via a wireless communication module to receive audio data sent by the audio source device. The audio source device includes, but is not limited to, mobile phones, computers, smart terminals, servers, etc.

[0026] In some embodiments of this application, the audio source device may be a cloud server, and the left and right earphones may establish a WiFi connection with a wireless access point through their respective WiFi modules to receive audio data from the cloud server.

[0027] Headphones can also incorporate other modules and circuits, such as memory, speakers, and processors. For details on the specific structure and operation of headphones, please refer to existing technologies; further details will not be elaborated upon here.

[0028] Next, the sleep-based headphone control method provided in the embodiments of this application will be described. Please refer to [link / reference]. Figure 1 , Figure 1 A flowchart illustrating a sleep-based headphone control method according to an embodiment of this application. The sleep-based headphone control method includes: S110, obtain the current working mode of the headphones.

[0029] In the embodiments of this application, the operating modes of the headphones include at least two types: sleep mode and non-sleep mode. It is important to distinguish that the sleep mode and non-sleep mode mentioned in the embodiments of this application are operating modes of the headphones, named according to the adapted scenario. For example, sleep mode is suitable for use when the user is asleep, or is used to characterize the user's sleep state, while non-sleep mode is suitable for use when the user is not asleep, rather than the headphones or wireless communication module entering sleep mode. The low-power state of the wireless communication module can be called a hibernation state. In different operating modes, the headphones need to control the wireless communication module to enter or wake up from hibernation mode; that is, sleep mode and non-sleep mode include control over the wireless communication module entering and waking up from hibernation mode.

[0030] In one embodiment, the current operating mode of the headphones can be obtained by at least one of the following methods: obtaining a mode switching signal and determining the current operating mode based on the mode switching signal; obtaining the detection result of an inertial sensor and determining the current operating mode based on the detection result; obtaining the current time and determining the current operating mode based on the current time.

[0031] First, the mode switching signal can be emitted by the user through a terminal device wirelessly connected to the headphones, such as a mobile phone, tablet, or smartwatch, or it can be emitted by a switch on the headphones themselves, such as a button or touch input. The headphones will switch to the corresponding operating mode via the mode switching signal; therefore, the current operating mode can also be determined based on the mode switching signal.

[0032] Next, the headphones can have inertial sensors or inertial measurement units (IMUs) to detect changes in the headphones' posture and motion. Based on the detection results of the inertial sensors or IMUs, the user's current posture and motion state can be determined. This allows for the assessment of the user's current state, such as whether they are standing, sitting, lying down, or running, thus determining the user's possible current state and the corresponding operating mode. Furthermore, a mode switching signal can be generated based on the inertial sensor detection results to control the headphones to switch modes.

[0033] In some embodiments, users can also set a time period during which the headphones are controlled to be in sleep mode or non-sleep mode. For example, from 1 a.m. to 7 a.m., the headphones are set to sleep mode and switched to sleep mode.

[0034] In addition, it can also monitor the interaction status between the user and the headphones, determine the working mode of the headphones based on the interaction status, and control the switching of the working mode. The interaction status includes, but is not limited to, whether the user sends non-audio data to the headphones through other terminal devices, or whether the headphones are controlled based on the buttons or touch areas on the headphones.

[0035] S120, determine the target wake-up frequency corresponding to the current working mode based on the first preset control strategy.

[0036] Putting the wireless communication module into sleep mode can reduce its power consumption, thereby reducing the power consumption of the headphones. However, regardless of the operating mode, if the headphones need to continuously play audio, they must continuously acquire audio data to maintain playback. Acquiring audio data requires the wireless communication module to function; therefore, it is necessary to periodically wake the wireless communication module from sleep mode to receive audio data.

[0037] The wake-up frequency characterizes the frequency at which the wireless communication module is woken from its sleep state. This frequency can be reflected by the wake-up interval between two wake-ups. Therefore, the target sleep-up frequency and wake-up frequency in this embodiment are used to control the wake-up interval between waking the wireless communication module from its sleep state. Since the sleep duration is affected by various factors, the duration of a single sleep cycle may not be fixed. For example, poor communication quality may cause more time to be needed to receive audio data after waking up, which would shorten the duration of a single sleep cycle. Therefore, the wake-up frequency can also characterize the time interval between two adjacent wake-up operations.

[0038] The wireless communication module stops receiving audio data and enters a sleep state after receiving the audio data, thereby reducing power consumption. It then resumes receiving audio data upon being woken up. Therefore, sleep and wake-up are relative concepts. If the wake-up frequency is too high (i.e., the interval between two consecutive wake-ups is small), the time the wireless communication module spends in sleep mode will be shortened. However, since waking up also incurs a specified energy cost, excessively high wake-up frequency will still result in significant power consumption for the wireless communication module.

[0039] If the wake-up frequency of the wireless communication module is too low and the interval between two consecutive wake-ups is too long, although it will make the single sleep duration of the wireless communication module longer, this requires the headphones to pre-store enough audio data to play during the sleep period of the wireless communication module, which places high demands on storage. At the same time, because the audio data is cached, it will cause audio playback delay, affecting the real-time performance of audio playback, and may result in situations such as audio and video desynchronization between the mobile phone and the headphones.

[0040] Therefore, both excessively high and excessively low wake-up frequencies have their advantages and disadvantages, making it difficult to simultaneously meet the needs of different scenarios. Based on this, in the embodiments of this application, different working modes can be provided for different scenarios, with different working modes having different wake-up frequencies to adapt to the respective requirements of different scenarios regarding headphone battery life, playback latency, and quality. Accordingly, in the embodiments of this application, a first preset control strategy can be used to record the wake-up frequencies corresponding to different modes. During use, the target wake-up frequency adapted to the current working mode is determined from the first preset control strategy. For both sleep and non-sleep states, the user's ability to perceive the outside world is significantly weakened during sleep. Based on this, the user typically does not consider the quality and real-time performance of audio playback; the purpose of playing audio is usually to play white noise, music, etc., to aid sleep. Therefore, the wake-up interval corresponding to the second wake-up frequency in sleep mode can be longer to reduce power consumption.

[0041] Conversely, when users are not asleep, their perception of the outside world is more acute. Based on this, audio playback includes, but is not limited to, music, game sounds, and video sounds. These scenarios have certain requirements for the quality and real-time performance of audio playback. Therefore, the wake-up interval corresponding to the first wake-up frequency in non-sleep mode should not be too long.

[0042] Based on the above reasons, in this embodiment of the application, the first preset control strategy includes a first sleep frequency wake-up frequency corresponding to the non-sleep mode and a second sleep frequency wake-up frequency corresponding to the sleep mode, and the first wake-up frequency is higher than the second wake-up frequency, that is, the wake-up interval time corresponding to the first wake-up frequency is less than the wake-up interval time corresponding to the second wake-up frequency.

[0043] The headphones include a buffer unit for buffering audio data. When the wireless communication module is in sleep mode, the headphones can play the buffered audio data to maintain audio playback. The amount of buffered audio data is related to the wake-up interval of the wireless communication module.

[0044] Therefore, in one embodiment, the headphones buffer the received audio data before playing it. On this basis, the wireless communication module is in a sleep state, which allows the headphones to wake up the wireless communication module when the buffered audio data is less than a preset threshold. The preset threshold can then be adjusted to adjust the wake-up frequency.

[0045] Alternatively, in an embodiment of this application, the headphones may also wake up the wireless communication module based on a preset time interval, and the audio data corresponding to the target buffer threshold must at least support playback by the headphones until the next wake-up of the wireless communication module. Here, the preset time interval refers to the interval between two adjacent wake-up operations. In this embodiment, the headphones also need to buffer sufficient audio data to support playback until the next wake-up of the wireless communication module, where the duration refers to the time between the moment the buffered audio data reaches the target buffer threshold and the next wake-up time.

[0046] In this embodiment, the first preset control strategy may further include: the target cache threshold corresponding to the first wake-up frequency is the first cache threshold, and the target cache threshold corresponding to the second wake-up frequency is the second cache threshold, and the first cache threshold is less than the second cache threshold.

[0047] In this embodiment, if the current operating mode is determined to be a non-sleep mode, then the corresponding target wake-up frequency is determined as a first wake-up frequency, and the corresponding target cache threshold is determined as a first cache threshold. If the current operating mode is determined to be a sleep mode, then the corresponding target wake-up frequency is determined as a second wake-up frequency, and the corresponding target cache threshold is determined as a second cache threshold. Alternatively, the first cache threshold can be determined directly based on the non-sleep mode, and the second cache threshold can be determined based on the sleep mode. The above description is merely for illustrative purposes to facilitate understanding of the relationships between the concepts and should not be construed as a limitation of this application.

[0048] In sleep mode, the wake-up interval of the wireless communication module is longer, or the duration of a single sleep state needs to be longer, requiring the headphones to play for a longer period. Therefore, more audio data needs to be cached. Conversely, in non-sleep mode, the wake-up interval of the wireless communication module is shorter, or the duration of a single sleep state needs to be shorter to meet the requirements of real-time playback. Therefore, it is not advisable to cache too much data. Based on this, the first cache threshold needs to be lower than the second cache threshold.

[0049] In one embodiment of this application, the second cache threshold is significantly greater than the first cache threshold, and the second cache threshold can be many times greater than the first cache threshold.

[0050] In one embodiment of this application, the first buffer threshold corresponds to the amount of buffered audio data used to ensure audio playback startup latency, which may correspond to audio data on the order of hundreds of milliseconds. The second buffer threshold corresponds to the amount of buffered audio data used to extend the continuous sleep time of the wireless communication module, which may correspond to audio data on the order of several seconds to tens of seconds.

[0051] The specific values ​​of the first and second cache thresholds can be configured based on various factors such as headphone performance, actual needs, and scenarios, and no specific restrictions are imposed here.

[0052] In some other embodiments of this application, the wake-up frequency can also be adjusted by adjusting the amount of audio data received by the wireless communication module.

[0053] For example, in this embodiment, the target wake-up frequency includes a target data volume threshold, and the first preset control strategy includes: the target data volume threshold corresponding to the first wake-up frequency is a first data volume threshold, and the target data volume threshold corresponding to the second wake-up frequency is a second data volume threshold, and the first data volume threshold is less than the second data volume threshold.

[0054] Accordingly, in this embodiment, determining the target wake-up frequency corresponding to the current working mode based on the first preset control strategy may include: when the current working mode is determined to be a non-sleep mode, determining the target wake-up frequency as a first wake-up frequency and determining the corresponding target data volume threshold as a first data volume threshold, or directly determining the target data volume threshold corresponding to the non-sleep mode as the first data volume threshold; when the current working mode is determined to be a sleep mode, determining the target wake-up frequency as a second wake-up frequency and determining the corresponding target data volume threshold as a second data volume threshold, or directly determining the target data volume threshold corresponding to the sleep mode as the second data volume threshold. The setting methods for the first data volume threshold and the second data volume threshold are the same as the setting methods for the aforementioned first cache threshold and second cache threshold, and will not be elaborated here.

[0055] Similarly, in this embodiment, the wireless communication module can be woken up when the data volume is below a preset threshold. Alternatively, the headphones can wake up the wireless communication module based on a preset time interval, and the audio data corresponding to the target data volume threshold can support playback by the headphones until the next time the wireless communication module is woken up.

[0056] In the embodiments of this application, the preset time interval is not necessarily equal to the single sleep duration of the wireless communication module, because after waking up, it is still necessary to receive data through the wireless communication module. The data reception is affected by communication quality and other factors, which will lead to different data reception durations. Under the condition that the wake-up interval is the same, the remaining sleep time will also be different.

[0057] In other embodiments of this application, the preset time interval can also be directly adjusted. In this embodiment, the first preset control strategy may include: the target sleep duration corresponding to the first wake-up frequency is the first time interval, and the target sleep duration corresponding to the second wake-up frequency is the second time interval; the first time interval is less than the second time interval.

[0058] In this embodiment, determining the target wake-up frequency corresponding to the current working mode based on the first preset control strategy may include: if the current working mode is a non-sleep mode, then determining the target wake-up frequency as a first wake-up frequency, and the preset time interval corresponding to the first wake-up frequency as a first time interval; if the current working mode is a sleep mode, then determining the target wake-up frequency as a second wake-up frequency, and the preset time interval corresponding to the second wake-up frequency as a second time interval. In this embodiment, it is also necessary to ensure that the audio data buffered by the headphones supports playback until the next wake-up of the wireless communication module.

[0059] In the above embodiments, to ensure that the audio data cached by the headphones supports playback until the next wake-up of the wireless communication module, the amount of audio data to be cached can be determined by determining the time required until the next wake-up and based on that time.

[0060] In addition, the wake-up frequency can be adjusted and controlled by adjusting other types of parameters. The above are just examples and are not intended to be limiting.

[0061] It should be noted that sleep and non-sleep are two common scenarios where power consumption and real-time performance conflict significantly. Therefore, the method provided in this application is illustrated using these two scenarios as examples. In other embodiments of this application, more operating modes and wake-up frequencies can be configured for the headphones, which can be configured according to actual needs and are not limited here.

[0062] When the headphone battery is low, the sleep time of the wireless communication module can be further extended to improve the headphone's battery life. Therefore, in some embodiments of this application, the sleep-based headphone control method may further include: monitoring the remaining battery power of the headphone; and adjusting the target wake-up frequency based on the remaining battery power and a first battery strategy.

[0063] In this embodiment, the first power strategy includes: increasing the single sleep duration corresponding to the target wake-up frequency as the remaining power decreases. This can be achieved by increasing the target cache threshold, the target data volume threshold, or the preset sleep duration as the remaining power decreases.

[0064] In some embodiments, the first power strategy may be to proportionally increase the duration of a single sleep cycle based on the ratio of power consumed to total power. In other embodiments, the first power strategy may also be to set different power zones, with different zones having corresponding adjusted target wake-up frequencies or adjusted proportions of the target wake-up frequencies. There may be various specific methods, which are not limited here.

[0065] In this way, the earphones will extend the duration of a single sleep cycle of the wireless communication module as the battery level decreases, thereby reducing the power consumption of the wireless communication module and improving the earphones' battery life.

[0066] S130, control the wireless communication module to sleep and wake up based on the target wake-up frequency.

[0067] In the embodiments of this application, after determining the target wake-up frequency, the wireless communication module is controlled to enter a sleep state and to wake up to receive audio data based on the target wake-up frequency. For example, if the current working mode is determined to be non-sleep mode, the wireless communication module is controlled to enter a sleep state and wake up based on a first wake-up frequency; if the current working mode is determined to be sleep mode, the wireless communication module is controlled to enter a sleep state and wake up based on a second wake-up frequency.

[0068] In this embodiment of the application, after the wireless communication module has finished receiving audio data, it stops receiving audio data and enters a sleep state, and resumes receiving audio data after being woken up.

[0069] The foregoing embodiments mentioned different methods for controlling the wake-up frequency, such as using cache thresholds, data volume thresholds, and sleep duration to control the wake-up frequency. Therefore, when controlling the sleep and wake-up of the wireless communication module, it is also necessary to monitor the corresponding parameters.

[0070] For example, in one embodiment, the target wake-up frequency includes a target buffer threshold. Controlling the sleep and wake-up of the wireless communication module based on the target wake-up frequency may include: monitoring the current buffer amount of audio data in the headphones; controlling the wireless communication module to enter a sleep state when it is determined that the current buffer amount is greater than the target buffer threshold; and waking up the wireless communication module when the current buffer amount of audio data is less than a preset threshold.

[0071] For example, the target wake-up frequency includes a target data volume threshold. Controlling the sleep and wake-up of the wireless communication module based on the target wake-up frequency includes: monitoring the current data reception volume of the audio data after the wireless communication module starts receiving audio data; controlling the wireless communication module to enter sleep mode if the current data reception volume is greater than the target data volume threshold; and waking up the wireless communication module when the current buffer volume of audio data is less than a preset threshold.

[0072] The target buffer threshold and the target data volume threshold each correspond to audio data that can support the headphones playing until the next wake-up of the wireless communication module. The target buffer threshold and the target data volume threshold can be determined or measured by the audio data reception time and the preset time interval, and the specific values ​​are not limited here.

[0073] For example, the target wake-up frequency includes a preset time interval. The headphones wake up the wireless communication module based on the preset time interval, and the audio data cached by the headphones at least supports playback until the next wake-up of the wireless communication module. Controlling the sleep and wake-up of the wireless communication module based on the target wake-up frequency may include: waking up the wireless communication module once every preset time interval; when the wireless communication module is not in a sleep state, if it is determined that the cached audio data supports playback until the next wake-up of the wireless communication module, controlling the wireless communication module to enter the sleep state.

[0074] In one embodiment of the periodic wake-up of the wireless communication module, the network connection quality between the earphone's wireless communication module and the audio source device affects the efficiency and accuracy of audio data reception, thereby reducing the amount of audio data received by the earphone within the same time period. Based on this, in some embodiments of this application, the network connection quality of the wireless communication module can be monitored; if the network connection quality is determined to be lower than a preset network connection quality threshold, the target wake-up frequency is reduced to extend the wake-up interval.

[0075] This allows the wireless communication module to be woken up more quickly to receive audio data, reducing the likelihood of audio playback interruptions due to insufficient buffered data and maintaining continuous audio playback. The shortened wake-up interval corresponding to the target wake-up frequency is related to the reception accuracy corresponding to different network connection qualities. The specific settings can be determined based on the actual performance of the headphones or other factors, and will not be elaborated upon here.

[0076] Before each time the wireless communication module enters sleep mode, it is necessary to determine the conditions under which the wireless communication module can enter sleep mode, that is, the module is in at least one of the following states: the wireless communication module is not receiving audio data; the wireless communication module has completed receiving the current wireless frame of audio data; or the preset interactive operation has been completed.

[0077] In this process, audio data is transmitted via wireless frames. Before the wireless communication module enters a sleep state, it is necessary to determine whether the wireless communication module has not received audio data or whether the current wireless frame has been received, so as to avoid affecting the reception of audio data and thus affecting the integrity and continuity of audio playback.

[0078] Preset interactive operations include, but are not limited to, confirming the current data, stopping new data requests, or updating communication status information. These operations are used to indicate whether the wireless communication module has completed receiving the current wireless frame or is not in a receiving state, ensuring the integrity and continuity of audio playback.

[0079] The foregoing embodiments primarily address how to control the sleep and wake-up of the wireless communication module to meet the real-time and power consumption requirements of audio playback. In other embodiments of this application, audio playback latency can be further reduced from the perspective of audio playback itself.

[0080] For example, in this embodiment, audio playback can be controlled based on a target playback threshold. When the cached audio data reaches the target playback threshold, the cached audio data is played. The target playback threshold can be less than or equal to a target cache threshold / target data volume threshold. Therefore, when the wireless communication module receives audio data, the headphones can play audio without waiting for the wireless communication module to enter sleep mode before playing the cached audio. This reduces audio playback latency, helps ensure the continuity of audio playback, and extends the continuous sleep time of the wireless communication module. Correspondingly, the target playback threshold can also be adjusted according to the operating mode. For example, in one embodiment, the sleep-based headphone control method may further include: monitoring the current cached amount of audio data in the headphones; determining the target playback threshold corresponding to the current operating mode based on a second preset control strategy; and playing the cached audio data when the current cached amount is determined to be greater than the target playback threshold.

[0081] The second preset control strategy includes a first playback threshold corresponding to the non-sleep mode and a second playback threshold corresponding to the sleep mode, wherein the first playback threshold is less than the second playback threshold. When the current working mode is determined to be the non-sleep mode, the target playback threshold is determined to be the first playback threshold; when the current working mode is determined to be the sleep mode, the target playback threshold is determined to be the second playback threshold.

[0082] In this embodiment, the first playback threshold and the second playback threshold correspond to the amount of buffered audio data used to control the start of audio playback. The first playback threshold is smaller to ensure low start-up latency for audio playback in non-sleep mode. The second playback threshold is larger to ensure the continuity of audio playback in sleep mode and extend the continuous sleep time of the wireless communication module.

[0083] In this embodiment, the first playback threshold and the first buffer threshold are of the same order of magnitude, for example, both corresponding to several milliseconds or tens of milliseconds of audio data. The second playback threshold and the second buffer threshold are of the same order of magnitude, both corresponding to several seconds or tens of seconds of audio data.

[0084] Similarly, in this embodiment, the playback threshold can also be adjusted based on the remaining battery power of the headphones. For example, the sleep-based headphone control method may further include: monitoring the remaining battery power of the headphones; adjusting the target playback threshold based on the remaining battery power and a second battery power strategy; wherein the second battery power strategy includes: increasing the target playback threshold as the remaining battery power decreases. This allows for delayed audio playback, thereby shortening the operating time of the wireless communication module and extending the sleep time, thus reducing power consumption.

[0085] Based on the same inventive concept, this application also provides an earphone; please refer to [link / reference]. Figure 2 , Figure 2This is a structural block diagram of an earphone according to an embodiment of this application. The earphone 300 includes: a wireless communication module 320, a memory 330, a processor 310, and an audio playback module 340. The processor 310 is connected to the wireless communication module 320, the memory 330, and the audio playback module 340.

[0086] In embodiments of this application, the wireless communication module can be used to connect to an audio source device to acquire audio data. The memory is used to cache the audio data. The audio playback module is used to output the audio data. The processor is used to control the wireless communication module, the memory, and the audio playback module to execute the sleep-based headphone control method provided in any of the foregoing embodiments.

[0087] Currently, true wireless earbuds, due to their small size, can be worn by users without disturbing their sleep. The earbuds provided in this application are suitable for use in sleep scenarios; therefore, in the embodiments of this application, the earbuds can be true wireless earbuds.

[0088] In addition, in some other embodiments of this application, the headphones may also be other types of headphones to meet the requirements of headphone power consumption, battery life and continuous playback in other scenarios. The specific type is not limited here.

[0089] Based on the same inventive concept, embodiments of this application also provide a computer-readable storage medium storing a program thereon, which, when run on a processor, causes the processor to execute the audio playback method provided in the above embodiments.

[0090] The readable storage medium can be any available medium that the processor can access, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs (digital video discs)), or semiconductor media (e.g., SSDs (solid state disks)).

[0091] If the sleep-based headphone control method is implemented as a software functional module and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause the communication module to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM (Read-Only Memory), RAM (Random Access Memory), magnetic disks, or optical disks.

[0092] Based on the same inventive concept, this application also provides a computer program product, which includes a computer program that, when executed by a communication module, implements the aforementioned sleep-based headphone control method. The computer program product can be a software installation package, a program script, etc.

[0093] In the embodiments provided in this application, it should be understood that the disclosed methods and devices can also be implemented in other ways. The device embodiments described above are merely illustrative. The functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0094] The above embodiments can be freely combined without conflict, and the resulting embodiments are covered within the protection scope of this application.

[0095] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0096] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A sleep-based headphone control method, characterized in that, Applied to headphones, the headphones including a wireless communication module; the sleep-based headphone control method includes: Obtain the current operating mode of the headphones; the operating mode of the headphones includes a sleep mode that represents the user's sleep state and a non-sleep mode that represents the user's non-sleep state. The target wake-up frequency corresponding to the current working mode is determined based on a first preset control strategy; wherein, the target wake-up frequency is used to control the wake-up interval duration for waking the wireless communication module from the sleep state; the first preset control strategy includes a first wake-up frequency corresponding to the non-sleep mode and a second wake-up frequency corresponding to the sleep mode, and the first wake-up frequency is higher than the second wake-up frequency; The wireless communication module is controlled to sleep and wake up based on the target wake-up frequency; wherein, the wireless communication module stops receiving audio data and enters the sleep state after the audio data reception is completed, and resumes receiving audio data after being woken up.

2. The method according to claim 1, characterized in that, The headphones buffer the received audio data before playing it; the target wake-up frequency includes a target buffer threshold. When the wireless communication module is in the sleep state, the earphone wakes up the wireless communication module when the cached audio data is less than a preset threshold; or, the earphone wakes up the wireless communication module based on a preset time interval, and the audio data corresponding to the target cache threshold is sufficient for the earphone to play until the next time the wireless communication module is woken up. The method of controlling the sleep and wake-up of the wireless communication module based on the target wake-up frequency includes: Monitor the current buffer size of the audio data in the headphones; If the current buffer size is determined to be greater than the target buffer threshold, the wireless communication module is controlled to enter the sleep state; the current buffer size being greater than the target buffer threshold indicates that the audio data reception is complete. The first preset control strategy includes: The target cache threshold corresponding to the first wake-up frequency is the first cache threshold, and the target cache threshold corresponding to the second wake-up frequency is the second cache threshold, and the first cache threshold is less than the second cache threshold.

3. The method according to claim 1, characterized in that, The headphones buffer the received audio data before playing it; the target wake-up frequency includes a target data volume threshold. When the wireless communication module is in the sleep state, the earphone wakes up the wireless communication module when the cached audio data is less than a preset threshold; or, the earphone wakes up the wireless communication module based on a preset time interval, and the audio data corresponding to the target data threshold is at least enough to support the earphone to play until the next time the wireless communication module is woken up. The method of controlling the sleep and wake-up of the wireless communication module based on the target wake-up frequency includes: Once the wireless communication module begins receiving the audio data, it monitors the current amount of audio data received. If the current data received is greater than the target data threshold, the wireless communication module is controlled to enter the sleep state; the current data received being greater than the target data threshold indicates that the audio data reception is complete. The first preset control strategy includes: The target data volume threshold corresponding to the first wake-up frequency is the first data volume threshold, and the target data volume threshold corresponding to the second wake-up frequency is the second data volume threshold, and the first data volume threshold is less than the second data volume threshold.

4. The method according to claim 1, characterized in that, The headphones buffer the received audio data before playing it; the target wake-up frequency includes a preset time interval; The earphone wakes up the wireless communication module based on the preset time interval, and the audio data cached by the earphone supports playback until the next time the wireless communication module is woken up; The method of controlling the sleep and wake-up of the wireless communication module based on the target wake-up frequency includes: The wireless communication module is woken up once every preset time interval; When the wireless communication module is not in the sleep state, if it is determined that the cached audio data supports playback until the next time the wireless communication module is woken up, the wireless communication module is controlled to enter the sleep state. The first preset control strategy includes: The preset time interval corresponding to the first wake-up frequency is the first time interval, and the preset time interval corresponding to the second wake-up frequency is the second time interval; the first time interval is less than the second time interval.

5. The method according to any one of claims 1-4, characterized in that, The sleep-based headphone control method further includes: Monitor the remaining battery power of the headphones; The target wake-up frequency is adjusted based on the remaining battery power and the first battery power strategy. The first power strategy includes: as the remaining power decreases, the wake-up interval corresponding to the target wake-up frequency increases.

6. The method according to any one of claims 1-4, characterized in that, The headphones buffer the received audio data before playing it. The sleep-based headphone control method further includes: Monitor the current buffer size of the audio data in the headphones; The target playback threshold corresponding to the current working mode is determined based on a second preset control strategy; the second preset control strategy includes a first playback threshold corresponding to the non-sleep mode and a second playback threshold corresponding to the sleep mode, and the first playback threshold is less than the second playback threshold; When it is determined that the current cache size is greater than the target playback threshold, the cached audio data is played.

7. The method according to claim 6, characterized in that, The sleep-based headphone control method further includes: Monitor the remaining battery power of the headphones; The target playback threshold is adjusted based on the remaining battery power and a second battery power strategy; wherein the second battery power strategy includes: the target playback threshold increases as the remaining battery power decreases.

8. The method according to any one of claims 1-4, characterized in that, The method of controlling the sleep and wake-up of the wireless communication module based on the target wake-up frequency includes: Before each time the wireless communication module is controlled to enter the sleep state, it is determined that the wireless communication module is in at least one of the following states: The wireless communication module is not receiving the audio data; The wireless communication module has completed receiving the current wireless frame of the audio data; Complete the preset interactive operations.

9. The method according to any one of claims 1-4, characterized in that, The step of obtaining the current working mode of the headphones includes: The current operating mode of the headphones can be obtained through at least one of the following methods: Acquire a mode switching signal and determine the current working mode based on the mode switching signal; Acquire the detection results from the inertial sensor and determine the current operating mode based on the detection results; Obtain the current time and determine the current working mode based on the current time.

10. An earphone, characterized in that, include: Wireless communication module, memory, processor, and audio playback module; The processor is connected to the wireless communication module, the memory, and the audio playback module, respectively. The wireless communication module is used to connect to the audio source device to obtain audio data; The memory is used to cache the audio data; The audio playback module is used to output the audio data; The processor is used to control the wireless communication module, the memory, and the audio playback module to execute the sleep-based headphone control method as described in any one of claims 1-9.

11. The earphone according to claim 10, characterized in that, The earphones mentioned are true wireless earphones.

12. A readable storage medium, characterized in that, The readable storage medium stores a program that, when run on a processor, causes the processor to implement the sleep-based headphone control method as described in any one of claims 1-9.