WO2023246055A1 - 蓝牙设备配置方法、装置、电子设备及存储介质 - Google Patents

蓝牙设备配置方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023246055A1
WO2023246055A1 PCT/CN2022/142138 CN2022142138W WO2023246055A1 WO 2023246055 A1 WO2023246055 A1 WO 2023246055A1 CN 2022142138 W CN2022142138 W CN 2022142138W WO 2023246055 A1 WO2023246055 A1 WO 2023246055A1
Authority
WO
WIPO (PCT)
Prior art keywords
identification information
bluetooth device
combination identification
target
combination
Prior art date
Application number
PCT/CN2022/142138
Other languages
English (en)
French (fr)
Inventor
包建全
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023246055A1 publication Critical patent/WO2023246055A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/35Network arrangements, protocols or services for addressing or naming involving non-standard use of addresses for implementing network functionalities, e.g. coding subscription information within the address or functional addressing, i.e. assigning an address to a function
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • This application relates to the field of communication technology, and specifically to a Bluetooth device configuration method, device, electronic device and storage medium.
  • Bluetooth is a radio technology that supports short-distance communication between devices. It can realize wireless information exchange between multiple electronic devices that support Bluetooth transmission, making data transmission between electronic devices faster and more efficient. Many Bluetooth devices on the market can be used as a set of devices. For example, Bluetooth headsets, Bluetooth speaker systems, etc. all work together as a set of Bluetooth devices. How to effectively configure new Bluetooth devices into a Bluetooth device collection for use has become an urgent technical problem that needs to be solved.
  • the embodiments of this application disclose a Bluetooth device configuration method, device, electronic device and storage medium.
  • the embodiment of the present application discloses a Bluetooth device configuration method, which is applied to the first Bluetooth device.
  • the method includes:
  • the combination identification information of the first Bluetooth device is configured as the target combination identification information, and the target combination identification information is equal to or not equal to the first combination identification information.
  • the embodiment of the present application discloses a Bluetooth device configuration method, which is applied to a second Bluetooth device.
  • the method includes:
  • the first combined identification information is used to indicate a first set of Bluetooth devices
  • the identification information is configured as the target combination identification information, the target combination identification information is used to indicate a target Bluetooth device set, and the target combination identification information is equal to or not equal to the first combination identification information.
  • the embodiment of the present application discloses a Bluetooth device configuration method, which is applied to a Bluetooth device system.
  • the Bluetooth device system includes a first Bluetooth device and a second Bluetooth device.
  • the method includes:
  • the second Bluetooth device sends first combination identification information to the first Bluetooth device, and the first combination identification information is used to indicate a first Bluetooth device set; the first combination identification information is the second Bluetooth device The currently configured combination identification information or the second Bluetooth device generated according to the second preset method;
  • the first Bluetooth device sends second combination identification information to the second Bluetooth device, and the second combination identification information is used to indicate a second Bluetooth device set; the second combination identification information is the first Bluetooth device The currently configured combination identification information or the first Bluetooth device generated according to the first preset method;
  • the first Bluetooth device determines target combination identification information from the first combination identification information and the second combination identification information according to preset rules, and configures the combination identification information of the first Bluetooth device as the target combination identification information. information;
  • the second Bluetooth device determines the target combination identification information from the first combination identification information and the second combination identification information according to the preset rule, and configures the combination identification information of the second Bluetooth device to the desired combination identification information.
  • the target combination identification information wherein the target combination identification information is used to indicate a target Bluetooth device set.
  • the embodiment of the present application discloses a Bluetooth device configuration device, which is applied to the first Bluetooth device.
  • the device includes:
  • a combination identification receiving module configured to receive first combination identification information sent by a second Bluetooth device, where the first combination identification information is used to indicate a first Bluetooth device set;
  • a combination identification determination module configured to determine target combination identification information according to the first combination identification information and preset rules, where the target combination identification information is used to indicate a target Bluetooth device set;
  • a configuration module configured to configure the combination identification information of the first Bluetooth device as the target combination identification information, and the target combination identification information is equal to or not equal to the first combination identification information.
  • the embodiment of the present application discloses a Bluetooth device configuration device, which is applied to a second Bluetooth device.
  • the device includes:
  • a combination identification acquisition module configured to obtain first combination identification information, where the first combination identification information is used to indicate a first Bluetooth device set;
  • a combination identification sending module configured to send the first combination identification information to a first Bluetooth device, so that the first Bluetooth device determines the target combination identification information according to the first combination identification information and preset rules, and sends the first combination identification information to the first Bluetooth device.
  • the combination identification information of the first Bluetooth device is configured as the target combination identification information, the target combination identification information is used to indicate a set of target Bluetooth devices, and the target combination identification information is equal to or not equal to the first combination identification information.
  • the embodiment of the present application discloses a Bluetooth device configuration device, which is applied to a Bluetooth device system.
  • the Bluetooth device system includes a first Bluetooth device and a second Bluetooth device.
  • the device includes:
  • a combination identification sending module configured to send first combination identification information to the first Bluetooth device through the second Bluetooth device, where the first combination identification information is used to indicate a first Bluetooth device set; the first combination identification The information is the combined identification information currently configured by the second Bluetooth device or generated by the second Bluetooth device according to the second preset method;
  • a combination identification sending module further configured to send second combination identification information to the second Bluetooth device through the first Bluetooth device, where the second combination identification information is used to indicate a second Bluetooth device set; the second combination The identification information is the combined identification information currently configured by the first Bluetooth device or generated by the first Bluetooth device according to the first preset method;
  • a configuration module configured to use the first Bluetooth device to determine target combination identification information from the first combination identification information and the second combination identification information according to preset rules, and configure the combination identification information of the first Bluetooth device. Combining identification information for the target;
  • the configuration module is also configured to use the second Bluetooth device to determine the target combination identification information from the first combination identification information and the second combination identification information according to the preset rule, and assign the target combination identification information to the second Bluetooth device.
  • the combination identification information is configured as the target combination identification information; wherein the target combination identification information is used to indicate a target Bluetooth device set.
  • An embodiment of the present application discloses an electronic device, including a memory and a processor.
  • a computer program is stored in the memory.
  • the processor implements any of the above. method.
  • An embodiment of the present application discloses a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, any one of the methods described above is implemented.
  • Figure 1A is an application scenario diagram of a Bluetooth device configuration method in an embodiment
  • Figure 1B is an application scenario diagram of a Bluetooth device configuration method in another embodiment
  • Figure 2 is a timing diagram of a Bluetooth device configuration method in one embodiment
  • Figure 3 is a flow chart of a Bluetooth device configuration method in one embodiment
  • Figure 4 is a flow chart of a Bluetooth device configuration method in another embodiment
  • Figure 5 is a timing diagram of a Bluetooth device configuration method in another embodiment
  • Figure 6A is a timing diagram of a Bluetooth device configuration method in another embodiment
  • Figure 6B is a timing diagram of a Bluetooth device configuration method in another embodiment
  • Figure 6C is a timing diagram of a Bluetooth device configuration method in another embodiment
  • Figure 6D is a schematic structural diagram of the LE Audio broadcast signal in one embodiment
  • Figure 7 is a flow chart of a Bluetooth device configuration method in yet another embodiment
  • Figure 8 is a flow chart of a Bluetooth device configuration method in yet another embodiment
  • Figure 9 is a block diagram of a Bluetooth device configuration device in one embodiment
  • Figure 10 is a block diagram of a Bluetooth device configuration device in another embodiment
  • Figure 11 is a block diagram of a Bluetooth device configuration device in yet another embodiment
  • Figure 12 is a structural block diagram of an electronic device in one embodiment.
  • 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 element.
  • a first Bluetooth device may be referred to as a second Bluetooth device, and similarly, the second Bluetooth device may be referred to as a first Bluetooth device.
  • the first Bluetooth device and the second Bluetooth device are both Bluetooth devices, but they are not the same Bluetooth device.
  • the term “plurality” used in this application refers to two or more than two.
  • the term “and/or” used in this application refers to one of the solutions, or any combination of multiple solutions thereto.
  • the same combination identification information is usually written to each Bluetooth device during production, thereby ensuring The multiple Bluetooth devices can be used collaboratively as the same Bluetooth device set.
  • a Bluetooth device in a complete set of Bluetooth devices fails or is lost, it often happens that the user's newly purchased Bluetooth device cannot be successfully added to the original Bluetooth device set, because the newly purchased Bluetooth device is written during production.
  • the combination identification information entered is different from the combination identification information written by the Bluetooth devices in the Bluetooth device collection during production, and cannot meet the user's needs.
  • a Bluetooth device configuration method, device, electronic device and storage medium are provided, which can dynamically and flexibly add Bluetooth devices to a Bluetooth device collection for use to meet the user's usage needs.
  • FIG. 1A is an application scenario diagram of a Bluetooth device configuration method in an embodiment.
  • the first Bluetooth device 110 and the second Bluetooth device 120 can establish a communication connection.
  • the first Bluetooth device 110 and the second Bluetooth device 120 can include but are not limited to headphones, mobile phones, wearable devices, speaker devices, smart phones, etc. Electronic devices such as home devices that support Bluetooth communication functions.
  • the first Bluetooth device 110 and the second Bluetooth device 120 may be the same Bluetooth device or different Bluetooth devices.
  • the first Bluetooth device 110 and the second Bluetooth device 120 may be TWS (True Wireless Stereo). Stereo) headphones, etc.
  • the first Bluetooth device 110 and the second Bluetooth device 120 may be Bluetooth devices capable of pairing and synchronized and coordinated use.
  • the first Bluetooth device 110 and the second Bluetooth device 120 may both be headphones.
  • the first Bluetooth device 110 It may be a left earphone, and the second Bluetooth device 120 may be a right earphone, or the first Bluetooth device 110 may be a right earphone, and the second Bluetooth device 120 may be a left earphone, etc., but is not limited thereto.
  • the communication connection established between the first Bluetooth device 110 and the second Bluetooth device 120 may include but is not limited to a classic Bluetooth connection, a BLE (Bluetooth Low Energy, Bluetooth low energy) connection, and other Bluetooth communication connections.
  • the above communication connection may also be It may be a physical connection method such as a contact contact communication connection, or other wireless communication connection methods.
  • the specific communication connection method is not specifically limited in the embodiments of this application.
  • Each Bluetooth device can be configured with combination identification information.
  • the combination identification information can be used to identify the Bluetooth device set to which the Bluetooth device belongs.
  • Bluetooth devices belonging to different Bluetooth device sets can correspond to different combination identification information.
  • Bluetooth devices belonging to the same Bluetooth device set can The device can correspond to the same combined identification information, and the external device can identify multiple Bluetooth devices as a Bluetooth device set through the combined identification information, so that the Bluetooth devices belonging to the same Bluetooth device set can be used in a coordinated and synchronous manner.
  • different pairs of Bluetooth headsets correspond to different combination identification information, thereby ensuring that there will be no confusion when using Bluetooth headsets, and each pair of Bluetooth headsets is different from other pairs of Bluetooth headsets.
  • the second Bluetooth device 120 can send the first combination identification information to the first Bluetooth device 110, and the first Bluetooth device 110 receives the first combination identification information sent by the second Bluetooth device 120, and can according to the first combination identification information.
  • the combination identification information and the preset rules determine the target combination identification information, and configure the combination identification information of the first Bluetooth device 110 as the target combination identification information, that is, the first Bluetooth device 110 is successfully added to the target combination identification information indication. in the target Bluetooth device collection.
  • the first Bluetooth device 110 can form the target Bluetooth device set with Bluetooth devices that are also configured with the target combination identification information. Each Bluetooth device under the target Bluetooth device set is configured The target combination identifies information.
  • the second Bluetooth device 120 can also configure the combination identification information of the second Bluetooth device 120 as the target combination identification information according to the preset rules. Both the first Bluetooth device 110 and the second Bluetooth device 120 configure their own combination identification information. After the combination identification information is configured as the target combination identification information, it can be identified as belonging to the target Bluetooth device set, so that the first Bluetooth device 110 and the second Bluetooth device 120 can be used in coordination and synchronization.
  • each Bluetooth device in the Bluetooth device set can send a Bluetooth broadcast signal based on the same combined identification information.
  • the external device scans the Bluetooth broadcast signal of at least one of the Bluetooth devices, and based on After the operation instruction establishes a Bluetooth connection with the Bluetooth device, if Bluetooth broadcast signals corresponding to the same combination of identification information are continuously scanned, a Bluetooth connection request is initiated to the Bluetooth device that sends these Bluetooth broadcast signals.
  • each Bluetooth device is assigned a possibly different role (for example, the left earphone plays left channel audio, and the right earphone plays right channel audio).
  • FIG. 1B is an application scenario diagram of a Bluetooth device configuration method in another embodiment.
  • the first earphone can establish a communication connection with the second earphone.
  • the second earphone can send the first combination identification information to the first earphone, and the first earphone can send the second combination identification information to the second earphone.
  • the first combination identification information can be the combination identification information currently configured by the second earphone or the second combination identification information.
  • the earphone is generated according to the second preset method.
  • the second combination identification information may be the combination identification information currently configured by the first earphone or the first earphone is generated according to the first preset method.
  • the first earphone can determine the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules, and configure the combination identification information of the first earphone as the target combination identification information.
  • the second earphone can also determine the target combination identification information according to the preset rules.
  • the preset rule determines the target combination identification information from the first combination identification information and the second combination identification information, and configures the combination identification information of the second earphone as the target combination identification information. Both the first earphone and the second earphone configure their own combination identification information as the target combination identification information.
  • the first earphone and the second earphone can be identified as belonging to the same Bluetooth device set (i.e. The set of target Bluetooth devices indicated by the target combination identification information), the first earphone and the second earphone can be used in coordination and synchronization.
  • Bluetooth devices included in a Bluetooth device set is not specifically limited in the embodiments of this application.
  • FIG. 2 is a timing diagram of a Bluetooth device configuration method in one embodiment. As shown in Figure 2, the Bluetooth device configuration method may include the following steps:
  • Step 1 The second Bluetooth device obtains first combination identification information, and the first combination identification information is used to indicate the first Bluetooth device set.
  • Step 2 The second Bluetooth device sends the first combination identification information to the first Bluetooth device.
  • Step 3 The first Bluetooth device receives the first combination identification information sent by the second Bluetooth device, and determines the target combination identification information according to the first combination identification information and the preset rules.
  • the target combination identification information is used to indicate the target Bluetooth device set, the The target combination identification information is equal to or not equal to the first combination identification information.
  • Step 4 The first Bluetooth device configures the combination identification information as the target combination identification information.
  • the first Bluetooth device can determine the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules.
  • the second combination identification information is the combination currently configured by the first Bluetooth device.
  • the identification information or the first Bluetooth device is generated according to the first preset manner, and the second combined identification information is used to indicate the second Bluetooth device set.
  • the first Bluetooth device can send the second combination identification information to the second Bluetooth device, and the second Bluetooth device can determine the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules, and The combination identification information of the second Bluetooth device is configured as the target combination identification information.
  • the first combination identification information is the combination identification information currently configured by the second Bluetooth device or generated by the second Bluetooth device according to the second preset manner.
  • a Bluetooth device configuration method is provided, which can be applied to the above-mentioned first Bluetooth device.
  • the method may include the following steps:
  • Step 310 Receive the first combined identification information sent by the second Bluetooth device.
  • the first Bluetooth device and the second Bluetooth device can establish a communication connection.
  • the communication connection may include but is not limited to a classic Bluetooth connection, a BLE connection, and other Bluetooth communication connections.
  • the user can perform a connection operation on the first Bluetooth device or the second Bluetooth device to trigger the first Bluetooth device and the second Bluetooth device to establish a Bluetooth communication connection.
  • the first Bluetooth device can be a device with a Bluetooth scanning function, and the first Bluetooth device can scan surrounding Bluetooth devices.
  • the second Bluetooth device detects the connection operation performed by the user, it can send a Bluetooth connection request.
  • the Bluetooth connection request can carry the Bluetooth address of the second Bluetooth device.
  • the first Bluetooth device can turn on the inquiry scanning mode of Bluetooth, scan and obtain to the Bluetooth connection request sent by the second Bluetooth device, and establish a Bluetooth communication connection with the second Bluetooth device according to the device identification information (such as Bluetooth address, etc.) carried in the Bluetooth connection request.
  • connection operation may include but is not limited to touch operation, gesture operation, voice operation, etc.
  • first Bluetooth device and the second Bluetooth device may be provided with connection button, the user presses the connection button to perform connection operations, etc., but is not limited to this.
  • the user can perform a target triggering operation on an electronic device other than the first Bluetooth device and the second Bluetooth device, and use the electronic device to trigger the first Bluetooth device and the second Bluetooth device to establish a Bluetooth communication connection.
  • the electronic device is an electronic device that can establish communication connections with the first Bluetooth device and the second Bluetooth device at the same time.
  • the electronic device may be a device used in conjunction with the first Bluetooth device and the second Bluetooth device.
  • the electronic device may be used to control the Bluetooth speaker. remote control.
  • the electronic device may be a headphone box or the like. The user performs a target triggering operation on the electronic device.
  • the electronic device can respond to the target triggering operation, generate a target instruction, and send the target instruction to the first Bluetooth device and/or the second Bluetooth device.
  • the target instruction can be used to instruct the first Bluetooth device.
  • the Bluetooth device establishes a Bluetooth communication connection with the second Bluetooth device, and triggers the first Bluetooth device and the second Bluetooth device to perform a configuration process of combined identification information.
  • the first Bluetooth device can receive the target command sent by the electronic device and establish a communication connection with the second Bluetooth device according to the target command.
  • the target command sent by the electronic device may carry device identification information (such as Bluetooth address, etc.) corresponding to the first Bluetooth device and the second Bluetooth device respectively.
  • the first Bluetooth device can establish a Bluetooth connection with the second Bluetooth device according to the device identification information of the second Bluetooth device carried by the target command.
  • the second Bluetooth device can establish a Bluetooth communication connection with the first Bluetooth device according to the device identification information of the first Bluetooth device carried in the target command.
  • the electronic device can also only send a target command to one of the first Bluetooth device and the second Bluetooth device.
  • the target command carries the device identification information of the other Bluetooth device, so that the electronic device only sends the target command to the first Bluetooth device.
  • a Bluetooth device sends a first command.
  • the target command may carry the device identification information of the second Bluetooth device.
  • the first Bluetooth device may send a message to the second Bluetooth device based on the Bluetooth address of the second Bluetooth device carried by the target command. Bluetooth connection request to establish a Bluetooth communication connection with the second Bluetooth device.
  • the specific operation mode of the above-mentioned target triggering operation is not limited in the embodiments of the present application.
  • the electronic device may be provided with a specific button.
  • the specific button may be a virtual button or a physical button.
  • the target triggering operation may be for the specific button.
  • the button to perform a preset operation can be any of touch operation, gesture operation, voice operation, etc.
  • the electronic device can The corresponding sensor detects the triggering operation (such as detecting the preset pressing operation through the pressure sensor, detecting the preset gesture operation through the distance sensor, detecting the preset voice content through the voice sensor, etc.), but is not limited to this.
  • the first Bluetooth device may include a first earphone
  • the second Bluetooth device may include a second earphone
  • the electronic device may include an earphone box.
  • the first earphone and the second earphone are placed in the earphone box
  • the first earphone may receive a target instruction sent by the earphone box
  • the target instruction may be sent by the earphone box in response to the target triggering operation.
  • the second earphone can also receive the target command sent by the earphone box, and the first earphone and the second earphone can establish a communication connection.
  • the target triggering operation may be a long press of the pairing button on the earphone box, which is not limited here.
  • the user only needs to put the two earphones that need to be used together into the earphone box and operate the earphone box, and then the two earphones can be successfully paired and used in a coordinated manner. The operation is easier and the user experience is improved.
  • the second Bluetooth device can obtain the first combination identification information. After the first Bluetooth device establishes a communication connection with the second Bluetooth device, the second Bluetooth device can send the first combination identification information to the first Bluetooth device.
  • the first combination identification information The information may be used to indicate the first set of Bluetooth devices.
  • the first combination identification information may be the combination identification information currently configured by the second Bluetooth device; or the first combination identification information may be a combination identification generated by the second Bluetooth device in a second preset manner or a pre-stored combination identification information. The information is different from the combination identification information currently configured by the second Bluetooth device.
  • the second Bluetooth device can establish a communication connection with the first Bluetooth device according to the target instruction, and can also obtain the first combination identification information according to the target instruction and combine the first combination with the target instruction.
  • the identification information is sent to the first Bluetooth device.
  • Step 320 Determine the target combination identification information according to the first combination identification information and the preset rules.
  • the target combination identification information is used to indicate the target Bluetooth device set.
  • the first Bluetooth device can determine the target combination identification information according to the first combination identification information and the preset rules.
  • the target combination identification information may or may not be equal to the first combination. Identification information. If the target combination identification information is equal to the first combination identification information, then the target Bluetooth device set is the above-mentioned first Bluetooth device set. If the target combination identification information is not equal to the first combination identification information, the target Bluetooth device set is different from the above-mentioned first combination identification information.
  • the first collection of Bluetooth devices is possible to determine the target combination identification information according to the first combination identification information and the preset rules.
  • the target combination identification information may or may not be equal to the first combination. Identification information. If the target combination identification information is equal to the first combination identification information, then the target Bluetooth device set is the above-mentioned first Bluetooth device set. If the target combination identification information is not equal to the first combination identification information, the target Bluetooth device set is different from the above-mentioned first combination identification information.
  • the first collection of Bluetooth devices is possible to determine the target combination identification information according
  • the preset rules can be set according to actual needs.
  • the preset rules can include directly determining the first combination identification information sent by the second Bluetooth device as the target combination identification information, then the target combination identification information is equal to the first combination. Identification information.
  • the first Bluetooth device may determine the target combination identification information from the first combination identification information and the second combination identification information according to a preset rule, and the second combination identification information may be used to indicate the second Bluetooth device set.
  • the preset rule may include determining the larger or smaller of the first combination identification information and the second combination identification information as the target combination identification information, then the target combination identification information may be equal to the first combination identification information. , or equal to the second combined identification information.
  • the second combination identification information may be the combination identification information currently configured by the first Bluetooth device (that is, the combination identification information configured by the first Bluetooth device when receiving the first combination identification information); or the second combination identification information may be It is the combination identification information generated or pre-stored by the first Bluetooth device according to the first preset method, which is different from the combination identification information currently configured by the first Bluetooth device.
  • the preset rules may include modifying specific fields in the first combination identification information to obtain the target combination identification information, then the target combination identification information is not equal to the first combination identification information.
  • the specific field may be a preset field in the combination identification information.
  • the first combination identification information may include a randomly generated field, and then the randomly generated field may be modified to obtain the target combination identification information.
  • Step 330 Configure the combination identification information of the first Bluetooth device as the target combination identification information.
  • the first Bluetooth device after the first Bluetooth device determines the target combination identification information, it can determine whether the combination identification information currently configured by the first Bluetooth device is the same as the target combination identification information. If not, the combination of the first Bluetooth device and the target combination identification information can be determined. The identification information is configured as the target combination identification information. If they are the same, the first Bluetooth device may not configure its own combined identification information.
  • the combination identification information used by the first Bluetooth device is the same as the combination identification information used by other Bluetooth devices in the target Bluetooth device set. If the external terminal device simultaneously The first Bluetooth device and the other Bluetooth devices are scanned. Since the combination identification information of the first Bluetooth device and the other Bluetooth devices are the same and both are the above-mentioned target combination identification information, the first Bluetooth device and the other Bluetooth devices can be used as A collection of Bluetooth devices for collaborative use.
  • BLE Audio Bluetooth Low Energy Audio
  • CSIP Coordinatd Set Identification Profile
  • SIRK Set Identity Resolving Key, combined identification resolution value
  • the SIRK written in the new Bluetooth device purchased by the user during production is different from the Bluetooth device in the original Bluetooth device set.
  • the SIRK used is different, so the newly purchased Bluetooth device may not be successfully added to the original Bluetooth device collection.
  • the first combination identification information may include a first SIRK
  • the target combination identification information may include a target SIRK
  • the second Bluetooth device may obtain the first SIRK and send the first SIRK to the first Bluetooth device.
  • a Bluetooth device can determine a target SIRK based on the first SIRK and preset rules. The target SIRK is equal to the first SIRK or not equal to the first SIRK, and then configures its own SIRK as the target SIRK, so that the first Bluetooth device can successfully join.
  • Each Bluetooth device under the target Bluetooth device set is configured with the target SIRK.
  • the external terminal device can respond to the target Bluetooth device.
  • Each Bluetooth device under the device collection is used in coordination and synchronization.
  • the first Bluetooth device can configure the combination identification information according to the first combination identification information sent by the second Bluetooth device and the preset rules, and can dynamically and flexibly add the first Bluetooth device to the target Bluetooth device. Used in collections to meet user needs.
  • the second Bluetooth device may be a Bluetooth device that the user desires to pair with the first Bluetooth device and be able to synchronize and coordinate its use.
  • the second Bluetooth device may also configure its own combination identification information as the target combination identification information, that is,
  • the first Bluetooth device and the second Bluetooth device are both configured with the same combination identification information and can be recognized by external terminal devices as belonging to the same Bluetooth device set.
  • a Bluetooth device configuration method is provided, which can be applied to the above-mentioned first Bluetooth device. The method may include the following steps:
  • Step 402 Receive the first combined identification information sent by the second Bluetooth device.
  • the second Bluetooth device Before sending the first combination identification information to the first Bluetooth device, the second Bluetooth device may first obtain the first combination identification information.
  • the first combination identification information is the combination identification information currently configured by the second Bluetooth device or generated by the second Bluetooth device according to the second preset manner.
  • the second Bluetooth device may first generate the first combination identification information according to the second preset method. Regardless of whether the second Bluetooth device is currently configured with combination identification information, the second Bluetooth device generates the first combination identification information according to the second preset method, and then sends the generated first combination identification information to the first Bluetooth device.
  • the second Bluetooth device when the combination identification information currently configured by the second Bluetooth device is empty, the second Bluetooth device generates the first combination identification information according to the second preset method; and/or, when the second Bluetooth device If the currently configured combination identification information is not empty, the currently configured combination identification information of the second Bluetooth device is obtained as the first combination identification information.
  • the second Bluetooth device can determine whether the currently configured combination identification information is empty. If the currently configured combination identification information is empty, the first combination identification information can be generated according to the second preset method. If the currently configured combination identification information is empty, the second Bluetooth device can determine whether the currently configured combination identification information is empty. If the information is not empty, the currently configured combination identification information can be obtained as the first combination identification information.
  • the combination identification information may not be written, that is, the second Bluetooth device does not have the combination identification information configured when it leaves the factory.
  • the second Bluetooth device can regenerate the combined identification information and configure it.
  • the second Bluetooth device and the first Bluetooth device need to be configured as the same Bluetooth device set for coordinated use, the second Bluetooth device may or may not have been configured with combination identification information. Therefore, before sending the first combination identification information to the first Bluetooth device, the second Bluetooth device may first determine whether the currently configured combination identification information is empty. If the combination identification information currently configured by the second Bluetooth device is empty, it means that the second Bluetooth device is not currently configured with combination identification information, and the first combination identification information can be generated according to the second preset method and sent to the first Bluetooth device.
  • the combination identification information currently configured by the second Bluetooth device is not empty, it means that the second Bluetooth device is currently configured with combination identification information, and the currently configured combination identification information can be sent to the first Bluetooth device as the first combination identification information.
  • the second Bluetooth device leaves the factory, it is not necessary to write the combination identification information, which can reduce production costs and make subsequent use of the second Bluetooth device more flexible.
  • the second Bluetooth device generates the first combined identification information according to a second preset method, which may include but is not limited to any of the following methods:
  • Method 1 Randomly generate a combination of identification information as the first combination of identification information.
  • Each field of the combined identification information may be pre-stored in the second Bluetooth device, and field values in each field may be randomly generated to obtain unique first combined identification information.
  • Method 2 Generate the first combined identification information based on the target BLE address, where the target BLE address includes the BLE address corresponding to the first Bluetooth device or the BLE address corresponding to the second Bluetooth device.
  • the second Bluetooth device can obtain the target BLE address and generate the first combined identification information according to the target BLE address in a specific manner.
  • the specific method may be to directly use the target BLE address as a partial field of the first combined identification information to generate the first combined identification information.
  • the target BLE address can be used as a partial field of the first combined identification information, and the partial field can be combined with the first preset field to generate the first combined identification information.
  • the first preset field can refer to the combined
  • the field information specified in advance in the identification information may also be randomly generated field information.
  • the first combined identification information may include the first SIRK, and the SIRK may be 128 bytes.
  • the specific method may also be to perform a hash calculation on the target BLE address, and use the calculation result as a partial field of the first combined identification information to generate the first combined identification information.
  • the first preset field and the second preset field may be the same or different, and may be set according to actual conditions. Since the target BLE address is unique, it can be ensured that the generated first combined identification information is also unique and will not be confused with the combined identification information of other Bluetooth device sets, thereby improving the accuracy of using the Bluetooth device set.
  • the second Bluetooth device can receive a target instruction sent by the electronic device, obtain the first combined identification information according to the target instruction, and establish a communication connection with the first Bluetooth device according to the target instruction. It should be noted that the second Bluetooth device may obtain the first combination identification information before establishing a communication connection with the first Bluetooth device or after establishing a communication connection with the first Bluetooth device. This is not limited in the embodiments of the present application. .
  • Step 404 Determine target combination identification information from the first combination identification information and the second combination identification information according to preset rules.
  • the first Bluetooth device may first obtain the second combination identification information before determining the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules.
  • the second combination identification information is the combination identification information currently configured by the first Bluetooth device or generated by the first Bluetooth device according to the first preset method.
  • the first Bluetooth device may first generate the second combination identification information according to the first preset method. Regardless of whether the first Bluetooth device is currently configured with combination identification information, the first Bluetooth device generates the second combination identification information according to the first preset method, and then selects the first combination identification information and the second combination identification information according to the preset rules. Determine the target combination identification information.
  • the combination identification information currently configured in the first Bluetooth device is empty.
  • the second combination identification information is generated according to the first preset method; and/or when the combination identification information currently configured by the first Bluetooth device is not empty, the combination identification information currently configured by the first Bluetooth device is used as the third combination identification information. 2. Combined identification information.
  • the first Bluetooth device can determine whether the currently configured combination identification information is empty. If the currently configured combination identification information of the first Bluetooth device is empty, the second combination identification information can be generated according to the first preset method. If the currently configured combination identification information is empty, If the configured combination identification information is not empty, the currently configured combination identification information can be obtained as the second combination identification information.
  • the first Bluetooth device does not need to write the combination identification information when it leaves the factory. That is, the first Bluetooth device does not configure the combination identification information when it leaves the factory.
  • the first Bluetooth device can regenerate the combined identification information and configure it.
  • the first Bluetooth device and the second Bluetooth device need to be configured as the same Bluetooth device set for coordinated use, the first Bluetooth device may have been configured with combination identification information, or may not have been configured with combination identification information. Therefore, before determining the target combination identification information, the first Bluetooth device may first determine whether the currently configured combination identification information is empty.
  • the combination identification information currently configured by the first Bluetooth device is empty, it means that the first Bluetooth device is not currently configured with combination identification information, and the second combination identification information can be generated according to the first preset method. If the combination identification information currently configured by the first Bluetooth device is not empty, it means that the first Bluetooth device is currently configured with combination identification information, and the currently configured combination identification information can be used as the second combination identification information. When the first Bluetooth device leaves the factory, it is not necessary to write the combination identification information, which can reduce production costs and make subsequent use of the first Bluetooth device more flexible.
  • the first Bluetooth device generates the second combined identification information according to the first preset method, which may include but is not limited to any of the following methods:
  • Method 1 Randomly generate a combination of identification information as the second combination of identification information.
  • Each field of the combined identification information may be pre-stored in the first Bluetooth device, and field values in each field may be randomly generated to obtain unique second combined identification information.
  • Method 2 Generate the second combined identification information based on the target BLE address, where the target BLE address includes the BLE address corresponding to the first Bluetooth device or the BLE address corresponding to the second Bluetooth device.
  • the first Bluetooth device can obtain the target BLE address and generate the second combined identification information according to the target BLE address in a specific manner.
  • the specific method may be to directly use the target BLE address as a partial field of the second combined identification information to generate the second combined identification information.
  • the target BLE address can be used as a partial field of the second combined identification information, and the partial field can be combined with the first preset field to generate the second combined identification information.
  • the second combined identification information may include a second SIRK, the SIRK may be 128 bytes, and the target BLE address (48 bytes) may be directly used as a part of the field of the second SIRK.
  • the specific method may also be to perform a hash calculation on the target BLE address, and use the calculation result as a partial field of the second combined identification information to generate the second combined identification information. Further, the calculation result can be combined with the second preset field to generate target combination identification information.
  • the second Bluetooth device and the first Bluetooth device can respectively select different target BLE addresses. For example, both can use their own BLE addresses as the target BLE addresses.
  • the first Bluetooth device generates the second combined identification information based on the BLE address of the first Bluetooth device, and the second Bluetooth device generates the first combined identification information based on the BLE address of the second Bluetooth device; or, the other party's BLE address can be used as the target BLE address.
  • the first Bluetooth device generates the second combination identification information according to the BLE address of the second Bluetooth device, and the second Bluetooth device generates the first combination identification information according to the BLE address of the first Bluetooth device.
  • the target BLE addresses selected by the second Bluetooth device and the first Bluetooth device may not be restricted, but the second Bluetooth device and the first Bluetooth device may respectively adopt different field contents of the first preset field, or Different field contents of the second preset fields are respectively used to ensure that the generated first combined identification information and the second combined identification information are different.
  • the first preset way in which the first Bluetooth device generates the second combination identification information may be different from the second preset way in which the second Bluetooth device generates the first combination identification information, or may be the same.
  • Both the first Bluetooth device and the second Bluetooth device generate the combined identification information in a random manner, or the first Bluetooth device generates the second combined identification information in a random manner, and the second Bluetooth device generates the first combined identification information based on the target BLE address. etc., the embodiments of this application do not limit this.
  • the first Bluetooth device can receive a target instruction sent by the electronic device, obtain the second combined identification information according to the target instruction, and establish a communication connection with the second Bluetooth device according to the target instruction. It should be noted that the first Bluetooth device may obtain the second combined identification information before establishing a communication connection with the second Bluetooth device or after establishing a communication connection with the second Bluetooth device. This is not limited in the embodiments of the present application. .
  • the first Bluetooth device may determine the target combination identification information from the first combination identification information and the second combination identification information according to a preset rule.
  • the preset rule may include: determining the larger or smaller of the first combination identification information and the second combination identification information as the target combination identification information.
  • the first Bluetooth device After the first Bluetooth device receives the first combination identification information sent by the second Bluetooth device, it can compare the first combination identification information with the second combination identification information, and determine the larger or smaller one as the target. Combination identification information. It can be agreed in advance whether to select the larger or the smaller as the target combination identification information. For example, if the larger is selected as the target combination identification information, if the first combination identification information is greater than the second combination identification information, then the first combination can be The identification information is determined as the target combination identification information.
  • the second combination identification information can be determined as the target combination identification information. For another example, if the smaller one is selected as the target combination identification information, if the first combination identification information is smaller than the second combination identification information, then the first combination identification information can be determined as the target combination identification information, and if the second combination identification information is smaller than the second combination identification information, then the first combination identification information can be determined as the target combination identification information. A combination of identification information, then the second combination of identification information can be determined as the target combination of identification information.
  • Step 406 Configure the combination identification information of the first Bluetooth device as the target combination identification information.
  • the first Bluetooth device After the first Bluetooth device determines the target combination identification information, it can determine whether the combination identification information currently configured by the first Bluetooth device is the same as the target combination identification information. If not, it can configure the combination identification information of the first Bluetooth device as the target. Combination identification information. If they are the same, the first Bluetooth device may not configure its own combined identification information.
  • Step 408 Send the second combination identification information to the second Bluetooth device, so that the second Bluetooth device determines the target combination identification information from the first combination identification information and the second combination identification information according to preset rules, and sends the second combination identification information to the second Bluetooth device.
  • the combination identification information is configured as the target combination identification information.
  • the second Bluetooth device In order for the first Bluetooth device and the second Bluetooth device to be used in synchronization and coordination, the second Bluetooth device also needs to configure the combination identification information as the target combination identification information, so that it can be recognized by the external terminal device as being the same as the first Bluetooth device. Belongs to the target Bluetooth device collection.
  • the first Bluetooth device may send the second combination identification information to the second Bluetooth device, and the second Bluetooth device may determine the target combination identification information from the first combination identification information and the second combination identification information according to the same preset rules.
  • the second Bluetooth device and the first Bluetooth device both determine the larger of the first combination identification information and the second combination identification information as the target combination identification information, or the second Bluetooth device and the first Bluetooth device Both of them follow the rule of determining the smaller of the first combination identification information and the second combination identification information as the target combination identification information, thereby ensuring that the first Bluetooth device and the second Bluetooth device determine the same target combination identification information.
  • the second Bluetooth device After the second Bluetooth device determines the target combination identification information, it can determine whether the combination identification information currently configured by the second Bluetooth device is the same as the target combination identification information. If not, it can configure the combination identification information of the second Bluetooth device as the target. Combination identification information. If they are the same, the second Bluetooth device may not configure its own combined identification information.
  • the first Bluetooth device sends the second combination identification information to the second Bluetooth device, either before the second Bluetooth device sends the first combination identification information to the first Bluetooth device, or before the second Bluetooth device sends the first combination identification information to the first Bluetooth device.
  • the embodiment of the present application does not limit the execution order of step 408.
  • FIG. 5 is a timing diagram of a Bluetooth device configuration method in another embodiment.
  • the second Bluetooth device receives the target instruction sent by the electronic device.
  • the second Bluetooth device can respond to the target instruction and determine whether the currently configured combination identification information is empty. If so, generate the first combination identification information. If If not, obtain the currently configured combination identification information as the first combination identification information.
  • the first Bluetooth device can also receive a target instruction sent by the electronic device.
  • the first Bluetooth device can respond to the target instruction and determine whether the currently configured combination identification information is empty. If so, generate the second combination identification information. If not, then generate the second combination identification information.
  • the currently configured combination identification information is obtained as the second combination identification information.
  • a communication connection can be established between the first Bluetooth device and the second Bluetooth device, the second Bluetooth device can send the first combined identification information to the first Bluetooth device, and the first Bluetooth device can send the second combined identification information to the second Bluetooth device.
  • the first Bluetooth device can determine the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules, and use its own combination identification information to Configure the target combination identification information.
  • the second Bluetooth device can determine the target combination identification information from the first combination identification information and the second combination identification information according to the same preset rules, and add its own
  • the combination identification information is configured as the target combination identification information.
  • the combination identification information of the first Bluetooth device and the second Bluetooth device is configured as the target combination identification information, they can be identified as belonging to the same set of target Bluetooth devices, thereby enabling synchronization and collaboration between the first Bluetooth device and the second Bluetooth device. use.
  • FIG. 6A is a timing diagram of a Bluetooth device configuration method in another embodiment.
  • the above-mentioned first combination identification information may include the first SIRK
  • the second combination identification information may include the second SIRK.
  • the user can place both the first earphone and the second earphone into the earphone box, and press the pairing button on the earphone box to make the first earphone and the second earphone enter pairing.
  • the earphone box detects the pressing operation of the pairing key, it can send target instructions for instructing to enter pairing to the first earphone and the second earphone respectively.
  • the second earphone After the second earphone receives the target command sent by the earphone box, it can determine whether the currently configured SIRK is empty. If so, it can generate SIRK1 (i.e., the first SIRK) according to the second preset method. If not, it can generate the second SIRK.
  • the currently configured SIRK of the headset is SIRK1.
  • the first earphone After the first earphone receives the target command sent by the earphone box, it can determine whether the currently configured SIRK is empty. If so, it can generate SIRK2 (that is, the second SIRK) according to the first preset method. If not, it can generate the first SIRK.
  • the currently configured SIRK of the headset is SIRK2.
  • the first earphone and the second earphone can establish a communication connection, the first earphone can send SIRK2 to the second earphone, and the second earphone can send SIRK1 to the first earphone.
  • the first earphone can determine the target SIRK from SIRK1 and SIRK2 according to the preset rules, and configure its own SIRK as the target SIRK.
  • the second earphone can also determine the target SIRK from SIRK1 and SIRK2 according to the preset rules, and configure its own SIRK. Configure this target SIRK.
  • Both the first earphone and the second earphone are configured with the same target SIRK and can be recognized by the external terminal device as belonging to the same Bluetooth device set, thereby achieving synchronous and coordinated use of the first earphone and the second earphone.
  • FIG. 6B is a timing diagram of a Bluetooth device configuration method in another embodiment.
  • the first earphone and the second earphone are both used for the first time. Since the SIRK is not written into the first earphone and the second earphone when leaving the factory, in this application scenario, The SIRKs of the first earphone and the second earphone are both NULL.
  • This application scenario is a scenario where two new earphones are combined for coordinated use. The user can place both the first earphone and the second earphone into the earphone box, and press the pairing button on the earphone box to make the first earphone and the second earphone enter pairing.
  • the earphone box When the earphone box detects the pressing operation of the pairing key, it can send target instructions for instructing to enter pairing to the first earphone and the second earphone respectively.
  • the second earphone After receiving the target command sent by the earphone box, the second earphone can determine whether the currently configured SIRK is empty. If so, it can generate SIRK1 (ie, the first SIRK) according to the second preset method.
  • the first earphone can determine whether the currently configured SIRK is empty. If so, it can generate SIRK2 (ie, the second SIRK) according to the first preset method.
  • the first earphone and the second earphone can establish a communication connection and send the SIRK generated by themselves to the other party.
  • the first earphone sends SIRK2 to the second earphone, and the second earphone sends SIRK1 to the first earphone.
  • the first earphone can determine whether SIRK1 is greater than or equal to SIRK2. If so, it will use SIKR2 as the target SIRK and configure its own SIRK as the target. SIRK (ie SIRK2), if not, set SIRK1 as the target SIRK, and configure its own SIRK as the target SIRK (ie SIRK1).
  • the second earphone can also determine whether SIRK1 is greater than or equal to SIRK2.
  • SIKR2 will be used as the target SIRK, and its own SIRK will be configured as the target SIRK (i.e. SIRK2). If not, SIRK1 will be used as the target SIRK. And configure its own SIRK as the target SIRK (ie SIRK1).
  • FIG. 6C is a timing diagram of a Bluetooth device configuration method in another embodiment.
  • the first earphone is the earphone used for the first time
  • the second earphone is the old earphone that has been used
  • the first earphone does not have SIRK written in it when it leaves the factory
  • the second earphone has been configured with SIRK.
  • this application scenario is a scenario where the old and new headphones are combined for coordinated use. The user can place both the first earphone and the second earphone into the earphone box, and press the pairing button on the earphone box to make the first earphone and the second earphone enter pairing.
  • the earphone box When the earphone box detects the pressing operation of the pairing key, it can send target instructions for instructing to enter pairing to the first earphone and the second earphone respectively.
  • the second earphone After receiving the target command sent by the earphone box, the second earphone can determine whether the currently configured SIRK is empty, and if not, obtain the currently configured SIRK1 (ie, the first SIRK).
  • the first earphone can determine whether the currently configured SIRK is empty. If so, it can generate SIRK2 (ie, the second SIRK) according to the first preset method.
  • the first earphone and the second earphone can establish a communication connection and send their own SIRK to the other party.
  • the first earphone sends SIRK2 to the second earphone, and the second earphone sends SIRK1 to the first earphone.
  • the first earphone can determine whether SIRK1 is greater than or equal to SIRK2. If so, it will use SIKR2 as the target SIRK and configure its own SIRK as the target.
  • SIKR2 as the target SIRK and configure its own SIRK as the target.
  • SIRK ie SIRK2
  • SIRK1 if not, set SIRK1 as the target SIRK, and configure its own SIRK as the target SIRK (ie SIRK1).
  • the second earphone can also determine whether SIRK1 is greater than or equal to SIRK2. If so, SIKR2 will be used as the target SIRK, and its own SIRK will be configured as the target SIRK (i.e. SIRK2). If not, SIRK1 will be used as the target SIRK. And configure its own SIRK as the target SIRK (ie SIRK1). Further, the second earphone can determine whether the currently configured SIRK is the same as the target SIRK. If they are not the same, then configure its own SIRK as the target SIRK. If they are the same, there is no need to reconfigure. For example, if the target SIRK is SIRK1, no reconfiguration is required.
  • both the first Bluetooth device and the second Bluetooth device configure SIRK as the target SIRK, they can interact with external terminal devices according to the provisions of CSIP to achieve the effect of coordinated and synchronous use.
  • the first Bluetooth device Both the target SIRK and the second Bluetooth device can be used to send LE Audio broadcast signals.
  • the first Bluetooth device can send LE Audio broadcast signals based on the target SIRK.
  • the terminal device that receives the LE Audio broadcast signal sent by the first Bluetooth device can establish a LE Audio Bluetooth connection with the first Bluetooth device and obtain the SIRK (ie, the target SIRK) corresponding to the first Bluetooth device.
  • the terminal device may receive the SIRK sent by the first Bluetooth device during the process of establishing a LE Audio Bluetooth connection with the first Bluetooth device.
  • the LE Audio Bluetooth connection is established on the basis of the BLE connection.
  • the process of establishing the LE Audio Bluetooth connection may include querying some device parameters based on the BLE connection.
  • the query of the device parameters may include the SIRK query of the Bluetooth device.
  • After establishing the LE Audio Bluetooth connection when there is a business need, you can establish a CIS (Connected Isochronous Streams, based on connection synchronization data stream) channel for business transmission.
  • the terminal device can receive the SIRK sent by the first Bluetooth device when establishing a LE Audio Bluetooth connection with the first Bluetooth device.
  • the terminal device can also directly analyze the LE Audio broadcast signal sent by the first Bluetooth device to obtain the SIRK corresponding to the first Bluetooth device.
  • the second Bluetooth device belonging to the target Bluetooth device set can also use the target SIRK to send LE Audio broadcast signals.
  • the terminal device can receive the LE Audio broadcast signal sent by the second Bluetooth device, and determine whether the second Bluetooth device belongs to the same Bluetooth device set as the first Bluetooth device based on the LE Audio broadcast signal sent by the second Bluetooth device. If it is determined that the first Bluetooth device If the Bluetooth device and the second Bluetooth device are in the same Bluetooth device set, they can automatically establish a LE Audio Bluetooth connection with the second Bluetooth device, and synchronously output audio data to the first Bluetooth device and the second Bluetooth device respectively, realizing the first Coordinated and synchronized use between a Bluetooth device and a second Bluetooth device.
  • the first Bluetooth device and the second Bluetooth device use the target SIRK to send the LE Audio broadcast signal.
  • the target SIRK can be directly sent as part of the LE Audio broadcast signal, or it can be calculated and generated based on the target SIRK.
  • the target field in the LE Audio broadcast signal and then generate the LE Audio broadcast signal based on the target field.
  • the LE Audio broadcast signal sent by the second Bluetooth device may include a target field calculated and generated based on the target SIRK.
  • the terminal device can analyze the LE Audio broadcast signal sent by the second Bluetooth device and obtain the target-specific broadcast information and target fields carried by the LE Audio broadcast signal. According to The SIRK (ie target SIRK) corresponding to the first Bluetooth device and the target specific broadcast information are calculated to obtain the target local value. If the target local value is the same as the target field, it can be determined that the first Bluetooth device and the second Bluetooth device are the same Bluetooth device. gather.
  • target SIRK target SIRK
  • the LE Audio broadcast signal may include RSI (resolvable Set Identifier, resolvable set identifier).
  • the target-specific broadcast information obtained by the electronic device from parsing the LE Audio broadcast signal sent by the second Bluetooth device may be a random sequence of RSI, and the target field may be a hash sequence of the RSI carried by the LE Audio broadcast signal.
  • the electronic device can calculate the target local value through the above formula according to the SIRK corresponding to the first Bluetooth device and the random sequence in the analyzed RSI, and compare the target local value with the hash sequence of the analyzed RSI. If the two If the two are consistent, it means that the SIKR of the first Bluetooth device and the SIRK of the second Bluetooth device are the same (both are target SIRKs), then it can be determined that the first Bluetooth device and the second Bluetooth device belong to the same Bluetooth device set.
  • the first Bluetooth device and the second Bluetooth device can follow the same preset rules, determine the target combination identification information from the first combination identification information and the second combination identification information, and use their own combination identification information to
  • the target combination identification information is configured, so that the first Bluetooth device and the second Bluetooth device are successfully added to the target Bluetooth device set, so that the first Bluetooth device and the second Bluetooth device can be used in synchronization and coordination, realizing the dynamic and coordinated use of Bluetooth devices.
  • the effect of flexibly adding it to the Bluetooth device collection can meet the user's needs.
  • another Bluetooth device configuration method is provided, which can be applied to the above-mentioned second Bluetooth device.
  • the method may include the following steps:
  • Step 710 Obtain the first combined identification information.
  • the first combined identification information is used to indicate the first set of Bluetooth devices.
  • step 710 includes: receiving a target instruction sent by the electronic device, which is generated by the electronic device in response to the target triggering operation; obtaining the first combined identification information according to the target instruction; the method also includes: according to the target Instructs to establish a communication connection with the first Bluetooth device.
  • the electronic device includes an earphone box, the first Bluetooth device includes a first earphone, and the second Bluetooth device includes a second earphone; the step of receiving the target instruction sent by the electronic device includes: When placed in the headphone box, the target command sent by the headphone box is received, and the target command is generated by the headphone box in response to the target triggering operation.
  • step 710 includes: generating the first combined identification information according to a second preset manner.
  • step 710 includes: when the combination identification information currently configured by the second Bluetooth device is empty, generating the first combination identification information according to the second preset method; and/or, when the second Bluetooth device If the currently configured combination identification information is not empty, the currently configured combination identification information of the second Bluetooth device is obtained as the first combination identification information.
  • the step of generating the first combined identification information according to the second preset method includes: generating the first combined identification information based on the target BLE address, where the target BLE address includes the BLE address corresponding to the first Bluetooth device or the second Bluetooth device. The corresponding BLE address; or, randomly generate a combination of identification information as the first combination of identification information.
  • the step of generating the first combined identification information based on the target BLE address may include: using the target BLE address as a partial field of the first combined identification information to generate the first combined identification information; or, performing the following steps on the target BLE address: Hash calculation is performed, and the calculation result is used as a partial field of the first combined identification information to generate the first combined identification information.
  • Step 720 Send the first combination identification information to the first Bluetooth device, so that the first Bluetooth device determines the target combination identification information according to the first combination identification information and the preset rules, and configures the combination identification information of the first Bluetooth device as Target combination identification information, the target combination identification information is used to indicate the target Bluetooth device set. Wherein, the target combination identification information is equal to or not equal to the first combination identification information.
  • step 720 includes: sending the first combination identification information to the first Bluetooth device, so that the first Bluetooth device determines the target combination identification information from the first combination identification information and the second combination identification information according to preset rules. information, and configure the combination identification information of the first Bluetooth device as the target combination identification information.
  • the second combination identification information is the combination identification information currently configured by the first Bluetooth device or generated by the first Bluetooth device according to the first preset manner.
  • the method further includes: receiving the second combination identification information sent by the first Bluetooth device; determining the target combination identification information from the first combination identification information and the second combination identification information according to preset rules, and adding the third combination identification information to the target combination identification information.
  • the combination identification information of the two Bluetooth devices is configured as the target combination identification information.
  • the second combined identification information is used to indicate the second set of Bluetooth devices.
  • the preset rules include: determining the larger or smaller of the first combination identification information and the second combination identification information as the target combination identification information.
  • the first combination identification information may include a first SIRK
  • the target combination identification information may include a target SIRK
  • the first Bluetooth device can configure the combination identification information according to the first combination identification information sent by the second Bluetooth device and the preset rules, and can dynamically and flexibly add the first Bluetooth device to the target Bluetooth device. Used in collections to meet user needs.
  • the first Bluetooth device and the second Bluetooth device can follow the same preset rules, determine the target combination identification information from the first combination identification information and the second combination identification information, and configure their own combination identification information as the target combination. Identification information, thereby successfully adding the first Bluetooth device and the second Bluetooth device to the target Bluetooth device set, so that the first Bluetooth device and the second Bluetooth device can be used in synchronization and coordination.
  • another Bluetooth device configuration method is provided, which can be applied to a Bluetooth device system.
  • the Bluetooth device system includes a first Bluetooth device and a second Bluetooth device.
  • the method may include the following steps:
  • Step 810 The second Bluetooth device sends the first combined identification information to the first Bluetooth device.
  • the first combined identification information is used to indicate the first set of Bluetooth devices.
  • the first combination identification information is the combination identification information currently configured by the second Bluetooth device or generated by the second Bluetooth device according to the second preset manner.
  • the method further includes: the second Bluetooth device generates the first combined identification information according to the second preset manner.
  • the method before step 810, further includes: when the combination identification information currently configured by the second Bluetooth device is empty, the second Bluetooth device generates the first combination identification information according to the second preset method; And/or, if the combination identification information currently configured by the second Bluetooth device is not empty, use the combination identification information currently configured by the second Bluetooth device as the first combination identification information.
  • the second Bluetooth device generates the first combined identification information according to the second preset method, which may include: the second Bluetooth device generates the first combined identification information based on the target BLE address, and the target BLE address includes the first Bluetooth device corresponding to BLE address or the BLE address corresponding to the second Bluetooth device; or, randomly generate a combination of identification information as the first combination of identification information.
  • the second Bluetooth device generates the first combined identification information based on the target BLE address, which may include: the second Bluetooth device uses the target BLE address as a partial field of the first combined identification information to generate the first combined identification information; Or, the second Bluetooth device performs hash calculation on the target BLE address, and uses the calculation result as a partial field of the first combined identification information to generate the first combined identification information.
  • Step 820 The first Bluetooth device sends the second combined identification information to the second Bluetooth device.
  • the second combined identification information is used to indicate the second set of Bluetooth devices.
  • the second combination identification information is the combination identification information currently configured by the first Bluetooth device or generated by the first Bluetooth device according to the first preset method.
  • the method before step 820, the method further includes: the first Bluetooth device generates second combined identification information according to the first preset manner.
  • the method before step 820, further includes: when the combination identification information currently configured by the first Bluetooth device is empty, the first Bluetooth device generates the second combination identification information according to the first preset method; And/or, if the combination identification information currently configured by the first Bluetooth device is not empty, use the combination identification information currently configured by the first Bluetooth device as the second combination identification information.
  • the first Bluetooth device generates the second combination identification information according to the first preset method, which may include: the first Bluetooth device generates the second combination identification information based on the target BLE address, and the target BLE address includes the first Bluetooth device corresponding BLE address or the BLE address corresponding to the second Bluetooth device; or, randomly generate a combination identification information as the second combination identification information.
  • the first Bluetooth device generates the second combined identification information based on the target BLE address, which may include: the first Bluetooth device uses the target BLE address as a partial field of the second combined identification information to generate the second combined identification information; Or, the first Bluetooth device performs hash calculation on the target BLE address, and uses the calculation result as a partial field of the second combined identification information to generate the second combined identification information.
  • Step 830 The first Bluetooth device determines the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules, and configures the combination identification information of the first Bluetooth device as the target combination identification information.
  • Step 840 The second Bluetooth device determines the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules, and configures the combination identification information of the second Bluetooth device as the target combination identification information; wherein, the target combination identification information
  • the combined identification information is used to indicate the target Bluetooth device set.
  • the target combination identification information is equal to the first combination identification information, or the target combination identification information is equal to the second combination identification information.
  • the preset rules include: determining the larger or smaller of the first combination identification information and the second combination identification information as the target combination identification information.
  • the first combination identification information includes a first SIRK
  • the second combination identification information includes a second SIRK
  • the target combination identification information may include a target SIRK
  • the method further includes: the first Bluetooth device and the second Bluetooth device respectively receiving a target instruction sent by the electronic device, the target instruction being generated by the electronic device in response to the target triggering operation; wherein the target instruction is used to indicate
  • the first Bluetooth device establishes a communication connection with the second Bluetooth device, and sends the second combination identification information to the second Bluetooth device, and the target instruction is used to instruct the second Bluetooth device to establish a communication connection with the first Bluetooth device, and sends the second Bluetooth device to the first Bluetooth device.
  • the device sends the first combined identification information.
  • the first Bluetooth device system and the second Bluetooth device system can follow the same preset rules, determine the target combination identification information from the first combination identification information and the second combination identification information, and combine their own combinations.
  • the identification information is configured as the target combination identification information, so that the first Bluetooth device system and the second Bluetooth device system are successfully added to the target Bluetooth device set, so that the first Bluetooth device system and the second Bluetooth device system can be used in synchronization and coordination, achieving It has the effect of dynamically and flexibly adding Bluetooth devices to the Bluetooth device collection to meet the user's needs.
  • a Bluetooth device configuration device 900 is provided, which can be applied to the above-mentioned first Bluetooth device.
  • the Bluetooth device configuration device 900 may include a combination identification receiving module 910, a combination identification determination module 920 and Configuration module 930.
  • the combination identification receiving module 910 is configured to receive the first combination identification information sent by the second Bluetooth device, where the first combination identification information is used to indicate the first Bluetooth device set.
  • the combination identification determination module 920 is configured to determine target combination identification information according to the first combination identification information and preset rules, and the target combination identification information is used to indicate a target Bluetooth device set.
  • the configuration module 930 is configured to configure the combination identification information of the first Bluetooth device as the target combination identification information, and the target combination identification information is equal to or not equal to the first combination identification information.
  • the first combined identification information includes a first SIRK.
  • the combination identification determination module 920 is also used to determine the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules.
  • the second combination identification information is the current configuration of the first Bluetooth device.
  • the combined identification information or the first Bluetooth device is generated according to the first preset method, and the second combined identification information is used to indicate the second Bluetooth device set.
  • the Bluetooth device configuration apparatus 900 further includes a connection module.
  • the connection module is configured to receive a target instruction sent by the electronic device.
  • the target instruction is generated by the electronic device in response to the target trigger operation; establish a communication connection with the second Bluetooth device according to the target instruction; and obtain the second combination identification information according to the target instruction.
  • the electronic device includes an earphone box
  • the first Bluetooth device includes a first earphone
  • the second Bluetooth device includes a second earphone.
  • the connection module is also used to receive a target instruction sent by the earphone box when both the first earphone and the second earphone are placed in the earphone box.
  • the target instruction is generated by the earphone box in response to the target triggering operation.
  • the Bluetooth device configuration apparatus 900 further includes a combined identification sending module.
  • the combination identification sending module is used to send the second combination identification information to the second Bluetooth device, so that the second Bluetooth device determines the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules, and sends the combination identification information to the second Bluetooth device.
  • the combination identification information of the second Bluetooth device is configured as the target combination identification information.
  • the first combination identification information is the combination identification information currently configured by the second Bluetooth device or generated by the second Bluetooth device according to the second preset manner.
  • the preset rules include: determining the larger or smaller of the first combination identification information and the second combination identification information as the target combination identification information.
  • the Bluetooth device configuration apparatus 900 further includes a combined identity acquisition module.
  • a combination identification acquisition module configured to generate the second combination identification information according to a first preset method.
  • the combination identification acquisition module is also configured to generate the second combination identification information according to the first preset method when the combination identification information currently configured by the first Bluetooth device is empty; and/or, in the first When the combination identification information currently configured by a Bluetooth device is not empty, the combination identification information currently configured by the first Bluetooth device is used as the second combination identification information.
  • the combined identification acquisition module is also used to generate second combined identification information based on the target BLE address, where the target BLE address includes the BLE address corresponding to the first Bluetooth device or the BLE address corresponding to the second Bluetooth device; or, randomly Generate a combination identification information as the second combination identification information.
  • the combined identity acquisition module is also used to use the target BLE address as a partial field of the second combined identity information to generate the second combined identity information; or, perform a hash calculation on the target BLE address and calculate the hash value. The result is used as a partial field of the second combined identification information to generate the second combined identification information.
  • the first Bluetooth device can configure the combination identification information according to the first combination identification information sent by the second Bluetooth device and the preset rules, and can dynamically and flexibly add the first Bluetooth device to the target Bluetooth device. Used in collections to meet user needs.
  • the first Bluetooth device and the second Bluetooth device can follow the same preset rules, determine the target combination identification information from the first combination identification information and the second combination identification information, and configure their own combination identification information as the target combination. Identification information, thereby successfully adding the first Bluetooth device and the second Bluetooth device to the target Bluetooth device set, so that the first Bluetooth device and the second Bluetooth device can be used in a synchronized and coordinated manner.
  • a Bluetooth device configuration device 1000 is provided, which can be applied to the above-mentioned second Bluetooth device.
  • the Bluetooth device configuration device 1000 can include a combination identification acquisition module 1010 and a combination identification sending module 1020.
  • the combination identification acquisition module 1010 is used to obtain first combination identification information, and the first combination identification information is used to indicate the first Bluetooth device set.
  • the combined identification acquisition module 1010 is also configured to receive a target instruction sent by the electronic device.
  • the target instruction is generated by the electronic device in response to a target triggering operation; and obtain the first combination identification information according to the target instruction.
  • the Bluetooth device configuration apparatus 1000 further includes a connection module, which is configured to establish a communication connection with the first Bluetooth device according to the target instruction.
  • the electronic device includes an earphone box
  • the first Bluetooth device includes a first earphone
  • the second Bluetooth device includes a second earphone
  • the combined identification acquisition module 1010 is also used to detect when both the first earphone and the second earphone are placed.
  • the target command sent by the headphone box is received, and the target command is generated by the headphone box in response to the target triggering operation.
  • the first combination identification information is the combination identification information currently configured by the second Bluetooth device or generated by the second Bluetooth device according to the second preset manner.
  • the combined identification acquisition module 1010 is further configured to generate the first combined identification information according to a second preset manner.
  • the combination identification acquisition module 1010 is also configured to generate the first combination identification information according to the second preset method when the combination identification information currently configured by the second Bluetooth device is empty; and/or, in If the combination identification information currently configured by the second Bluetooth device is not empty, the combination identification information currently configured by the second Bluetooth device is obtained as the first combination identification information.
  • the combination identification acquisition module 1010 is also configured to generate the first combination identification information based on the target BLE address, where the target BLE address includes the BLE address corresponding to the first Bluetooth device or the BLE address corresponding to the second Bluetooth device; or, Randomly generate a combination of identification information as the first combination of identification information.
  • the combined identity acquisition module 1010 is also configured to use the target BLE address as a partial field of the first combined identity information to generate the first combined identity information; or, perform a hash calculation on the target BLE address, and The calculation result is used as a partial field of the first combined identification information to generate the first combined identification information.
  • the combination identification sending module 1020 is used to send the first combination identification information to the first Bluetooth device, so that the first Bluetooth device determines the target combination identification information according to the first combination identification information and the preset rules, and sends the combination identification information of the first Bluetooth device to the first Bluetooth device.
  • the information is configured as the target combination identification information, the target combination identification information is used to indicate the target Bluetooth device set, and the target combination identification information is equal to or not equal to the first combination identification information.
  • the combined identification sending module 1020 is also configured to send the first combined identification information to the first Bluetooth device, so that the first Bluetooth device selects the first combined identification information and the second combined identification information according to preset rules.
  • the target combination identification information is determined, and the combination identification information of the first Bluetooth device is configured as the target combination identification information.
  • the second combination identification information is the combination identification information currently configured by the first Bluetooth device or generated by the first Bluetooth device according to the first preset method.
  • the Bluetooth device configuration apparatus 1000 further includes a combined identification receiving module and a configuration module.
  • the combination identification receiving module is configured to receive the second combination identification information sent by the first Bluetooth device.
  • a configuration module configured to determine the target combination identification information from the first combination identification information and the second combination identification information according to preset rules, and configure the combination identification information of the second Bluetooth device as the target combination identification information.
  • the preset rules include: determining the larger or smaller of the first combination identification information and the second combination identification information as the target combination identification information.
  • the first combination identification information may include a first SIRK
  • the target combination identification information may include a target SIRK
  • the first Bluetooth device can configure the combination identification information according to the first combination identification information sent by the second Bluetooth device and the preset rules, and can dynamically and flexibly add the first Bluetooth device to the target Bluetooth device. Used in collections to meet user needs.
  • the first Bluetooth device and the second Bluetooth device can follow the same preset rules, determine the target combination identification information from the first combination identification information and the second combination identification information, and configure their own combination identification information as the target combination. Identification information, thereby successfully adding the first Bluetooth device and the second Bluetooth device to the target Bluetooth device set, so that the first Bluetooth device and the second Bluetooth device can be used in synchronization and coordination.
  • a Bluetooth device configuration device 1100 is provided, which is applied to a Bluetooth device system.
  • the Bluetooth device system includes a first Bluetooth device and a second Bluetooth device.
  • the Bluetooth device configuration device 1100 includes a combination identification sending device. Module 1110 and configuration module 1120.
  • the combination identification sending module 1110 is configured to send first combination identification information to the first Bluetooth device through the second Bluetooth device, where the first combination identification information is used to indicate the first Bluetooth device set.
  • the first combination identification information is the combination identification information currently configured by the second Bluetooth device or generated by the second Bluetooth device according to the second preset method,
  • the combination identification sending module 1110 is also used to send the second combination identification information to the second Bluetooth device through the first Bluetooth device, and the second combination identification information is used to indicate the second Bluetooth device set.
  • the second combination identification information is the combination identification information currently configured by the first Bluetooth device or generated by the first Bluetooth device according to the first preset manner.
  • the Bluetooth device configuration apparatus 1100 further includes a combined identity acquisition module.
  • the combined identification acquisition module is configured to generate the first combined identification information according to the second preset method through the second Bluetooth device.
  • the combination identification acquisition module is also used by the first Bluetooth device to generate the second combination identification information according to the first preset method.
  • the combination identification acquisition module is also configured to generate the first combination identification information according to the second preset method by the second Bluetooth device when the currently configured combination identification information of the second Bluetooth device is empty; and/ Or, if the combination identification information currently configured by the second Bluetooth device is not empty, use the combination identification information currently configured by the second Bluetooth device as the first combination identification information.
  • the combination identification acquisition module is also configured to, when the combination identification information currently configured by the first Bluetooth device is empty, the first Bluetooth device generates the second combination identification information according to the first preset method; and/or, when the first Bluetooth device If the combination identification information currently configured by the device is not empty, the combination identification information currently configured by the first Bluetooth device is used as the second combination identification information.
  • the combined identification acquisition module is also configured to generate the first combined identification information based on the target BLE address through the second Bluetooth device.
  • the target BLE address includes the BLE address corresponding to the first Bluetooth device or the BLE corresponding to the second Bluetooth device. address; or, randomly generate a combination of identification information as the first combination of identification information through the second Bluetooth device.
  • the combination identification acquisition module is also configured to generate the second combination identification information based on the target BLE address through the first Bluetooth device.
  • the target BLE address includes the BLE address corresponding to the first Bluetooth device or the BLE address corresponding to the second Bluetooth device; or, through the first Bluetooth device.
  • a Bluetooth device randomly generates a combination of identification information as the second combination of identification information.
  • the combined identification acquisition module is also configured to use the target BLE address as a partial field of the first combined identification information through the second Bluetooth device to generate the first combined identification information; or, use the second Bluetooth device to obtain the target BLE address.
  • the BLE address performs hash calculation, and uses the calculation result as a partial field of the first combined identification information to generate the first combined identification information.
  • the combined identification acquisition module is also configured to use the first Bluetooth device to use the target BLE address as a partial field of the second combined identification information to generate the second combined identification information; or to perform hash calculation on the target BLE address through the first Bluetooth device. , and use the calculation result as a partial field of the second combined identification information to generate the second combined identification information.
  • Configuration module 1120 configured to use the first Bluetooth device to determine the target combination identification information from the first combination identification information and the second combination identification information according to preset rules, and configure the combination identification information of the first Bluetooth device as the target combination identification information.
  • the configuration module 1120 is also configured to determine the target combination identification information from the first combination identification information and the second combination identification information according to the preset rules through the second Bluetooth device, and configure the combination identification information of the second Bluetooth device as the target combination identification. Information; wherein, the target combination identification information is used to indicate the target Bluetooth device set.
  • the preset rules include: determining the larger or smaller of the first combination identification information and the second combination identification information as the target combination identification information.
  • the first combination identification information includes a first SIRK
  • the second combination identification information includes a second SIRK
  • the target combination identification information may include a target SIRK
  • the Bluetooth device configuration apparatus 1100 further includes an instruction receiving module.
  • the instruction receiving module is configured to receive the target instruction sent by the electronic device through the first Bluetooth device and the second Bluetooth device respectively.
  • the target instruction is generated by the electronic device in response to the target triggering operation; wherein, the target instruction is used to instruct the first Bluetooth device.
  • Combination identification information is used to receive the target instruction sent by the electronic device through the first Bluetooth device and the second Bluetooth device respectively.
  • the target instruction is generated by the electronic device in response to the target triggering operation; wherein, the target instruction is used to instruct the first Bluetooth device.
  • the first Bluetooth device and the second Bluetooth device can follow the same preset rules, determine the target combination identification information from the first combination identification information and the second combination identification information, and use their own combination identification information to
  • the target combination identification information is configured, so that the first Bluetooth device and the second Bluetooth device are successfully added to the target Bluetooth device set, so that the first Bluetooth device and the second Bluetooth device can be used in synchronization and coordination, realizing the dynamic and coordinated use of Bluetooth devices.
  • the effect of flexibly adding it to the Bluetooth device collection can meet the user's needs.
  • Figure 12 is a structural block diagram of an electronic device in one embodiment.
  • the electronic device 1200 may include one or more of the following components: a processor 1210, a memory 1220 coupled to the processor 1210, where the memory 1220 may store one or more computer programs, and one or more computer programs. It may be configured to implement the Bluetooth device configuration method as described in the above embodiments when executed by one or more processors 1210 .
  • Processor 1210 may include one or more processing cores.
  • the processor 1210 uses various interfaces and lines to connect various parts of the entire electronic device 1200, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 1220, and calling data stored in the memory 1220.
  • the processor 1210 can use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • the processor 1210 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem etc.
  • the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above modem may not be integrated into the processor 1210 and may be implemented solely through a communication chip.
  • the memory 1220 may include random access memory (Random Access Memory, RAM) or read-only memory (Read-Only Memory, ROM). Memory 1220 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1220 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the above method embodiments, etc.
  • the storage data area may also store data created during use of the electronic device 1200, and the like.
  • the electronic device 1200 may also include a Bluetooth module, which may be used to provide Bluetooth communication functions, establish a Bluetooth connection with a second electronic device, and perform Bluetooth data transmission.
  • the Bluetooth module can support one or more Bluetooth protocols, such as classic Bluetooth, BLE, BLE Audio, etc.), but is not limited to this and can change with the development of the Bluetooth protocol.
  • Embodiments of the present application disclose a computer-readable storage medium that stores a computer program, wherein when the computer program is executed by a processor, the Bluetooth device configuration method applied to the first Bluetooth device as described in the above embodiments is implemented.
  • An embodiment of the present application discloses a computer-readable storage medium that stores a computer program, wherein when the computer program is executed by a processor, the Bluetooth device configuration method applied to the Bluetooth device system as described in the above embodiments is implemented.
  • An embodiment of the present application discloses a computer-readable storage medium that stores a computer program, wherein when the computer program is executed by a processor, the Bluetooth device configuration method applied to a headset device as described in the above embodiments is implemented.
  • An embodiment of the present application discloses a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium that stores a computer program.
  • the computer program When executed by a processor, it can implement the application described in the above embodiments.
  • An embodiment of the present application discloses a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium that stores a computer program.
  • the computer program When executed by a processor, it can implement the application described in the above embodiments.
  • An embodiment of the present application discloses a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium that stores a computer program.
  • the computer program When executed by a processor, it can implement the application described in the above embodiments. Bluetooth device configuration method of the Bluetooth device system.
  • the programs can be stored in a non-volatile computer-readable storage medium. , when the program is executed, it may include the processes of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disk, a ROM, etc.
  • Non-volatile memory may include ROM, programmable ROM (PROM), erasable PROM (Erasable PROM, EPROM), electrically erasable PROM (Electrically Erasable PROM, EEPROM) or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM can be in many forms, such as static RAM (Static RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (synchronous DRAM, SDRAM), double data rate SDRAM (Double Data Rate SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), synchronous link DRAM (Synchlink DRAM, SLDRAM), memory bus direct RAM (Rambus DRAM, RDRAM) and direct memory bus dynamic RAM (Direct Rambus DRAM , DRDRAM).
  • static RAM Static RAM, SRAM
  • dynamic RAM Dynamic Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM synchronous DRAM
  • double data rate SDRAM Double Data Rate SDRAM, DDR SDRAM
  • enhanced SDRAM Enhanced Synchronous DRAM, ESDRAM
  • synchronous link DRAM Synchlink DRAM, SLDRAM
  • memory bus direct RAM Rabus DRAM, RDRAM
  • DRDRAM direct memory bus dynamic RAM
  • DRDRAM Direct Rambus DRAM
  • the units described above as separate components may or may not be physically separated.
  • the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例公开了一种蓝牙设备配置方法、装置、电子设备及存储介质。该方法应用于第一蓝牙设备,该方法包括:接收第二蓝牙设备发送的第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;根据所述第一组合标识信息和预设规则确定目标组合标识信息,所述目标组合标识信息用于指示目标蓝牙设备集合;将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述目标组合标识信息等于或不等于所述第一组合标识信息。

Description

蓝牙设备配置方法、装置、电子设备及存储介质
本申请要求于2022年06月23日提交、申请号为202210725571.6、发明名称为“蓝牙设备配置方 法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,具体涉及一种蓝牙设备配置方法、装置、电子设备及存储介质。
背景技术
蓝牙是一种支持设备短距离通信的无线电技术,能够实现在多个支持蓝牙传输的电子设备之间的无线信息交换,使得电子设备之间的数据传输更加迅速和高效。市面上许多蓝牙设备能够组成一个设备集合使用,例如蓝牙耳机、蓝牙音箱系统等都是以蓝牙设备集合的方式进行协同工作。如何有效地将新的蓝牙设备配置到一个蓝牙设备集合中进行使用,成了亟需解决的技术问题。
发明内容
本申请实施例公开了一种蓝牙设备配置方法、装置、电子设备及存储介质。
本申请实施例公开了一种蓝牙设备配置方法,应用于第一蓝牙设备,所述方法包括:
接收第二蓝牙设备发送的第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;
根据所述第一组合标识信息和预设规则确定目标组合标识信息,所述目标组合标识信息用于指示目标蓝牙设备集合;
将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述目标组合标识信息等于或不等于所述第一组合标识信息。
本申请实施例公开了一种蓝牙设备配置方法,应用于第二蓝牙设备,所述方法包括:
获取第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;
向第一蓝牙设备发送所述第一组合标识信息,以使所述第一蓝牙设备根据所述第一组合标识信息和预设规则确定目标组合标识信息,并将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述目标组合标识信息用于指示目标蓝牙设备集合,所述目标组合标识信息等于或不等于所述第一组合标识信息。
本申请实施例公开了一种蓝牙设备配置方法,应用于蓝牙设备系统,所述蓝牙设备系统包括第一蓝牙设备及第二蓝牙设备,所述方法包括:
所述第二蓝牙设备向所述第一蓝牙设备发送第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;所述第一组合标识信息为所述第二蓝牙设备当前配置的组合标识信息或所述第二蓝牙设备根据第二预设方式生成的;
所述第一蓝牙设备向所述第二蓝牙设备发送第二组合标识信息,所述第二组合标识信息用于指示第二蓝牙设备集合;所述第二组合标识信息为所述第一蓝牙设备当前配置的组合标识信息或所述第一蓝牙设备根据第一预设方式生成的;
所述第一蓝牙设备按照预设规则从所述第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息;
所述第二蓝牙设备按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定所述目标组合标识信息,并将所述第二蓝牙设备的组合标识信息配置为所述目标组合标识信息;其中,所述目标组合标识信息用于指示目标蓝牙设备集合。
本申请实施例公开了一种蓝牙设备配置装置,应用于第一蓝牙设备,所述装置包括:
组合标识接收模块,用于接收第二蓝牙设备发送的第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;
组合标识确定模块,用于根据所述第一组合标识信息和预设规则确定目标组合标识信息,所述目标组合标识信息用于指示目标蓝牙设备集合;
配置模块,用于将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述目标组合标识信息等于或不等于所述第一组合标识信息。
本申请实施例公开了一种蓝牙设备配置装置,应用于第二蓝牙设备,所述装置包括:
组合标识获取模块,用于获取第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;
组合标识发送模块,用于向第一蓝牙设备发送所述第一组合标识信息,以使所述第一蓝牙设备根据所述第一组合标识信息和预设规则确定目标组合标识信息,并将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述目标组合标识信息用于指示目标蓝牙设备集合,所述目标组合标识信息等于或不等于所述第一组合标识信息。
本申请实施例公开了一种蓝牙设备配置装置,应用于蓝牙设备系统,所述蓝牙设备系统包括第一蓝牙设备及第二蓝牙设备,所述装置包括:
组合标识发送模块,用于通过所述第二蓝牙设备向所述第一蓝牙设备发送第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;所述第一组合标识信息为所述第二蓝牙设备当前配置的组合标识信息或所述第二蓝牙设备根据第二预设方式生成的;
组合标识发送模块,还用于通过所述第一蓝牙设备向所述第二蓝牙设备发送第二组合标识信息,所述第二组合标识信息用于指示第二蓝牙设备集合;所述第二组合标识信息为所述第一蓝牙设备当前配置的组合标识信息或所述第一蓝牙设备根据第一预设方式生成的;
配置模块,用于通过所述第一蓝牙设备按照预设规则从所述第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息;
配置模块,还用于通过所述第二蓝牙设备按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定所述目标组合标识信息,并将所述第二蓝牙设备的组合标识信息配置为所述目标组合标识信息;其中,所述目标组合标识信息用于指示目标蓝牙设备集合。
本申请实施例公开了一种电子设备,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如上任一所述的方法。
本申请实施例公开了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述的方法。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和有益效果将从说明书、附图以及权利要求书中体现。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A为一个实施例中蓝牙设备配置方法的应用场景图;
图1B为另一个实施例中蓝牙设备配置方法的应用场景图;
图2为一个实施例中蓝牙设备配置方法的时序示意图;
图3为一个实施例中蓝牙设备配置方法的流程图;
图4为另一个实施例中蓝牙设备配置方法的流程图;
图5为另一个实施例中蓝牙设备配置方法的时序示意图;
图6A为另一个实施例中蓝牙设备配置方法的时序示意图;
图6B为另一个实施例中蓝牙设备配置方法的时序示意图;
图6C为另一个实施例中蓝牙设备配置方法的时序示意图;
图6D为一个实施例中LE Audio广播信号的结构示意图;
图7为又一个实施例中蓝牙设备配置方法的流程图;
图8为再一个实施例中蓝牙设备配置方法的流程图;
图9为一个实施例中蓝牙设备配置装置的框图;
图10为另一个实施例中蓝牙设备配置装置的框图;
图11为又一个实施例中蓝牙设备配置装置的框图;
图12为一个实施例中电子设备的结构框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通 技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一蓝牙设备称为第二蓝牙设备,且类似地,可将第二蓝牙设备称为第一蓝牙设备。第一蓝牙设备和第二蓝牙设备两者都是蓝牙设备,但其不是同一蓝牙设备。本申请所使用的术语“多个”指的是两个及两个以上。本申请所使用的术语“和/或”指的是其中的一种方案,或是其中多种方案的任意组合。
在相关技术中,对于属于同一个蓝牙设备集合的多个蓝牙设备(例如蓝牙耳机中的两只耳机),通常在生产时就分别给每个蓝牙设备写入相同的组合标识信息,从而可保证能够将该多个蓝牙设备作为同一个蓝牙设备集合进行协同使用。当成套的蓝牙设备集合中的一个蓝牙设备出现故障或丢失等情况时,往往会出现用户新买的蓝牙设备无法成功加入到原来的蓝牙设备集合的情况,因为新买的蓝牙设备在生产时写入的组合标识信息,与该蓝牙设备集合中蓝牙设备在生产时写入的组合标识信息不相同,无法满足用户的使用需求。
例如,用户丢失了蓝牙耳机中的左耳机,又单独购买了一只左耳机,往往会出现新购买的左耳机与原来的右耳机无法配合使用的情况。
在本申请实施例中,提供一种蓝牙设备配置方法、装置、电子设备及存储介质,能够动态、灵活地将蓝牙设备加入到蓝牙设备集合中进行使用,满足用户的使用需求。
图1A为一个实施例中蓝牙设备配置方法的应用场景图。如图1A所示,第一蓝牙设备110与第二蓝牙设备120可建立通信连接,第一蓝牙设备110及第二蓝牙设备120可包括但不限于耳机、手机、可穿戴设备、音箱设备、智能家居设备等支持蓝牙通信功能的电子设备。第一蓝牙设备110与第二蓝牙设备120可以是相同的蓝牙设备,也可以是不同的蓝牙设备,例如,该第一蓝牙设备110与第二蓝牙设备120可以是TWS(True Wireless Stereo,真无线立体声)耳机等。进一步地,第一蓝牙设备110与第二蓝牙设备120可以是能够配对并同步协调使用的蓝牙设备,例如,第一蓝牙设备110与第二蓝牙设备120均可为耳机,该第一蓝牙设备110可为左耳机,第二蓝牙设备120可为右耳机,或者,第一蓝牙设备110可为右耳机,第二蓝牙设备120可为左耳机等,但不限于此。
第一蓝牙设备110与第二蓝牙设备120之间建立的通信连接,可包括但不限于经典蓝牙连接、BLE(Bluetooth Low Energy,蓝牙低功耗)连接等蓝牙通信连接,上述的通信连接也可以是接触式的触点通信连接等物理连接方式,或者是其它无线通信连接方式,具体的通信连接方式在本申请实施例中不作具体限定。
每个蓝牙设备中可配置有组合标识信息,该组合标识信息可用于标识蓝牙设备所属的蓝牙设备集合,属于不同蓝牙设备集合的蓝牙设备可对应不同的组合标识信息,属于同一蓝牙设备集合的蓝牙设备可对应相同的组合标识信息,外部设备通过该组合标识信息能够将多个蓝牙设备识别为一个蓝牙设备集合,达到属于同一蓝牙设备集合的蓝牙设备能够协调同步使用的目的。例如,对于不同对的蓝牙耳机,分别对应不同的组合标识信息,从而可保证在使用蓝牙耳机时不会出现混淆的情况,每对蓝牙耳机都区别于其它对蓝牙耳机使用。
在本申请实施例中,第二蓝牙设备120可向第一蓝牙设备110发送第一组合标识信息,第一蓝牙设备110接收第二蓝牙设备120发送的第一组合标识信息,可根据该第一组合标识信息和预设规则确定目标组合标识信息,并将第一蓝牙设备110的组合标识信息配置为该目标组合标识信息,也即,成功将第一蓝牙设备110成功加入到目标组合标识信息指示的目标蓝牙设备集合中。第一蓝牙设备110在将组合标识信息配置为该目标组合标识信息后,可与同样配置有该目标组合标识信息的蓝牙设备组成该目标蓝牙设备集合,目标蓝牙设备集合下的各个蓝牙设备均配置该目标组合标识信息。
在一些实施例中,第二蓝牙设备120也可按照预设规则,将第二蓝牙设备120的组合标识信息配置为该目标组合标识信息,第一蓝牙设备110与第二蓝牙设备120均将自身的组合标识信息配置为该目标组合标识信息后,可被识别为属于目标蓝牙设备集合,从而第一蓝牙设备110与第二蓝牙设备120能够协调同步进行使用。
属于同一蓝牙设备集合的蓝牙设备在使用时,该蓝牙设备集合中的各个蓝牙设备可基于相同的组合 标识信息发送蓝牙广播信号,外部设备在至少扫描到其中一个蓝牙设备的蓝牙广播信号,并根据操作指令与该蓝牙设备建立蓝牙连接后,若持续扫描到对应相同组合标识信息的蓝牙广播信号,则向发送这些蓝牙广播信号的蓝牙设备发起蓝牙连接请求。在外部设备与蓝牙设备集合中的所有蓝牙设备都建立连接后,各个蓝牙设备被分配可能不同的角色(如左耳机播放左声道音频,右耳机播放右声道音频)。
示例性地,图1B为另一个实施例中蓝牙设备配置方法的应用场景图。如图1B所示,以上述的第一蓝牙设备110为第一耳机,第二蓝牙设备120为第二耳机为例,第一耳机可与第二耳机建立通信连接。第二耳机可向第一耳机发送第一组合标识信息,第一耳机可向第二耳机发送第二组合标识信息,该第一组合标识信息可为第二耳机当前配置的组合标识信息或第二耳机根据第二预设方式生成的,该第二组合标识信息可为第一耳机当前配置的组合标识信息或第一耳机根据第一预设方式生成的。第一耳机可按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第一耳机的组合标识信息配置为该目标组合标识信息,第二耳机也可按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第二耳机的组合标识信息配置为该目标组合标识信息。第一耳机与第二耳机均将自身的组合标识信息配置为该目标组合标识信息,二者的组合标识信息相同,因此第一耳机与第二耳机可被识别为属于同一个蓝牙设备集合(即目标组合标识信息所指示的目标蓝牙设备集合),第一耳机与第二耳机可协调同步进行使用。
需要说明的是,一个蓝牙设备集合下包含的蓝牙设备的数量在本申请实施例中不作具体限定。
图2为一个实施例中蓝牙设备配置方法的时序示意图。如图2所示,该蓝牙设备配置方法可包括以下步骤:
步骤1、第二蓝牙设备获取第一组合标识信息,该第一组合标识信息用于指示第一蓝牙设备集合。
步骤2、第二蓝牙设备向第一蓝牙设备发送第一组合标识信息。
步骤3、第一蓝牙设备接收第二蓝牙设备发送的第一组合标识信息,根据第一组合标识信息和预设规则确定目标组合标识信息,该目标组合标识信息用于指示目标蓝牙设备集合,该目标组合标识信息等于或不等于第一组合标识信息。
步骤4、第一蓝牙设备将组合标识信息配置为目标组合标识信息。
在一些实施例中,第一蓝牙设备可按照预设规则,从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,该第二组合标识信息为第一蓝牙设备当前配置的组合标识信息或第一蓝牙设备根据第一预设方式生成的,该第二组合标识信息用于指示第二蓝牙设备集合。
进一步地,第一蓝牙设备可向第二蓝牙设备发送第二组合标识信息,第二蓝牙设备可按照预设规则,从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第二蓝牙设备的组合标识信息配置为该目标组合标识信息。该第一组合标识信息为第二蓝牙设备当前配置的组合标识信息或第二蓝牙设备根据第二预设方式生成的。
如图3所示,在一个实施例中,提供一种蓝牙设备配置方法,可应用于上述的第一蓝牙设备,该方法可包括以下步骤:
步骤310,接收第二蓝牙设备发送的第一组合标识信息。
第一蓝牙设备与第二蓝牙设备可建立通信连接,该通信连接可包括但不限于经典蓝牙连接、BLE连接等蓝牙通信连接。
作为一种实施方式,用户可在第一蓝牙设备或第二蓝牙设备上进行连接操作,以触发第一蓝牙设备与第二蓝牙设备建立蓝牙通信连接。以用户在第二蓝牙设备上进行连接操作为例,第一蓝牙设备可为具备蓝牙扫描功能的设备,第一蓝牙设备能够对周围存在的蓝牙设备进行扫描。在第二蓝牙设备检测到用户进行的连接操作时,可发送蓝牙连接请求,该蓝牙连接请求可携带有第二蓝牙设备的蓝牙地址,第一蓝牙设备可开启蓝牙的inquiry扫描模式,扫描并获取到第二蓝牙设备发送的蓝牙连接请求,并根据该蓝牙连接请求中携带的设备标识信息(如蓝牙地址等)与第二蓝牙设备建立蓝牙通信连接。连接操作的具体操作方式在本申请实施例中不作限定,该连接操作可包括但不限于触控操作、手势操作、语音操作等,例如,第一蓝牙设备及第二蓝牙设备上可设置有连接按钮,用户通过按压该连接按钮进行连接操作等,但不限于此。
作为另一种实施方式,用户可在除第一蓝牙设备及第二蓝牙设备以外的电子设备上进行目标触发操作,通过该电子设备触发第一蓝牙设备与第二蓝牙设备建立蓝牙通信连接,该电子设备为能够同时与第一蓝牙设备及第二蓝牙设备建立通信连接的电子设备。具体地,该电子设备可为与第一蓝牙设备及第二蓝牙设备配套使用的设备,例如,该第一蓝牙设备及第二蓝牙设备均为蓝牙音箱,则电子设备可为用于控制蓝牙音箱的遥控器,又例如,该第一蓝牙设备及第二蓝牙设备均为耳机,则电子设备可为耳机盒等。 用户在电子设备上进行目标触发操作,电子设备可响应于该目标触发操作,生成目标指令,并向第一蓝牙设备和/或第二蓝牙设备发送该目标指令,该目标指令可用于指示第一蓝牙设备与第二蓝牙设备建立蓝牙通信连接,并触发第一蓝牙设备及第二蓝牙设备进行组合标识信息的配置流程。
以电子设备分别向第一蓝牙设备及第二蓝牙设备发送该目标指令为例,第一蓝牙设备可接收电子设备发送的目标指令,并根据该目标指令与第二蓝牙设备建立通信连接。电子设备发送的目标指令中可携带有第一蓝牙设备及第二蓝牙设备分别对应的设备标识信息(如蓝牙地址等)。第一蓝牙设备接收到目标指令后,可根据目标指令携带的第二蓝牙设备的设备标识信息与第二蓝牙设备建立蓝牙连接。同理,第二蓝牙设备接收到目标指令后,可根据目标指令携带的第一蓝牙设备的设备标识信息与第一蓝牙设备建立蓝牙通信连接。
需要说明的是,电子设备也可仅向第一蓝牙设备及第二蓝牙设备中的其中一个发送目标指令,该目标指令中携带有另一个蓝牙设备的设备标识信息,以电子设备仅向第一蓝牙设备发送第一指令为例,该目标指令中可携带有第二蓝牙设备的设备标识信息,第一蓝牙设备可根据该目标指令携带的第二蓝牙设备的蓝牙地址,向第二蓝牙设备发送蓝牙连接请求,以与第二蓝牙设备建立蓝牙通信连接。
上述的目标触发操作的具体操作方式在本申请实施例中不作限定,例如,电子设备上可设置有特定按键,该特定按键可以是虚拟按键也可以是物理按键,目标触发操作可以是对该特定按键进行预设操作(如长按一段时间、点击特定按键、双击特定按键等);又例如,目标触发操作可以是触控操作、手势操作、语音操作等中的任一种,电子设备可通过相应的传感器检测该触发操作(如通过压力传感器检测预设的按压操作、通过距离传感器检测预设的手势操作、通过语音传感器检测预设的语音内容等),但不限于此。
作为一种具体实施方式,该第一蓝牙设备可包括第一耳机,第二蓝牙设备可包括第二耳机,电子设备可包括耳机盒,在第一耳机及第二耳机被放置在耳机盒内的情况下,第一耳机可接收耳机盒发送的目标指令,该目标指令可为耳机盒响应于目标触发操作发送的。第二耳机也可接收耳机盒发送的目标指令,第一耳机与第二耳机可建立通信连接。例如,该目标触发操作可以是长按耳机盒上的配对按键等方式,在此不作限定。用户仅需要将需要组合使用的两个耳机放入耳机盒并对耳机盒进行操作,即可成功让两个耳机配对并协调使用,操作更加简便,提高了用户体验。
第二蓝牙设备可获取第一组合标识信息,在第一蓝牙设备与第二蓝牙设备建立通信连接后,第二蓝牙设备可向第一蓝牙设备发送该第一组合标识信息,该第一组合标识信息可用于指示第一蓝牙设备集合。可选地,第一组合标识信息可为第二蓝牙设备当前配置的组合标识信息;或者,第一组合标识信息可以是第二蓝牙设备按照第二预设方式生成的或是预先存储的组合标识信息,与第二蓝牙设备当前配置的组合标识信息不同。
进一步地,第二蓝牙设备在接收到电子设备发送的目标指令后,可根据该目标指令与第一蓝牙设备建立通信连接,还可根据该目标指令获取第一组合标识信息并将该第一组合标识信息发送给第一蓝牙设备。
步骤320,根据第一组合标识信息和预设规则确定目标组合标识信息,该目标组合标识信息用于指示目标蓝牙设备集合。
第一蓝牙设备接收到第二蓝牙设备发送的第一组合标识信息后,可根据该第一组合标识信息和预设规则确定目标组合标识信息,该目标组合标识信息可等于或不等于第一组合标识信息,若目标组合标识信息等于第一组合标识信息,则目标蓝牙设备集合为上述的第一蓝牙设备集合,若目标组合标识信息不等于第一组合标识信息,则目标蓝牙设备集合区别于上述的第一蓝牙设备集合。
预设规则可根据实际需求进行设置,作为一种实施方式,预设规则可包括直接将第二蓝牙设备发送的第一组合标识信息确定为目标组合标识信息,则目标组合标识信息等于第一组合标识信息。
作为另一种实施方式,第一蓝牙设备可按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,该第二组合标识信息可用于指示第二蓝牙设备集合。
可选地,该预设规则可包括将第一组合标识信息与第二组合标识信息中的较大者或较小者确定为目标组合标识信息,则目标组合标识信息可等于第一组合标识信息,或等于第二组合标识信息。其中,第二组合标识信息可以是第一蓝牙设备当前配置的组合标识信息(即第一蓝牙设备在接收到第一组合标识信息时所配置的组合标识信息);或者,第二组合标识信息可以是第一蓝牙设备按照第一预设方式生成或是预先存储的组合标识信息,与第一蓝牙设备当前配置的组合标识信息不同。
作为又一种实施方式,预设规则可包括对第一组合标识信息中的特定字段进行修改,以得到目标组合标识信息,则目标组合标识信息不等于第一组合标识信息。该特定字段可以是组合标识信息中预先设 置的某个字段,例如,第一组合标识信息中可包括有随机生成的字段,则可对该随机生成的字段进行修改,以得到目标组合标识信息。
步骤330,将第一蓝牙设备的组合标识信息配置为目标组合标识信息。
在一些实施例中,第一蓝牙设备确定目标组合标识信息后,可判断第一蓝牙设备当前配置的组合标识信息是否与目标组合标识信息相同,若不相同,则可将第一蓝牙设备的组合标识信息配置为该目标组合标识信息。若相同,则第一蓝牙设备可不对自身的组合标识信息进行配置。
第一蓝牙设备将自身的组合标识信息配置为目标组合标识信息后,第一蓝牙设备使用的组合标识信息与目标蓝牙设备集合下的其它蓝牙设备使用的组合标识信息相同,若外部的终端设备同时扫描到第一蓝牙设备及该其它蓝牙设备,由于第一蓝牙设备和该其它蓝牙设备的组合标识信息相同,均为上述的目标组合标识信息,则可将第一蓝牙设备和该其它蓝牙设备作为一个蓝牙设备集合进行协同使用。
在一些实施例中,BLE Audio(Bluetooth Low Energy Audio,蓝牙低功耗音频)技术作为近几年蓝牙大力推行的主流技术,能够给人们带来更低功耗、更低成本、更高质量、以及更低延迟的无线音频服务。在BLE Audio技术中提供了CSIP(Coordinated Set Identification Profile,协调集识别协议),可以让属于同一个蓝牙设备集合中的多个蓝牙设备在与外部设备进行交互时,达成协调同步的目的。在CSIP中,对于属于同一个蓝牙设备集合的多个蓝牙设备,可使用相同的SIRK(Set Identity Resolving Key,组合标识解析值),即将具有相同SIRK的蓝牙设备识别为同一个蓝牙设备集合。
在相关的技术中,当成套的蓝牙设备集合中的一个蓝牙设备出现故障或丢失等情况时,因为用户新买的蓝牙设备在生产时写入的SIRK与原来的蓝牙设备集合下的蓝牙设备所使用的SIRK不同,所以会导致新买的蓝牙设备无法成功加入到原来的蓝牙设备集合的情况。
在本申请实施例中,第一组合标识信息可包括第一SIRK,目标组合标识信息可包括目标SIRK,第二蓝牙设备可获取第一SIRK,并将第一SIRK发送至第一蓝牙设备,第一蓝牙设备可根据第一SIRK及预设规则确定目标SIRK,该目标SIRK等于第一SIRK或不等于第一SIRK,再将自身的SIRK配置为该目标SIRK,从而可使第一蓝牙备成功加入目标SIRK指示的目标蓝牙设备集合中。目标蓝牙设备集合下的各个蓝牙设备均配置该目标SIRK,目标蓝牙设备集合下的各个蓝牙设备在与外部的终端设备进行交互时,由于配置有相同的目标SIRK,外部的终端设备能够对目标蓝牙设备集合下的各个蓝牙设备进行协调同步使用。
在本申请实施例中,第一蓝牙设备可根据第二蓝牙设备发送的第一组合标识信息及预设规则对组合标识信息进行配置,能够动态、灵活地将第一蓝牙设备加入到目标蓝牙设备集合中进行使用,满足用户的使用需求。
在一些实施例中,第二蓝牙设备可为用户期望与第一蓝牙设备配对并能够同步协调进行使用的蓝牙设备,第二蓝牙设备也可将自身的组合标识信息配置为目标组合标识信息,即第一蓝牙设备与第二蓝牙设备均配置有相同的组合标识信息,可被外部的终端设备识别为属于同一个蓝牙设备集合。如图4所示,提供一种蓝牙设备配置方法,可应用于上述的第一蓝牙设备,该方法可包括以下步骤:
步骤402,接收第二蓝牙设备发送的第一组合标识信息。
第二蓝牙设备在向第一蓝牙设备发送第一组合标识信息之前,可先获取第一组合标识信息。该第一组合标识信息为第二蓝牙设备当前配置的组合标识信息或第二蓝牙设备根据第二预设方式生成的。
作为一种实施方式,第二蓝牙设备在向第一蓝牙设备发送第一组合标识信息之前,可先根据第二预设方式生成第一组合标识信息。不论第二蓝牙设备当前是否配置有组合标识信息,第二蓝牙设备都是根据第二预设方式生成第一组合标识信息,再将该生成的第一组合标识信息发送给第一蓝牙设备。
作为另一种实施方式,在第二蓝牙设备当前配置的组合标识信息为空的情况下,第二蓝牙设备根据第二预设方式生成第一组合标识信息;和/或,在第二蓝牙设备当前配置的组合标识信息不为空的情况下,将第二蓝牙设备当前配置的组合标识信息获取为第一组合标识信息。
进一步地,第二蓝牙设备可判断当前配置的组合标识信息是否为空,若当前配置的组合标识信息为空,则可根据第二预设方式生成第一组合标识信息,若当前配置的组合标识信息不为空,则可将当前配置的组合标识信息获取为第一组合标识信息。
第二蓝牙设备在出厂时,可不写入组合标识信息,即第二蓝牙设备在出厂时未配置组合标识信息。当用户需要使用第二蓝牙设备时,第二蓝牙设备可再生成组合标识信息并进行配置。在需要将第二蓝牙设备与第一蓝牙设备配置为同一个蓝牙设备集合进行协调使用时,第二蓝牙设备可能已配置有组合标识信息,也可能未配置组合标识信息。因此,第二蓝牙设备在向第一蓝牙设备发送第一组合标识信息之前,可先判断当前配置的组合标识信息是否为空。若第二蓝牙设备当前配置的组合标识信息为空,说明第二 蓝牙设备当前未配置有组合标识信息,则可根据第二预设方式生成第一组合标识信息,并发送给第一蓝牙设备。若第二蓝牙设备当前配置的组合标识信息不为空,说明第二蓝牙设备当前配置有组合标识信息,则可将当前配置的组合标识信息作为第一组合标识信息发送给第一蓝牙设备。第二蓝牙设备在出厂时,不需要写入组合标识信息,可降低生产成本,且让第二蓝牙设备后续的使用更加灵活。
在一些实施例中,第二蓝牙设备根据第二预设方式生成第一组合标识信息,可包括但不限于以下几种方式中的任一种:
方式一、随机生成一个组合标识信息作为第一组合标识信息。
第二蓝牙设备中可预先存储有组合标识信息的各个字段,并随机生成各个字段中的字段值,以得到唯一的第一组合标识信息。
方式二、基于目标BLE地址生成第一组合标识信息,该目标BLE地址包括第一蓝牙设备对应的BLE地址或第二蓝牙设备对应的BLE地址。
第二蓝牙设备可获取目标BLE地址,并按照特定方式根据目标BLE地址生成第一组合标识信息。可选地,该特定方式可以是直接将目标BLE地址作为第一组合标识信息的部分字段,以生成第一组合标识信息。进一步地,可将目标BLE地址作为第一组合标识信息的部分字段,并将该部分字段与第一预设字段进行组合,生成第一组合标识信息,该第一预设字段可指的是组合标识信息中预先规定的字段信息,也可以是随机生成的字段信息。例如,第一组合标识信息可包括第一SIRK,SIRK可为128字节,可直接将目标BLE地址(48字节)作为第一SIRK的一部分字段,例如,SIRK=BLE地址‖第一预设字段。
可选地,该特定方式也可以是对目标BLE地址进行哈希计算,并将计算结果作为第一组合标识信息的部分字段,以生成第一组合标识信息。进一步地,可将计算结果与第二预设字段进行组合生成目标组合标识信息,例如,SIRK=HASH‖第二预设字段,该HASH表示对目标BLE地址进行哈希计算的计算结果。其中,第一预设字段与第二预设字段可相同,也可不同,可根据实际情况进行设置。由于目标BLE地址是唯一的,可保证生成的第一组合标识信息也是唯一的,不会与其它蓝牙设备集合的组合标识信息产生混淆,提高蓝牙设备集合使用的准确性。
作为一种具体实施方式,第二蓝牙设备可接收电子设备发送的目标指令,根据该目标指令获取第一组合标识信息,以及根据该目标指令与第一蓝牙设备建立通信连接。需要说明的是,第二蓝牙设备获取第一组合标识信息可以是在与第一蓝牙设备建立通信连接之前,也可以是在与第一蓝牙设备建立通信连接之后,本申请实施例对此不作限定。
步骤404,按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息。
第一蓝牙设备在按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息之前,可先获取第二组合标识信息。该第二组合标识信息为第一蓝牙设备当前配置的组合标识信息或第一蓝牙设备根据第一预设方式生成的。
作为一种实施方式,第一蓝牙设备在按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息之前,可先根据第一预设方式生成第二组合标识信息。不论第一蓝牙设备当前是否配置有组合标识信息,第一蓝牙设备都是根据第一预设方式生成第二组合标识信息,再按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息。
作为另一种实施方式,第一蓝牙设备在按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息之前,在第一蓝牙设备当前配置的组合标识信息为空的情况下,根据第一预设方式生成第二组合标识信息;和/或在第一蓝牙设备当前配置的组合标识信息不为空的情况下,将第一蓝牙设备当前配置的组合标识信息作为第二组合标识信息。
进一步地,第一蓝牙设备可判断当前配置的组合标识信息是否为空,若第一蓝牙设备当前配置的组合标识信息为空,则可根据第一预设方式生成第二组合标识信息,若当前配置的组合标识信息不为空,则可将当前配置的组合标识信息获取为第二组合标识信息。
与第二蓝牙设备类似,第一蓝牙设备在出厂时,可不写入组合标识信息,即第一蓝牙设备在出厂时未配置组合标识信息。当用户需要使用第一蓝牙设备时,第一蓝牙设备可再生成组合标识信息并进行配置。在需要将第一蓝牙设备与第二蓝牙设备配置为同一个蓝牙设备集合进行协调使用时,第一蓝牙设备可能已配置有组合标识信息,也可能未配置组合标识信息。因此,第一蓝牙设备在确定目标组合标识信息之前,可先判断当前配置的组合标识信息是否为空。若第一蓝牙设备当前配置的组合标识信息为空,说明第一蓝牙设备当前未配置有组合标识信息,则可根据第一预设方式生成第二组合标识信息。若第一蓝牙设备当前配置的组合标识信息不为空,说明第一蓝牙设备当前配置有组合标识信息,则可将当前配 置的组合标识信息作为第二组合标识信息。第一蓝牙设备在出厂时,不需要写入组合标识信息,可降低生产成本,且让第一蓝牙设备后续的使用更加灵活。
在一些实施例中,第一蓝牙设备根据第一预设方式生成第二组合标识信息,可包括但不限于以下几种方式中的任一种:
方式一、随机生成一个组合标识信息作为第二组合标识信息。
第一蓝牙设备中可预先存储有组合标识信息的各个字段,并随机生成各个字段中的字段值,以得到唯一的第二组合标识信息。
方式二、基于目标BLE地址生成第二组合标识信息,该目标BLE地址包括第一蓝牙设备对应的BLE地址或第二蓝牙设备对应的BLE地址。
第一蓝牙设备可获取目标BLE地址,并按照特定方式根据目标BLE地址生成第二组合标识信息。可选地,该特定方式可以是直接将目标BLE地址作为第二组合标识信息的部分字段,以生成第二组合标识信息。进一步地,可将目标BLE地址作为第二组合标识信息的部分字段,并将该部分字段与第一预设字段进行组合,生成第二组合标识信息。例如,第二组合标识信息可包括第二SIRK,SIRK可为128字节,可直接将目标BLE地址(48字节)作为第二SIRK的一部分字段。
可选地,该特定方式也可以是对目标BLE地址进行哈希计算,并将计算结果作为第二组合标识信息的部分字段,以生成第二组合标识信息。进一步地,可将计算结果与第二预设字段进行组合生成目标组合标识信息。
进一步地,为了让第一组合标识信息与第二组合标识信息不同,第二蓝牙设备与第一蓝牙设备可分别选择不同的目标BLE地址,例如,均可将自身的BLE地址作为目标BLE地址,第一蓝牙设备根据第一蓝牙设备的BLE地址生成第二组合标识信息,第二蓝牙设备根据第二蓝牙设备的BLE地址生成第一组合标识信息;或者,可将对方的BLE地址作为目标BLE地址,第一蓝牙设备根据第二蓝牙设备的BLE地址生成第二组合标识信息,第二蓝牙设备根据第一蓝牙设备的BLE地址生成第一组合标识信息。可选地,也可不对第二蓝牙设备与第一蓝牙设备所选择的目标BLE地址进行限制,但是第二蓝牙设备与第一蓝牙设备可分别采用不同的第一预设字段的字段内容,或分别采用不同的第二预设字段的字段内容,以保证生成的第一组合标识信息与第二组合标识信息不同。
需要说明的是,第一蓝牙设备生成第二组合标识信息的第一预设方式,可与第二蓝牙设备生成第一组合标识信息的的第二预设方式不同,也可相同,例如,第一蓝牙设备及第二蓝牙设备均采用随机的方式生成组合标识信息,或者,第一蓝牙设备采用随机的方式生成第二组合标识信息,而第二蓝牙设备基于目标BLE地址生成第一组合标识信息等,本申请实施例对此不作限制。
作为一种具体实施方式,第一蓝牙设备可接收电子设备发送的目标指令,根据该目标指令获取第二组合标识信息,以及根据该目标指令与第二蓝牙设备建立通信连接。需要说明的是,第一蓝牙设备获取第二组合标识信息可以是在与第二蓝牙设备建立通信连接之前,也可以是在与第二蓝牙设备建立通信连接之后,本申请实施例对此不作限定。
第一蓝牙设备可按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息。可选地,该预设规则可包括:将第一组合标识信息与第二组合标识信息中的较大者或较小者确定为目标组合标识信息。在第一蓝牙设备接收到第二蓝牙设备发送的第一组合标识信息之后,可将第一组合标识信息与第二组合标识信息进行比较,并将其中的较大者或较小者确定为目标组合标识信息。可预先约定是选择较大者还是较小者作为目标组合标识信息,例如,若是选择较大者作为目标组合标识信息,如果第一组合标识信息大于第二组合标识信息,则可将第一组合标识信息确定为目标组合标识信息,如果第二组合标识信息大于第一组合标识信息,则可将第二组合标识信息确定为目标组合标识信息。又例如,若是选择较小者作为目标组合标识信息,如果第一组合标识信息小于第二组合标识信息,则可将第一组合标识信息确定为目标组合标识信息,如果第二组合标识信息小于第一组合标识信息,则可将第二组合标识信息确定为目标组合标识信息。
步骤406,将第一蓝牙设备的组合标识信息配置为目标组合标识信息。
第一蓝牙设备确定目标组合标识信息后,可判断第一蓝牙设备当前配置的组合标识信息是否与目标组合标识信息相同,若不相同,则可将第一蓝牙设备的组合标识信息配置为该目标组合标识信息。若相同,则第一蓝牙设备可不对自身的组合标识信息进行配置。
步骤408,向第二蓝牙设备发送第二组合标识信息,以使第二蓝牙设备按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第二蓝牙设备的组合标识信息配置为目标组合标识信息。
为了让第一蓝牙设备与第二蓝牙设备能够同步协调进行使用,则第二蓝牙设备也需要将组合标识信息配置为目标组合标识信息,才可被外部的终端设备识别为与第一蓝牙设备均属于目标蓝牙设备集合。第一蓝牙设备可向第二蓝牙设备发送第二组合标识信息,第二蓝牙设备可按照相同的预设规则,从第一组合标识信息及第二组合标识信息中确定目标组合标识信息。例如,第二蓝牙设备与第一蓝牙设备均按照将第一组合标识信息与第二组合标识信息中的较大者确定为目标组合标识信息的规则,或者,第二蓝牙设备与第一蓝牙设备均按照将第一组合标识信息与第二组合标识信息中的较小者确定为目标组合标识信息的规则,从而可保证第一蓝牙设备与第二蓝牙设备确定相同的目标组合标识信息。
第二蓝牙设备确定目标组合标识信息后,可判断第二蓝牙设备当前配置的组合标识信息是否与目标组合标识信息相同,若不相同,则可将第二蓝牙设备的组合标识信息配置为该目标组合标识信息。若相同,则第二蓝牙设备可不对自身的组合标识信息进行配置。
需要说明的是,第一蓝牙设备向第二蓝牙设备发送第二组合标识信息,可以在第二蓝牙设备向第一蓝牙设备发送第一组合标识信息之前,也可以在第二蓝牙设备向第一蓝牙设备发送第一组合标识信息之后,或者二者同时进行,本申请实施例对步骤408的执行顺序不作限定。
示例性地,图5为另一个实施例中蓝牙设备配置方法的时序示意图。如图5所示,第二蓝牙设备接收电子设备发送的目标指令,第二蓝牙设备可响应该目标指令,判断当前配置的组合标识信息是否为空,若是,则生成第一组合标识信息,若否,则将当前配置的组合标识信息获取为第一组合标识信息。第一蓝牙设备也可接收电子设备发送的目标指令,第一蓝牙设备可响应该目标指令,判断当前配置的组合标识信息是否为空,若是,则生成第二组合标识信息,若否,则将当前配置的组合标识信息获取为第二组合标识信息。第一蓝牙设备与第二蓝牙设备之间可建立通信连接,第二蓝牙设备可向第一蓝牙设备发送第一组合标识信息,第一蓝牙设备可向第二蓝牙设备发送第二组合标识信息。第一蓝牙设备接收到第二蓝牙设备发送的第一组合标识信息后,可按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将自身的组合标识信息配置为该目标组合标识信息。第二蓝牙设备接收到第一蓝牙设备发送的第二组合标识信息后,可按照相同的预设规则,从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将自身的组合标识信息配置为该目标组合标识信息。第一蓝牙设备与第二蓝牙设备的组合标识信息均配置为目标组合标识信息后,可被识别为属于相同的目标蓝牙设备集合,从而可实现对第一蓝牙设备及第二蓝牙设备的同步协同使用。
示例性地,图6A为另一个实施例中蓝牙设备配置方法的时序示意图。如图6A所示,以第一蓝牙设备为第一耳机,第二蓝牙设备为第二耳机为例,上述的第一组合标识信息可包括第一SIRK,第二组合标识信息可包括第二SIRK。用户可将第一耳机及第二耳机均放置到耳机盒中,并按压耳机盒上的配对键以使第一耳机及第二耳机进入配对。耳机盒检测到针对配对键的按压操作,则可分别向第一耳机及第二耳机发送用于指示进入配对的目标指令。第二耳机接收到耳机盒发送的目标指令后,可判断当前配置的SIRK是否为空,若是,则可按照第二预设方式生成SIRK1(即第一SIRK),若否,则可将第二耳机当前配置的SIRK获取为SIRK1。第一耳机接收到耳机盒发送的目标指令后,可判断当前配置的SIRK是否为空,若是,则可按照第一预设方式生成SIRK2(即第二SIRK),若否,则可将第一耳机当前配置的SIRK获取为SIRK2。第一耳机与第二耳机可建立通信连接,第一耳机可向第二耳机发送SIRK2,第二耳机可向第一耳机发送SIRK1。第一耳机可按照预设规则从SIRK1及SIRK2中确定目标SIRK,并将自身的SIRK配置为该目标SIRK,第二耳机也可预设规则从SIRK1及SIRK2中确定目标SIRK,并将自身的SIRK配置为该目标SIRK。第一耳机与第二耳机均配置有相同的目标SIRK,可被外部的终端设备识别为属于同一个蓝牙设备集合,从而实现第一耳机与第二耳机的同步协调使用。
示例性地,图6B为另一个实施例中蓝牙设备配置方法的时序示意图。如图6B所示,作为一种应用场景,第一耳机及第二耳机均为首次使用的耳机,由于第一耳机与第二耳机在出厂时均未写入SIRK,则在该应用场景下,第一耳机与第二耳机的SIRK均为空(NULL),该应用场景为将两只新耳机组合进行协调使用的场景。用户可将第一耳机及第二耳机均放置到耳机盒中,并按压耳机盒上的配对键以使第一耳机及第二耳机进入配对。耳机盒检测到针对配对键的按压操作,则可分别向第一耳机及第二耳机发送用于指示进入配对的目标指令。第二耳机接收到耳机盒发送的目标指令后,可判断当前配置的SIRK是否为空,若是,则可按照第二预设方式生成SIRK1(即第一SIRK)。第一耳机接收到耳机盒发送的目标指令后,可判断当前配置的SIRK是否为空,若是,则可按照第一预设方式生成SIRK2(即第二SIRK)。第一耳机与第二耳机可建立通信连接,并发送自身生成的SIRK给对方,第一耳机向第二耳机发送SIRK2,第二耳机向第一耳机发送SIRK1。以预设规则为选择SIRK1与SIRK2中的较小者作为目标SIRK为例,第一耳机可判断SIRK1是否大于或等于SIRK2,若是,则将SIKR2作为目标SIRK,并将自身的 SIRK配置为该目标SIRK(即SIRK2),若否,则将SIRK1为目标SIRK,并将自身的SIRK配置为该目标SIRK(即SIRK1)。同理,第二耳机也可判断SIRK1是否大于或等于SIRK2,若是,则将SIKR2作为目标SIRK,并将自身的SIRK配置为该目标SIRK(即SIRK2),若否,则将SIRK1为目标SIRK,并将自身的SIRK配置为该目标SIRK(即SIRK1)。
示例性地,图6C为另一个实施例中蓝牙设备配置方法的时序示意图。如图6C所示,作为另一种应用场景,第一耳机为首次使用的耳机,第二耳机为使用过的旧耳机,第一耳机在出厂时未写入SIRK,第二耳机已配置有SIRK,该应用场景为将新旧两只耳机组合进行协调使用的场景。用户可将第一耳机及第二耳机均放置到耳机盒中,并按压耳机盒上的配对键以使第一耳机及第二耳机进入配对。耳机盒检测到针对配对键的按压操作,则可分别向第一耳机及第二耳机发送用于指示进入配对的目标指令。第二耳机接收到耳机盒发送的目标指令后,可判断当前配置的SIRK是否为空,若否,则获取当前配置的SIRK1(即第一SIRK)。第一耳机接收到耳机盒发送的目标指令后,可判断当前配置的SIRK是否为空,若是,则可按照第一预设方式生成SIRK2(即第二SIRK)。第一耳机与第二耳机可建立通信连接,并发送自身的SIRK给对方,第一耳机向第二耳机发送SIRK2,第二耳机向第一耳机发送SIRK1。以预设规则为选择SIRK1与SIRK2中的较小者作为目标SIRK为例,第一耳机可判断SIRK1是否大于或等于SIRK2,若是,则将SIKR2作为目标SIRK,并将自身的SIRK配置为该目标SIRK(即SIRK2),若否,则将SIRK1为目标SIRK,并将自身的SIRK配置为该目标SIRK(即SIRK1)。
同理,第二耳机也可判断SIRK1是否大于或等于SIRK2,若是,则将SIKR2作为目标SIRK,并将自身的SIRK配置为该目标SIRK(即SIRK2),若否,则将SIRK1为目标SIRK,并将自身的SIRK配置为该目标SIRK(即SIRK1)。进一步地,第二耳机可判断当前配置的SIRK与该目标SIRK是否相同,若不相同,再将自身的SIRK配置为该目标SIRK,若相同,则可不需要重新进行配置,例如,若目标SIRK为SIRK1,则不需要重新进行配置。
在一些实施例中,第一蓝牙设备与第二蓝牙设备均将SIRK配置为目标SIRK后,可按照CSIP中的规定与外部的终端设备进行交互,以实现协调同步使用的效果,第一蓝牙设备与第二蓝牙设备均可采用目标SIRK发送LE Audio广播信号。
第一蓝牙设备在将自身的SIRK配置为目标SIRK后,可基于目标SIRK发送LE Audio广播信号。接收到第一蓝牙设备发送的LE Audio广播信号的终端设备可与第一蓝牙设备建立LE Audio蓝牙连接,并获取第一蓝牙设备对应的SIRK(即目标SIRK)。
作为一种实施方式,终端设备可在与第一蓝牙设备建立LE Audio蓝牙连接的过程中,接收第一蓝牙设备发送的SIRK。LE Audio蓝牙连接是在BLE连接的基础上建立的,建立LE Audio蓝牙连接的过程可包括在BLE连接的基础上进行一些设备参数的查询,该设备参数的查询可包括蓝牙设备的SIRK查询。在建立LE Audio蓝牙连接后,当有业务需求时可再建立CIS(Connected Isochronous Streams,基于连接同步数据流)通道等进行业务传输。终端设备可在与第一蓝牙设备建立LE Audio蓝牙连接时,接收第一蓝牙设备发送的SIRK。作为另一种实施方式,终端设备也可直接对第一蓝牙设备发送的LE Audio广播信号进行解析,以得到该第一蓝牙设备对应的SIRK。
属于目标蓝牙设备集合下的第二蓝牙设备也可采用目标SIRK发送LE Audio广播信号。终端设备可接收第二蓝牙设备发送的LE Audio广播信号,并根据该第二蓝牙设备发送的LE Audio广播信号判断第二蓝牙设备是否与第一蓝牙设备属于同一个蓝牙设备集合,若确定第一蓝牙设备与第二蓝牙设备为同一个蓝牙设备集合,则可自动与第二蓝牙设备建立LE Audio蓝牙连接,并分别向第一蓝牙设备及第二蓝牙设备同步输出音频数据等,实现对第一蓝牙设备与第二蓝牙设备之间的协调同步使用。
需要说明的是,第一蓝牙设备及第二蓝牙设备采用目标SIRK发送LE Audio广播信号,可以直接将该目标的SIRK作为LE Audio广播信号中的一部分内容进行发送,也可以是根据目标SIRK计算生成LE Audio广播信号中的目标字段,再根据该目标字段生成LE Audio广播信号。
作为一种实施方式,第二蓝牙设备发送的LE Audio广播信号可包括基于目标SIRK计算生成的目标字段。终端设备接收到第二蓝牙设备发送的LE Audio广播信号后,可对第二蓝牙设备发送的LE Audio广播信号进行解析,得到该LE Audio广播信号所携带的目标特定广播信息及目标字段,可根据第一蓝牙设备对应的SIRK(即目标SIRK)及该目标特定广播信息计算得到目标本地值,若目标本地值与目标字段相同,则可确定第一蓝牙设备与第二蓝牙设备为同一个蓝牙设备集合。
具体地,如图6D所示,LE Audio广播信号可包括RSI(resolvable Set Identifier,可解析集标识符),RSI可包括两部分:1、由蓝牙设备对应的SIRK生成的哈希序列610;2、随机数产生的随机序列620。其中,哈希序列610可通过公式:hash=sih(SIKR,prand)进行计算得到,hash表示哈希序列610,prand 表示随机序列620。电子设备解析第二蓝牙设备发送的LE Audio广播信号得到的目标特定广播信息可以是RSI的随机序列,目标字段可以是LE Audio广播信号所携带的RSI的哈希序列。电子设备可根据第一蓝牙设备对应的SIRK及解析得到的RSI中的随机序列,通过上述公式计算得到目标本地值,并将目标本地值与解析得到的RSI的哈希序列进行比对,若二者一致,说明第一蓝牙设备的SIKR与第二蓝牙设备的SIRK相同(均为目标SIRK),则可确定第一蓝牙设备与第二蓝牙设备属于同一个蓝牙设备集合。
在本申请实施例中,第一蓝牙设备及第二蓝牙设备可遵循相同的预设规则,从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将自身的组合标识信息配置为该目标组合标识信息,从而成功将第一蓝牙设备及第二蓝牙设备加入目标蓝牙设备集合中,使得第一蓝牙设备及第二蓝牙设备能够同步协调进行使用,实现了将蓝牙设备动态、灵活加入到蓝牙设备集合中进行使用的效果,满足用户的使用需求。
如图7所示,在一个实施例中,提供另一种蓝牙设备配置方法,可应用于上述的第二蓝牙设备,该方法可包括以下步骤:
步骤710,获取第一组合标识信息。其中,第一组合标识信息用于指示第一蓝牙设备集合。
在一个实施例中,步骤710,包括:接收电子设备发送的目标指令,该目标指令为电子设备响应于目标触发操作生成的;根据目标指令获取第一组合标识信息;该方法还包括:根据目标指令与第一蓝牙设备建立通信连接。
在一个实施例中,电子设备包括耳机盒,第一蓝牙设备包括第一耳机,第二蓝牙设备包括第二耳机;步骤接收电子设备发送的目标指令,包括:在第一耳机及第二耳机均被放置在耳机盒的情况下,接收耳机盒发送的目标指令,该目标指令为耳机盒响应于目标触发操作生成的。
在一个实施例中,步骤710,包括:根据第二预设方式生成所述第一组合标识信息。
在一个实施例中,步骤710,包括:在第二蓝牙设备当前配置的组合标识信息为空的情况下,根据第二预设方式生成第一组合标识信息;和/或,在第二蓝牙设备当前配置的组合标识信息不为空的情况下,将第二蓝牙设备当前配置的组合标识信息获取为第一组合标识信息。
在一个实施例中,步骤根据第二预设方式生成第一组合标识信息,包括:基于目标BLE地址生成第一组合标识信息,目标BLE地址包括第一蓝牙设备对应的BLE地址或第二蓝牙设备对应的BLE地址;或,随机生成一个组合标识信息作为第一组合标识信息。
在一个实施例中,步骤基于目标BLE地址生成第一组合标识信息,可包括:将目标BLE地址作为第一组合标识信息的部分字段,以生成第一组合标识信息;或,对目标BLE地址进行哈希计算,并将计算结果作为第一组合标识信息的部分字段,以生成第一组合标识信息。
步骤720,向第一蓝牙设备发送第一组合标识信息,以使第一蓝牙设备根据第一组合标识信息和预设规则确定目标组合标识信息,并将第一蓝牙设备的组合标识信息配置为该目标组合标识信息,该目标组合标识信息用于指示目标蓝牙设备集合。其中,目标组合标识信息等于或不等于第一组合标识信息。
在一个实施例中,步骤720,包括:向第一蓝牙设备发送第一组合标识信息,以使第一蓝牙设备按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第一蓝牙设备的组合标识信息配置为目标组合标识信息。第二组合标识信息为第一蓝牙设备当前配置的组合标识信息或第一蓝牙设备根据第一预设方式生成的。
在一个实施例中,该方法还包括:接收第一蓝牙设备发送的第二组合标识信息;按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第二蓝牙设备的组合标识信息配置为目标组合标识信息。其中,第二组合标识信息用于指示第二蓝牙设备集合。
在一个实施例中,预设规则,包括:将第一组合标识信息与第二组合标识信息中的较大者或较小者确定为目标组合标识信息。
在一个实施例中,第一组合标识信息可包括第一SIRK,目标组合标识信息可包括目标SIRK。
需要说明的是,本申请实施例提供的应用于第二蓝牙设备的蓝牙设备配置方法的描述,可参考上述各实施例中提供的应用于第一蓝牙设备的蓝牙设备配置方法的相关描述,在此不再重复赘述。
在本申请实施例中,第一蓝牙设备可根据第二蓝牙设备发送的第一组合标识信息及预设规则对组合标识信息进行配置,能够动态、灵活地将第一蓝牙设备加入到目标蓝牙设备集合中进行使用,满足用户的使用需求。
此外,第一蓝牙设备及第二蓝牙设备可遵循相同的预设规则,从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将自身的组合标识信息配置为该目标组合标识信息,从而成功将第一蓝牙设备及第二蓝牙设备加入目标蓝牙设备集合中,使得第一蓝牙设备及第二蓝牙设备能够同步协调进 行使用。
如图8所示,在一个实施例中,提供另一种蓝牙设备配置方法,可应用于蓝牙设备系统,该蓝牙设备系统包括第一蓝牙设备及第二蓝牙设备,该方法可包括以下步骤:
步骤810,第二蓝牙设备向第一蓝牙设备发送第一组合标识信息。其中,第一组合标识信息用于指示第一蓝牙设备集合。第一组合标识信息为第二蓝牙设备当前配置的组合标识信息或第二蓝牙设备根据第二预设方式生成的。
在一个实施例中,在步骤810之前,该方法还包括:第二蓝牙设备根据所述第二预设方式生成第一组合标识信息。
在一个实施例中,在步骤810之前,该方法还包括:在第二蓝牙设备当前配置的组合标识信息为空的情况下,第二蓝牙设备根据第二预设方式生成第一组合标识信息;和/或,在第二蓝牙设备当前配置的组合标识信息不为空的情况下,将第二蓝牙设备当前配置的组合标识信息作为第一组合标识信息。
在一个实施例中,第二蓝牙设备根据第二预设方式生成第一组合标识信息,可包括:第二蓝牙设备基于目标BLE地址生成第一组合标识信息,目标BLE地址包括第一蓝牙设备对应的BLE地址或第二蓝牙设备对应的BLE地址;或,随机生成一个组合标识信息作为第一组合标识信息。
在一个实施例中,第二蓝牙设备基于目标BLE地址生成第一组合标识信息,可包括:第二蓝牙设备将目标BLE地址作为第一组合标识信息的部分字段,以生成第一组合标识信息;或,第二蓝牙设备对目标BLE地址进行哈希计算,并将计算结果作为第一组合标识信息的部分字段,以生成第一组合标识信息。
步骤820,第一蓝牙设备向第二蓝牙设备发送第二组合标识信息。其中,第二组合标识信息用于指示第二蓝牙设备集合。第二组合标识信息为第一蓝牙设备当前配置的组合标识信息或第一蓝牙设备根据第一预设方式生成的。
在一个实施例中,在步骤820之前,该方法还包括:第一蓝牙设备根据所述第一预设方式生成第二组合标识信息。
在一个实施例中,在步骤820之前,该方法还包括:在第一蓝牙设备当前配置的组合标识信息为空的情况下,第一蓝牙设备根据第一预设方式生成第二组合标识信息;和/或,在第一蓝牙设备当前配置的组合标识信息不为空的情况下,将第一蓝牙设备当前配置的组合标识信息作为第二组合标识信息。
在一个实施例中,第一蓝牙设备根据第一预设方式生成第二组合标识信息,可包括:第一蓝牙设备基于目标BLE地址生成第二组合标识信息,目标BLE地址包括第一蓝牙设备对应的BLE地址或第二蓝牙设备对应的BLE地址;或,随机生成一个组合标识信息作为第二组合标识信息。
在一个实施例中,第一蓝牙设备基于目标BLE地址生成第二组合标识信息,可包括:第一蓝牙设备将目标BLE地址作为第二组合标识信息的部分字段,以生成第二组合标识信息;或,第一蓝牙设备对目标BLE地址进行哈希计算,并将计算结果作为第二组合标识信息的部分字段,以生成第二组合标识信息。
步骤830,第一蓝牙设备按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第一蓝牙设备的组合标识信息配置为目标组合标识信息。
步骤840,第二蓝牙设备按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第二蓝牙设备的组合标识信息配置为目标组合标识信息;其中,目标组合标识信息用于指示目标蓝牙设备集合。目标组合标识信息等于第一组合标识信息,或目标组合标识信息等于第二组合标识信息。
在一个实施例中,预设规则,包括:将第一组合标识信息与第二组合标识信息中的较大者或较小者确定为目标组合标识信息。
在一个实施例中,第一组合标识信息包括第一SIRK,第二组合标识信息包括第二SIRK,目标组合标识信息可包括目标SIRK。
在一个实施例中,该方法还包括:第一蓝牙设备及第二蓝牙设备分别接收电子设备发送的目标指令,该目标指令为电子设备响应于目标触发操作生成的;其中,目标指令用于指示第一蓝牙设备与第二蓝牙设备建立通信连接,并向第二蓝牙设备发送第二组合标识信息,以及目标指令用于指示第二蓝牙设备与第一蓝牙设备建立通信连接,并向第一蓝牙设备发送第一组合标识信息。
需要说明的是,本申请实施例提供的应用于蓝牙设备系统的蓝牙设备配置方法的描述,可参考上述各实施例中提供的应用于第一蓝牙设备的蓝牙设备配置方法的相关描述,在此不再重复赘述。
在本申请实施例中,第一蓝牙设备系统及第二蓝牙设备系统可遵循相同的预设规则,从第一组合标 识信息及第二组合标识信息中确定目标组合标识信息,并将自身的组合标识信息配置为该目标组合标识信息,从而成功将第一蓝牙设备系统及第二蓝牙设备系统加入目标蓝牙设备集合中,使得第一蓝牙设备系统及第二蓝牙设备系统能够同步协调进行使用,实现了将蓝牙设备动态、灵活加入到蓝牙设备集合中进行使用的效果,满足用户的使用需求。
如图9所示,在一个实施例中,提供一种蓝牙设备配置装置900,可应用于上述的第一蓝牙设备,蓝牙设备配置装置900可包括组合标识接收模块910、组合标识确定模块920及配置模块930。
组合标识接收模块910,用于接收第二蓝牙设备发送的第一组合标识信息,第一组合标识信息用于指示第一蓝牙设备集合。
组合标识确定模块920,用于根据第一组合标识信息和预设规则确定目标组合标识信息,目标组合标识信息用于指示目标蓝牙设备集合。
配置模块930,用于将第一蓝牙设备的组合标识信息配置为目标组合标识信息,目标组合标识信息等于或不等于第一组合标识信息。
在一个实施例中,第一组合标识信息包括第一SIRK。
在一个实施例中,组合标识确定模块920,还用于按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,第二组合标识信息为第一蓝牙设备当前配置的组合标识信息或第一蓝牙设备根据第一预设方式生成的,第二组合标识信息用于指示第二蓝牙设备集合。
在一个实施例中,蓝牙设备配置装置900还包括连接模块。
连接模块,用于接收电子设备发送的目标指令,目标指令为电子设备响应于目标触发操作生成的;根据目标指令与第二蓝牙设备建立通信连接,以及根据目标指令获取第二组合标识信息。
在一个实施例中,电子设备包括耳机盒,第一蓝牙设备包括第一耳机,第二蓝牙设备包括第二耳机。连接模块,还用于在第一耳机及第二耳机均被放置在耳机盒的情况下,接收耳机盒发送的目标指令,目标指令为耳机盒响应于目标触发操作生成的。
在一个实施例中,蓝牙设备配置装置900还包括组合标识发送模块。
组合标识发送模块,用于向第二蓝牙设备发送第二组合标识信息,以使第二蓝牙设备按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第二蓝牙设备的组合标识信息配置为目标组合标识信息。第一组合标识信息为第二蓝牙设备当前配置的组合标识信息或第二蓝牙设备根据第二预设方式生成的。
在一个实施例中,预设规则,包括:将第一组合标识信息与第二组合标识信息中的较大者或较小者确定为目标组合标识信息。
在一个实施例中,蓝牙设备配置装置900还包括组合标识获取模块。
组合标识获取模块,用于根据第一预设方式生成所述第二组合标识信息。
在一个实施例中,组合标识获取模块,还用于在第一蓝牙设备当前配置的组合标识信息为空的情况下,根据第一预设方式生成第二组合标识信息;和/或,在第一蓝牙设备当前配置的组合标识信息不为空的情况下,将第一蓝牙设备当前配置的组合标识信息作为第二组合标识信息。
在一个实施例中,组合标识获取模块,还用于基于目标BLE地址生成第二组合标识信息,目标BLE地址包括第一蓝牙设备对应的BLE地址或第二蓝牙设备对应的BLE地址;或,随机生成一个组合标识信息作为第二组合标识信息。
在一个实施例中,组合标识获取模块,还用于将目标BLE地址作为第二组合标识信息的部分字段,以生成第二组合标识信息;或,对目标BLE地址进行哈希计算,并将计算结果作为第二组合标识信息的部分字段,以生成第二组合标识信息。
在本申请实施例中,第一蓝牙设备可根据第二蓝牙设备发送的第一组合标识信息及预设规则对组合标识信息进行配置,能够动态、灵活地将第一蓝牙设备加入到目标蓝牙设备集合中进行使用,满足用户的使用需求。
此外,第一蓝牙设备及第二蓝牙设备可遵循相同的预设规则,从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将自身的组合标识信息配置为该目标组合标识信息,从而成功将第一蓝牙设备及第二蓝牙设备加入目标蓝牙设备集合中,使得第一蓝牙设备及第二蓝牙设备能够同步协调进行使用。
如图10所示,在一个实施例中,提供一种蓝牙设备配置装置1000,可应用于上述的第二蓝牙设备,蓝牙设备配置装置1000可包括组合标识获取模块1010及组合标识发送模块1020。
组合标识获取模块1010,用于获取第一组合标识信息,第一组合标识信息用于指示第一蓝牙设备集合。
在一个实施例中,组合标识获取模块1010,还用于接收电子设备发送的目标指令,目标指令为电子设备响应于目标触发操作生成的;根据目标指令获取第一组合标识信息。
在一个实施例中,蓝牙设备配置装置1000还包括连接模块,连接模块用于根据目标指令与第一蓝牙设备建立通信连接。
在一个实施例中,电子设备包括耳机盒,第一蓝牙设备包括第一耳机,第二蓝牙设备包括第二耳机;组合标识获取模块1010,还用于在第一耳机及第二耳机均被放置在耳机盒的情况下,接收耳机盒发送的目标指令,目标指令为耳机盒响应于目标触发操作生成的。
第一组合标识信息为第二蓝牙设备当前配置的组合标识信息或第二蓝牙设备根据第二预设方式生成的。
在一个实施例中,组合标识获取模块1010,还用于根据第二预设方式生成所述第一组合标识信息。
在一个实施例中,组合标识获取模块1010,还用于在第二蓝牙设备当前配置的组合标识信息为空的情况下,根据第二预设方式生成第一组合标识信息;和/或,在第二蓝牙设备当前配置的组合标识信息不为空的情况下,将第二蓝牙设备当前配置的组合标识信息获取为第一组合标识信息。
在一个实施例中,组合标识获取模块1010,还用于基于目标BLE地址生成第一组合标识信息,目标BLE地址包括第一蓝牙设备对应的BLE地址或第二蓝牙设备对应的BLE地址;或,随机生成一个组合标识信息作为第一组合标识信息。
在一个实施例中,组合标识获取模块1010,还用于将目标BLE地址作为第一组合标识信息的部分字段,以生成第一组合标识信息;或,对目标BLE地址进行哈希计算,并将计算结果作为第一组合标识信息的部分字段,以生成第一组合标识信息。
组合标识发送模块1020,用于向第一蓝牙设备发送第一组合标识信息,以使第一蓝牙设备根据第一组合标识信息和预设规则确定目标组合标识信息,将第一蓝牙设备的组合标识信息配置为该目标组合标识信息,目标组合标识信息用于指示目标蓝牙设备集合,目标组合标识信息等于或不等于第一组合标识信息。
在一个实施例中,组合标识发送模块1020,还用于向第一蓝牙设备发送第一组合标识信息,以使第一蓝牙设备按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第一蓝牙设备的组合标识信息配置为目标组合标识信息。第二组合标识信息为第一蓝牙设备当前配置的组合标识信息或第一蓝牙设备根据第一预设方式生成的。
在一个实施例中,蓝牙设备配置装置1000还包括组合标识接收模块及配置模块。
组合标识接收模块用于接收第一蓝牙设备发送的第二组合标识信息。
配置模块,用于按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第二蓝牙设备的组合标识信息配置为目标组合标识信息。
在一个实施例中,预设规则,包括:将第一组合标识信息与第二组合标识信息中的较大者或较小者确定为目标组合标识信息。
在一个实施例中,第一组合标识信息可包括第一SIRK,目标组合标识信息可包括目标SIRK。
在本申请实施例中,第一蓝牙设备可根据第二蓝牙设备发送的第一组合标识信息及预设规则对组合标识信息进行配置,能够动态、灵活地将第一蓝牙设备加入到目标蓝牙设备集合中进行使用,满足用户的使用需求。
此外,第一蓝牙设备及第二蓝牙设备可遵循相同的预设规则,从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将自身的组合标识信息配置为该目标组合标识信息,从而成功将第一蓝牙设备及第二蓝牙设备加入目标蓝牙设备集合中,使得第一蓝牙设备及第二蓝牙设备能够同步协调进行使用。
如图11所示,在一个实施例中,提供一种蓝牙设备配置装置1100,应用于蓝牙设备系统,蓝牙设备系统包括第一蓝牙设备及第二蓝牙设备,蓝牙设备配置装置1100包括组合标识发送模块1110及配置模块1120。
组合标识发送模块1110,用于通过第二蓝牙设备向第一蓝牙设备发送第一组合标识信息,第一组合标识信息用于指示第一蓝牙设备集合。第一组合标识信息为第二蓝牙设备当前配置的组合标识信息或第二蓝牙设备根据第二预设方式生成的,
组合标识发送模块1110,还用于通过第一蓝牙设备向第二蓝牙设备发送第二组合标识信息,第二组 合标识信息用于指示第二蓝牙设备集合。第二组合标识信息为第一蓝牙设备当前配置的组合标识信息或第一蓝牙设备根据第一预设方式生成的。
在一个实施例中,蓝牙设备配置装置1100还包括组合标识获取模块。
在一个实施例中,组合标识获取模块,用于通过第二蓝牙设备根据所述第二预设方式生成第一组合标识信息。
组合标识获取模块,还用于第一蓝牙设备根据所述第一预设方式生成第二组合标识信息。
在一个实施例中,组合标识获取模块,还用于在第二蓝牙设备当前配置的组合标识信息为空的情况下,第二蓝牙设备根据第二预设方式生成第一组合标识信息;和/或,在第二蓝牙设备当前配置的组合标识信息不为空的情况下,将第二蓝牙设备当前配置的组合标识信息作为第一组合标识信息。
组合标识获取模块,还用于在第一蓝牙设备当前配置的组合标识信息为空的情况下,第一蓝牙设备根据第一预设方式生成第二组合标识信息;和/或,在第一蓝牙设备当前配置的组合标识信息不为空的情况下,将第一蓝牙设备当前配置的组合标识信息作为第二组合标识信息。
在一个实施例中,组合标识获取模块,还用于通过第二蓝牙设备基于目标BLE地址生成第一组合标识信息,目标BLE地址包括第一蓝牙设备对应的BLE地址或第二蓝牙设备对应的BLE地址;或,通过第二蓝牙设备随机生成一个组合标识信息作为第一组合标识信息。
组合标识获取模块,还用于通过第一蓝牙设备基于目标BLE地址生成第二组合标识信息,目标BLE地址包括第一蓝牙设备对应的BLE地址或第二蓝牙设备对应的BLE地址;或,通过第一蓝牙设备随机生成一个组合标识信息作为第二组合标识信息。
在一个实施例中,组合标识获取模块,还用于通过第二蓝牙设备将目标BLE地址作为第一组合标识信息的部分字段,以生成第一组合标识信息;或,通过第二蓝牙设备对目标BLE地址进行哈希计算,并将计算结果作为第一组合标识信息的部分字段,以生成第一组合标识信息。
组合标识获取模块,还用于通过第一蓝牙设备将目标BLE地址作为第二组合标识信息的部分字段,以生成第二组合标识信息;或,通过第一蓝牙设备对目标BLE地址进行哈希计算,并将计算结果作为第二组合标识信息的部分字段,以生成第二组合标识信息。
配置模块1120,用于通过第一蓝牙设备按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第一蓝牙设备的组合标识信息配置为目标组合标识信息。
配置模块1120,还用于通过第二蓝牙设备按照预设规则从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将第二蓝牙设备的组合标识信息配置为目标组合标识信息;其中,目标组合标识信息用于指示目标蓝牙设备集合。
在一个实施例中,预设规则,包括:将第一组合标识信息与第二组合标识信息中的较大者或较小者确定为目标组合标识信息。
在一个实施例中,第一组合标识信息包括第一SIRK,第二组合标识信息包括第二SIRK,目标组合标识信息可包括目标SIRK。
在一个实施例中,蓝牙设备配置装置1100还包括指令接收模块。
指令接收模块,用于通过第一蓝牙设备及第二蓝牙设备分别接收电子设备发送的目标指令,该目标指令为电子设备响应于目标触发操作生成的;其中,目标指令用于指示第一蓝牙设备与第二蓝牙设备建立通信连接,并向第二蓝牙设备发送第二组合标识信息,以及目标指令用于指示第二蓝牙设备与第一蓝牙设备建立通信连接,并向第一蓝牙设备发送第一组合标识信息。
在本申请实施例中,第一蓝牙设备及第二蓝牙设备可遵循相同的预设规则,从第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将自身的组合标识信息配置为该目标组合标识信息,从而成功将第一蓝牙设备及第二蓝牙设备加入目标蓝牙设备集合中,使得第一蓝牙设备及第二蓝牙设备能够同步协调进行使用,实现了将蓝牙设备动态、灵活加入到蓝牙设备集合中进行使用的效果,满足用户的使用需求。
图12为一个实施例中电子设备的结构框图。如图12所示,电子设备1200可以包括一个或多个如下部件:处理器1210、与处理器1210耦合的存储器1220,其中存储器1220可存储有一个或多个计算机程序,一个或多个计算机程序可以被配置为由一个或多个处理器1210执行时实现如上述各实施例描述的蓝牙设备配置方法。
处理器1210可以包括一个或者多个处理核。处理器1210利用各种接口和线路连接整个电子设备1200内的各个部分,通过运行或执行存储在存储器1220内的指令、程序、代码集或指令集,以及调用 存储在存储器1220内的数据,执行电子设备1200的各种功能和处理数据。可选地,处理器1210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1210可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1210中,单独通过一块通信芯片进行实现。
存储器1220可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器1220可用于存储指令、程序、代码、代码集或指令集。存储器1220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储电子设备1200在使用中所创建的数据等。
电子设备1200还可包括蓝牙模块,蓝牙模块可用于提供蓝牙通信功能,与第二电子设备建立蓝牙连接,并进行蓝牙数据传输。蓝牙模块可支持一种或多种蓝牙协议,如经典蓝牙、BLE、BLE Audio等),但不限于此,可随着蓝牙协议的发展而变化。
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述各实施例描述的应用于第一蓝牙设备的蓝牙设备配置方法。
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述各实施例描述的应用于蓝牙设备系统的蓝牙设备配置方法。
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述各实施例描述的应用于耳机设备的蓝牙设备配置方法。
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的应用于第一蓝牙设备的蓝牙设备配置方法。
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的应用于第二蓝牙设备的蓝牙设备配置方法。
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的应用于蓝牙设备系统的蓝牙设备配置方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、ROM等。
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Erasable PROM,EPROM)、电可擦除PROM(Electrically Erasable PROM,EEPROM)或闪存。易失性存储器可包括随机存取存储器(random access memory,RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM可为多种形式,诸如静态RAM(Static RAM,SRAM)、动态RAM(Dynamic Random Access Memory,DRAM)、同步DRAM(synchronous DRAM,SDRAM)、双倍数据率SDRAM(Double Data Rate SDRAM,DDR SDRAM)、增强型SDRAM(Enhanced Synchronous DRAM,ESDRAM)、同步链路DRAM(Synchlink DRAM,SLDRAM)、存储器总线直接RAM(Rambus DRAM,RDRAM)及直接存储器总线动态RAM(Direct Rambus DRAM,DRDRAM)。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。需要说明的,本申请中的“多个”包括“两个或两个以上”。
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上对本申请实施例公开的一种蓝牙设备配置方法、装置、电子设备及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (30)

  1. 一种蓝牙设备配置方法,其特征在于,应用于第一蓝牙设备,所述方法包括:
    接收第二蓝牙设备发送的第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;
    根据所述第一组合标识信息和预设规则确定目标组合标识信息,所述目标组合标识信息用于指示目标蓝牙设备集合;
    将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述目标组合标识信息等于或不等于所述第一组合标识信息。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第一组合标识信息和预设规则确定目标组合标识信息,包括:
    按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定目标组合标识信息,所述第二组合标识信息为所述第一蓝牙设备当前配置的组合标识信息或所述第一蓝牙设备根据第一预设方式生成的,所述第二组合标识信息用于指示第二蓝牙设备集合。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    向所述第二蓝牙设备发送所述第二组合标识信息,以使所述第二蓝牙设备按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定所述目标组合标识信息,并将所述第二蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述第一组合标识信息为所述第二蓝牙设备当前配置的组合标识信息或所述第二蓝牙设备根据第二预设方式生成的。
  4. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    接收电子设备发送的目标指令,所述目标指令为所述电子设备响应于目标触发操作生成的;
    根据所述目标指令与所述第二蓝牙设备建立通信连接,以及根据所述目标指令获取所述第二组合标识信息。
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备包括耳机盒,所述第一蓝牙设备包括第一耳机,所述第二蓝牙设备包括第二耳机;
    所述接收电子设备发送的目标指令,包括:
    在所述第一耳机及第二耳机被放置在所述耳机盒中的情况下,接收所述耳机盒发送的目标指令,所述目标指令为所述耳机盒响应于目标触发操作生成的。
  6. 根据权利要求2~5任一所述的方法,其特征在于,所述预设规则,包括:
    将所述第一组合标识信息与所述第二组合标识信息中的较大者或较小者确定为所述目标组合标识信息。
  7. 根据权利要求2所述的方法,其特征在于,在所述按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定目标组合标识信息之前,所述方法还包括:
    根据所述第一预设方式生成所述第二组合标识信息。
  8. 根据权利要求2所述的方法,其特征在于,在所述按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定目标组合标识信息之前,所述方法还包括:
    在所述第一蓝牙设备当前配置的组合标识信息为空的情况下,根据所述第一预设方式生成所述第二组合标识信息;和/或
    在所述第一蓝牙设备当前配置的组合标识信息不为空的情况下,将所述第一蓝牙设备当前配置的组合标识信息作为所述第二组合标识信息。
  9. 根据权利要求7或8所述的方法,其特征在于,所述根据所述第一预设方式生成所述第二组合标识信息,包括:
    基于目标BLE地址生成所述第二组合标识信息,所述目标BLE地址包括所述第一蓝牙设备的BLE地址或所述第二蓝牙设备的BLE地址;或,
    随机生成一个组合标识信息作为所述第二组合标识信息。
  10. 根据权利要求9所述的方法,其特征在于,所述基于目标BLE地址生成所述第二组合标识信息,包括:
    将所述目标BLE地址作为所述第二组合标识信息的部分字段,以生成所述第二组合标识信息;或,
    对所述目标BLE地址进行哈希计算,并将计算结果作为所述第二组合标识信息的部分字段,以生成所述第二组合标识信息。
  11. 根据权利要求1~5、7~8任一所述的方法,其特征在于,所述第一组合标识信息包括第一组合标识解析值SIRK。
  12. 一种蓝牙设备配置方法,其特征在于,应用于第二蓝牙设备,所述方法包括:
    获取第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;
    向第一蓝牙设备发送所述第一组合标识信息,以使所述第一蓝牙设备根据所述第一组合标识信息和预设规则确定目标组合标识信息,并将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述目标组合标识信息用于指示目标蓝牙设备集合,所述目标组合标识信息等于或不等于所述第一组合标识信息。
  13. 根据权利要求12所述的方法,其特征在于,所述向第一蓝牙设备发送所述第一组合标识信息,以使所述第一蓝牙设备根据所述第一组合标识信息和预设规则,将所述第一蓝牙设备的组合标识信息配置为目标组合标识信息,包括:
    向第一蓝牙设备发送所述第一组合标识信息,以使所述第一蓝牙设备按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息;其中,所述第二组合标识信息用于指示第二蓝牙设备集合,所述第二组合标识信息为所述第一蓝牙设备当前配置的组合标识信息或所述第一蓝牙设备根据第一预设方式生成的,所述第一组合标识信息为所述第二蓝牙设备当前配置的组合标识信息或所述第二蓝牙设备根据第二预设方式生成的。
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:
    接收所述第一蓝牙设备发送的所述第二组合标识信息;
    按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将所述第二蓝牙设备的组合标识信息配置为所述目标组合标识信息。
  15. 根据权利要求13或14所述的方法,其特征在于,所述预设规则,包括:
    将所述第一组合标识信息与所述第二组合标识信息中的较大者或较小者确定为所述目标组合标识信息。
  16. 根据权利要求13所述的方法,其特征在于,所述获取第一组合标识信息,包括:
    根据所述第二预设方式生成所述第一组合标识信息。
  17. 根据权利要求13所述的方法,其特征在于,所述获取第一组合标识信息,包括:
    在所述第二蓝牙设备当前配置的组合标识信息为空的情况下,根据第二预设方式生成所述第一组合标识信息;和/或,
    在所述第二蓝牙设备当前配置的组合标识信息不为空的情况下,将所述第二蓝牙设备当前配置的组合标识信息获取为所述第一组合标识信息。
  18. 根据权利要求16或17所述的方法,其特征在于,所述根据第二预设方式生成所述第一组合标识信息,包括:
    基于目标BLE地址生成所述第一组合标识信息,所述目标BLE地址包括所述第一蓝牙设备对应的BLE地址或所述第二蓝牙设备对应的BLE地址;或,
    随机生成一个组合标识信息作为所述第一组合标识信息。
  19. 根据权利要求18所述的方法,其特征在于,所述基于目标BLE地址生成所述第一组合标识信息,包括:
    将所述目标BLE地址作为所述第一组合标识信息的部分字段,以生成所述第一组合标识信息;或,对所述目标BLE地址进行哈希计算,并将计算结果作为所述第一组合标识信息的部分字段,以生成所述第一组合标识信息。
  20. 一种蓝牙设备配置方法,其特征在于,应用于蓝牙设备系统,所述蓝牙设备系统包括第一蓝牙设备及第二蓝牙设备,所述方法包括:
    所述第二蓝牙设备向所述第一蓝牙设备发送第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;所述第一组合标识信息为所述第二蓝牙设备当前配置的组合标识信息或所述第二蓝牙设备根据第二预设方式生成的;
    所述第一蓝牙设备向所述第二蓝牙设备发送第二组合标识信息,所述第二组合标识信息用于指示第二蓝牙设备集合;所述第二组合标识信息为所述第一蓝牙设备当前配置的组合标识信息或所述第一蓝牙设备根据第一预设方式生成的;
    所述第一蓝牙设备按照预设规则从所述第一组合标识信息及第二组合标识信息中确定目标组合标识信息,并将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息;
    所述第二蓝牙设备按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定所述目 标组合标识信息,并将所述第二蓝牙设备的组合标识信息配置为所述目标组合标识信息;其中,所述目标组合标识信息用于指示目标蓝牙设备集合。
  21. 根据权利要求20所述的方法,其特征在于,所述预设规则,包括:
    将所述第一组合标识信息与所述第二组合标识信息中的较大者或较小者确定为所述目标组合标识信息。
  22. 根据权利要求20所述的方法,其特征在于,在所述第二蓝牙设备向所述第一蓝牙设备发送第一组合标识信息之前,所述方法还包括:
    所述第二蓝牙设备根据所述第二预设方式生成第一组合标识信息;
    在所述第一蓝牙设备向所述第二蓝牙设备发送第二组合标识信息之前,所述方法还包括:
    所述第一蓝牙设备根据所述第一预设方式生成第二组合标识信息。
  23. 根据权利要求20所述的方法,其特征在于,在所述第二蓝牙设备向所述第一蓝牙设备发送第一组合标识信息之前,所述方法还包括:
    在所述第二蓝牙设备当前配置的组合标识信息为空的情况下,所述第二蓝牙设备根据第二预设方式生成第一组合标识信息;和/或,在所述第二蓝牙设备当前配置的组合标识信息不为空的情况下,将所述第二蓝牙设备当前配置的组合标识信息作为所述第一组合标识信息;
    在所述第一蓝牙设备向所述第二蓝牙设备发送第二组合标识信息之前,所述方法还包括:
    在所述第一蓝牙设备当前配置的组合标识信息为空的情况下,所述第一蓝牙设备根据第一预设方式生成第二组合标识信息;和/或,在所述第一蓝牙设备当前配置的组合标识信息不为空的情况下,将所述第一蓝牙设备当前配置的组合标识信息作为所述第二组合标识信息。
  24. 根据权利要求20~23任一所述的方法,其特征在于,所述方法还包括:
    所述第一蓝牙设备及第二蓝牙设备分别接收电子设备发送的目标指令,所述目标指令为所述电子设备响应于目标触发操作生成的;
    其中,所述目标指令用于指示所述第一蓝牙设备与所述第二蓝牙设备建立通信连接,并向所述第二蓝牙设备发送所述第二组合标识信息,以及所述目标指令用于指示所述第二蓝牙设备与所述第一蓝牙设备建立通信连接,并向所述第一蓝牙设备发送所述第一组合标识信息。
  25. 根据权利要求20~23任一所述的方法,其特征在于,所述第一组合标识信息包括第一SIRK,所述第二组合标识信息包括第二SIRK。
  26. 一种蓝牙设备配置装置,其特征在于,应用于第一蓝牙设备,所述装置包括:
    组合标识接收模块,用于接收第二蓝牙设备发送的第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;
    组合标识确定模块,用于根据所述第一组合标识信息和预设规则确定目标组合标识信息,所述目标组合标识信息用于指示目标蓝牙设备集合;
    配置模块,用于将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述目标组合标识信息等于或不等于所述第一组合标识信息。
  27. 一种蓝牙设备配置装置,其特征在于,应用于第二蓝牙设备,所述装置包括:
    组合标识获取模块,用于获取第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;
    组合标识发送模块,用于向第一蓝牙设备发送所述第一组合标识信息,以使所述第一蓝牙设备根据所述第一组合标识信息和预设规则确定目标组合标识信息,并将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息,所述目标组合标识信息用于指示目标蓝牙设备集合,所述目标组合标识信息等于或不等于所述第一组合标识信息。
  28. 一种蓝牙设备配置装置,其特征在于,应用于蓝牙设备系统,所述蓝牙设备系统包括第一蓝牙设备及第二蓝牙设备,所述装置包括:
    组合标识发送模块,用于通过所述第二蓝牙设备向所述第一蓝牙设备发送第一组合标识信息,所述第一组合标识信息用于指示第一蓝牙设备集合;所述第一组合标识信息为所述第二蓝牙设备当前配置的组合标识信息或所述第二蓝牙设备根据第二预设方式生成的;
    组合标识发送模块,还用于通过所述第一蓝牙设备向所述第二蓝牙设备发送第二组合标识信息,所述第二组合标识信息用于指示第二蓝牙设备集合;所述第二组合标识信息为所述第一蓝牙设备当前配置的组合标识信息或所述第一蓝牙设备根据第一预设方式生成的;
    配置模块,用于通过所述第一蓝牙设备按照预设规则从所述第一组合标识信息及第二组合标识信息 中确定目标组合标识信息,并将所述第一蓝牙设备的组合标识信息配置为所述目标组合标识信息;
    配置模块,还用于通过所述第二蓝牙设备按照所述预设规则从所述第一组合标识信息及第二组合标识信息中确定所述目标组合标识信息,并将所述第二蓝牙设备的组合标识信息配置为所述目标组合标识信息;其中,所述目标组合标识信息用于指示目标蓝牙设备集合。
  29. 一种电子设备,其特征在于,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如权利要求1~11或12~19或20~25任一所述的方法。
  30. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1~11或12~19或20~25任一所述的方法。
PCT/CN2022/142138 2022-06-23 2022-12-27 蓝牙设备配置方法、装置、电子设备及存储介质 WO2023246055A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210725571.6A CN117319974A (zh) 2022-06-23 2022-06-23 蓝牙设备配置方法、装置、电子设备及存储介质
CN202210725571.6 2022-06-23

Publications (1)

Publication Number Publication Date
WO2023246055A1 true WO2023246055A1 (zh) 2023-12-28

Family

ID=89241366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/142138 WO2023246055A1 (zh) 2022-06-23 2022-12-27 蓝牙设备配置方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN117319974A (zh)
WO (1) WO2023246055A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269103A1 (en) * 2014-12-12 2016-09-15 Feitian Technologies Co., Ltd Method for realizing bluetooth-binding between smart key device and mobile device
CN108513716A (zh) * 2017-02-25 2018-09-07 华为技术有限公司 建立连接的方法和装置
CN111615090A (zh) * 2020-04-27 2020-09-01 Oppo(重庆)智能科技有限公司 蓝牙设备间的交互方法及装置、存储介质和电子设备
CN112105010A (zh) * 2020-09-22 2020-12-18 深圳市汇顶科技股份有限公司 蓝牙设备间进行地址交换的方法、通信系统以及蓝牙耳机

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269103A1 (en) * 2014-12-12 2016-09-15 Feitian Technologies Co., Ltd Method for realizing bluetooth-binding between smart key device and mobile device
CN108513716A (zh) * 2017-02-25 2018-09-07 华为技术有限公司 建立连接的方法和装置
CN111615090A (zh) * 2020-04-27 2020-09-01 Oppo(重庆)智能科技有限公司 蓝牙设备间的交互方法及装置、存储介质和电子设备
CN112105010A (zh) * 2020-09-22 2020-12-18 深圳市汇顶科技股份有限公司 蓝牙设备间进行地址交换的方法、通信系统以及蓝牙耳机

Also Published As

Publication number Publication date
CN117319974A (zh) 2023-12-29

Similar Documents

Publication Publication Date Title
US10728647B2 (en) Data transmitting method and system
KR102362156B1 (ko) 이어폰 무선 통신 방법, 마스터 이어폰, 슬레이브 이어폰 및 이어폰 시스템
WO2018032455A1 (zh) 一种蓝牙通信的方法及终端
EP3166343A1 (en) Audio playing method and apparatus for multiple playing devices
WO2020063066A1 (zh) 数据传输方法、装置、电子设备及存储介质
WO2017029946A1 (ja) オーディオシステム、オーディオ機器およびオーディオ機器設定方法
WO2023160212A1 (zh) 连接建立方法、装置、设备、存储介质及程序产品
CN109379490B (zh) 音频播放方法、装置、电子设备及计算机可读介质
WO2024016948A1 (zh) 信息更新方法及装置、音频共享方法及系统、电子设备
WO2023036178A1 (zh) 蓝牙连接方法、装置、耳机设备及计算机可读存储介质
WO2017029947A1 (ja) オーディオシステム、オーディオ機器、及び、オーディオ信号再生方法
WO2024055738A1 (zh) 音频数据的共享方法、装置、电子设备以及存储介质
CN111049709A (zh) 一种基于蓝牙的互联音箱控制方法、设备及存储介质
CN110602683A (zh) 蓝牙控制方法、装置、移动终端及存储介质
WO2024066694A1 (zh) 音频设备的连接方法、装置、存储介质及设备
WO2023246055A1 (zh) 蓝牙设备配置方法、装置、电子设备及存储介质
WO2023103732A1 (zh) 耳机设备的状态控制方法、装置、耳机设备及存储介质
WO2023246017A1 (zh) 蓝牙设备配置方法、装置、电子设备及存储介质
CN114885261A (zh) 耳机组件、无线音频播放系统及其通信方法
WO2021239032A1 (zh) 蓝牙协议连接方法、装置、存储介质及相关设备
WO2023093328A1 (zh) 蓝牙回连方法及装置、信息存储方法及装置、终端设备
WO2023098423A1 (zh) 蓝牙连接方法及装置、蓝牙地址配置方法及装置
WO2024016885A1 (zh) 蓝牙连接方法、装置、电子设备及计算机可读存储介质
WO2023185147A1 (zh) 服务查询的处理方法、装置、设备、存储介质及程序产品
WO2022237353A1 (zh) 在耳机收纳盒中配置耳机的方法、装置、设备及程序产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22947790

Country of ref document: EP

Kind code of ref document: A1