Bluetooth back connection method and device, information storage method and device, and terminal equipment
By determining the reconnection information in the terminal device and performing multiple Bluetooth connections, the problems of Bluetooth reconnection speed and accuracy are solved, enabling fast and accurate connection of multiple devices in the same group of Bluetooth devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2022-11-23
- Publication Date
- 2026-07-21
AI Technical Summary
Existing Bluetooth reconnection solutions need to be optimized in terms of connection speed and accuracy between electronic devices, especially when multiple devices are in the same group of Bluetooth devices, reconnection errors are prone to occur.
The terminal device determines the reconnection information, generates the information based on the device information of the same group of Bluetooth devices, and establishes a Bluetooth connection with the target electronic device in the same group, including classic Bluetooth and LE Audio connections, and stores the device information for quick reconnection.
It improves the speed and accuracy of Bluetooth reconnection, avoids connection failures caused by device switching or changes in master-slave relationship in traditional solutions, and enhances the versatility and efficiency of Bluetooth reconnection.
Smart Images

Figure CN116156470B_ABST
Abstract
Description
[0001] This application claims priority to Chinese Patent Application No. 202111396621.2, filed on November 23, 2021, entitled "Bluetooth Reconnection Method and Apparatus, Information Storage Method and Apparatus, Terminal Equipment", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of communication technology, specifically to a Bluetooth reconnection method and apparatus, an information storage method and apparatus, and a terminal device. Background Technology
[0003] Bluetooth is a short-range wireless communication technology with advantages such as low cost, low power consumption, fast data transmission, and wide application range. It has become one of the mainstream communication technologies supported by most electronic devices on the market. To enable faster Bluetooth connections between electronic devices, they can reconnect to other devices with which they have previously established a Bluetooth connection. Currently, the Bluetooth reconnection scheme still needs further optimization. Summary of the Invention
[0004] This application provides a Bluetooth reconnection method and apparatus, an information storage method and apparatus, a terminal device, and a storage medium, which can improve the Bluetooth reconnection speed of the terminal device and improve the accuracy of Bluetooth reconnection.
[0005] This application provides a Bluetooth reconnection method applied to a terminal device, the method comprising: Determine the reconnection information, which is generated based on the device information of one or more electronic devices that have previously established a Bluetooth connection with the terminal device, wherein the one or more electronic devices belong to the same group of Bluetooth devices; Based on the pending reconnection information, establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices.
[0006] This application provides an information storage method applied to a terminal device, the method comprising: Establish a classic Bluetooth connection and a first LE Audio connection with a first electronic device, and establish a second LE Audio connection with a second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices; The device information of the first electronic device and the device information of the second electronic device are stored in the same information combination set. The same information combination set is used to determine the reconnection information to be triggered. The reconnection information to be triggered is used to trigger a reconnection with at least one target electronic device in the same group of Bluetooth devices.
[0007] This application provides a Bluetooth reconnection device for use in a terminal device, the device comprising: The information determination module is used to determine the reconnection information, which is generated based on the device information of one or more electronic devices that have previously established a Bluetooth connection with the terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices. A Bluetooth connection module is used to establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices based on the reconnection information.
[0008] This application provides an information storage device applied to a terminal device, the device comprising: A Bluetooth connectivity module is used to establish a classic Bluetooth connection and a first LE Audio connection with a first electronic device, and to establish a second LE Audio connection with a second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices; The storage module is used to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set. The same information combination set is used to determine the reconnection information to be triggered to reconnect with at least one target electronic device in the same group of Bluetooth devices.
[0009] This application provides a terminal device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to implement any of the methods described above.
[0010] This application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the methods described above.
[0011] The Bluetooth reconnection method and apparatus, information storage method and apparatus, terminal device, and storage medium provided in this application embodiment allow the terminal device to determine reconnection information. This reconnection information is generated based on device information of one or more electronic devices that have previously established Bluetooth connections with the terminal device. These one or more electronic devices belong to the same group of Bluetooth devices. Based on the reconnection information, the terminal device can establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices. The terminal device can automatically reconnect to each target electronic device in the same group of Bluetooth devices that needs to be connected, thereby improving the Bluetooth reconnection speed and accuracy of the terminal device. Moreover, the Bluetooth reconnection scheme provided in this application embodiment is implemented only on the terminal device side, eliminating the complex design of each electronic device in the same group of Bluetooth devices, thus improving its versatility. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1A This is an application scenario diagram of the Bluetooth reconnection method in one embodiment; Figure 1B This is an application scenario diagram of the information storage method in one embodiment; Figure 2 Here is a flowchart of a Bluetooth reconnection method in one embodiment; Figure 3 This is a flowchart illustrating, in one embodiment, at least one target electronic device in the same group of Bluetooth devices establishing a Bluetooth connection based on reconnection information. Figure 4A This is a timing diagram of a Bluetooth reconnection method in one embodiment; Figure 4B This is a timing diagram of the Bluetooth reconnection method in another embodiment; Figure 5 A flowchart of a Bluetooth reconnection method in another embodiment; Figure 6 This is a timing diagram illustrating Bluetooth connection of a terminal device in one embodiment. Figure 7 Here is a flowchart of an information storage method in one embodiment; Figure 8 This is a block diagram of a Bluetooth reconnection device in one embodiment; Figure 9 This is a block diagram of an information storage device in one embodiment; Figure 10 This is a structural block diagram of a terminal device in one embodiment. Detailed Implementation
[0014] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0015] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0016] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first electronic device may be referred to as a second electronic device, and similarly, a second electronic device may be referred to as a first electronic device. Both the first electronic device and the second electronic device are electronic devices, but they are not the same electronic device. The term "multiple" as used in this application refers to two or more. The term "and / or" as used in this application refers to one of the solutions, or any combination of multiple solutions.
[0017] Figure 1A This is a diagram illustrating an application scenario of the Bluetooth reconnection method in one embodiment. For example... Figure 1A As shown, electronic devices 210 and 220 belong to the same group of Bluetooth devices, and both electronic devices 210 and 220 have previously established a Bluetooth connection with terminal device 10. Terminal device 10 may include, but is not limited to, mobile phones, smart wearable devices, in-vehicle terminals, tablets, PCs (Personal Computers), PDAs (Personal Digital Assistants), etc. Electronic devices 210 and 220 may include, but are not limited to, headphones, mobile phones, wearable devices, speaker devices, smart home devices, etc. In one implementation, electronic devices 210 and 220 can be paired devices. For example, electronic devices 210 and 220 may belong to the same headphone device, with electronic device 210 being the left earphone and electronic device 220 being the right earphone, or electronic device 210 being the right earphone and electronic device 220 being the left earphone, etc. Further, the headphone device may be a TWS (True Wireless Stereo) headphone.
[0018] It should be noted that the same group of Bluetooth devices may also include other electronic devices besides electronic devices 210 and 220, and is not limited to them. Figure 1A Electronic devices 210 and 220 are included.
[0019] The terminal device can determine the reconnection information, which may be generated based on the device information of electronic devices 210 and 220. Based on this reconnection information, the terminal device can establish a Bluetooth connection with electronic devices 210 and / or 220 belonging to the same group of Bluetooth devices. The terminal device can also send a reconnection request to electronic devices 210 and / or 220 based on this reconnection information to establish a Bluetooth connection with them.
[0020] Terminal device, electronic device 210, and electronic device 220 can all be electronic devices supporting dual-mode Bluetooth. Electronic devices supporting dual-mode Bluetooth can refer to those that simultaneously support both the classic Bluetooth protocol and the BLE (Bluetooth Low Energy) protocol. Terminal device, electronic device 210, and electronic device 220 can also be electronic devices supporting single-mode Bluetooth. For example, they can be electronic devices that only support the classic Bluetooth protocol, or only support the BLE protocol, or only support the LE Audio Bluetooth protocol (the relevant Bluetooth protocols can be found in the relevant regulations of the Bluetooth standards organization and may evolve with the standard). In some embodiments, the above devices may also support LE Audio-related Bluetooth protocols but not the classic Bluetooth protocol; this is not limited here. The classic Bluetooth protocol can support data transmission with large data volumes, while the BLE protocol can support data transmission with high real-time requirements.
[0021] For example, Figure 1B This is an application scenario diagram of an information storage method in one embodiment. Now, combined with... Figure 1B The process of establishing a Bluetooth connection between the terminal device and electronic devices 210 and 220 is explained.
[0022] Terminal device, electronic device 210, and electronic device 220 can all be electronic devices supporting Bluetooth dual-mode. They can all simultaneously support both the classic Bluetooth protocol and the BLE Audio (Bluetooth Low Energy Audio) protocol. The classic Bluetooth protocol generally refers to Bluetooth protocols below version 4.0, while the BLE protocol generally refers to Bluetooth protocols above version 4.0. BLE Audio technology solves the problem that BLE connections can only transmit small amounts of data and not audio data. The BLE Audio protocol supports LC3 (Low Complexity Communications Codec) encoded audio data, allowing audio data transmission to better balance power consumption, real-time performance, and sound quality. Terminal device, electronic device 210 and / or electronic device 220 may also be electronic devices that support Bluetooth single mode. For example, they may be electronic devices that only support the classic Bluetooth protocol or electronic devices that only support the BLE protocol. Alternatively, terminal device, electronic device 210 and / or electronic device 220 may also be devices that support LE Audio-related Bluetooth protocols but do not support the classic Bluetooth protocol. No restrictions are imposed here.
[0023] To meet users' audio transmission needs in different scenarios, for example, when listening to high-definition music, the sound quality of LDAC encoding transmitted based on the classic Bluetooth protocol may be better than that of LC3 encoding supported by the BLE Audio protocol; therefore, audio data transmission can be based on the classic Bluetooth protocol. When playing games on a terminal device, audio data transmission based on the BLE Audio protocol can reduce latency. Terminal device 10 can simultaneously establish a classic Bluetooth connection and a BLE Audio Bluetooth connection with electronic device 210, and terminal device 10 can also establish a BLE Audio Bluetooth connection with electronic device 220. Alternatively, terminal device 10 can simultaneously establish a classic Bluetooth connection with electronic device 210 and a BLE Audio Bluetooth connection with electronic device 220; or, terminal device 10 can simultaneously establish a BLE Audio Bluetooth connection with both electronic devices 210 and 220; or, terminal device 10 can simultaneously establish a classic Bluetooth connection with both electronic devices 210 and 220. Understandably, terminal device 10, electronic device 210, or electronic device 220 may not support Classic Bluetooth. For example, they may only support establishing LE Audio Bluetooth connections based on BLE connections. In this case, terminal device 10 can establish separate LE Audio Bluetooth connections with electronic device 210 and electronic device 220 respectively. Terminal device 10 can store the device information of electronic device 210 and electronic device 220 in the same information set. When the terminal device needs to reconnect with the same group of Bluetooth devices belonging to electronic devices 210 and 220, it can determine the reconnection information from this information set and reconnect with electronic device 210 and / or electronic device 220 via Bluetooth.
[0024] In some embodiments, a Bluetooth connection (either a classic Bluetooth connection or a BLE connection) may also be established between electronic device 210 and electronic device 220 to ensure data synchronization between electronic devices 210 and electronic device 220 that belong to the same group of Bluetooth devices.
[0025] In some embodiments, after the terminal device and the electronic device 210 establish a classic Bluetooth connection, the electronic device 220 can monitor the classic Bluetooth connection between the terminal device and the electronic device 210, or the electronic device 210 can synchronize the data transmitted between itself and the terminal device through the classic Bluetooth connection to the electronic device 220, so as to ensure that when the terminal device transmits data with the electronic device 210 through the classic Bluetooth connection, the electronic device 220 can also synchronously obtain the transmitted data.
[0026] After the terminal device establishes a first LE Audio Bluetooth connection with electronic device 210 and a second LE Audio Bluetooth connection with electronic device 220, it can synchronously send audio data to electronic device 210 and electronic device 220 through the first LE Audio Bluetooth connection and the second LE Audio Bluetooth connection, respectively, so as to ensure that the audio data received by electronic device 210 and electronic device 220 are synchronized.
[0027] Maintaining both LE Audio Bluetooth connections and Classic Bluetooth connections simultaneously between the same group of Bluetooth devices and the terminal device (the terminal device can establish a Classic Bluetooth connection only with the master device in the same group of Bluetooth devices) allows you to take advantage of the advantages of both Bluetooth protocols and facilitates quick switching.
[0028] like Figure 2 As shown, in one embodiment, a Bluetooth reconnection method is provided, which can be applied to the aforementioned terminal device. The method may include the following steps: Step 210: Determine the reconnection information. This reconnection information is generated based on the device information of one or more electronic devices that have previously established a Bluetooth connection with the terminal device. These one or more electronic devices belong to the same group of Bluetooth devices.
[0029] In some embodiments, when the terminal device is in a reconnection state, reconnection information can be determined, and Bluetooth reconnection can be performed based on the reconnection information. The triggering condition for the terminal device to enter the reconnection state can be set according to actual needs. For example, the terminal device can be triggered to enter the reconnection state when the Bluetooth module is turned on; or when the terminal device detects that the Bluetooth connection with any electronic device has been lost; or when the terminal device detects that the Bluetooth connection with all electronic devices has been lost, etc., but not limited to these.
[0030] In this embodiment, the reconnection information can be generated based on device information of one or more electronic devices belonging to the same group of Bluetooth devices. This reconnection information can be used to characterize the same group of Bluetooth devices, or it can be used to characterize any electronic device within the same group of Bluetooth devices. For example, the reconnection information may include the BLE addresses corresponding to each electronic device in the same group of Bluetooth devices, or it may include the SIRK (Set Identity Resolving Key) corresponding to each electronic device in the same group of Bluetooth devices; or it may include the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices, etc., but is not limited to these.
[0031] In some embodiments, the terminal device may store connection records, which can be used to record device information corresponding to each electronic device that has previously established a Bluetooth connection with the terminal device. The device information may include, but is not limited to, at least one of the following: classic Bluetooth address, BLE address, device name, and SIRK (Set Identity Resolving Key). The BLE address can be used to identify the device identity of the electronic device in LE Audio Bluetooth technology.
[0032] Furthermore, the terminal device can store the device information of various electronic devices belonging to the same Bluetooth group in the same information set in the connection record. BLE Audio technology provides CSIP (Coordinated Set Identification Profile), which allows various electronic devices belonging to the same Bluetooth group to achieve coordination and synchronization when interacting with other external devices (such as the terminal device of this application). Based on CSIP, the terminal device can accurately identify individual electronic devices belonging to the same Bluetooth group as the same group. For example, each electronic device belonging to the same Bluetooth group may correspond to the same SIRK. The terminal device can determine the group based on the obtained SIRKs of each electronic device and identify electronic devices with the same SIRK as belonging to the same Bluetooth group.
[0033] Bluetooth reconnection refers to re-establishing a Bluetooth connection with a previously connected electronic device based on the connection record after disconnection. A Bluetooth connection can be at least one of Classic Bluetooth, LE Audio Bluetooth, or BLE Bluetooth. Establishing a Bluetooth connection can be understood as establishing a communication link capable of data transmission according to the relevant Bluetooth protocol. For example, establishing a Classic Bluetooth connection can be understood as establishing a physical link such as an ACL (Asynchronous Connectionless) link (in some Bluetooth standards, an ACL link can be an asynchronous connection-oriented link) or a SCO (Synchronous Connection Oriented) link, or it can include establishing a transmission link for upper-layer protocols (such as A2dp / HFP). There are no restrictions on this; the specifics depend on business requirements or the relevant Bluetooth protocol specifications.
[0034] In traditional Bluetooth reconnection schemes, when a terminal device reconnects, it typically only reconnects to one electronic device (e.g., only the electronic device that last established a Bluetooth connection). For multiple electronic devices in the same group of Bluetooth devices, reconnection errors may occur. For example, a pair of TWS earbuds can be considered a group of Bluetooth devices. If the terminal device last established a Bluetooth connection with earbud A, then when the terminal device reconnects, it will only reconnect to earbud A. If the user is currently using earbud B, the reconnection will fail.
[0035] In this embodiment of the application, the terminal device can determine the reconnection information based on the device information of one or more electronic devices belonging to the same group of Bluetooth devices, and reconnect to at least one target electronic device in the same group of Bluetooth devices that needs to be connected via Bluetooth, so as to ensure the accuracy and success rate of the reconnection.
[0036] In some embodiments, the terminal device may determine the same group of Bluetooth devices to be reconnected to, and determine the reconnection information from the information combination set corresponding to the same group of Bluetooth devices to be reconnected to. The same group of Bluetooth devices to be reconnected to may be determined according to a preset reconnection rule, which may include, but is not limited to: reconnecting with the electronic device that most recently established a Bluetooth connection with the terminal device, reconnecting with the electronic device that most recently disconnected from the terminal device via Bluetooth, reconnecting with the electronic device that has established the most Bluetooth connections with the terminal device, and reconnecting with an electronic device specified by the user, etc.
[0037] The same group of Bluetooth devices to be reconnected to, as determined by the reconnection rules, may include, but is not limited to, any of the following: The same group of Bluetooth devices to be reconnected to is a group of Bluetooth devices belonging to the electronic device that most recently established a Bluetooth connection with the terminal device; the same group of Bluetooth devices to be reconnected to is a group of Bluetooth devices belonging to the electronic device that most recently disconnected from the terminal device; the same group of Bluetooth devices to be reconnected to is a group of Bluetooth devices belonging to the electronic device that has established the most Bluetooth connections with the terminal device; or the same group of Bluetooth devices to be reconnected to is a group of Bluetooth devices determined based on detected setting operations, etc. Users can perform setting operations in the Bluetooth settings interface provided by the terminal device to select an electronic device or a group of Bluetooth devices to connect to. This Bluetooth settings interface may include device information of each electronic device that has previously established a Bluetooth connection stored by the terminal device, or group information used to characterize each group of Bluetooth devices that has previously established a Bluetooth connection with the terminal device, such as the group number corresponding to each group of Bluetooth devices, the SIRK corresponding to each group of Bluetooth devices, and the classic Bluetooth address corresponding to each group of Bluetooth devices, but is not limited to these.
[0038] It should be noted that the information set corresponding to the same group of Bluetooth devices can store device information of each electronic device in the same group of Bluetooth devices, or it can only store information used for reconnection in the same group of Bluetooth devices. For example, the information set can only store the Bluetooth address and SIRK shared by each electronic device in the same group of Bluetooth devices, or the information set can only store the Bluetooth address shared by each electronic device in the same group of Bluetooth devices, or the information set can only store the SIRK shared by each electronic device in the same group of Bluetooth devices, or the information set can only store the BLE address shared by each electronic device in the same group of Bluetooth devices, etc.
[0039] Step 220: Based on the reconnection information, establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices.
[0040] The terminal device reconnects to at least one target electronic device belonging to the same group of Bluetooth devices. This target electronic device can be one of the devices in the same group that needs to establish a Bluetooth connection. This Bluetooth connection can include, but is not limited to, at least one of LE Audio Bluetooth connection, BLE connection, and classic Bluetooth connection. Further, the Bluetooth connection can include LE Audio Bluetooth connection and / or classic Bluetooth connection. Taking a reconnection via LE Audio Bluetooth connection as an example, the target electronic device can be an electronic device in the same group that sends an LE Audio broadcast signal. Sending an LE Audio broadcast signal indicates that the electronic device needs to establish a LE Audio Bluetooth connection with the terminal device. It is understood that when the target electronic device is the master device in the same group of Bluetooth devices, the terminal device can establish a classic Bluetooth connection and / or a LE Audio Bluetooth connection with it; when the target electronic device is a slave device in the same group of Bluetooth devices, the terminal device only establishes a LE Audio Bluetooth connection with it.
[0041] In some embodiments, electronic devices within the same group of Bluetooth devices share the same classic Bluetooth address. For example, relative to a terminal device, they share the same classic Bluetooth address. This means that the classic Bluetooth addresses of all electronic devices within the same group of Bluetooth devices are identical relative to the terminal device. This allows the terminal device to perceive the same group of Bluetooth devices as a single classic Bluetooth device, facilitating master-slave switching between electronic devices. Each electronic device within the same group of Bluetooth devices corresponds to a different BLE address. Each electronic device within the same group of Bluetooth devices may have a corresponding master-slave relationship. The same group of Bluetooth devices may include one electronic device with a master relationship and at least one electronic device with a slave relationship. The electronic device with a master relationship can directly establish a classic Bluetooth connection with other external devices (such as the aforementioned terminal device). The electronic device with a slave relationship does not establish a classic Bluetooth connection with other external devices but instead listens for classic Bluetooth connections between the electronic device with the master relationship and other external devices. Alternatively, the electronic device with the master relationship may forward data transmitted via classic Bluetooth connections with other external devices to the electronic device with the slave relationship, thereby achieving master-slave synchronization among the electronic devices within the same group of Bluetooth devices.
[0042] In some embodiments, a group of Bluetooth devices may include a default master device and at least one default slave device. The default master device refers to the electronic device in the group of Bluetooth devices that is the default master / slave device at the factory, while the default slave device refers to the electronic device in the group of Bluetooth devices that is the default slave device at the factory. The BLE address of the default master device in the group of Bluetooth devices is the same as the classic Bluetooth address shared by all electronic devices in the group, while the BLE address of the default slave device in the group of Bluetooth devices is different from the classic Bluetooth address shared by all electronic devices in the group. For example, if the classic Bluetooth address shared by all electronic devices in the group of Bluetooth devices is address A, then the BLE address of the default master device is also address A, while the BLE address of the default slave device is address B.
[0043] During the use of the same group of Bluetooth devices, the master-slave relationship among the electronic devices in the same group may change, such as from master to slave, or vice versa. In traditional Bluetooth backconnect schemes, the terminal device typically only reconnects to one electronic device when making a backconnection. For example, because in related technologies, the master and slave devices share the same classic Bluetooth address relative to the terminal device, when establishing a classic Bluetooth connection, the terminal device only needs to record the Bluetooth address of the default master device. According to the rules of related technologies, the terminal device defaults to reconnecting to the Bluetooth address corresponding to the default master device. Therefore, when reconnecting, the terminal device will only establish an LE Audio Bluetooth connection with the electronic device with BLE address A (i.e., the default master device). In some cases (such as when the default master device is placed in a box or powered off), if the current user is using an electronic device with BLE address B (i.e., the default slave device) in the same group of Bluetooth devices, the master-slave relationship of the default slave device changes to master, resulting in a master-slave switch. In this case, the terminal device cannot successfully establish an LE Audio Bluetooth connection with the electronic device with BLE address B in the same group of Bluetooth devices.
[0044] In this embodiment, the terminal device, based on the reconnection information, can establish a Bluetooth connection with any electronic device belonging to the same group of Bluetooth devices. For example, if the terminal device receives an LE Audio broadcast signal from an electronic device with BLE address B, and recognizes that the electronic device with BLE address B and the electronic device with BLE address A belong to the same group of Bluetooth devices, then it establishes an LE Audio Bluetooth connection with the electronic device with BLE address B. This ensures the accuracy of the reconnection, and allows simultaneous reconnection when there are multiple electronic devices in the same group, improving reconnection efficiency. Furthermore, it eliminates the need to change the Bluetooth address for each electronic device in the same group, avoiding the complex design required for each device within the same group.
[0045] It should be noted that the Bluetooth address configuration scheme for each electronic device in the same group of Bluetooth devices is not limited to the schemes described above. For example, the default BLE address of the master device may also be different from the shared classic Bluetooth address. If the shared classic Bluetooth address for all electronic devices in the same group of Bluetooth devices is address A, then the default BLE address of the master device is address C. As another example, when a master-slave switch occurs within the same group of Bluetooth devices, the electronic device whose master-slave relationship changes from slave to master will also change its BLE address to be the same as the classic Bluetooth address. If the shared classic Bluetooth address for all electronic devices in the same group of Bluetooth devices is address A, and the default slave device's BLE address is address B, when the default slave device's master-slave relationship changes to master and the default slave device disconnects from the terminal device's Bluetooth connection and / or disconnects and then re-establishes a Bluetooth connection with the terminal device, the BLE address changes back to address A, and so on. This application does not limit the Bluetooth addresses of each electronic device in the same group of Bluetooth devices.
[0046] In this embodiment, the terminal device can establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices based on the reconnection information. The terminal device can automatically reconnect to each target electronic device in the same group of Bluetooth devices, improving both the Bluetooth reconnection speed and accuracy. Furthermore, the Bluetooth reconnection scheme provided in this embodiment is implemented only on the terminal device side, eliminating the need for complex design for each electronic device in the same group of Bluetooth devices, thus offering better versatility.
[0047] In some embodiments, when reconnecting, the terminal device may perform a classic Bluetooth reconnection with one target electronic device in the same group of Bluetooth devices, and a LEAudio Bluetooth reconnection with one or more target electronic devices in the same group of Bluetooth devices; or, when reconnecting, the terminal device may perform only a classic Bluetooth reconnection with one target electronic device in the same group of Bluetooth devices, or only a LEAudio Bluetooth reconnection with one or more target electronic devices in the same group of Bluetooth devices. For example... Figure 3 As shown, the step of establishing a Bluetooth connection with at least one target electronic device from the same group of Bluetooth devices based on the reconnection information may include the following steps: Step 302: Send a first reconnection request based on the classic Bluetooth address. The first reconnection request is used to trigger the establishment of a classic Bluetooth connection between the first target electronic device, which is the master device, and the terminal device in the same group of Bluetooth devices with the current master-slave relationship.
[0048] In some embodiments, the terminal device may first determine the classic Bluetooth address to be reconnected to based on the reconnection rules described above. This could be the classic Bluetooth address of the most recent Bluetooth connection disconnection, the classic Bluetooth address of the most recent Bluetooth connection establishment, or a classic Bluetooth address corresponding to a user-configured electronic device, but is not limited to these. Therefore, the same group of Bluetooth devices to be reconnected to can be determined based on this classic Bluetooth address, which is the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices to be reconnected to.
[0049] It should be noted that in some embodiments, instead of first determining the classic Bluetooth address to be reconnected to, the same group of Bluetooth devices to be reconnected to can be directly determined. The terminal device only needs to determine the same group of Bluetooth devices to be reconnected to, which can be determined according to the reconnection rules in this application. That is, it is not necessary to first determine the same group of Bluetooth devices to be reconnected to based on the classic Bluetooth address to be reconnected to. For example, when the terminal device receives an LE Audio broadcast signal from an electronic device, it can determine whether the electronic device sending the LE Audio broadcast signal belongs to the same group of Bluetooth devices to be reconnected to based on the LE Audio broadcast signal. If it does, the establishment of an LE Audio Bluetooth connection is further triggered without first determining the classic Bluetooth address to be reconnected to.
[0050] The reconnection request information may include a classic Bluetooth address, which is the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices to be reconnected to. The terminal device can send a first reconnection request based on the classic Bluetooth address. If the first target electronic device in the same group of Bluetooth devices to be reconnected to is currently in a connectable state and is within a certain distance range of the terminal device, it can receive the first reconnection request sent by the terminal device. After receiving the first reconnection request, it can establish a classic Bluetooth connection with the terminal device based on the first reconnection request.
[0051] The "connectable state" refers to the first target electronic device being in page scan mode, where it can receive Bluetooth connection requests from the terminal device. Further, this first reconnection request can be a paging data packet. The terminal device can send paging data packets using frequency hopping, and the first target electronic device can scan externally sent paging data packets at fixed intervals. If the first target electronic device detects a paging data packet sent by the terminal device, it receives the first reconnection request and establishes a classic Bluetooth connection with the terminal device. The specific process of a classic Bluetooth connection can be found in the Bluetooth standard protocol.
[0052] Optionally, if the first target electronic device is not currently in a connectable state, or is not within a certain distance range of the terminal device, the first target electronic device cannot receive the first reconnection request, and the terminal device cannot successfully establish a classic Bluetooth connection with the first target electronic device, resulting in a failed classic Bluetooth reconnection. In some embodiments, the terminal device may abandon the classic Bluetooth reconnection. In other embodiments, the same group of Bluetooth devices may perform master-slave switching, for example, selecting an electronic device that can receive the first reconnection request as the master device and establishing a classic Bluetooth connection with the terminal device, or the terminal device may reselect a classic Bluetooth address to reconnect to ensure a successful classic Bluetooth reconnection. Of course, it is understood that when the terminal device reselects a classic Bluetooth address to reconnect to, the corresponding reconnection may be with a different group of Bluetooth devices.
[0053] Step 304: Receive the LE Audio broadcast signal sent by the second target electronic device, and determine whether the second target electronic device belongs to the same group of Bluetooth devices based on the LE Audio broadcast signal and the pending reconnection information. If they belong to the same group of Bluetooth devices, send a second reconnection request to the second target electronic device according to the BLE address corresponding to the LE Audio broadcast signal. The second reconnection request is used to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
[0054] When any electronic device in the same Bluetooth group needs to establish a LE Audio Bluetooth connection with the terminal device, it can be in broadcast mode and send a LE Audio broadcast signal using its own BLE address. If the terminal device receives the LE Audio broadcast signal from the second target electronic device, it can determine whether the second target electronic device belongs to the same Bluetooth group to be reconnected to based on the received LE Audio broadcast signal and the reconnection information. If it does, it can establish a LE Audio Bluetooth reconnection with the second target electronic device. The terminal device can send a second reconnection request to the second target electronic device based on the BLE address corresponding to the received LE Audio broadcast signal to trigger the establishment of a LE Audio Bluetooth connection between the second target electronic device and the terminal device.
[0055] In one specific implementation, the terminal device can send a connection request command (which can be understood as a second reconnection request) to the second target electronic device based on the BLE address in the received LE Audio broadcast signal. This connection request command is used to notify the second target electronic device that an LE Audio Bluetooth connection is about to be established. Upon receiving the connection request command, the second target electronic device can prepare for reception according to the command. For example, the connection request command may include fields such as transmission window offset and transmission window size. The transmission window offset and transmission window size can be used to determine the time interval between the second target electronic device receiving the connection request command and receiving the LE Audio connection data packet. Upon reaching the connection anchor point, the terminal device can send an LE Audio connection data packet to the second target electronic device. After receiving the LE Audio connection data packet, the second target electronic device can return a response signal to the terminal device, thus successfully establishing an LE Audio Bluetooth connection with the terminal device. Specific connection methods can also refer to the relevant Bluetooth protocol specifications.
[0056] In some embodiments, when the terminal device determines, based on the received LE Audio broadcast signal and the reconnection information, that the second target electronic device does not belong to the same group of Bluetooth devices to be reconnected, the terminal device may not respond to the LE Audio broadcast signal and may not establish an LE Audio Bluetooth connection with the second target electronic device.
[0057] It should be noted that when the second target electronic device belongs to the same group of Bluetooth devices to be reconnected, the second target electronic device can be any electronic device in that group of Bluetooth devices. For example, it can be the electronic device currently in a master-slave relationship (i.e., the first target electronic device mentioned above), or it can be an electronic device currently in a slave relationship. It is understood that the first target electronic device and the second target electronic device can be the same electronic device or different electronic devices. In this embodiment, the terminal device can establish dual Bluetooth connections with the same group of Bluetooth devices to meet different needs in different business scenarios and facilitate quick switching.
[0058] In some embodiments, the terminal device determines whether the second target electronic device belongs to the same group of Bluetooth devices to be reconnected based on the received LE Audio broadcast signal and the reconnection information. This determination can be made using any of the following methods: Method 1: The reconnection information may include the classic Bluetooth address shared by the same group of Bluetooth devices to be reconnected, and the same SIRK corresponding to each electronic device in the same group. Since the electronic devices in the same group of Bluetooth devices correspond to the same SIRK, it can be determined whether the second target electronic device belongs to the same group of Bluetooth devices by using the SIRK corresponding to the same group of Bluetooth devices to be reconnected.
[0059] The terminal device can parse the received LE Audio broadcast signal to obtain the specific broadcast information carried by the LE Audio broadcast signal, and calculate the local value based on the SIRK contained in the reconnection information and the specific broadcast information. If the local value is the same as the target field value in the LE Audio broadcast signal, it can be determined that the second target electronic device belongs to the same group of Bluetooth devices.
[0060] In one specific implementation, the LE Audio broadcast signal may include an RSI (resolvable Set Identifier). The RSI may include two parts: 1. a hash sequence generated by the SIRK corresponding to the electronic device; 2. a random sequence generated by random numbers. Specific broadcast information obtained by parsing the LE Audio broadcast signal may include the random sequence of the RSI. The target field value in the LE Audio broadcast signal may refer to the hash sequence of the RSI carried by the LE Audio broadcast signal. Given that the SIRK corresponding to the same group of Bluetooth devices to be reconnected is known, a local value can be calculated based on the SIRK contained in the reconnection information and the random sequence in the parsed RSI. This local value is then compared with the hash sequence of the LE Audio broadcast signal and the RSI. If they match, it can be determined that the second target electronic device belongs to the same group of Bluetooth devices to be reconnected.
[0061] Method 2: As another way to determine whether the second target electronic device belongs to the same group of Bluetooth devices to be reconnected, using the SIRK corresponding to the electronic device, the LE Audio broadcast signal can directly include the SIRK. The terminal device can obtain the SIRK carried in the received LE Audio broadcast signal. If the SIRK carried in the LE Audio broadcast signal is consistent with the SIRK contained in the reconnection information, then it is determined that the second target electronic device belongs to the same group of Bluetooth devices to be reconnected.
[0062] Method 3: The reconnection information may include the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices to be reconnected, and the BLE address of each electronic device in the same group. It should be noted that each electronic device in the same group refers to an electronic device that has established a LE Audio Bluetooth connection with the terminal device. The terminal device can determine whether the BLE address corresponding to the received LE Audio broadcast signal matches any BLE address included in the reconnection information. If the BLE address corresponding to the LE Audio broadcast signal matches any BLE address included in the reconnection information, then the second target electronic device is determined to belong to the same group of Bluetooth devices.
[0063] It should be noted that determining whether the second target electronic device belongs to the same group of Bluetooth devices to be reconnected based on the received LE Audio broadcast signal and the reconnection information is not limited to the methods mentioned above. Other methods can also be used. For example, the same group of Bluetooth devices may correspond to the same identity identifier (such as the same product number or the same random number). The terminal device can determine whether the identity identifier carried by the LE Audio broadcast signal is consistent with the identity identifier contained in the reconnection information. If they are consistent, it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
[0064] For example, Figure 4A This is a timing diagram of a Bluetooth reconnection method in one embodiment. For example... Figure 4A As shown, the first and second earphones belong to the same headphone device, i.e., the same Bluetooth device group. After establishing a Bluetooth connection, the first and second earphones can share the same classic Bluetooth address. When the terminal device reconnects, it can first perform a classic Bluetooth reconnection by sending a first reconnection request to the headphone device based on the classic Bluetooth address to be reconnected (i.e., the classic Bluetooth address shared by the first and second earphones). Assuming the current master earphone is the first earphone, if the first earphone receives the first reconnection request, it can establish a classic Bluetooth connection with the terminal device. Optionally, after the first earphone establishes a classic Bluetooth connection with the terminal device, the first and second earphones can synchronize data. For example, the second earphone can monitor the classic Bluetooth connection between the first earphone and the terminal device, or the first earphone can synchronize the data transmitted with the terminal device through the classic Bluetooth connection to the second earphone.
[0065] The first earpiece can be in broadcast mode and transmit LE Audio broadcast signals. If the terminal device receives the LE Audio broadcast signal, it can determine whether the electronic device transmitting the LE Audio broadcast signal belongs to the same Bluetooth device group as the first earpiece. Since the LE Audio broadcast signal is transmitted by the first earpiece, the terminal device can determine that they belong to the same Bluetooth device group and send a second reconnection request to the first earpiece based on the first earpiece's BLE address to establish an LE Audio Bluetooth connection with the first earpiece.
[0066] For example, Figure 4B This is a timing diagram of a Bluetooth reconnection method in one embodiment. Figure 4A The difference is that, Figure 4B The second earpiece sends a LE Audio broadcast signal. If the terminal device receives this LE Audio broadcast signal, it can determine whether the electronic device sending the LE Audio broadcast signal belongs to the same group of Bluetooth devices to be reconnected (e.g., whether it belongs to the same group of Bluetooth devices as the first earpiece). If it is determined that the device belongs to the same group of Bluetooth devices to be reconnected (e.g., the first earpiece and the second earpiece belong to the same group of Bluetooth devices), a second reconnection request can be sent to the second earpiece based on the second earpiece's BLE address to establish a LE Audio Bluetooth connection with the second earpiece.
[0067] In this embodiment, the terminal device can quickly and accurately perform classic Bluetooth backconnection and LE Audio Bluetooth backconnection with at least one target electronic device from the same group of Bluetooth devices that simultaneously support classic Bluetooth and BLE Audio. Alternatively, it can also perform classic Bluetooth backconnection with at least one target electronic device from the same group of Bluetooth devices that only support classic Bluetooth, or LE Audio Bluetooth backconnection with at least one target electronic device from the same group of Bluetooth devices that only support BLE Audio, ensuring the success rate and stability of Bluetooth backconnection in different scenarios. Furthermore, the Bluetooth backconnection scheme provided in this embodiment is implemented only on the terminal device side, eliminating the complex design of individual electronic devices within the same group of Bluetooth devices, thus offering better versatility.
[0068] like Figure 5 As shown, in another embodiment, a Bluetooth reconnection method is provided, which can be applied to the aforementioned terminal device. This method may include the following steps: Step 502: Establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices.
[0069] Both the first electronic device and the second electronic device can be electronic devices that are making their first Bluetooth connection with the terminal device, or they can be devices that have established a classic Bluetooth connection with the terminal device but have been restored to factory settings, meaning that the terminal device does not store device information for the first electronic device or the second electronic device.
[0070] The first electronic device can currently be a master device, and the second electronic device can currently be a slave device. The terminal device can determine the classic Bluetooth address and the first BLE address corresponding to the first electronic device, as well as the second BLE address corresponding to the second electronic device. It can establish a classic Bluetooth connection with the first electronic device based on the classic Bluetooth address, establish a first BLE Audio connection with the first electronic device based on the first BLE address, and establish a second BLE Audio connection with the second electronic device based on the second BLE address.
[0071] In one implementation, the terminal device determines the classic Bluetooth address corresponding to the first electronic device, which may include: querying for Bluetooth devices within a first distance range, and determining the classic Bluetooth address corresponding to the first electronic device based on the query response returned by the first electronic device. The terminal device may enable an inquiry mode, in which it may send an inquiry command every first time interval to query for Bluetooth devices within the first distance range. The first electronic device may be in a discoverable state or a discoverable and connectable state. In the discoverable state, the first electronic device enables an inquiry scan mode; in the discoverable and connectable state, both page scan and inquiry scan are enabled, enabling it to scan for the query command sent by the terminal device. When the first electronic device in the discoverable state receives the query command sent by the terminal device, it may return a query response to the terminal device, and the terminal device may determine the classic Bluetooth address corresponding to the first electronic device based on this query response.
[0072] In some embodiments, a first electronic device may enable a broadcast state, in which it may transmit a first LE Audio broadcast signal based on a first BLE address. A terminal device may receive the first LE Audio broadcast signal transmitted by the first electronic device and determine the first BLE address corresponding to the first electronic device based on the first LE Audio broadcast signal. A second electronic device may also enable a broadcast state, in which it may transmit a second LE Audio broadcast signal based on a second BLE address. A terminal device may receive the second LE Audio broadcast signal transmitted by the second electronic device and determine the second BLE address corresponding to the second electronic device based on the second LE Audio broadcast signal.
[0073] The terminal device can establish a first LE Audio connection with the first electronic device based on the first BLE address, establish a classic Bluetooth connection with the first electronic device based on the classic Bluetooth address corresponding to the first electronic device, and establish a second LE Audio connection with the second electronic device based on the second BLE address when it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
[0074] In some embodiments, before establishing a second LEAudio Bluetooth connection with the second electronic device based on the second BLE address, the terminal device may first determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices based on the first LE Audio broadcast signal sent by the first electronic device and the second LE Audio broadcast signal sent by the second electronic device. Determining whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices can be achieved using any of the following methods: Method 1: The first LE Audio broadcast signal includes a first identifier, and the second LE Audio broadcast signal includes a second identifier. After receiving the first LE Audio broadcast signal and the second LE Audio broadcast signal, the terminal device can determine whether the first identifier in the first LE Audio broadcast signal and the second identifier in the second LE Audio broadcast signal are the same. If the first identifier and the second identifier are the same, it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
[0075] Method 2: After receiving the first LE Audio broadcast signal, the terminal device can determine the target SIRK corresponding to the first electronic device based on the first LE Audio broadcast signal. After receiving the second LE Audio broadcast signal, the terminal device can parse the second LE Audio broadcast signal to obtain the target-specific broadcast information carried by the second LE Audio broadcast signal, and calculate the target local value based on the target SIRK and the target-specific broadcast information. It can be determined whether the target local value is the same as the target field value in the second LE Audio broadcast signal. If the target local value is the same as the target field value in the second LE Audio broadcast signal, it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
[0076] Optionally, the first LE Audio broadcast signal may directly carry the target SIRK corresponding to the first electronic device, and the terminal device can obtain the target SIRK by parsing the first LE Audio broadcast signal. The first LE Audio broadcast signal may also carry the first RSI, and the terminal device can obtain the first hash sequence and the first random sequence of the first RSI by parsing the first LE Audio broadcast signal, and then calculate the target SIRK corresponding to the first electronic device from the first hash sequence and the first random sequence.
[0077] The target-specific broadcast information carried by the second LE Audio broadcast signal may include the second random sequence of the second RSI carried by the second LE Audio broadcast signal, and the target field value in the second LE Audio broadcast signal may include the second hash sequence of the second RSI. The target local value can be calculated based on the target SIRK corresponding to the first electronic device and the second random sequence of the second RSI, and the target local value is compared with the second hash sequence of the second RSI. If the two match, it can be determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
[0078] Method 3: The terminal device can determine the target SIRK corresponding to the first electronic device based on the first LE Audio broadcast signal, and determine the SIRK corresponding to the second electronic device based on the second LE Audio broadcast signal. It can also determine whether the target SIRK corresponding to the first electronic device is consistent with the SIRK corresponding to the second electronic device. If they are consistent, it can be determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
[0079] The methods for determining the target SIRK corresponding to the first electronic device and the SIRK corresponding to the second electronic device can be referred to the relevant descriptions in the above embodiments, and will not be repeated here.
[0080] It should be noted that the embodiments of this application do not limit the order in which the first electronic device sends the first LE Audio broadcast signal and the second electronic device sends the second LE Audio broadcast signal. The first electronic device may send the first LE Audio broadcast signal first, followed by the second electronic device sending the second LE Audio broadcast signal; or the second electronic device may send the second LE Audio broadcast signal first, followed by the first electronic device sending the first LE Audio broadcast signal; or both may be sent simultaneously. The embodiments of this application also do not limit the order in which the terminal device determines the first BLE address, the classic Bluetooth address corresponding to the first electronic device, and the second BLE address.
[0081] For example, Figure 6 This is a timing diagram illustrating the Bluetooth connection process of a terminal device in one embodiment. Figure 6As shown, a first electronic device sends a first LE Audio broadcast signal to a terminal device, and the terminal device can obtain the first BLE address corresponding to the first electronic device based on the first LE Audio broadcast signal. A second electronic device sends a second LE Audio broadcast signal to the terminal device, and the terminal device can obtain the second BLE address corresponding to the second electronic device based on the second LE Audio broadcast signal. When the terminal device is in inquiry mode and sends an inquiry command, the first electronic device, which is in a discoverable state (i.e., in inquiry scan mode), can receive the inquiry command and return an inquiry response to the terminal device. The terminal device can obtain the first Classic Bluetooth address corresponding to the first electronic device based on the inquiry response.
[0082] The terminal device can establish a first LE Audio Bluetooth connection with the first electronic device based on the first BLE address, and establish a classic Bluetooth connection with the first electronic device based on the first classic Bluetooth address. The terminal device can determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices. If they belong to the same group, the terminal device establishes a second LE Audio Bluetooth connection with the second electronic device based on the second BLE address. It should be noted that the terminal device can determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices before outputting the connection request information. This application embodiment does not specifically limit the timing of this step. In some embodiments, the first electronic device and the second electronic device can share the same classic Bluetooth address. The first BLE address of the first electronic device can be the same as the classic Bluetooth address, and the second BLE address of the second electronic device can be different from the classic Bluetooth address. Optionally, before the terminal device establishes a Bluetooth connection with the first electronic device and the second electronic device, only one connection request information can be output for the first electronic device and the second electronic device that belong to the same group of Bluetooth devices. This connection request information can be used to indicate that a Bluetooth connection is to be established with the first electronic device and the second electronic device that belong to the same group of Bluetooth devices. Since the first BLE address of the first electronic device is the same as the shared classic Bluetooth address, the same connection information can be displayed. Furthermore, the second LE Audio broadcast signal includes a non-displayable flag, which is used to indicate that the connection information corresponding to the BLE address in the LE Audio broadcast signal is not displayed in the terminal device.
[0083] For the same group of Bluetooth devices, the terminal device only displays one corresponding connection information. The user only needs to perform a Bluetooth connection operation on the terminal device once to trigger the terminal device to establish LE Audio Bluetooth connection with the first electronic device and the second electronic device belonging to the same group of Bluetooth devices, and to establish a classic Bluetooth connection with the first electronic device. It can quickly establish LE Audio Bluetooth and classic Bluetooth connections with devices that support both classic Bluetooth and BLE Audio, combining LE Audio and classic Bluetooth to meet the user's audio transmission needs in different scenarios.
[0084] Step 504: Store the device information of the first electronic device and the device information of the second electronic device in the same information combination set.
[0085] After a terminal device successfully establishes a Bluetooth connection with the first electronic device, it can store the device information of the first electronic device in the connection record. Similarly, after a terminal device successfully establishes a Bluetooth connection with the second electronic device, it can store the device information of the second electronic device in the connection record. Since the first and second electronic devices belong to the same group of Bluetooth devices, their device information can be stored in the same information set within the connection record, facilitating subsequent reconnection.
[0086] Step 506: Determine the same group of Bluetooth devices to be reconnected, and determine the reconnection information from the information combination set corresponding to the same group of Bluetooth devices to be reconnected.
[0087] In some embodiments, if the connection record includes multiple information sets, that is, it stores device information corresponding to each electronic device in multiple groups of Bluetooth devices, with each information set corresponding to a group of Bluetooth devices, then the terminal device can determine the same group of Bluetooth devices to be reconnected to from the multiple groups of Bluetooth devices, and determine the reconnection information from the information set corresponding to the same group of Bluetooth devices to be reconnected to. The reconnection information may include the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices to be reconnected to, and the same SRIK corresponding to each electronic device in the same group of Bluetooth devices; or, the reconnection information may include the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices to be reconnected to, and the BLE address of each electronic device in the same group of Bluetooth devices to be reconnected to, etc.
[0088] Step 508: Send a first reconnection request based on the classic Bluetooth address contained in the reconnection information. This first reconnection request is used to trigger the establishment of a classic Bluetooth connection between the first target electronic device and the terminal device, which is currently the master-slave relationship among the Bluetooth devices in the same group of devices to be reconnected.
[0089] Step 510: Receive the LE Audio broadcast signal sent by the second target electronic device, and determine whether the second target electronic device belongs to the same group of Bluetooth devices to be reconnected based on the LE Audio broadcast signal and the reconnection information. If it does, send a second reconnection request to the second target electronic device according to the BLE address corresponding to the LE Audio broadcast signal. The second reconnection request is used to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
[0090] The descriptions of steps 508 to 510 can be found in the relevant descriptions of the above embodiments, and will not be repeated here.
[0091] In some embodiments, the same group of Bluetooth devices includes the same group of audio output devices, which includes a first audio output device and a second audio output device, and the first audio output device and the second audio output device form a pair of audio output devices.
[0092] In this embodiment of the application, when a terminal device establishes a Bluetooth connection with multiple electronic devices in the same group of Bluetooth devices, the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information set. This facilitates the terminal device to accurately and quickly connect with at least one target electronic device in the same group of Bluetooth devices to be reconnected during subsequent Bluetooth reconnection, thereby improving the success rate and stability of Bluetooth reconnection.
[0093] like Figure 7 As shown, in one embodiment, an information storage method is provided, which can be applied to the aforementioned terminal device. The method may include the following steps: Step 710: Establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices.
[0094] In one embodiment, the device information of the first electronic device includes at least one of the following: the classic Bluetooth address, the first BLE address, the device name, and the SIRK; the device information of the second electronic device includes at least one of the following: the classic Bluetooth address, the second BLE address, the device name, and the SIRK.
[0095] In one embodiment, step 710 may include: receiving a first LE Audio broadcast signal sent by a first electronic device, and determining a first BLE address corresponding to the first electronic device based on the first LE Audio broadcast signal; determining a classic Bluetooth address corresponding to the first electronic device; receiving a second LE Audio broadcast signal sent by a second electronic device, and determining a second BLE address corresponding to the second electronic device based on the second LE Audio broadcast signal; establishing a first LE Audio connection with the first electronic device based on the first BLE address, and establishing a classic Bluetooth connection with the first electronic device based on the classic Bluetooth address corresponding to the first electronic device; and, if it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, establishing a second LE Audio connection with the second electronic device based on the second BLE address.
[0096] In one embodiment, the first electronic device and the second electronic device share the same classic Bluetooth address. The first electronic device's first BLE address is the same as the classic Bluetooth address, while the second electronic device's second BLE address is different from the classic Bluetooth address.
[0097] In one embodiment, the first LE Audio broadcast signal includes a first identity identifier, and the second LE Audio broadcast signal includes a second identity identifier; before establishing a second LE Audio connection with the second electronic device based on the second BLE address, if it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, the method further includes: if the first identity identifier and the second identity identifier are the same, then determining that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
[0098] In one embodiment, when it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, before establishing a second LE Audio connection with the second electronic device based on the second BLE address, the method further includes: determining the SIRK corresponding to the first electronic device based on the first LE Audio broadcast signal; parsing the second LE Audio broadcast signal to obtain target-specific broadcast information carried by the second LE Audio broadcast signal; calculating a target local value based on the SIRK corresponding to the first electronic device and the target-specific broadcast information; if the target local value is the same as the target field value in the second LE Audio broadcast signal, then it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
[0099] Step 720: Store the device information of the first electronic device and the device information of the second electronic device in the same information combination set. The same information combination set is used to determine the reconnection information, which is used to trigger a reconnection with at least one target electronic device in the same group of Bluetooth devices.
[0100] It should be noted that the description of the information storage method provided in the embodiments of this application can be referred to the relevant description of the Bluetooth reconnection method provided in the above embodiments, and will not be repeated here.
[0101] In this embodiment of the application, when a terminal device establishes a Bluetooth connection with multiple electronic devices in the same group of Bluetooth devices, the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information set. This facilitates the terminal device to accurately and quickly connect with at least one target electronic device in the same group of Bluetooth devices to be reconnected during subsequent Bluetooth reconnection, thereby improving the success rate and stability of Bluetooth reconnection.
[0102] like Figure 8 As shown, in one embodiment, a Bluetooth backconnection device 800 is provided, which can be applied to the aforementioned terminal device. The Bluetooth backconnection device 800 may include an information determination module 810 and a Bluetooth connection module 820.
[0103] The information determination module 810 is used to determine the reconnection information, which is generated based on the device information of one or more electronic devices that have previously established a Bluetooth connection with the terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices.
[0104] In one embodiment, the same group of Bluetooth devices includes the same group of audio output devices, which includes a first audio output device and a second audio output device, and the first audio output device and the second audio output device form a pair of audio output devices.
[0105] In one embodiment, the device information includes at least one of the following: the classic Bluetooth address, the BLE address, the device name, and the combined identifier resolution value SIRK corresponding to the electronic device. The reconnection information includes the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices and the same SIRK corresponding to each electronic device in the same group of Bluetooth devices; or, the reconnection information includes the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices and the BLE address of each electronic device in the same group of Bluetooth devices.
[0106] In one embodiment, the same group of Bluetooth devices includes any of the following: The same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that most recently established a Bluetooth connection with the terminal device belongs; The same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that most recently lost its Bluetooth connection with the terminal device belongs; The same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that has established the most Bluetooth connections with the terminal device belongs; The same group of Bluetooth devices is a group of Bluetooth devices determined based on the detected settings operations.
[0107] Bluetooth connectivity module 820 is used to establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices based on reconnection information.
[0108] In one embodiment, each electronic device in the same group of Bluetooth devices shares the same classic Bluetooth address, and each electronic device in the same group of Bluetooth devices corresponds to a different BLE address; and / or, the BLE address of the default master device in the same group of Bluetooth devices is the same as the classic Bluetooth address, and the BLE address of the default slave device in the same group of Bluetooth devices is different from the classic Bluetooth address.
[0109] In this embodiment, the terminal device can establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices based on the reconnection information. The terminal device can automatically reconnect to each target electronic device in the same group of Bluetooth devices, improving both the Bluetooth reconnection speed and accuracy. Furthermore, the Bluetooth reconnection scheme provided in this embodiment is implemented only on the terminal device side, eliminating the need for complex design for each electronic device in the same group of Bluetooth devices, thus offering better versatility.
[0110] In one embodiment, the reconnection information includes a classic Bluetooth address or the BLE addresses corresponding to each electronic device in the same group of Bluetooth devices. The Bluetooth connection module 820 is further configured to send a first reconnection request based on the classic Bluetooth address, the first reconnection request being used to trigger a classic Bluetooth connection between a first target electronic device (currently the master / slave device in the same group of Bluetooth devices) and the terminal device; and / or, to receive an LE Audio broadcast signal sent by a second target electronic device, and determine whether the second target electronic device belongs to the same group of Bluetooth devices based on the LE Audio broadcast signal and the reconnection information. If it belongs to the same group of Bluetooth devices, a second reconnection request is sent to the second target electronic device based on the BLE address corresponding to the LE Audio broadcast signal, the second reconnection request being used to trigger an LE Audio Bluetooth connection between the second target electronic device and the terminal device.
[0111] In one embodiment, the reconnection information also includes the SIRK corresponding to the same group of Bluetooth devices. The Bluetooth connection module 820 is further configured to parse the LE Audio broadcast signal to obtain specific broadcast information carried by the LE Audio broadcast signal; calculate a local value based on the SIRK and the specific broadcast information; and determine that the second target electronic device belongs to the same group of Bluetooth devices if the local value is the same as the target field value in the LE Audio broadcast signal.
[0112] In one embodiment, the reconnection information also includes the SIRK corresponding to the same group of Bluetooth devices. The Bluetooth connection module 820 is further configured to obtain the SIRK carried in the LE Audio broadcast signal, and if the SIRK carried in the LE Audio broadcast signal is consistent with the SIRK contained in the reconnection information, then it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
[0113] In one embodiment, the reconnection information also includes the BLE addresses of each electronic device in the same group of Bluetooth devices. The Bluetooth connection module 820 is further configured to determine that the second target electronic device belongs to the same group of Bluetooth devices if the BLE address corresponding to the LE Audio broadcast signal matches any BLE address included in the reconnection information.
[0114] In this embodiment, the terminal device can quickly and accurately perform classic Bluetooth backconnection and LE Audio Bluetooth backconnection with at least one target electronic device from the same group of Bluetooth devices that simultaneously support classic Bluetooth and BLE Audio. Alternatively, it can also perform classic Bluetooth backconnection with at least one target electronic device from the same group of Bluetooth devices that only support classic Bluetooth, or LE Audio Bluetooth backconnection with at least one target electronic device from the same group of Bluetooth devices that only support BLE Audio, ensuring the success rate and stability of Bluetooth backconnection in different scenarios. Furthermore, the Bluetooth backconnection scheme provided in this embodiment is implemented only on the terminal device side, eliminating the complex design of individual electronic devices within the same group of Bluetooth devices, thus offering better versatility.
[0115] In one embodiment, the Bluetooth reconnection device 800 includes, in addition to the information determination module 810 and the Bluetooth connection module 820, a storage module.
[0116] The Bluetooth connectivity module 820 is also used to establish a classic Bluetooth connection and a first LEAudio connection with the first electronic device, and a second LEAudio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices.
[0117] In one embodiment, the Bluetooth connection module 820 is further configured to: receive a first LE Audio broadcast signal sent by a first electronic device; determine a first BLE address corresponding to the first electronic device based on the first LE Audio broadcast signal; determine a classic Bluetooth address corresponding to the first electronic device; receive a second LE Audio broadcast signal sent by a second electronic device; determine a second BLE address corresponding to the second electronic device based on the second LE Audio broadcast signal; establish a first LE Audio connection with the first electronic device based on the first BLE address; establish a classic Bluetooth connection with the first electronic device based on the classic Bluetooth address corresponding to the first electronic device; and, if it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, establish a second LE Audio connection with the second electronic device based on the second BLE address.
[0118] In one embodiment, the first LE Audio broadcast signal includes a first identifier, and the second LE Audio broadcast signal includes a second identifier. The Bluetooth connectivity module 820 is further configured to determine that the second electronic device and the first electronic device belong to the same group of Bluetooth devices if the first identifier and the second identifier are the same.
[0119] In one embodiment, the Bluetooth connection module 820 is further configured to determine the target SIRK corresponding to the first electronic device based on the first LE Audio broadcast signal; parse the second LE Audio broadcast signal to obtain the target-specific broadcast information carried by the second LE Audio broadcast signal; calculate the target local value based on the target SIRK and the target-specific broadcast information; and if the target local value is the same as the target field value in the second LE Audio broadcast signal, determine that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
[0120] The storage module is used to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set.
[0121] The information determination module 810 is also used to determine the same group of Bluetooth devices to be reconnected, and to determine the reconnection information from the information combination set corresponding to the same group of Bluetooth devices to be reconnected.
[0122] In this embodiment of the application, when a terminal device establishes a Bluetooth connection with multiple electronic devices in the same group of Bluetooth devices, the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information set. This facilitates the terminal device to accurately and quickly connect with at least one target electronic device in the same group of Bluetooth devices to be reconnected during subsequent Bluetooth reconnection, thereby improving the success rate and stability of Bluetooth reconnection.
[0123] like Figure 9 As shown, in one embodiment, an information storage device 900 is provided, which can be applied to the terminal device described above. The information storage device 900 may include a Bluetooth connection module 910 and a storage module 920.
[0124] The Bluetooth connection module 910 is used to establish a classic Bluetooth connection and a first LE Audio connection with a first electronic device, and to establish a second LE Audio connection with a second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices.
[0125] In one embodiment, the Bluetooth connection module 910 is further configured to receive a first LE Audio broadcast signal sent by a first electronic device, and determine a first BLE address corresponding to the first electronic device based on the first LE Audio broadcast signal; determine a classic Bluetooth address corresponding to the first electronic device; receive a second LE Audio broadcast signal sent by a second electronic device, and determine a second BLE address corresponding to the second electronic device based on the second LE Audio broadcast signal; establish a first LE Audio connection with the first electronic device based on the first BLE address, and establish a classic Bluetooth connection with the first electronic device based on the classic Bluetooth address corresponding to the first electronic device; and, if it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, establish a second LE Audio connection with the second electronic device based on the second BLE address.
[0126] The storage module 920 is used to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set. The same information combination set is used to determine the reconnection information to be triggered to reconnect with at least one target electronic device in the same group of Bluetooth devices.
[0127] In one embodiment, the device information of the first electronic device includes at least one of the following: the classic Bluetooth address, the first BLE address, the device name, and the SIRK; the device information of the second electronic device includes at least one of the following: the classic Bluetooth address, the second BLE address, the device name, and the SIRK.
[0128] In one embodiment, the first electronic device and the second electronic device share the same classic Bluetooth address. The first electronic device's first BLE address is the same as the classic Bluetooth address, while the second electronic device's second BLE address is different from the classic Bluetooth address.
[0129] In this embodiment of the application, when a terminal device establishes a Bluetooth connection with multiple electronic devices in the same group of Bluetooth devices, the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information set. This facilitates the terminal device to accurately and quickly connect with at least one target electronic device in the same group of Bluetooth devices to be reconnected during subsequent Bluetooth reconnection, thereby improving the success rate and stability of Bluetooth reconnection.
[0130] Figure 10 This is a structural block diagram of a terminal device in one embodiment. For example... Figure 10 As shown, the terminal device 1000 may include one or more of the following components: a processor 1010 and a memory 1020 coupled to the processor 1010, wherein the memory 1020 may store one or more computer programs, which may be configured to implement the methods described in the above embodiments when executed by one or more processors 1010.
[0131] The processor 1010 may include one or more processing cores. The processor 1010 connects to various parts within the terminal device 1000 using various interfaces and lines, and performs various functions and processes data of the terminal device 1000 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1020, and by calling data stored in the memory 1020. Optionally, the processor 1010 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1010 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 1010 and may be implemented separately using a communication chip.
[0132] The memory 1020 may include random access memory (RAM) or read-only memory (ROM). The memory 1020 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1020 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the terminal device 1000 during use.
[0133] The terminal device 1000 may also include a Bluetooth module, which can be used to provide Bluetooth communication functionality, establish Bluetooth connections with other electronic devices, and perform Bluetooth data transmission. The Bluetooth module may support one or more Bluetooth protocols (such as Classic Bluetooth, BLE, BLE Audio, etc.), but is not limited to these, and may change as Bluetooth protocols evolve.
[0134] In some embodiments, the processor 910 is configured to determine reconnection information generated based on device information of one or more electronic devices that have previously established a Bluetooth connection with the terminal device, the one or more electronic devices belonging to the same group of Bluetooth devices; and to instruct the Bluetooth module to establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices based on the reconnection information.
[0135] Understandably, the terminal device 1000 may include more or fewer structural elements than those shown in the above block diagram, such as a power module, physical buttons, sensors, a display screen, a camera, etc., and may not be limited herein.
[0136] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the methods described in the above embodiments.
[0137] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the methods described in the above embodiments.
[0138] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, ROM, etc.
[0139] Any references to memory, storage, databases, or other media used herein may include non-volatile and / or volatile memory. Suitable non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. By way of illustration and not limitation, RAM may take many forms, such as Static RAM (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus DRAM (RDRAM), and Direct Rambus DRAM (DRDRAM).
[0140] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0141] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0142] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0143] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0144] The foregoing has provided a detailed description of a Bluetooth reconnection method and apparatus, an information storage method and apparatus, a terminal device, and a storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A Bluetooth reconnection method, characterized in that, Applied to a terminal device, the method includes: The system determines pending reconnection information, which is generated based on device information of one or more electronic devices that have previously established Bluetooth connections with the terminal device. These electronic devices belong to the same group of Bluetooth devices, share the same classic Bluetooth address, and each electronic device in the same group corresponds to a different BLE address; and / or, the BLE address of the default master device in the same group of Bluetooth devices is the same as the classic Bluetooth address, and the BLE address of the default slave device in the same group of Bluetooth devices is different from the classic Bluetooth address. Based on the pending reconnection information, establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices.
2. The method according to claim 1, characterized in that, The pending reconnection information includes the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices; The step of establishing a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices based on the reconnection information includes: A first reconnection request is sent based on the classic Bluetooth address. This first reconnection request triggers the establishment of a classic Bluetooth connection between the first target electronic device (the master device) and the terminal device within the same group of Bluetooth devices, where the current master-slave relationship is active. And / or... The system receives an LE Audio broadcast signal sent by a second target electronic device, and determines whether the second target electronic device belongs to the same group of Bluetooth devices based on the LE Audio broadcast signal and the pending reconnection information. If it belongs to the same group of Bluetooth devices, the system sends a second reconnection request to the second target electronic device based on the BLE address corresponding to the LE Audio broadcast signal. The second reconnection request is used to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
3. The method according to claim 1, characterized in that, The information to be reconnected includes the BLE addresses of each electronic device in the same group of Bluetooth devices. The step of establishing a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices based on the reconnection information includes: The system receives an LE Audio broadcast signal sent by a second target electronic device, and determines whether the second target electronic device belongs to the same group of Bluetooth devices based on the LE Audio broadcast signal and the pending reconnection information. If it belongs to the same group of Bluetooth devices, the system sends a second reconnection request to the second target electronic device based on the BLE address corresponding to the LE Audio broadcast signal. The second reconnection request is used to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
4. The method according to claim 2, characterized in that, The pending reconnection information also includes the combined identifier resolution value SIRK corresponding to the same group of Bluetooth devices; The step of determining whether the second target electronic device belongs to the same group of Bluetooth devices based on the LE Audio broadcast signal and the reconnection information includes: The LE Audio broadcast signal is analyzed to obtain the specific broadcast information carried by the LE Audio broadcast signal; The local value is calculated based on the SIRK and the specific broadcast information; If the local value is the same as the target field value in the LE Audio broadcast signal, then the second target electronic device is determined to belong to the same group of Bluetooth devices.
5. The method according to claim 2, characterized in that, The pending reconnection information also includes the combined identifier resolution value SIRK corresponding to the same group of Bluetooth devices; The step of determining whether the second target electronic device belongs to the same group of Bluetooth devices based on the LE Audio broadcast signal and the reconnection information includes: Obtain the SIRK carried in the LE Audio broadcast signal. If the SIRK carried in the LE Audio broadcast signal is consistent with the SIRK contained in the reconnection information, then determine that the second target electronic device belongs to the same group of Bluetooth devices.
6. The method according to claim 2, characterized in that, The information to be reconnected also includes the BLE addresses of each electronic device in the same group of Bluetooth devices; The step of determining whether the second target electronic device belongs to the same group of Bluetooth devices based on the LE audio broadcast signal and the reconnection information includes: If the BLE address corresponding to the LE Audio broadcast signal matches any BLE address contained in the reconnection information, then the second target electronic device is determined to belong to the same group of Bluetooth devices.
7. The method according to any one of claims 1 to 6, characterized in that, The device information includes at least one of the following: classic Bluetooth address, BLE address, device name, and combined identifier resolution value SIRK corresponding to the electronic device; The pending reconnection information includes the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices and the same SIRK corresponding to each electronic device in the same group of Bluetooth devices; or, the pending reconnection information includes the classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices and the BLE address of each electronic device in the same group of Bluetooth devices.
8. The method according to any one of claims 1 to 6, characterized in that, The same group of Bluetooth devices includes any of the following: The same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that most recently established a Bluetooth connection with the terminal device belongs; The same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that most recently disconnected from the terminal device belongs; The same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that has established the most Bluetooth connections with the terminal device belongs. The same group of Bluetooth devices refers to a group of Bluetooth devices determined based on the detected setting operations.
9. The method according to any one of claims 1 to 6, characterized in that, Before determining the reconnection information, the method further includes: Establish a classic Bluetooth connection and a first LE Audio connection with a first electronic device, and establish a second LE Audio connection with a second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices; The device information of the first electronic device and the device information of the second electronic device are stored in the same information combination set; The process of determining the reconnection information includes: determining the same group of Bluetooth devices to be reconnected, and determining the reconnection information from the set of information combinations corresponding to the same group of Bluetooth devices to be reconnected.
10. The method according to claim 9, characterized in that, The establishment of a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and the establishment of a second LE Audio connection with the second electronic device, respectively, include: Receive a first LE Audio broadcast signal sent by a first electronic device, and determine the first BLE address corresponding to the first electronic device based on the first LE Audio broadcast signal; Determine the classic Bluetooth address corresponding to the first electronic device; Receive the second LE Audio broadcast signal sent by the second electronic device, and determine the second BLE address corresponding to the second electronic device based on the second LE Audio broadcast signal; A first LE Audio connection is established with the first electronic device based on the first BLE address, and a classic Bluetooth connection is established with the first electronic device based on the classic Bluetooth address corresponding to the first electronic device. If it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, a second LE Audio connection is established with the second electronic device based on the second BLE address.
11. The method according to claim 10, characterized in that, The first LE Audio broadcast signal includes a first identifier, and the second LE Audio broadcast signal includes a second identifier; before establishing a second LE Audio connection with the second electronic device based on the second BLE address, in the case that it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, the method further includes: If the first identity identifier is the same as the second identity identifier, then it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
12. The method according to claim 10, characterized in that, Before establishing a second LE Audio connection with the second electronic device based on the second BLE address, in the case that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, the method further includes: The target SIRK corresponding to the first electronic device is determined based on the first LE Audio broadcast signal; The second LE Audio broadcast signal is analyzed to obtain the target-specific broadcast information carried by the second LE Audio broadcast signal; The target local value is calculated based on the target SIRK and the target-specific broadcast information. If the target local value is the same as the target field value in the second LE Audio broadcast signal, then it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
13. The method according to any one of claims 1-6 and 10-12, characterized in that, The same group of Bluetooth devices includes the same group of audio output devices, which includes a first audio output device and a second audio output device, and the first audio output device and the second audio output device form a pair of audio output devices.
14. An information storage method, characterized in that, Applied to a terminal device, the method includes: The device establishes a classic Bluetooth connection and a first LE Audio connection with a first electronic device, and a second LE Audio connection with a second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices, each electronic device in the same group of Bluetooth devices shares the same classic Bluetooth address, and each electronic device in the same group of Bluetooth devices corresponds to a different BLE address; and / or, the BLE address of the default master device in the same group of Bluetooth devices is the same as the classic Bluetooth address, and the BLE address of the default slave device in the same group of Bluetooth devices is different from the classic Bluetooth address; The device information of the first electronic device and the device information of the second electronic device are stored in the same information combination set. The same information combination set is used to determine the reconnection information to be triggered. The reconnection information to be triggered is used to trigger a reconnection with at least one target electronic device in the same group of Bluetooth devices.
15. The method according to claim 14, characterized in that, The device information of the first electronic device includes at least one of the following: the classic Bluetooth address, the first BLE address, the device name, and the SIRK; the device information of the second electronic device includes at least one of the following: the classic Bluetooth address, the second BLE address, the device name, and the SIRK.
16. The method according to claim 14, characterized in that, The establishment of a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and the establishment of a second LE Audio connection with the second electronic device, respectively, include: Receive a first LE Audio broadcast signal sent by a first electronic device, and determine the first BLE address corresponding to the first electronic device based on the first LE Audio broadcast signal; Determine the classic Bluetooth address corresponding to the first electronic device; Receive the second LE Audio broadcast signal sent by the second electronic device, and determine the second BLE address corresponding to the second electronic device based on the second LE Audio broadcast signal; A first LE Audio connection is established with the first electronic device based on the first BLE address, and a classic Bluetooth connection is established with the first electronic device based on the classic Bluetooth address corresponding to the first electronic device. If it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, a second LE Audio connection is established with the second electronic device based on the second BLE address.
17. The method according to claim 15 or 16, characterized in that, The first electronic device and the second electronic device share the same classic Bluetooth address. The first BLE address of the first electronic device is the same as the classic Bluetooth address, while the second BLE address of the second electronic device is different from the classic Bluetooth address.
18. A Bluetooth reconnection device, characterized in that, Applied to a terminal device, the device includes: An information determination module is used to determine reconnection information, which is generated based on device information of one or more electronic devices that have previously established Bluetooth connections with the terminal device. These one or more electronic devices belong to the same group of Bluetooth devices, each electronic device in the same group shares the same classic Bluetooth address, and each electronic device in the same group corresponds to a different BLE address; and / or, the BLE address of the default master device in the same group of Bluetooth devices is the same as the classic Bluetooth address, and the BLE address of the default slave device in the same group of Bluetooth devices is different from the classic Bluetooth address. A Bluetooth connection module is used to establish a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices based on the reconnection information.
19. An information storage device, characterized in that, Applied to a terminal device, the device includes: A Bluetooth connectivity module is used to establish a classic Bluetooth connection and a first LE Audio connection with a first electronic device, and to establish a second LE Audio connection with a second electronic device. The first and second electronic devices belong to the same group of Bluetooth devices, and all electronic devices in the same group share the same classic Bluetooth address. Each electronic device in the same group corresponds to a different BLE address; and / or, the BLE address of the default master device in the same group is the same as the classic Bluetooth address, and the BLE address of the default slave device in the same group is different from the classic Bluetooth address. The storage module is used to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set. The same information combination set is used to determine the reconnection information to be triggered to reconnect with at least one target electronic device in the same group of Bluetooth devices.
20. A terminal device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1 to 17.
21. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 17.