Audio data transmission method and device applied to TWS earphone single-ear and double-ear switching

By configuring two isochronous audio stream connection groups (CIS) for TWS earbuds, the CIS can be activated or deactivated when switching between single and dual earbuds, thus solving the problem of audio data interruption in the prior art and improving the user experience.

CN115175043BActive Publication Date: 2026-04-21HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2018-12-24
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

During the switching between single and dual ear modes in TWS earbuds, existing technologies require reconfiguring the ISO channel, which leads to audio data interruption and affects the user experience.

Method used

Configure two isochronous audio stream connection groups (CIS) for TWS earbuds, and activate or deactivate the corresponding CIS in single-ear and dual-ear modes respectively to avoid reconfiguration and ensure continuous transmission of audio data.

Benefits of technology

During the switching between single and dual ear listening, audio data interruption is avoided, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115175043B_ABST
    Figure CN115175043B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an audio data transmission method and device applied to TWS earphone single-ear switching, relating to the technical field of short-distance communication, which can ensure normal transmission of audio data during single-ear switching. The specific scheme includes: an electronic device transmits audio data with a first earplug of a TWS earphone through a first CIS of a first CIG, and transmits audio data with a second earplug of the TWS earphone through a second CIS of the first CIG; determining that the TWS earphone is switched from a dual-ear state (i.e. a state in which the first earplug and the second earplug are used together as audio input / output devices of the electronic device) to a first single-ear state (i.e. a state in which the first earplug is used alone as an audio input / output device of the electronic device); in response to the determination, the electronic device deactivates the second CIS, stops transmitting audio data with the second earplug through the second CIS, and continues to transmit audio data with the first earplug through the first CIS.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of short-range communication technology, and in particular to an audio data transmission method and electronic device. Background Technology

[0002] Source devices can transmit audio data (audio streams) to one or more destination devices via Bluetooth Low Energy (BLE) isochronous (ISO) channels. For example, a mobile phone can transmit audio data to the left and right earbuds of true wireless stereo (TWS) earbuds via BLE's ISO channels. TWS earbuds consist of two main units, referred to as the left and right earbuds respectively, and no wire is required to connect the left and right earbuds.

[0003] In TWS earbuds, the left and right earbuds can function as audio input / output devices for a mobile phone, used together (referred to as binaural mode) to achieve functions such as music playback or voice communication. In binaural mode, audio data playback synchronization is required, meaning that the left and right earbuds need to play the received audio data simultaneously.

[0004] Of course, either the left or right earbud of the TWS earbuds can be used as an audio input / output device for a mobile phone, and can be used independently (referred to as single-ear mode) to achieve functions such as music playback or voice communication. In single-ear mode, playback-level synchronization of audio data is not required.

[0005] Because the requirements for synchronous audio data playback between the left and right earbuds differ between single-ear and dual-ear modes, the phone configures the ISO channel differently in each mode. Therefore, when the TWS earbuds switch between single and dual-ear modes (e.g., from single-ear to dual-ear mode, or vice versa), the phone needs to reconfigure the ISO channel.

[0006] However, if a switch between single and dual ear audio occurs during music playback or voice communication, the phone's reconfiguration of the ISO channel will cause audio data interruption, affecting the user experience. Summary of the Invention

[0007] This application provides an audio data transmission method and electronic device that can ensure normal audio data transmission when switching between single and dual ears.

[0008] Firstly, this application provides an audio data transmission method. When configuring a Connected Isochronous Stream (CIS) for the earbuds of a TWS (True Wireless Stereo) earphone, the electronic device can configure a first connected isochronous group (CIG) including two connected isochronous streams (CIS) (such as a first CIS and a second CIS) for the TWS earphone, regardless of whether it is in a single-ear or dual-ear state. In dual-ear mode, the electronic device can activate both CIS and then transmit audio data with the left and right earbuds of the TWS earphone through these two CIS. In single-ear mode, the electronic device can activate only one CIS and transmit audio data with the corresponding earbud through that CIS. If a switch between single and dual-ear mode occurs during music playback or voice communication, the electronic device does not need to reconfigure the CIS; it only needs to activate or deactivate the corresponding CIS. This avoids interrupting audio data transmission, ensuring normal audio data transmission and improving the user experience.

[0009] In conjunction with the first aspect, in one possible design, in binaural mode, the electronic device can activate both the first and second CIS. Audio data is transmitted between the first CIS and the first earbud, and between the second CIS and the second earbud. Thus, when the TWS earbuds switch from binaural to monoaural mode, the electronic device can deactivate one CIS and continue using the other CIS to transmit audio data with the corresponding earbud.

[0010] In conjunction with the first aspect, in one possible design, in single-ear mode, the electronic device activates only one CIS (such as the first CIS), transmitting audio data through the activated CIS and the corresponding earbud (such as the first earbud). The electronic device does not activate the other CIS (such as the second CIS). Thus, when the TWS earbuds 101 switch from single-ear mode to dual-ear mode, the electronic device 100 can activate the other CIS, using both CISs and both earbuds for audio data transmission.

[0011] In conjunction with the first aspect, in one possible design, when the electronic device is configured with a first CIG, the aforementioned first CIS and second CIS are configured with either a sequential or interleaved transmission mode. The CIG parameters of the configured first CIG differ between the sequential and interleaved transmission modes.

[0012] In conjunction with the first aspect, in one possible design, in a binaural state, the aforementioned first CIS and second CIS are configured for interleaved transmission. In the interleaved transmission, the anchor point of the first CIS is the CIG anchor point of the first CIG, the anchor point of the second CIS is the same as the end point of the first sub-event in the CIS event of the first CIS, and the start point of the second sub-event of the first CIS is the end point of the first sub-event of the second CIS.

[0013] The first CIS and the second CIS each include multiple CIS events; the first CIG includes multiple CIG events; each CIG event includes one CIS event of the first CIS and one CIS event of the second CIS; each CIS event of the first CIS includes N1 sub-events, where N1 is greater than or equal to 2; each CIS event of the second CIS includes N2 sub-events, where N2 is greater than or equal to 2.

[0014] In this system, the electronic device transmits audio data to the first earbud via the first CIS starting from the anchor point of the first CIS, and transmits audio data to the second earbud via the second CIS starting from the anchor point of the second CIS.

[0015] Of course, in the binaural state, the first CIS and the second CIS are configured for serially scheduled transmission. A detailed description of the serially scheduled transmission method can be found in other parts of the embodiments of this application, and will not be repeated here.

[0016] In binaural mode, compared with serial scheduling, the advantage of interleaved scheduling is that electronic devices can interleave sub-events of the first CIS with sub-events of the second CIS in time. That is, the audio data of the first CIS and the audio data of the second CIS can be interleaved in time for transmission. This can make the degree of interference to different CIS more equal and improve the anti-interference performance of audio data transmission.

[0017] In conjunction with the first aspect, in one possible design, in the single-ear state, the aforementioned first CIS and second CIS are configured for serially scheduled transmission. In the serially scheduled transmission, the anchor point of the first CIS is the CIG anchor point of the first CIG, and the anchor point of the second CIS is the same as the end point of the CIS event of the first CIS.

[0018] Of course, in mono-ear mode, the first CIS and the second CIS are configured with an interleaved transmission mode. A detailed description of the interleaved transmission mode can be found in other parts of the embodiments of this application, and will not be repeated here.

[0019] In mono-ear mode, compared to interleaved transmission, serial transmission has the advantage that electronic devices can transmit audio data with a single earpiece (e.g., the first earpiece) in a continuous timeframe (e.g., all sub-events in a CIS event of the first CIS are temporally consecutive). This reduces the degree of interference to the CIS and improves the anti-interference performance of audio data transmission.

[0020] Furthermore, in single-ear mode, the serial scheduling transmission method allows for longer continuous periods of unused time to be reserved for other transmissions (such as Wireless Fidelity (Wi-Fi)). This reduces mutual interference caused by frequent switching of transmission resources between Wi-Fi and Bluetooth.

[0021] Optionally, when the electronic device is configured with the first CIG, the aforementioned first CIS and second CIS are configured for a joint scheduling transmission method. In binaural mode, using a joint scheduling transmission method avoids the problem of redundant serial or interleaved scheduling transmission methods, where the electronic device transmits the same audio data to the left and right earbuds of the TWS earphones at different times. This reduces waste of transmission resources and improves the effective utilization rate of transmission resources.

[0022] In the joint scheduling transmission mode, the anchor point of the first CIS and the anchor point of the second CIS are both the CIG anchor point of the first CIG. The first CIG includes multiple CIG events; the CIG anchor point of the first CIG is the start time point of the CIG event.

[0023] Secondly, embodiments of this application provide an audio data transmission method for audio data transmission between an electronic device and a TWS earphone, the TWS earphone including a first earbud and a second earbud. The electronic device can transmit audio data with the first earbud via a first CIS of a first CIG, and with the second earbud via a second CIS of the first CIG. At this time, the TWS earphone is in a binaural state, meaning the first and second earbuds are used together as audio input / output devices of the electronic device. If the TWS earphone switches from a binaural state to a first monoaural state, the electronic device can deactivate the second CIS, stop transmitting audio data with the second earbud via the second CIS, and continue transmitting audio data with the first earbud via the first CIS. The first monoaural state refers to the state where the first earbud is used solely as an audio input / output device of the electronic device.

[0024] Of course, even when the TWS earbuds are in dual-ear mode, they may switch to a second single-ear mode. The second single-ear mode is when the second earbud is used solely as an audio input / output device for the electronic device. In this case, the electronic device can deactivate the first CIS, stop transmitting audio data to the first earbud via the first CIS, and continue transmitting audio data to the second earbud via the second CIS.

[0025] In this embodiment, when the TWS earbuds switch from a dual-ear state to a single-ear state (e.g., the first single-ear state), the electronic device can deactivate the CIS corresponding to the unused earbud (e.g., the second CIS) instead of reconfiguring the CIS. This avoids interrupting audio data transmission, ensuring normal audio data transmission and improving the user experience.

[0026] In conjunction with the second aspect, in one possible design, after the electronic device deactivates the second CIS, stops transmitting audio data to the second earbud via the second CIS, and continues transmitting audio data to the first earbud via the first CIS—that is, after the TWS earbuds switch from a dual-ear state to a single-ear state—the TWS earbuds may switch back from the single-ear state to a dual-ear state. Specifically, the method in this application embodiment may further include: the electronic device determining that the TWS earbuds have switched from a single-ear state to a dual-ear state; in response to determining that the TWS earbuds have switched from a single-ear state to a dual-ear state, the electronic device continues transmitting audio data to the first earbud via the first CIS and activates the second CIS to transmit audio data to the second earbud via the second CIS.

[0027] In other words, since the electronic device equips the TWS earbuds with two CISs, when the TWS earbuds switch from single-ear mode (such as the first single-ear mode) to dual-ear mode, the electronic device only needs to activate the CIS corresponding to the unused earbud (such as the second CIS). This avoids interrupting audio data transmission, ensuring normal audio data transmission and improving the user experience.

[0028] In conjunction with the second aspect, in another possible design approach, before the electronic device transmits audio data to the first earbud via the first CIS of the first CIG, it can be determined that the TWS earbuds are in a dual-ear state. A first CIG, including a first CIS and a second CIS, is configured for the TWS earbuds; a first CIS is configured for the first earbud, and a second CIS is configured for the second earbud; then the first and second CIS are activated. Even if the TWS earbuds switch from a dual-ear state to a single-ear state, the electronic device only needs to activate the corresponding CIS. This avoids interrupting audio data transmission, ensuring normal audio data transmission and improving the user experience.

[0029] In conjunction with the second aspect, in another possible design, when the TWS earbuds are in a dual-ear state, and the electronic device is configured with a first CIG, the aforementioned first CIS and second CIS are configured in an interleaved transmission mode. In the interleaved transmission mode, the anchor point of the first CIS is the CIG anchor point of the first CIG, the anchor point of the second CIS is the same as the end point of the first sub-event in the CIS event of the first CIS, and the start point of the second sub-event of the first CIS is the end point of the first sub-event of the second CIS. The advantages of the interleaved transmission mode compared to the serial transmission mode in the dual-ear state can be found in the description of the possible design in the first aspect, and will not be repeated here in the embodiments of this application.

[0030] In conjunction with the second aspect, in another possible design, when the TWS earbuds are in a dual-ear state, and the electronic device is configured with a first CIG, the aforementioned first CIS and second CIS are configured for a jointly scheduled transmission method. In the jointly scheduled transmission method, the anchor point of the first CIS and the anchor point of the second CIS are both the CIG anchor point of the first CIG. The advantages of the jointly scheduled transmission method in the dual-ear state can be found in the description of the possible design method in the first aspect, and will not be repeated here in the embodiments of this application.

[0031] In conjunction with the second aspect, in another possible design, after the electronic device determines that the TWS earbuds have switched from a dual-ear state to a first single-ear state, the electronic device may receive a user's suspend operation. This suspend operation is used to trigger the TWS earbuds to pause audio data playback. To avoid the problem that the transmission method of the CIS configured for the earbuds by the electronic device is not suitable for the single-ear state after the TWS earbuds switch from a dual-ear state to a single-ear state, in response to the suspend operation, the electronic device can re-determine the current state of the TWS earbuds (such as the first single-ear state) and then reconfigure the first CIG for the TWS earbuds. The reconfigured first CIG includes a reconfigured first CIS and a reconfigured second CIS.

[0032] The first and second reconfigured CIS are applicable to the state after the TWS earphones are switched, such as the first single-ear state. For example, the first and second reconfigured CIS can be configured with a serially scheduled transmission mode. A detailed description of the serially scheduled transmission mode can be found in other parts of the embodiments of this application, and will not be repeated here.

[0033] Furthermore, the electronic device can configure a reconfigured first CIS for the first earbud and activate the reconfigured first CIS, transmitting audio data to the first earbud starting from the anchor point of the reconfigured first CIS. The reconfigured second CIS is not activated in the first mono-ear state.

[0034] It is understood that, in response to the aforementioned suspension operation, the audio data is suspended (i.e., stopped). During the audio data suspension process, the electronic device reconfigures its CSI, so that once the service resumes, the electronic device can transmit audio data through the reconfigured CSI. Thus, service interruption is avoided due to CSI reconfiguration.

[0035] Thirdly, embodiments of this application provide an audio data transmission method for audio data transmission between an electronic device and a TWS earphone, the TWS earphone including a first earbud and a second earbud. When the electronic device determines that the TWS earphone is in a first single-ear state, it can configure a first CIG including a first CIS and a second CIS for the first earbud. The first single-ear state is the state in which the first earbud is used solely as an audio input / output device of the electronic device. The electronic device can configure and activate the first CIS for the first earbud, transmitting audio data through the first CIS; the second CIS is inactive in the first single-ear state, meaning it is not activated. In other words, when the electronic device determines that the TWS earphone is in a single-ear state, it still configures two CISs (the first CIS and the second CIS), but in the single-ear state, only one CIS is activated, and the other is not.

[0036] In this embodiment, even when the TWS earbuds are in single-ear mode, the electronic device can configure a first CIG (Computer Integrated Signal Processor) including two CIS (such as a first CIS and a second CIS). Thus, if the TWS earbuds switch from single-ear to dual-ear mode during music playback or voice communication, the electronic device does not need to reconfigure the CIS; it only needs to activate the corresponding CIS (such as the second CIS). This prevents interruption of audio data transmission, ensuring normal audio data transmission and improving the user experience.

[0037] In conjunction with the third aspect, in one possible design, the TWS earbuds may also switch back from a first single-ear state to a dual-ear state. Specifically, the method in this application embodiment may further include: the electronic device determining that the TWS earbuds have switched from a first single-ear state to a dual-ear state; in response to determining that the TWS earbuds have switched from a first single-ear state to a dual-ear state, the electronic device activates a second CIS, transmits audio data with the second earbud through the second CIS, and continues to transmit audio data with the first earbud through the first CIS.

[0038] In other words, since the electronic device equips the TWS earbuds with two CISs, when the TWS earbuds switch from single-ear mode (such as the first single-ear mode) to dual-ear mode, the electronic device only needs to activate the CIS corresponding to the unused earbud (such as the second CIS). This avoids interrupting audio data transmission, ensuring normal audio data transmission and improving the user experience.

[0039] In conjunction with the third aspect, in another possible design, after the TWS earbuds switch from a single-ear state (such as the first single-ear state) to a dual-ear state, they may also switch back from the dual-ear state to a second single-ear state. Once the electronic device determines that the TWS earbuds have switched from the dual-ear state to the second single-ear state, it can deactivate the first CIS, stop transmitting audio data with the first earbud through the first CIS, and continue transmitting audio data with the second earbud through the second CIS.

[0040] In conjunction with the third aspect, in another possible design, when the TWS earphone is in single-ear mode and the electronic device is configured with a first CIG, the aforementioned first CIS and second CIS are configured for serially scheduled transmission. In the serially scheduled transmission mode, the anchor point of the first CIS is the CIG anchor point of the first CIG, and the anchor point of the second CIS is the same as the end point of the CIS event of the first CIS. A detailed description of the serially scheduled transmission mode can be found in other parts of the embodiments of this application, and will not be repeated here.

[0041] In conjunction with the third aspect, in another possible design approach, after the electronic device determines that the TWS earbuds have switched from a single-ear state (e.g., the first single-ear state) to a dual-ear state, the electronic device may receive a user's suspend operation. This suspend operation is used to trigger the TWS earbuds to pause audio data playback. To avoid the problem that the transmission method of the CIS configured for the earbuds by the electronic device is not suitable for the dual-ear state after the TWS earbuds switch from a single-ear state to a dual-ear state, in response to the suspend operation, the electronic device can re-determine the current state of the TWS earbuds (e.g., dual-ear state) and then reconfigure the first CIG for the TWS earbuds. The reconfigured first CIG includes a reconfigured first CIS and a reconfigured second CIS.

[0042] The first and second reconfigured CIS are applicable to the state after the TWS earphones are switched, such as the dual-ear state. For example, the first and second reconfigured CIS can be configured with interleaved or joint scheduling transmission methods. Detailed descriptions of the interleaved and joint scheduling transmission methods can be found in other parts of the embodiments of this application, and will not be repeated here.

[0043] Fourthly, embodiments of this application provide an electronic device comprising: one or more processors, a memory, and a wireless communication module. The memory and the wireless communication module are coupled to one or more processors. The memory stores computer program code, including computer instructions. When the one or more processors execute the computer instructions, the electronic device performs the audio data transmission method as described in any of the first to third aspects and their possible implementations.

[0044] Fifthly, a Bluetooth communication system is provided, which may include: TWS earphones, and electronic devices as described in the fourth aspect above.

[0045] A sixth aspect provides a computer storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform an audio data transmission method as described in any of the first to third aspects and their possible implementations.

[0046] In a seventh aspect, this application provides a computer program product that, when run on a computer, causes the computer to perform the audio data transmission method as described in any of the first to third aspects and their possible implementations.

[0047] Understandably, the electronic device described in the fourth aspect, the Bluetooth communication system described in the fifth aspect, the computer storage medium described in the sixth aspect, and the computer program product described in the seventh aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Attached Figure Description

[0048] Figure 1 This application provides a schematic diagram of a communication system for audio data transmission.

[0049] Figure 2 This application provides a schematic diagram of an audio data transmission principle.

[0050] Figure 3 A schematic diagram of another communication system for audio data transmission provided in this application embodiment;

[0051] Figure 4 This is a schematic diagram illustrating a product form of a TWS earphone provided in an embodiment of this application;

[0052] Figure 5 A schematic diagram of the hardware structure of an earbud for a TWS earphone provided in an embodiment of this application;

[0053] Figure 6AA schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0054] Figure 6B This application provides a schematic diagram illustrating the principle of transmitting audio data via an ISO channel.

[0055] Figure 7 This application provides a BLE-based audio protocol framework for embodiments of the invention.

[0056] Figure 8 A schematic diagram illustrating the process of configuring a CIG and creating a CIS, provided for an embodiment of this application;

[0057] Figure 9 A flowchart of an audio data transmission method provided in an embodiment of this application;

[0058] Figure 10 This is a schematic diagram illustrating the principle of an interleaved scheduling transmission method provided in an embodiment of this application;

[0059] Figure 11 A flowchart illustrating another audio data transmission method provided in this application embodiment;

[0060] Figure 12 A schematic diagram illustrating the principle of a serial scheduling transmission method provided in an embodiment of this application;

[0061] Figure 13 A flowchart illustrating another audio data transmission method provided in this application embodiment;

[0062] Figure 14 This is a schematic diagram illustrating the principle of a joint scheduling transmission method provided in an embodiment of this application. Detailed Implementation

[0063] This application provides an audio data transmission method that can be applied to the transmission of audio data (audio stream) between electronic devices (such as mobile phones) and TWS earphones.

[0064] Before audio data transmission between the electronic device and the earbuds (one or both earbuds) of the TWS earbuds, the electronic device can first pair with the earbuds and then establish an asynchronous connection-oriented link (ACL). Finally, it configures the ISO channel for the earbuds through the ACL link. Specifically, the electronic device can configure the CIG (Customer Information Group) for the TWS earbuds based on their usage status (e.g., single-ear or dual-ear). The configuration of the ISO channel by the electronic device through the ACL link specifically refers to the electronic device establishing the CIS (Customer Information System) within the CIG. This CIS is used for audio data transmission between the electronic device and the earbuds. The CIS is carried on the ISO channel.

[0065] On the one hand, either the left or right earbud of a TWS earphone can function as an audio input / output device for an electronic device, and can be used independently (referred to as mono-ear mode) to achieve functions such as music playback or voice communication. For example, Figure 4 As shown, the TWS earphone 101 includes earbud 101-1 and earbud 101-2. Figure 1 As shown, the earbud 101-1 of the TWS earphone 101 serves as an audio input / output device for an electronic device 100 (such as a mobile phone), and can be used independently to achieve functions such as music playback or voice communication.

[0066] Generally speaking, in the above-mentioned single-ear state, the electronic device 100 configures the TWS earphone 101 with a CIG that includes only one CIS. Figure 1 The illustrated electronic device 100 can establish an ACL link with the earphone 101-1 and establish a CIS through this ACL link. This CIS is used for audio data transmission between the electronic device 100 and the earphone 101-1. The CIS is carried on the ISO channel of the electronic device 100 and the earphone 101-1. It should be noted that this CIG includes only one CIS. For example, as shown... Figure 2 As shown, a CIG event (x) includes only one CIS event (x). A CIG event (x+1) includes only one CIS event (x+1).

[0067] A CIG comprises multiple CIG events. Both CIG event (x) and CIG event (x+1) are CIG events (CIG_event) within a CIG. Electronic device 100 and earphone 101-1 can transmit audio data across multiple CIG events within a single CIG. For example, electronic device 100 and earphone 101-1 can transmit audio data across CIG events such as CIG event (x) and CIG event (x+1) within a single CIG.

[0068] On the other hand, the left and right earbuds of TWS earbuds, as audio input / output devices of an electronic device, can be used together (called binaural mode) to achieve functions such as music playback or voice communication. For example, Figure 3 As shown, the earbuds 101-1 and 101-2 of the TWS earphone 101 serve as audio input / output devices for the electronic device 100 (such as a mobile phone), and can be used together to achieve functions such as music playback or voice communication.

[0069] Generally, in binaural mode, the electronic device 100 configures the TWS earphone 101 with a CIG including two CISs (such as CIS(1) and CIS(2)). The electronic device can establish ACL links with the left and right earbuds of the TWS earphone respectively.

[0070] For example, the electronic device can establish ACL link 1 with earbud 101-1 and ACL link 2 with earbud 101-2. The electronic device 100 can establish CIS (1) through ACL link 1, and CIS (1) is used to transmit audio data with earbud 101-1. CIS (1) is carried on ISO channel 1 between the electronic device 100 and earbud 101-1. The electronic device 100 can establish CIS (2) through ACL link 2, and CIS (2) is used to transmit audio data with earbud 101-2. CIS (2) is carried on ISO channel 2 between the electronic device 100 and earbud 101-2.

[0071] It is important to note that this CIG includes two CISs (such as CIS(1) and CIS(2)). For example, as Figure 10 (a) or Figure 12 As shown in (a), a CIG event (x) includes a CIS (1) event (x) and a CIS (2) event (x). A CIG event (x) is a CIG event within a CIG. A CIG includes multiple CIG events. Electronic device 100, along with earphones 101-1 and 101-2, can transmit audio data across multiple CIG events within a single CIG.

[0072] Multiple CISs within the same CIG can share the same CIG presentation point. The CIG presentation point is the point in time after the electronic device 100 sends audio data. Earbud 101-1 corresponding to CIS(1) and earbud 101-2 corresponding to CIS(2) can simultaneously play the received audio data at the aforementioned CIG presentation point, thereby achieving playback-level synchronization of the audio stream between the two earbuds (i.e., both earbuds play audio data simultaneously).

[0073] In summary, in the existing technology, in single-ear mode, the electronic device 100 configures the TWS earphone 101 with a CIG that includes only one CIS. In dual-ear mode, the electronic device 100 configures the TWS earphone 101 with a CIG that includes two CISs. Therefore, if a switch between single-ear and dual-ear mode occurs during music playback or voice communication (e.g., from single-ear to dual-ear mode, or vice versa), the electronic device 100 needs to reconfigure the CIS. For example, when switching from single-ear to dual-ear mode, the electronic device 100 needs to reconfigure both CISs within a single CIG for each earbud. Reconfiguring the CIS takes time, which can lead to audio data interruption and negatively impact the user experience.

[0074] To address the audio data interruption issue during scenario switching, in this embodiment, when configuring the CIS for the earbuds of the TWS earbuds 101, the electronic device 100 can configure a CIG including two CISs, regardless of whether it's a single-ear or dual-ear state. In dual-ear mode, the electronic device 100 can activate both CISs and then transmit audio data with the left and right earbuds of the TWS earbuds 101 through these two CISs. In single-ear mode, the electronic device 100 can activate only one CIS and transmit audio data with the corresponding earbud through that CIS. If a switch between single and dual-ear mode occurs during music playback or voice communication, the electronic device 100 does not need to reconfigure the CIS; it only needs to activate or deactivate the corresponding CIS. This prevents audio data transmission interruption, ensuring normal audio data transmission and improving the user experience.

[0075] In this application embodiment, the mono-ear state can include a first mono-ear state and a second mono-ear state. The first mono-ear state is when the first earbud is used alone as an audio input / output device of the electronic device. The second mono-ear state is when the second earbud is used alone as an audio input / output device of the electronic device. The binaural state is when the first earbud and the second earbud are used together as audio input / output devices of the electronic device. For example, the first earbud is earbud 101-1, and the second earbud is earbud 101-2.

[0076] For example, the aforementioned electronic device 100 may be a mobile phone (such as...) Figure 1 or Figure 3 The devices shown include mobile phones 100, tablets, desktops, laptops, handheld computers, laptops, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, media players, televisions, etc. This application embodiment does not impose special limitations on the specific form of these devices. In this application embodiment, the structure of the electronic device 100 can be as follows... Figure 6A As shown, this will be described in detail in the following embodiments.

[0077] Please refer to Figure 4 This is a schematic diagram of a TWS earphone provided in an embodiment of this application. Figure 4 As shown, the TWS earphone 101 may include: earbud 101-1, earbud 101-2, and earbud case 101-3. The earbud case can be used to store the left and right earbuds of the TWS earphone. Figure 4 The illustration provided is merely an example of a TWS earphone product form. The product forms of the peripheral devices provided in this application include, but are not limited to, those described above. Figure 4 The TWS earphone 101 shown.

[0078] Please refer to Figure 5 This is a structural schematic diagram of an earbud (left or right earbud) for a TWS earphone provided in an embodiment of this application. Figure 5 As shown, the earbuds (such as earbuds 101-2) of the TWS earphones 101 may include: a processor 510, a memory 520, a sensor 530, a wireless communication module 540, a receiver 550, a microphone 560, and a power supply 570.

[0079] The memory 520 can be used to store application code, such as application code for establishing a wireless connection with another earbud (e.g., earbud 101-2) of the TWS earphone 101, and application code for pairing the earbud with the aforementioned electronic device 100 (e.g., mobile phone 100). The processor 510 can control the execution of the aforementioned application code to realize the function of the earbud of the TWS earphone in this embodiment of the application.

[0080] The memory 520 may also store a Bluetooth address for uniquely identifying the earbud, and the Bluetooth address of another earbud associated with the TWS earphone. Additionally, the memory 520 may store connection data of electronic devices previously successfully paired with the earbud. For example, this connection data could be the Bluetooth address of an electronic device that has been successfully paired with the earbud. Based on this connection data, the earbud can automatically pair with the electronic device without needing to configure the connection, such as performing authentication. The aforementioned Bluetooth address can be a media access control (MAC) address.

[0081] Sensor 530 can be a distance sensor or a proximity light sensor. The earbud can determine whether it is being worn by a user using sensor 530. For example, the earbud can use a proximity light sensor to detect the presence of an object nearby, thereby determining whether the earbud is being worn. When it is determined that the earbud is being worn, the earbud can turn on the receiver 550. In some embodiments, the earbud may also include a bone conduction sensor, integrated into a bone conduction headset. Using this bone conduction sensor, the earbud can acquire vibration signals from the vibrating bone segments of the acoustic chamber, decode the speech signal, and achieve voice functionality. In other embodiments, the earbud may also include a touch sensor for detecting user touch operations. In other embodiments, the earbud may also include a fingerprint sensor for detecting user fingerprints, identifying user identity, etc. In other embodiments, the earbud may also include an ambient light sensor, which can adaptively adjust parameters such as volume based on the perceived brightness of the ambient light.

[0082] The wireless communication module 540 is used to support short-range data exchange between the earbuds of the TWS earphones and various electronic devices, such as the electronic device 100 described above. In some embodiments, the wireless communication module 540 can be a Bluetooth transceiver. The earbuds of the TWS earphones can establish a wireless connection with the electronic device 100 through the Bluetooth transceiver to achieve short-range data exchange between the two.

[0083] At least one receiver 550, also referred to as a "handpiece", can be used to convert audio electrical signals into sound signals and play them. For example, when the earbuds of TWS earphones are used as the audio output device of the aforementioned electronic device 100, the receiver 550 can convert the received audio electrical signals into sound signals and play them.

[0084] At least one microphone 560, also referred to as a "microphone" or "voice transducer," is used to convert sound signals into audio electrical signals. For example, when the earbuds of the TWS earphones 101 serve as the audio input device of the aforementioned electronic device 100, the microphone 560 can collect the user's sound signals and convert them into audio electrical signals during the user's speech (such as during a call or sending a voice message). These audio electrical signals are the audio data in the embodiments of this application.

[0085] The power source 570 can be used to power the various components contained in the earbuds of the TWS earbuds 101. In some embodiments, the power source 570 can be a battery, such as a rechargeable battery.

[0086] Typically, the TWS earbuds 101 come with an ear tip case (e.g., Figure 4 (As shown in 101-3). This earbud case can be used to store the left and right earbuds of TWS earbuds. Figure 4 As shown, the earbud case 101-3 can be used to store the earbuds 101-1 and 101-2 of the TWS earphones. Additionally, the earbud case can also charge the left and right earbuds of the TWS earphones 101. Accordingly, in some embodiments, the earbuds may further include an input / output interface 580. The input / output interface 580 can be used to provide any wired connection between the earbuds of the TWS earphones and the earbud case (such as the earbud case 101-3 described above).

[0087] In some embodiments, the input / output interface 580 may be an electrical connector. When the earbuds of the TWS earbuds 101 are placed in the earbud case, the earbuds of the TWS earbuds 101 can be electrically connected to the earbud case (e.g., to the input / output interface of the earbud case) via the electrical connector. After the electrical connection is established, the earbud case can charge the power supply 570 of the TWS earbuds. After the electrical connection is established, the earbuds of the TWS earbuds 101 can also communicate with the earbud case. For example, the earbuds of the TWS earbuds 101 can receive pairing commands from the earbud case via the electrical connection. This pairing command is used to instruct the earbuds of the TWS earbuds 101 to turn on the wireless communication module 540, thereby enabling the earbuds of the TWS earbuds 101 to pair and connect with the electronic device 100 using a corresponding wireless communication protocol (e.g., Bluetooth).

[0088] Of course, the earbuds of the aforementioned TWS earphones 101 may also not include the input / output interface 580. In this case, the earbuds can achieve charging or data communication functions based on the wireless connection established between the earbuds and the earphone case via the aforementioned wireless communication module 540.

[0089] In some embodiments, the earbud case (such as earbud case 101-3 described above) may also include components such as a processor and a memory. The memory can be used to store application code, which is executed by the processor of the earbud case to realize the functions of the earbud case. For example, when a user opens the earbud case lid, the earbud case processor, by executing the application code stored in the memory, can send pairing commands to the earbuds of the TWS earphones in response to the user's opening of the lid.

[0090] It is understood that the structure illustrated in the embodiments of this application does not constitute a specific limitation on the earbuds of the TWS earphone 101. It may have a more... Figure 5 The number of components shown may be more or less, and two or more components may be combined, or different component configurations may be used. For example, the earbud may also include components such as an indicator light (which can indicate the earbud's battery level, etc.) and a dust filter (which can be used with the earpiece). Figure 5 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application-specific integrated circuits.

[0091] It should be noted that the left and right earbuds of the TWS Earbuds 101 can have the same structure. For example, both the left and right earbuds of the TWS Earbuds 101 can include... Figure 5 The components shown. Alternatively, the structures of the left and right earbuds of the TWS earphone 101 can also be different. For example, one earbud of the TWS earphone 101 (such as the right earbud) may include Figure 5 The components shown are shown, and another earbud (such as the left earbud) may include... Figure 5Other components besides the microphone 560.

[0092] Taking the aforementioned electronic device as an example, mobile phone 100, Figure 6A A schematic diagram of the structure of the electronic device 100 is shown. For example... Figure 6A As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0093] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0094] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0095] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0096] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly.

[0097] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0098] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0099] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0100] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0101] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0102] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0103] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0104] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0105] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS). For example, in this embodiment, the electronic device 100 can utilize the wireless communication module 160 to establish a wireless connection with peripheral devices via wireless communication technology, such as Bluetooth (BT). Based on the established wireless connection, the electronic device 100 can send voice data to and receive voice data from peripheral devices.

[0106] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0107] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0108] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0109] An ISP is used to process data fed back from camera 193. In some embodiments, the ISP may be located within camera 193. Camera 193 is used to capture still images or video. In some embodiments, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1. A video codec is used to compress or decompress digital video. Electronic device 100 may support one or more video codecs.

[0110] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0111] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. For example, in this embodiment, the processor 110 can establish a wireless connection with a peripheral device via the wireless communication module 160 and perform short-range data exchange with the peripheral device by executing the instructions stored in the internal memory 121, thereby enabling functions such as making calls and playing music through the peripheral device. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.). Furthermore, the internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. In this embodiment, wireless communication technology, such as Bluetooth, is used between the electronic device 100 and the peripheral device. After establishing a wireless connection, the electronic device 100 can store the Bluetooth address of the peripheral device in the internal memory 121. In some embodiments, when the peripheral device is a device containing two main components, such as TWS earbuds, the left and right earbuds of the TWS earbuds each have their own Bluetooth address. The electronic device 100 can associate and store the Bluetooth addresses of the left and right earbuds of the TWS earbuds in the internal memory 121.

[0112] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0113] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0114] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0115] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0116] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0117] In this embodiment, when the electronic device 100 establishes a wireless connection with a peripheral device 101, such as a TWS earphone, the TWS earphone can be used as an audio input / output device for the electronic device 100. For example, the audio module 170 can receive audio electrical signals transmitted by the wireless communication module 160, enabling functions such as answering calls and playing music through the TWS earphone. For instance, during a user's phone call, the TWS earphone can collect the user's voice signal, convert it into an audio electrical signal, and send it to the wireless communication module 160 of the electronic device 100. The wireless communication module 160 transmits this audio electrical signal to the audio module 170. The audio module 170 can convert the received audio electrical signal into a digital audio signal, encode it, and transmit it to the mobile communication module 150. The mobile communication module 150 then transmits it to the other end of the call to enable communication. As another example, when a user plays music using the media player of the electronic device 100, the application processor can transmit the audio electrical signal corresponding to the music played by the media player to the audio module 170. The audio module 170 then transmits this audio electrical signal to the wireless communication module 160. The wireless communication module 160 can send audio electrical signals to the TWS earphones so that the TWS earphones can convert the audio electrical signals into sound signals and play them.

[0118] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0119] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example: when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0120] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios. The barometric pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The accelerometer sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The proximity sensor 180F is used to measure distance. The electronic device 100 can use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used for automatic unlocking and locking in holster mode and pocket mode. The ambient light sensor 180L is used to sense ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches. The fingerprint sensor 180H is used to collect fingerprints. Electronic device 100 can utilize the collected fingerprint characteristics to achieve fingerprint unlocking, application access lock, fingerprint photography, fingerprint answering of calls, etc. Temperature sensor 180J is used to detect temperature. Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K is used to detect touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K can also be located on the surface of electronic device 100, in a different position than display screen 194. Bone conduction sensor 180M can acquire vibration signals. Bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. The application processor can analyze heart rate information based on the blood pressure signals acquired by the bone conduction sensor 180M to achieve heart rate detection function.

[0121] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with electronic device 100. Electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. Electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication.

[0122] Introduction to relevant terminology in the embodiments of this application:

[0123] I. CIG and CIS.

[0124] The identifier (CIG_ID) of a CIG is used to identify a CIG. For example, CIG(1) and CIG(2) are used to represent different CIGs. A CIG can include multiple CISs. In the transmission mechanism of the ISO channel, the transmission channel between the source device and each destination device is defined as a CIS. Each destination device corresponds to one CIS. For example, take the left and right earbuds of mobile phone 100 and TWS earphone 101 as an example. Mobile phone 100 can configure a CIG for the left and right earbuds of TWS earphone 101, and configure the CIG to include two CISs, such as CIS(1) and CIS(2). Earbud 101-1 corresponds to CIS(1), and earbud 101-2 corresponds to CIS(2). The identifier (CIS_ID) of each CIS is different. For example, the identifiers of CIS(1) and CIS(2) are different. Multiple CISs in the same CIG have a common CIG synchronization point and CIG playback point, which are used to realize the playback level synchronization of audio data by multiple peripheral devices.

[0125] A CIG consists of multiple CIG events (CIG_events). For example, CIG(1) may include... Figure 6B The examples shown are CIG events (x) and CIG events (x+1), etc. Each CIG event belongs to an ISO interval (ISO_interval) in time. For example, as... Figure 6BAs shown, CIG event (x) belongs temporally to the ISO interval between the CIG(x) anchor point and the CIG(x+1) anchor point, and CIG event (x+1) belongs temporally to the ISO interval between the CIG(x+1) anchor point and the CIG(x+2) anchor point. The CIG anchor point is the start time of the corresponding CIG event. For example, the CIG(x) anchor point is the start time of the CIG event (x).

[0126] Each CIG event can include multiple CIS events (CIS_event). For example, such as Figure 6B As shown, CIG event(x) includes CIS(1) event(x) and CIS(2) event(x), and CIG event(x+1) includes CIS(1) event(x+1) and CIS(2) event(x+1).

[0127] Each CIS can include multiple CIS events. For example, CIS(1) can include... Figure 6B The CIS(1) event (x) and CIS(1) event (x+1) are shown. CIS(2) may include Figure 6B The CIS(2) event(x) and CIS(2) event(x+1) are shown.

[0128] Each CIS event belongs to an ISO interval in time. For example, such as Figure 6B As shown, CIS(1) event(x) belongs to the ISO interval between CIS(1).x anchor point and CIS(1).x+1 anchor point in time, CIS(2) event(x) belongs to the ISO interval between CIS(2).x anchor point and CIS(2).x+1 anchor point in time, and CIS(1) event(x+1) belongs to the ISO interval between CIS(1).x+1 anchor point and CIS(1).x+1 anchor point in time.

[0129] The ISO interval is the time between two consecutive CIS anchor points. Two consecutive CIS anchor points refer to two consecutive anchor points of the same CIS. For example, the anchor points CIS(1).x and CIS(1).x+1 are two consecutive anchor points of CIS(1). A CIS anchor point is the start time point of the corresponding CIS event. For example, the anchor point CIS(1).x is the start time point of event (x) in CIS(1).

[0130] II. Sub-event.

[0131] Each CIS can define NSE subevents within an ISO interval. That is, each CIS event consists of the number of subevents (NSE). NSE is greater than or equal to 1. For example, ... Figure 6B , Figure 10 (a) or Figure 12 As shown in any of the figures in (a), the NSE (i.e., N1) of CIS(1) is equal to 2, and the event (x) of CIS(1) consists of sub-events (1_1) and (1_2); the NSE (i.e., N2) of CIS(2) is equal to 2, and the event (x) of CIS(2) consists of sub-events (2_1) and (2_2).

[0132] like Figure 6B As shown, each sub-event consists of an "M->S" and an "S->M". "M->S" is used for the source device to send audio data to the destination device, and for the destination device to receive the audio data sent by the source device. "S->M" is used for the destination device to send audio data to the source device, and for the source device to receive the audio data sent by the destination device. For example, in CIS(1), "M->S" is used for mobile phone 100 to send audio data to earphone 101-1, and for earphone 101-1 to receive the audio data sent by mobile phone 100. In CIS(1), "S->M" is used for earphone 101-1 to send data (such as audio data or feedback information) to mobile phone 100, and for mobile phone 100 to receive the data sent by earphone 101-1. In CIS(2), "M->S" is used for electronic device 1 (mobile phone 100) to send audio data to earphone 101-2, i.e., for earphone 101-2 to receive the audio data sent by mobile phone 100. The “S->M” in CIS(2) is used for earbud 101-2 to send data (such as audio data or feedback information) to mobile phone 100, and for mobile phone 100 to receive the data sent by earbud 101-2. The above feedback information can be an acknowledgment (ACK) or a negative acknowledgment (NACK).

[0133] Each sub-event belongs to a sub-interval in time. A sub-interval of a CIS can be the time between the start time of one sub-event within the same CIS event and the start time of the next sub-event. For example, ... Figure 10 (a) or Figure 12As shown in any of the figures in (a), the sub-interval of CIS(1) (i.e., CIS(1)_sub-interval) can be the time between the start time of sub-event (1_1) in CIS(1) event (x) and the start time of sub-event (1_2). The sub-interval of CIS(2) (i.e., CIS(2)_sub-interval) can be the time between the start time of sub-event (2_1) in CIS(2) event (x) and the start time of sub-event (2_2).

[0134] It is important to note that, given a fixed ISO interval, a larger NSE indicates more sub-events within an ISO interval, resulting in more data packets transmitted within that interval and a higher duty cycle for the ISO channel. Mobile phone 100 can determine the NSE based on the duty cycle requirements of the ISO channel for audio data.

[0135] Please refer to Figure 7 This illustrates a BLE-based audio protocol framework provided by an embodiment of this application. Figure 7 As shown, the protocol framework may include: application layer, host, host controller interface (HCI), and controller.

[0136] The controller comprises a link layer and a physical layer. The physical layer is responsible for providing the physical channels for data transmission. Typically, a communication system contains several different types of channels, such as control channels, data channels, and voice channels. The link layer includes ACL links and ISO channels. ACL links are used to transmit control messages between devices, such as content control messages (e.g., previous track, next track). ISO channels can be used to transmit isochronous data between devices (e.g., audio data).

[0137] The host and controller communicate via HCI. The communication medium between the host and controller is HCI commands. The host can be implemented in the device's application processor (AP), and the controller can be implemented in the device's Bluetooth chip. Optionally, in smaller devices, the host and controller can be implemented in the same processor or controller; in this case, HCI is optional.

[0138] For ease of understanding, the audio data transmission method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings. In the following embodiments, the electronic device is a mobile phone 100, the first earbud of the TWS earphone is earbud 101-1 of the TWS earphone 101, and the second earbud is earbud 101-2 of the TWS earphone 101.

[0139] In this embodiment of the application, regardless of whether one earbud of the TWS earphone 101 (such as earbud 101-1) is used alone as an audio input / output device of the mobile phone 100 (i.e., single-ear state), or both earbuds of the TWS earphone 101 (earbud 101-1 and earbud 101-2) are used together as an audio input / output device of the mobile phone 100 (i.e., dual-ear state), the mobile phone 100 can configure a first CIG including two CISs (such as a first CIS and a second CIS) for the TWS earphone 101.

[0140] Please refer to Figure 8 The embodiments of this application are combined with Figure 7 The BLE-based audio protocol framework shown illustrates the process of configuring the first CIG and creating the CIS on mobile phone 100. This configuration and CIS creation by mobile phone 100 is performed only after mobile phone 100 and earphones (earphones 101-1 and / or earphones 101-2) are already in a connection state. Both mobile phone 100 and earphones have a Host and a Link Layer (LL) (in the controller), and the Host and LL communicate via HCI. Specifically, the earphone's Host and LL are... Figure 8 Not shown in the image.

[0141] In this embodiment, the host of mobile phone 100 can set the CIG parameters of the first CIG via HCI commands. The CIG parameters are used to create an isochronous data transmission channel (i.e., CIS). The method by which mobile phone 100 and earpiece negotiate CIG parameters can refer to the method of negotiating CIG parameters between electronic devices in conventional technology, and will not be described here in this application embodiment.

[0142] For example, the Host of mobile phone 100 can respond to a service request from application layer 901 by setting the CIG parameters of the first CIG based on the audio data and the LL of mobile phone 100. Mobile phone 100 can set different CIG parameters for different audio data.

[0143] Specifically, the host of mobile phone 100 can send CIG parameter setting information to the LL of mobile phone 100 via HCI. For example, the CIG parameter setting information can be the HCI command "LE Set CIG parameters". Correspondingly, the LL of mobile phone 100 can return a first confirmation message. For example, the first confirmation message can be the response message "Command Complete".

[0144] Subsequently, the host of mobile phone 100 can initiate the creation of a CIS via HCI commands. Specifically, the host of mobile phone 100 can send CIS creation information to the LL of mobile phone 100 via HCI. For example, the CIS creation information can be the HCI command "LE CreateCIS". Correspondingly, the LL of mobile phone 100 can return a second confirmation message. For example, this second confirmation message can be "HCICommand Status".

[0145] The phone LL sends a CIS connection response message (e.g., LL_CIS_RSP message) to the mobile phone LL; the mobile phone LL sends a fourth confirmation message (e.g., LL_CIS_IND message) to the first earpiece LL, and the mobile phone LL sends a CIS connection established message (e.g., LE CIS Established message) to the mobile phone host. At this point, a CIS connection link is established between the mobile phone and the first earpiece.

[0146] The LL of mobile phone 100 can request the creation of a CIS from the earpiece (e.g., earpiece 101-1) via a CIS request (e.g., LL_CSI_REQ). The earpiece (e.g., earpiece 101-1) replies to the LL of mobile phone 100 with a CIS response (e.g., LL_CIS_RSP). The LL of mobile phone 100 sends a CIS confirmation (e.g., LL_CIS_IND) to the earpiece (e.g., earpiece 101-1). Furthermore, the LL of the mobile phone can send CIS connection established information (e.g., LE CIS Established message) to the host of the mobile phone, as shown in the attached diagram.

[0147] At this point, the CIS (Computer Interface) between the mobile phone 100 and the earphone is established. Once the established CIS is activated, the mobile phone 100 and the earphone can transmit audio data.

[0148] It's understandable that while the phone 100 can configure the first CIG (Combined First Image) for the TWS earbuds 101, including both CIS (Correct Image Sensors), regardless of whether the TWS earbuds 101 are in single-ear or dual-ear mode, the CIS activated by the phone 100 and the TWS earbuds 101 are different in single-ear and dual-ear modes. Specifically:

[0149] In dual-ear mode, the mobile phone 100 can activate the first CIS and the second CIS. Audio data is transmitted between the first CIS and the earbud 101-1, and between the second CIS and the earbud 101-2. Thus, when the TWS earbud 101 switches from dual-ear mode to single-ear mode, the mobile phone 100 can deactivate one CIS and continue using the other CIS to transmit audio data with the corresponding earbud.

[0150] In single-ear mode, the mobile phone 100 activates only one CIS (such as the first CIS), transmitting audio data through the activated CIS and the corresponding earbud (such as the first earbud). The mobile phone 100 does not activate the other CIS (such as the second CIS). Therefore, when the TWS earbuds 101 switch from single-ear mode to dual-ear mode, the electronic device 100 can activate the other CIS, using both CISs and both earbuds for audio data transmission.

[0151] In this embodiment, if a switch between mono and binaural audio occurs during music playback or voice communication, the electronic device 100 does not need to reconfigure the ISO channel (i.e., reconfigure the CIS); it only needs to activate or deactivate the corresponding CIS. This prevents interruption of audio data transmission, ensuring normal audio data transmission and improving the user experience.

[0152] When a user wishes to use the TWS earbuds 101, they can open the lid of the earbud case 101-3. At this time, earbuds 101-1 and 101-2 can automatically pair and connect.

[0153] Furthermore, after the lid of the earbud case 101-3 is opened, either earbud 101-1 or earbud 101-2 (e.g., earbud 101-2) can send a pairing broadcast. If the mobile phone 100 has Bluetooth enabled, it can receive the pairing broadcast and notify the user that it has scanned for a relevant Bluetooth device (e.g., earbud 101-2). When the user selects earbud 101-2 as the connection device on the mobile phone 100, the mobile phone 100 can pair with earbud 101-2.

[0154] After earbud 101-2 is paired with mobile phone 100, earbud 101-2 can send the Bluetooth address of mobile phone 100 to earbud 101-1 via the Bluetooth connection with earbud 101-1, and notify earbud 101-1 to send a pairing broadcast. In this way, mobile phone 100 can receive the pairing broadcast sent by earbud 101-1 and pair with earbud 101-1.

[0155] Specifically, after the mobile phone 100 is paired with the earphone 101-2, it can establish ACL link 1 with the earphone 101-2. After the mobile phone 100 is paired with the earphone 101-1, it can establish ACL link 2 with the earphone 101-1.

[0156] Earbud 101-2 can also send the MAC address of earbud 101-1 to mobile phone 100 to indicate to mobile phone 100 that earbud 101-1 and earbud 101-2 are two main bodies of the same peripheral device (such as TWS earphone 101).

[0157] In this embodiment, the mobile phone 100 can determine whether the TWS earphone 101 is in a single-ear state or a dual-ear state through the following methods (1)-(3). The single-ear state includes a first single-ear state and a second single-ear state. That is, the mobile phone 100 can perform the following methods (1)-(3). Figure 9 The S900 shown:

[0158] Method (1): Whether earplugs 101-1 and 101-2 are both taken out of earplug box 101-3.

[0159] After the lid of the earbud case 101-3 is opened, the user can remove one or both earbuds from it. The removal of an earbud from the earbud case 101-3 can be detected by a sensor (such as a light sensor or a contact sensor) or an electrical connector. Once an earbud is removed from the earbud case 101-3, it can send a notification to the mobile phone 100. For example, taking earbud 101-1 as an example, earbud 101-1 can send a control command to the mobile phone 100 via ACL link 1 to indicate that it has been removed from the earbud case 101-3.

[0160] If mobile phone 100 determines that both earbuds of TWS earphone 101 have been removed from earbud case 101-3, then mobile phone 100 can determine that TWS earphone 101 is in dual-ear mode. That is, both earbuds (earbud 101-1 and earbud 101-2) of TWS earphone 101 are used together as audio input / output devices of mobile phone 100.

[0161] If mobile phone 100 determines that only one earbud of TWS earphone 101 has been removed from earbud case 101-3, while the other earbud has not been removed from earbud case 101-3, then mobile phone 100 can determine that TWS earphone 101 is in single-ear mode. That is, one earbud of TWS earphone 101 (such as earbud 101-1) is used solely as an audio input / output device of mobile phone 100.

[0162] Method (2): Whether earplugs 101-1 and 101-2 are both worn.

[0163] After the user takes the earbuds out of the earbud case 101-3, they can put them on their ears. The earbuds can detect whether they are being worn using sensors (such as light sensors or bone sensors). Once worn, the user can indicate this to the mobile phone 100. For example, taking earbud 101-1 as an example, earbud 101-1 can send a control command to the mobile phone 100 via ACL link 1 to indicate that the earbuds are being worn.

[0164] It is understandable that even if both earbuds of the TWS earphone 101 are removed from the earbud case 101-3, the user may only use one earbud to transmit audio data with the mobile phone 100. Based on this, in this embodiment of the application, the TWS earphone 101 can be determined to be in a dual-ear or single-ear state by judging whether both earbuds 101-1 and 101-2 are worn.

[0165] If mobile phone 100 determines that both earbuds of TWS earphone 101 are being worn, then mobile phone 100 can determine that TWS earphone 101 is in a binaural state. That is, both earbuds (earbud 101-1 and earbud 101-2) of TWS earphone 101 are used together as audio input / output devices of mobile phone 100.

[0166] If mobile phone 100 determines that only one earbud of TWS earphone 101 is being worn, while the other earbud is not being worn, then mobile phone 100 can determine that TWS earphone 101 is in single-ear mode. That is, one earbud of TWS earphone 101 (such as earbud 101-1) is used solely as an audio input / output device of mobile phone 100.

[0167] Method (3): Whether earbuds 101-1 and 101-2 are paired and connected.

[0168] In dual-ear mode, the two earbuds of the TWS earbuds 101 are paired and connected. In single-ear mode, the two earbuds of the TWS earbuds 101 are not paired and connected. Therefore, the mobile phone 100 can determine whether the TWS earbuds 101 are in dual-ear or single-ear mode by checking whether earbuds 101-1 and 101-2 are paired and connected.

[0169] For example, in some usage scenarios, after a user takes one earbud (e.g., earbud 101-1) out of the earbud case 101-3, they will not take out the other earbud (e.g., earbud 101-2). Then, the user will close the earbud case 101-3. After the earbud case 101-3 is closed, earbud 101-2 inside the earbud case 101-3 will be disconnected from earbud 101-1 outside the earbud case 101-3. That is, the two earbuds of the TWS earphone 101 are not paired and connected.

[0170] After the two earbuds disconnect, the earbud 101-1 outside the earbud case 101-3 can instruct the mobile phone 100 to disconnect the two earbuds. For example, earbud 101-1 can send a control command to the mobile phone 100 through ACL link 1 to instruct the two earbuds to disconnect.

[0171] If earbuds 101-1 and 101-2 are paired and connected, mobile phone 100 can determine that the TWS earphones 101 are in dual-ear mode. That is, the two earbuds (earbuds 101-1 and 101-2) of the TWS earphones 101 are used together as audio input / output devices of mobile phone 100.

[0172] If earbuds 101-1 and 101-2 are not paired and connected, and the other earbud is not being worn, the mobile phone 100 can determine that the TWS earphone 101 is in single-ear mode. That is, one earbud of the TWS earphone 101 (such as earbud 101-1) is used alone as an audio input / output device of the mobile phone 100.

[0173] It should be noted that the methods used by the mobile phone 100 to determine whether the TWS earphone 101 is in single-ear or dual-ear mode include, but are not limited to, the methods (1) to (3) described above. For example, the mobile phone 100 can determine whether the TWS earphone 101 is in single-ear or dual-ear mode by checking whether both earbuds 101-1 and 101-2 are connected to the mobile phone. In some usage scenarios, after the user takes earbud 101-1 out of the earbud case 101-3, they will not take out earbud 101-2. Then, the user will close the earbud case 101-3. After the earbud case 101-3 is closed, earbud 101-2 in the earbud case 101-3 is disconnected from the mobile phone 100. At this time, the mobile phone 100 can determine that the TWS earphone 101 is in single-ear mode.

[0174] Taking CIS(1) as the first CIS and CIS(2) as the second CIS as an example, when the mobile phone 100 is configured with the first CIG, the aforementioned CIS(1) and CIS(2) are configured with either a sequential or interleaved transmission mode. The CIG parameters of the first CIG are different in the sequential and interleaved transmission modes. Detailed descriptions of the sequential and interleaved transmission modes can be found in the following embodiments, and will not be repeated here.

[0175] In some embodiments, Figure 9Following S900, it is assumed that the TWS earphone 101 is in a binaural state, meaning that the two earbuds (earbud 101-1 and earbud 101-2) of the TWS earphone 101 are used together as audio input / output devices of the mobile phone 100. In this embodiment, the method of this application embodiment is described using a transmission mode in which CIS(1) and CIS(2) are configured as interleaved.

[0176] For example, in Figure 9 Following the S900 shown, if the mobile phone 100 determines that the TWS earphone 101 is in dual-ear mode, the mobile phone 100 can execute S901. Specifically, the mobile phone 100 can execute... Figure 8 During the S801 configuration of the CIG process shown, the first CIG is configured, and CIS(1) and CIS(2) are configured as follows: Figure 10 The interleaved scheduling transmission method is shown in (a) above. Specifically, as... Figure 10 (a) or Figure 10 As shown in (b), the anchor point of CIS(1) (e.g., the anchor point of CIS(1).x) is the anchor point of the first CIG (e.g., the anchor point of CIG(x); while the anchor point of CIS(2) (e.g., the anchor point of CIS(2).x) is the same as the end point of the first sub-event (i.e., sub-event 1_1) in the event (x) of CIS(1). Furthermore, the sub-intervals of CIS(1) (e.g., the sub-intervals of CIS(1)_) are different from the sub-intervals of CIS(2) (e.g., the sub-intervals of CIS(2)_).

[0177] Subsequently, mobile phone 100 can execute S802 with earphone 101-1 to create a CIS (1) for earphone 101-1. Mobile phone 100 can execute S803 with earphone 101-2 to create a CIS (2) for earphone 101-2. The steps of mobile phone 100 creating CIS (1) for earphone 101-1 and creating CIS (2) for earphone 101-2 can be performed as follows: Figure 9 The area between S901 and S902 shown ( Figure 9 (Not shown). Finally, the mobile phone 100 can instruct the earpiece 101-1 to activate CIS (1), and instruct the earpiece 101-2 to activate CIS (2) (i.e., execute). Figure 9 (S902 shown). The mobile phone 100 can send an activation command to the earphone 101-1 via ACL (1) and an activation command to the earphone 101-2 via ACL (2). The activation command is used to trigger the earphone 101-1 to activate CIS (1) and the earphone 101-2 to activate CIS (2). After CIS (1) and CIS (2) are activated, the mobile phone 100 can then... Figure 10 The interleaved scheduling transmission method shown in (a) transmits audio data with earbuds 101-1 and 101-2 (i.e., performs...). Figure 9(S903 shown).

[0178] In dual-ear mode, the phone 100 follows... Figure 10 The interleaved scheduling transmission method shown in (a) is the same as the method by which earbuds 101-1 and 101-2 transmit audio data. Figure 9 The S903 shown may specifically include the following processes (A) to (D).

[0179] Process (A): Starting from the CIS(1).x anchor point (i.e., the CIG(x) anchor point), mobile phone 100 sends audio data (such as audio data packet 1) to earphone 101-1 at "M->S" in sub-event (1_1) of CIS(1) event (x). Earphone 101-1 can receive the audio data (such as audio data packet 1) sent by mobile phone 100 at "M->S" in sub-event (1_1). Earphone 101-1 sends first data to mobile phone 100 at "S->M" in sub-event (1_1). Mobile phone 100 receives the first data sent by earphone 101-1 at "S->M" in sub-event (1_1). The first data may include: feedback information from earphone 101-1 to mobile phone 100; and / or, audio data collected by the microphone (such as microphone 160) in earphone 101-1. The feedback information may be ACK or NACK of the aforementioned audio data packet 1.

[0180] Process (B): Starting from the CIS(2).x anchor point, mobile phone 100 sends audio data (such as audio data packet 1) to earpiece 101-2 at "M->S" in sub-event (2_1) of CIS(2) event (x). Earpiece 101-2 can receive the audio data (such as audio data packet 1) sent by mobile phone 100 at "M->S" in sub-event (2_1). Earpiece 101-2 sends second data to mobile phone 100 at "S->M" in sub-event (2_1). Mobile phone 100 receives the second data sent by earpiece 101-2 at "S->M" in sub-event (2_1). The second data may include: feedback information from earpiece 101-2 to mobile phone 100; and / or, audio data collected by the microphone (such as microphone 160) in earpiece 101-2. The feedback information may be ACK or NACK of the aforementioned audio data packet 1.

[0181] Process (C): Assume that mobile phone 100 receives the ACK of audio data packet 1 at "S->M" in sub-event (1_1). Mobile phone 100 sends audio data (such as audio data packet 2) to earphone 101-1 at "M->S" in sub-event (1_2). Earphone 101-1 can receive the audio data (such as audio data packet 2) sent by mobile phone 100 at "M->S" in sub-event (1_2). Earphone 101-1 sends third data to mobile phone 100 at "S->M" in sub-event (1_2). Mobile phone 100 receives the third data sent by earphone 101-1 at "S->M" in sub-event (1_2). The third data may include: feedback information from earphone 101-1 to mobile phone 100; and / or, audio data collected by the microphone (such as microphone 160) in earphone 101-1. The feedback information may be the ACK or NACK of audio data packet 2.

[0182] Process (D): Assume that mobile phone 100 receives the ACK of the aforementioned audio data packet 1 during the "S->M" event in sub-event (2_1). Mobile phone 100 sends audio data (such as audio data packet 2) to earpiece 101-2 during the "M->S" event in sub-event (2_2) of CIS (x). Earpiece 101-2 can receive the audio data (such as audio data packet 2) sent by mobile phone 100 during the "M->S" event in sub-event (2_2). Earpiece 101-2 sends fourth data to mobile phone 100 during the "S->M" event in sub-event (2_2). Mobile phone 100 receives the fourth data sent by earpiece 101-2 during the "S->M" event in sub-event (2_2). This fourth data may include: feedback information from earpiece 101-2 to mobile phone 100; and / or, audio data collected by the microphone (such as microphone 160) in earpiece 101-2. The feedback information may be an ACK or NACK of the aforementioned audio data packet 2.

[0183] Furthermore, the left and right earbuds of the mobile phone 100 and the TWS earphone 101 can perform audio data transmission in CIG event (x+n) using the same transmission method as in CIG event (x). n is greater than or equal to 1, and n is an integer. The method for audio data transmission between the left and right earbuds of the mobile phone 100 and the TWS earphone 101 in CIG event (x+n) can refer to the method for audio data transmission in CIG event (x), and will not be elaborated upon here in this embodiment.

[0184] During the execution of S903 by mobile phone 100 and earbuds 101-1 and 101-2, TWS earbud 101 may switch between single and dual ear modes, meaning TWS earbud 101 may switch from dual-ear mode to single-ear mode. In other words, mobile phone 100 can execute... Figure 9 The S904 shown.

[0185] For example, mobile phone 100 can determine whether TWS earphone 101 has switched from dual-ear mode to single-ear mode through the following methods (I)-(IV). That is, mobile phone 100 can perform the following methods (I)-(IV). Figure 9 S904 as shown:

[0186] Method (I): Whether earplug 101-1 or earplug 101-2 is placed in earplug case 101-3.

[0187] In method (1) above, if both earbuds 101-1 and 101-2 are removed from the earbud case 101-3, the mobile phone 100 determines that the TWS earphone 101 is in a dual-ear state. Method (I) corresponds to method (1) above. In the dual-ear state, the mobile phone 100 can determine whether to switch to a single-ear state by judging whether earbud 101-1 or earbud 101-2 is put into the earbud case 101-3. For example, the mobile phone 100 can determine that the TWS earphone 101 has switched from a dual-ear state to a single-ear state when either earbud 101-1 or earbud 101-2 is put into the earbud case 101-3. That is, one earbud of the TWS earphone 101 (such as earbud 101-2) is used as the audio input / output device of the mobile phone 100.

[0188] The earbud can detect when it is placed in the earbud case 101-3 via a sensor (such as a light sensor or a contact sensor) or an electrical connector. Once the earbud is placed in the earbud case 101-3, it can indicate to the mobile phone 100 that it has been placed in the earbud case 101-3. For example, taking earbud 101-2 as an example, earbud 101-2 can send a control command to the mobile phone 100 via ACL link 2 to indicate that earbud 101-2 has been placed in the earbud case 101-3.

[0189] Method (II): Whether earbud 101-1 or earbud 101-2 is switched from being worn to not being worn.

[0190] In method (2) above, if both earbuds 101-1 and 101-2 are worn, the mobile phone 100 determines that the TWS earphone 101 is in a dual-ear state. Method (II) corresponds to method (2) above. In the dual-ear state, the mobile phone 100 can determine whether to switch to a single-ear state by judging whether earbud 101-1 or earbud 101-2 is worn. For example, the mobile phone 100 can determine that the TWS earphone 101 has switched from a dual-ear state to a single-ear state when either earbud 101-1 or earbud 101-2 is not worn. That is, one earbud of the TWS earphone 101 (such as earbud 101-2) is used as the audio input / output device of the mobile phone 100 alone. Of course, if neither earbud has switched from the worn state to the unworn state, the TWS earphone 101 will not switch from the dual-ear state to the single-ear state.

[0191] For example, when the earbud is removed from the user's ear, a sensor (such as a light sensor or bone sensor) can detect the change from a worn state to a not-worn state. For instance, suppose both earbud 101-1 and earbud 101-2 are worn. Taking earbud 101-2 being removed from the user's ear as an example, earbud 101-2 can detect the change from a worn state to a not-worn state via the sensor. At this time, earbud 101-2 can send a control command to mobile phone 100 via ACL link 2 to instruct it to change from a worn state to a not-worn state.

[0192] Method (III): Whether earbuds 101-1 and 101-2 are disconnected.

[0193] Method (III) corresponds to method (3) above. In dual-ear mode, the two earbuds of TWS earphone 101 are paired and connected. In single-ear mode, the two earbuds of TWS earphone 101 are disconnected. Therefore, mobile phone 100 can determine whether TWS earphone 101 has switched from dual-ear mode to single-ear mode by whether earbud 101-1 and earbud 101-2 are disconnected.

[0194] For example, in some usage scenarios, while using the two earbuds (earbud 101-1 and earbud 101-2) of the TWS earbuds 101, a user might stop using one of the earbuds for some reason (such as a low battery warning from one earbud) and place it in the earbud case 101-3. When the battery level of either earbud (earbud 101-1 or earbud 101-2) falls below a preset battery threshold, a low battery warning can be issued. For example, the earbud can issue a low battery warning via voice or vibration. After earbud 1 (e.g., earbud 101-1) is placed in the earbud case 101-3, it can disconnect from the other earbud (e.g., earbud 101-2). That is, the two earbuds of the TWS earbuds 101 are not paired. After the two earbuds are disconnected, the earbud outside the earbud case 101-3 (e.g., earbud 101-2) can indicate to the mobile phone 100 that the two earbuds are disconnected. For example, earbud 101-2 can send control commands to mobile phone 100 via ACL link 2 to instruct the two earbuds to disconnect.

[0195] If earbuds 101-1 and 101-2 disconnect, mobile phone 100 can determine that TWS earbuds 101 have switched from dual-ear mode to single-ear mode. That is, one earbud of TWS earbuds 101 (such as earbud 101-2) is used solely as an audio input / output device for mobile phone 100. Of course, if earbuds 101-1 and 101-2 do not disconnect, mobile phone 100 can determine that TWS earbuds 101 will not switch to single-ear mode.

[0196] Method (IV): Whether the battery level of earbud 101-1 or earbud 101-2 is lower than the preset battery threshold.

[0197] When the battery level of an earbud (such as earbud 101-1 or earbud 101-2) is lower than a preset battery threshold, the earbud can also send a control command to the mobile phone 100 via the ACL link to indicate that the earbud's battery level is lower than the preset battery threshold. If the battery level of either earbud is lower than the preset battery threshold, the mobile phone 100 can determine that the TWS earphone 101 has switched from a dual-ear state to a single-ear state. If the battery levels of neither earbud are lower than the preset battery threshold (i.e., the mobile phone 100 does not receive control commands from either earbud indicating that the battery level is lower than the preset battery threshold), the TWS earphone 101 will not switch to a single-ear state. Here, method (IV) can correspond to any of the implementation methods (1)-(3) above.

[0198] It should be noted that the methods used by mobile phone 100 to determine whether TWS earphone 101 has switched from a dual-ear mode to a single-ear mode include, but are not limited to, the methods (I) to (IV) described above. For example, mobile phone 100 can determine whether TWS earphone 101 has switched from a dual-ear mode to a single-ear mode by checking whether earbud 101-1 or earbud 101-2 has disconnected from the phone. In some usage scenarios, a user may wear one earbud for their own use and give the other earbud to another user. However, during use, the user or other users may move, and the earbuds worn by the user may also move. When the distance between either earbud and mobile phone 100 becomes too far, mobile phone 100 may disconnect from the earbud. If mobile phone 100 detects that an earbud (such as earbud 101-1) has disconnected from mobile phone 100, mobile phone 100 can determine that TWS earphone 101 has switched from a dual-ear mode to a single-ear mode.

[0199] In methods (I) to (IV) above, if the TWS earphone 101 does not switch to single-ear mode, the mobile phone 100 can continue to use the interleaved scheduling transmission method to transmit audio data with the two earbuds of the TWS earphone 101 through CIS (1) and CIS (2). That is, Figure 9 As shown, if the TWS earphone 101 does not switch to single-ear mode, the phone 100 and the left and right earbuds of the TWS earphone 101 can continue to execute S903.

[0200] In methods (I) to (IV) above, if the TWS earphone 101 switches from a dual-ear state to a single-ear state (such as a second single-ear state), for example, if earbud 101-2 is used in the second single-ear state and earbud 101-1 is not used, the mobile phone 100 can execute... Figure 9 As shown in S905, the CIS (1) is deactivated. After deactivating the CIS (1), the mobile phone 100 can stop transmitting audio data to the earphone 101-1 via the CIS (1). Furthermore, the mobile phone 100 can continue to use... Figure 10 The interleaved scheduling transmission method shown in (a) transmits audio data (i.e., performs) through CIS (2) and earphone 101-2. Figure 9 (S906 shown).

[0201] Among them, after switching to single-ear mode (such as the second single-ear mode), the phone 100 follows... Figure 10 The interleaved scheduling transmission method shown in (a) is similar to the method by which earbud 101-2 transmits audio data. Figure 9 The S906 shown may specifically include processes (B) and (D) as described above, but does not include processes (A) and (C). In other words, mobile phone 100 may only... Figure 10In sub-event (2_1) shown in (a), “M->S” sends audio data to earbud 101-2, and “S->M” in sub-event (2_1) receives audio data sent by earbud 101-2; Figure 10 In sub-event (2_2) shown in (a), “M->S” sends audio data to earbud 101-2, and “S->M” in sub-event (2_2) receives the audio data sent by earbud 101-2. Audio data transmission with earbud 101-1 will not continue in sub-events (1_1) and (1_2).

[0202] Of course, when the TWS earphone 101 switches from dual-ear mode to single-ear mode, it may also switch to the first single-ear mode. In the first single-ear mode, earbud 101-1 is used, and earbud 101-2 is not used. In this case, the mobile phone 100 can deactivate the CIS (2). After the mobile phone 100 deactivates the CIS (2), it can stop transmitting audio data with earbud 101-2 through the CIS (2). Furthermore, the mobile phone 100 can continue to use... Figure 10 The interleaved transmission method shown in (a) transmits audio data through CIS (1) and earphone 101-1. Figure 9 (Not shown). In this case, the mobile phone 100 can perform the above-described processes (A) and (C) with the earphone 101-1, and the mobile phone 100 will not continue to perform the above-described processes (B) and (D) with the earphone 101-2.

[0203] It is important to emphasize that, in this embodiment, for the mobile phone 100, audio data can only be transmitted on the activated CIS after the CIS is activated (sending audio data via "M->S" and receiving audio data via "S->M" on the corresponding CIS). Similarly, for the earphone, audio data can only be transmitted on the activated CIS after the CIS is activated (receiving and sending audio data via "M->S" on the corresponding CIS). Neither the mobile phone 100 nor the earphone will transmit audio data on a deactivated or inactive CIS.

[0204] It should be noted that if, after S900, the mobile phone 100 determines that the TWS earphone 101 is in a dual-ear state, the CIS(1) and CIS(2) of the first CIG mentioned above can also be configured as a serially scheduled transmission mode. For a detailed description of the serially scheduled transmission mode, please refer to the descriptions in other parts of the embodiments of this application; they will not be repeated here.

[0205] In binaural mode, compared with serial scheduling, the advantage of interleaved scheduling is that the mobile phone 100 can interleave the sub-events (1_1) and (1_2) of CIS (1) and the sub-events (2_1) and (2_2) of CIS (2) in time. That is, the audio data of CIS (1) and the audio data of CIS (2) can be interleaved in time for transmission. This can make the interference of different CIS more equal and improve the anti-interference performance of audio data transmission.

[0206] It is understood that after the TWS earphone 101 switches from a dual-ear state to a second single-ear state, during the execution of S906 by the mobile phone 100 and the earbud 101-2, the mobile phone 100 may receive a user's suspend operation. This suspend operation is used to trigger the TWS earphone to pause playback of audio data. After S906, the method of this embodiment may further include S910.

[0207] For example, the aforementioned suspension operation could be a user's click (e.g., a single click) on the "pause button" displayed on the music playback interface of the mobile phone 100 during the process of the earphone 101-2 acting as an output device of the mobile phone 100 playing music in S906; or, the suspension operation could be a user's operation to turn on the "mute button" of the mobile phone 100. The "mute button" could be a physical button on the mobile phone 100.

[0208] For example, the above-mentioned suspension operation can be the user's click operation (such as a single click operation) on the "pause button" of the game interface displayed on the mobile phone 100 in the game scenario of S906, in which the earphone 101-2 is used as an input / output device of the mobile phone 100; or, the suspension operation can be the user's operation of turning on the "mute button" of the mobile phone 100.

[0209] For example, the above-mentioned hang-up operation can be the user's click operation (such as a single click operation) on the "hang-up button" displayed on the voice communication interface of the mobile phone 100 during the process of the earphone 101-2 acting as an input / output device of the mobile phone 100 to perform voice communication in S906.

[0210] For example, the aforementioned suspension operation could also be the user's first operation (such as a single click, long press, or double click) on a preset physical button on earbud 101-2 within the music playback, voice communication, or gaming scenarios described above. This first operation on the preset physical button triggers earbud 101-2 to pause playback and capture sound signals. It is understood that other operations on the preset physical button (such as a second operation) can trigger earbud 101-2 to perform other events (e.g., pairing with earbud 101-1, disconnecting from earbud 101-1, etc.).

[0211] In the above embodiments, in response to the above-mentioned suspension operation, the mobile phone 100 can pause the transmission of audio data with the earbud 101-1. To avoid the transmission mode of the CIS configured by the mobile phone 100 for the earbud after the TWS earbud 101 switches from a dual-ear state to a single-ear state (such as the second single-ear state), which is not suitable for the current state of the TWS earbud 101 (i.e., the single-ear state, such as the second single-ear state). For example, configuring the CIS (1) and CIS (2) in an interleaved scheduling transmission mode is more suitable for the dual-ear state, making the interference levels of CIS (1) and CIS (2) more equal, and improving the anti-interference performance of audio data transmission. However, after switching to a single-ear state (such as the second single-ear state), assuming that the earbud 101-2 is used solely as an input / output device of the mobile phone 100, if the transmission mode is still used... Figure 10 In the interleaved scheduling transmission method shown in (a), audio data is transmitted only during sub-events (2_1) and (2_2) when the mobile phone 100 transmits audio data to the earphone 101-2. The mobile phone 100 stops transmitting audio data to the earphone 101-1 during sub-events (1_1) and (1_2). Thus, there is an idle time interval (i.e., sub-event (1_2)) between sub-events (2_1) and (2_2), which is not continuous in time. This idle time may be occupied by other transmissions (such as Wi-Fi), increasing the possibility of interference with the transmission of audio data between the mobile phone 100 and the earphone 101-2 during sub-events (2_1) and (2_2).

[0212] Based on this, in response to the aforementioned suspension operation, the mobile phone 100 can re-execute S900 to determine whether the TWS earphone 101 is currently in a single-ear state or a dual-ear state, and then execute S901 or S911 to configure the first CIG for the TWS earphone 101 according to the determination result. In the above example, since the TWS earphone 101 is currently in a single-ear state (such as the first single-ear state), the mobile phone 100 can execute S911 to configure CIS(1) and CIS(2) as a serially scheduled transmission mode. The specific method by which the mobile phone 100 configures CIS(1) and CIS(2) as a serially scheduled transmission mode can be referred to the description in other parts of the following embodiments, and will not be repeated here.

[0213] It is understood that, in response to the aforementioned suspension operation, the audio data is suspended (i.e., stopped). During the audio data suspension process, mobile phone 100 reconfigures the CSI, so that after the service resumes, mobile phone 100 can transmit audio data through the reconfigured CSI. Thus, service interruption will not occur due to CSI reconfiguration.

[0214] Furthermore, in conjunction with the above embodiments, after S901-S906 (switching from dual-ear to single-ear mode), the TWS earphone 101 can switch back to dual-ear mode. For example, as Figure 11 As shown, after S901-S906, the method of this embodiment may further include S914. After S914, the mobile phone 100 can activate CIS (1), that is, execute S907. Then, as Figure 11 As shown, the mobile phone 100 can adopt an interleaved transmission method to transmit audio data with the two earbuds of the TWS earphone 101 through CIS(1) and CIS(2) (i.e., execute S903). After S903, the method of this embodiment may also include S904-S906 and S910.

[0215] In other embodiments, Figure 9 Following S900, it is assumed that the TWS earphone 101 is in a single-ear state (such as the first single-ear state), that is, one earbud of the TWS earphone 101 (such as earbud 101-1) is used alone as an audio input / output device of the mobile phone 100. In this embodiment, the method of the embodiment of this application is described using the CIS (1) and CIS (2) configured in a serially scheduled transmission mode as an example.

[0216] For example, in Figure 9 Following the S900 shown, if the mobile phone 100 determines that the TWS earphone 101 is in a single-ear state (such as the first single-ear state), the mobile phone 100 can execute S911. The mobile phone 100 can then execute... Figure 8 During the S801 configuration of the CIG process shown, the first CIG is configured, and CIS(1) and CIS(2) are configured as follows: Figure 12 The serial scheduling transmission method is shown in (a) above. Specifically, as... Figure 12 (a) or Figure 12 As shown in (b), the anchor point of CIS(1) (e.g., CIS(1).x anchor point) is the anchor point of the first CIG (e.g., the anchor point of CIG(x); while the anchor point of CIS(2) (e.g., CIS(2).x anchor point) is the same as the end point of CIS(1) event(x). Furthermore, the sub-intervals of CIS(1) (e.g., CIS(1)_sub-interval) are the same as the sub-intervals of CIS(2) (e.g., CIS(2)_sub-interval).

[0217] Subsequently, mobile phone 100 can execute S802 with earphone 101-1 to create a CIS (1) for earphone 101-1. Mobile phone 100 can execute S803 with earphone 101-2 to create a CIS (2) for earphone 101-2. The steps of mobile phone 100 creating CIS (1) for earphone 101-1 and creating CIS (2) for earphone 101-2 can be performed as follows: Figure 9 The area between S911 and S912 shown ( Figure 9 (Not shown). Finally, the mobile phone 100 can instruct the earpiece 101-1 to activate CIS (1), but will not instruct the earpiece 101-2 to activate CIS (2) (i.e., execute). Figure 9 As shown in S912). The mobile phone 100 can send an activation command to the earphone 101-1 via ACL (1). This activation command is used to trigger the earphone 101-1 to activate CIS (1). The mobile phone 100 will not send an activation command to the earphone 101-2, thus the earphone 101-2 will not activate CIS (2). After CIS (1) is activated, the mobile phone 100 can then... Figure 12 The serial scheduling transmission method shown in (a) is used in conjunction with the transmission of audio data by earbud 101-1 (i.e., execution of...). Figure 9 (S913 shown).

[0218] In mono-ear mode (such as the first mono-ear mode), the phone 100 follows... Figure 12 The serial scheduling transmission method shown in (a) is similar to the method by which earphone 101-1 transmits audio data. Figure 9 The S913 shown may specifically include the following processes (a) to (b).

[0219] Process (a): Starting from the CIS(1).x anchor point (i.e., the CIG(x) anchor point), mobile phone 100 sends audio data (such as audio data packet 1) to earphone 101-1 at "M->S" in sub-event (1_1) of CIS(1) event (x). Earphone 101-1 can receive the audio data (such as audio data packet 1) sent by mobile phone 100 at "M->S" in sub-event (1_1). Earphone 101-1 sends first data to mobile phone 100 at "S->M" in sub-event (1_1). Mobile phone 100 receives the first data sent by earphone 101-1 at "S->M" in sub-event (1_1). The first data may include: feedback information from earphone 101-1 to mobile phone 100; and / or, audio data collected by the microphone (such as microphone 160) in earphone 101-1. The feedback information may be ACK or NACK of the aforementioned audio data packet 1.

[0220] Process (b): Assume that mobile phone 100 receives the ACK of audio data packet 1 at "S->M" in sub-event (1_1). Mobile phone 100 sends audio data (such as audio data packet 2) to earphone 101-1 at "M->S" in sub-event (1_2). Earphone 101-1 can receive the audio data (such as audio data packet 2) sent by mobile phone 100 at "M->S" in sub-event (1_2). Earphone 101-1 sends third data to mobile phone 100 at "S->M" in sub-event (1_2). Mobile phone 100 receives the third data sent by earphone 101-1 at "S->M" in sub-event (1_2). The third data may include: feedback information from earphone 101-1 to mobile phone 100; and / or, audio data collected by the microphone (such as microphone 160) in earphone 101-1. The feedback information may be an ACK or NACK of audio data packet 2.

[0221] It should be noted that in mono-ear mode (such as the first mono-ear mode, i.e., when earbud 101-1 is used as an input / output device for mobile phone 100), mobile phone 100 will not... Figure 12 The sub-events (2_1) and (2_2) shown in (a) transmit audio data with earbud 101-2. Figure 9 The S913 shown does not include the following processes (c) and (d).

[0222] Furthermore, the mobile phone 100 and the earphone 101-1 can perform audio data transmission in CIG event (x+n) using the same transmission method as in CIG event (x). n is greater than or equal to 1, and n is an integer. The method for audio data transmission between the mobile phone 100 and the earphone 101-1 in CIG event (x+n) can refer to the method for audio data transmission in CIG event (x), and will not be elaborated upon here in this embodiment.

[0223] During the execution of S913 by the mobile phone 100 and the earphone 101-1, the TWS earphone 101 may switch between single and dual ear modes, that is, the TWS earphone 101 may switch from a single ear mode (such as the first single ear mode) to a dual ear mode. In other words, the mobile phone 100 can execute... Figure 9 The S914 shown.

[0224] For example, mobile phone 100 can determine whether TWS earphone 101 has switched from single-ear mode to dual-ear mode through the following methods (i)-(iii). That is, mobile phone 100 can perform the following methods (i)-(iii). Figure 9 S914 shown:

[0225] Method (i): Earplug 101-2 is removed from earplug case 101-3.

[0226] In method (1) above, if both earbud 101-1 and earbud 101-2 are removed from the earbud case 101-3, the mobile phone 100 determines that the TWS earphone 101 is in dual-ear mode; if one earbud (such as earbud 101-1) is removed from the earbud case 101-3 while the other earbud (such as earbud 101-2) is not removed from the earbud case 101-3, the mobile phone 100 determines that the TWS earphone 101 is in single-ear mode. Method (i) corresponds to method (1) above. In single-ear mode, the mobile phone 100 can determine whether to switch to dual-ear mode by judging whether earbud 101-2 has been removed from the earbud case 101-3. For example, the mobile phone 100 can determine that the TWS earphone 101 has switched from single-ear mode to dual-ear mode after earbud 101-2 has been removed from the earbud case 101-3. That is, the two earbuds of the TWS earphone 101 (such as earbud 101-2) are used together as audio input / output devices for the mobile phone 100.

[0227] Method (ii): Whether the earbud 101-2 is switched from an unworn state to a worn state.

[0228] In method (2) above, if both earbuds 101-1 and 101-2 are worn, the mobile phone 100 determines that the TWS earphone 101 is in a dual-ear state; if only one earbud (such as earbud 101-1) is worn, the mobile phone 100 determines that the TWS earphone 101 is in a single-ear state. Method (ii) corresponds to method (2) above. In the single-ear state, the mobile phone 100 can determine whether to switch to a dual-ear state by judging whether earbud 101-2 has switched from an unworn state to a worn state. For example, when earbud 101-1 is already worn, the mobile phone 100 can determine that the TWS earphone 101 has switched from a single-ear state to a dual-ear state when earbud 101-2 is worn. That is, both earbuds of the TWS earphone 101 (such as earbud 101-2) are used together as audio input / output devices of the mobile phone 100.

[0229] Method (iii): Earbuds 101-1 and 101-2 are paired and connected.

[0230] Method (iii) corresponds to method (3) above. In single-ear mode, the two earbuds of TWS earphone 101 are not paired or disconnected. Therefore, mobile phone 100 can determine whether TWS earphone 101 has switched from single-ear mode to dual-ear mode by whether earbuds 101-1 and 101-2 are paired.

[0231] It should be noted that the methods by which the mobile phone 100 determines whether the TWS earphone 101 has switched from single-ear mode to dual-ear mode include, but are not limited to, the methods (i) to (iii) described above. For example, in single-ear mode (earbud 101-1 has already established a connection with the mobile phone 100), the mobile phone 100 can determine whether the TWS earphone 101 has switched from single-ear mode to dual-ear mode by determining whether earbud 101-2 has established a connection with the mobile phone.

[0232] In methods (i) to (iii) above, if the TWS earphone 101 does not switch to dual-ear mode, the mobile phone 100 can continue to use the serial scheduling transmission method to transmit audio data with the earbud 101-1 via CIS (1). That is, Figure 9 As shown, if the TWS earphone 101 does not switch to dual-ear mode, the phone 100 and the left and right earbuds of the TWS earphone 101 can continue to execute S913.

[0233] In methods (i) to (iii) above, if the TWS earphone 101 switches from a single-ear state to a dual-ear state, the mobile phone 100 can execute... Figure 9 As shown in S915, CIS(2) is activated. After CIS(2) is activated, the mobile phone 100 can transmit audio data to the earphone 101-2 via CIS(2). Furthermore, the mobile phone 100 can continue to use... Figure 12 The serial scheduling transmission method shown in (a) transmits audio data (i.e., executes) through CIS (1) and earphone 101-1. Figure 9 (S916 shown).

[0234] Among them, after switching to dual-ear mode, the phone 100 according to Figure 12 The serial scheduling transmission method shown in (a) is different from the method of transmitting audio data between the two earbuds of a TWS earphone. Figure 9 The S916 shown may specifically include the above-mentioned processes (a) and (b), as well as the following processes (c) and (d).

[0235] Process (c): Starting from the CIS(2).x anchor point, mobile phone 100 sends audio data (such as audio data packet 1) to earpiece 101-2 at "M->S" in sub-event (2_1) of CIS(2) event (x). Earpiece 101-2 can receive the audio data (such as audio data packet 1) sent by mobile phone 100 at "M->S" in sub-event (2_1). Earpiece 101-2 sends second data to mobile phone 100 at "S->M" in sub-event (2_1). Mobile phone 100 receives the second data sent by earpiece 101-2 at "S->M" in sub-event (2_1). The second data may include: feedback information from earpiece 101-2 to mobile phone 100; and / or, audio data collected by the microphone (such as microphone 160) in earpiece 101-2. The feedback information may be ACK or NACK of the aforementioned audio data packet 1.

[0236] Process (d): Assume that mobile phone 100 receives the ACK of audio data packet 1 in the "S->M" event of sub-event (2_1). Mobile phone 100 sends audio data (such as audio data packet 2) to earphone 101-2 in the "M->S" event of sub-event (2_2) of CIS (2) event (x). Earphone 101-2 can receive the audio data (such as audio data packet 2) sent by mobile phone 100 in the "M->S" event of sub-event (2_2). Earphone 101-2 sends fourth data to mobile phone 100 in the "S->M" event of sub-event (2_2). Mobile phone 100 receives the fourth data sent by earphone 101-2 in the "S->M" event of sub-event (2_2). The fourth data may include: feedback information from earphone 101-2 to mobile phone 100; and / or, audio data collected by the microphone (such as microphone 160) in earphone 101-2. The feedback information may be the ACK or NACK of the audio data packet 2.

[0237] In other words, after the TWS earphone 101 switches from single-ear mode to dual-ear mode, the phone 100 can... Figure 12 In sub-events (1_1) and (1_2) shown in (a), audio data is transmitted with earbud 101-1. Figure 12 The sub-events (2_1) and (2_2) shown in (a) transmit audio data with earbud 101-1.

[0238] It should be noted that if, after S900, the mobile phone 100 determines that the TWS earphone 101 is in a single-ear state, the CIS(1) and CIS(2) of the first CIG mentioned above can also be configured as an interleaved transmission mode. For a detailed description of the interleaved transmission mode, please refer to the descriptions in other parts of the embodiments of this application; they will not be repeated here.

[0239] In single-ear mode, compared to interleaved transmission, the advantage of serial transmission is that the mobile phone 100 can transmit audio data with a single earpiece (e.g., earpiece 101-1) in consecutive time intervals (e.g., sub-events (1_1) and (1_2) are temporally consecutive). This reduces the degree of interference to the CIS and improves the anti-interference performance of audio data transmission.

[0240] Furthermore, in single-ear mode, the serial scheduling transmission method allows longer continuous periods (such as the time corresponding to sub-events (2_1) and (2_2)) to be freed up for other transmissions (such as Wi-Fi). This reduces mutual interference caused by frequent switching of transmission resources between Wi-Fi and Bluetooth.

[0241] It is understandable that after the TWS earphone 101 switches from single-ear to dual-ear mode, during the execution of S906 by the mobile phone 100 and earbud 101-2, the mobile phone 100 may receive a user's suspension operation. A detailed description of this suspension operation can be found in the relevant content of the above embodiments, and will not be repeated here. In response to the above suspension operation, the mobile phone 100 can pause the transmission of audio data with earbuds 101-1 and 101-2. To reduce the impact of the TWS earphone 101 switching from single-ear to dual-ear mode, the transmission mode of the CIS configured by the mobile phone 100 for the earbuds may not be suitable for the current scenario (such as dual-ear mode). For example, configuring CIS(1) and CIS(2) as a serially scheduled transmission mode is more suitable for single-ear mode, allowing continuous transmission of audio data with one earbud, thus improving the anti-interference performance of audio data transmission. However, after switching to dual-ear mode, if the CIS(1) and CIS(2) are still used... Figure 12 In the serial scheduling transmission method shown in (a), audio data is transmitted. After the mobile phone 100 has transmitted audio data to the earphone 101-1 in CIS(1) event (x) (i.e., sub-events (1_1) and (1_2)), it will transmit audio data to the earphone 101-2 in CIS(2) event (x) (i.e., sub-events (2_1) and (2_2)). Compared with the interleaved scheduling transmission method, the degree of interference between CIS(1) and CIS(2) may be significantly different.

[0242] Based on this, in response to the aforementioned suspension operation, the mobile phone 100 can re-execute S900 to determine whether the TWS earphone 101 is currently in single-ear or dual-ear mode, and then execute S901 or S911 to configure the first CIG for the TWS earphone 101 according to the determination result. In the above example, since the TWS earphone 101 is currently in dual-ear mode, the mobile phone 100 can execute S911 to configure CIS(1) and CIS(2) as an interleaved scheduling transmission mode. The specific method by which the mobile phone 100 configures CIS(1) and CIS(2) as an interleaved scheduling transmission mode can be referred to the description in the above embodiment, and will not be repeated here.

[0243] It's important to note that, generally speaking, once the phone 100 has configured its CIS (i.e., the audio data transmission method), regardless of how the TWS earbuds 101 switch states (e.g., from single-ear to dual-ear, or vice versa), the phone 100 will transmit audio data to the TWS earbuds 101 using the configured transmission method (e.g., serial or interleaved scheduling) until the audio data transmission ends. In other words, the audio data transmission method will not change, and the audio data will not be interrupted by switching between single and dual earbud modes.

[0244] Only when mobile phone 100 receives the aforementioned suspend operation and the audio data is suspended (i.e., stopped) can mobile phone 100 reconfigure CSI during the audio data suspension process. This way, after the service resumes, mobile phone 100 can transmit audio data through the reconfigured CSI. Thus, service interruption will not occur due to CSI reconfiguration. Furthermore, the reconfigured transmission method is more suitable for the current state of TWS earphone 101 (such as single-ear or dual-ear mode), improving audio data transmission efficiency.

[0245] Furthermore, in conjunction with the above embodiments, after S911-S916 (switching from single-ear mode to dual-ear mode), the TWS earphone 101 can switch back to single-ear mode. For example, as Figure 13 As shown, after S911-S916, the method of this embodiment may further include S904. After S904, the mobile phone 100 can deactivate CIS (2), that is, execute S917. Then, as Figure 13 As shown, the mobile phone 100 can use a serial scheduling transmission method to transmit audio data with the earphone 101-1 through CIS (1) (i.e., execute S913). After S913, the method of this embodiment may also include S914-S916 and S910.

[0246] In some embodiments, in binaural mode, the audio data sent by the mobile phone 100 to earbuds 101-1 and 101-2 can be different. Taking earbud 101-1 as the left earbud and earbud 101-2 as the right earbud as an example: the mobile phone 100 sends left-channel audio data to earbud 101-1 and right-channel audio data to earbud 101-2. Earbud 101-1 plays the left-channel audio data, and earbud 101-2 plays the right-channel audio data. That is, earbuds 101-1 and 101-2 combine to play stereo audio data. In this case (referred to as Case 1), the mobile phone 100 can encode the audio data to be sent to the left and right earbuds separately (i.e., left and right channel encoding).

[0247] In other embodiments, in binaural mode, the audio data sent by the mobile phone 100 to earbuds 101-1 and 101-2 can be the same. The audio data sent by the mobile phone 100 to earbuds 101-1 and 101-2 is mono audio data. Earbuds 101-1 and 101-2 can play mono audio data. In this case (referred to as Case 2), the mobile phone 100 can perform mono encoding on the audio data to be sent to both earbuds.

[0248] In single-ear mode, to improve the user's listening experience, the phone 100 cannot use left or right channel encoding, and cannot send audio data encoded in either the left or right channel to the earbud being used. The phone 100 can perform mono encoding on the audio data, and the earbud can play mono audio data.

[0249] In scenario (1) above, if the TWS earphone 101 switches from a dual-ear state to a single-ear state, the mobile phone 100 needs to switch the encoding method from left and right channel encoding to mono encoding. Similarly, if the TWS earphone 101 switches from a single-ear state to the dual-ear state corresponding to scenario (1) above, the mobile phone 100 needs to switch the encoding method from mono encoding to left and right channel encoding.

[0250] In the above situation (2), if the TWS earphone 101 switches between single and dual ear modes, for example, from dual ear mode to single ear mode, or from single ear mode to dual ear mode, the mobile phone 100 does not need to change the encoding method.

[0251] In the dual-ear state corresponding to situation (2) above, using the above-described serial or interleaved transmission method, the mobile phone 100 can transmit the same audio data to the left and right earbuds of the TWS earphone 101 at different times. For example, the mobile phone 100 in Figure 10 (a) or Figure 12 In sub-event (1_1) shown in (a), "M->S" transmits audio data packet 1 to earpiece 101-1. Mobile phone 100 in... Figure 10 (a) or Figure 12 In sub-event (2_1) shown in (a), “M->S” transmits audio data packet 1 to earpiece 101-2. The repeated transmission of the same audio data by mobile phone 100 at different time periods leads to a waste of transmission resources and reduces the effective utilization rate of transmission resources.

[0252] In order to improve the effective utilization of transmission resources, in some other embodiments, when the mobile phone 100 is configured with the first CIG, the above-mentioned CIS(1) and CIS(2) can be configured as a jointly scheduled transmission mode.

[0253] For example, assuming the TWS earphone 101 is in a binaural state, that is, the two earbuds (earbud 101-1 and earbud 101-2) of the TWS earphone 101 are used together as audio input / output devices of the mobile phone 100. In this embodiment, the method of the embodiment of this application will be described using the CIS (1) and CIS (2) configured as a joint scheduling transmission mode as an example.

[0254] For example, if mobile phone 100 determines that TWS earphone 101 is in dual-ear mode, mobile phone 100 can configure the first CIG, configuring CIS(1) and CIS(2) as follows: Figure 14 The transmission method of joint scheduling is shown in (a) above. Specifically, as shown in... Figure 14 (a) or Figure 14 As shown in (b), the anchor points of CIS(1) (e.g., CIS(1).x anchor point) and CIS(2) (e.g., CIS(2).x anchor point) are both anchor points of the first CIG (e.g., CIG(x) anchor point). Furthermore, as... Figure 14 As shown in (a), the sub-intervals of CIS(1) (e.g., CIS(1)_sub-interval) are the same as those of CIS(2) (e.g., CIS(2)_sub-interval).

[0255] Subsequently, mobile phone 100 can create a CIS (1) for earbud 101-1 and a CIS (2) for earbud 101-2. Finally, mobile phone 100 can instruct earbud 101-1 to activate CIS (1) and instruct earbud 101-2 to activate CIS (2). After CIS (1) and CIS (2) are activated, mobile phone 100 can then... Figure 14 The joint scheduling transmission method shown in (a) transmits audio data with earbuds 101-1 and 101-2.

[0256] In dual-ear mode, the phone 100 follows... Figure 14 The joint scheduling transmission method shown in (a) and the method of transmitting audio data with earbuds 101-1 and 101-2 may include the following processes (a) to (vi).

[0257] Process (1): Mobile phone 100 starts from the CIS(1).x anchor point (i.e., the CIS(2).x anchor point) and uses frequency hopping to hop between the sub-events (1_1) of CIS(1) event (x) and the sub-event (2_1) of CIS(2) event (x). Figure 14 In (a) of the text, the bolded “M->S” indicates the transmission of audio data (such as audio data packet 1). Earplug 101-1 can... Figure 14 In sub-event (1_1) shown in (a), "M->S" (i.e., the bolded "M->S") receives audio data packet 1 sent by mobile phone 100 via frequency hopping. Earbud 101-2 can... Figure 14 In sub-event (2_1) shown in (a), “M->S” (i.e., “M->S” in bold) receives audio data packet 1 sent by mobile phone 100 in a frequency hopping manner.

[0258] Process (II): Earphone 101-1 can send the first data to mobile phone 100 in the sub-event (1_1) at "S->M" (solid line not bold "S->M"). Mobile phone 100 can receive the first data sent by earphone 101-1 in the sub-event (1_1) at "S->M".

[0259] Process (3): Earphone 101-2 can send third data to mobile phone 100 in the sub-event (2_1) at "S->M" (the dotted "S->M"). Mobile phone 100 can receive the third data sent by earphone 101-2 in the sub-event (2_1) at "S->M".

[0260] Process (IV): Mobile phone 100 sends audio data (such as audio data packet 2) via frequency hopping in sub-events (1_2) and sub-event (2_2) at the "M->S" (i.e., the bolded "M->S"). Earphone 101-1 can... Figure 14 In sub-event (1_2) shown in (a), "M->S" receives audio data packet 2 sent by mobile phone 100 via frequency hopping. Earbud 101-2 can... Figure 14 In sub-event (2_2) shown in (a), “M->S” receives audio data packet 2 sent by mobile phone 100 in a frequency hopping manner.

[0261] Process (5): Earphone 101-1 can send second data to mobile phone 100 in sub-event (1_2) at "S->M" (solid line not bold "S->M"). Mobile phone 100 can receive the second data sent by earphone 101-1 in sub-event (1_2) at "S->M".

[0262] Process (VI): Earphone 101-2 can send fourth data to mobile phone 100 in the sub-event (2_2) at "S->M" (the dotted "S->M"). Mobile phone 100 can receive the fourth data sent by earphone 101-2 in the sub-event (2_2) at "S->M".

[0263] If the TWS earphone 101 switches from a dual-ear mode to a single-ear mode (for example, using earbud 101-2 in single-ear mode and not using earbud 101-1), the mobile phone 100 can deactivate the CIS (1). After deactivating the CIS (1), the mobile phone 100 can stop transmitting audio data to the earbud 101-1 via the CIS (1). Furthermore, the mobile phone 100 can continue to use... Figure 14 The joint scheduling transmission method shown in (a) transmits audio data through CIS (2) and earphone 101-2.

[0264] Specifically, after switching to single-ear mode, the phone 100... Figure 14 The joint scheduling transmission method shown in (a) and the method of transmitting audio data by earbud 101-2 may include the above-described processes (i), (iii), (iv), and (vi), but exclude processes (ii) and (v). Furthermore, in processes (i) and (iv), earbud 101-1 will not... Figure 14 The “M->S” (i.e., the bold “M->S”) shown in (a) receives audio data packets sent by mobile phone 100 in a frequency hopping manner.

[0265] In this embodiment, the mobile phone 100 can send audio data packets at the same time point (i.e., CIS(1).x anchor point and CIS(2).x anchor point, where CIS(1).x anchor point and CIS(2).x anchor point are the same) using frequency hopping. In this way, the left and right earbuds of the TWS earphone 201 can also receive audio data packets at the same "M->S" time point using frequency hopping. Thus, the mobile phone 100 will not repeatedly transmit the same audio data at different time periods, reducing the waste of transmission resources and improving the effective utilization rate of transmission resources.

[0266] Other embodiments of this application also provide an electronic device that may include one or more processors; a memory; and one or more computer programs, all of which can be connected via one or more communication buses. The one or more computer programs are stored in the memory and configured to be executed by the one or more processors. The one or more computer programs include instructions that can be used to perform actions such as... Figure 8 , Figure 9 , Figure 10 , Figure 11 , Figure 12 , Figure 13 or Figure 14 The description corresponding to any of the accompanying figures illustrates the various functions or steps performed by the mobile phone 100. The structure of the electronic device can be referenced from [reference needed]. Figure 6A The structure of the electronic device 100 shown.

[0267] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0268] In the embodiments provided in this example, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between devices or units, and may be electrical, mechanical, or other forms.

[0269] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0270] Furthermore, in each embodiment of this invention, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0271] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.

[0272] The above description is merely a specific implementation of this embodiment, but the protection scope of this embodiment is not limited thereto. Any changes or substitutions within the technical scope disclosed in this embodiment should be covered within the protection scope of this embodiment. Therefore, the protection scope of this embodiment should be determined by the protection scope of the claims.

Claims

1. An audio data transmission method, characterized by, Audio data transmission between an electronic device and true wireless stereo (TWS) earphones, the TWS earphones including a first earbud and a second earbud, the method comprising: When the TWS earbuds are in dual-ear mode, the electronic device transmits audio data to the first earbud through the first isochronous audio stream CIS of the first connection-based isochronous stream group CIG, and transmits audio data to the second earbud through the second isochronous audio stream CIS of the first CIG. The first CIS and the second CIS are active in the dual-ear mode, and the anchor point of the first CIS is the CIG anchor point of the first CIG, and the anchor point of the second CIS is the same as the end point of the CIS event of the first CIS. When the TWS earphone switches from the dual-ear state to the first single-ear state, the electronic device deactivates the second CIS, stops transmitting audio data with the second earbud through the second CIS, and continues to transmit audio data with the first earbud through the first CIS. The binaural state refers to the state in which the first earbud and the second earbud are used together as the audio input / output device of the electronic device, and the first monoaural state refers to the state in which the first earbud is used alone as the audio input / output device of the electronic device.

2. The method of claim 1, wherein, After the electronic device deactivates the second CIS, stops transmitting audio data through the second CIS to the second earbud, and continues transmitting audio data through the first CIS to the first earbud, the method further includes: When the TWS earphone switches from the first single-ear state to the dual-ear state, the electronic device continues to transmit audio data to the first earbud through the first CIS, and activates the second CIS to transmit audio data to the second earbud through the second CIS.

3. The method of claim 2, wherein, After the electronic device continues to transmit audio data with the first earbud through the first CIS and activates the second CIS to transmit audio data with the second earbud through the second CIS, the method further includes: When the TWS earphone switches from the dual-ear state to the second single-ear state, the electronic device deactivates the first CIS, stops transmitting audio data with the first earbud through the first CIS, and continues to transmit audio data with the second earbud through the second CIS. The second single-ear state refers to the state in which the second earbud is used alone as an audio input / output device of the electronic device.

4. The method of claim 1, wherein, Before the electronic device transmits audio data to the first earbud via the first CIS of the first CIG, the method further includes: When the TWS earbuds are in the dual-ear state The electronic device configures the first CIG for the TWS earphones, and the first CIG includes the first CIS and the second CIS; The electronic device configures the first CIS for the first earbud and the second CIS for the second earbud; The electronic device activates the first CIS and the second CIS.

5. The method according to any one of claims 1 to 4, characterized in that, After the TWS earphone switches from a dual-ear state to a first single-ear state, the method further includes: The electronic device receives a user's suspend operation, which triggers the TWS earphones to pause playback of audio data. In response to the suspension operation, when the TWS earphone is currently in the first single-ear state, the electronic device reconfigures the first CIG for the TWS earphone. The reconfigured first CIG includes a reconfigured first CIS and a reconfigured second CIS. The electronic device configures the reconfigured first CIS for the first earbud and activates the reconfigured first CIS, transmitting audio data to the first earbud starting from the anchor point of the reconfigured first CIS. The reconfigured second CIS is not activated in the first monoaural state.

6. The method of claim 5, wherein, When the TWS earphone is currently in the first single-ear state, and the electronic device configures the reconfigured first CIG, the anchor point of the reconfigured first CIS is the CIG anchor point of the reconfigured first CIG, and the anchor point of the reconfigured second CIS is the same as the end point of the CIS event of the reconfigured first CIS. Wherein, the reconfigured first CIS and the reconfigured second CIS each include multiple CIS events; the reconfigured first CIG includes multiple CIG events; each CIG event includes one CIS event of the reconfigured first CIS and one CIS event of the reconfigured second CIS; the CIG anchor point of the reconfigured first CIG is the start time point of the CIG event. The electronic device transmits audio data to the first earbud through the reconfigured first CIS starting from the anchor point of the reconfigured first CIS, and the electronic device transmits audio data to the second earbud through the reconfigured second CIS starting from the anchor point of the reconfigured second CIS.

7. An electronic device, comprising: include: One or more processors, memory, and wireless communication modules; The memory and the wireless communication module are coupled to the one or more processors. The memory is used to store computer program code, which includes computer instructions. When the one or more processors execute the computer instructions, the electronic device performs the audio data transmission method as described in any one of claims 1-6.

8. A Bluetooth communication system characterized by The Bluetooth communication system includes: true wireless stereo (TWS) earphones, and the electronic device as described in claim 7.

9. A computer storage medium, characterized in that Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the audio data transmission method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • A source device broadcasts synchronization information associated with a bluetooth isochronous channel

    CN108702720A

  • Audio data transmission method and device for single / dual ear switching in TWS earphones

    CN112789866B

  • Point-to-multipoint data transmission method and electronic equipment

    CN114915880A