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

By using Bluetooth Low Energy to send instructions in Bluetooth devices to improve the scanning duty cycle of classic Bluetooth and send paging messages through classic Bluetooth, the problem of slow back connection speed of Bluetooth devices is solved, achieving faster back connection speed and better user experience.

WO2025044345A1PCT designated stage expired Publication Date: 2025-03-06HUAWEI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/096179
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-06
Filing Date
2024-05-29
Publication Date
2025-03-06

AI Technical Summary

Technical Problem

Existing Bluetooth devices are slow during the connection process, which affects the user experience.

Method used

Indication information is sent through Bluetooth Low Energy, the second Bluetooth device is instructed to increase the scanning duty cycle of classic Bluetooth, and a paging message is sent through classic Bluetooth to request a return connection.

Benefits of technology

Improves the speed and efficiency of Bluetooth device connection and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024096179_06032025_PF_FP_ABST
    Figure CN2024096179_06032025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a Bluetooth communication system, a reconnection method, a Bluetooth device, a storage medium, and a chip, relating to the technical field of communications. The system comprises a first Bluetooth device and a second Bluetooth device that have been paired. The first Bluetooth device is configured to: send instruction information by means of low-power Bluetooth and send a paging message by means of classic Bluetooth, the instruction information being used for instructing the second Bluetooth device to increase a scanning duty cycle of the classic Bluetooth, and the paging message being used for requesting to reconnect to the second Bluetooth device. The second Bluetooth device is configured to: scan by means of the low-power Bluetooth, and scan by means of the classic Bluetooth at a first duty cycle; when the instruction information has been scanned by means of the low-power Bluetooth, control the classic Bluetooth to scan at a second duty cycle, the second duty cycle being greater than the first duty cycle; and when the paging message has been scanned by means of the classic Bluetooth, establish a first Bluetooth connection with the first Bluetooth device. The technical solution provided by the present application can increase the Bluetooth reconnection speed and can achieve a good user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Bluetooth communication system, backconnection method, Bluetooth device, storage medium and chip

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on August 29, 2023, with application number 202311103578.5 and application name “Bluetooth communication system, backconnection method, Bluetooth device, storage medium and chip”, and claims priority to the Chinese patent application filed with the State Intellectual Property Office on September 6, 2023, with application number 202311161653.3 and application name “Bluetooth communication system, backconnection method, Bluetooth device, storage medium and chip”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a Bluetooth communication system, a backconnection method, a Bluetooth device, a storage medium, and a chip. Background Art

[0003] Bluetooth is a mature short-range wireless communication technology widely used in various Bluetooth devices, such as Bluetooth headsets and mobile phones. Bluetooth includes Classic Bluetooth and Bluetooth Low Energy. Currently, two paired Bluetooth devices can reconnect directly via Classic Bluetooth after activating Bluetooth, without the need for further pairing. For example, a Bluetooth headset can directly connect to the most recently connected electronic device, such as a mobile phone, after being powered on. However, the reconnection process can be slow, impacting the user experience.

[0004] Summary of the Invention

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

[0006] To achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, the present application provides a Bluetooth communication system, which includes a paired first Bluetooth device and a second Bluetooth device. The first Bluetooth device is configured to: send an indication message via low-power Bluetooth and send a paging message via classic Bluetooth; the indication message is used to instruct the second Bluetooth device to increase the scanning duty cycle of classic Bluetooth, and the paging message is used to request to reconnect to the second Bluetooth device. The second Bluetooth device is configured to: scan via low-power Bluetooth and scan via classic Bluetooth with a first duty cycle; after scanning the indication message via low-power Bluetooth, control the classic Bluetooth to scan with a second duty cycle, the second duty cycle being greater than the first duty cycle; and, after scanning the paging message via classic Bluetooth, establish a first Bluetooth connection with the first Bluetooth device.

[0008] In the Bluetooth communication system provided in the present application, when the first Bluetooth device reconnects to the second Bluetooth device, it can quickly instruct the second Bluetooth device to increase the scanning duty cycle of classic Bluetooth through low-power Bluetooth, thereby increasing the rate at which the second Bluetooth device scans information during the classic Bluetooth reconnection process, improving the reconnection speed and user experience.

[0009] In some embodiments, the first Bluetooth device is configured to: send an indication message via Bluetooth LE and send a paging message via Classic Bluetooth, including: in response to a first event, sending an indication message via Bluetooth LE within a preset time; and, after the preset time has expired or a response message has been received, sending a paging message via Classic Bluetooth; wherein the response message is used to indicate that the second Bluetooth device has received the indication message. In this embodiment, the first Bluetooth device first quickly instructs the second Bluetooth device via Bluetooth LE to increase the scan duty cycle of Classic Bluetooth, and then connects to the second Bluetooth device via Classic Bluetooth paging, independently achieving fast reconnection using a single Bluetooth module. The Bluetooth module supports both Classic Bluetooth and Bluetooth LE.

[0010] It should be noted that although the first Bluetooth device performs the additional step of "instructing the second Bluetooth device to increase the scan duty cycle of Classic Bluetooth via Bluetooth Low Energy" compared to the traditional reconnection process, which increases the reconnection time, after the second Bluetooth device increases the scan duty cycle of Classic Bluetooth, it can significantly reduce the reconnection time during multiple interactions with the first Bluetooth device during the reconnection process. Therefore, from an overall perspective, the method provided in this embodiment can improve the reconnection speed of Bluetooth devices to a certain extent.

[0011] 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 indication information via low-power Bluetooth and send a paging message via classic Bluetooth, including:

[0012] The first Bluetooth module is configured to send a paging message via classic Bluetooth.

[0013] The second Bluetooth module is configured to send the indication information via Bluetooth low energy consumption.

[0014] In this embodiment, a first Bluetooth device connects back to a second Bluetooth device through the cooperation of a first Bluetooth module and a second Bluetooth module. Furthermore, during this process, the first Bluetooth device instructs the second Bluetooth device to increase the scan duty cycle of Classic Bluetooth via Bluetooth Low Energy and the process of connecting back to the second Bluetooth device via Classic Bluetooth occur in parallel, without interfering with each other. After the second Bluetooth device increases the scan duty cycle of Classic Bluetooth, the Classic Bluetooth of the second Bluetooth device can more efficiently scan for paging messages sent by the first Bluetooth device, thereby improving the reconnection speed of Classic Bluetooth.

[0015] In some embodiments, the first Bluetooth module and the second Bluetooth module are further configured to establish a second Bluetooth connection with the second Bluetooth module in response to the first event. The Bluetooth connection is typically a classic Bluetooth connection, but may also be a low-power Bluetooth connection, which is not limited in this embodiment.

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

[0017] It should be noted that the first Bluetooth module may also send the instruction information by default without the instruction of the first Bluetooth module; or the first Bluetooth module may be connected to the second Bluetooth module via a wired connection and instruct the second Bluetooth module to send the instruction information via the wired connection. This embodiment is not limited to this.

[0018] In some embodiments, the first Bluetooth device is a true wireless stereo TWS headset, the TWS headset includes a main headset and a slave headset, the main headset includes a first Bluetooth module, and the slave headset includes a second Bluetooth module.

[0019] In some embodiments, the first event is: the Bluetooth function of the first Bluetooth device is successfully activated, for example, the second Bluetooth device is turned on and automatically activates the Bluetooth function, or the first Bluetooth device activates the Bluetooth function according to the user's operation on the Bluetooth control.

[0020] In some embodiments, the first event is: after the Bluetooth connection between the first Bluetooth device and the second Bluetooth device is disconnected, the first Bluetooth device determines that the Bluetooth connection needs to be re-established. For example, the first Bluetooth device and the second Bluetooth device are automatically disconnected due to the distance between them becoming greater, resulting in the Bluetooth signal being less than a threshold, based on which the first Bluetooth device determines that the connection needs to be re-established.

[0021] In some embodiments, the second Bluetooth device is further configured to: after the first Bluetooth connection is successfully established, resume scanning with the first duty cycle using the classic Bluetooth of the second Bluetooth device to reduce power consumption of the second Bluetooth device.

[0022] In some embodiments, the second duty cycle is 11.25ms / 37.5ms, where 11.25ms is the scanning time window and 37.5ms is the scanning time interval. Of course, the second duty cycle can also be other data, which is not limited in this embodiment.

[0023] In second aspect, the present application provides a reconnection method for a Bluetooth device, which is applied to a paired first Bluetooth device and a second Bluetooth device, the method comprising: the first Bluetooth device sends an indication message via low-power Bluetooth and sends a paging message via classic Bluetooth; the indication message is used to instruct the second Bluetooth device to increase the scanning duty cycle of classic Bluetooth, and the paging message is used to request reconnection to the second Bluetooth device; the second Bluetooth device scans via low-power Bluetooth and scans via classic Bluetooth with a first duty cycle; after the second Bluetooth device scans the indication message via low-power Bluetooth, it controls the classic Bluetooth to scan with a second duty cycle; wherein the second duty cycle is greater than the first duty cycle; after the second Bluetooth device scans the paging message via classic Bluetooth, it establishes a first Bluetooth connection with the first Bluetooth device.

[0024] In some embodiments, the first Bluetooth device sends indication information via low-power Bluetooth and sends a paging message via classic Bluetooth, including: the first Bluetooth device sends indication information via low-power Bluetooth within a preset time in response to a first event; the first Bluetooth device sends a paging message via classic Bluetooth after the preset time has expired or after receiving a response message; wherein the response message is used to indicate that the second Bluetooth device has received the indication information.

[0025] In some embodiments, the first Bluetooth device includes a first Bluetooth module and a second Bluetooth module. Accordingly, the first Bluetooth device sends indication information via low-power Bluetooth and sends paging messages via classic Bluetooth, including: the first Bluetooth module sends paging messages via classic Bluetooth; the second Bluetooth module sends indication information via low-power Bluetooth.

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

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

[0028] In some embodiments, the first Bluetooth device is a true wireless stereo TWS headset, the TWS headset includes a main headset and a slave headset, the main headset includes a first Bluetooth module, and the slave headset includes a second Bluetooth module.

[0029] In some embodiments, the first event is: the Bluetooth function of the first Bluetooth device is successfully activated; 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.

[0030] In some embodiments, the method further includes: after the first Bluetooth connection with the first Bluetooth device is successfully established, the second Bluetooth device resumes scanning with the first duty cycle using the classic Bluetooth, thereby saving device power consumption.

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

[0032] In a third aspect, the present application provides a Bluetooth device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method as performed by the first Bluetooth device or the second Bluetooth device in the second aspect and its various embodiments is implemented.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the method performed by the first Bluetooth device or the second Bluetooth device in the second aspect and its various embodiments.

[0034] In a fifth aspect, the present application provides a chip, which includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method performed by the first Bluetooth device or the second Bluetooth device in the second aspect and its various embodiments is implemented.

[0035] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] FIG1 is a schematic structural diagram of a TWS headset provided in an embodiment of the present application;

[0037] FIG2 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0038] FIG3 is a schematic diagram of the structure of a Bluetooth communication system provided in an embodiment of the present application;

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

[0040] FIG4B is a schematic diagram of an application scenario of a Bluetooth communication system provided by another embodiment of the present application;

[0041] FIG5 is a schematic diagram of an application scenario of a Bluetooth communication system provided by another embodiment of the present application;

[0042] FIG6 is a schematic diagram of a reconnection process of a Bluetooth device provided by an embodiment of the present application;

[0043] FIG7 is a flowchart of a Bluetooth communication system according to an embodiment of the present application;

[0044] FIG8 is a flowchart of a method for reconnecting a Bluetooth device according to an embodiment of the present application;

[0045] FIG9 is a flowchart of a method for reconnecting a Bluetooth device according to another embodiment of the present application;

[0046] FIG10 is a flowchart of a method for reconnecting a Bluetooth device according to another embodiment of the present application;

[0047] FIG11 is a schematic diagram of the structure of the chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solutions provided in the embodiments of the present application are described below with reference to the accompanying drawings.

[0049] It should be understood that in the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0050] In this embodiment, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0051] Bluetooth is a short-range wireless communication technology that uses a specific frequency band (typically around 2.4GHz-2.485GHz) to transmit and receive electromagnetic waves, enabling communication between electronic devices. Currently, Bluetooth includes classic Bluetooth (BT) and Bluetooth low energy (BLE). The following describes each in detail.

[0052] (1) Classic Bluetooth

[0053] Classic Bluetooth (BT), also known as Bluetooth Basic Rate (BR) / Enhanced Data Rate (EDR), generally refers to Bluetooth versions prior to 3.0. BT offers a high data transfer rate, but it also suffers from issues like high power consumption and a short maximum transmission distance (approximately 10 meters). Therefore, BT is typically used for transmitting large amounts of data over short distances, such as from a phone to a Bluetooth headset or from a tablet to a Bluetooth speaker.

[0054] As shown in Table 1, BT has a total of 79 channels, and these channels are not divided into 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 Bluetooth channel can be understood as the frequency range used by the Bluetooth signal during 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 expansion of the spectrum by controlling the continuous hopping of the carrier frequency. Based on FHSS, BT divides the entire Bluetooth bandwidth into the above 79 channels. After the sender and receiver of the Bluetooth signal work on one channel for a period of time, they switch to another channel.

[0055] (2) Bluetooth Low Energy

[0056] Bluetooth Low Energy (BLE) generally refers to Bluetooth versions 4.0 and above. BLE has relatively low power consumption and a relatively long maximum transmission range (e.g., approximately 50 meters), but its data rate is low. For this reason, BLE is often used in electronic devices that require low power but not large data transmission, such as mice, keyboards, blood pressure monitors, and temperature sensors. Alternatively, it can assist Bluetooth, such as assisting with device discovery during Bluetooth connection establishment.

[0057] As shown in Table 1, BLE has a total of 40 channels, including 3 advertising channels and 37 data channels. Advertising channels are used exclusively for transmitting broadcast messages, while data channels are used for transmitting data (such as audio, images, and files). Like BT, BLE also uses FHSS for each channel. For details, see the previous section and will not be repeated here.

[0058] Table 1 Bluetooth channels

[0059] Bluetooth is widely used in various electronic devices due to its low power consumption, low cost, convenience, flexibility, security, and small hardware size. For ease of description, this embodiment refers to electronic devices equipped with Bluetooth as Bluetooth devices. In addition, based on the different Bluetooth technologies supported by the Bluetooth devices, Bluetooth devices are divided into BT single-mode devices, BLE single-mode devices, and BT&BLE dual-mode devices. Among them, BT single-mode devices only support classic Bluetooth, BLE single-mode devices only support low-power Bluetooth, and BT&BLE dual-mode devices support both classic Bluetooth and low-power Bluetooth.

[0060] In this embodiment, the Bluetooth device includes a Bluetooth headset and a terminal device. Among them, the terminal device can be a mobile phone, a tablet computer (Pad), a smart home device (such as a smart TV, a smart speaker, a sweeping robot, an air conditioner, etc.), a computer, a smart TV, a projector, a wearable device (such as a smart watch), a car 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 headset can be a true wireless stereo (TWS) headset or a neck-worn headset. The embodiment of the present application does not limit the specific type of Bluetooth device.

[0061] Figure 1 is a schematic diagram of the structure of a TWS headset provided in an embodiment of the present application. As shown in Figure 1, the TWS headset 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. When the user needs to use the Bluetooth headset, the left earphone and / or the right earphone can be taken out of the earphone box for use.

[0062] The left earphone and the right earphone both include a shell and internal components, and the internal components are arranged in the cavity formed by the shell. Exemplarily, the internal components may include an audio module, a Bluetooth module, and a power module. The operating modes of the left earphone and the right earphone include monaural mode and binaural mode. In monaural mode, the left earphone or the right earphone is taken out of the earphone case alone, and a Bluetooth connection is established with other Bluetooth devices to receive and play audio. In binaural mode, both the left earphone and the right earphone are taken out of the earphone case, one of the earphones acts as the main earphone to connect to other electronic devices, receive and play audio; the other acts as the slave earphone to assist the main earphone, and establishes a Bluetooth connection with the main earphone to receive audio sent by the main earphone, or monitor audio sent to the main earphone by other electronic devices (such as a mobile phone), and play the audio synchronously with the main earphone. In the use of the TWS Bluetooth headset, the master / slave roles of the two earphones can be switched. When the left earphone is the main earphone, the right earphone is the slave earphone; when the right earphone is the main earphone, the left earphone is the slave earphone. In addition, when the TWS Bluetooth headset is placed in the headset box and the box is closed, the Bluetooth connection established between the main headset of the TWS Bluetooth headset and the terminal device will be disconnected, and the Bluetooth connection between the main headset and the secondary headset will also be disconnected.

[0063] The earphone box includes a bottom box and a lid, which is used to store the left earphone and the right earphone and charge them. It should be noted that the earphone box can detect whether the left and right earphones are in the earphone box, and can detect the opening and closing status of the lid, etc., and based on this, assist the left and right earphones to work. For example, after the earphone box detects that both the left and right earphones are inside the box and the lid of the earphone box is opened, it notifies the main earphone and the secondary earphone of the lid opening event so that the main earphone and the secondary earphone establish a Bluetooth connection. Alternatively, 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, it charges the earphone inside.

[0064] Figure 2 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. The terminal device may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging 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 speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display 294, and a subscriber identification module (SIM) card interface 295.

[0065] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0066] The processor 210 may include one or more processing units. For example, the processor 210 may 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). Different processing units may be independent devices or integrated into one or more processors. The controller may be the nerve center and command center of the terminal device. The controller may generate an operation control signal based on the instruction opcode and timing signal to complete the control of instruction fetching and execution.

[0067] Processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 210. If processor 210 needs to use the same instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 210 latency, and thus improves system efficiency.

[0068] 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 via the external memory interface 220 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0069] The internal memory 221 can be used to store computer executable program code, which includes 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 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.). The data storage area may store data created during the use of the terminal device (such as audio data, a phone book, etc.).

[0070] USB interface 230 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 230 can be used to connect a charger to charge electronic device 200, or to transfer data between electronic device 200 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.

[0071] The charging management module 240 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 can receive charging input from the wired charger via the USB interface 230. In some wireless charging embodiments, the charging management module 240 can receive wireless charging input via the wireless charging coil of the terminal device. While charging the battery 242, the charging management module 240 can also power the electronic device through the power management module 241.

[0072] 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 and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, and the wireless communication module 260. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance), etc.

[0073] In some other embodiments, the power management module 241 may also be provided in the processor 210. In some other embodiments, the power management module 241 and the charging management module 240 may also be provided in the same device.

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

[0075] Antenna 1 and 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 reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0076] Mobile communication module 250 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for terminal devices. It can include at least one filter, switch, power amplifier, and low-noise amplifier (LNA). Mobile communication module 250 receives electromagnetic waves from antenna 1, filters and amplifies them, and transmits them to the modem processor for demodulation. Mobile communication module 250 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via antenna 1.

[0077] The wireless communication module 260 can provide wireless communication solutions applied to terminal devices, 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 technology (NFC), infrared technology (IR), etc.

[0078] Wireless communication module 260 can be one or more devices that integrate at least one communication processing module. Wireless communication module 260 receives electromagnetic waves via antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to processor 210. Wireless communication module 260 can also receive signals to be transmitted from processor 210, frequency-modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.

[0079] The terminal device can implement audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor.

[0080] 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 provided in the processor 210, or some functional modules of the audio module 270 can be provided in the processor 210.

[0081] Speaker 270A, also known as a "horn," is used to convert audio electrical signals into sound signals. The terminal device can listen to music or listen to hands-free calls through speaker 270A. For example, the speaker can play the comparison analysis results provided in the embodiments of the present application.

[0082] The receiver 270B, also called a "handset", is used to convert audio electrical signals into sound signals. When the terminal device receives a call or voice message, the voice can be heard by placing the receiver 270B close to the human ear.

[0083] Microphone 270C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 270C to 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 realize noise reduction function. In other embodiments, the terminal device can also be provided with three, four or more microphones 270C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.

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

[0085] Keys 290 include a power button, a volume button, and the like. Keys 290 may be mechanical keys or touch-sensitive keys. The terminal device may receive key inputs and generate key signal inputs related to user settings and function control of the terminal device.

[0086] Motor 291 can generate vibration prompts. Motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 294, motor 291 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0087] The indicator 292 may be an indicator light, which may be used to indicate the charging status, power level change, messages, missed calls, notifications, etc.

[0088] Camera 293 is used to capture still images or video. The lens generates an optical image of an object and projects it onto a photosensitive element. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. In some embodiments, the terminal device may include one or N cameras 293, where N is a positive integer greater than one.

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

[0090] SIM card interface 295 is used to connect a SIM card. A SIM card can be connected to and disconnected from the terminal device by inserting or removing it from the SIM card interface 295. The terminal device can support one or N SIM card interfaces, where N is a positive integer greater than one. SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 295 simultaneously. The multiple cards can be of the same or different types. SIM card interface 295 is also compatible with different types of SIM cards. SIM card interface 295 is also compatible with external memory cards. The terminal device interacts with the network through the SIM card to implement functions such as calls and data communications.

[0091] The above is a schematic structure of some Bluetooth devices (such as Bluetooth headsets and terminal devices) provided in this embodiment. Based on its hardware and software configuration, each Bluetooth device can establish a Bluetooth connection under user control to achieve mutual Bluetooth communication.

[0092] After multiple Bluetooth devices establish a Bluetooth connection, they can form a Bluetooth communication system. This Bluetooth communication system is a small communication network, which can also be called a Piconet or a micronet.

[0093] Figure 3 is a schematic diagram of the structure of a Bluetooth communication system provided by an embodiment of the present application. The system includes a first Bluetooth device and at least one second Bluetooth device, wherein the first Bluetooth device and each second Bluetooth device are connected via Bluetooth.

[0094] In a Bluetooth communication system, the first Bluetooth device and the second Bluetooth device can work together to achieve certain specific functions. For example, as shown in Figure 4A, when the first Bluetooth device is a TWS Bluetooth headset and the second Bluetooth device is a mobile phone, the TWS Bluetooth headset can assist the mobile phone in making voice calls, recording or audio playback. Alternatively, as shown in Figure 4B, when the first Bluetooth device is a mobile phone and the second Bluetooth device is a Bluetooth speaker, the mobile phone can play the audio of the mobile phone through the Bluetooth speaker.

[0095] Although a first Bluetooth device can be connected to multiple second Bluetooth devices simultaneously, it typically only transmits data to one second Bluetooth device at a time. For example, as shown in Figure 5, the first Bluetooth device is a Bluetooth headset, the second Bluetooth device is a mobile phone, and the Bluetooth headset is simultaneously connected to both phones. In actual use, the Bluetooth headset typically establishes a data transmission link with a target mobile phone at a given moment for audio transmission. The target mobile phone is typically determined by the Bluetooth headset, for example, by arbitrating the target mobile phone based on the service priorities of each mobile phone.

[0096] In order to ensure the communication security of the Bluetooth system, the first Bluetooth device and the second Bluetooth device need to be paired (paring) and bound (bonding) through BT when they are connected for the first time. The first connection includes the first connection after the pairing is canceled. During the first connection process, the target device of communication can be found and determined through pairing, that is, identity determination is achieved. Through binding, 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 binding related processes can be skipped and the long-term key can be directly used for Bluetooth encrypted connection, thereby improving the connection speed and user experience.

[0097] In this embodiment, the process of reestablishing a Bluetooth connection between two Bluetooth devices after successful pairing and binding is called backconnection. During the process of establishing a Bluetooth connection between two Bluetooth devices, such as during backconnection, the Bluetooth device that actively initiates communication is called the master device, and the Bluetooth device that passively communicates is called the slave device. For example, when a Bluetooth headset actively backconnects to a mobile phone after being powered on, the headset is the master device, and the mobile phone is the slave device.

[0098] In order to meet the data transmission requirements, the Bluetooth connection established between two Bluetooth devices is usually a BT connection. Therefore, during the reconnection process, the Bluetooth devices usually also need to reconnect via BT to re-establish the Bluetooth connection.

[0099] Figure 6 is a schematic diagram of the reconnection process of a Bluetooth device provided by an embodiment of the present application. This process takes the active reconnection of a TWS Bluetooth headset to a mobile phone as an example to illustrate the reconnection process of a Bluetooth device. In addition, the following S601 to S604 are all performed based on BT.

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

[0101] In this embodiment, the paging message is an identification information (ID) packet carrying a device access code (DAC) of the mobile phone, and is used to request to establish a Bluetooth connection with the mobile phone.

[0102] When the Bluetooth function of the TWS Bluetooth headset is turned on and no connection is established with other Bluetooth devices, the TWS Bluetooth headset enters the paging state until the paging times out or the paging is successful. For example, the TWS Bluetooth headset enters the paging state after the headset box is opened. Alternatively, the TWS Bluetooth headset disconnects from the mobile phone but keeps the Bluetooth function turned on and enters the paging state. In the paging state, the TWS Bluetooth headset can actively reconnect to the most recently connected Bluetooth device. In this example, based on the fact that the most recently connected Bluetooth device to the Bluetooth headset is a mobile phone, when the TWS Bluetooth headset is in the paging state, it usually continues to hop on BT's 79 channels to send paging messages, and selects a new frequency every 312.5us to send paging messages until the paging times out or the paging is successful.

[0103] S602: After receiving the paging message, the mobile phone returns a first slave page response First Slave Page Response.

[0104] In this embodiment, the paging response of the first slave device is a packet carrying the ID of the mobile phone DAC.

[0105] After turning on the phone or activating the Bluetooth function, it usually enters the Page Scan state to scan for paging messages. However, the phone does not know whether any electronic device is paging it. Therefore, to save power, the phone does not scan continuously, but intermittently with a preset duty cycle.

[0106] In this embodiment, the duty cycle is the ratio of the page scan window to the page scan interval. The page scan window refers to the duration of each scan, and the page scan interval refers to the interval between two adjacent scans. It is 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 scan duty cycle of the mobile phone is "11.25ms / 1.28s", where 11.25ms is the scan time window and 37.5ms is the scan time interval.

[0107] Since paging messages are broadcast in turn on BT's 79 channels, the mobile phone needs to monitor paging messages on all 79 channels in turn during the scanning process. For example, according to the paging hopping sequence, the mobile phone monitors for paging messages to its own device at a new monitoring frequency within the paging scan window at each paging scan interval, that is, monitors a channel. At the same time, when the channel on which the Bluetooth headset transmits the paging message is the same as the channel monitored by the mobile phone, that is, when the Bluetooth headset and the mobile phone are on 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 device paging response to the Bluetooth headset.

[0108] S603: The Bluetooth headset sends a master page response Master Page Response to the mobile phone.

[0109] In this embodiment, the master device paging response is a frequency hopping spread spectrum (FHS) packet, which carries the 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 to establish a Bluetooth connection between the Bluetooth headset and the mobile phone.

[0110] S604: The mobile phone sends a second slave page response (Second Slave Page Response) to the Bluetooth headset.

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

[0112] Based on steps S601 to S604, the Bluetooth headset and the mobile phone can establish an asynchronous connectionless (ACL) connection. Based on the ACL connection, the Bluetooth headset and the mobile phone can exchange data. For example, the mobile phone can send audio to the Bluetooth headset for playback.

[0113] It should be noted that ACL is a connection technology supported by the Bluetooth baseband and is primarily used for packet data transmission, such as audio transmission. ACL technology is not generally used for voice transmission (i.e., the speech generated during a call), which is usually transmitted using synchronous connection-oriented (SCO) technology.

[0114] After S601 to S604, the Bluetooth headset can also perform authentication and encryption with the mobile phone and send power information to the mobile phone. After receiving the power information of the Bluetooth headset, the Bluetooth module of the mobile phone can transmit the power information to the one-key connection module of the mobile phone through the attention (AT) command. The one-key connection module then transmits the power information to the audio management module, and the audio management module controls the mobile phone to display the power information. For example, when the Bluetooth headset is a TWS Bluetooth headset, its power information may include the power information of the earphone box, the power information of the left earphone, and the power information of the right earphone, etc. This embodiment does not limit this.

[0115] However, during the Bluetooth device reconnection process, the master device (such as the Bluetooth headset) pages the slave device (such as the mobile phone) by frequency hopping across BT's 79 channels. The slave device also scans and pages on BT's 79 channels at a preset duty cycle, and paging is successful only when both devices are on the same channel. Because the master device has many paging channels and the slave device typically has a low preset duty cycle, the paging process takes a long time, resulting in a slow reconnection of the Bluetooth device.

[0116] In addition, when the Bluetooth device reconnects slowly, the display speed of relevant Bluetooth connection information (such as information indicating successful Bluetooth connection, Bluetooth headset battery information, Bluetooth headset model information, etc.) in mobile phones and other electronic devices will be slow, affecting the user experience.

[0117] To this end, an embodiment of the present application provides a Bluetooth communication system in which a first Bluetooth device (a master device) can notify a second Bluetooth device (a slave device) via BLE broadcast to increase the BT scan duty cycle, thereby increasing the reconnection speed of the two Bluetooth devices and improving the user experience.

[0118] The Bluetooth device communication system provided in the embodiment of the present application is described in detail below.

[0119] FIG7 is a flowchart of a Bluetooth communication system according to an embodiment of the present application, which relates to a process in which a first Bluetooth device connects back to a second Bluetooth device in the Bluetooth communication system, specifically including the following steps S701 to S705 .

[0120] S701: The first Bluetooth device sends indication information via BLE and sends a paging message via BT.

[0121] In this embodiment, the paging message is used to request to connect back to the second Bluetooth device. For details, refer to S601 and will not be described again here.

[0122] In this embodiment, the indication information is used to instruct the second Bluetooth device to increase the BT scan duty cycle. The indication information generally carries the unique identification information of the first Bluetooth device and / or the second Bluetooth device, and may or may 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 may be the device access code DAC, address information, etc., and the second duty cycle may be 11.25ms / 37.5ms.

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

[0124] In this embodiment, the first Bluetooth device usually starts to send indication information through BLE and sends paging messages 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 turning on the phone, or starts the Bluetooth function according to the user's operation on the Bluetooth control. The TWS Bluetooth headset automatically starts the Bluetooth function after the headset box is opened. Among them, the user's operation on the terminal device includes single-click, double-click, long press, voice control operation, air control operation, etc., which are not limited in this embodiment. Alternatively, the first event is that 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. For example, during the normal Bluetooth communication between the TWS Bluetooth headset and the mobile phone, its Bluetooth connection is suddenly disconnected because the signal strength is less than the threshold, and the TWS Bluetooth headset confirms that the Bluetooth connection needs to be re-established.

[0125] S702: The BLE of the second Bluetooth device performs scanning, and the BT scans at a first duty cycle.

[0126] After the Bluetooth function of the second Bluetooth device is turned on, its BLE and BT will enter the scanning state, and the second Bluetooth device will usually scan for paging messages based on BT. However, since the second Bluetooth device is usually unable to sense whether other Bluetooth devices are paging it, its BT usually maintains a preset first duty cycle scanning. To save device power consumption, this first duty cycle is usually low. Exemplarily, this first duty cycle is 11.25ms / 1.28s.

[0127] This embodiment does not limit the order in which S701 and S702 are executed. For example, the first Bluetooth device may execute S701 first and then the second Bluetooth device executes S702; or the second Bluetooth device may execute S702 first and then the first Bluetooth device executes S701.

[0128] S703: After receiving the indication information through the BLE scan, the second Bluetooth device controls the BT to scan with a second duty cycle, where the second duty cycle is greater than the first duty cycle.

[0129] It should be noted that the second Bluetooth device receives the indication information by scanning. Therefore, it can be understood that it can not only receive the indication information sent by the paired device, but also receive the indication information sent by other Bluetooth devices. Therefore, in order to ensure the security of the second Bluetooth device, after the second Bluetooth device scans the indication information through BLE, it needs to identify the indication information based on the unique identification information (such as DAC) carried by the indication information. After the indication information is identified, the second Bluetooth device can control BT to scan with a second duty cycle according to the instructions of the indication information. The details are as follows.

[0130] 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 is paired with the second Bluetooth device based on the unique identification information. If the first Bluetooth device and the second Bluetooth device are paired, it means that the two Bluetooth devices trust each other, and the indication information is recognized. Subsequently, the second Bluetooth device obtains the second duty cycle based on the indication information and controls the BT to scan at the second duty cycle.

[0131] 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 is only available to Bluetooth devices trusted by the second Bluetooth device, after receiving the indication information, the second Bluetooth device can directly obtain the second duty cycle based on the indication information and control the BT to scan at the second duty cycle.

[0132] 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 through BLE, it obtains the second duty cycle from the indication information and controls BT to scan with the second duty cycle. In other embodiments, the indication information does not carry the second duty cycle, and the second duty cycle is pre-stored locally in the second Bluetooth device. Based on this, after the second Bluetooth device scans the indication information through BLE, it obtains the second duty cycle from the local and controls BT to scan with the second duty cycle.

[0133] S704: After receiving the paging message through BT scanning, the second Bluetooth device establishes a Bluetooth connection with the primary device according to the paging message.

[0134] 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 a first Bluetooth connection. The first Bluetooth connection is a BT connection. The establishment process thereof is detailed in the foregoing text and will not be described again here.

[0135] For S703 to S704, it should be noted that when the first Bluetooth device first sends the indication information through BLE and then sends the paging message through BT, the second Bluetooth device usually executes S703 first and then executes S704. When the first Bluetooth device sends the indication information through BLE and the paging message through BT at the same time in S701, it cannot be guaranteed whether the BLE of the second Bluetooth device scans the indication information first or the BT scans the paging message first. It can be understood that if the second Bluetooth device scans the indication information first, then the second Bluetooth device can scan with a higher duty cycle throughout the reconnection process, thereby improving the reconnection speed. If the second Bluetooth device scans the paging message first and then scans the indication information, then the BT of the second Bluetooth device can scan with a higher duty cycle during the reconnection process after receiving the paging message (for example, in the process of scanning the paging response of the main device), thereby improving the reconnection speed to a certain extent.

[0136] In addition, it is worth noting that since BLE is equipped with three dedicated broadcast channels, and BLE sends indication information through the broadcast channel. Therefore, the second Bluetooth device can quickly scan the indication information through BLE, thereby quickly improving the scanning duty cycle of BT. In this case, whether the first Bluetooth device sends the indication information through BLE first and then sends the paging message through BT, or sends the indication information through BLE and the paging message through BT at the same time, the second Bluetooth device usually receives the indication information through BLE first, thereby improving the BT reconnection speed.

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

[0138] In the above S701 to S704, illustratively, 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 greater than the first duty cycle, when the BT of the second Bluetooth device is increased to scan using the second duty cycle, the second Bluetooth device can quickly scan the paging message sent by the first Bluetooth device during the reconnection process, so that the two Bluetooth devices can quickly establish a Bluetooth connection.

[0139] S705 : The BT of the second Bluetooth device resumes scanning with the first duty cycle.

[0140] Since the second duty cycle is large, the device power consumption of the second Bluetooth device is large when the BT scans with the second duty cycle. Therefore, in order to save device 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.

[0141] To sum up, in this embodiment, when the first Bluetooth device reconnects to the second Bluetooth device, it can send an indication message through BLE to instruct the second Bluetooth device to increase the BT scanning duty cycle, 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, increasing the reconnection speed, and improving the user experience.

[0142] 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 via BT. In this solution, since the process of the first Bluetooth device sending the indication information via BT does not affect the process of connecting back to the second Bluetooth device via BT, and the second Bluetooth device can also scan the indication information via BT during the connection back process and increase the BT scanning duty cycle based on the indication information. Therefore, to a certain extent, this method can also improve the connection back speed between the first Bluetooth device and the second Bluetooth device.

[0143] Below, taking the first Bluetooth device as a TWS Bluetooth headset, the second Bluetooth device as a mobile phone, and the first Bluetooth device sending indication information through BLE and sending a paging message through BT to connect back to the second Bluetooth device as an example, the process of the first Bluetooth device connecting back to the second Bluetooth device in the above Bluetooth communication system is specifically described.

[0144] TWS Bluetooth headsets include a primary headset and a secondary headset, both of which support BT & BLE dual-mode Bluetooth. The primary headset can connect to the phone alone or with the assistance of the secondary headset. The details are as follows.

[0145] Example 1: The main headset connects back to the phone alone

[0146] Figure 8 is a flow chart of a method for reconnecting a Bluetooth device according to an embodiment of the present invention. The method involves a process in which a primary headset reconnects to a mobile phone alone, specifically comprising the following steps S801 to S812.

[0147] S801: The mobile phone uses BLE and BT to perform scanning, wherein the scanning duty cycle of BT is the first duty cycle scanning.

[0148] Exemplarily, the first duty cycle is 11.25ms / 1.28s.

[0149] S802-S803: After detecting the first event, the master earphone sends an indication message to the mobile phone via BLE within a preset time.

[0150] In some embodiments, the first event is the activation of the Bluetooth function after the TWS Bluetooth headset is opened. Based on the above description, it can be seen that the earphone box of the TWS Bluetooth headset can detect the opening and closing status of the lid. When the earphone box detects that the lid changes from a closed state to an open state, the earphone box confirms that the lid opening event has occurred and actively notifies the primary earphone and the secondary earphone of the lid opening event. After receiving the lid opening event, the primary earphone and the secondary earphone activate the Bluetooth function and establish a Bluetooth connection, which is referred to as the second Bluetooth connection in this embodiment.

[0151] In some embodiments, the instruction information is a BLE broadcast message that carries the unique identification information of the mobile phone and the second duty cycle information, which is used to instruct the mobile phone to perform BT scanning at the second duty cycle. Exemplarily, the second duty cycle is 11.25ms / 37.5ms. It is understandable that since the instruction information carries the unique identification information of the mobile phone, only the mobile phone will switch to scanning at the second duty cycle according to the instruction information, and will not affect other electronic devices.

[0152] In addition, the preset time for the master headset to send the indication information can be 20ms, 50ms, 100ms, etc., and this embodiment does not limit this. To prevent the mobile phone from sending the indication information for a long time and affecting the reconnection speed, when the host headset times out, it stops sending the indication information and jumps to execution S808-S809 to page the mobile phone.

[0153] S804 to S806, after the BLE of the mobile phone scans the indication information, it sends a response message to the main headset and sends the indication information to the BT.

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

[0155] In addition, this embodiment does not limit 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.

[0156] 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.

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

[0158] S808 , after the preset time has expired or a response message from the mobile phone is received, the BLE of the master headset sends a paging notification to the BT of the master headset, where the paging notification is used to notify the BT to page the mobile phone.

[0159] S809: The BT of the master headset sends a paging message to the mobile phone.

[0160] In steps S810 to S811, after receiving the paging message based on the second duty cycle scanning, the BT of the mobile phone establishes a Bluetooth connection with the Bluetooth headset according to the paging message. The Bluetooth connection is a BT connection, and its establishment process is specifically referred to in steps S601 to S604, which will not be described in detail in this embodiment.

[0161] S812: The BT of the mobile phone resumes scanning with the first duty cycle.

[0162] In this embodiment, the master headset first instructs the mobile phone to increase the BT scan duty cycle through BLE broadcast, and then reconnects to the mobile phone through BT, independently achieving fast reconnection. Although compared with the traditional BT reconnection process, the master headset performs the process of "instructing the mobile phone to increase the BT scan duty cycle through BLE", this instruction process is broadcast on the three dedicated broadcast channels of BLE and takes very little time. In addition, after increasing the BT scan duty cycle, the mobile phone can significantly reduce the reconnection time. Therefore, from the overall effect, the method provided in this embodiment can significantly improve the reconnection speed of Bluetooth devices.

[0163] Example 2: The primary headset connects back to the phone with the help of the secondary headset

[0164] Figure 9 is a flowchart of a method for reconnecting a Bluetooth device according to another embodiment of the present invention. The method involves a process in which a primary headset reconnects to a mobile phone with the assistance of a secondary headset. The method specifically includes the following steps S901 to S911.

[0165] S901: The mobile phone uses BLE and BT to perform scanning, wherein the scanning duty cycle of BT is the first duty cycle scanning.

[0166] Exemplarily, the first duty cycle is 11.25ms / 1.28s.

[0167] S902-S903: After detecting the first event, the master earphone reconnects to the slave earphone and establishes a Bluetooth connection with the slave earphone.

[0168] In this embodiment, the Bluetooth connection established between the primary and secondary earphones is typically a BT connection, but it can also be a BLE connection, which is not limited in this embodiment. After the primary and secondary earphones establish a Bluetooth connection, they can send information to each other via the Bluetooth link. For details about the first event, refer to the relevant description in S802 and will not be repeated here.

[0169] S904: The secondary headset sends an instruction message to the mobile phone via BLE within a preset time.

[0170] The details of the indication information are as described above and will not be repeated here. In addition, the preset time can be 1000ms, 2000ms, etc., which is not limited in this embodiment. After the preset time is exceeded, the secondary earphone automatically stops sending the indication information.

[0171] Optionally, the secondary headset may also send instruction information to the mobile phone via BLE according to the instruction of the primary headset.

[0172] S905: The primary headset sends a paging message to the mobile phone via BT.

[0173] In this embodiment, the primary headset and the secondary headset execute S904 and S905 in parallel, that is, the secondary headset instructs the mobile phone to increase the BT scanning duty cycle through BLE broadcast, while the mobile phone performs paging and other operations in the reconnection process normally.

[0174] S906-S907: After scanning the indication information, the BLE of the mobile phone sends the indication information to the BT of the mobile phone.

[0175] S908 , the BT of the mobile phone increases the scanning duty cycle from the first duty cycle to the second duty cycle.

[0176] S909-S910: After the BT of the mobile phone scans the paging message, it establishes a Bluetooth connection with the main headset according to the paging message. Please refer to S601-S604 for details, which will not be repeated here in this embodiment.

[0177] For S904~S910, it should be noted that since the TWS Bluetooth headset sends indication information through BLE and paging messages through BT in parallel, in theory, the mobile phone may scan the indication information first or the paging message first during the scanning process with the first duty cycle. However, in the actual scanning process, since there are only three BLE broadcast channels for sending indication information and as many as 79 BT channels for sending paging messages, under normal circumstances, the mobile phone will scan the indication information first and perform subsequent operations to increase the BT scan duty cycle according to the indication information in order to quickly scan the paging message. The details can also be referred to in the relevant descriptions of S703~S704.

[0178] S911, the mobile phone's BT resumes scanning with the first duty cycle.

[0179] In this embodiment, the TWS Bluetooth headset notifies the mobile phone through the BLE broadcast of the secondary headset to increase the BT scanning duty cycle, while simultaneously connecting back to the mobile phone through the BT of the primary headset. Because the BLE broadcast message can be quickly scanned by the mobile phone, the mobile phone can scan for information with a larger duty cycle during the process of connecting back to the primary headset, which can quickly increase the connection speed.

[0180] With the development of Bluetooth technology, some first Bluetooth devices support dual connections, that is, they support simultaneous connection to two second Bluetooth devices. For a first Bluetooth device that supports dual connections, if it is in a paired state with the two second Bluetooth devices that have been connected most recently, then the first Bluetooth device will serially connect back to the two second Bluetooth devices after starting the Bluetooth function. For example, in Figure 5, the TWS Bluetooth headset supports simultaneous connection to mobile phone 1 and mobile phone 2. After the TWS Bluetooth headset starts the Bluetooth function, if the Bluetooth with mobile phone 1 and mobile phone 2 are both in a paired state, then the TWS Bluetooth headset will serially connect back to mobile phone 1 and mobile phone 2. During the serial backconnection process, the TWS Bluetooth headset can first connect back to mobile phone 1 and then to mobile phone 2; it can also first connect back to mobile phone 2 and then to mobile phone 1.

[0181] When a first Bluetooth device serially connects back to multiple second Bluetooth devices, the first Bluetooth device can also use the Bluetooth device reconnection method provided in the embodiments of the present application to perform the reconnection. The difference is that the first Bluetooth device only needs to broadcast instruction information once to notify each second Bluetooth device to increase its scan duty cycle, thereby increasing the speed at which the first Bluetooth device reconnects to each second Bluetooth device, thereby increasing the overall reconnection speed of the serial reconnection.

[0182] The following takes the first Bluetooth device as a TWS Bluetooth headset and the two second Bluetooth devices as mobile phone 1 and mobile phone 2 as an example to specifically illustrate the process of quickly serially connecting the TWS Bluetooth headset to mobile phone 1 and mobile phone 2.

[0183] FIG10 is a flowchart of a method for reconnecting a Bluetooth device provided by another embodiment of the present application, which involves a process of serially reconnecting a TWS Bluetooth headset to mobile phone 1 and mobile phone 2, specifically including the following steps S1000 to S1008.

[0184] S1000, TWS Bluetooth headset based on BLE auxiliary, connects back to mobile phone 1.

[0185] The reconnection process between the TWS Bluetooth headset and the mobile phone 1 can be seen in Figure 8 or Figure 9, which will not be repeated here.

[0186] It should be noted that during the serial backconnection process, the TWS Bluetooth headset sends an indication message to mobile phone 1 and mobile phone 2 through BLE broadcast, and the indication message can simultaneously instruct mobile phone 1 and mobile phone 2 to increase the scanning duty cycle of BT. For example, the indication message can carry the unique identification information of mobile phone 1 and mobile phone 2 at the same time. After mobile phone 1 and mobile phone 2 receive the indication message, they can both increase the scanning duty cycle of BT. Alternatively, the indication message carries the unique identification information of the TWS Bluetooth headset, and each Bluetooth device (including mobile phone 1 and mobile phone 2) receives the indication message and confirms that the indication message comes from a paired device (such as a TWS Bluetooth headset), and then increases the scanning duty cycle of BT according to the indication message.

[0187] S1001 , mobile phone 2 performs scanning using BLE and BT, wherein the scanning duty cycle of BT is a first duty cycle scan.

[0188] S1002-S1003: After scanning the indication information, the BLE of the mobile phone 2 sends the indication information to the BT of the mobile phone 2.

[0189] S1004: After receiving the instruction information, the BT of mobile phone 2 scans with a second duty cycle, which is greater than the first duty cycle.

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

[0191] S1006-S1007: After the BT of mobile phone 2 scans the paging message based on the second duty cycle, it establishes a Bluetooth connection with the main headset according to the paging message.

[0192] S1008 , the BT of mobile phone 2 returns to scanning at the first duty cycle.

[0193] Among them, the specific contents of S1002 to S1008 can be found in S906 to S911 and will not be repeated here.

[0194] In this embodiment, the TWS Bluetooth headset can simultaneously notify two mobile phones to increase the BT scan duty cycle based on a single BLE broadcast. In addition, the later-connected mobile phone 2 can also increase the BT scan duty cycle before being paged by the TWS Bluetooth headset, thereby further improving the reconnection speed. Experimental data shows that when the main headset serially reconnects to mobile phones 1 and 2 with the assistance of the secondary headset, the overall reconnection speed of the two devices can be reduced from the current average of about 2000ms to an average of about 400ms, which is a significant speed improvement.

[0195] It should be noted that the above 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, which is not limited in this embodiment.

[0196] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean 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.

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

[0198] An embodiment of the present 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, the method executed by the first Bluetooth device or the second Bluetooth device in each of the above embodiments is implemented.

[0199] An embodiment of the present application also provides a chip, as shown in Figure 11, which includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the method executed by the first Bluetooth device or the second Bluetooth device in the above embodiments.

[0200] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method performed by the first Bluetooth device or the second Bluetooth device provided in the above embodiments is implemented.

[0201] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed by an electronic device, the electronic device implements the method performed by the first Bluetooth device or the second Bluetooth device provided in the above embodiments.

[0202] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

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

[0204] In the embodiments provided in this application, the division of each framework or module is only a logical functional division. In actual implementation, there may be other division methods, for example, multiple frameworks or modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the functional modules in the various embodiments of this application can be integrated into a processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0205] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0206] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in 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 "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0207] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A Bluetooth communication system, characterized in that: including a paired first Bluetooth device and a second Bluetooth device, The first Bluetooth device is configured to: send indication information via Bluetooth low energy consumption and send a paging message via classic Bluetooth; wherein the indication information is used to instruct the second Bluetooth device to increase a scan duty cycle of the classic Bluetooth, and the paging message is used to request to connect back to the second Bluetooth device; The second Bluetooth device is configured as: Scanning via Bluetooth Low Energy and scanning at a first duty cycle via Classic Bluetooth; After the indication information is scanned through the low-power Bluetooth, controlling the classic Bluetooth to scan with a second duty cycle, where the second duty cycle is greater than the first duty cycle; After the paging message is scanned through the classic Bluetooth, a first Bluetooth connection is established with the first Bluetooth device.

2. The system according to claim 1, characterized in that The first Bluetooth device is configured to: send indication information via low-power Bluetooth and send a paging message via classic Bluetooth, including: The first Bluetooth device is configured as: In response to the first event, sending the indication information via Bluetooth low energy consumption within a preset time; After the preset time has expired or the response information has been received, the paging message is sent via classic Bluetooth; wherein the response information is used to indicate that the second Bluetooth device has received the indication information.

3. The system according to claim 1, characterized in that The first Bluetooth device includes a first Bluetooth module and a second Bluetooth module, and the first Bluetooth device is configured to: send indication information via low-power Bluetooth and send a paging message via classic Bluetooth, including: The first Bluetooth module is configured to: send the paging message via classic Bluetooth; The second Bluetooth module is configured to send the indication information via Bluetooth low energy consumption.

4. The system according to claim 3, characterized in that The first Bluetooth module and the second Bluetooth module are further configured as: In response to the first event, the first Bluetooth module and the second Bluetooth module establish a second Bluetooth connection.

5. The system according to claim 4, characterized in that 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 headset, the TWS headset includes a main headset and a slave headset, the main headset includes the first Bluetooth module, and the slave headset includes the second Bluetooth module.

7. The system according to claim 2, 4 or 5, characterized in that 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, resume scanning using the first duty cycle using the classic Bluetooth of the second Bluetooth device.

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

10. A method for reconnecting a Bluetooth device, characterized in that: Applied to a paired first Bluetooth device and a second Bluetooth device, the method comprises: The first Bluetooth device sends indication information via Bluetooth low energy consumption and sends a paging message via classic Bluetooth; wherein the indication information is used to instruct the second Bluetooth device to increase a scan duty cycle of the classic Bluetooth, and the paging message is used to request to connect back to the second Bluetooth device; The second Bluetooth device scans via Bluetooth low energy and scans via classic Bluetooth at a first duty cycle; After the second Bluetooth device scans the indication information through the low-power Bluetooth, it scans with a second duty cycle through the classic Bluetooth; wherein the second duty cycle is greater than the first duty cycle; After the second Bluetooth device scans the paging message through classic Bluetooth, it establishes a first Bluetooth connection with the first Bluetooth device.

11. The method according to claim 10, characterized in that The first Bluetooth device sends the indication information via the low-power Bluetooth and sends the paging message via the classic Bluetooth, including: The first Bluetooth device sends the indication information within a preset time in response to the first event; The first Bluetooth device sends the paging message after the preset time has expired or after response information is received; wherein the response information is used to indicate that the second Bluetooth device has received the indication information.

12. The method according to claim 10, characterized in that The first Bluetooth device includes a first Bluetooth module and a second Bluetooth module. Accordingly, the first Bluetooth device sends the indication information through the low-power Bluetooth and sends the paging message through the classic Bluetooth, including: The first Bluetooth module sends the paging message via classic Bluetooth; The second Bluetooth module sends the indication information via low-power Bluetooth.

13. The method according to claim 12, characterized in that The method further comprises: In response to the first event, the first Bluetooth module establishes a second Bluetooth connection with the second Bluetooth module.

14. The method according to claim 13, characterized in that 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 headset, the TWS headset includes a main headset and a slave headset, the main headset includes the first Bluetooth module, and the slave headset includes the second Bluetooth module.

16. The method according to claim 11, 13 or 14, characterized in that 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 scanning with 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 the scanning time window and 37.5ms is the scanning time interval.

19. A Bluetooth device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method executed by the first Bluetooth device or the second Bluetooth device as claimed in any one of claims 10 to 18 is implemented.

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

21. A chip, characterized in that: The chip includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method executed by the first Bluetooth device or the second Bluetooth device as claimed in any one of claims 10 to 18 is implemented.

Citation Information

Patent Citations

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

    CN119545579B

  • Bluetooth reconnection method and system, Bluetooth master and slave equipment reconnection method and Bluetooth master and slave equipment

    CN111436039A

  • Method and device for establishing Bluetooth link, equipment and storage medium

    CN115396856A

  • Bluetooth connection method, device and system

    CN116074986A

  • Method and apparatus for reconnection in short-range wireless communication

    US20150230285A1