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 sending paging messages through classic Bluetooth, the problem of slow Bluetooth connection speed is solved, significantly improving the user experience.

CN119545579AActive Publication Date: 2025-02-28HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, Bluetooth connection speed is slow, affecting 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 of Bluetooth device connection and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545579A_ABST
    Figure CN119545579A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a Bluetooth communication system, a reconnection method, a Bluetooth device, a storage medium and a chip, and relates to the technical field of communication. The system comprises a first Bluetooth device and a second Bluetooth device which are paired, and the first Bluetooth device is configured to send indication information through low-power-consumption Bluetooth and send a paging message through classic Bluetooth; the indication information is used for indicating the second Bluetooth device to improve the scanning duty ratio of classic Bluetooth, and the paging message is used for requesting to reconnect the second Bluetooth device. The second Bluetooth device is configured to scan through low power consumption Bluetooth and scan at a first duty ratio through classic Bluetooth; after the indication information is scanned through the low-power-consumption Bluetooth, the classic Bluetooth is controlled to scan at a second duty ratio, and the second duty ratio is larger than the first duty ratio; and after the paging message is scanned through the classic Bluetooth, establishing a first Bluetooth connection with the first Bluetooth device. According to the technical scheme provided by the invention, the Bluetooth reconnection speed can be improved, and better user experience is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] Bluetooth is a relatively mature short-range wireless communication technology and is widely used in various Bluetooth devices, such as Bluetooth headsets and mobile phones. Bluetooth includes classic Bluetooth and low-power Bluetooth. Currently, two paired Bluetooth devices can be directly reconnected through classic Bluetooth after the Bluetooth function is activated without the need for pairing. For example, a Bluetooth headset can directly connect to the most recently connected electronic device, such as a mobile phone, after it is turned on. However, during the reconnection process of a Bluetooth device, there is a problem of slow reconnection speed, which affects the user experience. Summary of the invention

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

[0004] In order to achieve the above objectives, this application adopts the following technical solutions:

[0005] 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 indication information via low-power Bluetooth and send a paging message via classic Bluetooth; the indication information 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 connect back to the second Bluetooth device. The second Bluetooth device is configured to: scan via low-power Bluetooth and scan at a first duty cycle via classic Bluetooth; after scanning the indication information via 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, after scanning the paging message via classic Bluetooth, establish a first Bluetooth connection with the first Bluetooth device.

[0006] 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 the classic Bluetooth through the low-power Bluetooth, thereby increasing the rate at which the second Bluetooth device scans information during the classic Bluetooth reconnection process, thereby improving the reconnection speed and user experience.

[0007] In some embodiments, the first Bluetooth device is configured to: send indication information via low-power Bluetooth and send a paging message via classic Bluetooth, including: in response to a first event, send indication information via low-power Bluetooth within a preset time; and, after exceeding the preset time or receiving a response message, send a paging message via classic Bluetooth; wherein the response message is used to indicate that the second Bluetooth device has received the indication information. In this embodiment, the first Bluetooth device first quickly instructs the second Bluetooth device to increase the scanning duty cycle of the classic Bluetooth via low-power Bluetooth, and then connects to the second Bluetooth device via classic Bluetooth paging, and uses a Bluetooth module to independently achieve fast reconnection. The Bluetooth module supports both classic Bluetooth and low-power Bluetooth.

[0008] It should be noted that, although compared with the traditional reconnection process, the first Bluetooth device performs the process of "instructing the second Bluetooth device to increase the scan duty cycle of classic Bluetooth through low-power Bluetooth", which increases the reconnection time in this step. However, after the second Bluetooth device increases the scan duty cycle of classic Bluetooth, it can significantly reduce the reconnection time in multiple interactions with the first Bluetooth device. Therefore, from the overall effect, the method provided in this embodiment can improve the reconnection speed of Bluetooth devices to a certain extent.

[0009] In some embodiments, the first Bluetooth device includes a first Bluetooth module and a second Bluetooth module, and the first Bluetooth device is configured to: send indication information via low-power Bluetooth and send a paging message via classic Bluetooth, including:

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

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

[0012] In this embodiment, the first Bluetooth device connects back to the second Bluetooth device under the cooperation of the first Bluetooth module and the second Bluetooth module. In addition, in this process, the process of the first Bluetooth device instructing the second Bluetooth device to increase the scanning duty cycle of the classic Bluetooth through the low-power Bluetooth and the process of connecting back to the second Bluetooth device through the classic Bluetooth are carried out in parallel, and the two do not affect each other. After the second Bluetooth device increases the scanning duty cycle of the classic Bluetooth, the classic Bluetooth of the second Bluetooth device can scan the paging message sent by the first Bluetooth device with higher efficiency, thereby improving the reconnection speed of the classic Bluetooth.

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

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

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

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

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

[0018] In some embodiments, the first event is: 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 reestablished. For example, the first Bluetooth device and the second Bluetooth device are automatically disconnected due to the Bluetooth signal being less than a threshold value due to the distance between them becoming farther, based on which the first Bluetooth device determines that the connection needs to be reestablished.

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

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

[0021] In a second aspect, the present application provides a method for reconnecting 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 indication information via low-power Bluetooth and sends a paging message via classic Bluetooth; the indication information is used to instruct the second Bluetooth device to increase the scanning duty cycle of the classic Bluetooth, and the paging message is used to request 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 information via low-power Bluetooth, the second Bluetooth device 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, the second Bluetooth device establishes a first Bluetooth connection with the first Bluetooth device.

[0022] 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 response information has been received; wherein the response information is used to indicate that the second Bluetooth device has received the indication information.

[0023] In some embodiments, the first Bluetooth device includes a first Bluetooth module and a second Bluetooth module. 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.

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

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

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

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

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

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

[0030] 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, it implements the method performed by the first Bluetooth device or the second Bluetooth device in the second aspect and its various embodiments.

[0031] In a fourth aspect, the present application provides a computer-readable storage medium, which stores 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.

[0032] In a fifth aspect, the present application provides a chip, the chip comprising a processor and a memory, the memory storing a computer program, 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.

[0033] 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

[0034] Figure 1 It is a structural schematic diagram of a TWS headset provided in an embodiment of the present application;

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

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

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

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

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

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

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

[0042] Figure 8 is a flowchart of a method for reconnecting a Bluetooth device provided by an embodiment of the present application;

[0043] Fig. 9 is a flowchart of a method for reconnecting a Bluetooth device provided by another embodiment of the present application;

[0044] Fig.10is a flowchart of a method for reconnecting a Bluetooth device provided by another embodiment of the present application;

[0045] Fig.11 It is a schematic diagram of the structure of the chip provided in the embodiment of the present application. DETAILED DESCRIPTION

[0046] The technical solution provided in the embodiments of the present application is described below with reference to the accompanying drawings.

[0047] 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 may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0048] In this embodiment, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, 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.

[0049] Bluetooth is a wireless short-range communication technology that uses a specific frequency band (usually around 2.4GHz-2.485GHz) to send and receive electromagnetic waves to achieve communication between electronic devices. Currently, Bluetooth includes classic Bluetooth (BT) and Bluetooth low energy (BLE). The following is a detailed description of each.

[0050] (1) Classic Bluetooth

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

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

[0053] (2) Bluetooth Low Energy

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

[0055] As shown in Table 1, BLE has a total of 40 channels, including 3 advertising channels and 37 data channels. Among them, the advertising channel is specifically used to transmit broadcast messages, and the data channel is specifically used to transmit data (such as audio, pictures, and files). In addition, like BT, BLE also uses each channel in FHSS mode. Please refer to the previous text for details, which will not be repeated here.

[0056] Table 1 Bluetooth channels

[0057]

[0058] Bluetooth is widely used in various electronic devices due to its low power consumption, low cost, convenience, flexibility, safety, and small hardware size. For ease of description, this embodiment refers to electronic devices equipped with Bluetooth as Bluetooth devices. In addition, depending on the Bluetooth technology supported by the Bluetooth device, the Bluetooth device is divided into BT single-mode device, BLE single-mode device, and BT&BLE dual-mode device. Among them, 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.

[0059] 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 vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The Bluetooth headset can be a true wireless stereo (TWS) headset, or a neck-mounted headset, etc. The embodiment of the present application does not limit the specific type of Bluetooth device.

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

[0061] The left earphone and the right earphone both include a shell and internal components, and the internal components are arranged in a cavity formed by the shell. Exemplarily, the internal components may include an audio module, a Bluetooth module, a power module, and the like. The working modes of the left earphone and the right earphone include a monaural mode and a binaural mode. In monaural mode, the left earphone or the right earphone is taken out of the earphone box alone, and a Bluetooth connection is established with other Bluetooth devices to receive and play audio. In binaural mode, the left earphone and the right earphone are both taken out of the earphone box, one of which is connected to other electronic devices as the main earphone to receive and play audio; the other is used as a secondary earphone to assist the main earphone, and establishes a Bluetooth connection with the main earphone to receive audio sent by the main earphone, or monitors audio sent to the main earphone by other electronic devices (such as mobile phones), and plays the audio synchronously with the main earphone. Among them, during the use of the TWS Bluetooth headset, the main / secondary roles of the two earphones can be switched. When the left earphone is the main earphone, the right earphone is the secondary earphone; when the right earphone is the main earphone, the left earphone is the secondary 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.

[0062] The earphone box includes a bottom box and a lid, which is used to store and charge the left earphone and the right earphone. It should be noted that the earphone box can detect whether the left and right earphones are in the earphone box, can detect the opening and closing state of the lid, etc., and assist the left and right earphones to work based on this. 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, the main earphone and the auxiliary earphone are notified of the cover opening event so that the main earphone and the auxiliary 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, the earphone inside is charged.

[0063] Figure 2 2 is a schematic diagram of the structure of the terminal device provided in the 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 screen 294, and a subscriber identification module (SIM) card interface 295, etc.

[0064] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0065] 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 processor (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 the timing signal to complete the control of fetching and executing instructions.

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

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

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

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

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

[0071] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 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 number, and battery health status (leakage, impedance).

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

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

[0074] 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 the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0075] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to terminal devices. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.

[0076] The wireless communication module 260 can provide wireless communication solutions for application in 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.

[0077] The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210. The wireless communication module 260 may also receive signals to be sent from the processor 210, modulate the frequencies of the signals, amplify the signals, and convert the signals into electromagnetic waves for radiation via the antenna 2.

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

[0079] The audio module 270 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio inputs 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 arranged in the processor 210, or some functional modules of the audio module 270 can be arranged in the processor 210.

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

[0081] 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 ear.

[0082] Microphone 270C, also called "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 may be provided with at least one microphone 270C. In other embodiments, the terminal device may 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 may also be provided with three, four or more microphones 270C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording function, etc.

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

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

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

[0086] Indicator 292 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0087] The camera 293 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the 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 1 or N cameras 293, where N is a positive integer greater than 1.

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

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

[0090] 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 according to the user's control and realize mutual Bluetooth communication.

[0091] After multiple Bluetooth devices establish Bluetooth connections, they can form a Bluetooth communication system, which is a small communication network, also known as a Piconet or a micronet.

[0092] Figure 3 1 is a schematic diagram of a Bluetooth communication system provided in 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.

[0093] In a Bluetooth communication system, the first Bluetooth device and the second Bluetooth device can work together to achieve some specific functions. For example, see Figure 4A As shown, 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, etc. Alternatively, see Figure 4BAs shown, 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.

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

[0095] In order to ensure the communication security of the Bluetooth system, the first Bluetooth device and the second Bluetooth device need to be paired (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 relevant processes of pairing and binding can be skipped, and the long-term key can be directly used for Bluetooth encrypted connection, thereby improving the connection speed and user experience.

[0096] In this embodiment, the process of re-establishing a Bluetooth connection between two Bluetooth devices after pairing and binding is successfully referred to as back-connection. In the process of establishing a Bluetooth connection between two Bluetooth devices, such as in the back-connection process, the Bluetooth device that actively proposes a communication request is called a master device (Master), and the Bluetooth device that passively communicates is called a slave device (Slave). For example, in the process of actively back-connecting a Bluetooth headset to a mobile phone after being turned on, the Bluetooth headset is the master device and the mobile phone is the slave device.

[0097] In order to meet the data transmission requirements, the Bluetooth connection established between two Bluetooth devices is usually a BT connection. Therefore, during the back-connection process, the Bluetooth device usually needs to be back-connected via BT to re-establish the Bluetooth connection.

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

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

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

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

[0102] S602: After receiving the paging message, the mobile phone returns a first slave paging response First Slave PageResponse.

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

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

[0105] 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 scan processes. It can be understood that the larger the duty cycle, the higher the scanning efficiency, but the greater the power consumption of the device. Exemplarily, the preset scanning duty cycle of the mobile phone is "11.25ms / 1.28s", where 11.25ms is the scanning time window and 37.5ms is the scanning time interval.

[0106] Since paging messages are broadcast in turn on BT's 79 channels, the mobile phone needs to monitor paging messages on 79 channels in turn during the scanning process. Exemplarily, the mobile phone monitors the paging of its own device at a new monitoring frequency within the paging scanning window at each paging scanning interval according to the paging hopping sequence, 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 at the same communication frequency, the mobile phone can receive the paging message. In response to the paging message, the mobile phone sends a first slave device paging response to the Bluetooth headset.

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

[0108] In this embodiment, the master device paging response is a frequency hopping spread (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 for the Bluetooth headset to establish a Bluetooth connection with the mobile phone.

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

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

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

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

[0113] 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 transparently 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. Exemplarily, 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.

[0114] However, in the reconnection process of the above Bluetooth devices, the master device (such as the above Bluetooth headset) pages the slave device (such as the above mobile phone) through BT's 79 channel frequency hopping, and the slave device also scans and pages on BT's 79 channels with a preset duty cycle, and the paging can only be successful when both are in the same channel at the same time. Since the master device has more paging channels and the preset duty cycle of the slave device is usually low, the paging process takes a long time, resulting in a slow reconnection speed of the Bluetooth device.

[0115] 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 is slow, affecting the user experience.

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

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

[0118] Figure 7 This is a flowchart of a Bluetooth communication system provided by an embodiment of the present application, which involves a process in which a first Bluetooth device connects back to a second Bluetooth device in the Bluetooth communication system, and specifically includes the following steps S701 to S705.

[0119] S701, the first Bluetooth device sends indication information via BLE and sends a paging message via BT.

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

[0121] In this embodiment, the indication information is used to instruct the second Bluetooth device to increase the scanning duty cycle of BT, which usually 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 a device access code DAC, address information, etc., and the second duty cycle may be 11.25ms / 37.5ms.

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

[0123] In this embodiment, the first Bluetooth device usually starts to send indication information through BLE and sends a paging message through BT after detecting the first event. Exemplarily, the first event is that the Bluetooth function of the first Bluetooth device is successfully started. For example, the mobile phone automatically starts the Bluetooth function after turning on the phone, or starts the Bluetooth function according to the user's operation of the Bluetooth control. The TWS Bluetooth headset automatically starts the Bluetooth function after the headphone 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.

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

[0125] 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 usually scans paging messages based on BT. However, since the second Bluetooth device usually cannot sense whether there are other Bluetooth devices paging itself, its BT usually maintains the preset first duty cycle scanning. In order to save device power consumption, the first duty cycle is usually low. Exemplarily, the first duty cycle is 11.25ms / 1.28s.

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

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

[0128] It should be noted that the second Bluetooth device receives 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 safety of the second Bluetooth device, after the second Bluetooth device scans the indication information through BLE, it needs to identify the indication information according to 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.

[0129] In some embodiments, the indication information carries the unique identification information of the first Bluetooth device, such as the 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 according to the unique identification information. If the first Bluetooth device is paired with the second Bluetooth device, it means that the two Bluetooth devices are mutually trusted devices, and the indication information is recognized. Subsequently, the second Bluetooth device obtains the second duty cycle according to the indication information, and controls BT to scan with the second duty cycle.

[0130] In other embodiments, the indication information carries unique identification information of the second Bluetooth device, such as a second DAC. Since the second DAC is information that can only be obtained by a Bluetooth device trusted by the second Bluetooth device, after receiving the indication information, the second Bluetooth device can directly obtain the second duty cycle according to the indication information and control BT to scan with the second duty cycle.

[0131] Regarding the acquisition of the second duty cycle, in some embodiments, the indication information carries the second duty cycle. Based on this, after the second Bluetooth device scans the indication information 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 locally and controls BT to scan with the second duty cycle.

[0132] S704: After the second Bluetooth device receives the paging message through BT scanning, it establishes a Bluetooth connection with the main device according to the paging message.

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

[0134] 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 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 during the entire 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.

[0135] 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 increasing 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 sends the paging message through BT at the same time, the second Bluetooth device usually receives the indication information through BLE first, thereby increasing the reconnection speed of BT.

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

[0137] 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 larger 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.

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

[0139] Since the second duty cycle is relatively large, the device power consumption of the second Bluetooth device is relatively 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.

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

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

[0142] The following takes the case where the first Bluetooth device is a TWS Bluetooth headset, the second Bluetooth device is a mobile phone, and the first Bluetooth device sends indication information through BLE and sends a paging message through BT to connect back to the second Bluetooth device as an example, and specifically describes the process of the first Bluetooth device connecting back to the second Bluetooth device in the above Bluetooth communication system.

[0143] The TWS Bluetooth headset includes a main headset and a secondary headset, and both the main headset and the secondary headset support BT&BLE dual-mode Bluetooth. The main headset can be connected to the mobile phone alone or with the assistance of the secondary headset. The details are as follows.

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

[0145] Figure 8 This is a flow chart of a method for reconnecting a Bluetooth device provided by an embodiment of the present application. The method involves a process in which a main headset reconnects to a mobile phone alone, and specifically includes the following steps S801 to S812.

[0146] S801, the mobile phone uses BLE and BT to scan, wherein the scanning duty cycle of BT is the first duty cycle scanning.

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

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

[0149] In some embodiments, the first event is that the Bluetooth function is activated after the TWS Bluetooth headset opens the cover. Based on the previous description, it can be seen that the earphone box of the TWS Bluetooth headset can detect the opening and closing state of the cover. When the earphone box detects that the cover changes from a closed state to an open state, the earphone box confirms that the cover opening event has occurred, and actively notifies the main earphone and the auxiliary earphone of the cover opening event. After receiving the cover opening event, the main earphone and the auxiliary earphone start the Bluetooth function and establish a Bluetooth connection, which is referred to as the second Bluetooth connection in this embodiment.

[0150] In some embodiments, the indication information is a BLE broadcast message, which carries the unique identification information of the mobile phone and the second duty cycle information, and 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 can be understood that since the indication 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 indication information, and will not affect other electronic devices.

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

[0152] S804-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.

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

[0154] 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 can execute S806 first and then S805.

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

[0156] For example, after receiving the 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.

[0157] S808, after the preset time has expired or a response message sent by 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.

[0158] S809, the BT of the master headset sends a paging message to the mobile phone.

[0159] S810-S811, after the BT of the mobile phone receives the paging message based on the second duty cycle scanning, it 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 S601-S604, which will not be repeated in this embodiment.

[0160] S812, the BT of the mobile phone resumes scanning with the first duty cycle.

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

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

[0163] Fig. 9 1 is a flow chart of a method for reconnecting a Bluetooth device provided by another embodiment of the present application. 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.

[0164] S901, the mobile phone uses BLE and BT to scan, wherein the scanning duty cycle of BT is the first duty cycle scanning.

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

[0166] S902-S903, after detecting the first event, the primary earphone reconnects to the secondary earphone and establishes a Bluetooth connection with the secondary earphone.

[0167] In this embodiment, the Bluetooth connection established between the primary headset and the secondary headset is usually a BT connection, and of course it can also be a BLE connection, which is not limited in this embodiment. After the primary headset and the secondary headset establish a Bluetooth connection, they can send information to each other through the Bluetooth link. In addition, the first event is specifically described in S802, which will not be repeated here.

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

[0169] The indication information is described in detail above and will not be described again here. In addition, the preset time may 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.

[0170] Optionally, the slave earphone may also send instruction information to the mobile phone via BLE according to the instruction of the master earphone.

[0171] S905, the master headset sends a paging message to the mobile phone via BT.

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

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

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

[0175] 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 described in detail in this embodiment.

[0176] 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 first scan the indication information and perform subsequent operations to increase the BT scanning duty cycle according to the indication information, so as to quickly scan the paging message. The details can also be referred to in the relevant descriptions of S703~S704.

[0177] S911, the BT of the mobile phone resumes scanning with the first duty cycle.

[0178] In this embodiment, the TWS Bluetooth headset notifies the mobile phone to increase the BT scanning duty cycle through the BLE broadcast of the secondary headset, and at the same time reconnects to the mobile phone through the BT of the main headset. Since 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 reconnection process with the main headset, which can quickly increase the reconnection speed.

[0179] With the development of Bluetooth technology, some first Bluetooth devices support dual connection, that is, support simultaneous connection with two second Bluetooth devices. For a first Bluetooth device supporting dual connection, if it is paired with the two second Bluetooth devices that it has been connected to recently, then after the first Bluetooth device starts the Bluetooth function, it will serially connect back to the two second Bluetooth devices. For example, Figure 5 In the , TWS Bluetooth headset supports connecting to mobile phone 1 and mobile phone 2 at the same time. After the Bluetooth function of the TWS Bluetooth headset is activated, if the Bluetooth of mobile phone 1 and mobile phone 2 are both paired, the TWS Bluetooth headset will serially connect back to mobile phone 1 and mobile phone 2. During the serial connection process, the TWS Bluetooth headset can first connect back to mobile phone 1, then connect back to mobile phone 2; or it can first connect back to mobile phone 2, then connect back to mobile phone 1.

[0180] In the process of the first Bluetooth device serially connecting back to multiple second Bluetooth devices, the first Bluetooth device can also use the Bluetooth device connection method provided in the embodiment of the present application to connect back. The difference is that the first Bluetooth device only needs to broadcast the indication information once to notify each second Bluetooth device to increase its scanning duty cycle, thereby increasing the speed of the first Bluetooth device connecting back to each second Bluetooth device, thereby increasing the overall connection speed of the serial connection.

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

[0182] Fig.10 It 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, and specifically includes the following steps S1000 to S1008.

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

[0184] The reconnection process between the TWS Bluetooth headset and the mobile phone 1 can be seen in Figure 8 or Fig. 9 , I will not go into details here.

[0185] 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. After 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), it increases the scanning duty cycle of BT according to the indication message.

[0186] S1001, mobile phone 2 uses BLE and BT to scan, wherein the scanning duty cycle of BT is the first duty cycle scanning.

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

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

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

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

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

[0192] Among them, the specific content of S1002~S1008 can be found in S906~S911, which will not be repeated here.

[0193] In this embodiment, the TWS Bluetooth headset can simultaneously notify two mobile phones to increase the BT scanning duty cycle based on a BLE broadcast, and the later connected mobile phone 2 can also increase the BT scanning 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, with a significant speed improvement effect.

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

[0195] 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 the present application.

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

[0197] 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 the above-mentioned embodiments is implemented.

[0198] The present application also provides a chip, see Fig.11 As shown, the chip includes a processor and a memory, in which a computer program is stored. When the computer program is executed by the processor, the method executed by the first Bluetooth device or the second Bluetooth device in the above embodiments is implemented.

[0199] An embodiment of the present application also 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.

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

[0201] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or 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. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0202] 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).

[0203] In the embodiments provided in the present application, the division of each framework or module is only a logical function division. There may be other division methods in actual implementation, 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, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, 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.

[0204] Those skilled in the art can 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.

[0205] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0206] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope 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 automatic reconnection method and system based on low-power-consumption Bluetooth

    CN113115291A

  • Wireless connection method and electronic equipment

    CN114363871A

  • Bluetooth connection control method, system and equipment

    CN116056051A

  • Bluetooth connection method, device and system

    CN116074986A

  • Bluetooth reconnection method and related apparatus

    WO2021027666A1