[go: up one dir, main page]

WO2022061527A1 - Method for address exchange between bluetooth devices, communication system, and bluetooth headset - Google Patents

Method for address exchange between bluetooth devices, communication system, and bluetooth headset Download PDF

Info

Publication number
WO2022061527A1
WO2022061527A1 PCT/CN2020/116865 CN2020116865W WO2022061527A1 WO 2022061527 A1 WO2022061527 A1 WO 2022061527A1 CN 2020116865 W CN2020116865 W CN 2020116865W WO 2022061527 A1 WO2022061527 A1 WO 2022061527A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
bluetooth device
broadcast
address
headset
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2020/116865
Other languages
French (fr)
Chinese (zh)
Inventor
银国超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Goodix Technology Co Ltd
Original Assignee
Shenzhen Goodix Technology Co Ltd
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 Shenzhen Goodix Technology Co Ltd filed Critical Shenzhen Goodix Technology Co Ltd
Priority to PCT/CN2020/116865 priority Critical patent/WO2022061527A1/en
Publication of WO2022061527A1 publication Critical patent/WO2022061527A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/40Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
    • H04B5/48Transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management

Definitions

  • the embodiments of the present application relate to the field of wireless communication technologies, and in particular, to a method for exchanging addresses between Bluetooth devices, a communication system, and a Bluetooth headset.
  • a true wireless stereo (TWS) headset generally includes two Bluetooth headsets (equivalent to two Bluetooth devices). To use the TWS headset normally, it is necessary to connect the two Bluetooth headsets. to pair. In order to realize pairing, it is necessary to exchange Bluetooth addresses between the two Bluetooth headsets, and one Bluetooth headset learns the Bluetooth address of the other Bluetooth headset.
  • TWS true wireless stereo
  • one of the technical problems solved by the embodiments of the present application is to provide a method for exchanging addresses between Bluetooth devices, a communication system, and a Bluetooth headset, so as to overcome or alleviate the above-mentioned defects in the prior art.
  • an embodiment of the present application provides a method for exchanging addresses between Bluetooth devices, which is applied to a first Bluetooth device, and the method includes:
  • the first broadcast information is sent in a broadcast manner, and the first broadcast information includes: the first Bluetooth address of the first Bluetooth device and the binding information of the first Bluetooth device;
  • the first Bluetooth device records the second Bluetooth address of the second Bluetooth device.
  • an embodiment of the present application provides a method for exchanging addresses between Bluetooth devices, which is applied to a second Bluetooth device, and the method includes:
  • the second broadcast information is sent in a broadcast manner, and the second broadcast information includes: the second Bluetooth address of the second Bluetooth device and the binding information of the second Bluetooth device;
  • the second Bluetooth device records the first Bluetooth address of the first Bluetooth device.
  • an embodiment of the present application provides a communication system, which includes: a first Bluetooth device and a second Bluetooth device, the first Bluetooth device sends first broadcast information in a broadcast manner, and the first broadcast information includes : the first bluetooth address of the first bluetooth device and the binding information of the first bluetooth device; the second bluetooth device sends second broadcast information in a broadcast manner, and the second broadcast information includes: the first bluetooth device The second Bluetooth address of the two Bluetooth devices and the binding information of the second Bluetooth device; the first Bluetooth device receives the second broadcast information sent by the second Bluetooth device in a broadcast mode by scanning; the second Bluetooth device The first broadcast information sent by the first Bluetooth device in the broadcast mode is received by scanning; if the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device The second Bluetooth address of the second Bluetooth device is recorded, and the second Bluetooth device records the first Bluetooth address of the first Bluetooth device.
  • an embodiment of the present application provides a Bluetooth headset, the Bluetooth headset sends first broadcast information in a broadcast manner, and the first broadcast information includes: a first Bluetooth address of the Bluetooth headset and the Bluetooth headset and receiving the second broadcast information sent by the opposite end Bluetooth headset in a broadcast manner by scanning, the second broadcast information includes: the second Bluetooth address of the opposite end Bluetooth headset and the opposite end Bluetooth The binding information of the headset; if the binding information of the Bluetooth headset is the same as the binding information of the opposite-end Bluetooth headset, the Bluetooth headset records the second Bluetooth address of the opposite-end Bluetooth headset.
  • an embodiment of the present application provides a Bluetooth headset, the Bluetooth headset sends second broadcast information in a broadcast manner, and the second broadcast information includes: a second Bluetooth address of the Bluetooth headset and the Bluetooth headset and receiving the first broadcast information sent by the opposite end Bluetooth headset in a broadcast manner by scanning, the first broadcast information includes: the first Bluetooth address of the opposite end Bluetooth headset and the opposite end Bluetooth The binding information of the headset; if the binding information of the Bluetooth headset of the opposite end is the same as the binding information of the Bluetooth headset, the Bluetooth headset records the first Bluetooth address of the Bluetooth headset of the opposite end.
  • the first Bluetooth device sends the first broadcast information in a broadcast manner, and receives the second broadcast information sent by the second Bluetooth device in a broadcast manner.
  • the first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device
  • the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the first Bluetooth device determines that the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device records the second Bluetooth address of the second Bluetooth device.
  • the embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.
  • FIG. 1 is a schematic diagram of an application scenario of address exchange between Bluetooth devices in an embodiment of the present application
  • FIG. 2A is a schematic flowchart of a method for exchanging addresses between Bluetooth devices in FIG. 1;
  • FIG. 2B is another schematic flowchart of the method for performing address exchange between the Bluetooth devices in FIG. 1;
  • FIG. 3 is a schematic diagram of an application scenario of performing address exchange between Bluetooth devices according to another embodiment of the present application.
  • 4A is a schematic flowchart of a method for exchanging addresses between two Bluetooth headsets in FIG. 3;
  • 4B is another schematic flowchart of a method for performing address exchange between two Bluetooth headsets in FIG. 3;
  • 5A is a schematic flow chart of a method for exchanging addresses between two Bluetooth headsets in FIG. 3;
  • 5B is another schematic flowchart of a method for exchanging addresses between two Bluetooth headsets in FIG. 3;
  • FIG. 6 is a schematic diagram of a fixed crossover timing.
  • FIG. 1 is a schematic diagram of an application scenario of address exchange between Bluetooth devices in an embodiment of the application; as shown in FIG. 1 , in this embodiment, the application scenario includes two Bluetooth devices as an example for description.
  • the bluetooth device can be any bluetooth-capable device.
  • the two Bluetooth devices are respectively referred to as a first Bluetooth device and a second Bluetooth device.
  • the device in this embodiment may be an electronic device with a casing, a module, or a chip.
  • the purpose of exchanging addresses between two Bluetooth devices includes, but is not limited to, pairing between Bluetooth devices and further wireless transmission of data between Bluetooth devices.
  • wireless transmission is based on BT Link or LBRT (Low Band (10-15MHz) Bluetooth Retransmission Technology, low frequency Bluetooth forwarding technology).
  • a communication system is mainly composed of a first Bluetooth device and a second Bluetooth device.
  • other devices other than the first Bluetooth device and the second Bluetooth device may also be included.
  • the first Bluetooth device sends the first broadcast information in a broadcast manner, and the first broadcast information includes: the first Bluetooth address of the first Bluetooth device and the binding information of the first Bluetooth device; the second Bluetooth device uses The second broadcast information is sent by broadcasting, and the second broadcast information includes: the second Bluetooth address of the second Bluetooth device and the binding information of the second Bluetooth device; the first Bluetooth device receives the second Bluetooth device by scanning The second broadcast information sent by the Bluetooth device in the broadcast mode; the second Bluetooth device receives the first broadcast information sent by the first Bluetooth device in the broadcast mode by scanning; if the binding information of the first Bluetooth device and the second Bluetooth device If the binding information of the devices is the same, the first Bluetooth device records the second Bluetooth address of the second Bluetooth device, and the second Bluetooth device records the first Bluetooth address of the first Bluetooth device .
  • FIG. 2A is a schematic flowchart of a method for exchanging addresses between Bluetooth devices in FIG. 1; as shown in FIG. 2A, in this embodiment, the method for exchanging addresses between Bluetooth devices is applied to a first Bluetooth device, and between Bluetooth devices
  • the method for performing address exchange includes the following steps:
  • the first broadcast information includes: a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device.
  • the first Bluetooth device sends the first broadcast information in a broadcast manner, so that all other devices in the network can receive the first broadcast information, and the first Bluetooth device does not need to send the first broadcast information to specific other Bluetooth devices independently.
  • S202A Receive, by scanning, the second broadcast information sent by the second Bluetooth device in a broadcast manner.
  • the second Bluetooth device also transmits the second broadcast information in a broadcast manner, and the first Bluetooth device receives the second broadcast information.
  • the second broadcast information includes: a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device.
  • the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, it means that the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired.
  • a bluetooth device records the second bluetooth address of the second bluetooth device, so that the first bluetooth device knows the second bluetooth address of the second bluetooth device.
  • step S203A if the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S201A to send the first broadcast information by using the broadcast mode again.
  • the first Bluetooth device sends the first broadcast information through broadcasting, and receives the second broadcasting information sent by the second Bluetooth device through broadcasting.
  • the first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device
  • the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the first Bluetooth device determines that the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, that is, the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired, then The first Bluetooth device records the second Bluetooth address of the second Bluetooth device.
  • the embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.
  • FIG. 2B is another schematic flow chart of the method for exchanging addresses between Bluetooth devices in FIG. 1; as shown in FIG. 2B, in this embodiment, the method for exchanging addresses between Bluetooth devices is applied to a second Bluetooth device.
  • the method for exchanging addresses between the two includes the following steps:
  • the second broadcast information includes: the second Bluetooth address of the second Bluetooth device and the binding information of the second Bluetooth device.
  • the second Bluetooth device sends the second broadcast information in a broadcast manner, so that all other devices in the network can receive the second broadcast information, and the second Bluetooth device does not need to send the second broadcast information to specific other Bluetooth devices alone. information.
  • S202B Receive, by scanning, the first broadcast information sent by the first Bluetooth device in a broadcast manner.
  • the first Bluetooth device also sends the first broadcast information in a broadcast manner, and the second Bluetooth device receives the first broadcast information in a scanning manner.
  • the first broadcast information includes: the first Bluetooth address of the first Bluetooth device and the binding information of the first Bluetooth device.
  • the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, it means that the second Bluetooth device and the first Bluetooth device belong to a pair of Bluetooth devices that should be paired.
  • the second Bluetooth device records the first Bluetooth address of the first Bluetooth device, so that the second Bluetooth device knows the first Bluetooth address of the first Bluetooth device.
  • step S203B If the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S201B to send the second broadcast information in a broadcast manner again.
  • an associated device is configured for the first Bluetooth device, and the binding information of the first Bluetooth device is the unique identity of the associated device; similarly, Configure an associated device for the second Bluetooth device, and the binding information of the second Bluetooth device is the unique identity of the associated device; or, the binding information of the first Bluetooth device is sent by the background server to The pairing identifier of the first bluetooth device, and the binding information of the second bluetooth device is the pairing identifier sent by the background server to the second bluetooth device.
  • the unique identifier may be read from the associated device to the first Bluetooth device and the second Bluetooth device.
  • the associated equipment is an accessory or a manufacturing machine or a testing machine
  • the manufacturing machine is specifically a device for producing the first Bluetooth device and the second Bluetooth device, that is, if the first A bluetooth device and a second bluetooth device are produced by the same manufacturing machine, then the unique identification of the manufacturing machine is used as the binding information
  • the testing machine is specifically a device for testing the first and second bluetooth devices, that is, if If the first Bluetooth device and the second Bluetooth device are tested by the same testing machine, the unique identification of the testing machine is used as the binding information.
  • the unique identification of the associated device is used as the binding information, which is simple to implement and has low cost.
  • At least one of the unique identity identifier and the pairing identifier is a random number or time, so as to more simply and directly represent the first item that should belong to a pair.
  • a bluetooth device and a second bluetooth device are a bluetooth device and a second bluetooth device.
  • the first Bluetooth device is a first Bluetooth headset
  • the second Bluetooth device is a second Bluetooth headset
  • the associated device is a charging box (or also called a charging bracket), and the charging box is used for charging the first Bluetooth headset and/or the second Bluetooth headset. Therefore, for the first Bluetooth headset and the second Bluetooth headset that should be paired, the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset are both unique identifiers of the charging box. For this reason, in the process of using the first Bluetooth headset and the second Bluetooth headset, the unique identification can be read from the charging box to the first Bluetooth device and the second Bluetooth device.
  • the reading method is: the first Bluetooth device and the second Bluetooth device read the unique identification from the charging box through the serial port or the radio frequency module on the charging box, so that the first Bluetooth device and the second Bluetooth device can read the unique identifier from the charging box.
  • the two Bluetooth devices through the same unique identifier, it can be determined that the first Bluetooth device and the second Bluetooth device are associated with the same charging box, which means that the first Bluetooth device and the second Bluetooth device belong to the same charging box.
  • the new second Bluetooth device reads the unique identification of the charging box from the charging box, so as to determine the new Bluetooth through the unique identification.
  • the second bluetooth device and the original first bluetooth device are associated with the same charging box, which means that the original first bluetooth device and the new second bluetooth device belong to a pair of bluetooth devices, and the original first bluetooth device and the new second bluetooth device are mutually recorded The Bluetooth address of the other party.
  • the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset may also be the unique identifiers of the manufacturing machine or the testing machine, so that they can be obtained from all
  • the manufacturing machine or the testing machine reads the unique identification to the first Bluetooth device and the second Bluetooth device; or the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset is The pairing identifier sent by the background server to the first Bluetooth headset and the second Bluetooth headset.
  • FIG. 4A is a schematic flowchart of a method for exchanging addresses between two Bluetooth headsets in FIG. 3 ; as shown in FIG. 4A , in this implementation, applied to the first Bluetooth headset, it includes the following steps:
  • S401A Send the first broadcast information in a broadcast manner.
  • the first broadcast information includes: a first Bluetooth address of the first Bluetooth headset and binding information of the first Bluetooth headset.
  • the binding information of the first Bluetooth headset can be acquired from the charging box and stored locally in the first Bluetooth headset.
  • S402A Receive, by scanning, the second broadcast information sent by the second Bluetooth headset in a broadcast manner.
  • the second broadcast information includes: a second Bluetooth address of the second Bluetooth headset and binding information of the second Bluetooth headset.
  • the binding information of the second Bluetooth headset can be acquired from the charging box and stored locally in the second Bluetooth headset.
  • the embodiment of the present application uses the charging box as the associated device, and the first broadcast information sent by the first Bluetooth headset and the second broadcast information sent by the second Bluetooth headset respectively have the unique identification of the charging box.
  • the unique identification of the charging box in the embodiment of the present application the realization of address exchange is simple and the cost is low.
  • the unique identifier may be a random number or a time.
  • the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset Both are the unique identification of the charging box.
  • step S403A If the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S401A to send the first broadcast information in a broadcast manner again.
  • the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset are both the unique identifications of the manufacturing machine or the testing machine , for the first Bluetooth headset and the second Bluetooth headset that should belong to the same pair of Bluetooth headsets, the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset are the uniqueness of the manufacturing machine or the testing machine Identity. For example, where the second Bluetooth device needs to be repaired, a new first Bluetooth device is configured during the maintenance process, and the new first Bluetooth device and the repaired second Bluetooth device read the unique identity of the test machine from the test machine.
  • the bluetooth device belongs to a pair of bluetooth devices, so that the new first bluetooth device and the repaired second bluetooth device mutually record each other's bluetooth address, thereby realizing the maintenance of the second bluetooth device.
  • the application scenarios of the embodiments of the present application may further include electronic terminals.
  • the electronic terminal is, for example, a smart phone, a tablet computer, or a personal computer.
  • the first Bluetooth headset and the second Bluetooth headset belonging to a pair of Bluetooth headsets perform wireless communication with the electronic terminal, such as communication of audio data, and the first Bluetooth headset and the second Bluetooth headset can play the audio transmitted by the electronic terminal. data.
  • the first Bluetooth device sends the first broadcast information by means of broadcasting, and receives the second broadcast information sent by the second Bluetooth device by means of broadcast by means of scanning.
  • the first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device
  • the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the first Bluetooth device determines that the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, that is, when the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired,
  • the first Bluetooth device records the exchange of the second Bluetooth address of the second Bluetooth device.
  • the embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.
  • FIG. 4B is another schematic flowchart of the method for exchanging addresses between two Bluetooth headsets in FIG. 3 ; as shown in FIG. 4B , in this implementation, applied to the second Bluetooth headset, it includes the following steps:
  • the second broadcast information includes: the second Bluetooth address of the second Bluetooth headset and the binding information of the second Bluetooth headset.
  • the binding information of the second Bluetooth headset can be acquired from the charging box and stored locally in the second Bluetooth headset.
  • S402B Receive, by scanning, the first broadcast information sent by the first Bluetooth headset in a broadcast manner.
  • the first broadcast information includes: the first Bluetooth address of the first Bluetooth headset and binding information of the first Bluetooth headset.
  • the binding information of the first Bluetooth headset can be obtained from the charging box and stored locally in the second Bluetooth headset.
  • the embodiment of the present application uses the charging box of the earphone as the associated device, and the first broadcast information sent by the first Bluetooth earphone and the second broadcast information sent by the second Bluetooth earphone respectively have the unique identification of the charging box.
  • the unique identification of the charging box in the embodiment of the present application the realization of address exchange is simple and the cost is low.
  • the unique identifier may be a random number or a time.
  • the binding information of the first Bluetooth headset is bound to the second Bluetooth headset.
  • the information is the unique identification of the charging box.
  • step S403B If the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S401B to send the second broadcast information in a broadcast manner again.
  • the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset are both the unique identifications of the manufacturing machine or the testing machine , for the first Bluetooth headset and the second Bluetooth headset that should belong to the same pair of Bluetooth headsets, the binding information of the first Bluetooth headset is the same as the binding information of the second Bluetooth headset.
  • the second Bluetooth device sends the second broadcast information through broadcasting, and receives the first broadcasting information sent by the first Bluetooth device through broadcasting.
  • the first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device
  • the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the second Bluetooth device determines that the binding information of the second Bluetooth device is the same as the binding information of the first Bluetooth device, that is, when the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired,
  • the second Bluetooth device records the first Bluetooth address of the first Bluetooth device.
  • the embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.
  • the method includes the steps in any of the foregoing embodiments.
  • the first bluetooth device transmits the first broadcast information by broadcasting and the first bluetooth device receives the second bluetooth device.
  • the second broadcast information sent by the Bluetooth device in a broadcast manner adopts a preset fixed cross timing sequence.
  • fixing the interleaving timing includes: in odd-numbered timing periods, the first Bluetooth device sends the first broadcast information in a broadcast manner, and in the even-numbered timing periods, the first Bluetooth device receives the second broadcast information sent by the second Bluetooth device in a broadcast manner.
  • FIG. 5A is another schematic flowchart of the method for exchanging addresses between two Bluetooth headsets in FIG. 3; as shown in FIG. 5A, in this embodiment, the method for exchanging addresses between Bluetooth devices is applied to the first Bluetooth device, including follows the steps below:
  • the first Bluetooth device sends the first broadcast information in a broadcast manner in an odd timing period.
  • the first Bluetooth device receives the second broadcast information sent by the second Bluetooth device in a broadcast manner within an even-numbered timing period.
  • the first Bluetooth device sends the first broadcast information in a broadcast manner in the first, third, and fifth timing cycles, and the first Bluetooth device sends the first broadcast information at the second and fourth time of the fixed crossover sequence. and 6 timing cycles to receive the second broadcast information sent by the second Bluetooth device. Therefore, the embodiment of the present application avoids the communication conflict between the first Bluetooth device and the second Bluetooth device.
  • S503A' If the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device records the second Bluetooth address of the second Bluetooth device.
  • step S503A If the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S501A to send the first broadcast information in a broadcast manner again.
  • the first Bluetooth device sends the first broadcast information through broadcasting, and receives the second broadcasting information sent by the second Bluetooth device through broadcasting.
  • the first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device
  • the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the first Bluetooth device determines that the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, that is, the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired, the A Bluetooth device records the second Bluetooth address of the second Bluetooth device.
  • the embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.
  • FIG. 5B is another schematic flowchart of the method for exchanging addresses between two Bluetooth headsets in FIG. 3 ; as shown in FIG. 5B , in this embodiment, the method for exchanging addresses between Bluetooth devices is applied to a second Bluetooth device, including follow the steps below:
  • the second Bluetooth device sends the second broadcast information in a broadcast manner within an even-numbered timing period.
  • the second Bluetooth device receives the first broadcast information sent by the first Bluetooth device in an odd timing period.
  • the second Bluetooth device sends the second broadcast information in a broadcast manner in the second, fourth, and sixth timing cycles, and the second Bluetooth device sends the second broadcast information in the first, third, and fifth timing cycles. Synchronously receive the first broadcast information. Therefore, the embodiment of the present application avoids the communication conflict between the first Bluetooth device and the second Bluetooth device.
  • step S503B if the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, then return to step S501B to send the second broadcast information by using the broadcast mode again.
  • the second Bluetooth device sends the second broadcast information through broadcasting, and receives the first broadcasting information sent by the first Bluetooth device through broadcasting.
  • the first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device
  • the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the second Bluetooth device determines that the binding information of the second Bluetooth device is the same as the binding information of the first Bluetooth device, that is, the second Bluetooth device and the first Bluetooth device belong to a pair of Bluetooth devices that should be paired, the The second Bluetooth device records the first Bluetooth address of the first Bluetooth device.
  • the embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.
  • the method may further include: receiving a user's initiating address exchange operation; After receiving the start address exchange operation, the first Bluetooth device is triggered to send the first broadcast information in a broadcast manner. Therefore, in this embodiment of the present application, it is possible to start the broadcast transmission of the first broadcast information through the user's initiating address exchange operation.
  • the operation of initiating the address exchange is at least one operation of pressing, sliding, and clicking performed on at least one of the associated device, the first Bluetooth device, and the second Bluetooth device.
  • a structure that accepts at least one of the user's pressing, sliding, and clicking can be set to receive the user's Initiate an address swap operation.
  • the position where the structure is set is not particularly limited, as long as it is convenient for the user to perform at least one of pressing, sliding, and clicking.
  • the sending the first broadcast information in a broadcast manner may also include: initiating a bluetooth to the bluetooth end using the historical pairing bluetooth address recorded by the first bluetooth device.
  • a connection request if the Bluetooth connection request is not responded, triggering the first Bluetooth device to send the first broadcast information in a broadcast manner.
  • the historical pairing Bluetooth address specifically refers to the Bluetooth address of another second Bluetooth device that has performed address exchange with the first Bluetooth device.
  • the first Bluetooth device and the second Bluetooth device originally belonging to a pair of Bluetooth devices perform the above-mentioned address exchange scheme, the second Bluetooth address of the second Bluetooth device recorded in the first Bluetooth device , in the process of use, the second Bluetooth device (also called the old second Bluetooth device) is lost or damaged, and a new second Bluetooth device (new second Bluetooth device) needs to be configured to be compatible with the first Bluetooth device that was not lost.
  • the device (the old first bluetooth device) re-forms a pair of bluetooth devices, so before the old first bluetooth device and the new second bluetooth device perform the above address exchange scheme, the old first bluetooth device to the old second bluetooth using its record
  • the bluetooth end of the second bluetooth address of the device initiates a bluetooth connection request, if the bluetooth connection request is not responded, it indicates that the old second bluetooth device does not exist in the application environment, thereby triggering the old first bluetooth device to send the first broadcast by broadcasting information.
  • the first Bluetooth device recording the second Bluetooth address of the second Bluetooth device
  • the first Bluetooth device updates its recorded historical pairing Bluetooth address to the second Bluetooth device's address.
  • the second Bluetooth address (ie, the second Bluetooth address of the new second Bluetooth device), in this embodiment, the Bluetooth device may also be referred to as a Bluetooth terminal.
  • the method before the sending of the first broadcast information in a broadcast manner, the method further includes: if an initiating address exchange operation from the user is received, and sending a message to a device recorded using the first Bluetooth device. If the bluetooth connection request initiated by the bluetooth end of the historical paired bluetooth address is not responded, the first bluetooth device is triggered to send the first broadcast information in a broadcast manner. It can be seen from this that the first Bluetooth device is triggered to send the first broadcast information in a broadcast manner only when the user's initiation address exchange operation is received and the Bluetooth connection request is not responded at the same time.
  • the second Bluetooth address of the second Bluetooth device recorded in the first Bluetooth device , if the start address operation occurs due to the user's misoperation, then through the Bluetooth connection request initiated by the Bluetooth end using the historical pairing Bluetooth address recorded by the first Bluetooth device, if the Bluetooth connection request is responded, it indicates that the first Bluetooth device The second Bluetooth device that has completed the address exchange is still valid. Otherwise, it indicates that the second bluetooth device that has completed the address exchange with the first bluetooth device does not exist or is invalid. At this time, the first bluetooth device is triggered to send the first broadcast information by broadcasting to communicate with another new second bluetooth device. Bluetooth devices exchange addresses.
  • the method may further include: receiving a user's initiating address exchange operation; if the start address exchange operation is received, the second Bluetooth device is triggered to send the second broadcast information in a broadcast manner. Therefore, in this embodiment of the present application, it is possible to start the broadcast transmission of the second broadcast information through the user's initiating address exchange operation.
  • the operation of initiating the address exchange is at least one operation of pressing, sliding, and clicking performed on at least one of the associated device, the first Bluetooth device, and the second Bluetooth device.
  • a structure such as a mechanical button, a touch button, or a touch screen
  • accepts at least one of the user's pressing, sliding, and clicking can be set to receive the user's Initiate an address swap operation.
  • the position where the structure is set is not particularly limited, as long as it is convenient for the user to perform at least one of pressing, sliding, and clicking.
  • before the sending of the second broadcast information in a broadcast manner may also include: initiating a bluetooth to the bluetooth end using the historical pairing bluetooth address recorded by the second bluetooth device.
  • a connection request if the Bluetooth connection request is not responded, triggering the second Bluetooth device to send the second broadcast information in a broadcast manner.
  • the historical pairing Bluetooth address specifically refers to the Bluetooth address of another second Bluetooth device that has performed address exchange with the first Bluetooth device.
  • the first Bluetooth address of the first Bluetooth device recorded in the second Bluetooth device is the first Bluetooth address of the first Bluetooth device recorded in the second Bluetooth device after the address exchange scheme is executed in the first Bluetooth device and the second Bluetooth device originally belonging to a pair of Bluetooth devices.
  • the first Bluetooth device also called the old second Bluetooth device
  • a new first Bluetooth device (new first Bluetooth device) needs to be configured to be compatible with the second Bluetooth device that is not lost.
  • the device (the old second bluetooth device) re-forms a pair of bluetooth devices, so before the old second bluetooth device and the new first bluetooth device perform the above address exchange scheme, the old second bluetooth device to the old first bluetooth using its record
  • the first bluetooth address of the device initiates a bluetooth connection request, if the bluetooth connection request is not responded, it indicates that the old first bluetooth device does not exist in the application environment, thereby triggering the old second bluetooth device to send the second broadcast information by broadcasting.
  • the second Bluetooth device updates the historical pairing Bluetooth address recorded by the second Bluetooth device to the address of the first Bluetooth device.
  • the first Bluetooth address ie, the first Bluetooth address of the new first Bluetooth device.
  • the method before the sending of the second broadcast information in a broadcast manner, the method further includes: if an initiating address exchange operation from the user is received, and sending the information to the data recorded by the second Bluetooth device. If the bluetooth connection request initiated by the bluetooth end of the historical paired bluetooth address is not responded, the second bluetooth device is triggered to send the second broadcast information in a broadcast manner. It can be seen from this that the second Bluetooth device is triggered to send the second broadcast information in a broadcast manner only when the user's initiation address exchange operation is received and the bluetooth connection request is not responded at the same time.
  • the first Bluetooth address of the first Bluetooth device recorded in the second Bluetooth device if a start address operation occurs due to user misoperation, a Bluetooth connection request is initiated to the Bluetooth end using the historical paired Bluetooth address recorded by the second Bluetooth device, and if the Bluetooth connection request is responded, it indicates that the second Bluetooth device has The first Bluetooth device that completes the address exchange is still valid. Otherwise, it indicates that the first bluetooth device that has completed the address exchange with the second bluetooth device does not exist or is invalid.
  • the second bluetooth device is triggered to send the second broadcast information by broadcasting, so as to communicate with another new first bluetooth device.
  • Bluetooth devices exchange addresses.
  • the method includes the steps in any of the foregoing embodiments.
  • the same hardware interface can also be set on the charging box.
  • the charging box forms a wired connection with the first Bluetooth headset and/or the second Bluetooth headset. Connection (for example, when the first Bluetooth headset and/or the second Bluetooth headset are accommodated in the charging box for wired or wireless charging), so that the first Bluetooth headset is read from the external device through the same hardware interface set on the charging box.
  • the binding information is then transmitted to the first Bluetooth headset through the wired connection, and/or the binding information of the second Bluetooth headset is read and then transmitted to the second Bluetooth headset through the wired connection.
  • the dynamic collocation of the first Bluetooth device and the second Bluetooth device can be realized.
  • the address exchange method provided in the embodiment of the present application is directly implemented between the first Bluetooth device and the second Bluetooth device, it is possible to quickly exchange addresses between the dynamically matched Bluetooth devices without requiring two Bluetooth devices to The Bluetooth address of the other party is known when it leaves the factory.
  • the above reading of the binding information of the first Bluetooth device and the binding information of the second Bluetooth device from the charging box, the manufacturing machine or the testing machine can be implemented by a user operating an application program (APP) installed on the electronic terminal.
  • APP application program
  • the binding information of the first Bluetooth device and the binding information of the second Bluetooth device may be stored in a flash memory or a one-time programmable (One Time Programmable) electronic terminal or a microprocessor. , referred to as OTP) storage device.
  • OTP one-time programmable
  • An embodiment of the present application further provides a Bluetooth headset, the Bluetooth headset sends first broadcast information in a broadcast manner, and the first broadcast information includes: the first Bluetooth address of the Bluetooth headset and the binding of the Bluetooth headset and receiving the second broadcast information sent by the opposite-end Bluetooth headset in a broadcast manner by scanning, the second broadcast information includes: the second Bluetooth address of the opposite-end Bluetooth headset and the binding of the opposite-end Bluetooth headset If the binding information of the Bluetooth headset is the same as the binding information of the opposite-end Bluetooth headset, the Bluetooth headset records the second Bluetooth address of the opposite-end Bluetooth headset.
  • the Bluetooth headset is, for example, the first Bluetooth headset in the above embodiment.
  • the embodiment of the present application further provides a Bluetooth headset, the Bluetooth headset sends second broadcast information in a broadcast manner, and the second broadcast information includes: the second Bluetooth address of the Bluetooth headset and the binding of the Bluetooth headset and receiving the first broadcast information sent by the opposite-end Bluetooth headset in a broadcast manner by scanning, the first broadcast information includes: the first Bluetooth address of the opposite-end Bluetooth headset and the binding of the opposite-end Bluetooth headset If the binding information of the Bluetooth headset of the opposite end is the same as the binding information of the Bluetooth headset, the Bluetooth headset records the first Bluetooth address of the Bluetooth headset of the opposite end.
  • the Bluetooth headset is, for example, the second Bluetooth headset in the above embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for address exchange between Bluetooth devices, a communication system, and a Bluetooth headset. The method for address exchange between Bluetooth devices comprises: sending first broadcast information in a broadcast manner, the first broadcast information comprising a first Bluetooth address of a first Bluetooth device and binding information of the first Bluetooth device (S201A); receiving, by means of scanning, second broadcast information sent by a second Bluetooth device in a broadcast manner, the second broadcast information comprising a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device (S202A); and if the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device recording the second Bluetooth address of the second Bluetooth device (S203A'). By means of the method for address exchange between Bluetooth devices, address exchange between Bluetooth devices is quickly realized, and the complexity of address exchange between Bluetooth devices is reduced.

Description

蓝牙设备间进行地址交换的方法、通信系统以及蓝牙耳机Method, communication system and bluetooth headset for exchanging addresses between bluetooth devices 技术领域technical field

本申请实施例涉及无线通信技术领域,尤其涉及一种蓝牙设备间进行地址交换的方法、通信系统以及蓝牙耳机。The embodiments of the present application relate to the field of wireless communication technologies, and in particular, to a method for exchanging addresses between Bluetooth devices, a communication system, and a Bluetooth headset.

背景技术Background technique

蓝牙设备间要进行正常通讯,需要先在蓝牙设备间进行配对或者又称之为建立蓝牙连接。而为了实现配对,需要通过蓝牙设备间的蓝牙地址的交换,蓝牙设备获知进行通讯的蓝牙设备的蓝牙地址。比如,在一具体场景中,真无线立体声(true wireless stereo,TWS)耳机一般都包括两只蓝牙耳机(相当于两个蓝牙设备),要正常使用TWS耳机,就需要在这两只蓝牙耳机间进行配对。而为了实现配对,需要这两只蓝牙耳机间进行蓝牙地址的交换,一只蓝牙耳机获知另一只蓝牙耳机的蓝牙地址。For normal communication between Bluetooth devices, it is necessary to pair or establish a Bluetooth connection between the Bluetooth devices first. In order to realize pairing, it is necessary to exchange the Bluetooth address between the Bluetooth devices, and the Bluetooth device acquires the Bluetooth address of the Bluetooth device for communication. For example, in a specific scenario, a true wireless stereo (TWS) headset generally includes two Bluetooth headsets (equivalent to two Bluetooth devices). To use the TWS headset normally, it is necessary to connect the two Bluetooth headsets. to pair. In order to realize pairing, it is necessary to exchange Bluetooth addresses between the two Bluetooth headsets, and one Bluetooth headset learns the Bluetooth address of the other Bluetooth headset.

但是,实现上述蓝牙设备间的地址交换的方案较为复杂且实现地址交换的速度较慢。However, the solution for realizing the above-mentioned address exchange between Bluetooth devices is relatively complicated, and the speed of realizing the address exchange is relatively slow.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请实施例所解决的技术问题之一在于提供一种蓝牙设备间进行地址交换的方法、通信系统以及蓝牙耳机,用以克服或者缓解现有技术中上述缺陷。In view of this, one of the technical problems solved by the embodiments of the present application is to provide a method for exchanging addresses between Bluetooth devices, a communication system, and a Bluetooth headset, so as to overcome or alleviate the above-mentioned defects in the prior art.

第一方面,本申请实施例提供了一种蓝牙设备间进行地址交换的方法,应用于第一蓝牙设备,所述方法包括:In a first aspect, an embodiment of the present application provides a method for exchanging addresses between Bluetooth devices, which is applied to a first Bluetooth device, and the method includes:

采用广播方式发送第一广播信息,所述第一广播信息包括:所述第一蓝牙设备的第一蓝牙地址以及所述第一蓝牙设备的绑定信息;The first broadcast information is sent in a broadcast manner, and the first broadcast information includes: the first Bluetooth address of the first Bluetooth device and the binding information of the first Bluetooth device;

通过扫描的方式接收第二蓝牙设备采用广播方式发送的第二广播信息,所述第二广播信息包括:所述第二蓝牙设备的第二蓝牙地址以及所述第二蓝牙设备的绑定信息;Receive second broadcast information sent by a second Bluetooth device in a broadcast manner by scanning, where the second broadcast information includes: a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device;

若所述第一蓝牙设备的绑定信息与所述第二蓝牙设备的绑定信息相同,则所述第一蓝牙设备记录所述第二蓝牙设备的所述第二蓝牙地址。If the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device records the second Bluetooth address of the second Bluetooth device.

第二方面,本申请实施例提供了一种蓝牙设备间进行地址交换的方法, 应用于第二蓝牙设备,所述方法包括:In a second aspect, an embodiment of the present application provides a method for exchanging addresses between Bluetooth devices, which is applied to a second Bluetooth device, and the method includes:

采用广播方式发送第二广播信息,所述第二广播信息包括:所述第二蓝牙设备的第二蓝牙地址以及所述第二蓝牙设备的绑定信息;The second broadcast information is sent in a broadcast manner, and the second broadcast information includes: the second Bluetooth address of the second Bluetooth device and the binding information of the second Bluetooth device;

通过扫描的方式接收第一蓝牙设备采用广播方式发送的第一广播信息,所述第一广播信息包括:所述第一蓝牙设备的第一蓝牙地址以及所述第一蓝牙设备的绑定信息;Receive first broadcast information sent by a first Bluetooth device in a broadcast manner by scanning, where the first broadcast information includes: a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device;

若所述第一蓝牙设备的绑定信息与所述第二蓝牙设备的绑定信息相同,则所述第二蓝牙设备记录所述第一蓝牙设备的所述第一蓝牙地址。If the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the second Bluetooth device records the first Bluetooth address of the first Bluetooth device.

第三方面,本申请实施例提供了一种通信系统,其包括:第一蓝牙设备和第二蓝牙设备,所述第一蓝牙设备采用广播方式发送第一广播信息,所述第一广播信息包括:所述第一蓝牙设备的第一蓝牙地址以及所述第一蓝牙设备的绑定信息;所述第二蓝牙设备采用广播方式发送第二广播信息,所述第二广播信息包括:所述第二蓝牙设备的第二蓝牙地址以及所述第二蓝牙设备的绑定信息;所述第一蓝牙设备通过扫描方式接收第二蓝牙设备采用广播方式发送的第二广播信息;所述第二蓝牙设备通过扫描的方式接收第一蓝牙设备采用广播方式发送的第一广播信息;若所述第一蓝牙设备的绑定信息与所述第二蓝牙设备的绑定信息相同,则所述第一蓝牙设备记录所述第二蓝牙设备的所述第二蓝牙地址,以及所述第二蓝牙设备记录所述第一蓝牙设备的所述第一蓝牙地址。In a third aspect, an embodiment of the present application provides a communication system, which includes: a first Bluetooth device and a second Bluetooth device, the first Bluetooth device sends first broadcast information in a broadcast manner, and the first broadcast information includes : the first bluetooth address of the first bluetooth device and the binding information of the first bluetooth device; the second bluetooth device sends second broadcast information in a broadcast manner, and the second broadcast information includes: the first bluetooth device The second Bluetooth address of the two Bluetooth devices and the binding information of the second Bluetooth device; the first Bluetooth device receives the second broadcast information sent by the second Bluetooth device in a broadcast mode by scanning; the second Bluetooth device The first broadcast information sent by the first Bluetooth device in the broadcast mode is received by scanning; if the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device The second Bluetooth address of the second Bluetooth device is recorded, and the second Bluetooth device records the first Bluetooth address of the first Bluetooth device.

第四方面,本申请实施例提供了一种蓝牙耳机,所述蓝牙耳机采用广播方式发送第一广播信息,所述第一广播信息包括:所述蓝牙耳机的第一蓝牙地址以及所述蓝牙耳机的绑定信息;以及通过扫描的方式接收对端蓝牙耳机采用广播方式发送的第二广播信息,所述第二广播信息包括:所述对端蓝牙耳机的第二蓝牙地址以及所述对端蓝牙耳机的绑定信息;若所述蓝牙耳机的绑定信息与所述对端蓝牙耳机的绑定信息相同,则所述蓝牙耳机记录所述对端蓝牙耳机的所述第二蓝牙地址。In a fourth aspect, an embodiment of the present application provides a Bluetooth headset, the Bluetooth headset sends first broadcast information in a broadcast manner, and the first broadcast information includes: a first Bluetooth address of the Bluetooth headset and the Bluetooth headset and receiving the second broadcast information sent by the opposite end Bluetooth headset in a broadcast manner by scanning, the second broadcast information includes: the second Bluetooth address of the opposite end Bluetooth headset and the opposite end Bluetooth The binding information of the headset; if the binding information of the Bluetooth headset is the same as the binding information of the opposite-end Bluetooth headset, the Bluetooth headset records the second Bluetooth address of the opposite-end Bluetooth headset.

第五方面,本申请实施例提供了一种蓝牙耳机,所述蓝牙耳机采用广播方式发送第二广播信息,所述第二广播信息包括:所述蓝牙耳机的第二蓝牙地址以及所述蓝牙耳机的绑定信息;以及通过扫描的方式接收对端蓝牙耳机采用广播方式发送的第一广播信息,所述第一广播信息包括:所述对端蓝牙耳机的第一蓝牙地址以及所述对端蓝牙耳机的绑定信息;若所述对端蓝牙耳机的绑定信息与所述蓝牙耳机的绑定信息相同,则所述蓝牙耳机记录所述对端蓝牙耳机 的所述第一蓝牙地址。In a fifth aspect, an embodiment of the present application provides a Bluetooth headset, the Bluetooth headset sends second broadcast information in a broadcast manner, and the second broadcast information includes: a second Bluetooth address of the Bluetooth headset and the Bluetooth headset and receiving the first broadcast information sent by the opposite end Bluetooth headset in a broadcast manner by scanning, the first broadcast information includes: the first Bluetooth address of the opposite end Bluetooth headset and the opposite end Bluetooth The binding information of the headset; if the binding information of the Bluetooth headset of the opposite end is the same as the binding information of the Bluetooth headset, the Bluetooth headset records the first Bluetooth address of the Bluetooth headset of the opposite end.

本申请实施例的技术方案中,第一蓝牙设备通过广播方式发送第一广播信息,并接收第二蓝牙设备通过广播方式发送的第二广播信息。第一广播信息包括第一蓝牙设备的第一蓝牙地址以及第一蓝牙设备的绑定信息,第二广播信息包括第二蓝牙设备的第二蓝牙地址以及第二蓝牙设备的绑定信息。由此可以使得第一蓝牙设备在确定第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同时,第一蓝牙设备记录第二蓝牙设备的第二蓝牙地址。本申请实施例无须第一蓝牙设备和第二蓝牙设备之外的第三方设备的参与,即可快速地实现了蓝牙设备间的地址交换,降低了实现蓝牙设备间地址交换的复杂度。In the technical solutions of the embodiments of the present application, the first Bluetooth device sends the first broadcast information in a broadcast manner, and receives the second broadcast information sent by the second Bluetooth device in a broadcast manner. The first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device, and the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the first Bluetooth device determines that the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device records the second Bluetooth address of the second Bluetooth device. The embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.

附图说明Description of drawings

后文将参照附图以示例性而非限制性的方式详细描述本申请实施例的一些具体实施例。附图中相同的附图标记标示了相同或类似的部件或部分。本领域技术人员应所述理解,这些附图未必是按比例绘制的。附图中:Hereinafter, some specific embodiments of the embodiments of the present application will be described in detail by way of example and not limitation with reference to the accompanying drawings. The same reference numbers in the figures designate the same or similar parts or parts. It will be understood by those skilled in the art that the drawings are not necessarily drawn to scale. In the attached picture:

图1为本申请一实施例中蓝牙设备之间进行地址交换的一应用场景示意图;1 is a schematic diagram of an application scenario of address exchange between Bluetooth devices in an embodiment of the present application;

图2A为图1中蓝牙设备之间进行地址交换的方法一流程示意图;2A is a schematic flowchart of a method for exchanging addresses between Bluetooth devices in FIG. 1;

图2B为图1中蓝牙设备之间进行地址交换的方法另一流程示意图;FIG. 2B is another schematic flowchart of the method for performing address exchange between the Bluetooth devices in FIG. 1;

图3为本申请另一实施例蓝牙设备间进行地址交换的应用场景示意图;3 is a schematic diagram of an application scenario of performing address exchange between Bluetooth devices according to another embodiment of the present application;

图4A为图3中两个蓝牙耳机之间进行地址交换的方法一流程示意图;4A is a schematic flowchart of a method for exchanging addresses between two Bluetooth headsets in FIG. 3;

图4B为图3中两个蓝牙耳机之间进行地址交换的方法另一流程示意图;4B is another schematic flowchart of a method for performing address exchange between two Bluetooth headsets in FIG. 3;

图5A为图3中两个蓝牙耳机之间进行地址交换的方法还一流程示意图;5A is a schematic flow chart of a method for exchanging addresses between two Bluetooth headsets in FIG. 3;

图5B为图3中两个蓝牙耳机之间进行地址交换的方法再一流程示意图;5B is another schematic flowchart of a method for exchanging addresses between two Bluetooth headsets in FIG. 3;

图6为固定交叉时序的示意图。FIG. 6 is a schematic diagram of a fixed crossover timing.

具体实施方式detailed description

实施本申请实施例的任一技术方案必不一定需要同时达到以上的所有优点。Implementing any technical solution of the embodiments of the present application does not necessarily need to achieve all the above advantages at the same time.

为了使本领域的人员更好地理解本申请实施例中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请实施例一部分实施例,而不是全部的实 施例。基于本申请实施例中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本申请实施例保护的范围。In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. The embodiments described above are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the embodiments of the present application should fall within the protection scope of the embodiments of the present application.

下面结合本申请实施例附图进一步说明本申请实施例的具体实现。The specific implementation of the embodiments of the present application is further described below with reference to the accompanying drawings of the embodiments of the present application.

图1为本申请一实施例中蓝牙设备之间进行地址交换的一应用场景示意图;如图1所示,本实施例中,以在应用场景中包括两个蓝牙设备为例进行说明,两个蓝牙设备可以为任何具有蓝牙功能的设备。为了予以区分,两个蓝牙设备分别称之为第一蓝牙设备、第二蓝牙设备。FIG. 1 is a schematic diagram of an application scenario of address exchange between Bluetooth devices in an embodiment of the application; as shown in FIG. 1 , in this embodiment, the application scenario includes two Bluetooth devices as an example for description. The bluetooth device can be any bluetooth-capable device. To distinguish, the two Bluetooth devices are respectively referred to as a first Bluetooth device and a second Bluetooth device.

本实施例中的设备可以是具有外壳的电子装置,也可以是模组,也可以是芯片。The device in this embodiment may be an electronic device with a casing, a module, or a chip.

本实施例,两个蓝牙设备之间进行地址交换的目的包括但不限于进行蓝牙设备之间的配对以及进一步进行蓝牙设备之间数据的无线传输。无线传输比如基于BT Link或者LBRT(Low Band(10-15MHz)Bluetooth Retransmission Technology,低频蓝牙转发技术)。In this embodiment, the purpose of exchanging addresses between two Bluetooth devices includes, but is not limited to, pairing between Bluetooth devices and further wireless transmission of data between Bluetooth devices. For example, wireless transmission is based on BT Link or LBRT (Low Band (10-15MHz) Bluetooth Retransmission Technology, low frequency Bluetooth forwarding technology).

上述图1中,主要由第一蓝牙设备和第二蓝牙设备组成一通信系统,在一些实施例中,还可以包括除第一蓝牙设备和第二蓝牙设备以外的其他设备。In the above-mentioned FIG. 1 , a communication system is mainly composed of a first Bluetooth device and a second Bluetooth device. In some embodiments, other devices other than the first Bluetooth device and the second Bluetooth device may also be included.

本实施例中,第一蓝牙设备采用广播方式发送第一广播信息,第一广播信息包括:第一蓝牙设备的第一蓝牙地址以及第一蓝牙设备的绑定信息;所述第二蓝牙设备采用广播方式发送第二广播信息,所述第二广播信息包括:所述第二蓝牙设备的第二蓝牙地址以及所述第二蓝牙设备的绑定信息;第一蓝牙设备通过扫描的方式接收第二蓝牙设备采用广播方式发送的第二广播信息;所述第二蓝牙设备通过扫描的方式接收第一蓝牙设备采用广播方式发送的第一广播信息;若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同,则所述第一蓝牙设备记录所述第二蓝牙设备的所述第二蓝牙地址,以及所述第二蓝牙设备记录所述第一蓝牙设备的所述第一蓝牙地址。In this embodiment, the first Bluetooth device sends the first broadcast information in a broadcast manner, and the first broadcast information includes: the first Bluetooth address of the first Bluetooth device and the binding information of the first Bluetooth device; the second Bluetooth device uses The second broadcast information is sent by broadcasting, and the second broadcast information includes: the second Bluetooth address of the second Bluetooth device and the binding information of the second Bluetooth device; the first Bluetooth device receives the second Bluetooth device by scanning The second broadcast information sent by the Bluetooth device in the broadcast mode; the second Bluetooth device receives the first broadcast information sent by the first Bluetooth device in the broadcast mode by scanning; if the binding information of the first Bluetooth device and the second Bluetooth device If the binding information of the devices is the same, the first Bluetooth device records the second Bluetooth address of the second Bluetooth device, and the second Bluetooth device records the first Bluetooth address of the first Bluetooth device .

图2A为图1中蓝牙设备之间进行地址交换的方法一流程示意图;如图2A所示,本实施例中,蓝牙设备之间进行地址交换的方法应用于第一蓝牙设备,蓝牙设备之间进行地址交换的方法包括如下步骤:2A is a schematic flowchart of a method for exchanging addresses between Bluetooth devices in FIG. 1; as shown in FIG. 2A, in this embodiment, the method for exchanging addresses between Bluetooth devices is applied to a first Bluetooth device, and between Bluetooth devices The method for performing address exchange includes the following steps:

S201A、采用广播方式发送第一广播信息。S201A. Send the first broadcast information in a broadcast manner.

本实施例中,第一广播信息包括:第一蓝牙设备的第一蓝牙地址以及第一蓝牙设备的绑定信息。In this embodiment, the first broadcast information includes: a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device.

第一蓝牙设备采用广播方式发送第一广播信息,能够使网络中的所有其 他设备都可以接收第一广播信息,且第一蓝牙设备不用单独向特定的其他蓝牙设备发送第一广播信息。The first Bluetooth device sends the first broadcast information in a broadcast manner, so that all other devices in the network can receive the first broadcast information, and the first Bluetooth device does not need to send the first broadcast information to specific other Bluetooth devices independently.

S202A、通过扫描的方式接收第二蓝牙设备采用广播方式发送的第二广播信息。S202A. Receive, by scanning, the second broadcast information sent by the second Bluetooth device in a broadcast manner.

本实施例中,第二蓝牙设备同样采用广播方式发送第二广播信息,第一蓝牙设备接收第二广播信息。第二广播信息包括:第二蓝牙设备的第二蓝牙地址以及第二蓝牙设备的绑定信息。In this embodiment, the second Bluetooth device also transmits the second broadcast information in a broadcast manner, and the first Bluetooth device receives the second broadcast information. The second broadcast information includes: a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device.

S203A'、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同,则第一蓝牙设备记录第二蓝牙设备的第二蓝牙地址。S203A': If the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device records the second Bluetooth address of the second Bluetooth device.

具体地,本实施例中,若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同,即表明第一蓝牙设备与第二蓝牙设备属于应当配对的一对蓝牙设备,则第一蓝牙设备记录第二蓝牙设备的第二蓝牙地址,使得第一蓝牙设备知悉了第二蓝牙设备的第二蓝牙地址。Specifically, in this embodiment, if the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, it means that the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired. A bluetooth device records the second bluetooth address of the second bluetooth device, so that the first bluetooth device knows the second bluetooth address of the second bluetooth device.

S203A″、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息不同,则返回到步骤S201A,以重新采用广播方式发送第一广播信息。S203A", if the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S201A to send the first broadcast information by using the broadcast mode again.

综上可见,第一蓝牙设备通过广播方式发送第一广播信息,并接收第二蓝牙设备通过广播方式发送的第二广播信息。第一广播信息包括第一蓝牙设备的第一蓝牙地址以及第一蓝牙设备的绑定信息,第二广播信息包括第二蓝牙设备的第二蓝牙地址以及第二蓝牙设备的绑定信息。由此可以使得第一蓝牙设备在确定第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同时,即第一蓝牙设备和第二蓝牙设备属于应当配对的一对蓝牙设备,则第一蓝牙设备记录第二蓝牙设备的第二蓝牙地址。本申请实施例无须第一蓝牙设备和第二蓝牙设备之外的第三方设备的参与,即可快速地实现了蓝牙设备间的地址交换,降低了实现蓝牙设备间地址交换的复杂度。From the above, it can be seen that the first Bluetooth device sends the first broadcast information through broadcasting, and receives the second broadcasting information sent by the second Bluetooth device through broadcasting. The first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device, and the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the first Bluetooth device determines that the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, that is, the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired, then The first Bluetooth device records the second Bluetooth address of the second Bluetooth device. The embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.

图2B为图1中蓝牙设备之间进行地址交换的方法另一流程示意图;如图2B所示,本实施例中,蓝牙设备之间进行地址交换的方法应用于第二蓝牙设备,蓝牙设备之间进行地址交换的方法包括如下步骤:FIG. 2B is another schematic flow chart of the method for exchanging addresses between Bluetooth devices in FIG. 1; as shown in FIG. 2B, in this embodiment, the method for exchanging addresses between Bluetooth devices is applied to a second Bluetooth device. The method for exchanging addresses between the two includes the following steps:

S201B、采用广播方式发送第二广播信息。S201B. Send the second broadcast information in a broadcast manner.

本实施例中,如前所述,第二广播信息包括:第二蓝牙设备的第二蓝牙地址以及第二蓝牙设备的绑定信息。In this embodiment, as described above, the second broadcast information includes: the second Bluetooth address of the second Bluetooth device and the binding information of the second Bluetooth device.

本实施例中,第二蓝牙设备采用广播方式发送第二广播信息,能够网络 中的所有其他设备都可以接收第二广播信息,且第二蓝牙设备不用单独向特定的其他蓝牙设备发送第二广播信息。In this embodiment, the second Bluetooth device sends the second broadcast information in a broadcast manner, so that all other devices in the network can receive the second broadcast information, and the second Bluetooth device does not need to send the second broadcast information to specific other Bluetooth devices alone. information.

S202B、通过扫描的方式接收第一蓝牙设备采用广播方式发送的第一广播信息。S202B. Receive, by scanning, the first broadcast information sent by the first Bluetooth device in a broadcast manner.

本实施例中,如前所述,第一蓝牙设备同样采用广播方式发送第一广播信息,第二蓝牙设备通过扫描的方式接收第一广播信息。如前所述,第一广播信息包括:第一蓝牙设备的第一蓝牙地址以及第一蓝牙设备的绑定信息。In this embodiment, as described above, the first Bluetooth device also sends the first broadcast information in a broadcast manner, and the second Bluetooth device receives the first broadcast information in a scanning manner. As mentioned above, the first broadcast information includes: the first Bluetooth address of the first Bluetooth device and the binding information of the first Bluetooth device.

S203B'、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同,则第二蓝牙设备记录第一蓝牙设备的第一蓝牙地址。S203B': If the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the second Bluetooth device records the first Bluetooth address of the first Bluetooth device.

具体地,本实施例中,若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同,即表明第二蓝牙设备与第一蓝牙设备属于应当配对的一对蓝牙设备,则第二蓝牙设备记录第一蓝牙设备的第一蓝牙地址,使得第二蓝牙设备知悉了第一蓝牙设备的第一蓝牙地址。Specifically, in this embodiment, if the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, it means that the second Bluetooth device and the first Bluetooth device belong to a pair of Bluetooth devices that should be paired. The second Bluetooth device records the first Bluetooth address of the first Bluetooth device, so that the second Bluetooth device knows the first Bluetooth address of the first Bluetooth device.

S203B″、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息不同,则返回到步骤S201B,以重新采用广播方式发送第二广播信息。S203B". If the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S201B to send the second broadcast information in a broadcast manner again.

具体地,上述图2A、图2B所示实施例中,为所述第一蓝牙设备配置一关联设备,所述第一蓝牙设备的绑定信息为所述关联设备的唯一性身份标识;同样,为所述第二蓝牙设备配置一关联设备,所述第二蓝牙设备的绑定信息为所述关联设备的唯一性身份标识;或者,所述第一蓝牙设备的绑定信息为后台服务器发送给所述第一蓝牙设备的配对标识,所述第二蓝牙设备的绑定信息为后台服务器发送给所述第二蓝牙设备的配对标识。Specifically, in the above-mentioned embodiments shown in FIGS. 2A and 2B , an associated device is configured for the first Bluetooth device, and the binding information of the first Bluetooth device is the unique identity of the associated device; similarly, Configure an associated device for the second Bluetooth device, and the binding information of the second Bluetooth device is the unique identity of the associated device; or, the binding information of the first Bluetooth device is sent by the background server to The pairing identifier of the first bluetooth device, and the binding information of the second bluetooth device is the pairing identifier sent by the background server to the second bluetooth device.

进一步地,在上述实施例中,发送第一广播信息之前,还可以从所述关联设备中读取所述唯一性身份标识至所述第一蓝牙设备和所述第二蓝牙设备。Further, in the above embodiment, before sending the first broadcast information, the unique identifier may be read from the associated device to the first Bluetooth device and the second Bluetooth device.

进一步地,上述图2A、图2B所示实施例中,关联设备为配件或者制造机台或者测试机台,该制造机台具体为生产第一蓝牙设备和第二蓝牙设备的设备,即如果第一蓝牙设备和第二蓝牙设备由同一制造机台生产,则将制造机台的唯一性身份标识作为绑定信息;测试机台具体为测试第一蓝牙设备和第二蓝牙设备的设备,即如果第一蓝牙设备和第二蓝牙设备由同一测试机台测试,则将测试机台的唯一性身份标识作为绑定信息。本实施例中,将关联设备的唯一性身份标识作为绑定信息,实现简便,成本低廉。Further, in the above-mentioned embodiment shown in FIG. 2A and FIG. 2B , the associated equipment is an accessory or a manufacturing machine or a testing machine, and the manufacturing machine is specifically a device for producing the first Bluetooth device and the second Bluetooth device, that is, if the first A bluetooth device and a second bluetooth device are produced by the same manufacturing machine, then the unique identification of the manufacturing machine is used as the binding information; the testing machine is specifically a device for testing the first and second bluetooth devices, that is, if If the first Bluetooth device and the second Bluetooth device are tested by the same testing machine, the unique identification of the testing machine is used as the binding information. In this embodiment, the unique identification of the associated device is used as the binding information, which is simple to implement and has low cost.

进一步地,上述图2A、图2B所示实施例中,所述唯一性身份标识、所 述配对标识中至少其一为随机数或者时间,从而更为简单且直接地表征应当属于一对的第一蓝牙设备和第二蓝牙设备。Further, in the above-mentioned embodiments shown in FIG. 2A and FIG. 2B, at least one of the unique identity identifier and the pairing identifier is a random number or time, so as to more simply and directly represent the first item that should belong to a pair. A bluetooth device and a second bluetooth device.

图3为本申请另一实施例蓝牙设备间进行地址交换的应用场景示意图;在本实施例提供的应用场景中,第一蓝牙设备为第一蓝牙耳机,第二蓝牙设备为第二蓝牙耳机,关联设备为充电盒(或者又称之为充电托架),所述充电盒用于为所述第一蓝牙耳机和/或所述第二蓝牙耳机充电。因此,对于应当配对的第一蓝牙耳机和第二蓝牙耳机来说,第一蓝牙耳机的绑定信息和第二蓝牙耳机的绑定信息均为充电盒的唯一性身份标识。为此,在第一蓝牙耳机和第二蓝牙耳机使用的过程中,可从所述充电盒中读取所述唯一性身份标识至所述第一蓝牙设备和所述第二蓝牙设备。读取的方式比如为:所述第一蓝牙设备和所述第二蓝牙设备通过充电盒上的串口或者射频模块从充电盒中读取所述唯一性身份标识,从而在第一蓝牙设备和第二蓝牙设备的使用过程中,通过相同的所述唯一性身份标识,可以判定出第一蓝牙设备和第二蓝牙设备关联于同一充电盒,即表明所述第一蓝牙设备和第二蓝牙设备属于应当配对的一对蓝牙设备,以使得第一蓝牙设备和第二蓝牙设备相互记录对方的蓝牙地址。比如,其中第二蓝牙设备丢失,又配置了新的第二蓝牙设备,新的第二蓝牙设备从充电盒中读取充电盒的唯一性身份标识,从而通过所述唯一性身份标识判定出新的第二蓝牙设备和原第一蓝牙设备关联于同一充电盒,即表明原第一蓝牙设备和新第二蓝牙设备属于一对蓝牙设备,以原第一蓝牙设备和新第二蓝牙设备相互记录对方的蓝牙地址。3 is a schematic diagram of an application scenario of address exchange between Bluetooth devices according to another embodiment of the present application; in the application scenario provided by this embodiment, the first Bluetooth device is a first Bluetooth headset, and the second Bluetooth device is a second Bluetooth headset, The associated device is a charging box (or also called a charging bracket), and the charging box is used for charging the first Bluetooth headset and/or the second Bluetooth headset. Therefore, for the first Bluetooth headset and the second Bluetooth headset that should be paired, the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset are both unique identifiers of the charging box. For this reason, in the process of using the first Bluetooth headset and the second Bluetooth headset, the unique identification can be read from the charging box to the first Bluetooth device and the second Bluetooth device. For example, the reading method is: the first Bluetooth device and the second Bluetooth device read the unique identification from the charging box through the serial port or the radio frequency module on the charging box, so that the first Bluetooth device and the second Bluetooth device can read the unique identifier from the charging box. During the use of the two Bluetooth devices, through the same unique identifier, it can be determined that the first Bluetooth device and the second Bluetooth device are associated with the same charging box, which means that the first Bluetooth device and the second Bluetooth device belong to the same charging box. A pair of Bluetooth devices that should be paired, so that the first Bluetooth device and the second Bluetooth device record each other's Bluetooth addresses. For example, if the second Bluetooth device is lost and a new second Bluetooth device is configured, the new second Bluetooth device reads the unique identification of the charging box from the charging box, so as to determine the new Bluetooth through the unique identification. The second bluetooth device and the original first bluetooth device are associated with the same charging box, which means that the original first bluetooth device and the new second bluetooth device belong to a pair of bluetooth devices, and the original first bluetooth device and the new second bluetooth device are mutually recorded The Bluetooth address of the other party.

当然,在其他实施例中,如前所述,第一蓝牙耳机的绑定信息和第二蓝牙耳机的绑定信息也可以为制造机台或者测试机台的唯一性身份标识,从而可以从所述制造机台或者测试机台中读取所述唯一性身份标识至所述第一蓝牙设备和所述第二蓝牙设备;或者第一蓝牙耳机的绑定信息和第二蓝牙耳机的绑定信息为后台服务器发送给第一蓝牙耳机和第二蓝牙耳机的配对标识。Of course, in other embodiments, as mentioned above, the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset may also be the unique identifiers of the manufacturing machine or the testing machine, so that they can be obtained from all The manufacturing machine or the testing machine reads the unique identification to the first Bluetooth device and the second Bluetooth device; or the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset is The pairing identifier sent by the background server to the first Bluetooth headset and the second Bluetooth headset.

图4A为图3中两个蓝牙耳机之间进行地址交换的方法一流程示意图;如图4A所示,本实施中,应用于第一蓝牙耳机,其包括如下步骤:4A is a schematic flowchart of a method for exchanging addresses between two Bluetooth headsets in FIG. 3 ; as shown in FIG. 4A , in this implementation, applied to the first Bluetooth headset, it includes the following steps:

S401A、采用广播方式发送第一广播信息。S401A. Send the first broadcast information in a broadcast manner.

本实施例中,第一广播信息包括:第一蓝牙耳机的第一蓝牙地址以及第一蓝牙耳机的绑定信息。第一蓝牙耳机的绑定信息可以从充电盒获取并存储在第一蓝牙耳机本地。In this embodiment, the first broadcast information includes: a first Bluetooth address of the first Bluetooth headset and binding information of the first Bluetooth headset. The binding information of the first Bluetooth headset can be acquired from the charging box and stored locally in the first Bluetooth headset.

S402A、通过扫描的方式接收第二蓝牙耳机采用广播方式发送的第二广播信息。S402A. Receive, by scanning, the second broadcast information sent by the second Bluetooth headset in a broadcast manner.

本实施例中,第二广播信息包括:第二蓝牙耳机的第二蓝牙地址以及第二蓝牙耳机的绑定信息。第二蓝牙耳机的绑定信息可以从充电盒获取并存储在第二蓝牙耳机本地。In this embodiment, the second broadcast information includes: a second Bluetooth address of the second Bluetooth headset and binding information of the second Bluetooth headset. The binding information of the second Bluetooth headset can be acquired from the charging box and stored locally in the second Bluetooth headset.

本申请实施例采用充电盒作为关联设备,第一蓝牙耳机发送的第一广播信息和第二蓝牙耳机发送的第二广播信息中分别具有其充电盒的唯一性身份标识。本申请实施例通过其充电盒的唯一性身份标识,地址交换的实现简便,成本低廉。The embodiment of the present application uses the charging box as the associated device, and the first broadcast information sent by the first Bluetooth headset and the second broadcast information sent by the second Bluetooth headset respectively have the unique identification of the charging box. Through the unique identification of the charging box in the embodiment of the present application, the realization of address exchange is simple and the cost is low.

具体地,所述唯一性身份标识可以为随机数或者时间。Specifically, the unique identifier may be a random number or a time.

S403A'、若第一蓝牙耳机的绑定信息与第二蓝牙耳机的绑定信息相同,则第一蓝牙耳机记录第二蓝牙耳机的第二蓝牙地址。S403A': If the binding information of the first Bluetooth headset is the same as the binding information of the second Bluetooth headset, the first Bluetooth headset records the second Bluetooth address of the second Bluetooth headset.

本实施例中,若采用充电盒作为关联设备,对于应当属于同一对蓝牙耳机的第一蓝牙耳机和第二蓝牙耳机来说,第一蓝牙耳机的绑定信息与第二蓝牙耳机的绑定信息均为充电盒的唯一性身份标识。In this embodiment, if the charging box is used as the associated device, for the first Bluetooth headset and the second Bluetooth headset that should belong to the same pair of Bluetooth headsets, the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset Both are the unique identification of the charging box.

S403A″、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息不同,则返回到步骤S401A,以重新采用广播方式发送第一广播信息。S403A". If the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S401A to send the first broadcast information in a broadcast manner again.

本实施例中,若采用制造机台或者测试机台作为关联设备,则第一蓝牙耳机的绑定信息与第二蓝牙耳机的绑定信息均为制造机台或者测试机台的唯一性身份标识,对于应当属于同一对蓝牙耳机的第一蓝牙耳机和第二蓝牙耳机来说,第一蓝牙耳机的绑定信息与第二蓝牙耳机的绑定信息均为制造机台或者测试机台的唯一性身份标识。比如,其中第二蓝牙设备需要维修,在维修的过程中配置新的第一蓝牙设备,新的第一蓝牙设备和维修的第二蓝牙设备从测试机台中读取测试机台的唯一性身份标识,从而在地址交换方案中,通过所述唯一性身份标识判定出新的第一蓝牙设备和维修的第二蓝牙设备关联于同一测试机台,即表明新的第一蓝牙设备和维修的第二蓝牙设备属于一对蓝牙设备,以使得新的第一蓝牙设备和维修的第二蓝牙设备相互记录对方的蓝牙地址,从而实现对第二蓝牙设备的维修。In this embodiment, if a manufacturing machine or a testing machine is used as an associated device, the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset are both the unique identifications of the manufacturing machine or the testing machine , for the first Bluetooth headset and the second Bluetooth headset that should belong to the same pair of Bluetooth headsets, the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset are the uniqueness of the manufacturing machine or the testing machine Identity. For example, where the second Bluetooth device needs to be repaired, a new first Bluetooth device is configured during the maintenance process, and the new first Bluetooth device and the repaired second Bluetooth device read the unique identity of the test machine from the test machine. , so that in the address exchange scheme, it is determined by the unique identification that the new first Bluetooth device and the repaired second Bluetooth device are associated with the same test machine, that is, it indicates that the new first Bluetooth device and the repaired second Bluetooth device are associated with the same test machine. The bluetooth device belongs to a pair of bluetooth devices, so that the new first bluetooth device and the repaired second bluetooth device mutually record each other's bluetooth address, thereby realizing the maintenance of the second bluetooth device.

此外,本申请实施例的应用场景还可以包括电子终端。电子终端比如为智能手机或者平板电脑或者个人计算机等。本申请实施例中属于一对蓝牙耳机的第一蓝牙耳机和第二蓝牙耳机与电子终端进行无线通讯,比如音频数据的通 讯,第一蓝牙耳机和第二蓝牙耳机可以播放电子终端传输过来的音频数据。In addition, the application scenarios of the embodiments of the present application may further include electronic terminals. The electronic terminal is, for example, a smart phone, a tablet computer, or a personal computer. In the embodiment of the present application, the first Bluetooth headset and the second Bluetooth headset belonging to a pair of Bluetooth headsets perform wireless communication with the electronic terminal, such as communication of audio data, and the first Bluetooth headset and the second Bluetooth headset can play the audio transmitted by the electronic terminal. data.

综上可见,第一蓝牙设备通过广播方式发送第一广播信息,并通过扫描的方式接收第二蓝牙设备通过广播方式发送的第二广播信息。第一广播信息包括第一蓝牙设备的第一蓝牙地址以及第一蓝牙设备的绑定信息,第二广播信息包括第二蓝牙设备的第二蓝牙地址以及第二蓝牙设备的绑定信息。由此可以使得第一蓝牙设备在确定第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同时,即第一蓝牙设备和第二蓝牙设备属于应当配对的一对蓝牙设备时,第一蓝牙设备记录第二蓝牙设备的第二蓝牙地址的交换。本申请实施例无须第一蓝牙设备和第二蓝牙设备之外的第三方设备的参与,即可快速地实现了蓝牙设备间的地址交换,降低了实现蓝牙设备间地址交换的复杂度。From the above, it can be seen that the first Bluetooth device sends the first broadcast information by means of broadcasting, and receives the second broadcast information sent by the second Bluetooth device by means of broadcast by means of scanning. The first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device, and the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the first Bluetooth device determines that the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, that is, when the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired, The first Bluetooth device records the exchange of the second Bluetooth address of the second Bluetooth device. The embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.

图4B为图3中两个蓝牙耳机之间进行地址交换的方法另一流程示意图;如图4B所示,本实施中,应用于第二蓝牙耳机,其包括如下步骤:FIG. 4B is another schematic flowchart of the method for exchanging addresses between two Bluetooth headsets in FIG. 3 ; as shown in FIG. 4B , in this implementation, applied to the second Bluetooth headset, it includes the following steps:

S401B、采用广播方式发送第二广播信息。S401B. Send the second broadcast information in a broadcast manner.

本实施例中,如前所述,第二广播信息包括:第二蓝牙耳机的第二蓝牙地址以及第二蓝牙耳机的绑定信息。第二蓝牙耳机的绑定信息可以从充电盒获取并存储在第二蓝牙耳机本地。In this embodiment, as described above, the second broadcast information includes: the second Bluetooth address of the second Bluetooth headset and the binding information of the second Bluetooth headset. The binding information of the second Bluetooth headset can be acquired from the charging box and stored locally in the second Bluetooth headset.

S402B、通过扫描的方式接收第一蓝牙耳机采用广播方式发送的第一广播信息。S402B. Receive, by scanning, the first broadcast information sent by the first Bluetooth headset in a broadcast manner.

本实施例中,如前所述,第一广播信息包括:第一蓝牙耳机的第一蓝牙地址以及第一蓝牙耳机的绑定信息。第一蓝牙耳机的绑定信息可以从充电盒获取并存储在第二蓝牙耳机本地。In this embodiment, as described above, the first broadcast information includes: the first Bluetooth address of the first Bluetooth headset and binding information of the first Bluetooth headset. The binding information of the first Bluetooth headset can be obtained from the charging box and stored locally in the second Bluetooth headset.

本申请实施例采用耳机的充电盒作为关联设备,第一蓝牙耳机发送的第一广播信息和第二蓝牙耳机发送的第二广播信息中分别具有其充电盒的唯一性身份标识。本申请实施例通过其充电盒的唯一性身份标识,地址交换的实现简便,成本低廉。The embodiment of the present application uses the charging box of the earphone as the associated device, and the first broadcast information sent by the first Bluetooth earphone and the second broadcast information sent by the second Bluetooth earphone respectively have the unique identification of the charging box. Through the unique identification of the charging box in the embodiment of the present application, the realization of address exchange is simple and the cost is low.

具体地,所述唯一性身份标识可以为随机数或者时间。Specifically, the unique identifier may be a random number or a time.

S403B'、若第二蓝牙耳机的绑定信息与第一蓝牙耳机的绑定信息相同,则第二蓝牙耳机记录第一蓝牙耳机的第一蓝牙地址。S403B': If the binding information of the second Bluetooth headset is the same as the binding information of the first Bluetooth headset, the second Bluetooth headset records the first Bluetooth address of the first Bluetooth headset.

本实施例中,若采用充电盒作为关联设备,对于应当属于同一对蓝牙耳机的第一蓝牙耳机和第二蓝牙耳机来说,则第一蓝牙耳机的绑定信息与第二蓝牙耳机的绑定信息均为充电盒的唯一性身份标识。In this embodiment, if the charging box is used as the associated device, for the first Bluetooth headset and the second Bluetooth headset that should belong to the same pair of Bluetooth headsets, the binding information of the first Bluetooth headset is bound to the second Bluetooth headset. The information is the unique identification of the charging box.

S403B″、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息不同,则返回到步骤S401B,以重新采用广播方式发送第二广播信息。S403B". If the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S401B to send the second broadcast information in a broadcast manner again.

本实施例中,若采用制造机台或者测试机台作为关联设备,则第一蓝牙耳机的绑定信息与第二蓝牙耳机的绑定信息均为制造机台或者测试机台的唯一性身份标识,对于应当属于同一对蓝牙耳机的第一蓝牙耳机和第二蓝牙耳机来说,第一蓝牙耳机的绑定信息与第二蓝牙耳机的绑定信息相同。In this embodiment, if a manufacturing machine or a testing machine is used as an associated device, the binding information of the first Bluetooth headset and the binding information of the second Bluetooth headset are both the unique identifications of the manufacturing machine or the testing machine , for the first Bluetooth headset and the second Bluetooth headset that should belong to the same pair of Bluetooth headsets, the binding information of the first Bluetooth headset is the same as the binding information of the second Bluetooth headset.

综上可见,第二蓝牙设备通过广播方式发送第二广播信息,并接收第一蓝牙设备通过广播方式发送的第一广播信息。第一广播信息包括第一蓝牙设备的第一蓝牙地址以及第一蓝牙设备的绑定信息,第二广播信息包括第二蓝牙设备的第二蓝牙地址以及第二蓝牙设备的绑定信息。由此可以使得第二蓝牙设备在确定第二蓝牙设备的绑定信息与第一蓝牙设备的绑定信息相同时,即第一蓝牙设备和第二蓝牙设备属于应当配对的一对蓝牙设备时,第二蓝牙设备记录第一蓝牙设备的第一蓝牙地址。本申请实施例无须第一蓝牙设备和第二蓝牙设备之外的第三方设备的参与,即可快速地实现了蓝牙设备间的地址交换,降低了实现蓝牙设备间地址交换的复杂度。From the above, it can be seen that the second Bluetooth device sends the second broadcast information through broadcasting, and receives the first broadcasting information sent by the first Bluetooth device through broadcasting. The first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device, and the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the second Bluetooth device determines that the binding information of the second Bluetooth device is the same as the binding information of the first Bluetooth device, that is, when the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired, The second Bluetooth device records the first Bluetooth address of the first Bluetooth device. The embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.

在本申请再一蓝牙设备之间进行地址交换的方法实施例中,其包括上述任一实施例中步骤。In yet another embodiment of the method for exchanging addresses between Bluetooth devices of the present application, the method includes the steps in any of the foregoing embodiments.

上述将地址交换方法应用于第一蓝牙设备时,为了避免第一蓝牙设备和第二蓝牙设备之间的通信冲突,第一蓝牙设备采用广播方式发送第一广播信息与第一蓝牙设备接收第二蓝牙设备采用广播方式发送的第二广播信息采用预设的固定交叉时序。When the above-mentioned address exchange method is applied to the first bluetooth device, in order to avoid the communication conflict between the first bluetooth device and the second bluetooth device, the first bluetooth device transmits the first broadcast information by broadcasting and the first bluetooth device receives the second bluetooth device. The second broadcast information sent by the Bluetooth device in a broadcast manner adopts a preset fixed cross timing sequence.

具体地,固定交叉时序,包括:在奇数时序周期第一蓝牙设备采用广播方式发送第一广播信息,在偶数时序周期第一蓝牙设备接收第二蓝牙设备采用广播方式发送的第二广播信息。Specifically, fixing the interleaving timing includes: in odd-numbered timing periods, the first Bluetooth device sends the first broadcast information in a broadcast manner, and in the even-numbered timing periods, the first Bluetooth device receives the second broadcast information sent by the second Bluetooth device in a broadcast manner.

图5A为图3中两个蓝牙耳机之间进行地址交换的方法还一流程示意图;如图5A所示,本实施例中,蓝牙设备之间进行地址交换的方法应用于第一蓝牙设备,包括如下步骤:FIG. 5A is another schematic flowchart of the method for exchanging addresses between two Bluetooth headsets in FIG. 3; as shown in FIG. 5A, in this embodiment, the method for exchanging addresses between Bluetooth devices is applied to the first Bluetooth device, including Follow the steps below:

S501A、第一蓝牙设备在奇数时序周期内采用广播方式发送第一广播信息。S501A, the first Bluetooth device sends the first broadcast information in a broadcast manner in an odd timing period.

S502A、第一蓝牙设备在偶数时序周期内接收第二蓝牙设备以广播方式发送的第二广播信息。S502A. The first Bluetooth device receives the second broadcast information sent by the second Bluetooth device in a broadcast manner within an even-numbered timing period.

具体地,参见图6所示的固定交叉时序,在第1、3、5个时序周期第一蓝牙设备以广播方式发送第一广播信息,以及第一蓝牙设备在固定交叉时序的第2、4、6个时序周期接收第二蓝牙设备发送的第二广播信息。因此,本申请实施例避免了第一蓝牙设备与第二蓝牙设备之间通讯的冲突。Specifically, referring to the fixed crossover sequence shown in FIG. 6 , the first Bluetooth device sends the first broadcast information in a broadcast manner in the first, third, and fifth timing cycles, and the first Bluetooth device sends the first broadcast information at the second and fourth time of the fixed crossover sequence. and 6 timing cycles to receive the second broadcast information sent by the second Bluetooth device. Therefore, the embodiment of the present application avoids the communication conflict between the first Bluetooth device and the second Bluetooth device.

S503A'、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同,则第一蓝牙设备记录第二蓝牙设备的第二蓝牙地址。S503A': If the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device records the second Bluetooth address of the second Bluetooth device.

S503A″、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息不同,则返回到步骤S501A,以重新采用广播方式发送第一广播信息。S503A". If the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, return to step S501A to send the first broadcast information in a broadcast manner again.

综上可见,第一蓝牙设备通过广播方式发送第一广播信息,并接收第二蓝牙设备通过广播方式发送的第二广播信息。第一广播信息包括第一蓝牙设备的第一蓝牙地址以及第一蓝牙设备的绑定信息,第二广播信息包括第二蓝牙设备的第二蓝牙地址以及第二蓝牙设备的绑定信息。由此可以使得第一蓝牙设备在确定第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同时,即第一蓝牙设备和第二蓝牙设备属于应当配对的一对蓝牙设备,第一蓝牙设备记录第二蓝牙设备的第二蓝牙地址。本申请实施例无须第一蓝牙设备和第二蓝牙设备之外的第三方设备的参与,即可快速地实现了蓝牙设备间的地址交换,降低了实现蓝牙设备间地址交换的复杂度。From the above, it can be seen that the first Bluetooth device sends the first broadcast information through broadcasting, and receives the second broadcasting information sent by the second Bluetooth device through broadcasting. The first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device, and the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the first Bluetooth device determines that the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, that is, the first Bluetooth device and the second Bluetooth device belong to a pair of Bluetooth devices that should be paired, the A Bluetooth device records the second Bluetooth address of the second Bluetooth device. The embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.

图5B为图3中两个蓝牙耳机之间进行地址交换的方法再一流程示意图;如图5B所示,本实施例中,蓝牙设备之间进行地址交换的方法应用于第二蓝牙设备,包括如下步骤:FIG. 5B is another schematic flowchart of the method for exchanging addresses between two Bluetooth headsets in FIG. 3 ; as shown in FIG. 5B , in this embodiment, the method for exchanging addresses between Bluetooth devices is applied to a second Bluetooth device, including Follow the steps below:

S501B、第二蓝牙设备在偶数时序周期内采用广播方式发送第二广播信息。S501B, the second Bluetooth device sends the second broadcast information in a broadcast manner within an even-numbered timing period.

S502B、第二蓝牙设备在奇数时序周期内接收第一蓝牙设备发送的第一广播信息。S502B, the second Bluetooth device receives the first broadcast information sent by the first Bluetooth device in an odd timing period.

具体地,参见图6所示的固定交叉时序,第二蓝牙设备在第2、4、6个时序周期以广播方式发送第二广播信息,第二蓝牙设备在第1、3、5个时序周期同步接收第一广播信息。因此,本申请实施例避免了第一蓝牙设备与第二蓝牙设备之间通讯的冲突。Specifically, referring to the fixed cross timing sequence shown in FIG. 6 , the second Bluetooth device sends the second broadcast information in a broadcast manner in the second, fourth, and sixth timing cycles, and the second Bluetooth device sends the second broadcast information in the first, third, and fifth timing cycles. Synchronously receive the first broadcast information. Therefore, the embodiment of the present application avoids the communication conflict between the first Bluetooth device and the second Bluetooth device.

S503B'、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息相同,则第二蓝牙设备记录第一蓝牙设备的第一蓝牙地址。S503B': If the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the second Bluetooth device records the first Bluetooth address of the first Bluetooth device.

S503B″、若第一蓝牙设备的绑定信息与第二蓝牙设备的绑定信息不 同,则返回到步骤S501B,以重新采用广播方式发送第二广播信息。S503B", if the binding information of the first Bluetooth device is different from the binding information of the second Bluetooth device, then return to step S501B to send the second broadcast information by using the broadcast mode again.

综上可见,第二蓝牙设备通过广播方式发送第二广播信息,并接收第一蓝牙设备通过广播方式发送的第一广播信息。第一广播信息包括第一蓝牙设备的第一蓝牙地址以及第一蓝牙设备的绑定信息,第二广播信息包括第二蓝牙设备的第二蓝牙地址以及第二蓝牙设备的绑定信息。由此可以使得第二蓝牙设备在确定第二蓝牙设备的绑定信息与第一蓝牙设备的绑定信息相同时,即第二蓝牙设备和第一蓝牙设备属于应当配对的一对蓝牙设备,第二蓝牙设备记录第一蓝牙设备的第一蓝牙地址。本申请实施例无须第一蓝牙设备和第二蓝牙设备之外的第三方设备的参与,即可快速地实现了蓝牙设备间的地址交换,降低了实现蓝牙设备间地址交换的复杂度。From the above, it can be seen that the second Bluetooth device sends the second broadcast information through broadcasting, and receives the first broadcasting information sent by the first Bluetooth device through broadcasting. The first broadcast information includes a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device, and the second broadcast information includes a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device. Therefore, when the second Bluetooth device determines that the binding information of the second Bluetooth device is the same as the binding information of the first Bluetooth device, that is, the second Bluetooth device and the first Bluetooth device belong to a pair of Bluetooth devices that should be paired, the The second Bluetooth device records the first Bluetooth address of the first Bluetooth device. The embodiments of the present application can quickly realize the address exchange between the Bluetooth devices without the participation of third-party devices other than the first Bluetooth device and the second Bluetooth device, and reduce the complexity of realizing the address exchange between the Bluetooth devices.

在本申请的一实施例中,应用于第一蓝牙设备的蓝牙设备之间进行地址交换的方法中,在采用广播方式发送第一广播信息之前还可以包括:接收用户的启动地址交换操作;若接收到所述启动地址交换操作,则触发第一蓝牙设备采用广播方式发送第一广播信息。因此,本申请实施例从而实现通过用户的启动地址交换操作,开始进行第一广播信息的广播式发送。In an embodiment of the present application, in the method for exchanging addresses between Bluetooth devices applied to the first Bluetooth device, before sending the first broadcast information in a broadcast manner, the method may further include: receiving a user's initiating address exchange operation; After receiving the start address exchange operation, the first Bluetooth device is triggered to send the first broadcast information in a broadcast manner. Therefore, in this embodiment of the present application, it is possible to start the broadcast transmission of the first broadcast information through the user's initiating address exchange operation.

具体地,启动地址交换操作为针对关联设备、第一蓝牙设备、所述第二蓝牙设备中至少其一所执行的按压、滑动、点击中至少其一操作。Specifically, the operation of initiating the address exchange is at least one operation of pressing, sliding, and clicking performed on at least one of the associated device, the first Bluetooth device, and the second Bluetooth device.

比如在关联设备(比如充电盒)、第一蓝牙设备、第二蓝牙设备上可设置接受用户按压、滑动、点击中至少其一的结构(如机械按键、触摸按键、或者触摸屏),接收用户的启动地址交换操作。设置所述结构的位置不做特别限定,只要便于用户进行按压、滑动、点击中至少其一操作即可。For example, on the associated device (such as a charging box), the first Bluetooth device, and the second Bluetooth device, a structure that accepts at least one of the user's pressing, sliding, and clicking (such as a mechanical button, a touch button, or a touch screen) can be set to receive the user's Initiate an address swap operation. The position where the structure is set is not particularly limited, as long as it is convenient for the user to perform at least one of pressing, sliding, and clicking.

可替代地,在本申请的另一实施例中,在所述采用广播方式发送第一广播信息之前,也可以包括:向使用所述第一蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起蓝牙连接请求,若所述蓝牙连接请求未被响应,则触发所述第一蓝牙设备采用广播方式发送第一广播信息。此处,所述历史配对蓝牙地址具体是指与所述第一蓝牙设备进行过地址交换的另外一第二蓝牙设备的蓝牙地址。比如,在一应用场景中,原本属于一对蓝牙设备的第一蓝牙设备、第二蓝牙设备中在执行过上述地址交换方案之后,第一蓝牙设备中记录的第二蓝牙设备的第二蓝牙地址,在使用过程,该第二蓝牙设备(又称之为旧第二蓝牙设备)被丢失或者损坏,需要配置一个新的第二蓝牙设备(新第二蓝牙设备)以与未丢失的第一蓝牙设备(旧第一蓝牙设备)重新组成一对蓝牙设备,因此,在旧 第一蓝牙设备和新第二蓝牙设备执行上述地址交换方案之前,旧第一蓝牙设备向使用其记录的旧第二蓝牙设备的第二蓝牙地址的蓝牙端发起蓝牙连接请求,若该蓝牙连接请求未被响应,则表明应用环境中旧第二蓝牙设备不存在,从而触发旧第一蓝牙设备采用广播方式发送第一广播信息。为此,在上述所述第一蓝牙设备记录所述第二蓝牙设备的所述第二蓝牙地址中,所述第一蓝牙设备将其记录的历史配对蓝牙地址更新为所述第二蓝牙设备的所述第二蓝牙地址(即新第二蓝牙设备的第二蓝牙地址),本实施例中,蓝牙设备也可以称之为蓝牙端。Alternatively, in another embodiment of the present application, before the sending the first broadcast information in a broadcast manner, it may also include: initiating a bluetooth to the bluetooth end using the historical pairing bluetooth address recorded by the first bluetooth device. A connection request, if the Bluetooth connection request is not responded, triggering the first Bluetooth device to send the first broadcast information in a broadcast manner. Here, the historical pairing Bluetooth address specifically refers to the Bluetooth address of another second Bluetooth device that has performed address exchange with the first Bluetooth device. For example, in an application scenario, the first Bluetooth device and the second Bluetooth device originally belonging to a pair of Bluetooth devices perform the above-mentioned address exchange scheme, the second Bluetooth address of the second Bluetooth device recorded in the first Bluetooth device , in the process of use, the second Bluetooth device (also called the old second Bluetooth device) is lost or damaged, and a new second Bluetooth device (new second Bluetooth device) needs to be configured to be compatible with the first Bluetooth device that was not lost. The device (the old first bluetooth device) re-forms a pair of bluetooth devices, so before the old first bluetooth device and the new second bluetooth device perform the above address exchange scheme, the old first bluetooth device to the old second bluetooth using its record The bluetooth end of the second bluetooth address of the device initiates a bluetooth connection request, if the bluetooth connection request is not responded, it indicates that the old second bluetooth device does not exist in the application environment, thereby triggering the old first bluetooth device to send the first broadcast by broadcasting information. To this end, in the above-mentioned first Bluetooth device recording the second Bluetooth address of the second Bluetooth device, the first Bluetooth device updates its recorded historical pairing Bluetooth address to the second Bluetooth device's address. The second Bluetooth address (ie, the second Bluetooth address of the new second Bluetooth device), in this embodiment, the Bluetooth device may also be referred to as a Bluetooth terminal.

可替代地,在本申请的再一实施例中,所述采用广播方式发送第一广播信息之前,还包括:若接收到用户的启动地址交换操作,且向使用所述第一蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起的蓝牙连接请求未被响应,则触发所述第一蓝牙设备采用广播方式发送第一广播信息。由此可见,只有同时满足接收到用户的启动地址交换操作以及蓝牙连接请求未被响应才会触发所述第一蓝牙设备采用广播方式发送第一广播信息。比如,在一应用场景中,原本属于一对蓝牙设备的第一蓝牙设备、第二蓝牙设备中已经执行过上述地址交换方案之后,第一蓝牙设备中记录的第二蓝牙设备的第二蓝牙地址,如果由于用户误操作发生了启动地址操作,则通过向使用第一蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起的蓝牙连接请求,如果该蓝牙连接请求被响应,则表明与第一蓝牙设备已完成地址交换的第二蓝牙设备依然有效。否则,表明与第一蓝牙设备已完成地址交换的第二蓝牙设备不存在或者无效,此时,则触发所述第一蓝牙设备采用广播方式发送第一广播信息,以与另外一新的第二蓝牙设备交换地址。Alternatively, in yet another embodiment of the present application, before the sending of the first broadcast information in a broadcast manner, the method further includes: if an initiating address exchange operation from the user is received, and sending a message to a device recorded using the first Bluetooth device. If the bluetooth connection request initiated by the bluetooth end of the historical paired bluetooth address is not responded, the first bluetooth device is triggered to send the first broadcast information in a broadcast manner. It can be seen from this that the first Bluetooth device is triggered to send the first broadcast information in a broadcast manner only when the user's initiation address exchange operation is received and the Bluetooth connection request is not responded at the same time. For example, in an application scenario, after the above-mentioned address exchange scheme has been executed in the first Bluetooth device and the second Bluetooth device originally belonging to a pair of Bluetooth devices, the second Bluetooth address of the second Bluetooth device recorded in the first Bluetooth device , if the start address operation occurs due to the user's misoperation, then through the Bluetooth connection request initiated by the Bluetooth end using the historical pairing Bluetooth address recorded by the first Bluetooth device, if the Bluetooth connection request is responded, it indicates that the first Bluetooth device The second Bluetooth device that has completed the address exchange is still valid. Otherwise, it indicates that the second bluetooth device that has completed the address exchange with the first bluetooth device does not exist or is invalid. At this time, the first bluetooth device is triggered to send the first broadcast information by broadcasting to communicate with another new second bluetooth device. Bluetooth devices exchange addresses.

类似地,在本申请的一实施例中,应用于第二蓝牙设备的蓝牙设备之间进行地址交换的方法中,在采用广播方式发送第二广播信息之前还可以包括:接收用户的启动地址交换操作;若接收到所述启动地址交换操作,则触发第二蓝牙设备采用广播方式发送第二广播信息。因此,本申请实施例从而实现通过用户的启动地址交换操作,开始进行第二广播信息的广播式发送。Similarly, in an embodiment of the present application, in the method for exchanging addresses between Bluetooth devices applied to a second Bluetooth device, before sending the second broadcast information in a broadcast manner, the method may further include: receiving a user's initiating address exchange operation; if the start address exchange operation is received, the second Bluetooth device is triggered to send the second broadcast information in a broadcast manner. Therefore, in this embodiment of the present application, it is possible to start the broadcast transmission of the second broadcast information through the user's initiating address exchange operation.

具体地,启动地址交换操作为针对关联设备、第一蓝牙设备、所述第二蓝牙设备中至少其一所执行的按压、滑动、点击中至少其一操作。Specifically, the operation of initiating the address exchange is at least one operation of pressing, sliding, and clicking performed on at least one of the associated device, the first Bluetooth device, and the second Bluetooth device.

比如在关联设备(比如充电盒)、第一蓝牙设备、第二蓝牙设备上可设置接受用户按压、滑动、点击中至少其一的结构(如机械按键、触摸按键、 或者触摸屏),接收用户的启动地址交换操作。设置所述结构的位置不做特别限定,只要便于用户进行按压、滑动、点击中至少其一操作即可。For example, on the associated device (such as a charging box), the first Bluetooth device, and the second Bluetooth device, a structure (such as a mechanical button, a touch button, or a touch screen) that accepts at least one of the user's pressing, sliding, and clicking can be set to receive the user's Initiate an address swap operation. The position where the structure is set is not particularly limited, as long as it is convenient for the user to perform at least one of pressing, sliding, and clicking.

可替代地,在本申请的另一实施例中,在所述采用广播方式发送第二广播信息之前,也可以包括:向使用所述第二蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起蓝牙连接请求,若所述蓝牙连接请求未被响应,则触发所述第二蓝牙设备采用广播方式发送第二广播信息。此处,所述历史配对蓝牙地址具体是指与所述第一蓝牙设备进行过地址交换的另外一第二蓝牙设备的蓝牙地址。比如,在一应用场景中,原本属于一对蓝牙设备的第一蓝牙设备、第二蓝牙设备中在执行过上述地址交换方案之后,第二蓝牙设备中记录的第一蓝牙设备的第一蓝牙地址,在使用过程,该第一蓝牙设备(又称之为旧第二蓝牙设备)被丢失或者损坏,需要配置一个新的第一蓝牙设备(新第一蓝牙设备)以与未丢失的第二蓝牙设备(旧第二蓝牙设备)重新组成一对蓝牙设备,因此,在旧第二蓝牙设备和新第一蓝牙设备执行上述地址交换方案之前,旧第二蓝牙设备向使用其记录的旧第一蓝牙设备的第一蓝牙地址发起蓝牙连接请求,若该蓝牙连接请求未被响应,则表明应用环境中旧第一蓝牙设备不存在,从而触发旧第二蓝牙设备采用广播方式发送第二广播信息。为此,在上述所述第二蓝牙设备记录所述第一蓝牙设备的所述第一蓝牙地址中,所述第二蓝牙设备将其记录的历史配对蓝牙地址更新为所述第一蓝牙设备的所述第一蓝牙地址(即新第一蓝牙设备的第一蓝牙地址)。Alternatively, in another embodiment of the present application, before the sending of the second broadcast information in a broadcast manner may also include: initiating a bluetooth to the bluetooth end using the historical pairing bluetooth address recorded by the second bluetooth device. A connection request, if the Bluetooth connection request is not responded, triggering the second Bluetooth device to send the second broadcast information in a broadcast manner. Here, the historical pairing Bluetooth address specifically refers to the Bluetooth address of another second Bluetooth device that has performed address exchange with the first Bluetooth device. For example, in an application scenario, the first Bluetooth address of the first Bluetooth device recorded in the second Bluetooth device is the first Bluetooth address of the first Bluetooth device recorded in the second Bluetooth device after the address exchange scheme is executed in the first Bluetooth device and the second Bluetooth device originally belonging to a pair of Bluetooth devices. , during use, the first Bluetooth device (also called the old second Bluetooth device) is lost or damaged, and a new first Bluetooth device (new first Bluetooth device) needs to be configured to be compatible with the second Bluetooth device that is not lost. The device (the old second bluetooth device) re-forms a pair of bluetooth devices, so before the old second bluetooth device and the new first bluetooth device perform the above address exchange scheme, the old second bluetooth device to the old first bluetooth using its record The first bluetooth address of the device initiates a bluetooth connection request, if the bluetooth connection request is not responded, it indicates that the old first bluetooth device does not exist in the application environment, thereby triggering the old second bluetooth device to send the second broadcast information by broadcasting. To this end, in the above-mentioned second Bluetooth device recording the first Bluetooth address of the first Bluetooth device, the second Bluetooth device updates the historical pairing Bluetooth address recorded by the second Bluetooth device to the address of the first Bluetooth device. The first Bluetooth address (ie, the first Bluetooth address of the new first Bluetooth device).

可替代地,在本申请的再一实施例中,所述采用广播方式发送第二广播信息之前,还包括:若接收到用户的启动地址交换操作,且向使用所述第二蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起的蓝牙连接请求未被响应,则触发所述第二蓝牙设备采用广播方式发送第二广播信息。由此可见,只有同时满足接收到用户的启动地址交换操作以及蓝牙连接请求未被响应才会触发所述第二蓝牙设备采用广播方式发送第二广播信息。比如,在一应用场景中,原本属于一对蓝牙设备的第一蓝牙设备、第二蓝牙设备中已经执行过上述地址交换方案之后,第二蓝牙设备中记录的第一蓝牙设备的第一蓝牙地址,如果由于用户误操作发生了启动地址操作,则通过向使用第二蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起蓝牙连接请求,如果该蓝牙连接请求被响应,则表明与第二蓝牙设备已完成地址交换的第一蓝牙设备依然有效。否则,表明与第二蓝牙设备已完成地址交换的第一蓝牙设备不存在或者无效,此时,则触发所述第二 蓝牙设备采用广播方式发送第二广播信息,以与另外一新的第一蓝牙设备交换地址。Alternatively, in yet another embodiment of the present application, before the sending of the second broadcast information in a broadcast manner, the method further includes: if an initiating address exchange operation from the user is received, and sending the information to the data recorded by the second Bluetooth device. If the bluetooth connection request initiated by the bluetooth end of the historical paired bluetooth address is not responded, the second bluetooth device is triggered to send the second broadcast information in a broadcast manner. It can be seen from this that the second Bluetooth device is triggered to send the second broadcast information in a broadcast manner only when the user's initiation address exchange operation is received and the bluetooth connection request is not responded at the same time. For example, in an application scenario, after the above-mentioned address exchange scheme has been executed in the first Bluetooth device and the second Bluetooth device that originally belonged to a pair of Bluetooth devices, the first Bluetooth address of the first Bluetooth device recorded in the second Bluetooth device , if a start address operation occurs due to user misoperation, a Bluetooth connection request is initiated to the Bluetooth end using the historical paired Bluetooth address recorded by the second Bluetooth device, and if the Bluetooth connection request is responded, it indicates that the second Bluetooth device has The first Bluetooth device that completes the address exchange is still valid. Otherwise, it indicates that the first bluetooth device that has completed the address exchange with the second bluetooth device does not exist or is invalid. At this time, the second bluetooth device is triggered to send the second broadcast information by broadcasting, so as to communicate with another new first bluetooth device. Bluetooth devices exchange addresses.

在本申请再一蓝牙设备之间进行地址交换的方法实施例中,其包括上述任一实施例中步骤。In yet another embodiment of the method for exchanging addresses between Bluetooth devices of the present application, the method includes the steps in any of the foregoing embodiments.

除了通过上述第一硬件接口、第二硬件接口的方式,可替代地,也可以在充电盒上设置同一硬件接口,与此同时,充电盒与第一蓝牙耳机和/或第二蓝牙耳机形成有线连接(比如在第一蓝牙耳机和/或第二蓝牙耳机容纳在充电盒中进行有线或者无线充电时),从而通过该充电盒上设置的同一硬件接口从外部设备中读取第一蓝牙耳机的绑定信息再通过有线连接传输至第一蓝牙耳机,和/或从读取第二蓝牙耳机的绑定信息再通过有线连接传输至第二蓝牙耳机。In addition to the above-mentioned first hardware interface and second hardware interface, alternatively, the same hardware interface can also be set on the charging box. At the same time, the charging box forms a wired connection with the first Bluetooth headset and/or the second Bluetooth headset. Connection (for example, when the first Bluetooth headset and/or the second Bluetooth headset are accommodated in the charging box for wired or wireless charging), so that the first Bluetooth headset is read from the external device through the same hardware interface set on the charging box. The binding information is then transmitted to the first Bluetooth headset through the wired connection, and/or the binding information of the second Bluetooth headset is read and then transmitted to the second Bluetooth headset through the wired connection.

综上,通过灵活配置第一蓝牙设备的绑定信息和第二蓝牙设备的绑定信息,可以实现第一蓝牙设备和第二蓝牙设备的动态搭配。In conclusion, by flexibly configuring the binding information of the first Bluetooth device and the binding information of the second Bluetooth device, the dynamic collocation of the first Bluetooth device and the second Bluetooth device can be realized.

由于本申请实施例提供的地址交换的方法是直接在第一蓝牙设备和第二蓝牙设备之间实施,因此,可以使得动态搭配的蓝牙设备之间快速地进行地址交换,无须两个蓝牙设备在出厂时就知道对方的蓝牙地址。Since the address exchange method provided in the embodiment of the present application is directly implemented between the first Bluetooth device and the second Bluetooth device, it is possible to quickly exchange addresses between the dynamically matched Bluetooth devices without requiring two Bluetooth devices to The Bluetooth address of the other party is known when it leaves the factory.

上述从充电盒、制造机台或者测试机台读取第一蓝牙设备的绑定信息和第二蓝牙设备的绑定信息可以通过用户操作安装在电子终端上的应用程序(APP)来实现。The above reading of the binding information of the first Bluetooth device and the binding information of the second Bluetooth device from the charging box, the manufacturing machine or the testing machine can be implemented by a user operating an application program (APP) installed on the electronic terminal.

进一步地,在本申请的一实施例中,第一蓝牙设备的绑定信息和第二蓝牙设备的绑定信息可以存储在为电子终端或者微处理器的闪存或者一次性可编程(One Time Programable,简称OTP)存储设备中。Further, in an embodiment of the present application, the binding information of the first Bluetooth device and the binding information of the second Bluetooth device may be stored in a flash memory or a one-time programmable (One Time Programmable) electronic terminal or a microprocessor. , referred to as OTP) storage device.

本申请实施例还提供了一种蓝牙耳机,所述蓝牙耳机采用广播方式发送第一广播信息,所述第一广播信息包括:所述蓝牙耳机的第一蓝牙地址以及所述蓝牙耳机的绑定信息;以及通过扫描的方式接收对端蓝牙耳机采用广播方式发送的第二广播信息,所述第二广播信息包括:所述对端蓝牙耳机的第二蓝牙地址以及所述对端蓝牙耳机的绑定信息;若所述蓝牙耳机的绑定信息与所述对端蓝牙耳机的绑定信息相同,则所述蓝牙耳机记录所述对端蓝牙耳机的所述第二蓝牙地址。该蓝牙耳机比如为上述实施例中的第一蓝牙耳机。An embodiment of the present application further provides a Bluetooth headset, the Bluetooth headset sends first broadcast information in a broadcast manner, and the first broadcast information includes: the first Bluetooth address of the Bluetooth headset and the binding of the Bluetooth headset and receiving the second broadcast information sent by the opposite-end Bluetooth headset in a broadcast manner by scanning, the second broadcast information includes: the second Bluetooth address of the opposite-end Bluetooth headset and the binding of the opposite-end Bluetooth headset If the binding information of the Bluetooth headset is the same as the binding information of the opposite-end Bluetooth headset, the Bluetooth headset records the second Bluetooth address of the opposite-end Bluetooth headset. The Bluetooth headset is, for example, the first Bluetooth headset in the above embodiment.

本申请实施例还提供了一种蓝牙耳机,所述蓝牙耳机采用广播方式发送第二广播信息,所述第二广播信息包括:所述蓝牙耳机的第二蓝牙地址以及所述蓝牙耳机的绑定信息;以及通过扫描的方式接收对端蓝牙耳机采用广播方 式发送的第一广播信息,所述第一广播信息包括:所述对端蓝牙耳机的第一蓝牙地址以及所述对端蓝牙耳机的绑定信息;若所述对端蓝牙耳机的绑定信息与所述蓝牙耳机的绑定信息相同,则所述蓝牙耳机记录所述对端蓝牙耳机的所述第一蓝牙地址。该蓝牙耳机比如为上述实施例中的第二蓝牙耳机。The embodiment of the present application further provides a Bluetooth headset, the Bluetooth headset sends second broadcast information in a broadcast manner, and the second broadcast information includes: the second Bluetooth address of the Bluetooth headset and the binding of the Bluetooth headset and receiving the first broadcast information sent by the opposite-end Bluetooth headset in a broadcast manner by scanning, the first broadcast information includes: the first Bluetooth address of the opposite-end Bluetooth headset and the binding of the opposite-end Bluetooth headset If the binding information of the Bluetooth headset of the opposite end is the same as the binding information of the Bluetooth headset, the Bluetooth headset records the first Bluetooth address of the Bluetooth headset of the opposite end. The Bluetooth headset is, for example, the second Bluetooth headset in the above embodiment.

至此,已经对本主题的特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作可以按照不同的顺序来运行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序,以实现期望的结果。在某些实施方式中,多任务处理和并行处理可以是有利的。So far, specific embodiments of the present subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In certain embodiments, multitasking and parallel processing may be advantageous.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个…”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture or apparatus that includes the element.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他一实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the difference from the other embodiment. In particular, as for the system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the partial descriptions of the method embodiments.

以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims (27)

一种蓝牙设备间进行地址交换的方法,应用于第一蓝牙设备,其特征在于,所述方法包括:A method for exchanging addresses between bluetooth devices, applied to a first bluetooth device, characterized in that the method comprises: 采用广播方式发送第一广播信息,所述第一广播信息包括:所述第一蓝牙设备的第一蓝牙地址以及所述第一蓝牙设备的绑定信息;The first broadcast information is sent in a broadcast manner, and the first broadcast information includes: the first Bluetooth address of the first Bluetooth device and the binding information of the first Bluetooth device; 通过扫描的方式接收第二蓝牙设备采用广播方式发送的第二广播信息,所述第二广播信息包括:所述第二蓝牙设备的第二蓝牙地址以及所述第二蓝牙设备的绑定信息;Receive second broadcast information sent by a second Bluetooth device in a broadcast manner by scanning, where the second broadcast information includes: a second Bluetooth address of the second Bluetooth device and binding information of the second Bluetooth device; 若所述第一蓝牙设备的绑定信息与所述第二蓝牙设备的绑定信息相同,则所述第一蓝牙设备记录所述第二蓝牙设备的所述第二蓝牙地址。If the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device records the second Bluetooth address of the second Bluetooth device. 根据权利要求1所述的方法,其特征在于,为所述第一蓝牙设备配置一关联设备,所述第一蓝牙设备的绑定信息为所述关联设备的唯一性身份标识;为所述第二蓝牙设备配置一关联设备,所述第二蓝牙设备的绑定信息为所述关联设备的唯一性身份标识;或者,所述第一蓝牙设备的绑定信息为后台服务器发送给所述第一蓝牙设备的配对标识,所述第二蓝牙设备的绑定信息为后台服务器发送给所述第二蓝牙设备的配对标识。The method according to claim 1, wherein an associated device is configured for the first Bluetooth device, and the binding information of the first Bluetooth device is a unique identification of the associated device; Two Bluetooth devices are configured with an associated device, and the binding information of the second Bluetooth device is the unique identifier of the associated device; or, the binding information of the first Bluetooth device is sent by the background server to the first Bluetooth device. The pairing identifier of the bluetooth device, and the binding information of the second bluetooth device is the pairing identifier sent by the background server to the second bluetooth device. 根据权利要求2所述的方法,其特征在于,所述第一蓝牙设备为第一蓝牙耳机,所述第二蓝牙设备为第二蓝牙耳机,所述关联设备为充电盒,所述充电盒用于为所述第一蓝牙耳机和/或所述第二蓝牙耳机充电。The method according to claim 2, wherein the first Bluetooth device is a first Bluetooth headset, the second Bluetooth device is a second Bluetooth headset, the associated device is a charging box, and the charging box uses for charging the first Bluetooth headset and/or the second Bluetooth headset. 根据权利要求2-3任一项所述的方法,其特征在于,所述唯一性身份标识、所述配对标识中至少其一为随机数或者时间。The method according to any one of claims 2-3, wherein at least one of the unique identity identifier and the pairing identifier is a random number or a time. 根据权利要求2-4任一项所述的方法,其特征在于,所述关联设备为配件或者制造机台或者测试机台;所述方法还包括:从所述关联设备中读取所述唯一性身份标识至所述第一蓝牙设备和所述第二蓝牙设备。The method according to any one of claims 2-4, wherein the associated device is an accessory or a manufacturing machine or a testing machine; the method further comprises: reading the unique device from the associated device gender identity to the first Bluetooth device and the second Bluetooth device. 根据权利要求2-5任一项所述的方法,其特征在于,所述采用广播方式发送第一广播信息,之前还包括:接收用户的启动地址交换操作;若接收到所述启动地址交换操作,则触发所述第一蓝牙设备采用广播方式发送第一广播信息。The method according to any one of claims 2-5, wherein before the sending the first broadcast information in a broadcast manner, the method further comprises: receiving an initiating address exchange operation of a user; if the initiating address exchanging operation is received , the first Bluetooth device is triggered to send the first broadcast information in a broadcast manner. 根据权利要求6所述的方法,其特征在于,所述启动地址交换操作为针对所述关联设备、所述第一蓝牙设备、所述第二蓝牙设备中至少其一所执行的按压、滑动、点击中至少其一操作。The method according to claim 6, wherein the starting address exchange operation is a pressing, sliding, Click at least one of the actions. 根据权利要求1-5任一项所述的方法,其特征在于,所述采用广播方 式发送第一广播信息之前,还包括:向使用所述第一蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起蓝牙连接请求,若所述蓝牙连接请求未被响应,则触发所述第一蓝牙设备采用广播方式发送第一广播信息。The method according to any one of claims 1-5, wherein before the sending the first broadcast information in a broadcast manner, the method further comprises: sending a message to a bluetooth terminal that uses the historical paired bluetooth address recorded by the first bluetooth device A bluetooth connection request is initiated, and if the bluetooth connection request is not responded, the first bluetooth device is triggered to send the first broadcast information in a broadcast manner. 根据权利要求1-5任一项所述的方法,其特征在于,所述采用广播方式发送第一广播信息之前,还包括:若接收到用户的启动地址交换操作,且向使用所述第一蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起的蓝牙连接请求未被响应,则触发所述第一蓝牙设备采用广播方式发送第一广播信息。The method according to any one of claims 1-5, wherein before the sending the first broadcast information in a broadcast manner, the method further comprises: if an initiating address exchange operation from a user is received, sending a message to the user using the first broadcast information. If the bluetooth connection request initiated by the bluetooth end of the historical paired bluetooth address recorded by the bluetooth device is not responded, the first bluetooth device is triggered to send the first broadcast information in a broadcast manner. 根据权利要求1-9任一项所述的方法,其特征在于,所述采用广播方式发送第一广播信息与所述接收第二蓝牙设备采用广播方式发送的第二广播信息采用预设的固定交叉时序。The method according to any one of claims 1 to 9, wherein the sending of the first broadcast information in a broadcast manner and the reception of the second broadcast information sent by the second Bluetooth device in a broadcast manner use a preset fixed crossover timing. 根据权利要求10所述的方法,其特征在于,所述固定交叉时序包括:在奇数时序周期内采用广播方式发送第一广播信息,在偶数时序周期内接收第二蓝牙设备采用广播方式发送的第二广播信息。The method according to claim 10, wherein the fixing the interleaving timing comprises: sending the first broadcast information by broadcasting in an odd timing period, and receiving the first broadcast information sent by the second Bluetooth device in a broadcasting manner within an even timing period 2. Broadcast information. 根据权利要求1-11任一项所述的方法,其特征在于,所述第一蓝牙设备记录所述第二蓝牙设备的所述第二蓝牙地址,包括:所述第一蓝牙设备将其记录的历史配对蓝牙地址更新为所述第二蓝牙设备的所述第二蓝牙地址。The method according to any one of claims 1-11, wherein the recording, by the first Bluetooth device, the second Bluetooth address of the second Bluetooth device comprises: the first Bluetooth device recording the second Bluetooth address The historical paired Bluetooth address of the second Bluetooth device is updated to the second Bluetooth address of the second Bluetooth device. 一种蓝牙设备间进行地址交换的方法,应用于第二蓝牙设备,其特征在于,所述方法包括:A method for exchanging addresses between Bluetooth devices, applied to a second Bluetooth device, characterized in that the method includes: 采用广播方式发送第二广播信息,所述第二广播信息包括:所述第二蓝牙设备的第二蓝牙地址以及所述第二蓝牙设备的绑定信息;The second broadcast information is sent in a broadcast manner, and the second broadcast information includes: the second Bluetooth address of the second Bluetooth device and the binding information of the second Bluetooth device; 通过扫描的方式接收第一蓝牙设备采用广播方式发送的第一广播信息,所述第一广播信息包括:所述第一蓝牙设备的第一蓝牙地址以及所述第一蓝牙设备的绑定信息;Receive first broadcast information sent by a first Bluetooth device in a broadcast manner by scanning, where the first broadcast information includes: a first Bluetooth address of the first Bluetooth device and binding information of the first Bluetooth device; 若所述第一蓝牙设备的绑定信息与所述第二蓝牙设备的绑定信息相同,则所述第二蓝牙设备记录所述第一蓝牙设备的所述第一蓝牙地址。If the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the second Bluetooth device records the first Bluetooth address of the first Bluetooth device. 根据权利要求13所述的方法,其特征在于,为所述第一蓝牙设备配置一关联设备,所述第一蓝牙设备的绑定信息为所述关联设备的唯一性身份标识,为所述第二蓝牙设备配置一关联设备,所述第二蓝牙设备的绑定信息为所述关联设备的唯一性身份标识;或者,所述第一蓝牙设备的绑定信息为后台服务器发送给所述第一蓝牙设备的配对标识,所述第二蓝牙设备的绑定信息为后台服务器发送给所述第二蓝牙设备的配对标识。The method according to claim 13, wherein an associated device is configured for the first Bluetooth device, and the binding information of the first Bluetooth device is a unique identifier of the associated device, which is the first Bluetooth device. Two Bluetooth devices are configured with an associated device, and the binding information of the second Bluetooth device is the unique identifier of the associated device; or, the binding information of the first Bluetooth device is sent by the background server to the first Bluetooth device. The pairing identifier of the bluetooth device, and the binding information of the second bluetooth device is the pairing identifier sent by the background server to the second bluetooth device. 根据权利要求14所述的方法,其特征在于,所述第一蓝牙设备第一蓝牙耳机,所述第二蓝牙设备为第二蓝牙耳机,所述关联设备为充电盒,所述充电盒用于为所述第一蓝牙耳机和所述第二蓝牙耳机充电。The method according to claim 14, wherein the first Bluetooth device is a first Bluetooth headset, the second Bluetooth device is a second Bluetooth headset, the associated device is a charging box, and the charging box is used for Charge the first Bluetooth headset and the second Bluetooth headset. 根据权利要求14-15任一项所述的方法,其特征在于,所述唯一性身份标识、所述配对标识中至少其一为随机数或者时间。The method according to any one of claims 14-15, wherein at least one of the unique identity identifier and the pairing identifier is a random number or a time. 根据权利要求14-16任一项所述的方法,其特征在于,所述关联设备为配件或者制造机台或者测试机台;所述方法还包括:从所述关联设备中读取所述唯一性身份标识至所述第一蓝牙设备和所述第二蓝牙设备。The method according to any one of claims 14-16, wherein the associated device is an accessory or a manufacturing machine or a testing machine; the method further comprises: reading the unique device from the associated device gender identity to the first Bluetooth device and the second Bluetooth device. 根据权利要求14-17任一项所述的方法,其特征在于,所述采用广播方式发送第二广播信息,之前还包括:接收用户的启动地址交换操作;若接收到所述启动地址交换操作,则触发所述第二蓝牙设备采用广播方式发送第二广播信息。The method according to any one of claims 14-17, wherein before the sending the second broadcast information in a broadcast manner, the method further comprises: receiving an initiating address exchange operation of a user; if the initiating address exchanging operation is received , the second Bluetooth device is triggered to send the second broadcast information in a broadcast manner. 根据权利要求18所述的方法,其特征在于,所述启动地址交换操作为针对所述关联设备、所述第一蓝牙设备、所述第二蓝牙设备中至少其一所执行的按压、滑动、点击中至少其一操作。The method according to claim 18, wherein the initiating address exchange operation is a pressing, sliding, Click at least one of the actions. 根据权利要求13-17任一项所述的方法,其特征在于,所述采用广播方式发送第二广播信息之前,还包括:向使用所述第二蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起蓝牙连接请求,若所述蓝牙连接请求未被响应,则触发所述第二蓝牙设备采用广播方式发送第二广播信息。The method according to any one of claims 13-17, wherein before the sending the second broadcast information in a broadcast manner, the method further comprises: sending a message to a Bluetooth terminal that uses the historical paired Bluetooth address recorded by the second Bluetooth device A bluetooth connection request is initiated, and if the bluetooth connection request is not responded, the second bluetooth device is triggered to send the second broadcast information in a broadcast manner. 根据权利要求13-17任一项所述的方法,其特征在于,所述采用广播方式发送第二广播信息之前,还包括:若接收到用户的启动地址交换操作,且向使用所述第二蓝牙设备记录的历史配对蓝牙地址的蓝牙端发起的蓝牙连接请求未被响应,则触发所述第二蓝牙设备采用广播方式发送第二广播信息。The method according to any one of claims 13-17, wherein before the sending the second broadcast information in a broadcast manner, the method further comprises: if an initiating address exchange operation from a user is received, sending a request to use the second broadcast information. If the bluetooth connection request initiated by the bluetooth end of the historical paired bluetooth address recorded by the bluetooth device is not responded, the second bluetooth device is triggered to send the second broadcast information by broadcasting. 根据权利要求13-21任一项所述的方法,其特征在于,所述采用广播方式发送第二广播信息与所述接收第一蓝牙设备采用广播方式发送的第一广播信息采用预设的固定交叉时序。The method according to any one of claims 13-21, wherein the sending of the second broadcast information in a broadcast manner and the reception of the first broadcast information sent by the first Bluetooth device in a broadcast manner use a preset fixed crossover timing. 根据权利要求22所述的方法,其特征在于,所述固定交叉时序包括:在偶数时序周期内采用广播方式发送第二广播信息,在奇数时序周期内接收第一蓝牙设备采用广播方式发送的第一广播信息。The method according to claim 22, wherein the fixing the interleaving timing comprises: sending the second broadcast information in an even-numbered timing period by using a broadcast method, and receiving the first broadcast information sent by the first Bluetooth device in a broadcast method in an odd-numbered timing period. a broadcast message. 根据权利要求13-23任一项所述的方法,其特征在于,所述第二蓝牙设备记录所述第一蓝牙设备的所述第一蓝牙地址,包括:所述第二蓝牙设备将 其记录的历史配对蓝牙地址更新为所述第一蓝牙设备的所述第一蓝牙地址。The method according to any one of claims 13-23, wherein the recording of the first Bluetooth address of the first Bluetooth device by the second Bluetooth device comprises: the second Bluetooth device recording the first Bluetooth address The historical pairing Bluetooth address of the first Bluetooth device is updated to the first Bluetooth address of the first Bluetooth device. 一种通信系统,其特征在于,包括:第一蓝牙设备和第二蓝牙设备,所述第一蓝牙设备采用广播方式发送第一广播信息,所述第一广播信息包括:所述第一蓝牙设备的第一蓝牙地址以及所述第一蓝牙设备的绑定信息;所述第二蓝牙设备采用广播方式发送第二广播信息,所述第二广播信息包括:所述第二蓝牙设备的第二蓝牙地址以及所述第二蓝牙设备的绑定信息;所述第一蓝牙设备通过扫描方式接收第二蓝牙设备采用广播方式发送的第二广播信息;所述第二蓝牙设备通过扫描的方式接收第一蓝牙设备采用广播方式发送的第一广播信息;若所述第一蓝牙设备的绑定信息与所述第二蓝牙设备的绑定信息相同,则所述第一蓝牙设备记录所述第二蓝牙设备的所述第二蓝牙地址,以及所述第二蓝牙设备记录所述第一蓝牙设备的所述第一蓝牙地址。A communication system, comprising: a first Bluetooth device and a second Bluetooth device, the first Bluetooth device sends first broadcast information in a broadcast manner, and the first broadcast information includes: the first Bluetooth device The first Bluetooth address of the second Bluetooth device and the binding information of the first Bluetooth device; the second Bluetooth device sends the second broadcast information in a broadcast manner, and the second broadcast information includes: the second Bluetooth device of the second Bluetooth device. address and binding information of the second bluetooth device; the first bluetooth device receives the second broadcast information sent by the second bluetooth device in a broadcast method by scanning; the second bluetooth device receives the first broadcast information by scanning The first broadcast information sent by the Bluetooth device in broadcast mode; if the binding information of the first Bluetooth device is the same as the binding information of the second Bluetooth device, the first Bluetooth device records the second Bluetooth device and the second Bluetooth device records the first Bluetooth address of the first Bluetooth device. 一种蓝牙耳机,其特征在于,所述蓝牙耳机采用广播方式发送第一广播信息,所述第一广播信息包括:所述蓝牙耳机的第一蓝牙地址以及所述蓝牙耳机的绑定信息;以及通过扫描的方式接收对端蓝牙耳机采用广播方式发送的第二广播信息,所述第二广播信息包括:所述对端蓝牙耳机的第二蓝牙地址以及所述对端蓝牙耳机的绑定信息;若所述蓝牙耳机的绑定信息与所述对端蓝牙耳机的绑定信息相同,则所述蓝牙耳机记录所述对端蓝牙耳机的所述第二蓝牙地址。A Bluetooth headset, characterized in that the Bluetooth headset sends first broadcast information in a broadcast manner, and the first broadcast information includes: a first Bluetooth address of the Bluetooth headset and binding information of the Bluetooth headset; and Receive, by scanning, the second broadcast information sent by the opposite-end Bluetooth headset in a broadcast manner, where the second broadcast information includes: the second Bluetooth address of the opposite-end Bluetooth headset and binding information of the opposite-end Bluetooth headset; If the binding information of the Bluetooth headset is the same as the binding information of the opposite-end Bluetooth headset, the Bluetooth headset records the second Bluetooth address of the opposite-end Bluetooth headset. 一种蓝牙耳机,其特征在于,所述蓝牙耳机采用广播方式发送第二广播信息,所述第二广播信息包括:所述蓝牙耳机的第二蓝牙地址以及所述蓝牙耳机的绑定信息;以及通过扫描的方式接收对端蓝牙耳机采用广播方式发送的第一广播信息,所述第一广播信息包括:所述对端蓝牙耳机的第一蓝牙地址以及所述对端蓝牙耳机的绑定信息;若所述对端蓝牙耳机的绑定信息与所述蓝牙耳机的绑定信息相同,则所述蓝牙耳机记录所述对端蓝牙耳机的所述第一蓝牙地址。A Bluetooth headset, characterized in that the Bluetooth headset sends second broadcast information in a broadcast manner, and the second broadcast information includes: a second Bluetooth address of the Bluetooth headset and binding information of the Bluetooth headset; and Receive, by scanning, the first broadcast information sent by the opposite-end Bluetooth headset in a broadcast manner, where the first broadcast information includes: the first Bluetooth address of the opposite-end Bluetooth headset and binding information of the opposite-end Bluetooth headset; If the binding information of the opposite-end Bluetooth headset is the same as the binding information of the Bluetooth headset, the Bluetooth headset records the first Bluetooth address of the opposite-end Bluetooth headset.
PCT/CN2020/116865 2020-09-22 2020-09-22 Method for address exchange between bluetooth devices, communication system, and bluetooth headset Ceased WO2022061527A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/116865 WO2022061527A1 (en) 2020-09-22 2020-09-22 Method for address exchange between bluetooth devices, communication system, and bluetooth headset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/116865 WO2022061527A1 (en) 2020-09-22 2020-09-22 Method for address exchange between bluetooth devices, communication system, and bluetooth headset

Publications (1)

Publication Number Publication Date
WO2022061527A1 true WO2022061527A1 (en) 2022-03-31

Family

ID=80844705

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/116865 Ceased WO2022061527A1 (en) 2020-09-22 2020-09-22 Method for address exchange between bluetooth devices, communication system, and bluetooth headset

Country Status (1)

Country Link
WO (1) WO2022061527A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022855A (en) * 2022-05-24 2022-09-06 无锡小天鹅电器有限公司 Linkage control method and device for equipment, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040203366A1 (en) * 2002-05-29 2004-10-14 Gvc Corporation Fast connection establishment method for bluetooth device
CN108174457A (en) * 2018-01-12 2018-06-15 恒玄科技(上海)有限公司 Charging box, the communication system of bluetooth headset and communication means
CN108540889A (en) * 2018-05-28 2018-09-14 广东小天才科技有限公司 Pairing method and device of TWS (two way communication) headset, TWS headset and storage medium
CN109348466A (en) * 2018-11-29 2019-02-15 与德科技有限公司 Bluetooth headset, bluetooth headset box and bluetooth headset MAC Address exchange method
CN111464993A (en) * 2020-04-08 2020-07-28 昆山泰芯微电子有限公司 Double-ear Bluetooth headset pairing method and wireless headset for double-ear Bluetooth headset
CN112105010A (en) * 2020-09-22 2020-12-18 深圳市汇顶科技股份有限公司 Method for address exchange between Bluetooth devices, communication system and Bluetooth headset

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040203366A1 (en) * 2002-05-29 2004-10-14 Gvc Corporation Fast connection establishment method for bluetooth device
CN108174457A (en) * 2018-01-12 2018-06-15 恒玄科技(上海)有限公司 Charging box, the communication system of bluetooth headset and communication means
CN108540889A (en) * 2018-05-28 2018-09-14 广东小天才科技有限公司 Pairing method and device of TWS (two way communication) headset, TWS headset and storage medium
CN109348466A (en) * 2018-11-29 2019-02-15 与德科技有限公司 Bluetooth headset, bluetooth headset box and bluetooth headset MAC Address exchange method
CN111464993A (en) * 2020-04-08 2020-07-28 昆山泰芯微电子有限公司 Double-ear Bluetooth headset pairing method and wireless headset for double-ear Bluetooth headset
CN112105010A (en) * 2020-09-22 2020-12-18 深圳市汇顶科技股份有限公司 Method for address exchange between Bluetooth devices, communication system and Bluetooth headset

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022855A (en) * 2022-05-24 2022-09-06 无锡小天鹅电器有限公司 Linkage control method and device for equipment, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112105010B (en) Method for exchanging addresses between Bluetooth devices, communication system and Bluetooth headset
US10693969B2 (en) Electronic device using logical channels for communication
CN101808375B (en) Mobile terminal and handover method thereof
CN105794307B (en) The method and apparatus for supporting IP multimedia subsystem
CN112544092B (en) Electronic device, external electronic device, and method of managing embedded subscriber identification module of external electronic device
CN105516897A (en) Method and device for one-key establishment of communication connection between Bluetooth devices
JP2015502701A (en) Enabling access to key lifetime for wireless link setup
CN116491110A (en) Electronic device for performing edge computing service and operation method of electronic device
US20250168906A1 (en) Information updating method and electronic device
CN103703474B (en) The data of processing unit generation
US9930048B2 (en) Customer identification for seamless wireless-network access
WO2022061527A1 (en) Method for address exchange between bluetooth devices, communication system, and bluetooth headset
AU2019431307A1 (en) Wireless connection method, device group, system, and storage medium
CN115580944A (en) Audio device connection method and device, storage medium and device
CN108353108A (en) Data setting system, data update system and data setting method
CN109511118A (en) WLAN access exception processing method, mobile terminal and usim card
JP5877283B1 (en) Operating environment setting system, portable terminal, relay device, and operating environment setting program
JP5564965B2 (en) Terminal device, content data acquisition program, and content data acquisition method
US9456077B2 (en) Communication server, communication terminal, and method of communication
US9332374B2 (en) Communication interface method for SE equipped on mobile terminal and SE using the same
WO2022237353A1 (en) Method, apparatus, and device for configuring earphones in earphone holding case, and program product
JP6134302B2 (en) Service management server and service management method
CN105245634A (en) File transfer method, device and system
CN110049544B (en) Information synchronization method, equipment and computer storage medium
CN110049458B (en) Information transmission method, equipment and computer storage medium

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: 20954381

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20954381

Country of ref document: EP

Kind code of ref document: A1