Audio device, audio system, control method of audio device, and storage medium
By introducing the first and second cycles into Bluetooth audio devices, and assigning audio information reception and decoding tasks, the problem of power consumption imbalance in TWS headphones is solved, and the power consumption balance and performance balance of the device is achieved.
Patent Information
- Application Number
- CN202311045790.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-17
- Publication Date
- 2025-02-21
AI Technical Summary
Due to different operating frequencies of TWS headphones in Bluetooth audio devices, the power consumption between the first sub-device and the second sub-device is unbalanced, affecting the long-term operating performance of the device.
By introducing a first type of cycle and a second type of cycle in the audio device, the audio information reception and decoding tasks are allocated between the first sub-device and the second sub-device respectively, ensuring a balance of power consumption between the two. The specific implementation method is that in the first type of cycle, the first sub-device first receives and decodes the audio information, and the second sub-device later receives and decodes the audio information; in the second type of cycle, the second sub-device first receives and decodes the audio Information, the first sub-device receives and decodes the audio information.
Through this method, the overall power consumption of the first sub-equipment and the second sub-equipment can be balanced, and the performance can be balanced after long-term operation, which solves the problem of power consumption imbalance.
Smart Images

Figure CN119497011A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and in particular, relates to an audio device, an audio system, a control method of an audio device, and a storage medium. Background Art
[0002] With the development of short-range wireless technologies such as Bluetooth (BT), the types of wireless devices that support wireless connections are also increasing. Among them, Bluetooth audio devices are devices with a wide range of uses, such as Bluetooth headsets. With the development of Bluetooth technology, True Wireless Stereo (TWS) audio devices and TWS audio devices that support Low Energy Audio (LE Audio) protocols have gradually appeared in Bluetooth audio devices. Among them, the playback level of audio data between the left and right earphones of the TWS headset needs to be synchronized. The LE Audio TWS in the related technology can include multiple sub-devices (such as left earphones and right earphones). Multiple sub-devices have different working modes due to the provisions of the Bluetooth protocol, and their working frequencies are different, which leads to unbalanced power consumption between multiple sub-devices. Summary of the invention
[0003] The embodiments of the present application provide an audio device, an audio system, a control method for an audio device, and a storage medium, which solve the problem of unbalanced power consumption between a first sub-device and a second sub-device of an audio device, and balance the power consumption and performance of the first sub-device and the second sub-device.
[0004] In a first aspect, an embodiment of the present application provides an audio device, which includes a first sub-device and a second sub-device;
[0005] In the first type of period, the first sub-device first receives the audio information and decodes it at the first operating frequency, and the second sub-device then receives the audio information and decodes it at the second operating frequency, and the first sub-device and the second sub-device play the decoded audio information simultaneously, and the second operating frequency is greater than the first operating frequency;
[0006] In the second type of cycle, the second sub-device first receives the audio information and decodes it at a third operating frequency, and the first sub-device then receives the audio information and decodes it at a fourth operating frequency, and the first sub-device and the second sub-device play the decoded audio information simultaneously, and the fourth operating frequency is greater than the third operating frequency.
[0007] In some embodiments, the first sub-device includes a first battery and the second sub-device includes a second battery;
[0008] If the remaining power of the first battery is greater than the remaining power of the second battery, and the difference between the remaining power of the first battery and the second battery is greater than a threshold, the audio device enters a second type cycle;
[0009] If the remaining power of the first battery is less than the remaining power of the second battery, and the difference between the remaining power of the first battery and the second battery is greater than a threshold, the audio device enters a first type cycle.
[0010] In some embodiments, the first sub-device and the second sub-device switch to operate in the second type of cycle after operating in the first type of cycle for a first preset time period; and / or
[0011] After the first sub-device and the second sub-device operate in the second type of cycle for a second preset time period, they switch to operate in the first type of cycle.
[0012] In some embodiments, the first-type cycle includes a first-type receiving sub-cycle and a first-type decoding sub-cycle, the first-type receiving sub-cycle includes a first time period and a second time period which are set successively, the first sub-device receives audio information in the first time period, and the second sub-device receives audio information in the second time period, and in each of the first-type decoding sub-cycles, the first sub-device decodes at a first operating frequency, and the second sub-device decodes at a second operating frequency;
[0013] The second type of cycle includes a second type of receiving sub-cycle and a second type of decoding sub-cycle, the second type of receiving sub-cycle includes a third time period and a fourth time period set successively, the second sub-device receives audio information in the third time period, and the first sub-device receives audio information in the fourth time period, and in each of the second type of decoding sub-cycle, the second sub-device decodes at the third operating frequency, and the first sub-device decodes at the fourth operating frequency.
[0014] In some embodiments, the first time period, the second time period, the third time period, and the fourth time period each include a plurality of receiving sub-windows, each receiving sub-window receives audio information once,
[0015] In each of the second time periods, when the second sub-device obtains valid audio information for the first time in a receiving sub-window, a first preset duration between the current first time and the end time of the first type of decoding sub-cycle is obtained, and a corresponding second operating frequency is obtained according to the first preset duration, different first durations correspond to different operating frequencies, and the first preset duration is inversely correlated with the operating frequency;
[0016] and / or
[0017] In each of the fourth time periods, when the first sub-device obtains valid audio information for the first time in a receiving sub-window, the second preset duration between the current second time and the end time of the second type of decoding sub-cycle is obtained, and the corresponding fourth operating frequency is obtained according to the second preset duration. Different second preset durations correspond to different operating frequencies, and the second preset duration is inversely correlated with the operating frequency.
[0018] In some embodiments, in each of the first time periods, when the first sub-device obtains valid audio information for the first time in a receiving sub-window, a third preset duration between the current third time and the end time of the first type of decoding sub-cycle is obtained, and the corresponding first operating frequency is obtained according to the third preset duration, different third preset durations correspond to different operating frequencies, and the third preset duration is inversely correlated with the operating frequency;
[0019] and / or
[0020] In each of the third time periods, when the second sub-device obtains valid audio information for the first time in a receiving sub-window, the fourth preset duration between the current fourth time and the end time of the second type of decoding sub-cycle is obtained, and the corresponding third operating frequency is obtained according to the fourth preset duration. Different fourth preset durations correspond to different operating frequencies, and the fourth preset duration is inversely correlated with the operating frequency.
[0021] In some embodiments, after each of the first time periods, the first sub-device decodes the audio information at the first operating frequency;
[0022] After each of the second time periods, the second sub-device decodes the audio information at the second operating frequency;
[0023] After each of the third time periods, the second sub-device decodes the audio information at the third operating frequency;
[0024] After each of the fourth time periods, the first sub-device decodes the audio information at the fourth operating frequency.
[0025] In a second aspect, an embodiment of the present application further provides an audio device system, which includes a main device, a first sub-device, and a second sub-device;
[0026] The master device controls the first sub-device and the second sub-device to enter a first-type cycle or a second-type cycle;
[0027] In the first type of period, the first sub-device first receives the audio information and decodes it at the first operating frequency, and the second sub-device then receives the audio information and decodes it at the second operating frequency, and the first sub-device and the second sub-device play the decoded audio information simultaneously, and the second operating frequency is greater than the first operating frequency;
[0028] In the second type of cycle, the second sub-device first receives the audio information and decodes it at a third operating frequency, and the first sub-device then receives the audio information and decodes it at a fourth operating frequency, and the first sub-device and the second sub-device play the decoded audio information simultaneously, and the fourth operating frequency is greater than the third operating frequency.
[0029] In a third aspect, an embodiment of the present application further provides a method for controlling an audio device, wherein the audio device includes a first sub-device and a second sub-device, and the control method includes:
[0030] In the first type of period, the first sub-device is controlled to first receive audio information and decode it at a first operating frequency, the second sub-device is controlled to receive audio information and decode it at a second operating frequency, and the first sub-device and the second sub-device are controlled to play the decoded audio information simultaneously, and the second operating frequency is greater than the first operating frequency;
[0031] During the second type of cycle, the second sub-device is controlled to first receive the audio information and decode it at the third operating frequency, the first sub-device is controlled to receive the audio information and decode it at the fourth operating frequency, the first sub-device and the second sub-device are controlled to play the decoded audio information simultaneously, and the fourth operating frequency is greater than the third operating frequency.
[0032] In some embodiments, the control method further includes:
[0033] Acquire a first remaining power of the first sub-device and a second remaining power of the second sub-device;
[0034] If the first remaining power is greater than the second remaining power, and the difference between the first remaining power and the second remaining power is greater than a power threshold, controlling the first sub-device and the second sub-device to enter a second type of cycle;
[0035] If the first remaining power is less than the second remaining power, and the difference between the first remaining power and the second remaining power is greater than a power threshold, the first sub-device and the second sub-device are controlled to enter a first type cycle.
[0036] In some embodiments, the control method further includes:
[0037] After the first sub-device and the second sub-device operate in the first type of cycle for a first preset time period, controlling the first sub-device and the second sub-device to switch to operate in the second type of cycle; and / or
[0038] After the first sub-device and the second sub-device operate in the second type of cycle for a second preset time period, the first sub-device and the second sub-device are controlled to switch to operate in the first type of cycle.
[0039] In a fourth aspect, an embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is run on a computer, the computer executes any of the above-mentioned methods for controlling an audio device.
[0040] In the audio device provided in the embodiment of the present application, in the first type of cycle, the first sub-device receives the audio information first, and the second sub-device receives the audio information later. Because the first sub-device and the second sub-device need to play the decoded information at the same time, the first sub-device has more time to decode than the second sub-device, and can decode the first audio information with a lower operating frequency (such as the first operating frequency). The second sub-device has less time to decode than the first sub-device, and needs to use a higher operating frequency (such as the second operating frequency) to decode the second audio information. It can be understood that the working principle of the chip is that the lower the frequency, the lower the required voltage, the lower the power consumption, the lower the corresponding working current, the less leakage, and the lower the overall power consumption. That is, the first sub-device decodes with a lower operating frequency compared to the second sub-device decodes with a higher operating frequency, and the overall power consumption is lower. Similarly, in the second type of cycle, the second sub-device decodes with a lower operating frequency compared to the first sub-device decodes with a higher operating frequency, and the overall power consumption is lower. The first sub-device and the second sub-device can switch to the first type cycle or the second type cycle as needed, so that the overall power consumption of the first sub-device and the second sub-device is balanced, and the performance is balanced after long-term operation, which solves the problem of unbalanced performance of the first sub-device and the second sub-device with different operating frequencies after long-term operation in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0042] Figure 1 A schematic diagram of the structure of an audio device provided in an embodiment of the present application.
[0043] Figure 2 for Figure 1The illustrated diagram is of the operation of the audio device in the first type of cycle.
[0044] Figure 3 for Figure 1 The diagram shows the operation of the audio device in the second cycle.
[0045] Figure 4 for Figure 1 The illustrated operation diagram is of an audio device switching between a first type of cycle and a second type of cycle.
[0046] Figure 5 for Figure 1 The diagram shows the operation of the audio device when receiving audio information.
[0047] Figure 6 A schematic diagram of the structure of an audio device system provided in an embodiment of the present application.
[0048] Figure 7 for Figure 6 Schematic diagram of information transmission between various devices in the audio device system shown.
[0049] Figure 8 This is a flowchart of a method for controlling an audio device provided in an embodiment of the present application.
[0050] Fig. 9 Another flow chart of the method for controlling an audio device provided in an embodiment of the present application.
[0051] Fig.10 Another flow chart of the method for controlling an audio device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0053] In order to more completely understand the present application and its beneficial effects, the following description will be made in conjunction with the accompanying drawings. In the following description, the same reference numerals represent the same parts.
[0054] The present application embodiment provides an audio device, see Figure 1 , Figure 1A schematic diagram of the structure of an audio device provided in an embodiment of the present application. The audio device 100 includes a first sub-device 120 and a second sub-device 140. For example, the audio device 100 is a Bluetooth headset, the first sub-device 120 is one of the left headset and the right headset, and the second sub-device 140 is the other of the left headset and the right headset. For another example, the audio device is a Bluetooth speaker, the first sub-device is one of a plurality of sub-speakers, the second sub-device is another of a plurality of sub-speakers, and the number of sub-speakers can be set as needed, such as 2, 4, etc.
[0055] Please combine Figure 2 , Figure 2 for Figure 1 The working diagram of the audio device in the first type of cycle is shown. In the figure, the first sub-device is the left earphone and the second sub-device is the right earphone. In the first type of cycle, the first sub-device 120 first receives the audio information and decodes it at the first working frequency, and the second sub-device 140 then receives the audio information and decodes it at the second working frequency. The first sub-device and the second sub-device play the decoded audio information at the same time, and the second working frequency is greater than the first working frequency.
[0056] For example, within any period of the first type of period, the first sub-device 120 receives the first audio information at a first moment, and decodes the first audio information at a first operating frequency to obtain first decoded information; the second sub-device 140 receives the second audio information at a second moment, and decodes the second audio information at a second operating frequency to obtain second decoded information, the second moment is delayed from the first moment, and the second operating frequency is greater than the first operating frequency; the first sub-device 120 plays the first decoded information, and the second sub-device 140 plays the second decoded information at the same time.
[0057] Please combine Figure 3 , Figure 3 for Figure 1 The working diagram of the audio device in the second type of cycle is shown. In the second type of cycle, the second sub-device 140 first receives the audio information and decodes it at the third working frequency, and the first sub-device 120 then receives the audio information and decodes it at the fourth working frequency, and the first sub-device 120 and the second sub-device 140 play the decoded audio information at the same time, and the fourth working frequency is greater than the third working frequency.
[0058] For example, within any period of the second type of period, the second sub-device 140 obtains the third audio information at a third moment, and decodes the third audio information at a third operating frequency to obtain third decoded information; the first sub-device 120 obtains the fourth audio information at a fourth moment, and decodes the fourth audio information at a fourth operating frequency to obtain fourth decoded information, the fourth moment is delayed from the third moment, and the fourth operating frequency is greater than the third operating frequency; the first sub-device 120 plays the fourth decoded information, and the second sub-device 140 plays the third decoded information at the same time.
[0059] In the first type of cycle, the first sub-device receives the audio information first, and the second sub-device receives the audio information later. Because the first sub-device and the second sub-device need to play the decoded information at the same time, the first sub-device has more time to decode than the second sub-device, and can then decode the first audio information with a lower operating frequency (such as the first operating frequency). The second sub-device has less time to decode than the first sub-device, and needs to use a higher operating frequency (such as the second operating frequency) to decode the second audio information. It can be understood that the working principle of the chip is that the lower the frequency, the lower the required voltage, the lower the power consumption, the corresponding operating current, the less leakage, and the lower the overall power consumption. That is, the first sub-device decodes with a lower operating frequency than the second sub-device decodes with a higher operating frequency, and the overall power consumption is lower.
[0060] Similarly, in the second type of cycle, the second sub-device decodes at a lower operating frequency than the first sub-device decodes at a higher operating frequency, and the overall power consumption is lower. The first sub-device and the second sub-device can switch to the first type of cycle or the second type of cycle as needed, so that the overall power consumption of the first sub-device and the second sub-device is balanced, and the performance is balanced after long-term operation, which solves the problem of uneven performance of the first sub-device and the second sub-device with different operating frequencies after long-term operation in the related art.
[0061] It is understandable that the total power consumption of a chip mainly includes dynamic power consumption and static power consumption. Dynamic power consumption is mainly caused by the charging and discharging of capacitors. It is related to three parameters, namely capacitance, operating frequency and voltage, which are directly proportional to power consumption. The formula for dynamic power consumption is:
[0062] P=CV 2 f,
[0063] Among them, P is dynamic power consumption, C is capacitance, V is voltage, and f is operating frequency.
[0064] As shown in the above formula, the larger the capacitance, the higher the operating frequency, the larger the core voltage, and the higher the dynamic power consumption. In this embodiment, the capacitance value remains unchanged, the decoding frequency becomes lower, the required voltage also becomes lower, and the dynamic power consumption will become lower. At the same time, the decoding frequency becomes lower, the voltage becomes lower, the corresponding unit operating current becomes lower, the leakage becomes less, and the overall power consumption becomes lower. For example, in a decoding scenario, the operating frequency is set to 168M, the corresponding voltage is 1.2V, and the overall power consumption is 9.57mA. The operating frequency is set to 67M, the corresponding voltage is 1V, and the overall power consumption is 8.66mA.
[0065] It is understandable that the static power consumption of a chip is the power consumption when the chip is in standby mode, which is mainly generated by the leakage current inside the chip. A significant feature of static power consumption is that it varies greatly with the change of the junction temperature (TJ) of the device. The larger the TJ, the greater the power consumption; the smaller the TJ, the smaller the power consumption. Controlling the junction temperature of the chip can effectively affect the static power consumption of the chip. In this embodiment, when the decoding frequency becomes lower and the corresponding power consumption becomes lower, the junction temperature will also become lower, the leakage power consumption will also become lower, the static power consumption will become lower, and the overall power consumption will become lower.
[0066] Please combine Figure 4 , Figure 4 for Figure 1 The working diagram of the audio device shown is a diagram of switching between the first and second types of cycles. In some embodiments, the first sub-device 120 includes a first battery (not shown in the figure), and the second sub-device 140 includes a second battery (not shown in the figure), and the audio device 100 can be controlled to enter the first or second type of cycle according to the first battery and the second battery.
[0067] Specifically, when the audio device 100 is running in the first type cycle, if the remaining power of the first battery is greater than the remaining power of the second battery, and the difference between the remaining power of the first battery and the second battery is greater than the power threshold, the audio device 100 enters the second type cycle. When the audio device 100 is running in the second type cycle, if the remaining power of the first battery is less than the remaining power of the second battery, and the difference between the remaining power of the first battery and the second battery is greater than the power threshold, the audio device 100 enters the first type cycle. That is, the first sub-device 120 and the second sub-device 140 can determine whether to run in the first type cycle or the second type cycle according to the remaining power of the first battery and the second battery.
[0068] For ease of understanding, the following is an example of an audio device LE Audio TWS product. The audio device 100 (LE Audio TWS product) includes a first sub-device 120 (such as a left earphone) and a second sub-device 140 (such as a right earphone). The main device Dongle establishes a CIS link with the left earphone and the right earphone respectively, forming a CIG link. The CIG link first sends the left channel audio to the left earphone through the left earphone CIS link, and then sends the right channel audio to the right earphone through the right earphone CIS link.
[0069] It should be noted that in the relevant technology, when establishing the CIG link, it is determined that the left earphone CIS link takes precedence over the right earphone CIS link, and this will not change later. TWS earphones require the left and right earphones to play the left and right channel audio respectively at the same time; the left earphone gets the data first, has more time to decode, and can use a relatively low operating frequency to decode, so the power consumption will be relatively low (usually the lower the chip IC frequency, the less leakage, and the lower the overall power consumption), while the right earphone gets the data later. In order to complete the decoding at the same time as the left earphone is decoding, it needs to complete the decoding in a shorter time, which requires a relatively high operating frequency to decode, and its power consumption will be relatively high; then the right earphone will inevitably run out of power faster, so the battery life of a pair of TWS earphones becomes shorter due to the high power consumption of the right earphone.
[0070] In this embodiment, the CIS link of the right earphone can be changed to take precedence over the CIS link of the left earphone as needed. Among them, the working frequencies of the earphones corresponding to different CIS links are different, which solves the problem of uneven power consumption and uneven performance of the left and right earphones with different working frequencies after long-term operation in the related art, so that the overall power consumption of the left and right earphones is balanced, and the performance is balanced after long-term operation. In this way, the remaining power of the left and right earphones is always kept within a relatively small difference range, and the battery life of the left and right earphones is very close, which solves the problem of the left earphone's battery life being much longer than that of the right earphone in the related art.
[0071] The power threshold can be set as needed. For example, the power threshold can be 1%, 3%, 5%, etc. of the total power of the first battery. For another example, the power threshold can be 1%, 3%, 5%, etc. of the total power of the second battery. In some examples, the total power of the first battery and the second battery can also be equal.
[0072] The first type of cycle and the second type of cycle may be similar cycles, and the main difference lies in the order in which the first sub-device and the second sub-device obtain the audio information.
[0073] It is understandable that the switching of the first sub-device 120 and the second sub-device 140 from the first type of cycle to the second type of cycle operation may also be controlled by other methods.
[0074] In some embodiments, the switching can be controlled according to the duration of the first sub-device 120 and the second sub-device 140 working in the first type of cycle. In some examples, the first sub-device 120 and the second sub-device 140 work in the first type of cycle for a first preset time period and then switch to work in the second type of cycle. The first preset time period can be set as needed. For example, the first preset time period can be 5 minutes, 10 minutes, 20 minutes, 30 minutes, etc.
[0075] In some other examples, the first sub-device 120 and the second sub-device 140 switch to working in the first type of cycle after working in the second type of cycle for a second preset time period. The second preset time period can be set as needed. For example, the second preset time period can be 5 minutes, 10 minutes, 20 minutes, 30 minutes, etc. The second preset time and the first preset time can be equal or unequal.
[0076] In some examples, the audio device 100 may be a Bluetooth speaker, which includes two sub-speakers, the two sub-speakers being a first sub-device 120 and a second sub-device 140. The duration of operation of the two sub-speakers in the first cycle or the second cycle is used to determine whether to switch to the other cycle, so that the total duration of operation of each sub-speaker in the first cycle and the second cycle is close, so that the long-term operation and aging conditions of the two sub-speakers are close, so that the performance of the two sub-speakers is balanced. The two sub-speakers may be connected to an external power supply or have a built-in battery. This embodiment does not limit the power supply method of the sub-speakers.
[0077] It is understandable that the number of sub-speakers included in a Bluetooth speaker may exceed 2, such as 3, 5, etc. Multiple sub-speakers can obtain audio information in sequence and operate at different operating frequencies. The sub-speaker that obtains audio information earlier has a lower corresponding operating frequency. The order and operating frequency of multiple sub-speakers in obtaining audio information can be adjusted as needed.
[0078] In some other examples, the audio device may be a Bluetooth headset, which includes a left earphone and a right earphone, where the left earphone and the right earphone are the first sub-device 120 and the second sub-device 140, and the left earphone and the right earphone may be two independent earphones, or they may be devices connected together, such as being connected together through a wearable part and sharing a battery, and the wearable part is used to be worn on the user's neck or head, etc.
[0079] In some embodiments, please refer to Figure 2 and Figure 3The first type of cycle includes a first type of receiving sub-cycle and a first type of decoding sub-cycle. The first type of receiving sub-cycle includes a first time period T1 and a second time period T2 which are set successively. The first sub-device receives audio information in the first time period T1, and the second sub-device receives audio information in the second time period T2. In each first type of decoding sub-cycle, the first sub-device decodes at a first operating frequency, and the second sub-device decodes at a second operating frequency.
[0080] The first type of decoding sub-cycle includes the decoding time of the first sub-device and the second sub-device. It is understandable that in some other embodiments, the first type of decoding sub-cycle may also include a waiting time. For example, the waiting time is the time between the completion of decoding and the start of the second time period T2. Of course, in some other embodiments, the time when the decoding is completed and the time when the second time period T2 starts may be the same.
[0081] The second type of cycle includes a second type of receiving sub-cycle and a second type of decoding sub-cycle. The second type of receiving sub-cycle includes a third time period T3 and a fourth time period T4 which are set successively. The second sub-device receives audio information in the third time period T3, and the first sub-device receives audio information in the fourth time period T4. In each second type of decoding sub-cycle, the second sub-device decodes at the third operating frequency, and the first sub-device decodes at the fourth operating frequency.
[0082] Similarly, the second type of decoding sub-cycle includes the decoding time of the first sub-device and the second sub-device. It is understandable that in some other embodiments, the second type of decoding sub-cycle may also include a waiting time. For example, the waiting time is the time between the completion of decoding and the start of the fourth time period T4. Of course, in some other embodiments, the time when the decoding is completed and the time when the fourth time period T4 starts can be the same.
[0083] In some embodiments, please combine Figure 5 , Figure 5 for Figure 1 The working diagram of the audio device when receiving audio information is shown. The first time period T1, the second time period T2, the third time period T3 and the fourth time period T4 each include multiple receiving sub-windows, and each receiving sub-window receives audio information once. The first time period T1, the second time period T2, the third time period T3 or the fourth time period T4 can be used as a complete receiving window.
[0084] In each second time period, when the second sub-device obtains valid audio information for the first time in a receiving sub-window, the first preset time length between the current first time and the end time of the first type of decoding sub-cycle is obtained, and the corresponding second operating frequency is obtained according to the first preset time length. Different first time lengths correspond to different operating frequencies, and the first preset time length is inversely correlated with the operating frequency.
[0085] It can be understood that the first-class cycle includes a first-class receiving sub-cycle and a first-class decoding sub-cycle. In the first-class cycle, the first sub-device and the second sub-device first receive the corresponding audio information in the first-class receiving sub-cycle, and then decode the corresponding audio information in the first-class decoding sub-cycle. The end time of the first-class decoding sub-cycle is the time when the first sub-device and the second sub-device complete decoding at the same time.
[0086] For example, if the second sub-device receives valid audio information in the first receiving sub-window, that is, receives complete and usable audio information in the first receiving sub-window, it does not need to wait for the end of the second time period to start decoding, so that the decoding time of the second sub-device is longer. With a longer decoding time, the second sub-device can use a lower operating frequency as the second operating frequency. Among them, when obtaining valid audio information for the first time in the second time period, the current first time is obtained first, and then the first preset time between the first time and the end time of the first type of decoding sub-cycle is obtained. The longer the first preset time, the longer the decoding time, and the lower frequency can be set as the second operating frequency.
[0087] As long as the second sub-device receives valid audio information in the receiving sub-window before the last receiving sub-window, it can start decoding without waiting for the end of the second time period, thereby obtaining more decoding time, setting a lower second operating frequency, and reducing power consumption.
[0088] In some embodiments, within each first time period, when the first sub-device obtains valid audio information for the first time in a receiving sub-window, a third preset time length between the current third time and the end time of the first type of decoding sub-cycle is obtained, and the corresponding first operating frequency is obtained according to the third preset time length. Different third preset time lengths correspond to different operating frequencies, and the third preset time length is inversely correlated with the operating frequency.
[0089] As long as the first sub-device receives valid audio information in the receiving sub-window before the last receiving sub-window, it can start decoding without waiting for the end of the first time period, thereby obtaining more decoding time, setting a lower second operating frequency, and reducing power consumption.
[0090] In some embodiments, within each fourth time period, when the first sub-device obtains valid audio information for the first time in a receiving sub-window, a second preset time length between the current second time and the end time of the second type of decoding sub-cycle is obtained, and the corresponding fourth operating frequency is obtained according to the second preset time length. Different second preset time lengths correspond to different operating frequencies, and the second preset time length is inversely correlated with the operating frequency.
[0091] For example, if the first device receives valid audio information in the first receiving sub-window, that is, receives complete and usable audio information in the first receiving sub-window, it does not need to wait for the end of the fourth time period to start decoding, so that the decoding time of the first sub-device is longer. With a longer decoding time, the first sub-device can use a lower operating frequency as the fourth operating frequency. Among them, when obtaining valid audio information for the first time in the fourth time period, the current second time is first obtained, and then the second preset time between the second time and the end time of the second type of decoding sub-cycle is obtained. The longer the second preset time, the longer the decoding time, and the lower frequency can be set as the fourth operating frequency.
[0092] As long as the first sub-device receives valid audio information in the receiving sub-window before the last receiving sub-window, it can start decoding without waiting for the fourth time period to end, thereby obtaining more decoding time, setting a lower fourth operating frequency, and reducing power consumption.
[0093] Of course, in some other embodiments, the first sub-device may wait until the entire receiving window ends before starting decoding, that is, the first sub-device waits until the first time period ends before starting decoding.
[0094] In some embodiments, within each third time period, when the second sub-device obtains valid audio information for the first time in a receiving sub-window, a fourth preset duration between the current fourth time and the end time of the second type decoding sub-cycle is obtained, and the corresponding third operating frequency is obtained according to the fourth preset duration. Different fourth preset durations correspond to different operating frequencies, and the fourth preset duration is inversely correlated with the operating frequency.
[0095] As long as the second sub-device receives valid audio information in the receiving sub-window before the last receiving sub-window, it can start decoding without waiting for the end of the third time period, thereby obtaining more decoding time, setting a lower third operating frequency, and reducing power consumption.
[0096] Of course, in some other embodiments, the second sub-device may wait until the entire receiving window ends before starting decoding, that is, the second sub-device waits until the third time period ends before starting decoding.
[0097] In some embodiments, the first sub-device 120 and the second sub-device 140 may wait until the entire receiving sub-window ends before starting decoding, that is, the first sub-device 120 waits until the first time period and the fourth time period end before starting decoding, and the second sub-device 140 waits until the second time period and the third time period end before starting decoding.
[0098] Specifically, in the first type of cycle, after each first time period, the first sub-device decodes the audio information at the first working frequency; after each second time period, the second sub-device decodes the audio information at the second working frequency. In the second type of cycle, after each third time period, the second sub-device decodes the audio information at the third working frequency; after each fourth time period, the first sub-device decodes the audio information at the fourth working frequency.
[0099] Figure 5 A receiving subwindow is a data packet transmission opportunity. The audio information includes a data packet. In some examples, in the first type of cycle, the first sub-device 120 waits until the end of the last receiving subwindow and decodes the data packet at the first working frequency, and the second sub-device 140 waits until the end of the last receiving subwindow and decodes the data packet at the second working frequency. At this time, the data packet is most likely to be received. If the data packet is still not received, packet loss compensation will be generated, which is also a kind of decoding.
[0100] Similarly, in the second type of cycle, the second sub-device 140 waits until the last receiving sub-window ends and decodes the data packet at the third operating frequency, and the first sub-device 120 waits until the last receiving sub-window ends and decodes the data packet at the fourth operating frequency.
[0101] In some examples, the first sub-device 120 may not wait until the end of the last receiving sub-window, but may start decoding the data packet when any receiving sub-window receives a valid data packet. The second sub-device 140 may not wait until the end of the last receiving sub-window, but may start decoding the data packet when any receiving sub-window receives a valid data packet. Compared with waiting until the end of the last receiving sub-window before starting decoding, decoding can be started earlier, so that there is more time for decoding, and correspondingly, a lower operating frequency can be used for decoding, thereby reducing power consumption. The first operating frequency and the second operating frequency are dynamic and anti-correlated with the length of time used for decoding. Similarly, in the second type of cycle, when the second sub-device 140 receives a valid data packet in any receiving sub-window, it decodes each data packet at the third operating frequency. When the first sub-device 120 receives a valid data packet in any receiving sub-window, it decodes each data packet at the fourth operating frequency. It should be noted that the third operating frequency and the fourth operating frequency are dynamic and anti-correlated with the length of time used for decoding.
[0102] In each of the above-mentioned embodiments of the audio device, when the first sub-device and the second sub-device operate in the first-type cycle, the first sub-device and the second sub-device receive information to switch to the second-type cycle in a certain first-type cycle, and then switch to the second-type cycle in the next cycle. For example, when the information to switch to the second cycle is received in the first-type receiving sub-cycle, after the first-type receiving sub-cycle ends, the second-type receiving sub-cycle is switched to the second-type receiving sub-cycle, and the corresponding first-type decoding sub-cycle is switched to the second-type decoding sub-cycle synchronously. Similarly, when the first sub-device and the second sub-device operate in the second-type cycle, the first sub-device and the second sub-device can determine that the information to switch to the first-type cycle is received in a certain cycle, and then switch to the first-type cycle in the next cycle.
[0103] In some other examples, when the first sub-device and the second sub-device are working in the first-class cycle, the first sub-device and the second sub-device can receive information to switch to the second-class cycle in a certain first-class cycle, and then the two sub-devices and the external device determine the time point when the switch is required (such as one or more first-class cycles), and then wait for one or more first-class cycles to switch to the second-class cycle, which can prevent transmission confusion and data loss caused by the switch. For example, when the first-class receiving sub-cycle receives information to switch to the second cycle, wait for one or more first-class receiving sub-cycles to end, switch to the second-class receiving sub-cycle, and synchronously switch the corresponding first-class decoding sub-cycle to the second-class decoding sub-cycle. Similarly, when the first sub-device and the second sub-device are working in the second-class cycle, the first sub-device and the second sub-device can receive information to switch to the first-class cycle in a certain second-class cycle, and then the two sub-devices and the external device determine the time point when the switch is required (such as one or more second-class cycles), and then wait for one or more second-class cycles to switch to the first-class cycle, which can prevent transmission confusion and data loss caused by the switch.
[0104] The present application also provides an audio device system. Figure 6 , Figure 6 The audio device system 10 includes a main device 200, a first sub-device 120 and a second sub-device 140; the main device 200 controls the first sub-device 120 and the second sub-device 140 to enter the first cycle or the second cycle.
[0105] In the first type of cycle, the first sub-device 120 first receives the audio information and decodes it at the first operating frequency, and the second sub-device 140 then receives the audio information and decodes it at the second operating frequency. The first sub-device 120 and the second sub-device 140 play the decoded audio information simultaneously, and the second operating frequency is greater than the first operating frequency.
[0106] In the second type of cycle, the second sub-device 140 first receives the audio information and decodes it at the third operating frequency, and the first sub-device 120 then receives the audio information and decodes it at the fourth operating frequency. The first sub-device 120 and the second sub-device 140 play the decoded audio information simultaneously, and the fourth operating frequency is greater than the third operating frequency.
[0107] In the first type of cycle, the first sub-device 120 first receives the audio information sent by the main device, and the second sub-device 140 receives the audio information sent by the main device later. Because the first sub-device 120 and the second sub-device 140 need to play the decoded information at the same time, the first sub-device 120 has more time to decode than the second sub-device 140, and can decode the first audio information with a lower operating frequency (such as the first operating frequency). The second sub-device 140 has less time to decode than the first sub-device, and needs to use a higher operating frequency (such as the second operating frequency) to decode the second audio information. It can be understood that the working principle of the chip is that the lower the frequency, the lower the required voltage, the lower the power consumption, the corresponding working current, the less leakage, and the lower the overall power consumption. That is, the first sub-device 120 decodes with a lower operating frequency than the second sub-device 140 decodes with a higher operating frequency, and the overall power consumption is lower. Similarly, in the second type of cycle, the second sub-device 140 decodes with a lower operating frequency than the first sub-device 120 decodes with a higher operating frequency, and the overall power consumption is lower. The first sub-device 120 and the second sub-device 140 can switch to the first type cycle or the second type cycle as needed, so that the overall power consumption of the first sub-device 120 and the second sub-device 140 is balanced and the performance is balanced after long-term operation, which solves the problem of unbalanced performance of the first sub-device and the second sub-device with different operating frequencies after long-term operation in the related technology.
[0108] In some examples, the first sub-device 120 and the second sub-device 140 may be a left earphone and a right earphone in a Bluetooth headset, and the main device 200 may be a device that provides audio information, such as a mobile phone, a tablet computer, etc. In some other examples, the first sub-device and the second sub-device may be two sub-speakers in a Bluetooth speaker, and the main device may be a device that provides audio information, such as a mobile phone, a tablet computer, etc.
[0109] The structures and functions of the first sub-device 120 and the second sub-device 140 may refer to the above embodiments, and will not be described in detail here.
[0110] See also Figure 7 , Figure 7 for Figure 6The diagram shows the information transmission between the various devices in the audio device system. In the figure, set cis anchor point offset is a custom command with three parameters, namely CISid, offset and CISevent count. CIS id is a one-byte unsigned data, which indicates which CIS link is being operated. Offset is a two-byte signed number in microseconds, which indicates how many microseconds the anchor point of the original CIS link is offset forward or backward. CIS event count indicates the time when the command is executed. For example, A in CIS event count A in the figure is CIS event N+p+q. Similarly, B in CIS event count B in the figure is CIS event M+p+q. The CIS anchor point change event is a custom HCI event, which needs to be notified to the host of the left earphone and the host of the right earphone in advance. The purpose is to prepare the left and right earphones in advance for the change of the anchor point of the CIS link at CIG event X+p+q, so as to prevent the missing data caused by the mutation.
[0111] Among them, the dongle and the left earphone have a CIS link to transmit the left channel audio data. According to the specification, it has its own CIS event counter. Similarly, the dongle and the right earphone also have a CIS link and an independent CIS event counter. But these two CIS links are created based on the same CIG. That is, there is a certain relative relationship between them. For example, the cycles of the two CIS are the same, and the relative relationship between their own anchor points and the CIG anchor point remains unchanged.
[0112] Initially, when the dongle is at the Xth CIG event, it first sends the Nth CIS event data to the left earphone, and then sends the Mth CIS event data to the right earphone. Similarly, X+p means that p event data has been sent. As can be seen from the figure, when the actual change CIG event arrives, the dongle first sends data to the right earphone, and then sends data to the left earphone, which is completed after p+q events. The time information only needs to define the starting point of receiving data, which corresponds to the offset parameter.
[0113] It should be noted that the data transmission method of the above-mentioned audio device is the same as the data transmission method of the audio device system, and the data transmission method of this embodiment can also be applied to the audio device of the above-mentioned embodiment.
[0114] The present application also provides a method for controlling an audio device. Figure 8 , Figure 8 This is a flow chart of a control method for an audio device provided in an embodiment of the present application. The audio device includes a first sub-device and a second sub-device. The control method includes:
[0115] 310. In a first type of cycle, the first sub-device is controlled to first receive audio information and decode it at a first operating frequency, the second sub-device is controlled to then receive audio information and decode it at a second operating frequency, the first sub-device and the second sub-device are controlled to play the decoded audio information simultaneously, and the second operating frequency is greater than the first operating frequency.
[0116] 320. In the second type of cycle, the second sub-device is controlled to first receive the audio information and decode it at the third operating frequency, the first sub-device is controlled to then receive the audio information and decode it at the fourth operating frequency, the first sub-device and the second sub-device are controlled to play the decoded audio information simultaneously, and the fourth operating frequency is greater than the third operating frequency.
[0117] In the first type of cycle, the first sub-device first receives the audio information sent by the main device, and the second sub-device receives the audio information sent by the main device later. Because the first sub-device and the second sub-device need to play the decoded information at the same time, the first sub-device has more time to decode than the second sub-device, and can then decode the first audio information with a lower operating frequency (such as the first operating frequency). The second sub-device has less time to decode than the first sub-device, and needs to decode the second audio information with a higher operating frequency (such as the second operating frequency). It can be understood that the working principle of the chip is that the lower the frequency, the less leakage, and the lower the overall power consumption. That is, the first sub-device decodes with a lower operating frequency compared to the second sub-device decodes with a higher operating frequency, and the overall power consumption is lower. Similarly, in the second type of cycle, the second sub-device decodes with a lower operating frequency compared to the first sub-device decodes with a higher operating frequency, and the overall power consumption is lower. The first sub-device and the second sub-device can switch to the first type of cycle or the second type of cycle as needed, so that the overall power consumption of the first sub-device and the second sub-device are balanced, and the performance is balanced after long-term operation, which solves the problem of uneven performance of the first sub-device and the second sub-device with different operating frequencies after long-term operation in the related art.
[0118] The structures and functions of the first sub-device and the second sub-device may refer to the above embodiments and will not be described in detail here.
[0119] In some embodiments, the control method also includes: obtaining a first remaining power of the first sub-device and a second remaining power of the second sub-device; if the first remaining power is greater than the second remaining power, and the difference between the first remaining power and the second remaining power is greater than a power threshold, then controlling the first sub-device and the second sub-device to enter a second type of cycle; if the first remaining power is less than the second remaining power, and the difference between the first remaining power and the second remaining power is greater than the power threshold, then controlling the first sub-device and the second sub-device to enter a first type of cycle.
[0120] The main device (such as a mobile phone, a tablet computer, etc.) can be connected to the first sub-device and the second sub-device through Bluetooth, and the main device can obtain the first remaining power of the first sub-device and the second remaining power of the second sub-device, and then control the first sub-device and the second sub-device to enter the first type cycle or the second type cycle according to the first remaining power and the second remaining power. The first sub-device includes a first battery, and the second sub-device includes a second battery.
[0121] The master device may obtain the first remaining power and the second remaining power in real time, or may obtain the first remaining power and the second remaining power periodically (eg, once every 5 minutes, 10 minutes, or 20 minutes).
[0122] For ease of understanding, the following is an example of an audio device LE Audio TWS product. The audio device (LE Audio TWS product) includes a first sub-device (such as a left earphone) and a second sub-device (such as a right earphone). The main device Dongle establishes CIS links with the left earphone and the right earphone respectively, forming a CIG link. The CIG link first sends the left channel audio to the left earphone through the left earphone CIS link, and then sends the right channel audio to the right earphone through the right earphone CIS link. It can be changed to the right earphone CIS link as needed to take precedence over the left earphone CIS link. Among them, the working frequencies of the earphones corresponding to different CIS links are different, which solves the problem of uneven power consumption and uneven performance of the left and right earphones with different working frequencies after long-term operation in the related art, so that the overall power consumption of the left and right earphones is balanced, and the performance is balanced after long-term operation. As a result, the remaining power of the left and right earphones is always kept within a relatively small difference range, and the battery life of the left and right earphones is very close, which solves the problem that the battery life of the left earphone is much greater than that of the right earphone in the related art.
[0123] In some examples, the control method also includes: within a first type of cycle, if the first remaining power is greater than the second remaining power, and the difference between the first remaining power and the second remaining power is greater than a power threshold, then controlling the first sub-device and the second sub-device to enter a second type of cycle, otherwise controlling the first sub-device and the second sub-device to remain in the first type of cycle; within a second type of cycle, if the first remaining power is less than the second remaining power, and the difference between the first remaining power and the second remaining power is greater than a power threshold, then controlling the first sub-device and the second sub-device to enter the first type of cycle, otherwise controlling the first sub-device and the second sub-device to remain in the second type of cycle.
[0124] The switching of the first sub-device and the second sub-device from the first type of cycle to the second type of cycle operation can also be controlled by other methods.
[0125] In some embodiments, the control method further includes: after the first sub-device and the second sub-device operate in the first type of cycle for a first preset time period, controlling the first sub-device and the second sub-device to switch to operate in the second type of cycle. The first preset time period can be set as needed. For example, the first preset time period can be 5 minutes, 10 minutes, 20 minutes, 30 minutes, etc.
[0126] In some embodiments, the control method further includes: after the first sub-device and the second sub-device operate in the second type of cycle for a second preset time period, controlling the first sub-device and the second sub-device to switch to operate in the first type of cycle. The second preset time period can be set as needed. For example, the second preset time period can be 5 minutes, 10 minutes, 20 minutes, 30 minutes, etc. The second preset time and the first preset time can be equal or unequal.
[0127] In some embodiments, the control method also includes: after the first sub-device and the second sub-device operate in the first type of cycle for a first preset time period, controlling the first sub-device and the second sub-device to switch to operate in the second type of cycle; after the first sub-device and the second sub-device operate in the second type of cycle for a second preset time period, controlling the first sub-device and the second sub-device to switch to operate in the first type of cycle.
[0128] In some examples, the audio device may be a Bluetooth speaker, which includes two sub-speakers, the two sub-speakers being a first sub-device and a second sub-device, and whether to switch to other sub-cycles is determined by the duration of operation of the two sub-speakers in the first cycle or the second cycle, so that the total duration of operation of each sub-speaker in the first cycle and the second cycle is close, so that the long-term operation and aging conditions of the two sub-speakers are close, and the performance of the two sub-speakers is balanced. The two sub-speakers may be connected to an external power supply or have a built-in battery, and this embodiment does not limit the power supply method of the sub-speakers.
[0129] It is understandable that the number of sub-speakers included in a Bluetooth speaker may exceed 2, such as 3, 5, etc. Multiple sub-speakers can obtain audio information in sequence and operate at different operating frequencies. The sub-speaker that obtains audio information earlier has a lower corresponding operating frequency. The order and operating frequency of multiple sub-speakers in obtaining audio information can be adjusted as needed.
[0130] In some other examples, the audio device may be a Bluetooth headset, which includes a left earphone and a right earphone. The left earphone and the right earphone may be two independent earphones, or they may be devices connected together, such as being connected together through a wearable portion and sharing a battery, and the wearable portion is used to be worn on the user's neck or head, etc.
[0131] In some embodiments, the first sub-device and the second sub-device may start decoding after obtaining complete audio information.
[0132] The present application also provides a method for controlling an audio device. Fig. 9 , Fig. 9 Another flow chart of a control method for an audio device provided in an embodiment of the present application. The audio device includes a first sub-device and a second sub-device, and the control method includes:
[0133] 410. In a first type of period, the first sub-device is controlled to first receive audio information and decode it at a first operating frequency, and the second sub-device is controlled to receive audio information, and when a data packet is obtained after the entire receiving window ends, the data packet is decoded at a second operating frequency; the first sub-device and the second sub-device are controlled to simultaneously play the decoded audio information, wherein the audio information includes a data packet, and the second operating frequency is greater than the first operating frequency.
[0134] The receiving window includes a plurality of receiving sub-windows, and the receiving window can be understood as the first time period T1, the second time period T2, the third time period T3 and the fourth time period T4 in the above embodiment. The second sub-device can start decoding the data packet when any receiving sub-window receives the data packet instead of waiting until the entire receiving window ends. Compared with waiting until the entire receiving window ends before starting decoding, decoding can be started earlier, so that there is more time for decoding, and correspondingly, a lower operating frequency can be used for decoding, thereby reducing power consumption.
[0135] 420. In the second type of period, the second sub-device is controlled to first receive the audio information and decode it at the third operating frequency, and the first sub-device is controlled to receive the audio information, and when the data packet is obtained after the entire receiving window ends, the data packet is decoded at the fourth operating frequency; the first sub-device and the second sub-device are controlled to play the decoded audio information at the same time, wherein the audio information includes a data packet, and the fourth operating frequency is greater than the third operating frequency.
[0136] In the second type of period, when the first sub-device obtains a data packet, it decodes each data packet at the fourth operating frequency. Compared with waiting until the entire receiving window ends before starting decoding, decoding can be started earlier, so there is more time for decoding, and correspondingly a lower operating frequency can be used for decoding, thereby reducing power consumption.
[0137] In some embodiments, during the first type of cycle, when the first sub-device obtains a data packet, it decodes the data packet at the first operating frequency. The first sub-device may not wait until the end of the entire receiving window, but may start decoding the data packet when any receiving sub-window receives the data packet. Compared to waiting until the end of the entire receiving window to start decoding, decoding can be started earlier, so that there is more time for decoding, and correspondingly, a lower operating frequency can be used for decoding, thereby reducing power consumption. Similarly, during the second type of cycle, when the second sub-device obtains a data packet, it decodes the data packet at the third operating frequency.
[0138] The present application also provides a method for controlling an audio device. Fig.10 , Fig.10 Another flow chart of the control method of the audio device provided in the embodiment of the present application. The audio device includes a first sub-device and a second sub-device, the first type of period includes a first type of receiving sub-period and a first type of decoding sub-period, the first type of receiving sub-period includes a first time period T1 and a second time period T2 set in sequence, the second type of period includes a second type of receiving sub-period and a second type of decoding sub-period, and the second type of receiving sub-period includes a third time period T3 and a fourth time period T4 set in sequence. The first time period T1, the second time period T2, the third time period T3 and the fourth time period T4 each include multiple receiving sub-windows, each receiving sub-window receives audio information once, and the first time period T1, the second time period T2, the third time period T3 or the fourth time period T4 can be used as a complete receiving window. The control method includes:
[0139] 510. In each first time period, when the first sub-device obtains valid audio information for the first time, the third preset time length between the current third time and the end time of the first type of decoding sub-cycle is obtained, and the corresponding first operating frequency is obtained according to the third preset time length. Different third preset time lengths correspond to different operating frequencies, and the third preset time length is inversely correlated with the operating frequency.
[0140] As long as the first sub-device receives valid audio information in the receiving sub-window before the last receiving sub-window, it can start decoding without waiting for the end of the first time period, thereby obtaining more decoding time, setting a lower second operating frequency, and reducing power consumption.
[0141] Of course, in some other embodiments, the first sub-device may wait until the entire receiving window ends before starting decoding, that is, the first sub-device waits until the first time period ends before starting decoding.
[0142] 520. In each second time period, when the second sub-device obtains valid audio information for the first time, the first preset duration between the current first time and the end time of the first type of decoding sub-cycle is obtained, and the corresponding second operating frequency is obtained according to the first preset duration. Different first durations correspond to different operating frequencies, and the first preset duration is inversely correlated with the operating frequency.
[0143] For example, if the second sub-device receives valid audio information in the first receiving sub-window, that is, receives complete and usable audio information in the first receiving sub-window, it does not need to wait for the end of the second time period to start decoding, so that the decoding time of the second sub-device is longer. With a longer decoding time, the second sub-device can use a lower operating frequency as the second operating frequency. Among them, when obtaining valid audio information for the first time in the second time period, the current first time is obtained first, and then the first preset time between the first time and the end time of the first type of decoding sub-cycle is obtained. The longer the first preset time, the longer the decoding time, and the lower frequency can be set as the second operating frequency.
[0144] As long as the second sub-device receives valid audio information in the receiving sub-window before the last receiving sub-window, it can start decoding without waiting for the end of the second time period, thereby obtaining more decoding time, setting a lower second operating frequency, and reducing power consumption.
[0145] 530. In each third time period, when the second sub-device obtains valid audio information for the first time, the fourth preset time length between the current fourth time and the end time of the second type decoding sub-cycle is obtained, and the corresponding third operating frequency is obtained according to the fourth preset time length. Different fourth preset time lengths correspond to different operating frequencies, and the fourth preset time length is inversely correlated with the operating frequency.
[0146] As long as the second sub-device receives valid audio information in the receiving sub-window before the last receiving sub-window, it can start decoding without waiting for the end of the third time period, thereby obtaining more decoding time, setting a lower third operating frequency, and reducing power consumption.
[0147] Of course, in some other embodiments, the second sub-device may wait until the entire receiving window ends before starting decoding, that is, the second sub-device waits until the third time period ends before starting decoding.
[0148] 540. In each fourth time period, when the first sub-device obtains valid audio information for the first time, the second preset time length between the current second time and the end time of the second type of decoding sub-cycle is obtained, and the corresponding fourth operating frequency is obtained according to the second preset time length. Different second preset time lengths correspond to different operating frequencies, and the second preset time length is inversely correlated with the operating frequency.
[0149] For example, if the first device receives valid audio information in the first receiving sub-window, that is, receives complete and usable audio information in the first receiving sub-window, it does not need to wait for the end of the fourth time period to start decoding, so that the decoding time of the first sub-device is longer. With a longer decoding time, the first sub-device can use a lower operating frequency as the fourth operating frequency. Among them, when obtaining valid audio information for the first time in the fourth time period, the current second time is first obtained, and then the second preset time between the second time and the end time of the second type of decoding sub-cycle is obtained. The longer the second preset time, the longer the decoding time, and the lower frequency can be set as the fourth operating frequency.
[0150] As long as the first sub-device receives valid audio information in the receiving sub-window before the last receiving sub-window, it can start decoding without waiting for the fourth time period to end, thereby obtaining more decoding time, setting a lower fourth operating frequency, and reducing power consumption.
[0151] In the above-mentioned embodiments of the control method of each audio device, when the first sub-device and the second sub-device operate in the first-type cycle, the first sub-device and the second sub-device receive information to switch to the second-type cycle in a certain first-type cycle, and then switch to the second-type cycle in the next cycle. For example, when the information to switch to the second cycle is received in the first-type receiving sub-cycle, after the first-type receiving sub-cycle ends, the second-type receiving sub-cycle is switched to the second-type receiving sub-cycle, and the corresponding first-type decoding sub-cycle is switched to the second-type decoding sub-cycle synchronously. Similarly, when the first sub-device and the second sub-device operate in the second-type cycle, the first sub-device and the second sub-device can determine that the information to switch to the first-type cycle is received in a certain cycle, and then switch to the first-type cycle in the next cycle.
[0152] In some other examples, when the first sub-device and the second sub-device are working in the first-class cycle, the first sub-device and the second sub-device can receive information to switch to the second-class cycle in a certain first-class cycle, and then the two sub-devices and the external device determine the time point when the switch is required (such as one or more first-class cycles), and then wait for one or more first-class cycles to switch to the second-class cycle, which can prevent transmission confusion and data loss caused by the switch. For example, when the first-class receiving sub-cycle receives information to switch to the second cycle, wait for one or more first-class receiving sub-cycles to end, switch to the second-class receiving sub-cycle, and synchronously switch the corresponding first-class decoding sub-cycle to the second-class decoding sub-cycle. Similarly, when the first sub-device and the second sub-device are working in the second-class cycle, the first sub-device and the second sub-device can receive information to switch to the first-class cycle in a certain second-class cycle, and then the two sub-devices and the external device determine the time point when the switch is required (such as one or more second-class cycles), and then wait for one or more second-class cycles to switch to the first-class cycle, which can prevent transmission confusion and data loss caused by the switch.
[0153] It should be noted that the audio device control method, audio device, and audio device system provided in the embodiments of the present application belong to the same concept, and any method provided in the audio device control method embodiment can be run on the audio device and the audio device system. The specific implementation process is detailed in the audio device control method embodiment, which will not be repeated here. For example, the chip of the audio device or the main device in the audio device system can execute the steps in the audio device control method. The embodiments, implementation methods, and related technical features of the present application can be combined and replaced with each other without conflict.
[0154] The embodiment of the present application further provides a storage medium, which stores a computer program. When the computer program is executed on a computer, the computer executes the method in any of the above embodiments, for example: in a first type of period, the first sub-device first receives the audio information and decodes it at a first working frequency, and the second sub-device then receives the audio information and decodes it at a second working frequency, and the first sub-device and the second sub-device play the decoded audio information simultaneously, and the second working frequency is greater than the first working frequency;
[0155] In the second type of cycle, the second sub-device first receives the audio information and decodes it at the third operating frequency, and the first sub-device then receives the audio information and decodes it at the fourth operating frequency. The first sub-device and the second sub-device play the decoded audio information simultaneously, and the fourth operating frequency is greater than the third operating frequency.
[0156] In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0157] It should be noted that, for the control method of the audio device in the embodiment of the present application, ordinary testers in the field can understand that all or part of the process of implementing the control method of the audio device in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include the process of the embodiment of the method for processing the work card. Among them, the storage medium can be a disk, an optical disk, a read-only memory, a random access memory, etc.
[0158] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0159] The audio device, audio system and control method of the audio device provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An audio device, characterized in that: comprising a first sub-device and a second sub-device; In the first type of period, the first sub-device first receives the audio information and decodes it at the first operating frequency, and the second sub-device then receives the audio information and decodes it at the second operating frequency, and the first sub-device and the second sub-device play the decoded audio information simultaneously, and the second operating frequency is greater than the first operating frequency; In the second type of cycle, the second sub-device first receives the audio information and decodes it at a third operating frequency, and the first sub-device then receives the audio information and decodes it at a fourth operating frequency, and the first sub-device and the second sub-device play the decoded audio information simultaneously, and the fourth operating frequency is greater than the third operating frequency.
2. The audio device according to claim 1, characterized in that The first sub-device includes a first battery, and the second sub-device includes a second battery; If the remaining power of the first battery is greater than the remaining power of the second battery, and the difference between the remaining power of the first battery and the second battery is greater than a threshold, the audio device enters a second type cycle; If the remaining power of the first battery is less than the remaining power of the second battery, and the difference between the remaining power of the first battery and the second battery is greater than a threshold, the audio device enters a first type cycle.
3. The audio device according to claim 1, characterized in that After the first sub-device and the second sub-device operate in the first type of cycle for a first preset time period, they switch to operate in the second type of cycle; and / or After the first sub-device and the second sub-device operate in the second type of cycle for a second preset time period, they switch to operate in the first type of cycle.
4. The audio device according to claim 2 or 3, characterized in that: The first-type cycle includes a first-type receiving sub-cycle and a first-type decoding sub-cycle, the first-type receiving sub-cycle includes a first time period and a second time period which are set successively, the first sub-device receives audio information in the first time period, and the second sub-device receives audio information in the second time period, and in each of the first-type decoding sub-cycles, the first sub-device decodes at a first operating frequency, and the second sub-device decodes at a second operating frequency; The second type of cycle includes a second type of receiving sub-cycle and a second type of decoding sub-cycle, the second type of receiving sub-cycle includes a third time period and a fourth time period set successively, the second sub-device receives audio information in the third time period, and the first sub-device receives audio information in the fourth time period, and in each of the second type of decoding sub-cycle, the second sub-device decodes at the third operating frequency, and the first sub-device decodes at the fourth operating frequency.
5. The audio device according to claim 4, characterized in that The first time period, the second time period, the third time period and the fourth time period each include a plurality of receiving sub-windows, and each of the receiving sub-windows receives audio information once; In each of the second time periods, when the second sub-device obtains valid audio information for the first time in a receiving sub-window, a first preset duration between the current first time and the end time of the first type of decoding sub-cycle is obtained, and a corresponding second operating frequency is obtained according to the first preset duration, different first durations correspond to different operating frequencies, and the first preset duration is inversely correlated with the operating frequency; and / or In each of the fourth time periods, when the first sub-device obtains valid audio information for the first time in a receiving sub-window, the second preset duration between the current second time and the end time of the second type of decoding sub-cycle is obtained, and the corresponding fourth operating frequency is obtained according to the second preset duration. Different second preset durations correspond to different operating frequencies, and the second preset duration is inversely correlated with the operating frequency.
6. The audio device according to claim 5, characterized in that In each of the first time periods, when the first sub-device obtains valid audio information for the first time in a receiving sub-window, a third preset duration between the current third time and the end time of the first type of decoding sub-cycle is obtained, and a corresponding first operating frequency is obtained according to the third preset duration, different third preset durations correspond to different operating frequencies, and the third preset duration is inversely correlated with the operating frequency; and / or In each of the third time periods, when the second sub-device obtains valid audio information for the first time in a receiving sub-window, the fourth preset duration between the current fourth time and the end time of the second type of decoding sub-cycle is obtained, and the corresponding third operating frequency is obtained according to the fourth preset duration. Different fourth preset durations correspond to different operating frequencies, and the fourth preset duration is inversely correlated with the operating frequency.
7. The audio device according to claim 4, characterized in that After each of the first time periods, the first sub-device decodes the audio information at the first operating frequency; After each of the second time periods, the second sub-device decodes the audio information at the second operating frequency; After each of the third time periods, the second sub-device decodes the audio information at the third operating frequency; After each of the fourth time periods, the first sub-device decodes the audio information at the fourth operating frequency.
8. An audio device system, characterized in that: comprising a main device, a first sub-device and a second sub-device; The master device controls the first sub-device and the second sub-device to enter a first-type cycle or a second-type cycle; In the first type of period, the first sub-device first receives the audio information and decodes it at the first operating frequency, and the second sub-device then receives the audio information and decodes it at the second operating frequency, and the first sub-device and the second sub-device play the decoded audio information simultaneously, and the second operating frequency is greater than the first operating frequency; In the second type of cycle, the second sub-device first receives the audio information and decodes it at a third operating frequency, and the first sub-device then receives the audio information and decodes it at a fourth operating frequency, and the first sub-device and the second sub-device play the decoded audio information simultaneously, and the fourth operating frequency is greater than the third operating frequency.
9. A method for controlling an audio device, the audio device comprising a first sub-device and a second sub-device, characterized in that: The control method comprises: In the first type of period, the first sub-device is controlled to first receive audio information and decode it at a first operating frequency, the second sub-device is controlled to receive audio information and decode it at a second operating frequency, and the first sub-device and the second sub-device are controlled to play the decoded audio information simultaneously, and the second operating frequency is greater than the first operating frequency; During the second type of cycle, the second sub-device is controlled to first receive the audio information and decode it at the third operating frequency, the first sub-device is controlled to receive the audio information and decode it at the fourth operating frequency, the first sub-device and the second sub-device are controlled to play the decoded audio information simultaneously, and the fourth operating frequency is greater than the third operating frequency.
10. The method for controlling an audio device according to claim 9, characterized in that: The control method further comprises: Acquire a first remaining power of the first sub-device and a second remaining power of the second sub-device; If the first remaining power is greater than the second remaining power, and the difference between the first remaining power and the second remaining power is greater than a power threshold, controlling the first sub-device and the second sub-device to enter a second type of cycle; If the first remaining power is less than the second remaining power, and the difference between the first remaining power and the second remaining power is greater than a power threshold, the first sub-device and the second sub-device are controlled to enter a first type cycle.
11. The method for controlling an audio device according to claim 9, characterized in that: The control method further comprises: After the first sub-device and the second sub-device operate in the first type of cycle for a first preset time period, controlling the first sub-device and the second sub-device to switch to operate in the second type of cycle; and / or After the first sub-device and the second sub-device operate in the second type of cycle for a second preset time period, the first sub-device and the second sub-device are controlled to switch to operate in the first type of cycle.
12. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed on a computer, the computer is caused to execute the method for controlling an audio device according to any one of claims 9 to 11.