Bluetooth communication system, reconnection method, bluetooth device, storage medium and chip

By utilizing Bluetooth Low Energy indicator information and classic Bluetooth modules in Bluetooth devices to improve the scanning duty cycle, the problem of slow Bluetooth device reconnection speed is solved, enabling a faster reconnection process and improving the user experience.

CN119545579BActive Publication Date: 2026-01-13HUAWEI TECH CO LTD

Patent Information

Application Number
CN202311161653.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-08-29
Filing Date
2023-09-06
Publication Date
2026-01-13
Estimated Expiration
2043-09-06

AI Technical Summary

Technical Problem

Bluetooth devices are slow to reconnect, which affects the user experience.

Method used

By sending an instruction message via Bluetooth Low Energy (BLE) to instruct the second Bluetooth device to increase the scanning duty cycle of Classic Bluetooth, and by sending a paging message via Classic Bluetooth to request a reconnection, a fast reconnection can be achieved by using the cooperation of BLE and Classic Bluetooth modules.

Benefits of technology

It improves the reconnection speed of Bluetooth devices, enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545579B_ABST
    Figure CN119545579B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a Bluetooth communication system, a back connection method, a Bluetooth device, a storage medium and a chip, and relate to the technical field of communication. The system comprises a first Bluetooth device and a second Bluetooth device which have been paired. The first Bluetooth device is configured to send indication information through Bluetooth low energy (BLE) and send a paging message through classic Bluetooth. The indication information is used to instruct the second Bluetooth device to increase the scan duty cycle of the classic Bluetooth, and the paging message is used to request to back connect the second Bluetooth device. The second Bluetooth device is configured to scan through BLE and scan through classic Bluetooth at a first duty cycle. After scanning the indication information through BLE, the classic Bluetooth is controlled to scan at a second duty cycle, and the second duty cycle is greater than the first duty cycle. After scanning the paging message through classic Bluetooth, the first Bluetooth connection is established with the first Bluetooth device. The technical solution provided by the present application can improve the Bluetooth back connection speed and has good user experience.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, in particular to a Bluetooth communication system, a reconnection method, a Bluetooth device, a storage medium and a chip. BACKGROUND

[0002] Bluetooth is a relatively mature short-range wireless communication technology, which is widely used in various Bluetooth devices, such as Bluetooth earphones, mobile phones, etc. Bluetooth includes classic Bluetooth and Bluetooth Low Energy. At present, two Bluetooth devices that have been paired can directly reconnect through classic Bluetooth after starting the Bluetooth function without the need for pairing again. For example, a Bluetooth earphone can directly connect to the nearest connected electronic device, such as a mobile phone, after starting. However, there is a problem of slow reconnection speed in the reconnection process of the Bluetooth device, which affects the user experience. SUMMARY

[0003] The present application provides a Bluetooth communication system, a reconnection method, a Bluetooth device, a storage medium and a chip, which solves the problem of slow Bluetooth reconnection speed in the prior art, which affects the user experience.

[0004] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0005] In a first aspect, the present application provides a Bluetooth communication system, which includes a first Bluetooth device and a second Bluetooth device that have been paired. The first Bluetooth device is configured to send indication information through Bluetooth Low Energy and send a paging message through classic Bluetooth. The indication information is used to instruct the second Bluetooth device to increase the scan duty cycle of classic Bluetooth, and the paging message is used to request to reconnect the second Bluetooth device. The second Bluetooth device is configured to scan through Bluetooth Low Energy and scan through classic Bluetooth with a first duty cycle. After scanning the indication information through Bluetooth Low Energy, the classic Bluetooth is controlled to scan with a second duty cycle, and the second duty cycle is greater than the first duty cycle. After scanning the paging message through classic Bluetooth, the first Bluetooth connection is established with the first Bluetooth device.

[0006] In the Bluetooth communication system provided by the present application, when the first Bluetooth device reconnects the second Bluetooth device, it can quickly instruct the second Bluetooth device to increase the scan duty cycle of classic Bluetooth through Bluetooth Low Energy, thereby increasing the scanning rate of information of the second Bluetooth device in the classic Bluetooth reconnection process, improving the reconnection speed and user experience.

[0007] In some embodiments, the first Bluetooth device is configured to: send the indication information through the Bluetooth Low Energy, and send the paging message through the classic Bluetooth, including: in response to the first event, sending the indication information through the Bluetooth Low Energy within a preset time; and after the preset time is exceeded or the response information is received, sending the paging message through the classic Bluetooth; wherein the response information is used to indicate that the second Bluetooth device has received the indication information. In this embodiment, the first Bluetooth device first indicates the second Bluetooth device to increase the scan duty cycle of the classic Bluetooth through the Bluetooth Low Energy, and then pages the second Bluetooth device through the classic Bluetooth, and the fast reconnection is independently realized using one Bluetooth module. The Bluetooth module supports the classic Bluetooth and the Bluetooth Low Energy at the same time.

[0008] It should be noted that, although the first Bluetooth device performs the process of "indicating the second Bluetooth device to increase the scan duty cycle of the classic Bluetooth through the Bluetooth Low Energy" in addition to the traditional reconnection process, the reconnection time is increased in this step. However, after the second Bluetooth device increases the scan duty cycle of the classic Bluetooth, the reconnection time can be significantly reduced in the multiple interactions with the first Bluetooth device. Therefore, from the overall effect, the method provided in this embodiment can improve the reconnection speed of the Bluetooth device to some extent.

[0009] In some embodiments, the first Bluetooth device includes a first Bluetooth module and a second Bluetooth module, and the first Bluetooth device is configured to: send the indication information through the Bluetooth Low Energy, and send the paging message through the classic Bluetooth, including:

[0010] The first Bluetooth module is configured to: send the paging message through the classic Bluetooth.

[0011] The second Bluetooth module is configured to: send the indication information through the Bluetooth Low Energy.

[0012] In this embodiment, the first Bluetooth device reconnects the second Bluetooth device under the cooperation of the first Bluetooth module and the second Bluetooth module. Moreover, in this process, the process of indicating the second Bluetooth device to increase the scan duty cycle of the classic Bluetooth through the Bluetooth Low Energy and the process of reconnecting the second Bluetooth device through the classic Bluetooth are performed in parallel and do not affect each other. When the second Bluetooth device increases the scan duty cycle of the classic Bluetooth, the classic Bluetooth of the second Bluetooth device can scan the paging message sent by the first Bluetooth device with high efficiency, thereby improving the reconnection speed of the classic Bluetooth.

[0013] In some embodiments, the first Bluetooth module and the second Bluetooth module are further configured to: in response to the first event, the first Bluetooth module and the second Bluetooth module establish a second Bluetooth connection. The Bluetooth connection is usually a classic Bluetooth connection, and of course it can also be a Bluetooth Low Energy connection, and this embodiment does not limit it.

[0014] In some embodiments, the first Bluetooth module is further configured to instruct the second Bluetooth module to send the indication information through the second Bluetooth connection.

[0015] It should be noted that the first Bluetooth module can also send the indication information by default without the instruction of the first Bluetooth module, or the first Bluetooth module can be connected with the second Bluetooth module through a wired connection and instruct the second Bluetooth module to send the indication information through the wired connection. The present embodiment does not limit this.

[0016] In some embodiments, the first Bluetooth device is a true wireless stereo (TWS) earphone, the TWS earphone includes a master earphone and a slave earphone, the master earphone includes the first Bluetooth module, and the slave earphone includes the second Bluetooth module.

[0017] In some embodiments, the first event is that the Bluetooth function of the first Bluetooth device is successfully started, for example, the second Bluetooth device is powered on and automatically starts the Bluetooth function, or the first Bluetooth device starts the Bluetooth function according to the user's operation on the Bluetooth control.

[0018] In some embodiments, the first event is that the first Bluetooth device confirms that the Bluetooth connection with the second Bluetooth device needs to be re-established after the Bluetooth connection is disconnected. For example, the first Bluetooth device and the second Bluetooth device are automatically disconnected due to the distance becoming far and the Bluetooth signal being less than a threshold, based on which the first Bluetooth device determines that the connection needs to be re-established.

[0019] In some embodiments, the second Bluetooth device is further configured to resume the classic Bluetooth of the second Bluetooth device to scan at the first duty cycle after the first Bluetooth connection is successfully established, so as to reduce the power consumption of the second Bluetooth device.

[0020] In some embodiments, the second duty cycle is 11.25ms / 37.5ms, wherein 11.25ms is a scanning time window and 37.5ms is a scanning time interval. Of course, the second duty cycle can also be other data, and the present embodiment does not limit this.

[0021] In a second aspect, the present application provides a reconnection method of a Bluetooth device, applied to a first Bluetooth device and a second Bluetooth device which have been paired, the method comprising: the first Bluetooth device sends indication information through Bluetooth low energy (BLE) and sends a paging message through classic Bluetooth; the indication information is used to instruct the second Bluetooth device to increase the scanning duty cycle of the classic Bluetooth, and the paging message is used to request to reconnect the second Bluetooth device; the second Bluetooth device scans through BLE and scans at a first duty cycle through classic Bluetooth; the second Bluetooth device controls the classic Bluetooth to scan at a second duty cycle after scanning the indication information through BLE; wherein the second duty cycle is greater than the first duty cycle; and the second Bluetooth device establishes a first Bluetooth connection with the first Bluetooth device after scanning the paging message through classic Bluetooth.

[0022] In some embodiments, the first Bluetooth device sends the indication information through the Bluetooth Low Energy and sends the paging message through the classic Bluetooth, including: the first Bluetooth device sends the indication information through the Bluetooth Low Energy within a preset time in response to a first event; the first Bluetooth device sends the paging message through the classic Bluetooth after the preset time is exceeded or a response information is received; wherein the response information is used to indicate that the second Bluetooth device has received the indication information.

[0023] In some embodiments, the first Bluetooth device includes a first Bluetooth module and a second Bluetooth module, and accordingly, the first Bluetooth device sends the indication information through the Bluetooth Low Energy and sends the paging message through the classic Bluetooth, including: the first Bluetooth module sends the paging message through the classic Bluetooth; and the second Bluetooth module sends the indication information through the Bluetooth Low Energy.

[0024] In some embodiments, the method further includes: in response to the first event, the first Bluetooth module establishes a second Bluetooth connection with the second Bluetooth module.

[0025] In some embodiments, based on the second Bluetooth connection, the method further includes: the first Bluetooth module instructs the second Bluetooth module to send the indication information through the second Bluetooth connection.

[0026] In some embodiments, the first Bluetooth device is a true wireless stereo (TWS) earphone, the TWS earphone includes a master earphone and a slave earphone, the master earphone includes the first Bluetooth module, and the slave earphone includes the second Bluetooth module.

[0027] In some embodiments, the first event is: a Bluetooth function of the first Bluetooth device is successfully started; or after the Bluetooth connection between the first Bluetooth device and the second Bluetooth device is disconnected, it is confirmed that the Bluetooth connection needs to be re-established.

[0028] In some embodiments, the method further includes: after the first Bluetooth connection with the first Bluetooth device is successfully established, the classic Bluetooth of the second Bluetooth device resumes to scan at the first duty cycle, thereby saving device power consumption.

[0029] In some embodiments, the second duty cycle is 11.25 ms / 37.5 ms, wherein 11.25 ms is a scanning time window and 37.5 ms is a scanning time interval.

[0030] In a third aspect, the present application provides a Bluetooth device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the method performed by the first Bluetooth device or the second Bluetooth device in the second aspect and various embodiments thereof.

[0031] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the method performed by the first Bluetooth device or the second Bluetooth device in the second aspect and the embodiments thereof.

[0032] In a fifth aspect, the present application provides a chip, which includes a processor and a memory. The memory stores a computer program. The computer program is executed by the processor to implement the method performed by the first Bluetooth device or the second Bluetooth device in the second aspect and the embodiments thereof.

[0033] It can be understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0034] Figure 1 is a structural schematic diagram of a TWS earphone provided by an embodiment of the present application;

[0035] Figure 2 is a structural schematic diagram of a terminal device provided by an embodiment of the present application;

[0036] Figure 3 is a structural schematic diagram of a Bluetooth communication system provided by an embodiment of the present application;

[0037] Figure 4A is an application scenario schematic diagram of a Bluetooth communication system provided by an embodiment of the present application;

[0038] Figure 4B is an application scenario schematic diagram of a Bluetooth communication system provided by another embodiment of the present application;

[0039] Figure 5 is an application scenario schematic diagram of a Bluetooth communication system provided by yet another embodiment of the present application;

[0040] Figure 6 is a back connection process schematic diagram of a Bluetooth device provided by an embodiment of the present application;

[0041] Figure 7 is a work flow diagram of a Bluetooth communication system provided by an embodiment of the present application;

[0042] Figure 8 is a flow diagram of a back connection method of a Bluetooth device provided by an embodiment of the present application;

[0043] Figure 9 is a flow diagram of a back connection method of a Bluetooth device provided by another embodiment of the present application;

[0044] Figure 10is a flowchart of a method for reconnection of a Bluetooth device according to another embodiment of the present application;

[0045] Figure 11 is a structural schematic diagram of a chip according to an embodiment of the present application. DETAILED DESCRIPTION

[0046] The technical solutions provided by the embodiments of the present application are described below with reference to the drawings.

[0047] It should be understood that, in the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; "and / or" herein only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist together, and B exists alone.

[0048] In the embodiments, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features. In the description of the embodiments, unless otherwise specified, the meaning of "multiple" is two or more.

[0049] Bluetooth is a kind of wireless short-range communication technology, which uses a specific frequency band (usually around 2.4GHz-2.485GHz) to receive and transmit electromagnetic waves to realize communication between electronic devices. At present, Bluetooth includes classic Bluetooth (BT) and Bluetooth low energy (BLE). The following will be described in detail.

[0050] (1) Classic Bluetooth

[0051] Classic Bluetooth BT is also called Bluetooth basic rate (BR) / enhanced data rate (EDR), which generally refers to Bluetooth below version 3.0. The data transmission rate of BT is high, but it has problems such as high power consumption and short maximum transmission distance (such as about 10 meters). Based on this, BT is usually used for large data transmission within a short distance range, for example, used for transmitting audio from a mobile phone to a Bluetooth headset, or transmitting audio from a tablet computer to a Bluetooth sound box.

[0052] Referring to Table 1, BT has 79 channels, and there is no distinction between broadcast channels and data channels. In other words, each channel of BT can be used to send broadcast messages and transmit data. Among them, the channel of Bluetooth can be understood as the frequency range used by the Bluetooth signal in the transmission process, and different channels correspond to different frequency ranges. In addition, BT usually uses each channel in the form of frequency hopping spread spectrum (FHSS). Among them, FHSS refers to the spread spectrum by controlling the carrier frequency to jump constantly. Based on FHSS, BT divides the entire Bluetooth bandwidth into the above-mentioned 79 channels, and the sender and receiver of the Bluetooth signal switch to another channel after working on a channel for a period of time.

[0053] (2) Low-power Bluetooth

[0054] Low-power Bluetooth BLE usually refers to Bluetooth 4.0 and above versions. The power consumption of BLE is relatively low, and the maximum transmission distance is relatively large (such as about 50 meters), but the data transmission rate is low. Based on this, BLE is usually used in electronic devices that have low power consumption needs but no large data transmission needs, such as mice, keyboards, blood pressure meters, temperature sensors, etc. Or, it is used to assist BT to work, such as assisting BT to perform device discovery during the process of establishing a Bluetooth connection of an electronic device.

[0055] Referring to Table 1, BLE has 40 channels, including 3 broadcast channels and 37 data channels. Among them, the broadcast channel is specially used to transmit broadcast messages, and the data channel is specially used to transmit data (such as audio, pictures and files, etc.). In addition, like BT, BLE also uses each channel in the form of FHSS, for details, please refer to the foregoing, which will not be repeated here.

[0056] Table 1 Bluetooth channel

[0057]

[0058] Bluetooth is widely used in various electronic devices due to its low power consumption, low cost, convenience, flexibility, safety, small hardware size and other characteristics. In order to facilitate description, the electronic device configured with Bluetooth in the embodiment is collectively referred to as a Bluetooth device. In addition, according to the different Bluetooth technologies supported by the Bluetooth device, the Bluetooth device is divided into BT single-mode device, BLE single-mode device and BT&BLE dual-mode device. Among them, the BT single-mode device only supports classic Bluetooth, the BLE single-mode device only supports low-power Bluetooth, and the BT&BLE dual-mode device supports both classic Bluetooth and low-power Bluetooth.

[0059] In this embodiment, the Bluetooth device includes a Bluetooth earphone and a terminal device. The terminal device can be a mobile phone, a tablet computer (Pad), a smart home device (such as a smart television, a smart speaker, a sweeping robot, an air conditioner, etc.), a computer, a smart television, a projector, a wearable device (such as a smart watch), a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The Bluetooth earphone can be a true wireless stereo (TWS) earphone, or a neck-wearing earphone, etc. The specific type of the Bluetooth device is not limited in the embodiments of the present application.

[0060] Figure 1 is a structural schematic diagram of a TWS earphone provided by the embodiments of the present application. As shown in Figure 1 , the TWS earphone includes a left earphone, a right earphone, and an earphone box. The left earphone and the right earphone are usually placed in the earphone box, and when a user needs to use the Bluetooth earphone, the left earphone and / or the right earphone can be taken out of the earphone box for use.

[0061] The left earphone and the right earphone each include a shell and an internal component, and the internal component is arranged in a cavity formed by the shell. The internal component can include an audio module, a Bluetooth module, a power module, etc. The working mode of the left earphone and the right earphone includes a single-ear mode and a double-ear mode. In the single-ear mode, the left earphone or the right earphone is taken out of the earphone box alone, and establishes a Bluetooth connection with other Bluetooth devices to receive and play audio. In the double-ear mode, the left earphone and the right earphone are both taken out of the earphone box, one of which acts as a master earphone to connect with other electronic devices to receive and play audio, and the other acts as a slave earphone to assist the master earphone to work, and establishes a Bluetooth connection with the master earphone to receive audio sent by the master earphone, or listens to audio sent by other electronic devices (such as a mobile phone) to the master earphone, and synchronously plays the audio with the master earphone. In the use process of the TWS Bluetooth earphone, the master / slave roles of the two earphones can be switched. When the left earphone is the master earphone, the right earphone is the slave earphone; when the right earphone is the master earphone, the left earphone is the slave earphone. In addition, when the TWS Bluetooth earphone is placed in the earphone box and the box is closed, the Bluetooth connection established by the master earphone of the TWS Bluetooth earphone with the terminal device will be disconnected, and the Bluetooth connection between the master earphone and the slave earphone will also be disconnected.

[0062] The earphone box includes a bottom box, a cover, and is used for accommodating and charging the left earphone and the right earphone. It should be noted that the earphone box can detect whether the left and right earphones are in the earphone box, can detect the opening and closing state of the cover, and the like, and assist the left and right earphones to work based on this. For example, after the earphone box detects that the left and right earphones are both located inside the box and the cover of the earphone box is opened, the earphone box informs the main earphone and the auxiliary earphone of the opening event, so that the main earphone and the auxiliary earphone establish a Bluetooth connection. Or, when the earphone box detects that the left earphone or the right earphone is in the earphone box and the earphone box is in a closed state, the earphone inside is charged.

[0063] Figure 2 is a structural schematic diagram of a terminal device provided in an embodiment of the present application. The terminal device can include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charge management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a loudspeaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a key 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, and the like.

[0064] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In some other embodiments of the present application, the terminal device can include more or fewer components than the illustration, or combine certain components, or split certain components, or different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.

[0065] The processor 210 can include one or more processing units. For example, the processor 210 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated in one or more processors. The controller can be the nerve center and command center of the terminal device. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0066] The processor 210 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory can save instructions or data that the processor 210 has just used or repeatedly uses. If the processor 210 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 210, thereby improving the efficiency of the system.

[0067] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 210 through the external memory interface 220 to realize data storage functions. For example, files such as music and videos are saved in the external memory card.

[0068] The internal memory 221 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the terminal device by running the instructions stored in the internal memory 221. The internal memory 221 can include a program storage area and a data storage area. The program storage area can store an operating system and at least one application program required by a function (such as a sound playing function, an image playing function, etc.). The data storage area can store data created during the use of the terminal device (such as audio data, a phone book, etc.).

[0069] The USB interface 230 is an interface conforming to the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 230 can be used to connect a charger to charge the electronic device 200, and can also be used to transmit data between the electronic device 200 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0070] The charging management module 240 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 can receive charging input from a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 240 can receive wireless charging input through the wireless charging coil of the terminal device. The charging management module 240 can charge the battery 242 while also providing power to the electronic device through the power management module 241.

[0071] The power management module 241 is used to connect the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240 to provide power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, and the wireless communication module 260, etc. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle count, battery health status (leakage, impedance), etc.

[0072] In other embodiments, the power management module 241 can also be disposed in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 can also be disposed in the same device.

[0073] The wireless communication function of the terminal device can be realized through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, and the baseband processor, etc.

[0074] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.

[0075] The mobile communication module 250 can provide a solution for wireless communication, including 2G / 3G / 4G / 5G, etc., applied to the terminal device. The mobile communication module 250 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 250 can also amplify the signals modulated by the modem processor, and radiate the signals as electromagnetic waves through the antenna 1.

[0076] The wireless communication module 260 can provide a solution for wireless communication, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., applied to the terminal device.

[0077] The wireless communication module 260 can be one or more devices integrated with at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 can also receive signals to be transmitted from the processor 210, perform frequency modulation and amplification on the signals, and radiate the signals as electromagnetic waves through the antenna 2.

[0078] The terminal device can realize audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the earphone interface 270D, the application processor, etc.

[0079] The audio module 270 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio input into digital audio signals. The audio module 270 can also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be disposed in the processor 210, or part of the functions of the audio module 270 can be disposed in the processor 210.

[0080] The speaker 270A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals. The terminal device can listen to music or listen to a hands-free call through the speaker 270A, for example, the speaker can play the comparison and analysis result provided by the embodiments of the present application.

[0081] The receiver 270B, also called the earpiece, is used to convert the audio electrical signal into the sound signal. When the terminal device answers the phone or voice message, the user can listen to the voice by holding the receiver 270B close to the ear.

[0082] The microphone 270C, also called the microphone, the sound collector, is used to convert the sound signal into the electrical signal. When making a call or sending a voice message, the user can make a sound by holding the microphone 270C close to the mouth, and input the sound signal into the microphone 270C. The terminal device can be provided with at least one microphone 270C. In other embodiments, the terminal device can be provided with two microphones 270C, which can not only collect sound signals, but also achieve noise reduction functions. In other embodiments, the terminal device can also be provided with three, four or more microphones 270C, which can not only collect sound signals and reduce noise, but also identify the source of the sound and achieve directional recording functions.

[0083] The earphone interface 270D is used to connect the wired earphone. The earphone interface 270D can be a USB interface 230, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0084] The key 290 includes the power-on key, the volume key, etc. The key 290 can be a mechanical key. It can also be a touch key. The terminal device can receive the key input and generate the key signal input related to the user settings and function control of the terminal device.

[0085] The motor 291 can generate a vibration prompt. The motor 291 can be used for incoming call vibration prompt, and can also be used for touch vibration feedback. For example, the touch operation acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The touch operation acting on different regions of the display screen 294 can also correspond to different vibration feedback effects of the motor 291. Different application scenarios (such as time reminders, received messages, alarms, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0086] The indicator 292 can be an indicator light, which can be used to indicate the charging state, the power change, and can also be used to indicate the message, the missed call, the notification, etc.

[0087] The camera 293 is configured to capture still images or videos. An object projects an optical image through a lens to a photosensitive element. The photosensitive element converts the optical signal into an electrical signal, which is then passed to an ISP to convert into a digital image signal. In some embodiments, the terminal device can include one or N cameras 293, where N is a positive integer greater than 1.

[0088] The display screen 294 is configured to display images, videos, and the like. For example, the teaching videos and user action video in the embodiments of the present application, the display screen 294 includes a display panel. In some embodiments, the terminal device can include one or N display screens 294, where N is a positive integer greater than 1.

[0089] The SIM card interface 295 is configured to connect a SIM card. The SIM card can be inserted into or pulled out of the SIM card interface 295 to achieve contact and separation with the terminal device. The terminal device can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. The same SIM card interface 295 can simultaneously insert multiple cards. The types of the multiple cards can be the same or different. The SIM card interface 295 can also be compatible with different types of SIM cards. The SIM card interface 295 can also be compatible with external storage cards. The terminal device interacts with the network through the SIM card to achieve functions such as calling and data communication.

[0090] The above is a schematic structure of some Bluetooth devices (such as Bluetooth earphones and terminal devices) provided in the embodiments of the present application. Based on the hardware and software configurations of the Bluetooth devices, the Bluetooth devices can establish Bluetooth connections and achieve mutual Bluetooth communication according to user control.

[0091] After multiple Bluetooth devices establish Bluetooth connections, a Bluetooth communication system can be formed. The Bluetooth communication system is a small communication network, which can also be called a Piconet or a Piconet.

[0092] Figure 3 FIG. 1 is a schematic diagram of a structure of a Bluetooth communication system provided in the embodiments of the present application. The system includes a first Bluetooth device and at least one second Bluetooth device, where the first Bluetooth device and each second Bluetooth device are connected through Bluetooth.

[0093] In the Bluetooth communication system, the first Bluetooth device and the second Bluetooth device can work together to achieve some specific functions. For example, as shown in FIG. 2, when the first Bluetooth device is a TWS Bluetooth earphone and the second Bluetooth device is a mobile phone, the TWS Bluetooth earphone can assist the mobile phone in voice calling, recording, or audio playing. Figure 4A Figure 4B ​As shown, when the first Bluetooth device is a mobile phone and the second Bluetooth device is a Bluetooth speaker, the mobile phone can play audio of the mobile phone through the Bluetooth speaker.

[0094] Although one first Bluetooth device can connect to multiple second Bluetooth devices at the same time, the first Bluetooth device usually performs data transmission with one second Bluetooth device at the same time. For example Figure 5 As shown, the first Bluetooth device is a Bluetooth headset, the second Bluetooth device is a mobile phone, and the Bluetooth headset is connected to two mobile phones at the same time. In actual use, at the same time, the Bluetooth headset usually establishes a data transmission link with a target mobile phone to perform audio transmission. Among them, the target mobile phone is usually determined by the Bluetooth headset, for example, the Bluetooth headset can determine the target mobile phone according to the service priority arbitration of each mobile phone.

[0095] In order to ensure the communication security of the Bluetooth system, the first Bluetooth device and the second Bluetooth device need to be paired and bonded through BT when they are connected for the first time. The first connection includes the first connection after canceling pairing. In the first connection process, the target device for communication can be found and determined through pairing, that is, identity determination is realized. Through bonding, a long-term key (LTK) can be established between the two Bluetooth devices, so that when the two Bluetooth devices are connected again, the pairing and bonding related processes can be skipped, and the Bluetooth encrypted connection can be directly performed using the long-term key, thereby improving the connection speed and user experience.

[0096] The embodiment refers to the process of re-establishing Bluetooth connection between two Bluetooth devices after successful pairing and bonding as reconnection. In the process of establishing Bluetooth connection between two Bluetooth devices, for example, in the process of reconnection, the Bluetooth device that initiates the communication requirement is called the master device (Master), and the Bluetooth device that passively communicates is called the slave device (Slave). For example, in the process of the Bluetooth headset actively reconnecting the mobile phone after the Bluetooth headset is powered on, the Bluetooth headset is the master device and the mobile phone is the slave device.

[0097] In order to meet the data transmission requirements, the Bluetooth connection established between the two Bluetooth devices is usually a BT connection. Therefore, in the process of reconnection, the Bluetooth device usually needs to reconnect through BT to re-establish the Bluetooth connection.

[0098] Figure 6 The figure is a reconnection process diagram of the Bluetooth device provided by an embodiment of the present application. The process takes the TWS Bluetooth headset actively reconnecting the mobile phone as an example to exemplarily illustrate the reconnection process of the Bluetooth device. Moreover, the following S601-S604 are all based on BT.

[0099] S601, the TWS Bluetooth headset sends a paging message Page to the mobile phone.

[0100] In the embodiment, the paging message is an identification (ID) package carrying a device access code (DAC) of the mobile phone, which is used to request to establish a Bluetooth connection with the mobile phone.

[0101] When the Bluetooth function of the TWS Bluetooth earphone is turned on and no connection is established with other Bluetooth devices, the TWS Bluetooth earphone enters a paging state until the paging timeout or the paging success. For example, the TWS Bluetooth earphone enters the paging state after the earphone box is opened. Or, the TWS Bluetooth earphone disconnects the connection with the mobile phone, but still keeps the Bluetooth function turned on, and enters the paging state. In the paging state, the TWS Bluetooth earphone can actively reconnect to the Bluetooth device that has been connected recently. In this example, based on the Bluetooth device that the Bluetooth earphone has been connected recently is the mobile phone, when the TWS Bluetooth earphone is in the paging state, it usually continuously frequency-hops to send the paging message on the 79 channels of BT, and selects a new frequency to send the paging message every 312.5us until the paging timeout or the paging success.

[0102] S602, the mobile phone returns a first slave page response after receiving the paging message.

[0103] In the embodiment, the first slave page response is an ID package carrying the DAC of the mobile phone.

[0104] After the mobile phone is powered on or the Bluetooth function is started, the mobile phone usually enters a paging scan state to scan the paging message. However, the mobile phone does not know whether there is an electronic device paging itself, so in order to save the power consumption of the device, the mobile phone does not continuously scan, but intermittently scans with a preset duty cycle.

[0105] In the embodiment, the duty cycle is the ratio of the paging scan window to the paging scan interval. The paging scan window refers to the duration of each scan, and the paging scan interval refers to the interval time between two adjacent scan processes. It can be understood that the greater the duty cycle, the higher the scanning efficiency, but the greater the power consumption of the device. For example, the preset scanning duty cycle of the mobile phone is “11.25ms / 1.28s”, wherein 11.25ms is the scanning time window and 37.5ms is the scanning time interval.

[0106] Since the paging message is broadcasted on 79 channels of BT in turn, the mobile phone needs to listen to the paging message on 79 channels in turn in the scanning process. For example, the mobile phone listens to the paging message of its own device with a new listening frequency, i.e., listens to a channel, in a paging scan window every interval of a paging scan interval according to a paging hopping sequence. At the same time, when the channel on which the Bluetooth headset transmits the paging message is the same as the channel on which the mobile phone listens, i.e., the Bluetooth headset and the mobile phone are at the same communication frequency, the mobile phone can receive the paging message. In response to the paging message, the mobile phone sends a first slave paging response to the Bluetooth headset.

[0107] S603, the Bluetooth headset sends a master paging response to the mobile phone.

[0108] In this embodiment, the master paging response is a frequency hopping spread (FHS) packet, which carries clock information and address information of the master device (i.e., the Bluetooth headset). The clock information is used for clock synchronization between the mobile phone and the Bluetooth headset, and the address information is used for the Bluetooth headset and the mobile phone to establish a Bluetooth connection.

[0109] S604, the mobile phone sends a second slave paging response to the Bluetooth headset.

[0110] In this embodiment, the second slave paging response is an ID packet carrying the DAC of the mobile phone.

[0111] Based on the above steps S601-S604, the Bluetooth headset and the mobile phone can establish an asynchronous connectionless (ACL). Based on the ACL connection, the Bluetooth headset and the mobile phone can interact with data. For example, the mobile phone can send audio to the Bluetooth headset for playing.

[0112] It should be noted that ACL is a connection technology supported by Bluetooth baseband, mainly used for transmission of packet data, such as audio transmission, etc. In addition, ACL technology is usually not used for transmission of voice (i.e., speech generated during a call), which is usually transmitted through synchronous connection oritened (SCO) technology.

[0113] After S601-S604, the Bluetooth earphone can also perform authentication encryption with the mobile phone and send power information to the mobile phone. After receiving the power information of the Bluetooth earphone, the Bluetooth module of the mobile phone can pass the power information to the one-key connection module of the mobile phone through an attention (AT) command. The one-key connection module passes the power information to the audio management module. The audio management module controls the mobile phone to display the power information. For example, when the Bluetooth earphone is a TWS Bluetooth earphone, the power information can include the power information of the earphone box, the power information of the left earphone, and the power information of the right earphone, and the embodiment is not limited in this regard.

[0114] However, in the above-mentioned back connection process of the Bluetooth device, the master device (such as the Bluetooth earphone) pings the slave device (such as the mobile phone) through frequency hopping of 79 channels of BT, and the slave device also scans the ping on 79 channels of BT with a preset duty cycle, and the ping can be successful when the two are in the same channel at the same time. Since the master device has more ping channels, and the preset duty cycle of the slave device is usually low, the ping process takes a long time, resulting in slow back connection speed of the Bluetooth device.

[0115] In addition, when the back connection speed of the Bluetooth device is slow, the display speed of related Bluetooth connection information (such as information indicating Bluetooth connection success, Bluetooth earphone power information, Bluetooth earphone model information, etc.) in the mobile phone and other electronic devices is slow, affecting the user experience.

[0116] Therefore, an embodiment of the present application provides a Bluetooth communication system. In the Bluetooth communication system, the first Bluetooth device (as a master device) can notify the second Bluetooth device (as a slave device) to increase the scan duty cycle of BT through BLE broadcast, thereby increasing the back connection speed of the two Bluetooth devices and improving the user experience.

[0117] The Bluetooth device communication system provided by the embodiment of the present application will be described in detail below.

[0118] Figure 7 is the working flowchart of the Bluetooth communication system provided by an embodiment of the present application, which relates to the process of back connection of the first Bluetooth device to the second Bluetooth device in the Bluetooth communication system. Specifically, it includes the following steps S701-S705.

[0119] S701, the first Bluetooth device sends an indication information through BLE and a ping message through BT.

[0120] In the embodiment, the ping message is used to request to back connect the second Bluetooth device, which is specifically described in S601, and will not be described here.

[0121] In this embodiment, the indication information is used to instruct the second Bluetooth device to increase the scan duty cycle of BT, usually carries the unique identification information of the first Bluetooth device and / or the second Bluetooth device, and can carry or not carry the second duty cycle (i.e. the duty cycle used by the second Bluetooth device). Exemplarily, the indication information is a BLE broadcast message, the unique identification information can be a device access code DAC, address information, etc., and the second duty cycle can be 11.25ms / 37.5ms.

[0122] In this embodiment, the first Bluetooth device can first send the indication information through BLE, and then send the paging message through BT; or can send the indication information through BLE and the paging message through BT at the same time. This embodiment does not limit this.

[0123] In this embodiment, the first Bluetooth device usually starts to send the indication information through BLE and the paging message through BT after detecting the first event. Exemplarily, the first event is that the Bluetooth function of the first Bluetooth device is successfully started. For example, the mobile phone automatically starts the Bluetooth function after booting, or starts the Bluetooth function according to the user's operation on the Bluetooth control. The TWS Bluetooth earphone automatically starts the Bluetooth function after the earphone box is opened. Wherein, the user's operation on the terminal device includes single click, double click, long press, voice control operation, air control operation, etc., and this embodiment does not limit this. Or, the first event is that the first Bluetooth device confirms that it needs to re-establish the Bluetooth connection after the Bluetooth connection with the second Bluetooth device is disconnected. For example, the TWS Bluetooth earphone and the mobile phone are normally communicating through Bluetooth, and the Bluetooth connection is suddenly disconnected because the signal strength is less than a threshold value, and the TWS Bluetooth earphone confirms that it needs to re-establish the Bluetooth connection.

[0124] S702, the BLE of the second Bluetooth device scans, and the BT scans with the first duty cycle.

[0125] After the Bluetooth function of the second Bluetooth device is turned on, both the BLE and the BT of the second Bluetooth device will enter the scanning state, and the second Bluetooth device usually scans the paging message based on BT. However, since the second Bluetooth device usually cannot perceive whether there is other Bluetooth device paging itself, its BT usually scans with a preset first duty cycle. In order to save device power consumption, the first duty cycle is usually low. Exemplarily, the first duty cycle is 11.25ms / 1.28s.

[0126] This embodiment does not limit the order of S701 and S702, for example, S701 can be executed by the first Bluetooth device first, and then S702 can be executed by the second Bluetooth device; or S702 can be executed by the second Bluetooth device first, and then S701 can be executed by the first Bluetooth device.

[0127] S703, after the second Bluetooth device detects the indication information via BLE scanning, it controls the BT to scan at a second duty cycle, wherein the second duty cycle is greater than the first duty cycle.

[0128] It should be noted that the second Bluetooth device receives indication information through scanning. Therefore, it can be understood that it can receive indication information not only from paired devices but also from other Bluetooth devices. Thus, to ensure the security of the second Bluetooth device, after detecting indication information via BLE scanning, it needs to identify the indication information based on the unique identifier (such as a DAC) carried within it. Only after successful identification can the second Bluetooth device control the BT to scan at a second duty cycle according to the indication information. The specifics are as follows.

[0129] In some embodiments, the indication information carries unique identification information of the first Bluetooth device, such as a first DAC. Based on this, after receiving the indication information, the second Bluetooth device determines whether the first Bluetooth device and the second Bluetooth device have been paired according to the unique identification information. If the first Bluetooth device and the second Bluetooth device have been paired, it means that the two Bluetooth devices are mutually trusted devices, and the indication information identification is successful. Subsequently, the second Bluetooth device obtains a second duty cycle according to the indication information and controls the BT to scan at the second duty cycle.

[0130] In other embodiments, the indication information carries unique identification information of the second Bluetooth device, such as a second DAC. Since the second DAC is information that only trusted Bluetooth devices of the second Bluetooth device can obtain, the second Bluetooth device can directly obtain the second duty cycle based on the indication information after receiving it, and control the BT to scan at the second duty cycle.

[0131] Regarding the acquisition of the second duty cycle, in some embodiments, the indication information carries the second duty cycle. Based on this, after the second Bluetooth device scans the indication information via BLE, it obtains the second duty cycle from the indication information and controls the BT to scan with the second duty cycle. In other embodiments, the indication information does not carry the second duty cycle; the second duty cycle is pre-stored locally on the second Bluetooth device. Based on this, after the second Bluetooth device scans the indication information via BLE, it obtains the second duty cycle locally and controls the BT to scan with the second duty cycle.

[0132] S704: After the second Bluetooth device detects the paging message via BT scanning, it establishes a Bluetooth connection with the master device based on the paging message.

[0133] It should be noted that in this embodiment, the Bluetooth connection between the first Bluetooth device and the second Bluetooth device is referred to as the first Bluetooth connection. This first Bluetooth connection is a BT connection, and its establishment process is detailed above and will not be repeated here.

[0134] Regarding S703 to S704, it should be noted that when the first Bluetooth device first sends an indication message via BLE and then sends a paging message via BT, the second Bluetooth device typically executes S703 first, followed by S704. However, when the first Bluetooth device simultaneously sends an indication message via BLE and a paging message via BT in S701, it cannot be guaranteed whether the second Bluetooth device's BLE or BT will scan for the indication message first. It can be understood that if the second Bluetooth device scans for the indication message first, it can scan with a higher duty cycle throughout the reconnection process, thereby improving the reconnection speed. If the second Bluetooth device scans for the paging message first and then the indication message, its BT can scan with a higher duty cycle during the reconnection process after receiving the paging message (e.g., during the scanning of the master device's paging response), thus improving the reconnection speed to some extent.

[0135] Additionally, it's worth noting that BLE has three dedicated broadcast channels, and BLE transmits indication information through these channels. Therefore, the second Bluetooth device can quickly scan for the indication information via BLE, thereby rapidly increasing the BT's scanning duty cycle. In this scenario, regardless of whether the first Bluetooth device first sends the indication information via BLE and then sends a paging message via BT, or simultaneously sends the indication information via BLE and a paging message via BT, the second Bluetooth device will typically receive the indication information via BLE first, thus improving the BT's reconnection speed.

[0136] Of course, in some rare cases, the second Bluetooth device's BLE may scan the paging message before scanning the indication information. However, the second Bluetooth device can continue to increase the scanning duty cycle of the BT during subsequent paging processes (such as during the scanning of the master device's paging response) to increase the scanning rate during part of the reconnection process, thereby increasing the reconnection speed.

[0137] In S701 to S704 above, for example, when the first duty cycle is 11.25ms / 1.28s≈0.0088 and the second duty cycle is 11.25ms / 37.5ms≈0.3, the second duty cycle is approximately 34 times the first duty cycle. Since the second duty cycle is much larger than the first duty cycle, when the second Bluetooth device's BT is increased to scan using the second duty cycle, the second Bluetooth device can quickly scan for the paging message sent by the first Bluetooth device during the reconnection process, enabling the two Bluetooth devices to quickly establish a Bluetooth connection.

[0138] S705, the second Bluetooth device's BT recovery scans with the first duty cycle.

[0139] Because the second duty cycle is large, the power consumption of the second Bluetooth device is high when the BT scans with the second duty cycle. Therefore, in order to save power consumption, the second Bluetooth device can control the BT to resume scanning with the first duty cycle after establishing a Bluetooth connection with the first Bluetooth device.

[0140] In summary, in this embodiment, when the first Bluetooth device reconnects to the second Bluetooth device, it can send an instruction message via BLE to instruct the second Bluetooth device to increase the scanning duty cycle of BT, thereby increasing the rate at which the second Bluetooth device scans relevant information (such as paging messages and other relevant information) during the reconnection process, improving the reconnection speed, and enhancing the user experience.

[0141] It should be noted that in some other embodiments, when the first Bluetooth device includes two BT modules, the first Bluetooth device can also send indication information and paging messages in parallel through the BT. In this scheme, since the process of the first Bluetooth device sending indication information through the BT does not affect the process of reconnecting to the second Bluetooth device through the BT, and the second Bluetooth device can also scan for the indication information through the BT during the reconnection process, and increase the scanning duty cycle of the BT according to the indication information, this method can also improve the reconnection speed of the first Bluetooth device and the second Bluetooth device to a certain extent.

[0142] The following example illustrates the process of the first Bluetooth device reconnecting to the second Bluetooth device in the aforementioned Bluetooth communication system. The first Bluetooth device is a TWS Bluetooth headset, the second Bluetooth device is a mobile phone, and the first Bluetooth device sends an instruction message via BLE and a paging message via BT to reconnect to the second Bluetooth device.

[0143] TWS Bluetooth earbuds consist of a main earbud and a secondary earbud, both of which support BT&BLE dual-mode Bluetooth. The main earbud can connect to the phone independently or with the assistance of the secondary earbud. Details are shown below.

[0144] Example 1: Main earphone reconnects to the phone independently

[0145] Figure 8 This is a flowchart of a Bluetooth device reconnection method provided in one embodiment of this application. The method involves the process of the main earpiece reconnecting to the mobile phone independently, specifically including the following steps S801 to S812.

[0146] S801, the mobile phone uses BLE and BT for scanning, where the BT scanning duty cycle is the first duty cycle scanning.

[0147] For example, the first duty cycle is 11.25ms / 1.28s.

[0148] S802~S803 After detecting the first event, the main earpiece sends an instruction message to the mobile phone via BLE within a preset time.

[0149] In some embodiments, the first event is the activation of Bluetooth functionality after the TWS Bluetooth earbuds are opened. As described above, the TWS Bluetooth earbuds' charging case can detect the opening and closing state of the lid. When the charging case detects that the lid has changed from a closed state to an open state, it confirms that an opening event has occurred and actively notifies the primary and secondary earbuds of the event. After receiving the opening event, the primary and secondary earbuds activate Bluetooth functionality and establish a Bluetooth connection, which is referred to as the second Bluetooth connection in this embodiment.

[0150] In some embodiments, the indication information is a BLE broadcast message carrying the phone's unique identifier and a second duty cycle, used to instruct the phone to perform a BT scan at the second duty cycle. For example, the second duty cycle is 11.25ms / 37.5ms. It is understood that because the indication information carries the phone's unique identifier, only that phone will switch to scanning at the second duty cycle according to the indication information, and it will not affect other electronic devices.

[0151] In addition, the preset time for the main earpiece to send the instruction information can be 20ms, 50ms, 100ms, etc., and this embodiment does not limit this. In order to avoid the mobile phone sending the instruction information for a long time and affecting the reconnection speed, when the host stops sending the instruction information after the preset time expires, it jumps to execute S808~S809 to page the mobile phone.

[0152] In S804 to S806, after the BLE of the mobile phone scans the instruction information, it sends a response information to the main headset and sends the instruction information to the BT.

[0153] In this embodiment, the response information sent by the mobile phone via BLE can also be a BLE broadcast, which is used to indicate to the TWS Bluetooth headset that the mobile phone has received the indication information.

[0154] Furthermore, this embodiment does not restrict the order in which the mobile phone executes S805 and S806. For example, the mobile phone can execute S805 first and then S806, or it can execute S806 first and then S805.

[0155] In S807, after receiving the instruction information, the BT of the mobile phone increases the scanning duty cycle from the first duty cycle to the second duty cycle.

[0156] For example, after receiving the instruction information sent by BLE, the BT of the mobile phone increases the scan duty cycle from 11.25ms / 1.28s to 11.25ms / 37.5ms S807.

[0157] S808: After the preset time has elapsed or after receiving a response message from the mobile phone, the BLE of the main earpiece sends a paging notification to the BT of the main earpiece. This paging notification is used to notify the BT to page the mobile phone.

[0158] S809, the main earpiece's BT sends a paging message to the mobile phone.

[0159] In steps S810-S811, after the mobile phone's Bluetooth receives a paging message based on the second duty cycle scan, it establishes a Bluetooth connection with the Bluetooth headset according to the paging message. This Bluetooth connection is a Bluetooth connection, and its establishment process is detailed in steps S601-S604, which will not be repeated here in this embodiment.

[0160] S812, the phone's BT recovery scans with the first duty cycle.

[0161] In this embodiment, the master earpiece first instructs the mobile phone to increase the scanning duty cycle of the Bluetooth BT via BLE broadcast, and then reconnects to the mobile phone via the BT, independently achieving fast reconnection. Although the master earpiece performs an additional step of "instructing the mobile phone to increase the scanning duty cycle of the BT via BLE" compared to the traditional BT reconnection process, this instruction process is broadcast on three dedicated BLE broadcast channels, consuming very little time. Furthermore, after the mobile phone increases the scanning duty cycle of the BT, the reconnection time is significantly reduced. Therefore, from an overall perspective, the method provided in this embodiment can significantly improve the reconnection speed of Bluetooth devices.

[0162] Example 2: The main earphone reconnects to the phone with the assistance of the secondary earphone.

[0163] Figure 9 This is a flowchart of a Bluetooth device reconnection method according to another embodiment of this application. The method involves the process of a primary earpiece reconnecting to a mobile phone with the assistance of a secondary earpiece. Specifically, the method includes the following steps S901 to S911.

[0164] The S901 uses BLE and BT for scanning, with BT scanning using the first duty cycle.

[0165] For example, the first duty cycle is 11.25ms / 1.28s.

[0166] S902~S903: After detecting the first event, the main earphone reconnects to the secondary earphone and establishes a Bluetooth connection with it.

[0167] In this embodiment, the Bluetooth connection established between the main earphone and the secondary earphone is typically a Bluetooth connection, but it can also be a BLE connection; this embodiment does not impose any restrictions on this. After the main earphone and the secondary earphone establish a Bluetooth connection, they can send information to each other via the Bluetooth link. Furthermore, the specific details of the first event are described in S802 and will not be repeated here.

[0168] The S904's secondary earpiece sends instruction messages to the mobile phone via BLE within a preset time.

[0169] The specific instructions are detailed above and will not be repeated here. Additionally, the preset time can be, for example, 1000ms, 2000ms, etc., and this embodiment does not impose any limitations on it. After the preset time has elapsed, the secondary earpiece automatically stops sending instructions.

[0170] Optionally, the secondary earpiece can also send instruction information to the mobile phone via BLE according to the instructions of the primary earpiece.

[0171] S905, the main earpiece sends paging messages to the mobile phone via BT.

[0172] In this embodiment, the main earpiece and the secondary earpiece execute S904 and S905 in parallel. That is, while the secondary earpiece instructs the mobile phone to increase the scanning duty cycle of BT through BLE broadcast, the mobile phone performs paging and other operations normally during the reconnection process.

[0173] In S906 to S907, after scanning the instruction information, the BLE of the mobile phone sends the instruction information to the BT of the mobile phone.

[0174] In the S908, the phone's BitTorrent (BT) increases the scanning duty cycle from the first duty cycle to the second duty cycle.

[0175] In steps S909-S910, after scanning the paging message, the mobile phone's Bluetooth establishes a Bluetooth connection with the main headset based on the paging message. See steps S601-S604 for details, which will not be repeated here.

[0176] For S904 to S910, it should be noted that since TWS Bluetooth headsets send indication information via BLE and paging messages via BT in parallel, theoretically, during the scanning process with the first duty cycle, the phone may scan the indication information first or the paging message first. However, in actual scanning, since there are only three BLE broadcast channels for sending indication information, while there are as many as 79 BT channels for sending paging messages, the phone will usually scan the indication information first and then perform subsequent operations to increase the BT scanning duty cycle based on the indication information in order to quickly scan the paging message. See the relevant descriptions in S703 to S704 for further details.

[0177] S911, the phone's BT recovery scans with the first duty cycle.

[0178] In this embodiment, the TWS Bluetooth earbuds simultaneously notify the mobile phone to increase the scanning duty cycle of the BitTorrent (BT) via BLE broadcast from the secondary earbud, while also reconnecting to the mobile phone via the BT of the primary earbud. Since the BLE broadcast message can be quickly scanned by the mobile phone, the phone can perform information scanning with a larger duty cycle during the reconnection process with the primary earbud, thus rapidly improving the reconnection speed.

[0179] With the development of Bluetooth technology, some first Bluetooth devices support dual connectivity, meaning they can connect to two second Bluetooth devices simultaneously. For a first Bluetooth device supporting dual connectivity, if it is paired with two of its most recently connected second Bluetooth devices, then after activating Bluetooth, the first Bluetooth device will sequentially reconnect to both second Bluetooth devices. For example, in... Figure 5 In this example, the TWS Bluetooth earbuds support simultaneous connection to both phone 1 and phone 2. After activating Bluetooth, if the earbuds are paired with both phone 1 and phone 2, they will sequentially reconnect to both phones. During this reconnection process, the earbuds can either reconnect to phone 1 first, then phone 2, or vice versa.

[0180] During the process of a first Bluetooth device serially reconnecting to multiple second Bluetooth devices, the first Bluetooth device can also use the reconnection method provided in the embodiments of this application. The difference is that the first Bluetooth device only needs to broadcast an indication message once to notify each second Bluetooth device to increase its scanning duty cycle, thereby increasing the speed at which the first Bluetooth device reconnects to each second Bluetooth device, and thus improving the overall reconnection speed of the serial reconnection.

[0181] The following example uses a TWS Bluetooth headset as the first Bluetooth device and two second Bluetooth devices, mobile phone 1 and mobile phone 2, to explain in detail the process of the TWS Bluetooth headset quickly serially reconnecting to mobile phone 1 and mobile phone 2.

[0182] Figure 10 This is a flowchart of a Bluetooth device reconnection method provided in another embodiment of this application, involving the process of TWS Bluetooth headset serially reconnecting to mobile phone 1 and mobile phone 2, specifically including the following steps S1000 to S1008.

[0183] S1000, a TWS Bluetooth headset based on BLE, connects back to phone 1.

[0184] The reconnection process between the TWS Bluetooth earbuds and phone 1 can be found in [link / reference]. Figure 8 or Figure 9 This will not be elaborated upon here.

[0185] It should be noted that during the serial reconnection process, the TWS Bluetooth headset sends an instruction message to both mobile phone 1 and mobile phone 2 via BLE broadcast. This instruction message can simultaneously instruct mobile phone 1 and mobile phone 2 to increase the scanning duty cycle of the BitTorrent (BT). For example, this instruction message can simultaneously carry the unique identification information of mobile phone 1 and mobile phone 2. After receiving this instruction message, both mobile phone 1 and mobile phone 2 can increase the scanning duty cycle of the BT. Alternatively, the instruction message can carry the unique identification information of the TWS Bluetooth headset. After each Bluetooth device (including mobile phone 1 and mobile phone 2) receives this instruction message and confirms that the instruction message comes from a paired device (such as the TWS Bluetooth headset), it increases the scanning duty cycle of the BT according to the instruction message.

[0186] S1001, Mobile Phone 2 uses BLE and BT for scanning, where the BT scanning duty cycle is the first duty cycle scan.

[0187] S1002~S1003, after scanning the instruction information, the BLE of mobile phone 2 sends the instruction information to the BT of mobile phone 2.

[0188] S1004, after receiving the instruction information, the BT of mobile phone 2 scans at a second duty cycle. The second duty cycle is greater than the first duty cycle.

[0189] S1005, the TWS Bluetooth headset sends a paging message via BT, which is used to page mobile phone 2.

[0190] S1006~S1007, after scanning the paging message based on the second duty cycle, the BT of mobile phone 2 establishes a Bluetooth connection with the main headset according to the paging message.

[0191] S1008, the BT of mobile phone 2 is restored to scanning with the first duty cycle.

[0192] For details of S1002 to S1008, please refer to S906 to S911, which will not be repeated here.

[0193] In this embodiment, the TWS Bluetooth headset can simultaneously notify two mobile phones to increase the scanning duty cycle of BT (BitTorrent Scanning) based on a single BLE broadcast. Furthermore, the second mobile phone, which reconnects later, can also increase its BT scanning duty cycle before being paged by the TWS Bluetooth headset, further improving the reconnection speed. Experimental data shows that when the main headset, with the assistance of the secondary headset, serially reconnects to mobile phones 1 and 2, the overall reconnection speed of the two devices can be reduced from the current average of approximately 2000ms to an average of approximately 400ms, demonstrating a significant speed improvement.

[0194] It should be noted that the process of the first Bluetooth device serially connecting back to two second Bluetooth devices can also be extended to the process of serially connecting back to three or more second Bluetooth devices. This embodiment does not impose any restrictions on this.

[0195] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0196] Based on the same concept, as an implementation of the above method, the embodiments of this application also provide the following content.

[0197] This application also provides a Bluetooth device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the methods performed by the first Bluetooth device or the second Bluetooth device in the above embodiments.

[0198] This application also provides a chip, see [link to relevant documentation] Figure 11 As shown, the chip includes a processor and a memory, in which a computer program is stored. When the computer program is executed by the processor, it implements the methods performed by the first Bluetooth device or the second Bluetooth device in the above embodiments.

[0199] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods performed by the first Bluetooth device or the second Bluetooth device provided in the above embodiments.

[0200] This application also provides a computer program product, which includes a computer program that, when run by an electronic device, causes the electronic device to implement the methods executed by the first Bluetooth device or the second Bluetooth device provided in the above embodiments.

[0201] It should be understood that the processor mentioned in the embodiments of this application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0202] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0203] In the embodiments provided in this application, the division of each framework or module is merely a logical functional division. In actual implementation, there may be other division methods. For example, multiple frameworks or modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0204] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0205] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0206] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A Bluetooth communication system, characterized in that, comprising a first Bluetooth device and a second Bluetooth device which are paired, the first Bluetooth device is configured to: send indication information through Bluetooth low energy, and send a paging message through classic Bluetooth; wherein the indication information is used to instruct the second Bluetooth device to increase the scan duty cycle of classic Bluetooth, and the paging message is used to request to reconnect the second Bluetooth device; the second Bluetooth device is configured to: scan through Bluetooth low energy, and scan through classic Bluetooth at a first duty cycle; after scanning the indication information through Bluetooth low energy, control classic Bluetooth to scan at a second duty cycle, the second duty cycle being greater than the first duty cycle; after scanning the paging message through classic Bluetooth, establish a first Bluetooth connection with the first Bluetooth device.

2. The system of claim 1, wherein, the first Bluetooth device is configured to: send indication information through Bluetooth low energy, and send a paging message through classic Bluetooth, comprising: the first Bluetooth device is configured to: in response to a first event, send the indication information through Bluetooth low energy within a preset time; after the preset time is exceeded or a response information is received, send the paging message through classic Bluetooth; wherein the response information is used to indicate that the second Bluetooth device has received the indication information.

3. The system of claim 1, wherein, the first Bluetooth device comprises a first Bluetooth module and a second Bluetooth module, and the first Bluetooth device is configured to: send indication information through Bluetooth low energy, and send a paging message through classic Bluetooth, comprising: the first Bluetooth module is configured to: send the paging message through classic Bluetooth; the second Bluetooth module is configured to: send the indication information through Bluetooth low energy.

4. The system of claim 3, wherein, the first Bluetooth module and the second Bluetooth module are further configured to: in response to a first event, the first Bluetooth module and the second Bluetooth module establish a second Bluetooth connection.

5. The system of claim 4, wherein the first Bluetooth module is further configured to: instruct the second Bluetooth module to send the indication information through the second Bluetooth connection.

6. The system according to any one of claims 3 to 5, characterized in that the first Bluetooth device is a true wireless stereo (TWS) earphone, and the TWS earphone comprises a master earphone and a slave earphone, the master earphone comprises the first Bluetooth module, and the slave earphone comprises the second Bluetooth module.

7. The system of claim 2, 4 or 5, wherein, the first event is: the Bluetooth function of the first Bluetooth device is successfully started; or after the Bluetooth connection between the first Bluetooth device and the second Bluetooth device is disconnected, it is confirmed that the Bluetooth connection needs to be re-established.

8. The system according to any one of claims 1 to 7, characterized in that the second Bluetooth device is further configured to: after the first Bluetooth connection is successfully established, the classic Bluetooth of the second Bluetooth device resumes to scan at the first duty cycle.

9. The system according to any one of claims 1 to 8, characterized in that the second duty cycle is 11.25 ms / 37.5 ms, wherein 11.25 ms is a scan time window, and 37.5 ms is a scan time interval.

10. A method of reconnection of a Bluetooth device, characterized in that, the method is applied to a first Bluetooth device and a second Bluetooth device which are paired, and the method comprises: The first Bluetooth device sends indication information through Bluetooth low energy and sends a paging message through classic Bluetooth; wherein the indication information is used to instruct the second Bluetooth device to increase the scan duty cycle of classic Bluetooth, and the paging message is used to request to reconnect the second Bluetooth device; The second Bluetooth device scans through Bluetooth low energy and scans through classic Bluetooth at a first duty cycle; The second Bluetooth device scans through classic Bluetooth at a second duty cycle after scanning the indication information through Bluetooth low energy; wherein the second duty cycle is greater than the first duty cycle; The second Bluetooth device establishes a first Bluetooth connection with the first Bluetooth device after scanning the paging message through classic Bluetooth.

11. The method of claim 10, wherein, The first Bluetooth device sends indication information through Bluetooth low energy and sends a paging message through classic Bluetooth, comprising: The first Bluetooth device sends the indication information within a preset time in response to a first event; The first Bluetooth device sends the paging message after exceeding the preset time or receiving a response information; wherein the response information is used to indicate that the second Bluetooth device has received the indication information.

12. The method of claim 10, wherein, The first Bluetooth device comprises a first Bluetooth module and a second Bluetooth module, and accordingly, the first Bluetooth device sends indication information through Bluetooth low energy and sends a paging message through classic Bluetooth, comprising: The first Bluetooth module sends the paging message through classic Bluetooth; The second Bluetooth module sends the indication information through Bluetooth low energy.

13. The method of claim 12, wherein, The method further comprises: In response to a first event, the first Bluetooth module establishes a second Bluetooth connection with the second Bluetooth module.

14. The method of claim 13, wherein, The method further comprises: The first Bluetooth module instructs the second Bluetooth module to send the indication information through the second Bluetooth connection.

15. The method according to any one of claims 12 to 14, characterized in that, The first Bluetooth device is a true wireless stereo (TWS) earphone, the TWS earphone comprises a master earphone and a slave earphone, the master earphone comprises the first Bluetooth module, and the slave earphone comprises the second Bluetooth module.

16. The method of claim 11, 13 or 14, wherein, The first event is: The Bluetooth function of the first Bluetooth device is successfully started; or After the Bluetooth connection between the first Bluetooth device and the second Bluetooth device is disconnected, it is confirmed that the Bluetooth connection needs to be re-established.

17. The method according to any one of claims 10 to 16, characterized in that, The method further comprises: After the first Bluetooth connection is successfully established, the classic Bluetooth of the second Bluetooth device resumes to scan at the first duty cycle.

18. The method according to any one of claims 10 to 17, characterized in that, The second duty cycle is 11.25ms / 37.5ms, wherein 11.25ms is a scan time window, and 37.5ms is a scan time interval.

19. A Bluetooth device, characterized in that A computer program product comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method performed by the first Bluetooth device or the second Bluetooth device in any one of claims 10-18 when executing the computer program.

20. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to implement the method performed by the first Bluetooth device or the second Bluetooth device in any one of claims 10-18.

21. A chip, characterized by The chip comprises a processor and a memory, the memory stores a computer program, and the computer program is executed by the processor to implement the method executed by the first Bluetooth device or the second Bluetooth device in any one of claims 10-18.

Citation Information

Patent Citations

  • Bluetooth connection control method, system and equipment

    CN116056051A

  • Bluetooth connection method, device and system

    CN116074986A

Cited By

  • Bluetooth communication system, reconnection method, bluetooth device, storage medium, and chip

    WO2025044345A1