Bluetooth communication method and device, wireless earphone and electronic equipment
By introducing low-power audio LE Audio broadcast signaling into Bluetooth communication, the problem of traditional Bluetooth technology being unable to achieve synchronous transmission of left and right earphones of wireless earphones is solved, and the synchronous transmission of audio data between electronic devices and wireless earphones is realized, improving the playback experience.
Patent Information
- Application Number
- CN202310219731.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional Bluetooth communication technology cannot support point-to-multipoint audio data transmission and playback synchronization between the left and right earphones of wireless earphones, resulting in asynchronous audio data transmission between electronic devices and wireless earphones.
By introducing low-power audio LE Audio broadcast signaling, the electronic device establishes LE Bluetooth links with the first earphone and the second earphone of the wireless earphone respectively to achieve point-to-multipoint audio data transmission and playback synchronization.
It realizes the synchronous transmission of audio data between the electronic device and the left and right earphones of the wireless earphones, and improves the playback synchronization capability of the wireless earphones.
Smart Images

Figure CN118632219A
Abstract
Description
Technical Field
[0001] The present application relates to the field of Bluetooth technology, and in particular to a Bluetooth communication method and device, a wireless headset and an electronic device. Background Art
[0002] With the advancement of technology, wireless headphones (such as true wireless stereo (TWS) headphones) have gradually come into people's view. Wireless headphones can include two headphone bodies (i.e., left headphone and right headphone), and the left and right headphones do not need to be connected to each other through wires.
[0003] When a wireless headset is used as an audio input / output device for an electronic device (such as a mobile phone), the electronic device and the wireless headset usually need to be connected to each other via Bluetooth in order to achieve point-to-multipoint audio data transmission between the electronic device and the left and right earphones of the wireless headset, and the audio data playback needs to be synchronized between the left and right earphones of the wireless headset.
[0004] However, the basic rate (BR) / enhanced data rate (EDR) technology in traditional Bluetooth communication technology can only support point-to-point data transmission, but not point-to-multipoint data transmission. Therefore, how to achieve point-to-multipoint audio data transmission and playback synchronization between electronic devices and the left and right earphones of wireless headphones requires further research. Summary of the invention
[0005] The embodiments of the present application provide a Bluetooth communication method and device, a wireless headset and an electronic device, in the hope of solving the problem of how to achieve point-to-multipoint audio data transmission and playback synchronization between the electronic device and the left and right earphones of the wireless headset.
[0006] In a first aspect, a Bluetooth communication method of the present application is applied to a wireless headset, wherein the wireless headset comprises a first headset and a second headset, including:
[0007] The first earphone receives a first signaling from an electronic device, where the first signaling is used to trigger the first earphone and the second earphone to perform a low-power audio LE Audio broadcast;
[0008] The first earphone broadcasts a second signaling on an LE broadcast channel, where the second signaling is used to request to establish a first LE Bluetooth link between the first earphone and the electronic device;
[0009] The first earphone sends a third signaling to the second earphone, where the third signaling is used to instruct the second earphone to perform LE Audio broadcast;
[0010] The second earphone broadcasts a fourth signaling on the LE broadcast channel, where the fourth signaling is used to request to establish a second LE Bluetooth link between the second earphone and the electronic device.
[0011] It can be seen that since the electronic device can only transmit audio data with the first earphone but cannot transmit audio data with the second earphone, it may happen that the first earphone and the second earphone cannot synchronize the audio data.
[0012] Based on this, the present application introduces a first signaling, and triggers the first headset to broadcast LE Audio through the first signaling, and LE Audio can support point-to-multipoint data transmission. Then, the first headset broadcasts a second signaling according to the first signaling to request to establish a first LE Bluetooth link with the electronic device, and sends a third signaling to the second headset according to the first signaling to trigger the second headset to broadcast LE Audio. Finally, the second headset broadcasts a fourth signaling according to the third signaling to request to establish a second LE Bluetooth link with the electronic device.
[0013] In this way, the electronic device can establish a connection with the first headset through the first LE Bluetooth link, and can also establish a connection with the second headset through the second LE Bluetooth link, so that the electronic device establishes a synchronous connection with the first headset and the second headset, which is conducive to achieving point-to-multipoint audio data transmission and playback synchronization.
[0014] In a second aspect, a Bluetooth communication method of the present application is applied to an electronic device, comprising:
[0015] Sending a first signaling to a first earphone of the wireless earphone, where the first signaling is used to trigger the first earphone and the second earphone of the wireless earphone to perform low-power audio LE Audio broadcast;
[0016] Receiving a second signaling broadcasted by the first headset on an LE broadcast channel, where the second signaling is used to request to establish a first LE Bluetooth link between the first headset and the electronic device;
[0017] Receive a fourth signaling broadcast by the second earphone on the LE broadcast channel, where the fourth signaling is used to request to establish a second LE Bluetooth link between the second earphone and the electronic device.
[0018] In a third aspect, a Bluetooth communication device of the present application is applied to a wireless headset, wherein the wireless headset comprises a first headset and a second headset, and the device comprises:
[0019] a receiving unit, configured to control the first earphone to receive a first signaling from an electronic device, wherein the first signaling is used to trigger the first earphone and the second earphone to perform a low-power audio LE Audio broadcast;
[0020] a sending unit, configured to control the first headset to broadcast a second signaling on an LE broadcast channel, wherein the second signaling is used to request to establish a first LE Bluetooth link between the first headset and the electronic device;
[0021] The sending unit is further used to control the first headset to send a third signaling to the second headset, where the third signaling is used to instruct the second headset to perform LE Audio broadcast;
[0022] The sending unit is further used to control the second earphone to broadcast a fourth signaling on the LE broadcast channel, where the fourth signaling is used to request to establish a second LE Bluetooth link between the second earphone and the electronic device.
[0023] In a fourth aspect, a Bluetooth communication device of the present application is applied to an electronic device, and the device includes:
[0024] A sending unit, configured to send a first signaling to a first earphone of a wireless earphone, wherein the first signaling is used to trigger the first earphone and the second earphone of the wireless earphone to perform a low-power audio LE Audio broadcast;
[0025] a receiving unit, configured to receive a second signaling broadcasted by the first headset on an LE broadcast channel, wherein the second signaling is used to request to establish a first LE Bluetooth link between the first headset and the electronic device;
[0026] The receiving unit is further used to receive a fourth signaling broadcast by the second earphone on the LE broadcast channel, where the fourth signaling is used to request to establish a second LE Bluetooth link between the second earphone and the electronic device.
[0027] The fifth aspect is a wireless headset of the present application, comprising a processor, a memory, and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps of the method described in the first aspect above.
[0028] The sixth aspect is an electronic device of the present application, comprising a processor, a memory, and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps of the method described in the second aspect above.
[0029] The seventh aspect is a computer-readable storage medium of the present application, wherein a computer program or instructions are stored on the computer-readable storage medium, and when the computer program or instructions are executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0030] The eighth aspect is a computer program product of the present application, comprising a computer program or instructions, wherein when the computer program or instructions are executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0031] The beneficial effects brought about by the technical solutions of the second to eighth aspects can be referred to the technical effects brought about by the technical solution of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments of the present application are briefly introduced below.
[0033] Figure 1 is a schematic diagram of the structure of a communication system according to an embodiment of the present application;
[0034] Figure 2 It is a flowchart of a Bluetooth communication method according to an embodiment of the present application;
[0035] Figure 3 It is a schematic diagram of a process of establishing a first LE Bluetooth link and a second LE Bluetooth link according to an embodiment of the present application;
[0036] Figure 4 is a schematic diagram of a process of establishing a first CIS and a second CIS in an embodiment of the present application;
[0037] Figure 5 This is a block diagram of the functional units of a Bluetooth communication device according to an embodiment of the present application;
[0038] Figure 6 It is a block diagram of the functional units of another Bluetooth communication device according to an embodiment of the present application;
[0039] Figure 7 is a schematic structural diagram of a wireless headset according to an embodiment of the present application;
[0040] Figure 8 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to help those skilled in the art better understand the technical solutions of the present application, the following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the description of the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0042] It should be understood that the terms "first", "second", etc. involved in the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, software, product, or device that includes a series of steps or units is not limited to the listed steps or units, but also includes steps or units that are not listed, or also includes other steps or units inherent to these processes, methods, products, or devices.
[0043] The "embodiment" involved in the embodiments of the present application means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0044] In the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent the following three situations: A exists alone; A and B exist at the same time; B exists alone. Among them, A and B can be singular or plural.
[0045] In the embodiment of the present application, the symbol " / " can indicate that the objects associated with each other are in an "or" relationship. In addition, the symbol " / " can also indicate a division sign, that is, performing a division operation. For example, A / B can indicate A divided by B.
[0046] In the embodiments of the present application, the symbol "*" or "·" can represent a multiplication sign, that is, a multiplication operation is performed. For example, A*B or A·B can represent A multiplied by B.
[0047] In the embodiments of the present application, "at least one item" or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more. For example, at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.
[0048] In the embodiments of the present application, "equal to" can be used in conjunction with greater than, and is applicable to the technical solution adopted when greater than, and can also be used in conjunction with less than, and is applicable to the technical solution adopted when less than. When equal to is used in conjunction with greater than, it is not used in conjunction with less than; when equal to is used in conjunction with less than, it is not used in conjunction with greater than.
[0049] The technical solutions, beneficial effects and related concepts involved in the embodiments of the present application are described in detail below.
[0050] 1. Communication systems and electronic equipment
[0051] 1. Communication system
[0052] It should be noted that an embodiment of the present application provides a communication system, in which Bluetooth (BT) communication is required between an electronic device and a wireless headset.
[0053] For example, Figure 1 As shown, the communication system 10 includes an electronic device 101 and a wireless headset 102. The electronic device 101 and the wireless headset 102 can communicate with each other via a Bluetooth link.
[0054] It should be noted that Figure 1 The structure shown in does not constitute a limitation on the communication system of the present application, and no specific limitation is made to this.
[0055] The electronic device and the wireless headset according to the embodiments of the present application are described in detail below.
[0056] 2. Wireless headphones
[0057] 1) Description
[0058] The electronic device of the embodiment of the present application may be an entity / unit / module / device with a transceiver communication function and an audio playback function. Among them, the wireless headset may include two headset bodies (i.e., a left headset and a right headset), and the left and right headsets do not need to be connected to each other through wires.
[0059] In some possible implementations, the types of wireless headphones may include true wireless stereo (TWS) headphones, low energy audio (LE-Audio) headphones, wireless Bluetooth headphones, and the like.
[0060] It should be noted that the embodiments of the present application do not specifically limit the specific structure of the execution subject of the Bluetooth communication method, as long as it can be processed by running a computer program or instruction that records the method provided by the embodiments of the present application, and according to the method provided by the embodiments of the present application. For example, the execution subject of the method provided by the embodiments of the present application can be a wireless headset, or a processor / device / module / unit in the wireless headset that can call and execute a computer program or instruction, and there is no specific limitation on this.
[0061] 2) Hardware architecture example of wireless headset
[0062] In some possible implementations, the wireless headset of the embodiment of the present application may include at least one of a processor, a memory, a sensor component, a communication component, a receiver, a microphone, a power supply component, etc. Exemplary descriptions are given below.
[0063] ①Processor
[0064] In some possible implementations, the processor may be used to run or load an operating system, which may be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, Windows operating system, Zephyr operating system, real-time operating system (RTOS), DOS operating system, Mac operating system, ThreadX operating system, embedded operating system, NucleusPlus operating system, etc.
[0065] In some possible implementations, the processor can be viewed as a complete system on chip (SOC).
[0066] In some possible implementations, the processor may include one or more processing units. For example, the processing unit may include at least one of a central processing unit (CPU), an application processor (AP), a microcontroller unit (MCU), a single chip microcomputer (SCM), a single chip microcomputer, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a baseband processor, a neural network processing unit (NPU), etc. Among them, different processing units may be separated or integrated together.
[0067] In some possible implementations, the processor may include one or more communication interfaces, wherein the communication interface may include at least one of a serial peripheral interface (SPI), 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, a universal serial bus (USB) interface, and the like.
[0068] ②Memory
[0069] It should be noted that the memory can be used to store application program codes.
[0070] In some possible implementations, the memory may store a device identification (ID) or a physical address for uniquely identifying the wireless headset, wherein the physical address may include a Media Access Control (MAC) address, etc.
[0071] In some possible implementations, the memory may store connection data of an electronic device that has been successfully paired with the wireless headset before. For example, the connection data may be a device identifier or physical address of the electronic device that has been successfully paired with the wireless headset. Based on the connection data, the wireless headset can automatically pair with the electronic device without configuring a connection therewith, such as performing a legitimacy verification.
[0072] ③Sensor components
[0073] In some possible implementations, the sensing component may be a sensor.
[0074] For example, the sensing component may include at least one of a gravity sensor, a gyroscope sensor, a magnetometer sensor, an accelerometer, an inertial sensor (such as an inertial motion unit (IMU)), a pressure sensor, an air pressure sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, an ultra-wideband (UWB) sensor, a near field communication (NFC) sensor, a laser sensor and / or a visible light sensor, etc.
[0075] It should be noted that the wireless headset can determine whether it is worn by the user through the sensor component.
[0076] For example, the wireless headset can use a proximity light sensor to detect whether there is an object near the left and right headsets, so as to determine whether the left and right headsets are worn by the user. When it is determined that the headsets are worn, the wireless headset can turn on the receiver, etc.
[0077] ④Communication components
[0078] It should be noted that the communication component can be used to support wireless communication between the left earphone and the right earphone of the wireless headset, and can be used to support wireless communication between the wireless headset and the electronic device.
[0079] In some possible implementations, the communication component can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices.
[0080] In some possible implementations, the communication component can provide wireless communication solutions for application in electronic devices, including Bluetooth (BT), wireless local area networks (WLAN), wireless fidelity (Wi-Fi) networks, near field communication (NFC), ultra wide band (UWB), infrared technology (IR), etc.
[0081] ⑤Receiver
[0082] It should be noted that the receiver, which may also be called a "handset", can be used to convert audio electrical signals into sound signals and play them.
[0083] For example, when the earphone of the wireless earphone is used as the output device of the audio data of the above electronic device, the receiver can convert the received audio electrical signal into a sound signal and play it.
[0084] ⑥Microphone
[0085] It should be noted that a microphone, which may also be called a "microphone" or a "microphone", can be used to convert sound signals into audio electrical signals.
[0086] For example, when the earphone of a wireless headset is used as an input device for audio data of an electronic device, when a user speaks (such as talking on the phone or sending a voice message), the microphone can collect the user's voice signal and convert it into an audio electrical signal.
[0087] ⑦Power supply components
[0088] The power supply component can be used to supply power and charge the left and right earphones of the wireless headset.
[0089] In some possible implementations, the power supply component may include a battery (such as a rechargeable battery), an input / output interface, and the like.
[0090] In some possible implementations, the input / output interface may be an electrical connector. For example, when the left and right earphones of the wireless headset are placed in the cavity of the earphone box of the wireless headset, the left and right earphones may be electrically connected to the earphone box through the electrical connector. After the electrical connection is established, the earphone box may charge the left and right earphones. After the electrical connection is established, the left and right earphones may also perform data communication with the earphone box.
[0091] 3. Electronic equipment
[0092] 1) Description
[0093] The electronic device of the embodiment of the present application may be an entity / unit / module / device, etc. with a communication function of sending and receiving.
[0094] In some possible implementations, the types of electronic devices may include handheld devices, wearable devices, vehicle-mounted devices, vehicle-mounted terminals, augmented reality (AR) devices, virtual reality (VR) devices, Internet of Things (IOT) devices, projection devices, projectors, user equipment (UE), terminal devices, terminals, mobile terminals, smart phones, smart screens, smart TVs, smart watches, laptops, smart speakers, cameras, game controllers, microphones, stations (STA), access points (AP), mobile stations (MS), personal digital assistants (PDA), personal computers (PC), relay devices, etc.
[0095] In some possible implementations, the wearable device may also be referred to as a smart wearable device, which is a general term for smart devices that use wearable technology to intelligently design and develop daily wearables. For example, smart glasses, smart gloves, smart watches, smart bracelets for monitoring various specific features, smart jewelry, etc. In addition, the wearable device is a portable device that can be worn directly on the body or integrated into the user's clothing or accessories. The wearable device can not only be equipped with a dedicated hardware architecture, but also with a dedicated software architecture for data interaction, cloud interaction, etc. The wearable smart device can achieve complete or partial functions without relying on other smart devices.
[0096] It should be noted that the embodiments of the present application do not specifically limit the specific structure of the execution subject of the Bluetooth communication method, as long as it can be processed by running a computer program or instruction that records the method provided by the embodiments of the present application, and according to the method provided by the embodiments of the present application. For example, the execution subject of the method provided by the embodiments of the present application can be an electronic device, or a processor / device / module / unit in an electronic device that can call and execute a computer program or instruction, etc., and no specific limitation is made to this.
[0097] 2) Hardware architecture examples of electronic devices
[0098] In some possible implementations, the electronic device of the embodiment of the present application may include at least one of a processor, a memory, a sensor component, a display component, a camera component, a communication component, an input / output driver, etc. Exemplary descriptions are given below.
[0099] ①Processor
[0100] In some possible implementations, the processor may be used to run or load an operating system, which may be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, Windows operating system, Zephyr operating system, real-time operating system (RTOS), DOS operating system, Mac operating system, ThreadX operating system, embedded operating system, NucleusPlus operating system, etc.
[0101] In some possible implementations, the processor can be viewed as a complete system on chip (SOC).
[0102] In some possible implementations, the processor may include one or more processing units. For example, the processing unit may include at least one of a central processing unit (CPU), an application processor (AP), a microcontroller unit (MCU), a single chip microcomputer (SCM), a single chip microcomputer, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a baseband processor, a neural network processing unit (NPU), etc. Among them, different processing units may be separated or integrated together.
[0103] In some possible implementations, a processing unit may be a single core or multiple cores.
[0104] In some possible implementations, a processing unit may run or load a multi-core subsystem, wherein the multi-core subsystem may be an operating system with multi-core processing capabilities.
[0105] In some possible implementations, the processor may further include a memory for storing computer programs or instructions.
[0106] For example, the processor may call a program stored in the memory to run an operating system.
[0107] For another example, the memory in the processor can store or cache instructions that the processor has just used or circulated. If the processor needs to use the instruction or data again, it can be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor and improving system efficiency.
[0108] For another example, the memory in the processor can also store or cache data, and synchronize or transmit the data to other processors for execution. The memory in the processor can be a high-speed cache memory.
[0109] In some possible implementations, the processor may include one or more communication interfaces, wherein the communication interface may include at least one of a serial peripheral interface (SPI), 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, a universal serial bus (USB) interface, and the like.
[0110] ②Memory
[0111] In some possible implementations, the memory may be used to store computer programs or instructions.
[0112] In some possible implementations, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM) or compact disc read-only memory (CD-ROM).
[0113] ③Sensor components
[0114] In some possible implementations, the sensing component may be a sensor.
[0115] For example, the sensing component may include at least one of a gravity sensor, a gyroscope sensor, a magnetometer sensor, an accelerometer, an inertial sensor (such as an inertial motion unit (IMU)), a pressure sensor, an air pressure sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, an ultra-wideband (UWB) sensor, a near field communication (NFC) sensor, a laser sensor and / or a visible light sensor, etc.
[0116] ④Display components
[0117] In some possible implementations, a display component may be used to display at least one of a user interface, user interface elements and features, user-selectable controls, various displayable objects, and the like.
[0118] In some possible implementations, the display component may be a physical screen of the electronic device, wherein the physical screen may include one of a display screen, a touch screen, and the like.
[0119] For example, the display component may include a display panel, wherein the display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a quantum dot light-emitting diode (QLED), etc.
[0120] It should be noted that the electronic device can realize the display function through a GPU, a display component, and a processor. Among them, the GPU can be used to perform mathematical and geometric calculations and perform graphic rendering. In addition, the GPU can be a microprocessor for image processing and connect the display component and the processor. The processor may include one or more GPUs, which execute program instructions to generate or change display information.
[0121] ⑤Camera component
[0122] In some possible implementations, the camera component may be a camera or a camera module, which is used to capture (shoot / scan / collect, etc.) static / dynamic images or videos.
[0123] In some possible implementations, the camera assembly may include a lens, a photosensitive element, etc., and the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
[0124] Therefore, the object can generate an optical image through the lens and project it onto the photosensitive element. The photosensitive element can convert the light signal in the optical image into an electrical signal, and then transmit the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
[0125] It should be noted that the device can realize functions such as capturing (shooting / scanning, etc.) images through ISP, DSP, camera components, video codecs, GPU, display components and processors.
[0126] In some possible implementations, the ISP can be used to process data fed back by the camera assembly. For example, when taking a photo, the shutter is opened first, and then the light is transmitted through the lens of the camera assembly to the photosensitive element of the camera assembly to convert the light signal into an electrical signal, and finally the electrical signal is transmitted to the ISP through the photosensitive element to be processed and converted into a digital image.
[0127] In some possible implementations, the ISP can also perform algorithmic optimization on the noise, brightness, and skin color of the image.
[0128] In some possible implementations, the ISP can also optimize parameters such as exposure and color temperature of the shooting scene.
[0129] In some possible implementations, the ISP and / or DSP may be provided in the camera assembly.
[0130] ⑥Communication components
[0131] It should be noted that the communication component can be used to support wireless communication between the electronic device and the wireless headset.
[0132] In some possible implementations, the communication component can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices.
[0133] In some possible implementations, the communication component can provide wireless communication solutions for application in electronic devices, including Bluetooth (BT), wireless local area networks (WLAN), wireless fidelity (Wi-Fi) networks, near field communication (NFC), ultra wide band (UWB), infrared technology (IR), etc.
[0134] In some possible implementations, the communication component can receive electromagnetic waves through an antenna, filter, amplify, and process the received electromagnetic waves, and transmit them to a modem processor for demodulation. The communication component can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna.
[0135] In some possible implementations, the communication component may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
[0136] In some possible implementations, at least some functional modules of the communication component may be disposed in a processor; or, at least some functional modules of the communication component may be disposed in the same device as some modules of the processor.
[0137] Furthermore, the wireless communication module 130 may be an integrated
[0138] ⑦Input / output driver
[0139] In some possible implementations, an input / output driver may be used to handle various inputs / outputs from a user-operated device.
[0140] For example, when the display screen is a touch screen, the input / output driver may be operable to detect and process various click events or touch events, etc. The click event or touch event on the touch screen may simultaneously indicate an area of interest and start scanning an object. The object may be displayed on the touch screen as a preview of an image to be scanned, and a touch event at a specific location on the touch screen indicates an image that should be scanned.
[0141] 2. A Bluetooth Communication Method
[0142] 1. Description
[0143] Since the basic rate (BR) / enhanced data rate (EDR) technology in traditional Bluetooth communication technology can only support point-to-point data transmission but cannot support point-to-multipoint data transmission, an embodiment of the present application proposes a Bluetooth communication method, which is conducive to achieving point-to-multipoint audio data transmission and playback synchronization between an electronic device and the left and right earphones of a wireless headset.
[0144] The following uses the interaction between an electronic device and a wireless headset as an example to specifically illustrate the Bluetooth communication of the present application.
[0145] like Figure 2 As shown, Figure 2 1 is a flow chart of a Bluetooth communication method according to an embodiment of the present application. The wireless headset includes a first headset and a second headset. The method may include the following steps:
[0146] S210: The electronic device sends a first signaling to the first earphone, where the first signaling is used to trigger the first earphone and the second earphone to perform low-power audio LE Audio broadcasting.
[0147] Correspondingly, the first earphone receives the first signaling.
[0148] S220: The first earphone broadcasts a second signaling on an LE broadcast channel, where the second signaling is used to request to establish a first LE Bluetooth link between the first earphone and the electronic device.
[0149] Correspondingly, the electronic device receives the second signaling on the LE broadcast channel.
[0150] S230: The first earphone sends a third signaling to the second earphone, where the third signaling is used to instruct the second earphone to perform LE Audio broadcasting.
[0151] Correspondingly, the second earphone receives the third signaling.
[0152] S240: The second earphone broadcasts a fourth signaling on the LE broadcast channel, where the fourth signaling is used to request to establish a second LE Bluetooth link between the second earphone and the electronic device.
[0153] Correspondingly, the electronic device receives the fourth signaling on the LE broadcast channel.
[0154] It can be seen that since the electronic device can only transmit audio data with the first earphone but cannot transmit audio data with the second earphone, it may happen that the first earphone and the second earphone cannot synchronize the audio data.
[0155] Based on this, the present application introduces a first signaling, and triggers the first headset to broadcast LE Audio through the first signaling, and LE Audio can support point-to-multipoint data transmission. Then, the first headset broadcasts a second signaling according to the first signaling to request to establish a first LE Bluetooth link with the electronic device, and sends a third signaling to the second headset according to the first signaling to trigger the second headset to broadcast LE Audio. Finally, the second headset broadcasts a fourth signaling according to the third signaling to request to establish a second LE Bluetooth link with the electronic device.
[0156] In this way, the electronic device can establish a connection with the first headset through the first LE Bluetooth link, and can also establish a connection with the second headset through the second LE Bluetooth link, so that the electronic device establishes a synchronous connection with the first headset and the second headset, which is conducive to achieving point-to-multipoint audio data transmission and playback synchronization.
[0157] 2. Specific implementation instructions
[0158] The following is the above Figure 2 It should be noted that the contents in the following sections can be combined and related to each other in order to realize the complete technical solution of this application.
[0159] 1) First earphone and second earphone
[0160] It should be noted that, in combination with the content in the above “2. Wireless headphones”, the first headphone and the second headphone can be two headphone bodies of the wireless headphones, and each headphone body can independently process, transmit, collect, etc. data.
[0161] In some possible implementations, the first earphone and the second earphone may include at least one of a processor, a memory, a sensor component, a communication component, a receiver, a microphone, a power supply component, and the like.
[0162] In some possible implementations, the first earphone may be the left earphone of the wireless earphone, and the second earphone may be the right earphone of the wireless earphone; or, the first earphone may be the right earphone of the wireless earphone, and the second earphone may be the left earphone of the wireless earphone.
[0163] It should be noted that the two earphone bodies of the wireless earphone can be divided into a left earphone and a right earphone. The left earphone can realize the left channel sound, and the right earphone can realize the right channel sound, so that the left and right dual channels are realized through the left and right earphones to form a stereo system.
[0164] In some possible implementations, the first earphone may be a main earphone of the wireless earphone, and the second earphone may be an auxiliary earphone of the wireless earphone.
[0165] It should be noted that the two earphone bodies of the wireless earphone can be divided into a main earphone and an auxiliary earphone. The battery life, charging time and service life of the main earphone and the auxiliary earphone may be different.
[0166] Taking TWS wireless earphones as an example, the electronic device is generally connected to the main earphone, and the main earphone is separately connected to the auxiliary earphone to realize the left and right dual channels to form a stereo system. Therefore, the audio data of the electronic device is first transmitted to the main earphone, and then transmitted from the main earphone to the auxiliary earphone, so that the power consumption of the main earphone may be greater.
[0167] In this way, when the Bluetooth function of the electronic device is turned on and the wireless headset is in an unboxing state, the electronic device can first interact with the main headset to establish a BR / EDR Bluetooth link.
[0168] In some possible implementations, the first earphone may be an earphone body with the most remaining power among the wireless earphones, and the second earphone may be an earphone body with the least remaining power among the wireless earphones.
[0169] It should be noted that the two earphone bodies of the wireless earphone may have different remaining power respectively. Therefore, this application can use the earphone body with the largest remaining power as the first earphone so that the electronic device can establish a BR / EDR Bluetooth link with the earphone body with the largest remaining power.
[0170] In some possible implementations, the electronic device stores the device identification or physical address of the first headset, and / or does not store the device identification or physical address of the second headset. In other words, the device identification or physical address of the first headset is stored in the electronic device, and / or the device identification or physical address of the second headset is not stored in the electronic device.
[0171] It should be noted that the device identification or physical address can be used to uniquely identify the headset body.
[0172] In this way, since the electronic device only stores the device identification or physical address of the first headset, when the wireless headset is in an unboxed state, the electronic device can directly pair and connect with the first headset through the device identification or physical address of the first headset stored therein.
[0173] 2) The electronic device establishes a first BR / EDR Bluetooth link with the first headset
[0174] It should be noted that the electronic device can establish a first BR / EDR Bluetooth link with the first headset through a BR / EDR process.
[0175] In this way, since the electronic device establishes a BR / EDR Bluetooth link with the first earphone, and BR / EDR can only support point-to-point data transmission, the electronic device can only transmit audio data with the first earphone, but the electronic device cannot transmit audio data with the second earphone. Therefore, it may happen that the first earphone and the second earphone cannot synchronize the audio data broadcasting.
[0176] In some possible implementations, establishing the first BR / EDR Bluetooth link may include the following steps:
[0177] The electronic device sends a request signaling to the first headset, where the request signaling is used to request to establish a first BR / EDR Bluetooth link;
[0178] The first headset receives the request signaling;
[0179] The first headset sends a response signaling to the electronic device, where the response signaling is used to respond to the request signaling to complete the establishment of the first BR / EDR Bluetooth link;
[0180] The electronic device receives the response signaling.
[0181] In this way, when the Bluetooth function of the electronic device is turned on and the wireless headset is in an unboxed state, the electronic device and the first headset can establish a first BR / EDR Bluetooth link by interacting with request signaling and response signaling.
[0182] 3) First signaling
[0183] a. Description
[0184] It should be noted that, since the electronic device can only transmit audio data with the first earphone but cannot transmit audio data with the second earphone, it may happen that the first earphone and the second earphone cannot synchronize the audio data.
[0185] Based on this, the present application introduces a first signaling, and triggers the first headset to perform LE Audio broadcast through the first signaling, and LE Audio can support point-to-multipoint data transmission.
[0186] Of course, the first signaling may also be described using other terms, and there is no specific limitation on this.
[0187] In some possible implementations, the first signaling may include a cause value in a host controller interface (HCI) command, where the cause value is used to indicate a reason for disconnecting the BR / EDR Bluetooth link.
[0188] In some possible implementations, the first signaling may be transmitted over a first BR / EDR Bluetooth link established between the first headset and the electronic device.
[0189] It can be seen that since the electronic device establishes a BR / EDR Bluetooth link with the first earphone, and BR / EDR can only support point-to-point data transmission, the electronic device can only transmit audio data with the first earphone, but the electronic device cannot transmit audio data with the second earphone. Therefore, the first earphone and the second earphone may not be able to synchronize the broadcast of audio data.
[0190] Based on this, the present application introduces a first signaling, and uses the first signaling to indicate the disconnection of the BR / EDR Bluetooth link and trigger the first headset to perform LE Audio broadcast, and LE Audio can support point-to-multipoint data transmission.
[0191] In some possible implementations, the first signaling is used to indicate disconnection of the first BR / EDR Bluetooth link and to trigger the first headset and the second headset to perform LE Audio broadcast, and LE Audio can support point-to-multipoint data transmission.
[0192] b. Transmission conditions of the first signaling
[0193] It should be noted that when or under what circumstances the electronic device actively sends the first signaling has different transmission conditions, and different transmission conditions can be applied to various communication scenario requirements to improve communication flexibility. The following is an exemplary description of each situation.
[0194] Scenario 1:
[0195] In some possible implementations, the first signaling may be transmitted when the electronic device detects that the first earphone and the second earphone need to synchronously play audio data.
[0196] It should be noted that since the electronic device only establishes a BR / EDR Bluetooth link with the first earphone, and BR / EDR can only support point-to-point data transmission but not point-to-multipoint data transmission, the electronic device can only transmit audio data to the first earphone, but may not be able to achieve synchronous playback of audio data by the first earphone and the second earphone.
[0197] In this way, when the electronic device detects that the first earphone and the second earphone need to play audio data synchronously (such as the electronic device detects a user instruction that the first earphone and the second earphone need to play audio data synchronously), the electronic device can send a first signaling on the first BR / EDR Bluetooth link to disconnect the first BR / EDR Bluetooth link and trigger the establishment of an LE Bluetooth link, so as to achieve point-to-multipoint data transmission through the LE Bluetooth link.
[0198] Scenario 2:
[0199] In some possible implementations, the first signaling may be transmitted when the electronic device detects that the user has put on the first earphone and the second earphone.
[0200] It should be noted that, in combination with the content in "2. Wireless headphones" above, the first headphone and the second headphone may include a sensor component, so the present application may use a sensor component (such as a proximity light sensor) to detect whether there is an object near the first headphone and the second headphone, thereby determining whether the first headphone and the second headphone have been worn by the user. When the first headphone and the second headphone detect that they have been worn by the user, the second headphone may inform the first headphone, and the first headphone then informs the electronic device through the first BR / EDR Bluetooth link, thereby enabling the electronic device to detect that the user has worn the first headphone and the second headphone.
[0201] Usually, when the user has finished wearing the first earphone and the second earphone, the user will play some videos, music, etc. through the electronic device, and make synchronous sounds through the wireless earphone connected to the electronic device.
[0202] In this way, when the electronic device detects that the user has put on the first earphone and the second earphone, the electronic device can send a first signaling on the first BR / EDR Bluetooth link to disconnect the first BR / EDR Bluetooth link and trigger the establishment of an LE Bluetooth link to achieve point-to-multipoint data transmission through the LE Bluetooth link.
[0203] Scenario 3:
[0204] In some possible implementations, the first signaling may be transmitted after a preset waiting time is delayed after the establishment of the first BR / EDR Bluetooth link is completed.
[0205] The preset waiting time may be understood as a time set in advance.
[0206] It should be noted that when the electronic device completes the establishment of the first BR / EDR Bluetooth link with the first headset, the electronic device of the present application can actively send a first signaling to disconnect the first BR / EDR Bluetooth link and trigger the establishment of an LE Bluetooth link after a preset waiting time after the establishment of the first BR / EDR Bluetooth link is completed, so as to realize point-to-multipoint data transmission through the LE Bluetooth link.
[0207] 4) Second signaling
[0208] It should be noted that after the first earphone receives the first signaling, the first earphone can broadcast a second signaling on the LE broadcast channel according to the first signaling to request to establish a first LE Bluetooth link with the electronic device, thereby realizing the LE Audio broadcast of the first earphone.
[0209] Correspondingly, the electronic device can respond to the second signaling to complete the establishment of the first LE Bluetooth link.
[0210] Of course, the second signaling may also be described using other terms, and there is no specific limitation on this.
[0211] In some possible implementations, the second signaling may include LE Audio broadcast signaling, such as ADV signaling.
[0212] 5) Communication link between the first headset and the second headset
[0213] It should be noted that a communication link needs to be established between the first earphone and the second earphone so that signaling interaction between the first earphone and the second earphone can be performed through the communication link.
[0214] In some possible implementations, the communication link between the first headset and the second headset may be established before the first BR / EDR Bluetooth link is established.
[0215] It can be understood that before the electronic device and the first headset complete the establishment of the first BR / EDR Bluetooth link, a communication link has been established between the first headset and the second headset.
[0216] In some possible implementations, the communication link between the first earphone and the second earphone may be established after the first earphone receives the first signaling.
[0217] It can be understood that after the first earphone receives the first signaling, since the first earphone needs to notify the second earphone to perform LE Audio broadcast, the first earphone needs to establish a communication link with the second earphone.
[0218] In some possible implementations, the communication link between the first earphone and the second earphone can be a BR / EDR Bluetooth link (for ease of distinction, the BR / EDR Bluetooth link is called a "second BR / EDR Bluetooth link"), or it can be an LE Bluetooth link, without specific limitation.
[0219] 6) Third signaling and fourth signaling
[0220] It should be noted that the first earphone can send the third signaling to the second earphone based on the first signaling to trigger the second earphone to broadcast LE Audio, and LE Audio can support point-to-multipoint data transmission.
[0221] In this way, after receiving the third signaling, the second headset can broadcast the fourth signaling according to the third signaling to request to establish a second LE Bluetooth link with the electronic device.
[0222] It can be seen that the electronic device can establish a connection with the first headset through the first LE Bluetooth link, and can also establish a connection with the second headset through the second LE Bluetooth link, so that the electronic device establishes a synchronous connection with the first headset and the second headset, which is conducive to realizing point-to-multipoint audio data transmission and playback synchronization.
[0223] Currently, the third signaling and the fourth signaling may also be described using other terms, and no specific limitation is imposed on this.
[0224] In some possible implementations, the fourth signaling may include LE Audio broadcast signaling, such as ADV signaling.
[0225] 7) Fifth and sixth signaling
[0226] It should be noted that after the first LE Bluetooth link is established, the present application can wait for the second LE Bluetooth link to be established. However, in order to avoid the wireless headset being unable to play audio data in time due to the delay in establishing the second LE Bluetooth link, affecting the user experience, the present application introduces a preset time interval.
[0227] The preset time interval may be understood as a preset time for waiting for the establishment of the second LE Bluetooth link to be completed.
[0228] In some possible implementations, after the second headset broadcasts the fourth signaling on the LE broadcast channel, the application may further include:
[0229] If the second LE Bluetooth link is not established within the preset time interval after the moment when the first LE Bluetooth link is established, the electronic device may send audio data to the first earphone (on the first LE Bluetooth link) after the preset time interval, and the electronic device or the second earphone may send a fifth signaling to the first earphone, and the fifth signaling is used to indicate that the establishment of the second LE Bluetooth link failed.
[0230] Correspondingly, the first earphone can receive the audio data and the fifth signaling after the preset time interval.
[0231] Among them, the second LE Bluetooth link is not established, which may be because the second headset does not receive the third signaling, the electronic device does not receive the fourth signaling, the second headset does not receive the response signaling of the fourth signaling sent by the electronic device, etc., and there is no specific restriction on this.
[0232] It can be seen that since the second LE Bluetooth link is not established within the preset time interval, the electronic device can first send audio data to the first earphone so that the first earphone broadcasts the audio data, but at this time only a single earphone can produce sound.
[0233] In addition, since the second LE Bluetooth link is not established within the preset time interval, the present application introduces a fifth signaling so that the first headset can be informed of the failure to establish the second LE Bluetooth link through the fifth signaling.
[0234] Of course, the fifth signaling may also be described using other terms, and there is no specific limitation on this.
[0235] In some possible implementations, after the second headset broadcasts the fourth signaling on the LE broadcast channel, the application may further include:
[0236] If the second LE Bluetooth link has been established within the preset time interval after the moment when the first LE Bluetooth link is established, the electronic device can send the same audio data to the first earphone and the second earphone (on the first LE Bluetooth link and the second LE Bluetooth link, respectively), and the electronic device or the second earphone sends a sixth signaling to the first earphone, and the sixth signaling is used to indicate that the establishment of the second LE Bluetooth link is complete.
[0237] Correspondingly, the first earphone can receive the audio data and the sixth signaling.
[0238] Correspondingly, the second earphone can receive the audio data.
[0239] It can be seen that since the second LE Bluetooth link is established within the preset time interval, the electronic device can send the same audio data to the first earphone and the second earphone, so that the first earphone and the second earphone can synchronously broadcast the audio data to achieve synchronous sound of the left and right wireless earphones.
[0240] In addition, since the second LE Bluetooth link is established within the preset time interval, the present application introduces a sixth signaling so that the first headset can be informed of the successful establishment of the second LE Bluetooth link through the sixth signaling.
[0241] Of course, the sixth signaling may also be described using other terms, and there is no specific limitation on this.
[0242] 8) Seventh and eighth signaling
[0243] It should be noted that, in combination with the content of "7) the fifth signaling and the sixth signaling" above, when the second LE Bluetooth link is not established within the preset time interval after the establishment of the first LE Bluetooth link, only the first LE Bluetooth link can be used for single earphone sound, and in order to achieve synchronous sound of the left and right earphones, this application needs to re-establish the second LE Bluetooth link. In order to achieve the reconstruction of the second LE Bluetooth link, this application can adopt the following "method a" and "method b" to adapt to various communication scenario requirements and improve communication flexibility.
[0244] Of course, the present application may implement only one of "method a" and "method b", or may implement both "method a" and "method b" at the same time, without any specific limitation.
[0245] Method a:
[0246] In "method a", the present application may initiate the reestablishment of the second LE Bluetooth link through the second headset.
[0247] In a specific implementation, after the first headset receives the fifth signaling from the electronic device after the preset time interval, the application may further include:
[0248] The first earphone sends a seventh signaling to the second earphone, where the seventh signaling is used to trigger the second earphone to re-perform LE Audio broadcast to re-establish the second LE Bluetooth link.
[0249] It can be seen that after the first earphone receives the fifth signaling, since the first earphone learns that the establishment of the second LE Bluetooth link has failed, in order to rebuild the second LE Bluetooth link, the first earphone can send the seventh signaling to the second earphone, so as to trigger the second earphone to re-broadcast LE Audio through the seventh signaling to rebuild the second LE Bluetooth link.
[0250] Of course, the seventh signaling may also be described using other terms, and there is no specific limitation on this.
[0251] Method b:
[0252] In "method b", the present application may initiate the reconstruction of the second LE Bluetooth link through an electronic device.
[0253] In a specific implementation, after the first headset receives the fifth signaling from the electronic device after the preset time interval, the application may further include:
[0254] The first earphone sends an eighth signaling to the electronic device, where the eighth signaling is used to carry the device identification or physical address of the second earphone, and the device identification or physical address of the second earphone is used by the electronic device to initiate a request to re-establish the second LE Bluetooth link.
[0255] Correspondingly, the electronic device receives the eighth signaling.
[0256] It can be seen that after the first earphone receives the fifth signaling, since the first earphone learns that the second LE Bluetooth link fails to be established, in order to rebuild the second LE Bluetooth link, the first earphone can send the device identification or physical address of the second earphone to the electronic device through the eighth signaling.
[0257] In this way, the electronic device can initiate a request to the second headset to reestablish the second LE Bluetooth link through the device identification or physical address of the second headset, so as to complete the reestablishment.
[0258] Of course, the eighth signaling may also be described using other terms, and there is no specific limitation on this.
[0259] 9) Ninth and tenth signaling
[0260] It should be noted that LE Audio represents the functional trend of the next generation of smart audio devices, which mainly relies on the LE Isochronous Channels (ISOC) in the new Bluetooth 5.2 core specification. Among them, ISOC, as the basis of LE Audio, supports both connected mode and non-connected mode.
[0261] In connected mode, each audio stream is called a Connected Isochronous Stream (CIS), and each CIS is in a Connected Isochronous Group (CIG) for synchronous playback of audio data, such as synchronous playback of audio in left and right headphones. In addition, each CIS requires an Asynchronous Connection-Oriented Link (ACL), which is started and runs throughout the life cycle of the CIS that transmits audio data.
[0262] In non-connected mode, a single audio source such as a smart TV can transmit audio data to multiple isochronous audio streams. Each audio stream is called a Broadcast Isochronous Stream (BIS), and the multiple audio streams are called a Broadcast Isochronous Group (BIG).
[0263] Based on this, after the first LE Bluetooth link and the second LE Bluetooth link are established, in order to achieve synchronous playback of audio data by the first earphone and the second earphone, this application also needs to establish the CIS of the first LE Bluetooth link and the second LE Bluetooth link respectively.
[0264] In a specific implementation, after the second earphone broadcasts the fourth signaling on the LE broadcast channel, the application may further include:
[0265] After the first LE Bluetooth link and the second LE Bluetooth link are established, the electronic device sends a ninth signaling to the first headset on the first LE Bluetooth link, where the ninth signaling is used to request to establish a first CIS with the first headset;
[0266] The electronic device sends a tenth signaling to the second headset over the second LE Bluetooth link, where the tenth signaling is used to request to establish a second CIS with the second headset.
[0267] Correspondingly, the first earphone receives the ninth signaling on the first LE Bluetooth link.
[0268] Correspondingly, the second earphone receives the tenth signaling on the second LE Bluetooth link.
[0269] It can be seen that the present application requests the establishment of the first CIS through the ninth signaling, and requests the establishment of the second CIS through the tenth signaling, so that the first earphone and the second earphone can synchronously play the audio data through the first CIS and the second CIS.
[0270] Of course, the ninth signaling and the tenth signaling may also be described using other terms, and there is no specific limitation on this.
[0271] In some possible implementations, the ninth signaling and / or the tenth signaling may be transmitted when the electronic device detects that the wireless headset needs to play audio data.
[0272] It is understandable that after the first LE Bluetooth link and the second LE Bluetooth link are established, when the electronic device detects that the wireless headset needs to play audio data, the electronic device needs to establish a CIS with the first headset and the second headset respectively to synchronously play the audio data.
[0273] 10) The time interval between the time when the first CIS is established and the time when the second CIS is established
[0274] It should be noted that, since there may be a certain time interval between the time when the first CIS is established and the time when the second CIS is established, the present application may introduce a preset threshold to determine whether the time interval is too long. If it is too long, the first earphone and the second earphone will not be played synchronously.
[0275] The preset threshold value may be understood as a pre-set time threshold value.
[0276] In some possible implementations, after the second earphone receives the tenth signaling from the electronic device on the second LE Bluetooth link, the application may further include:
[0277] If the time interval between the establishment completion time of the first CIS and the establishment completion time of the second CIS exceeds a preset threshold, the first earphone and the second earphone do not perform synchronous playback of audio data;
[0278] If the time interval between the time when the establishment of the first CIS is completed and the time when the establishment of the second CIS is completed does not exceed the preset threshold, the first earphone and the second earphone play the audio data synchronously.
[0279] It can be seen that if the time interval exceeds the preset threshold, it means that the time interval is too long. In order to prevent the user from being unable to hear the sound of the wireless headset for a long time, the first headset and the second headset may not play the audio data synchronously; if the time interval does not exceed the preset threshold, it means that the time interval is not long, and the user has not waited too long, and the first headset and the second headset can play the audio data synchronously.
[0280] 11) The establishment of the first CIS or the second CIS fails
[0281] It should be noted that, since the first CIS or the second CIS may fail to be established, the present application performs different decision-making behaviors for the failure to establish the CIS, so as to adapt to the requirements of various communication scenarios and improve communication flexibility.
[0282] In some possible implementations, after the second earphone receives the tenth signaling from the electronic device on the second LE Bluetooth link, the application may further include:
[0283] If the first CIS fails to be established, the first headset directly disconnects the ACL of the first LE Bluetooth link.
[0284] It can be seen that since the first CIS establishment fails, it indicates that there is a certain link quality problem between the electronic device and the first headset. In order to avoid repeated establishment failures, the first headset can directly disconnect the ACL of the first LE Bluetooth link.
[0285] In some possible implementations, after the second earphone receives the tenth signaling from the electronic device on the second LE Bluetooth link, the application may further include:
[0286] If the first CIS fails to be established, the first headset re-establishes the first CIS; if the number of times the first CSI is re-established is greater than a preset number, the first headset directly disconnects the ACL of the first LE Bluetooth link;
[0287] It can be seen that since the first CIS fails to be established, the first headset of the present application can re-establish the first CIS, but if the number of times the first CSI is re-established is greater than the preset number, it means that there is a certain link quality problem between the electronic device and the first headset. Therefore, the first headset can directly disconnect the ACL of the first LE Bluetooth link.
[0288] In some possible implementations, after the second earphone receives the tenth signaling from the electronic device on the second LE Bluetooth link, the application may further include:
[0289] If the second CIS fails to be established, the second headset directly disconnects the ACL of the second LE Bluetooth link.
[0290] It can be seen that since the second CIS establishment fails, it indicates that there is a certain link quality problem between the electronic device and the second headset. In order to avoid repeated establishment failures, the second headset can directly disconnect the ACL of the first LE Bluetooth link.
[0291] In some possible implementations, after the second earphone receives the tenth signaling from the electronic device on the second LE Bluetooth link, the application may further include:
[0292] If the second CIS fails to be established, the second headset re-establishes the second CIS; if the number of re-establishments of the second CSI is greater than a preset number, the second headset directly disconnects the ACL of the second LE Bluetooth link;
[0293] It can be seen that since the second CIS establishment fails, the second headset of the present application can re-establish the second CIS, but if the number of reconstructions of the second CSI is greater than the preset number, it means that there is a certain link quality problem between the electronic device and the second headset. Therefore, the second headset can directly disconnect the ACL of the second LE Bluetooth link.
[0294] In some possible implementations, after sending the tenth signaling to the second headset on the second LE Bluetooth link, the application may further include:
[0295] If the first CIS fails to be established, the electronic device directly disconnects the ACL of the first LE Bluetooth link.
[0296] It can be seen that since the first CIS establishment fails, it indicates that there is a certain link quality problem between the electronic device and the first headset. In order to avoid repeated establishment failures, the electronic device can directly disconnect the ACL of the first LE Bluetooth link.
[0297] In some possible implementations, after sending the tenth signaling to the second headset on the second LE Bluetooth link, the application may further include:
[0298] If the first CIS fails to be established, the electronic device re-establishes the first CIS; if the number of times the first CSI is re-established is greater than a preset number, the electronic device directly disconnects the ACL of the first LE Bluetooth link;
[0299] It can be seen that since the first CIS fails to be established, the electronic device of the present application can re-establish the first CIS, but if the number of times the first CSI is re-established is greater than the preset number, it means that there is a certain link quality problem between the electronic device and the first headset. Therefore, the electronic device can directly disconnect the ACL of the first LE Bluetooth link.
[0300] In some possible implementations, after sending the tenth signaling to the second headset on the second LE Bluetooth link, the application may further include:
[0301] If the second CIS fails to be established, the electronic device directly disconnects the ACL of the second LE Bluetooth link.
[0302] It can be seen that since the second CIS establishment fails, it indicates that there is a certain link quality problem between the electronic device and the second headset. In order to avoid repeated establishment failures, the electronic device can directly disconnect the ACL of the first LE Bluetooth link.
[0303] In some possible implementations, after sending the tenth signaling to the second headset on the second LE Bluetooth link, the application may further include:
[0304] If the second CIS fails to be established, the electronic device re-establishes the second CIS; if the number of re-establishments of the second CSI is greater than a preset number, the electronic device directly disconnects the ACL of the second LE Bluetooth link;
[0305] It can be seen that since the second CIS fails to be established, the electronic device of the present application can re-establish the second CIS, but if the number of reconstructions of the second CSI is greater than the preset number, it means that there is a certain link quality problem between the electronic device and the second headset. Therefore, the electronic device can directly disconnect the ACL of the second LE Bluetooth link.
[0306] 12) Disconnect the first CIS and the second CIS
[0307] It should be noted that after the first earphone and the second earphone finish playing the audio data synchronously, the present application can disconnect the first CIS and the second CIS. When the first earphone and the second earphone need to play the audio data synchronously again, the present application can re-establish the CIS according to the above process.
[0308] 13) Exemplary Description
[0309] In combination with the above content, the process of establishing the first LE Bluetooth link and the second LE Bluetooth link is exemplarily described below. Figure 3 As shown, Figure 3 This is a schematic diagram of a process of establishing a first LE Bluetooth link and a second LE Bluetooth link in the present application, comprising the following steps:
[0310] S310: The first headset establishes a communication link with the second headset.
[0311] S320. The wireless headset is in an unboxing state, and the Bluetooth function of the electronic device is turned on.
[0312] It should be noted that the electronic device may request to establish the first BR / EDR link with the first headset. Correspondingly, the first headset may send a confirmation of the request to the electronic device, so as to complete the establishment of the first BR / EDR link.
[0313] S330: After the electronic device and the first headset establish a first BR / EDR Bluetooth link, send a first signaling, where the first signaling is used to instruct to disconnect the first BR / EDR Bluetooth link and trigger the first headset and the second headset to perform LE Audio broadcasting.
[0314] It should be noted that the electronic device may request to disconnect the first BR / EDR Bluetooth link.
[0315] S340: The first headset receives the first signaling and performs LE Audio broadcast.
[0316] It should be noted that the first headset can broadcast the second signaling. Correspondingly, the electronic device receives the second signaling and establishes a first LE Bluetooth link with the first headset according to the second signaling.
[0317] S350: The electronic device and the first headset complete the establishment of a first LE Bluetooth link and the connection of a profile.
[0318] S360: The first headset sends a third signaling to notify the second headset to perform LE Audio broadcast.
[0319] It should be noted that the second earphone receives the third signaling and broadcasts the fourth signaling according to the third signaling. Correspondingly, the electronic device receives the fourth signaling and establishes a second LE Bluetooth link with the second earphone according to the fourth signaling.
[0320] S370. After completing the establishment of the first Bluetooth link, the electronic device waits for 3 seconds; if the second LE Bluetooth link is established within 3 seconds, the electronic device notifies the first headset that the second LE Bluetooth link is established; if the second LE Bluetooth link is not established within 3 seconds, the electronic device notifies the first headset that the second LE Bluetooth link fails to be established.
[0321] In combination with the above content, the process of establishing the first CIS and the second CIS is exemplarily described below. Figure 4 As shown, Figure 4 This is a flow chart of establishing a first CIS and a second CIS in the present application, including the following steps:
[0322] S410: The electronic device establishes a first LE Bluetooth link and a second LE Bluetooth link with the first headset and the second headset respectively.
[0323] S420: The electronic device establishes a first CIS with the first headset.
[0324] It should be noted that the electronic device may request to establish the first CIS so as to complete the establishment of the first CIS.
[0325] S430: The electronic device establishes a second CIS with the second headset.
[0326] It should be noted that the electronic device may request to establish the second CIS so as to complete the establishment of the second CIS.
[0327] S440. If the time interval between the time when the establishment of the first CIS is completed and the time when the establishment of the second CIS is completed exceeds 1 second, the first earphone and the second earphone do not play the audio data synchronously; if the establishment of the first CIS or the second CIS fails, the corresponding ACL is directly disconnected; if the establishment of the first CIS or the second CIS fails, then retry to establish it 3 times. If it still fails, the corresponding ACL is directly disconnected.
[0328] S450 , disconnect the first CIS and the second CIS respectively.
[0329] It should be noted that after the first earphone and the second earphone finish synchronously playing the audio data, the present application can disconnect the first CIS and the second CIS.
[0330] 3. Exemplary description of a Bluetooth communication device
[0331] 1. Description
[0332] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the wireless headset includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should know that, in combination with the methods, functions, modules, units or steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a method, function, module, unit or step is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described methods, functions, modules, units or steps for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0333] The embodiment of the present application can divide the wireless headset into functional units / modules according to the above method example. For example, each functional unit / module can be divided according to each function, or two or more functions can be integrated into one functional unit / module. The above integrated functional unit / module can be implemented in hardware or in software program. It should be noted that the division of functional units / modules in the embodiment of the present application is schematic, which is only a logical functional division, and there may be other division methods in actual implementation.
[0334] In the case of an integrated unit, Figure 5The Bluetooth communication device 500 specifically includes: a receiving unit 510 and a sending unit 520 .
[0335] It should be noted that the receiving unit 510 may be a module unit for receiving signaling, etc., and there is no specific limitation on this.
[0336] The sending unit 520 may be a module unit for sending signaling, etc., and there is no specific limitation on this.
[0337] In some possible implementations, the receiving unit 510 and the sending unit 520 may be integrated into one unit.
[0338] For example, the receiving unit 510 and the sending unit 520 may be integrated into a processing unit.
[0339] It should be noted that the processing unit can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processing unit can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0340] In some possible implementations, the Bluetooth communication device 500 may further include a storage unit for storing computer programs or instructions executed by the Bluetooth communication device 500 .
[0341] For example, the storage unit may be a memory.
[0342] In some possible implementations, the Bluetooth communication device 500 may be a chip / chip module / processor / hardware, etc.
[0343] In specific implementation, the Bluetooth communication device 500 is used to execute the steps described in the above method embodiment, which will be described in detail below.
[0344] The receiving unit 510 is used to control the first earphone to receive a first signaling from the electronic device, where the first signaling is used to trigger the first earphone and the second earphone to perform a low-power audio LE Audio broadcast;
[0345] The sending unit 520 is used to control the first headset to broadcast a second signaling on the LE broadcast channel, where the second signaling is used to request to establish a first LE Bluetooth link between the first headset and the electronic device;
[0346] The sending unit 520 is further used to control the first earphone to send a third signaling to the second earphone, where the third signaling is used to instruct the second earphone to perform LE Audio broadcast;
[0347] The sending unit 520 is further used to control the second headset to broadcast a fourth signaling on the LE broadcast channel, where the fourth signaling is used to request to establish a second LE Bluetooth link between the second headset and the electronic device.
[0348] It can be seen that since the electronic device can only transmit audio data with the first earphone but cannot transmit audio data with the second earphone, it may happen that the first earphone and the second earphone cannot synchronize the audio data.
[0349] Based on this, the present application introduces a first signaling, and triggers the first headset to broadcast LE Audio through the first signaling, and LE Audio can support point-to-multipoint data transmission. Then, the first headset broadcasts a second signaling according to the first signaling to request to establish a first LE Bluetooth link with the electronic device, and sends a third signaling to the second headset according to the first signaling to trigger the second headset to broadcast LE Audio. Finally, the second headset broadcasts a fourth signaling according to the third signaling to request to establish a second LE Bluetooth link with the electronic device.
[0350] In this way, the electronic device can establish a connection with the first headset through the first LE Bluetooth link, and can also establish a connection with the second headset through the second LE Bluetooth link, so that the electronic device establishes a synchronous connection with the first headset and the second headset, which is conducive to achieving point-to-multipoint audio data transmission and playback synchronization.
[0351] It should be noted that the specific implementation of each operation performed by the Bluetooth communication device 500 can refer to the corresponding description of the method embodiment shown above, and will not be repeated here.
[0352] 2. Other implementation methods
[0353] Some of the implementation methods involved are further explained below, and other contents not involved can be found in the above description in detail, which will not be repeated here.
[0354] In some possible implementations, the first signaling is transmitted over a first basic rate / enhanced rate BR / EDR Bluetooth link established between the first headset and the electronic device.
[0355] It should be noted that, combined with the content of the above “3) First Signaling”, it can be seen that this will not be elaborated on.
[0356] In some possible implementations, the first signaling is used to trigger the first earphone and the second earphone to perform LE Audio broadcast, including:
[0357] The first signaling is used to instruct to disconnect the first BR / EDR Bluetooth link and trigger the first headset and the second headset to perform LEAudio broadcasting.
[0358] It should be noted that, combined with the content of the above “3) First Signaling”, it can be seen that this will not be elaborated on.
[0359] In some possible implementations, the first signaling is transmitted when the electronic device detects that the first earphone and the second earphone need to play audio data synchronously; or,
[0360] The transmission is performed when the electronic device detects that the user has worn the first earphone and the second earphone; or
[0361] It is transmitted after a preset waiting time after the establishment of the first BR / EDR Bluetooth link is completed.
[0362] It should be noted that, combined with the content of the above “b. Transmission conditions of the first signaling”, it can be seen that this will not be elaborated on.
[0363] In some possible implementations, the communication link between the first headset and the second headset is established before the first BR / EDR Bluetooth link is established, or is established after the first headset receives the first signaling.
[0364] It should be noted that, combined with the content in the above “5) Communication link between the first earphone and the second earphone”, it can be seen that this is not elaborated on.
[0365] In some possible implementations, establishing the first BR / EDR Bluetooth link includes the following steps:
[0366] The first headset receives a request signaling from the electronic device, where the request signaling is used to request to establish a first BR / EDR Bluetooth link;
[0367] The first headset sends a response signaling to the electronic device, where the response signaling is used to respond to the request signaling to complete the establishment of the first BR / EDR Bluetooth link.
[0368] It should be noted that, combined with the content in the above “2) the electronic device and the first headset establish a first BR / EDR Bluetooth link”, it can be seen that this is not described in detail.
[0369] In some possible implementations, the first earphone is a main earphone in the wireless earphone; or,
[0370] The first earphone is the earphone body with the largest remaining power among the wireless earphones; or
[0371] The device identification or physical address of the first headset is stored in the electronic device, and / or the device identification or physical address of the second headset is not stored in the electronic device.
[0372] It should be noted that, combined with the content in the above “1) the first earphone and the second earphone”, it can be seen that this is not elaborated herein.
[0373] In some possible implementations, after the second earphone broadcasts the fourth signaling on the LE broadcast channel, the receiving unit 510 further includes:
[0374] If the second LE Bluetooth link is not established within a preset time interval after the moment when the first LE Bluetooth link is established, control the first headset to receive a fifth signaling from the electronic device or the second headset after the preset time interval, the fifth signaling is used to indicate that the second LE Bluetooth link fails to be established; and / or,
[0375] If the second LE Bluetooth link is established within a preset time interval after the first LE Bluetooth link is established, the first headset is controlled to receive a sixth signaling from the electronic device or the second headset, and the sixth signaling is used to indicate that the second LE Bluetooth link is established.
[0376] It should be noted that, combined with the content of the above “7) Fifth signaling and sixth signaling”, it can be seen that this will not be elaborated on.
[0377] In some possible implementations, after the first earphone receives the fifth signaling from the electronic device after the preset time interval, the sending unit 520 is further configured to:
[0378] Control the first earphone to send a seventh signaling to the second earphone, where the seventh signaling is used to trigger the second earphone to re-perform LE Audio broadcast to re-establish a second LE Bluetooth link; or,
[0379] The first earphone is controlled to send an eighth signaling to the electronic device, where the eighth signaling is used to carry the device identification or physical address of the second earphone, and the device identification or physical address of the second earphone is used by the electronic device to initiate a request to re-establish the second LE Bluetooth link.
[0380] It should be noted that, combined with the content of the above “8) Seventh signaling and eighth signaling”, it can be seen that this will not be elaborated on.
[0381] In some possible implementations, after the second earphone broadcasts the fourth signaling on the LE broadcast channel, the receiving unit 510 is further configured to:
[0382] After the first LE Bluetooth link and the second LE Bluetooth link are established, controlling the first headset to receive a ninth signaling from the electronic device on the first LE Bluetooth link, where the ninth signaling is used to request to establish a first connection-oriented synchronous stream CIS with the first headset;
[0383] The second headset is controlled to receive a tenth signaling from the electronic device on the second LE Bluetooth link, where the tenth signaling is used to request to establish a second CIS with the second headset.
[0384] It should be noted that, combined with the content of the above “9) Ninth signaling and tenth signaling”, it can be seen that this will not be repeated here.
[0385] In some possible implementations, the ninth signaling and / or the tenth signaling is transmitted when the electronic device detects that the wireless headset needs to play audio data.
[0386] It should be noted that, combined with the content of the above “9) ninth signaling and / or tenth signaling”, it can be seen that it will not be elaborated on here.
[0387] In some possible implementations, after the second earphone receives the tenth signaling from the electronic device on the second LE Bluetooth link, the Bluetooth communication device 500 further includes a broadcasting unit, configured to:
[0388] If the time interval between the establishment completion time of the first CIS and the establishment completion time of the second CIS exceeds a preset threshold, controlling the first earphone and the second earphone not to synchronously play the audio data;
[0389] If the time interval between the establishment completion time of the first CIS and the establishment completion time of the second CIS does not exceed the preset threshold, the first earphone and the second earphone are controlled to play the audio data synchronously.
[0390] It should be noted that, combined with the content of the above “10) the time interval between the time when the establishment of the first CIS is completed and the time when the establishment of the second CIS is completed”, it can be seen that this is not repeated here.
[0391] In some possible implementations, after the second earphone receives the tenth signaling from the electronic device on the second LE Bluetooth link, the Bluetooth communication device 500 further includes a reconstruction unit, configured to:
[0392] If the first CIS fails to be established, the first headset is controlled to directly disconnect the asynchronous connection-oriented link ACL of the first LE Bluetooth link, or the first headset is controlled to re-establish the first CIS; if the number of reconstructions of the first CSI is greater than a preset number, the first headset is controlled to directly disconnect the ACL of the first LE Bluetooth link;
[0393] If the second CIS fails to be established, the second headset is controlled to directly disconnect the ACL of the second LE Bluetooth link, or the second headset is controlled to re-establish the second CIS; if the number of reconstructions of the second CSI is greater than the preset number, the second headset is controlled to directly disconnect the ACL of the second LE Bluetooth link.
[0394] It should be noted that, combined with the content in the above “11) Failure to establish the first CIS or the second CIS”, it can be seen that this is not elaborated on.
[0395] 4. Another exemplary description of a Bluetooth communication device
[0396] 1. Description
[0397] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process of the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should know that, in combination with the methods, functions, modules, units or steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain method, function, module, unit or step is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described methods, functions, modules, units or steps for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0398] The embodiment of the present application can divide the electronic device into functional units / modules according to the above method example. For example, each functional unit / module can be divided according to each function, or two or more functions can be integrated into one functional unit / module. The above integrated functional unit / module can be implemented in hardware or in software program. It should be noted that the division of functional units / modules in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.
[0399] In the case of an integrated unit, Figure 6 The Bluetooth communication device 600 specifically includes: a sending unit 610 and a receiving unit 620 .
[0400] It should be noted that the sending unit 610 may be a module unit for sending signaling, etc., and there is no specific limitation on this.
[0401] The receiving unit 620 may be a module unit for receiving signaling, etc., and there is no specific limitation on this.
[0402] In some possible implementations, the sending unit 610 and the receiving unit 620 may be integrated into one unit.
[0403] For example, the sending unit 610 and the receiving unit 620 may be integrated into a processing unit.
[0404] It should be noted that the processing unit can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processing unit can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0405] In some possible implementations, the Bluetooth communication device 600 may further include a storage unit for storing computer programs or instructions executed by the Bluetooth communication device 600 .
[0406] For example, the storage unit may be a memory.
[0407] In some possible implementations, the Bluetooth communication device 600 may be a chip / chip module / processor / hardware, etc.
[0408] In specific implementation, the Bluetooth communication device 600 is used to execute the steps described in the above method embodiment.
[0409] A sending unit 610 is configured to send a first signaling to a first earphone of the wireless earphone, where the first signaling is used to trigger the first earphone and the second earphone of the wireless earphone to perform a low-power audio LE Audio broadcast;
[0410] A receiving unit 620, configured to receive a second signaling broadcasted by the first headset on the LE broadcast channel, where the second signaling is used to request to establish a first LE Bluetooth link between the first headset and the electronic device;
[0411] The receiving unit 620 is further configured to receive a fourth signaling broadcast by the second headset on the LE broadcast channel, where the fourth signaling is used to request to establish a second LE Bluetooth link between the second headset and the electronic device.
[0412] It can be seen that since the electronic device can only transmit audio data with the first earphone but cannot transmit audio data with the second earphone, it may happen that the first earphone and the second earphone cannot synchronize the audio data.
[0413] Based on this, the present application introduces a first signaling, and triggers the first headset to broadcast LE Audio through the first signaling, and LE Audio can support point-to-multipoint data transmission. Then, the first headset broadcasts a second signaling according to the first signaling to request to establish a first LE Bluetooth link with the electronic device, and sends a third signaling to the second headset according to the first signaling to trigger the second headset to broadcast LE Audio. Finally, the second headset broadcasts a fourth signaling according to the third signaling to request to establish a second LE Bluetooth link with the electronic device.
[0414] In this way, the electronic device can establish a connection with the first headset through the first LE Bluetooth link, and can also establish a connection with the second headset through the second LE Bluetooth link, so that the electronic device establishes a synchronous connection with the first headset and the second headset, which is conducive to achieving point-to-multipoint audio data transmission and playback synchronization.
[0415] It should be noted that the specific implementation of each operation performed by the Bluetooth communication device 600 can refer to the corresponding description of the method embodiment shown above, and will not be repeated here.
[0416] 2. Other implementation methods
[0417] Some of the implementation methods involved are further explained below, and other contents not involved can be found in the above description in detail, which will not be repeated here.
[0418] In some possible implementations, the first signaling is transmitted over a first basic rate / enhanced rate BR / EDR Bluetooth link established between the first headset and the electronic device.
[0419] It should be noted that, combined with the content of the above “3) First Signaling”, it can be seen that this will not be elaborated on.
[0420] In some possible implementations, the first signaling is used to trigger the first earphone and the second earphone to perform LE Audio broadcast, including:
[0421] The first signaling is used to instruct to disconnect the first BR / EDR Bluetooth link and trigger the first headset and the second headset to perform LEAudio broadcasting.
[0422] It should be noted that, combined with the content of the above “3) First Signaling”, it can be seen that this will not be elaborated on.
[0423] In some possible implementations, the first signaling is transmitted when the electronic device detects that the first earphone and the second earphone need to play audio data synchronously; or,
[0424] The transmission is performed when the electronic device detects that the user has worn the first earphone and the second earphone; or
[0425] It is transmitted after a preset waiting time after the establishment of the first BR / EDR Bluetooth link is completed.
[0426] It should be noted that, combined with the content of the above “b. Transmission conditions of the first signaling”, it can be seen that this will not be elaborated on.
[0427] In some possible implementations, establishing the first BR / EDR Bluetooth link includes the following steps:
[0428] Sending a request signaling to the first headset, where the request signaling is used to request to establish a first BR / EDR Bluetooth link;
[0429] A response signaling is received from the first headset, where the response signaling is used to respond to the request signaling to complete the establishment of the first BR / EDR Bluetooth link.
[0430] It should be noted that, combined with the content in the above “2) the electronic device establishes a BR / EDR Bluetooth link with the first headset”, it can be seen that this is not repeated here.
[0431] In some possible implementations, after receiving the fourth signaling broadcast by the second headset on the LE broadcast channel, the sending unit 610 is further configured to:
[0432] If the second LE Bluetooth link is not established within a preset time interval after the moment when the first LE Bluetooth link is established, a fifth signaling is sent to the first headset after the preset time interval, and the fifth signaling is used to indicate that the second LE Bluetooth link fails to be established; and / or,
[0433] If the second LE Bluetooth link is established within a preset time interval after the moment when the first LE Bluetooth link is established, a sixth signaling is sent to the first headset, and the sixth signaling is used to indicate that the establishment of the second LE Bluetooth link is completed.
[0434] It should be noted that, combined with the content of the above “7) Fifth signaling and sixth signaling”, it can be seen that this will not be elaborated on.
[0435] In some possible implementations, after sending the fifth signaling to the first headset after the preset time interval, the receiving unit 620 is further configured to:
[0436] receiving a request from the second headset to re-broadcast LE Audio to re-establish the second LE Bluetooth link; or,
[0437] An eighth signaling is received from the first earphone, where the eighth signaling is used to carry the device identification or physical address of the second earphone, and the device identification or physical address of the second earphone is used by the electronic device to initiate a request to re-establish the second LE Bluetooth link.
[0438] It should be noted that, combined with the content of the above “8) Seventh signaling and eighth signaling”, it can be seen that this will not be elaborated on.
[0439] In some possible implementations, after receiving the fourth signaling broadcast by the second headset on the LE broadcast channel, the sending unit 610 is further configured to:
[0440] After the first LE Bluetooth link and the second LE Bluetooth link are established, a ninth signaling is sent to the first headset on the first LE Bluetooth link, where the ninth signaling is used to request to establish a first connection-oriented synchronization stream CIS with the first headset;
[0441] A tenth signaling is sent to the second headset over the second LE Bluetooth link, where the tenth signaling is used to request to establish a second CIS with the second headset.
[0442] It should be noted that, combined with the content of the above “9) Ninth signaling and tenth signaling”, it can be seen that this will not be repeated here.
[0443] In some possible implementations, the ninth signaling and / or the tenth signaling is transmitted when the electronic device detects that the wireless headset needs to play audio data.
[0444] It should be noted that, combined with the content of the above “9) Ninth signaling and tenth signaling”, it can be seen that this will not be repeated here.
[0445] In some possible implementations, after sending the tenth signaling to the second headset on the second LE Bluetooth link, the Bluetooth communication device 600 further includes a reconstruction unit, configured to:
[0446] If the first CIS fails to be established, the asynchronous connection-oriented link ACL of the first LE Bluetooth link is directly disconnected, or the first CIS is re-established; if the number of reconstructions of the first CSI is greater than the preset number, the ACL of the first LE Bluetooth link is directly disconnected;
[0447] If the second CIS fails to be established, the ACL of the second LE Bluetooth link is directly disconnected, or the second CIS is re-established; if the number of reconstructions of the second CSI is greater than the preset number, the ACL of the second LE Bluetooth link is directly disconnected.
[0448] It should be noted that, combined with the content in the above “11) Failure to establish the first CIS or the second CIS”, it can be seen that this is not elaborated on.
[0449] 5. Exemplary description of a wireless headset
[0450] The following is a schematic diagram of the structure of a wireless headset according to an embodiment of the present application. Figure 7 The wireless headset 700 includes a processor 710 , a memory 720 , and at least one communication bus for connecting the processor 710 and the memory 720 .
[0451] In some possible implementations, the processor 710 may be one or more central processing units (CPUs). In the case where the processor 710 is a CPU, the CPU may be a single-core CPU or a multi-core CPU. The memory 720 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), and the memory 720 is used to store computer programs or instructions.
[0452] In some possible implementations, the wireless headset 700 further includes a communication interface, which is used to receive and send data.
[0453] In some possible implementations, the processor 710 in the wireless headset 700 is used to execute a computer program or instruction 721 stored in the memory 720 to implement the following steps:
[0454] Controlling a first earphone of the wireless earphone 700 to receive a first signaling from an electronic device, where the first signaling is used to trigger the first earphone and a second earphone of the wireless earphone 700 to perform low-power audio LE Audio broadcasting;
[0455] Controlling the first headset to broadcast a second signaling on an LE broadcast channel, where the second signaling is used to request to establish a first LE Bluetooth link between the first headset and the electronic device;
[0456] Control the first earphone to send a third signaling to the second earphone, where the third signaling is used to instruct the second earphone to perform LEAudio broadcasting;
[0457] The second earphone is controlled to broadcast a fourth signaling on the LE broadcast channel, where the fourth signaling is used to request to establish a second LE Bluetooth link between the second earphone and the electronic device.
[0458] It can be seen that since the electronic device can only transmit audio data with the first earphone but cannot transmit audio data with the second earphone, it may happen that the first earphone and the second earphone cannot synchronize the audio data.
[0459] Based on this, the present application introduces a first signaling, and triggers the first headset to broadcast LE Audio through the first signaling, and LE Audio can support point-to-multipoint data transmission. Then, the first headset broadcasts a second signaling according to the first signaling to request to establish a first LE Bluetooth link with the electronic device, and sends a third signaling to the second headset according to the first signaling to trigger the second headset to broadcast LE Audio. Finally, the second headset broadcasts a fourth signaling according to the third signaling to request to establish a second LE Bluetooth link with the electronic device.
[0460] In this way, the electronic device can establish a connection with the first headset through the first LE Bluetooth link, and can also establish a connection with the second headset through the second LE Bluetooth link, so that the electronic device establishes a synchronous connection with the first headset and the second headset, which is conducive to achieving point-to-multipoint audio data transmission and playback synchronization.
[0461] It should be noted that the specific implementation of each operation performed by the wireless headset 700 can refer to the corresponding description of the method embodiment shown above, which will not be repeated here.
[0462] VI. Exemplary description of an electronic device
[0463] The following is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 8 The electronic device 800 includes a processor 810 , a memory 820 , and at least one communication bus for connecting the processor 810 and the memory 820 .
[0464] In some possible implementations, the processor 810 may be one or more central processing units (CPUs). In the case where the processor 810 is a CPU, the CPU may be a single-core CPU or a multi-core CPU. The memory 820 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), and the memory 820 is used to store computer programs or instructions.
[0465] In some possible implementations, the electronic device 800 further includes a communication interface, which is used to receive and send data.
[0466] In some possible implementations, the processor 810 in the electronic device 800 is used to execute the computer program or instruction 821 stored in the memory 820 to implement the following steps:
[0467] Sending a first signaling to a first earphone of the wireless earphone, where the first signaling is used to trigger the first earphone and the second earphone of the wireless earphone to perform low-power audio LE Audio broadcasting;
[0468] Receiving a second signaling broadcasted by the first headset on the LE broadcast channel, where the second signaling is used to request to establish a first LE Bluetooth link between the first headset and the electronic device 800;
[0469] A fourth signaling broadcasted by the second earphone on the LE broadcast channel is received, where the fourth signaling is used to request to establish a second LE Bluetooth link between the second earphone and the electronic device 800.
[0470] It can be seen that since the electronic device can only transmit audio data with the first earphone but cannot transmit audio data with the second earphone, it may happen that the first earphone and the second earphone cannot synchronize the audio data.
[0471] Based on this, the present application introduces a first signaling, and triggers the first headset to broadcast LE Audio through the first signaling, and LE Audio can support point-to-multipoint data transmission. Then, the first headset broadcasts a second signaling according to the first signaling to request to establish a first LE Bluetooth link with the electronic device, and sends a third signaling to the second headset according to the first signaling to trigger the second headset to broadcast LE Audio. Finally, the second headset broadcasts a fourth signaling according to the third signaling to request to establish a second LE Bluetooth link with the electronic device.
[0472] In this way, the electronic device can establish a connection with the first headset through the first LE Bluetooth link, and can also establish a connection with the second headset through the second LE Bluetooth link, so that the electronic device establishes a synchronous connection with the first headset and the second headset, which is conducive to achieving point-to-multipoint audio data transmission and playback synchronization.
[0473] It should be noted that the specific implementation of each operation performed by the electronic device 800 can refer to the corresponding description of the method embodiment shown above, and will not be repeated here.
[0474] VII. Other Explanations
[0475] An embodiment of the present application also provides a computer-readable storage medium, wherein a computer program or instructions are stored on the computer-readable storage medium, and when the computer program or instructions are executed by a processor, the steps described in the above embodiment are implemented.
[0476] The present application also provides a computer program product, including a computer program or instructions, wherein the computer program or instructions are executed by a processor to implement the steps described in the above embodiment. Exemplarily, the computer program product may be a software installation package.
[0477] In addition, a computer program product should be understood as a software product that mainly implements the technical solution of the present application through computer programs or instructions.
[0478] It should be noted that, for the above-mentioned various embodiments, for the sake of simple description, they are all expressed as a series of action combinations. Those skilled in the art should be aware that the present application is not limited by the described order of actions, because some steps in the embodiments of the present application can be performed in other orders or simultaneously. In addition, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions, steps, modules or units involved are not necessarily required by the embodiments of the present application.
[0479] In the above embodiments, the embodiments of the present application have different focuses on the description of each embodiment. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0480] Those skilled in the art should be aware that the methods, steps or functions of related modules / units described in the embodiments of the present application can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product, or it can be implemented by a processor executing a computer program instruction. Wherein, the computer program product includes at least one computer program instruction, and the computer program instruction can be composed of corresponding software modules, and the software module can be stored in RAM, flash memory, ROM, EPROM, EEPROM, register, hard disk, mobile hard disk, read-only compact disk (CD-ROM) or any other form of storage medium known in the art. The computer program instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program instruction can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium, or a semiconductor medium (eg, an SSD), etc.
[0481] The modules / units included in the devices or products described in the above embodiments may be software modules / units, hardware modules / units, or may be partially software modules / units and partially hardware modules / units. For example, for each device or product whose application is applied to or integrated into a chip, each module / unit included therein may be implemented in the form of hardware such as circuits; or, a part of the modules / units included therein may be implemented in the form of a software program, which runs on a processor integrated inside the chip, while a part of the modules / units of another part (if any) may be implemented in the form of hardware such as circuits. The same is true for each device or product whose application is applied to or integrated into a chip module, or each device or product whose application is applied to or integrated into a terminal.
[0482] The above specific implementation methods further describe the purpose, technical solutions and beneficial effects of the embodiments of the present application in detail. It should be understood that the above are only specific implementation methods of the embodiments of the present application and are not intended to limit the protection scope of the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.
Claims
1. A Bluetooth communication method, characterized in that: Applicable to a wireless headset, the wireless headset comprising a first headset and a second headset, including: The first earphone receives a first signaling from an electronic device, where the first signaling is used to trigger the first earphone and the second earphone to perform a low-power audio LE Audio broadcast; The first earphone broadcasts a second signaling on an LE broadcast channel, where the second signaling is used to request establishment of a first LE Bluetooth link between the first earphone and the electronic device; The first earphone sends a third signaling to the second earphone, where the third signaling is used to instruct the second earphone to perform LE Audio broadcast; The second earphone broadcasts a fourth signaling on the LE broadcast channel, where the fourth signaling is used to request establishment of a second LE Bluetooth link between the second earphone and the electronic device.
2. The method according to claim 1, characterized in that The first signaling is transmitted over a first basic rate / enhanced rate BR / EDR Bluetooth link established between the first headset and the electronic device.
3. The method according to claim 2, characterized in that The first signaling is used to trigger the first headset and the second headset to perform LE Audio broadcast, including: The first signaling is used to instruct the disconnection of the first BR / EDR Bluetooth link and trigger the first headset and the second headset to perform LE Audio broadcast.
4. The method according to claim 2, characterized in that The first signaling is transmitted when the electronic device detects that the first earphone and the second earphone need to play audio data synchronously; or The transmission is performed when the electronic device detects that the user has put on the first earphone and the second earphone; or The transmission is performed after a preset waiting time is delayed from the moment when the establishment of the first BR / EDR Bluetooth link is completed.
5. The method according to claim 2, characterized in that The communication link between the first headset and the second headset is established before the first BR / EDR Bluetooth link is established, or is established after the first headset receives the first signaling.
6. The method according to claim 1, wherein The establishment of the first BR / EDR Bluetooth link includes the following steps: The first headset receives a request signaling from the electronic device, where the request signaling is used to request to establish the first BR / EDR Bluetooth link; The first headset sends a response signaling to the electronic device, where the response signaling is used to respond to the request signaling to complete the establishment of the first BR / EDR Bluetooth link.
7. The method according to claim 1, characterized in that The first earphone is a main earphone in the wireless earphone; or The first earphone is the earphone body with the largest remaining power among the wireless earphones; or The device identification or physical address of the first headset is stored in the electronic device, and / or the device identification or physical address of the second headset is not stored in the electronic device.
8. The method according to claim 1, characterized in that After the second headset broadcasts the fourth signaling on the LE broadcast channel, the method further includes: If the second LE Bluetooth link is not established within a preset time interval after the moment when the first LE Bluetooth link is established, the first headset receives a fifth signaling from the electronic device or the second headset after the preset time interval, where the fifth signaling is used to indicate that the second LE Bluetooth link failed to be established; and / or If the second LE Bluetooth link is established within the preset time interval after the moment when the first LE Bluetooth link is established, the first headset receives a sixth signaling from the electronic device or the second headset, and the sixth signaling is used to indicate that the establishment of the second LE Bluetooth link is completed.
9. The method according to claim 8, characterized in that After the first headset receives the fifth signaling from the electronic device after the preset time interval, the method further includes: The first earphone sends a seventh signaling to the second earphone, where the seventh signaling is used to trigger the second earphone to re-broadcast LE Audio to re-establish the second LE Bluetooth link; or The first earphone sends an eighth signaling to the electronic device, where the eighth signaling is used to carry the device identification or physical address of the second earphone, and the device identification or physical address of the second earphone is used by the electronic device to initiate a request to re-establish the second LE Bluetooth link.
10. The method according to any one of claims 1 to 9, characterized in that After the second headset broadcasts the fourth signaling on the LE broadcast channel, the method further includes: After the first LE Bluetooth link and the second LE Bluetooth link are established, the first headset receives, on the first LE Bluetooth link, a ninth signaling from the electronic device, where the ninth signaling is used to request establishment of a first connection-oriented synchronous stream (CIS) with the first headset; The second headset receives a tenth signaling from the electronic device on the second LE Bluetooth link, where the tenth signaling is used to request to establish a second CIS with the second headset.
11. The method according to claim 10, characterized in that The ninth signaling and / or the tenth signaling are transmitted when the electronic device detects that the wireless headset needs to play audio data.
12. The method according to claim 10, characterized in that After the second earphone receives the tenth signaling from the electronic device on the second LE Bluetooth link, the method further includes: If the time interval between the establishment completion time of the first CIS and the establishment completion time of the second CIS exceeds a preset threshold, the first headset and the second headset do not play the audio data synchronously; If the time interval between the establishment completion time of the first CIS and the establishment completion time of the second CIS does not exceed the preset threshold, the first earphone and the second earphone play the audio data synchronously.
13. The method according to claim 10, characterized in that After the second earphone receives the tenth signaling from the electronic device on the second LE Bluetooth link, the method further includes: If the first CIS fails to be established, the first headset directly disconnects the asynchronous connection-oriented link ACL of the first LE Bluetooth link, or the first headset re-establishes the first CIS; if the number of times the first CSI is re-established is greater than a preset number, the first headset directly disconnects the ACL of the first LE Bluetooth link; If the establishment of the second CIS fails, the second headset directly disconnects the ACL of the second LE Bluetooth link, or the second headset re-establishes the second CIS; if the number of reconstructions of the second CSI is greater than the preset number, the second headset directly disconnects the ACL of the second LE Bluetooth link.
14. A Bluetooth communication method, characterized in that: Used in electronic equipment, including: Sending a first signaling to a first earphone of a wireless headset, where the first signaling is used to trigger the first earphone and the second earphone of the wireless headset to perform a low-power audio LE Audio broadcast; receiving a second signaling broadcast by the first headset on an LE broadcast channel, where the second signaling is used to request establishment of a first LE Bluetooth link between the first headset and the electronic device; Receive fourth signaling broadcast by the second earphone on the LE broadcast channel, where the fourth signaling is used to request establishment of a second LE Bluetooth link between the second earphone and the electronic device.
15. The method according to claim 14, characterized in that The first signaling is transmitted over a first basic rate / enhanced rate BR / EDR Bluetooth link established between the first headset and the electronic device.
16. The method according to claim 15, characterized in that The first signaling is used to trigger the first earphone and the second earphone of the wireless earphone to perform LE Audio broadcast, including: The first signaling is used to instruct to disconnect the first BR / EDR Bluetooth link and trigger the first earphone and the second earphone of the wireless earphone to perform LE Audio broadcast.
17. The method according to claim 15, characterized in that The first signaling is transmitted when the electronic device detects that the first earphone and the second earphone need to play audio data synchronously; or The transmission is performed when the electronic device detects that the user has put on the first earphone and the second earphone; or The transmission is performed after a preset waiting time is delayed from the moment when the establishment of the first BR / EDR Bluetooth link is completed.
18. The method according to claim 15, characterized in that The establishment of the first BR / EDR Bluetooth link includes the following steps: Sending a request signaling to the first headset, where the request signaling is used to request establishment of the first BR / EDR Bluetooth link; Receive response signaling from the first headset, where the response signaling is used to respond to the request signaling to complete the establishment of the first BR / EDR Bluetooth link.
19. The method according to claim 15, characterized in that After receiving the fourth signaling broadcasted by the second headset on the LE broadcast channel, the method further includes: If the second LE Bluetooth link is not established within a preset time interval after the moment when the first LE Bluetooth link is established, sending a fifth signaling to the first headset after the preset time interval, the fifth signaling being used to indicate that the second LE Bluetooth link establishment failed; and / or, If the second LE Bluetooth link is established within a preset time interval after the moment when the first LE Bluetooth link is established, a sixth signaling is sent to the first headset, where the sixth signaling is used to indicate that the establishment of the second LE Bluetooth link is complete.
20. The method according to claim 19, characterized in that After sending the fifth signaling to the first headset after the preset time interval, the method further includes: receiving a request from the second headset to re-broadcast LE Audio to re-establish the second LE Bluetooth link; or, Receive an eighth signaling from the first earphone, where the eighth signaling is used to carry the device identification or physical address of the second earphone, and the device identification or physical address of the second earphone is used by the electronic device to initiate a request to re-establish the second LE Bluetooth link.
21. The method according to any one of claims 14 to 20, characterized in that After receiving the fourth signaling broadcasted by the second headset on the LE broadcast channel, the method further includes: After establishing the first LE Bluetooth link and the second LE Bluetooth link, sending a ninth signaling to the first headset over the first LE Bluetooth link, where the ninth signaling is used to request establishment of a first connection-oriented synchronization stream (CIS) with the first headset; A tenth signaling is sent to the second headset over the second LE Bluetooth link, where the tenth signaling is used to request establishment of a second CIS with the second headset.
22. The method according to claim 21, characterized in that The ninth signaling and / or the tenth signaling are transmitted when the electronic device detects that the wireless headset needs to play audio data.
23. The method according to claim 21, characterized in that After sending the tenth signaling to the second headset over the second LE Bluetooth link, the method further includes: If the first CIS fails to be established, the asynchronous connection-oriented link ACL of the first LE Bluetooth link is directly disconnected, or the first CIS is re-established; if the number of reconstructions of the first CSI is greater than a preset number, the ACL of the first LE Bluetooth link is directly disconnected; If the establishment of the second CIS fails, the ACL of the second LE Bluetooth link is directly disconnected, or the second CIS is re-established; if the number of reconstructions of the second CSI is greater than the preset number, the ACL of the second LE Bluetooth link is directly disconnected.
24. A Bluetooth communication device, characterized in that: Applied to a wireless headset, the wireless headset includes a first headset and a second headset, and the device includes: a receiving unit, configured to control the first earphone to receive a first signaling from an electronic device, wherein the first signaling is used to trigger the first earphone and the second earphone to perform a low-power audio LE Audio broadcast; a sending unit, configured to control the first headset to broadcast a second signaling on an LE broadcast channel, where the second signaling is used to request establishment of a first LE Bluetooth link between the first headset and the electronic device; The sending unit is further configured to control the first headset to send a third signaling to the second headset, where the third signaling is used to instruct the second headset to perform LE Audio broadcast; The sending unit is further used to control the second headset to broadcast a fourth signaling on the LE broadcast channel, where the fourth signaling is used to request establishment of a second LE Bluetooth link between the second headset and the electronic device.
25. A Bluetooth communication device, characterized in that: Applied to electronic equipment, the device comprises: A sending unit, configured to send a first signaling to a first earphone of a wireless headset, wherein the first signaling is used to trigger the first earphone and the second earphone of the wireless headset to perform a low-power audio LE Audio broadcast; a receiving unit, configured to receive a second signaling broadcast by the first headset on an LE broadcast channel, where the second signaling is used to request establishment of a first LE Bluetooth link between the first headset and the electronic device; The receiving unit is further configured to receive a fourth signaling broadcast by the second headset on the LE broadcast channel, where the fourth signaling is used to request establishment of a second LE Bluetooth link between the second headset and the electronic device.
26. A wireless headset, characterized in that: The method comprises a processor, a memory, and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps of the method according to any one of claims 1 to 13.
27. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps of the method according to any one of claims 14 to 23.
28. A computer-readable storage medium, characterized in that The device stores a computer program or instruction, which implements the steps of the method according to any one of claims 1 to 13 or 14 to 23 when executed.
