WO2022061551A1 - Address transmission method, bluetooth chip, bluetooth headset, and electronic device - Google Patents

Address transmission method, bluetooth chip, bluetooth headset, and electronic device Download PDF

Info

Publication number
WO2022061551A1
WO2022061551A1 PCT/CN2020/116929 CN2020116929W WO2022061551A1 WO 2022061551 A1 WO2022061551 A1 WO 2022061551A1 CN 2020116929 W CN2020116929 W CN 2020116929W WO 2022061551 A1 WO2022061551 A1 WO 2022061551A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
bluetooth terminal
address
terminal
connection
Prior art date
Application number
PCT/CN2020/116929
Other languages
French (fr)
Chinese (zh)
Inventor
简兰懿
周伟
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to PCT/CN2020/116929 priority Critical patent/WO2022061551A1/en
Publication of WO2022061551A1 publication Critical patent/WO2022061551A1/en

Links

Images

Classifications

    • 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

Definitions

  • the present application relates to the field of Bluetooth, and in particular, to an address transmission method, a Bluetooth chip, a Bluetooth headset, an electronic device and a communication system.
  • Each Bluetooth device has a unique device address, which is used to establish a Bluetooth connection.
  • a True Wireless Stereo (TWS) Bluetooth headset generally consists of a pair of headphones, and the left and right headphones can get rid of the shackles of the connecting wires between the left and right headphones.
  • TWS True Wireless Stereo
  • the left and right earphones In order to establish a low-power Bluetooth connection between the left and right earphones, the left and right earphones must know the device address of each other. Therefore, the device address is especially important for Bluetooth headsets. In the prior art, if a pair of earphones do not know the device address of the other party, the device addresses of the left and right earphones can be exchanged through the charging box.
  • the embodiments of the present application provide an address transmission method, a Bluetooth chip, a Bluetooth headset, an electronic device, and a communication system.
  • a first aspect of the embodiments of the present application provides an address transmission method for a first Bluetooth terminal, including:
  • the first bluetooth terminal sends a bluetooth connection command to the bluetooth terminal using the default address of the first bluetooth terminal, and the second bluetooth terminal uses the default address of the second bluetooth terminal to enter the message receiving mode; the create bluetooth connection command is used to establish a bluetooth connection;
  • the first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and/or the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection;
  • the default address of the first Bluetooth end is the same as the default address of the second Bluetooth end, and the device address of the first Bluetooth end is different from the device address of the second Bluetooth end.
  • the method before the first bluetooth terminal sends the bluetooth connection creation command to the bluetooth terminal using the default address of the first bluetooth terminal, the method further includes: configuring the device address of the first bluetooth terminal and the first bluetooth terminal The default address of the terminal.
  • the method further includes:
  • the first bluetooth terminal receives the first confirmation character sent by the second bluetooth terminal; the first confirmation character is the response of the second bluetooth terminal to the bluetooth connection creation command sent by the first bluetooth terminal to the bluetooth terminal using the default address of the first bluetooth terminal.
  • the Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection; if the preset conditions are met, the first Bluetooth terminal sends the Bluetooth terminal using the default address of the first Bluetooth terminal to send Create bluetooth connection command;
  • the preset conditions include a first preset condition and a second preset condition; the charging box is used to supply power to the first Bluetooth terminal;
  • the first preset condition is that the preset reset button on the charging box is activated
  • the second preset condition is that the first Bluetooth terminal is placed in the charging box.
  • the preset condition further includes a third preset condition. If the first preset condition and the second preset condition are met, the first Bluetooth terminal will pair with the first Bluetooth terminal using the first Bluetooth terminal.
  • the bluetooth end of the address sends a command to create a bluetooth connection and judges whether the third preset condition is met;
  • the second bluetooth terminal If the second bluetooth terminal receives the command to create a bluetooth connection sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal, the second bluetooth terminal replies with a second confirmation character to the first bluetooth terminal;
  • the third preset condition is that the first Bluetooth terminal does not receive the second confirmation character sent by the second Bluetooth terminal within the preset time.
  • the first Bluetooth terminal sending the Bluetooth connection creation command to the Bluetooth terminal using the pairing address of the first Bluetooth terminal includes:
  • the first Bluetooth terminal sends a Bluetooth connection creation command to the second Bluetooth terminal with a preset frequency hopping sequence according to the pairing address of the first Bluetooth terminal, and the preset frequency hopping sequence corresponds to the pairing address of the first Bluetooth terminal.
  • it further includes:
  • the first Bluetooth terminal receives the preset level sequence consisting of high level and low level sent by the charging box; if the first Bluetooth terminal receives the preset level sequence sent by the charging box In the preset level sequence, the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third preset condition is met; if the third preset condition is met, the first bluetooth terminal sends a command to the use The bluetooth terminal of the default address of the first bluetooth terminal sends a command to create a bluetooth connection.
  • the first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal:
  • the preset condition includes a third preset condition and a fourth preset condition, and the fourth preset condition is that the preset reset button on the first Bluetooth terminal is activated for a preset duration;
  • the first Bluetooth terminal sends a command to create a Bluetooth connection to the Bluetooth terminal using the pairing address of the first Bluetooth terminal and judges whether the third preset condition is met;
  • the second bluetooth terminal replies with the second confirmation character to the first bluetooth terminal;
  • the third preset condition is that the first Bluetooth terminal does not receive the second confirmation character sent by the second Bluetooth terminal within the preset time.
  • the first bluetooth terminal after the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection, it includes:
  • the first bluetooth terminal sends a bluetooth connection creation command to the bluetooth terminal using the device address received by the first bluetooth terminal.
  • the first bluetooth terminal records the default address of the first bluetooth terminal, the device address of the first bluetooth terminal and the pairing address of the first bluetooth terminal: the first bluetooth terminal receives the second bluetooth terminal After sending the device address of the second bluetooth terminal, the first bluetooth terminal records the received device address of the second bluetooth terminal sent by the second bluetooth terminal as the pairing address of the first bluetooth terminal.
  • a second aspect of the embodiments of the present application provides an address transmission method for a second Bluetooth terminal, including:
  • the second bluetooth terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal, and the create bluetooth connection command is sent by the first bluetooth terminal to the bluetooth terminal using the default address of the first bluetooth terminal for establishing a bluetooth connection connect;
  • the second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection, and/or the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection; the default of the first bluetooth terminal The address is the same as the default address of the second bluetooth terminal; the device address of the first bluetooth terminal is different from the device address of the second bluetooth terminal.
  • the method further includes: configuring the device address of the second bluetooth terminal and the first bluetooth terminal. 2. The default address of the Bluetooth terminal.
  • the method further includes:
  • the second bluetooth end sends the first confirmation character to the first bluetooth end;
  • the first confirmation character is the response of the second bluetooth end to the bluetooth connection creation command sent by the first bluetooth end to the bluetooth end using the default address of the first bluetooth end.
  • the Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection; if the preset conditions are met, the second Bluetooth terminal uses the default address of the second Bluetooth terminal to enter the message receiving mode to receive A command to create a Bluetooth connection sent by the first Bluetooth terminal to the Bluetooth terminal using the default address of the first Bluetooth terminal;
  • the preset conditions include a first preset condition and a fifth preset condition; the charging box is used to supply power to the second Bluetooth terminal;
  • the first preset condition is that the preset reset button on the charging box is activated
  • the fifth preset condition is that the second Bluetooth terminal is placed in the charging box.
  • the preset condition further includes a sixth preset condition. If the first preset condition and the fifth preset condition are satisfied, the second Bluetooth terminal uses the device address of the second Bluetooth terminal Entering the message receiving mode, and judging whether the sixth preset condition is met;
  • the sixth preset condition is that the second Bluetooth terminal does not receive a Bluetooth connection creation command sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal within the preset time period.
  • the method further includes: if the first preset condition and the fifth preset condition are met, the second Bluetooth terminal receives a signal composed of a high level and a low level sent by the charging box. preset level sequence; if the second bluetooth terminal receives the preset level sequence sent by the charging box, the second bluetooth terminal uses the device address of the second bluetooth terminal to enter the message receiving mode, and determines whether the sixth preset condition is met; If the sixth preset condition is met, the second Bluetooth terminal enters the message receiving mode by using the default address of the second Bluetooth terminal to receive a command to create a Bluetooth connection sent by the first Bluetooth terminal.
  • the second Bluetooth terminal uses the default address of the second Bluetooth terminal to enter the message receiving mode
  • the preset conditions include a sixth preset condition and a seventh preset condition, and the seventh preset condition is that the preset reset button on the second Bluetooth terminal is activated for a preset duration;
  • the second Bluetooth terminal uses the device address of the second Bluetooth terminal to enter the message receiving mode and determines whether the sixth preset condition is met;
  • the sixth preset condition is that the second Bluetooth terminal does not receive a Bluetooth connection creation command sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal within a preset time period.
  • the method includes:
  • the second bluetooth terminal uses the device address of the second bluetooth terminal to receive a bluetooth connection creation command sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal.
  • the second bluetooth terminal records the default address of the second bluetooth terminal, the device address of the second bluetooth terminal and the pairing address of the second bluetooth terminal: the second bluetooth terminal receives the first bluetooth terminal through the bluetooth connection. After the device address of the first bluetooth terminal is sent by the bluetooth terminal, the second bluetooth terminal records the received device address of the first bluetooth terminal sent by the first bluetooth terminal as the pairing address of the second bluetooth terminal.
  • a third aspect of the embodiments of the present application provides a Bluetooth chip, including: a memory and a processor; the memory is coupled to the processor;
  • the processor is configured to invoke the program instructions stored in the memory, so that the Bluetooth chip executes any one of the address transmission methods in the first aspect or the Bluetooth chip executes the address transmission method in any one of the second aspects above.
  • a fourth aspect of the embodiments of the present application provides a Bluetooth headset, including an earphone housing and a Bluetooth chip according to the above-mentioned third aspect disposed inside the earphone housing.
  • a fifth aspect of the embodiments of the present application is an electronic device, comprising a casing and a Bluetooth chip according to the above-mentioned third aspect placed inside the casing.
  • a sixth aspect of the embodiments of the present application is a communication system, comprising a first Bluetooth terminal and a second Bluetooth terminal;
  • the first bluetooth terminal sends the bluetooth connection command to the bluetooth terminal using the default address of the first bluetooth terminal, and the second bluetooth terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal. to establish a Bluetooth connection;
  • the default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal, and the device address of the first bluetooth terminal is different from the device address of the second bluetooth terminal;
  • the first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection
  • the second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection
  • the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection, and the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection.
  • the beneficial effects of the embodiments of the present application are as follows: the embodiments of the present application provide an address transmission method, a Bluetooth chip, a Bluetooth headset, an electronic device and a communication system, through the first Bluetooth terminal and the second Bluetooth terminal.
  • the same default address establishes a bluetooth connection to complete the transmission of the device address through the bluetooth connection, which avoids setting pins for data transmission on the first bluetooth end or the second bluetooth end, so the structure is simple and the cost is low.
  • FIG. 3 is a flowchart of an address transmission method for a primary and secondary headset provided by an embodiment of the present application
  • FIG. 5 is a flowchart of still another address transmission method provided by an embodiment of the present application.
  • FIG. 6 is a topology diagram of the primary and secondary earphones before address transmission provided by an embodiment of the present application
  • FIG. 7 is a topology diagram of establishing a first Bluetooth connection according to an embodiment of the present application.
  • FIG. 8 is another topology diagram of establishing a first Bluetooth connection according to an embodiment of the present application.
  • FIG. 11 is a topology diagram of establishing a second Bluetooth connection according to an embodiment of the present application.
  • FIG. 12 is a flowchart of establishing a second Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal by using the device address of the second Bluetooth terminal recorded by the first Bluetooth terminal according to an embodiment of the present application;
  • FIG. 13 is a flowchart of establishing a first Bluetooth connection through a default address of a first Bluetooth terminal provided by an embodiment of the present application
  • FIG. 17 is a flowchart of still another address transmission method provided by an embodiment of the present application.
  • FIG. 18 is a flowchart of still another address transmission method provided by an embodiment of the present application.
  • FIG. 19 is a schematic diagram of a Bluetooth chip provided by an embodiment of the present application.
  • the embodiment of the present application provides an address transmission method for a first Bluetooth terminal
  • the specific first Bluetooth terminal may be a Bluetooth chip or an electronic device, such as a TWS (True Wireless Stereo, true wireless stereo) Bluetooth headset, a speaker Wait.
  • the first Bluetooth end can be understood as the master device end, and the second Bluetooth end can be understood as the slave device end; in other scenarios, the first Bluetooth end can also be understood as the slave device end, and the second Bluetooth end can be understood as the slave device end. Understand the main device side.
  • the master device in the forwarding mode, the master device is used to forward voice data to the slave device, and in the monitoring mode, the master device is used to send synchronous data.
  • the address transmission method includes the following steps:
  • S101 Establish a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal; the first Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection;
  • S102 Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and receive the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
  • the Bluetooth connection established through the default address may be referred to as the first Bluetooth connection
  • the Bluetooth connection established through the device address may be referred to as the second Bluetooth connection, that is, between the first Bluetooth terminal and the second Bluetooth connection
  • the Bluetooth connection established under the condition that the Bluetooth terminals do not know the device address of each other is called the first Bluetooth connection
  • the Bluetooth connection established after the device addresses are known to each other is called the second Bluetooth connection.
  • the address transmission method is applied to the first bluetooth end, and the first bluetooth end and the second bluetooth end are TWS bluetooth earphones as an example for illustration, and the left earphone and the right earphone of the TWS earphone record at least three addresses respectively.
  • the addresses recorded by the left earphone include the default address, the left earphone device address, and the left earphone pairing address.
  • the default address can be understood as a unified fixed address for all Bluetooth devices.
  • the default address cannot be changed.
  • the default addresses of the left earphone, the right earphone and other earphones are configured the same.
  • the format of the default address and the device address of the left earphone , the right earphone device address has the same format, for example, it can be data represented by 48-bit (6-byte) binary.
  • the device address of the left earphone is the unique device address of the left earphone and cannot be changed.
  • the pairing address of the left earphone is the unique device address of any right earphone paired with the left earphone.
  • the pairing address of the left earphone can be modified by the address transmission method.
  • the address recorded by the right earphone also includes the default address, the device address of the right earphone and the pairing address of the right earphone.
  • the pairing address of the right earphone is the unique device address of the right earphone and cannot be changed.
  • the pairing address of the right earphone is any device that is paired with the right earphone.
  • the unique device address of the left earphone and the pairing address of the right earphone can be modified by the address transmission method. It is understandable that the device address of any Bluetooth device is different. In addition, a Bluetooth device can only use one address at the same time. It is understandable that different addresses correspond to different frequency hopping sequences.
  • the master device calculates the frequency hopping sequence of the ID packet sent according to the device address of the slave device (Slave), and the slave device calculates the frequency hopping sequence of the received ID packet according to its own device address.
  • the sequence is the same.
  • the left and right earphones use the same frequency hopping sequence, the left and right earphones can communicate with each other.
  • the left and right earphones can establish a Bluetooth connection through the default address to communicate messages; or , the right earphone sends a command to create a Bluetooth connection to the Bluetooth terminal using the default address, and the left earphone uses the default address of the left earphone to enter the message receiving mode, then the left and right earphones can establish a Bluetooth connection through the default address to communicate messages.
  • the left and right earphones can establish a Bluetooth connection through the default address to communicate messages.
  • two Bluetooth devices have been paired and know each other's device address, they can also establish a connection for communication.
  • the left earphone can send the Bluetooth end of the device address of the right earphone stored by itself to create a Bluetooth connection.
  • the right earphone can use the right earphone device address to enter the message receiving mode to receive the create Bluetooth connection command sent by the left earphone, and the left and right earphones can establish a low energy bluetooth connection or low energy bluetooth connection through the left earphone device address and the right earphone device address .
  • a classic Bluetooth connection is also called a BR (basic rate, basic rate) connection or an EDR (enhanced datarate, enhanced rate) connection, or can also be called an ACL (ASYNCHRONOUS LOGICAL LINKS, asynchronous logical link) connection;
  • Low-power Bluetooth connection can also be called LE (Low Energy, low power) connection, or can also be called LEACL (Low Energy ASYNCHRONOUS LOGICAL LINKS, low-power asynchronous logic link) connection
  • the Bluetooth headset is set in the factory When the device address of the left earphone is used for the left earphone, the device address of the right earphone is used for the right earphone, and the respective default addresses have also been configured, that is, the default address of the first Bluetooth terminal and the second Bluetooth terminal can be configured according to the requirements. address and device address.
  • the configured default address and device address can be stored in the first Bluetooth terminal and the second Bluetooth terminal. Generally, for any Bluetooth terminal, the default address is different from the device address.
  • a first Bluetooth connection is established with the second Bluetooth terminal through the default address of the first Bluetooth terminal.
  • the first Bluetooth terminal sends a Bluetooth connection creation command to the second Bluetooth terminal according to the default address of the first Bluetooth terminal to create a Bluetooth connection.
  • the connection command includes the default address of the first Bluetooth terminal.
  • the Bluetooth connection creation command may also include information such as the ID of the Bluetooth device and the characteristic parameters of the controller.
  • the create bluetooth connection command is used to establish a classic bluetooth connection or a low energy bluetooth connection between the first bluetooth end and the second bluetooth end.
  • the default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal, and it can also be understood that the bluetooth connection between the first bluetooth terminal and the second bluetooth terminal is established through the default address of the first bluetooth terminal and the default address of the second bluetooth terminal.
  • the bluetooth connection between the first bluetooth terminal and the second bluetooth terminal is established through the default address of the first bluetooth terminal and the default address of the second bluetooth terminal.
  • the first bluetooth terminal may be connected with multiple second bluetooth terminals.
  • the first bluetooth terminal can select a second bluetooth terminal, for example, select one The second bluetooth terminal with the largest RSSI, that is, choose a second bluetooth terminal that is closest to it, or choose the bluetooth terminal that responds first to establish a bluetooth connection.
  • the first bluetooth terminal can establish a classic bluetooth connection with the selected second bluetooth terminal or LE connection.
  • the address transmission method can also be used for the second bluetooth terminal.
  • the first bluetooth connection can also be initiated and established by the second bluetooth terminal, that is, the second bluetooth terminal can also communicate with the first bluetooth terminal through the default address of the second bluetooth terminal.
  • the Bluetooth terminal establishes the first Bluetooth connection.
  • the second Bluetooth terminal sends the Bluetooth terminal that uses the default address of the second Bluetooth terminal to create a Bluetooth connection. If the first Bluetooth terminal is using the default address and is in the message receiving mode, the first Bluetooth terminal The command to create a bluetooth connection will be received, and an ACK (Acknowledge character, confirmation character) will be returned to the second bluetooth terminal to establish a bluetooth connection, thereby realizing address transmission.
  • ACK Acknowledge character, confirmation character
  • step S102 after the first Bluetooth connection is established, it can send its own device address to each other through the first Bluetooth connection, that is, the first Bluetooth terminal sends the device address of the first Bluetooth terminal to the second Bluetooth terminal through the first Bluetooth connection.
  • Bluetooth terminal, and the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the first bluetooth connection
  • the first bluetooth terminal can receive the device address of the second bluetooth terminal
  • the second bluetooth terminal can also receive the first bluetooth terminal.
  • a device address of the Bluetooth terminal so as to realize the intercommunication of device addresses.
  • the address transmission method can also be used for the second bluetooth terminal, that is, in step S102, through the first bluetooth connection, the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal, and the second bluetooth terminal is connected. The device address of the first Bluetooth terminal sent by the first Bluetooth terminal is received.
  • the Bluetooth terminal uses the default address of the second Bluetooth terminal to receive messages, so the second Bluetooth terminal can receive the command to create a Bluetooth connection, so that the Bluetooth connection can be successfully established.
  • the charging box is additionally provided with pins for transmitting data, so the structure is simple and the cost is low.
  • an address transmission method may include the following steps:
  • step S201 judge whether the preset condition is met; if so, execute step S202, if not, execute step S201A: continue to judge whether the preset condition is met with the preset time sequence;
  • S202 Establish a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal; the first Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection;
  • S203 Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and the first Bluetooth end receives the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
  • steps S202-S203 are the same as or similar to steps S101 and S102 in the foregoing embodiment, and are not repeated here.
  • step S201 it is necessary to judge whether the preset conditions are met, and only when the preset conditions are met, the address transmission in the foregoing embodiment is performed, that is, only when the preset conditions are met, the first Bluetooth terminal performs the first Bluetooth terminal according to the default conditions of the first Bluetooth terminal.
  • the address sending the Bluetooth connection creation command to the second Bluetooth terminal can also be understood as the first Bluetooth terminal sending the Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal.
  • the preset condition may be that the first bluetooth terminal and the second bluetooth terminal do not save each other's device address, for example, the bluetooth terminal that established a bluetooth connection with the first bluetooth terminal last time is lost, so the first bluetooth terminal needs to obtain The address of the new second bluetooth terminal to be paired with.
  • the address transmission method of the foregoing embodiment can also be executed, so that the first bluetooth terminal can obtain the second bluetooth terminal. device address of the terminal.
  • the preset sequence in step S201A may be to determine whether the preset condition is satisfied once per second, or to determine whether the preset condition is satisfied once per minute.
  • the first Bluetooth terminal is the left earphone and the second Bluetooth terminal is the right earphone as an example for description. If the user loses one of a pair of earphones, or one of the pair of earphones is damaged, in the face of such a situation that only one earphone can be used, the user can buy a new earphone and one that can be used normally. The earphones are paired for use, but the newly bought earphones and the original earphones do not know each other's device address.
  • the address transmission operation needs to be performed, so that the left and right earphones can obtain each other's device address, so that the left and right earphones can further Establish an LE connection or a classic Bluetooth connection via the device address.
  • the process of address transmission may include the following steps:
  • step S301 judge whether the preset condition is met; if so, execute step S302, if not, execute step S301A: continue to judge whether the preset condition is met with the preset time sequence;
  • S302 establish a classic bluetooth connection or low-power bluetooth connection between the main earphone and the auxiliary earphone through the default address saved by the main earphone;
  • the main earphone sends the main earphone address to the secondary earphone through the established Bluetooth connection, and the secondary earphone sends the secondary earphone address to the main earphone through the established Bluetooth connection;
  • step S301 satisfying the preset condition is the premise of executing S302, that is, if the preset condition is met, the first Bluetooth connection is established, which can avoid the waste of power consumption due to frequent activation of the address transmission process in the foregoing embodiment.
  • the preset conditions may include the following methods. For example, it can be determined whether the buttons on the two earphones are pressed and held at the same time. If they are pressed for a long time at the same time, the preset conditions are satisfied. As a result, S302 is triggered by mistake; in addition, it can also be realized through the mobile phone APP. Specifically, it can be determined whether there are two earphones in the Bluetooth list of the mobile phone that are selected and selected to perform reset at the same time. If so, the preset is satisfied. condition, but this trigger condition is more complicated, which brings tedious operation to the user.
  • Step S301A is the same as or similar to step S201A in the foregoing embodiment, and is not repeated here.
  • the preset condition may include one or both of the first preset condition and the third preset condition.
  • the first preset condition is that the preset reset button on the charging box is activated. Specifically, if the user wants to make two headphones that are not originally a pair can establish a Bluetooth connection to become a pair, that is, they want to make the two headphones have no communication before. If you want to communicate with the past headset, you can touch the preset reset button on the charging box to enable the address transmission process in the foregoing embodiment, so that the first Bluetooth terminal and the second Bluetooth terminal can obtain each other's device address, thereby This enables the first Bluetooth terminal and the second Bluetooth terminal to establish an LE connection or a classic Bluetooth connection according to the device address.
  • the preset reset button may also be a physical button or a virtual button, and the touch duration of the preset reset button is not limited. If the preset condition is set to long-press the reset button, other function buttons can be reused. For example, the first preset condition can be set as the preset reset button on the charging box is long-pressed for more than 5s.
  • the third preset condition is that the establishment of the Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal through the device address fails. Specifically, the establishment of the Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal through the device address fails, which may be Since the first bluetooth terminal and the second bluetooth terminal do not know each other's device address, the bluetooth connection cannot be successfully established through the device address. In this case, the first bluetooth terminal and the second bluetooth terminal cannot be identified as one For earphones, it can be understood that if two earphones have been paired as a pair of earphones, the two earphones should know each other's device address. Specifically, the left earphone needs to know the right earphone address, or the right earphone needs to know the address of the right earphone.
  • the address transmission process can be started, that is, the first bluetooth terminal sends a bluetooth connection creation command to the second bluetooth terminal according to the default address of the first bluetooth terminal , so that the first bluetooth terminal and the second bluetooth terminal can establish a bluetooth connection through the default address to obtain each other's device address, so that the first bluetooth terminal and the second bluetooth terminal can communicate through the device address without using default address.
  • the third preset condition is that the establishment of the Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal through the device address fails, and the number of times that the Bluetooth connection fails to be established through the device address is not limited.
  • the first preset The set condition may be that the number of failures to establish a Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal exceeds a preset number of times, and the preset number of times may be 1 time, 2 times, 3 times, etc., when the preset number of times is 2 times or 3 times, it can be understood that the first bluetooth terminal has tried to establish a bluetooth connection with the second bluetooth terminal through the device address many times, but all failed.
  • the failure to establish a Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal by using the device address includes: the first Bluetooth terminal does not receive the second confirmation character from the second Bluetooth terminal within the preset time, and the second confirmation The character is the response of the second bluetooth terminal to the bluetooth connection creation command sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal stored by the first bluetooth terminal.
  • the first Bluetooth terminal sends the Bluetooth terminal that uses the pairing address of the first Bluetooth terminal stored in the first Bluetooth terminal to create a Bluetooth connection.
  • the connection command, the create bluetooth connection command is used to establish a classic bluetooth connection or a low-power bluetooth connection between the first bluetooth terminal and the second bluetooth terminal.
  • the reset button on the charging box is touched by mistake, even if the Bluetooth addresses are known to each other, if the two Bluetooth terminals are far away, the Bluetooth connection cannot be successfully established through the device address. far, establishing a bluetooth connection using the default address will also fail. After the two bluetooth terminals are closer, if the two bluetooth terminals do not know the device address of each other, they can still try to establish a bluetooth connection by relying on the default address.
  • the preset conditions may include a first preset condition and a third preset condition, that is, the preset reset button on the charging box is activated, and the first Bluetooth is established through the device address. If the low-power connection between the terminal and the second Bluetooth terminal fails, the first Bluetooth terminal establishes a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal. It is understandable that, assuming that the reset button is preset on the charging box, the user may accidentally touch the reset button sometimes, but the left and right earphones actually know each other's device address, so there is no need for address transmission at this time.
  • the condition is set to not only be activated by the reset button preset on the charging box, but also include the failure to establish a Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal through the device address. If the preset reset button of the device is activated by mistake, if the Bluetooth connection is successfully established between the first Bluetooth terminal and the second Bluetooth terminal through the device address, the address transmission will not be performed to avoid unnecessary power consumption.
  • the address transmission method of this embodiment may include the following steps:
  • the first bluetooth terminal sends a bluetooth connection creation command to the bluetooth terminal using the pairing address of the first bluetooth terminal;
  • step S403 Determine whether the first bluetooth terminal has received a response to the command to create a bluetooth connection sent by the second bluetooth terminal; if the response is not received, perform step S404;
  • the first bluetooth terminal sends a create bluetooth connection command to the bluetooth terminal using the default address of the first bluetooth terminal to establish a first bluetooth connection with the second bluetooth terminal;
  • S405 Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and the first Bluetooth end receives the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
  • step S401 if the first preset condition is not met, it means that the preset reset button on the charging box has not been activated, that is, the user does not need to establish a connection between the two earphones at present, then step S401A can be executed: to preset Set the time sequence to continue to judge whether the preset condition is met; in step S403, if the third preset condition is not met, that is, although the reset button is activated, the Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal is successfully established through the device address. , it means that the user may have touched the reset button on the charging box by mistake. In fact, the first Bluetooth terminal and the second Bluetooth terminal know each other's device address.
  • Steps S404 and S405 are the same as or similar to steps S102 and S103 in the foregoing embodiments, and will not be repeated here.
  • it is first determined whether the preset reset button on the charging box is activated. If activated, it is determined whether the establishment of the Bluetooth connection through the device address fails. If it fails, the Bluetooth connection is established through the default address.
  • Step S401A is the same as or similar to step S201A in the foregoing embodiment, and details are not repeated here.
  • the preset condition may further include a second preset condition, and the second preset condition is that both the first Bluetooth terminal and the second Bluetooth terminal are placed in the charging box.
  • the Bluetooth connection can be established through the default address.
  • the first bluetooth terminal and the second bluetooth terminal can send their respective device addresses to each other through the bluetooth connection, so that the first bluetooth connection and the second bluetooth connection can receive the other party's device address.
  • the address transmission method in this embodiment includes the following steps:
  • step S501 determine that the preset reset button on the charging box is activated; if the preset reset button on the charging box is activated, then execute step S502; if the preset reset button on the charging box is not activated, execute step S501A: with The preset timing continues to determine whether the preset conditions are met;
  • S502 Determine whether the first Bluetooth terminal is placed in the charging box; if the first Bluetooth terminal is placed in the charging box, go to step S503; if not, go to step S501A;
  • the first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the pairing address of the first Bluetooth terminal;
  • S504 Determine whether the first bluetooth terminal receives a response to the command to create a bluetooth connection sent by the second bluetooth terminal; if the first bluetooth terminal receives a response to the command to create a bluetooth connection sent by the second bluetooth terminal, perform steps S505; if not satisfied, execute step S501A;
  • S505 Establish a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal;
  • S506 Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and the first Bluetooth end receives the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
  • steps S505 and S506 are the same as or similar to steps S202 and S203 in the foregoing embodiment, and are not repeated here.
  • it is first determined whether the preset reset button on the charging box is activated. If activated, it is then determined whether the first Bluetooth terminal and the second Bluetooth terminal are placed in the charging box. The bluetooth terminals are placed in the charging box, and then it is determined whether the establishment of the bluetooth connection between the first bluetooth terminal and the second bluetooth terminal through the device address fails. If it fails, the first bluetooth terminal and the second bluetooth terminal pass the default address.
  • Step S501A is the same as or similar to step S201A in the foregoing embodiment, and is not repeated here.
  • the charging box sends the preset level sequence to the first Bluetooth terminal, for example, sending a certain sequence of high level and A sequence consisting of a low level is sent to the first Bluetooth terminal.
  • the first bluetooth terminal After the first bluetooth terminal receives the preset level sequence, the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal; or after the first bluetooth terminal receives the preset level sequence, The first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third preset condition is satisfied.
  • the first bluetooth terminal sends the default address using the first bluetooth terminal to the The bluetooth side sends the create bluetooth connection command.
  • the charging box sends the preset level sequence to the first Bluetooth terminal.
  • the second bluetooth terminal can use the default address of the second bluetooth terminal to configure the message receiving mode, so that the second bluetooth terminal can receive the message from the first bluetooth terminal to the first bluetooth terminal.
  • the device address of the two Bluetooth terminals enters the message receiving mode, and it is determined whether the sixth preset condition is met.
  • the sixth preset condition is that the second Bluetooth terminal does not receive the first Bluetooth terminal within the preset period of time to use the first Bluetooth terminal pairing address If the sixth preset condition is met, the second bluetooth terminal uses the default address of the second bluetooth terminal to enter the message receiving mode to receive the create bluetooth connection command sent by the first bluetooth terminal.
  • the fifth preset condition is that the second Bluetooth terminal is placed in the charging box.
  • the function of judging whether the preset condition is satisfied is to start the Bluetooth address transmission, so as to determine whether it is necessary to make the main earphone and the auxiliary earphone know each other's address, so that the main earphone and the auxiliary earphone can become a pair of earphones, and the mobile phone
  • the address of the main earphone By connecting with the address of the main earphone, communication with the main earphone and the sub-earphone can be realized.
  • the left earphone 601 in the initial state, that is, when the left and right earphones do not know each other's device addresses, the left earphone 601 records three addresses, which are the default address, the left earphone address and the left earphone pairing address, respectively.
  • the earphone pairing address can be understood as the address of the earphone connected to the left earphone last time.
  • the right earphone 602 records three addresses, which are the default address, the right earphone address, and the right earphone pairing address.
  • the right earphone pairing address can be understood as the previous pairing address with the left earphone.
  • step S505 since the main earphone does not know the device address of the right earphone, and the right earphone does not know the device address of the main earphone, therefore, after the preset conditions are met, in order to enable the address transmission between the two earphones, the main earphone can be transmitted through the main earphone.
  • the default address of the headset establishes the first Bluetooth connection between the main headset and the secondary headset. Please refer to the topology diagram shown in FIG. 7. Both the primary headset 701 and the secondary headset 702 can establish the first Bluetooth connection through the default address.
  • the default address of the left headset The address is equal to the default address of the right earphone. Please refer to FIG.
  • the left earphone 701 can send a Bluetooth connection creation command to the right earphone using the default address of the left earphone.
  • the right earphone 702 uses the right earphone The headset default address enters the message receiving mode to receive the create bluetooth connection command sent by the left headset to the right headset using the default address of the left headset.
  • the right earphone 702 can send the Bluetooth connection creation command to the left earphone using the default address of the right earphone.
  • the left earphone 701 uses the left earphone default address.
  • the address enters the message receiving mode to receive the create bluetooth connection command sent by the right earphone to the left earphone using the default address of the right earphone.
  • the default address of the main headset is the same as the default address of the secondary headset, and the process of establishing the first Bluetooth connection may be initiated by the primary headset or the secondary headset, which is not limited in this embodiment.
  • the main earphone can send the address of the main earphone, that is, the address of the left earphone, to the secondary earphone through the first Bluetooth connection 01, and the secondary earphone can send the address of the main earphone to the main earphone through the first Bluetooth connection 01
  • the address of the secondary earphone is the address of the right earphone. In this way, the address transmission is realized between the two Bluetooth earphones.
  • the main earphone When the main earphone receives the address of the right earphone, the main earphone updates its recorded address, specifically, replaces the original pairing address of the left earphone with the received address of the right earphone; when the right earphone receives the address of the left earphone, the right earphone updates its record address, specifically, replace the original right earphone pairing address with the received left earphone address.
  • the primary headset 801 records the default address, the left headset address and the right headset address
  • the right headset 802 records the default address, the left headset address and the right headset address.
  • the purpose of using the default address to establish the first Bluetooth connection is to enable address transmission, so that the left earphone can obtain the address of the right earphone, and the right earphone can obtain the address of the left earphone, so that the device address can be used for subsequent communication.
  • both the left earphone address and the right earphone address belong to the device address.
  • step S506 after the main headset and the secondary headset receive each other's device address, the recorded addresses can be updated.
  • the first Bluetooth connection can be disconnected , to save power consumption. After disconnecting the first Bluetooth connection, you can also set the left earphone as the main earphone, the right earphone as the secondary earphone, the left earphone works with the left earphone device address, and the right earphone works with the right earphone address.
  • step S103 disconnecting the first Bluetooth connection may be further included.
  • the first Bluetooth connection can be disconnected to save power consumption.
  • the address transmission method includes the following steps:
  • S1001 Establish a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal; the first Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection;
  • S1002 Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and receive the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
  • S1004 Establish a second Bluetooth connection between the first Bluetooth end and the second Bluetooth end by using the device address of the first Bluetooth end or the device address of the second Bluetooth end; in this embodiment, the second Bluetooth connection is a low-power Bluetooth connection or In the classic Bluetooth connection, steps S1001-S1003 are the same as or similar to steps S101-S103 in the foregoing embodiment, and are not repeated here.
  • the first bluetooth terminal can establish a second bluetooth connection through the received device address of the second bluetooth terminal, or the second bluetooth terminal can also establish a second bluetooth connection through the received device address of the first bluetooth terminal.
  • the left earphone 1101 can send a command to create a Bluetooth connection to the Bluetooth terminal using the address of the right earphone, and the right earphone 1102 uses the address of the right earphone to enter a message receiving mode to receive the command to create a Bluetooth connection to establish a second Bluetooth connection Connection 02 communicates using the device address.
  • the first Bluetooth end after the first Bluetooth end receives the device address of the second Bluetooth end sent by the second Bluetooth end, the first Bluetooth end records the received second Bluetooth end sent by the second Bluetooth end
  • the device address of the terminal is the pairing address of the first bluetooth terminal. If the first bluetooth terminal previously recorded the pairing address of the first bluetooth terminal, after receiving the device address of the second bluetooth terminal sent by the new second bluetooth terminal, the first bluetooth terminal uses The newly received device address of the second bluetooth terminal replaces the pairing address of the first bluetooth terminal to update the pairing address of the first bluetooth terminal; similarly, after the second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal, The second bluetooth terminal records the newly received device address of the first bluetooth terminal as the pairing address of the second bluetooth terminal.
  • the record in this embodiment may refer to storage, that is, the first Bluetooth end stores the received address of the second Bluetooth end, and the second Bluetooth end stores the received address of the first Bluetooth end.
  • the left earphone takes the left earphone as an example for illustration, after the left earphone receives the device address of the right earphone sent by the right earphone, the left earphone records the device address of the right earphone.
  • establishing a second Bluetooth connection between the first Bluetooth end and the second Bluetooth end through the device address of the first Bluetooth end or the device address of the second Bluetooth end can be Include the following steps:
  • the first bluetooth terminal is configured to create a bluetooth connection mode through the device address of the second bluetooth terminal recorded by the first bluetooth terminal;
  • the first Bluetooth terminal After receiving the broadcast message sent by the second Bluetooth terminal, the first Bluetooth terminal determines whether the broadcast message contains the device address of the second Bluetooth terminal recorded by the first Bluetooth terminal; if it does, go to step S1203; if not, then Return to step S1201, and restart the establishment of the second Bluetooth connection through the device address:
  • the first Bluetooth terminal sends a Bluetooth connection creation command to the second Bluetooth terminal; the Bluetooth connection creation command is used to establish a classic Bluetooth connection or a low-power Bluetooth connection.
  • establishing a first Bluetooth connection through the default address of the first Bluetooth terminal may include the following steps:
  • the first bluetooth terminal sends a bluetooth connection creation command to the bluetooth terminal using the default address of the first bluetooth terminal, and the bluetooth connection creation command includes the default address of the first bluetooth terminal;
  • the first Bluetooth terminal receives a response message sent by the second Bluetooth terminal to the command to create a Bluetooth connection.
  • the default address of the first bluetooth terminal included in the creation bluetooth connection command can also be understood as the default address of the second bluetooth terminal, that is, the second bluetooth terminal.
  • the second bluetooth terminal is set to be in a connectable mode according to the default address of the second bluetooth terminal, that is, the second bluetooth terminal works in the frequency hopping sequence corresponding to the default address of the second bluetooth terminal, and the first bluetooth terminal uses the first bluetooth terminal to use the first bluetooth terminal.
  • the bluetooth terminal of the default address of the bluetooth terminal sends a command to create a bluetooth connection
  • the first bluetooth terminal can work in the frequency hopping sequence corresponding to the default address of the first bluetooth terminal, and the default address of the first bluetooth terminal is equal to the default address of the second bluetooth terminal.
  • a bluetooth terminal and a second bluetooth terminal work in the same frequency hopping sequence, and the first bluetooth terminal can establish a bluetooth connection with the second bluetooth terminal through a default address.
  • the second bluetooth terminal After the second bluetooth terminal receives the command to create a bluetooth connection, it returns a response message to the command to create a bluetooth connection to the first bluetooth terminal.
  • the first Bluetooth connection is successfully established. If the first Bluetooth terminal does not receive a response message sent by the second Bluetooth terminal to the command to create a Bluetooth connection, the establishment of the first Bluetooth connection fails.
  • the right earphone uses the default address and is in a connectable mode, and the left earphone sends a command to create a Bluetooth connection to the earphone using the default address.
  • the command to create a Bluetooth connection includes the default address of the left earphone.
  • frequency conversion processing can be performed according to the default address of the left earphone, that is, the frequency hopping sequence for the left earphone to work is determined according to the default address of the left earphone.
  • the right earphone After the right earphone receives the command to create a bluetooth connection, it performs frequency conversion processing according to the default address of the right earphone and sends a response message to the command to create a bluetooth connection. If the default address is different, the left earphone may not receive the response message, and the first Bluetooth connection may fail to be created. Therefore, the default address of the first Bluetooth device and the default address of the second Bluetooth device need to be the same to successfully create the first Bluetooth device. A Bluetooth connection.
  • an embodiment of the present application provides an address transmission method, including the following steps:
  • the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal; and the second bluetooth terminal uses the default address of the second bluetooth terminal to enter a message receiving mode;
  • the first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and/or the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection.
  • the second bluetooth terminal uses the default address of the second bluetooth terminal to enter the message receiving mode to receive the message sent by the first bluetooth terminal.
  • the create bluetooth connection command If the default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal, it can be understood that the first bluetooth terminal sends a command to create a bluetooth connection to the second bluetooth terminal, and the second bluetooth terminal can receive the command to create a bluetooth connection, so as to be able to Successfully created bluetooth connection.
  • the address transmission method provided in this embodiment may further include configuring the default address of the first bluetooth terminal and the first
  • the device address of the bluetooth terminal is configured with the default address of the second bluetooth terminal and the device address of the second bluetooth terminal for the second bluetooth terminal.
  • the configured default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal.
  • the address transmission method provided in this embodiment may further include configuring the default address of the second bluetooth terminal on the second bluetooth terminal before the second bluetooth terminal enters the message receiving mode using the default address of the second bluetooth terminal and the device address of the second Bluetooth terminal.
  • step S1401 after the second bluetooth terminal receives the command to create a bluetooth connection, the second bluetooth terminal will reply a first confirmation character to the first bluetooth terminal.
  • step S1402 if the first bluetooth terminal receives the first confirmation character, it means that the bluetooth connection is successfully created; if the bluetooth connection is successfully created, the first bluetooth terminal can send its own device address to the second bluetooth through the bluetooth connection terminal, so that the second bluetooth terminal obtains the device address of the first bluetooth terminal sent by the first bluetooth terminal; or, if the bluetooth connection is established successfully, the first bluetooth terminal receives the second bluetooth terminal's address sent by the second bluetooth terminal through the bluetooth connection.
  • the second bluetooth terminal sends the device address of the second bluetooth terminal to the second bluetooth terminal through the bluetooth connection
  • the second bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection
  • the first bluetooth terminal can send its own device address to the second bluetooth terminal through the bluetooth connection
  • the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection
  • the second bluetooth terminal sends the device address of the first bluetooth terminal to the bluetooth terminal through the bluetooth connection
  • the second bluetooth terminal can receive the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection
  • the second bluetooth terminal can send the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection.
  • the first Bluetooth terminal receives the device address of the second Bluetooth terminal sent by the second Bluetooth terminal through the Bluetooth connection.
  • the second bluetooth terminal can send its own device address to the first bluetooth terminal through the bluetooth connection, so that the first bluetooth terminal obtains the device address of the second bluetooth terminal.
  • an embodiment of the present application provides an address transmission method, including the following steps:
  • the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal; and the second bluetooth terminal uses the default address of the second bluetooth terminal to enter a message receiving mode;
  • the first bluetooth terminal receives the first confirmation character sent by the second bluetooth terminal; the first confirmation character is the command of creating a bluetooth connection sent by the second bluetooth terminal to the first bluetooth terminal to the bluetooth terminal using the default address of the first bluetooth terminal answer.
  • the first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection.
  • steps S1501 and S1503 are the same as or similar to steps S1402 and S1402 in the foregoing embodiment, and are not repeated here.
  • step S1502 after the first bluetooth terminal receives the first confirmation character sent by the second bluetooth terminal, it can indicate that the default address of the second bluetooth terminal is equal to the default address of the first bluetooth terminal, then the relationship between the first bluetooth terminal and the second bluetooth terminal is A Bluetooth connection can be successfully established through the default address.
  • the first Bluetooth terminal when the preset conditions are met, sends a command to create a Bluetooth connection to the Bluetooth terminal using the default address of the first Bluetooth terminal, and the second Bluetooth terminal uses the second Bluetooth terminal
  • the default address of the terminal receives the create Bluetooth connection command, so that a Bluetooth connection can be established according to the default address of the first Bluetooth terminal and the default address of the second Bluetooth terminal, thereby realizing the intercommunication of device addresses.
  • the second Bluetooth terminal uses the default address to work, so as to cooperate with the first Bluetooth terminal to send the Bluetooth connection creation command to the Bluetooth terminal using the default address.
  • the preset conditions may include a first preset condition and/or a second preset condition:
  • the first preset condition the preset reset button on the charging box is activated
  • the second preset condition the first Bluetooth terminal is placed in the charging box.
  • the second Bluetooth terminal only uses the default address to enter the message receiving mode when the reset button preset on the charging box is activated; or, the second Bluetooth terminal uses the default address only when it is placed in the charging box Enter the message receiving mode; or, the default address is used to enter the message receiving mode only when the reset button preset on the charging box of the second Bluetooth terminal is activated and the second Bluetooth terminal is placed in the charging box.
  • the second bluetooth terminal if the preset reset button on the charging box is activated and the second bluetooth terminal is placed in the charging box, the second bluetooth terminal can switch to use the default address to receive messages, so as to receive the second bluetooth terminal.
  • the default address is used to enter the message receiving mode only when the reset button of the device is activated and the second Bluetooth terminal is placed in the charging box.
  • the first Bluetooth terminal and the second Bluetooth terminal may know each other's device address, and if they know each other's device address, a Bluetooth connection can be established through the device address.
  • the first bluetooth terminal can send a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal, if the first bluetooth pairing address is the device of the second bluetooth terminal address, and the second bluetooth terminal uses the device address of the second bluetooth terminal to be in message receiving mode, the second bluetooth terminal will receive the command to create a bluetooth connection, and the second bluetooth terminal will reply to the second bluetooth connection after receiving the command to create a bluetooth connection.
  • the confirmation character is given to the first bluetooth terminal, so the first bluetooth terminal and the second bluetooth terminal can successfully establish a bluetooth connection through the device address. If the first bluetooth pairing address is not the device address of the second bluetooth terminal, and the second bluetooth terminal uses the device address of the second bluetooth terminal to be in the message receiving mode, the second bluetooth terminal cannot receive the bluetooth connection creation command sent by the first bluetooth terminal, The first bluetooth terminal cannot receive the second confirmation character, so the first bluetooth terminal and the second bluetooth terminal fail to establish a bluetooth connection through the device address. Therefore, when the first bluetooth terminal does not receive the second confirmation character sent by the second bluetooth terminal within the preset time, the address transmission method can be executed, that is, the first bluetooth terminal sends a command to create a bluetooth connection according to the default address of the first bluetooth terminal to the second bluetooth end. In this embodiment, the pairing address of the first bluetooth terminal is the device address of the paired bluetooth terminal recorded by the first bluetooth terminal.
  • the sending of the first Bluetooth terminal to create a Bluetooth connection by using the pairing address of the first Bluetooth terminal includes: the first Bluetooth terminal sends the created Bluetooth connection in a preset frequency hopping sequence according to the pairing address of the first Bluetooth terminal.
  • the bluetooth connection command is given to the second bluetooth terminal, and the preset frequency hopping sequence corresponds to the pairing address of the first bluetooth terminal.
  • an embodiment of the present application provides an address transmission method, including the following steps:
  • step S1601 Determine whether the preset reset button on the charging box is activated and the first Bluetooth terminal is placed in the charging box. If the preset reset button on the charging box is activated and the first Bluetooth terminal is placed in the charging box, Then go to step S1602; if the first preset condition and the second preset condition are not satisfied, go to step S1601A;
  • the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third preset condition is met; if the third preset condition is met, step S1603 is executed; if the first The preset condition and the third preset condition, then execute step S1601A;
  • the first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal.
  • step S1602 the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal.
  • the second bluetooth terminal uses the device address of the second bluetooth terminal to be in the message receiving mode.
  • the second Bluetooth terminal replies with a second confirmation character to the first Bluetooth terminal; the third preset condition is that the first Bluetooth terminal If the second confirmation character sent by the second Bluetooth terminal is not received within the preset time, it is determined whether the first Bluetooth terminal has received the second confirmation character sent by the second Bluetooth terminal within the preset time. Preset conditions, step S1603 is executed.
  • step S1603 if the first bluetooth terminal does not receive the second confirmation character sent by the second bluetooth terminal within the preset time, the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal, For the second bluetooth terminal, if the reset button on the charging box is activated and the second bluetooth terminal is placed in the charging box, the second bluetooth terminal starts to detect whether it receives the bluetooth connection created by the first bluetooth terminal within the preset time.
  • the second bluetooth terminal uses the default address of the second bluetooth terminal to be in the message receiving mode to receive the first bluetooth terminal to use the default address of the first bluetooth terminal.
  • the Bluetooth connection creation request sent by the Bluetooth end because the second Bluetooth end uses the default address of the second Bluetooth end to be in the message receiving mode, so if the first Bluetooth end sends the Bluetooth connection creation request to the Bluetooth end using the default address of the first Bluetooth end , the second bluetooth terminal can receive the command to create a bluetooth connection, and thus can successfully establish a bluetooth connection to transmit the device address.
  • the second Bluetooth terminal can use the default address to enter the message receiving mode, and work according to the frequency hopping sequence corresponding to the default address to receive messages according to the frequency hopping sequence, that is, when the second Bluetooth terminal has not established a connection with other devices, use the default The address receives the create bluetooth connection command sent by other bluetooth devices.
  • address transmission is started only when three preset conditions are met, so as to avoid wasting power consumption due to false triggering of address transmission.
  • only the button on the charging box is pressed. Or touch, and when the first bluetooth terminal is placed in the charging box, the first bluetooth terminal sends a bluetooth connection creation command to the second bluetooth terminal according to the pairing address of the first bluetooth terminal.
  • the second bluetooth terminal uses the device address of the second bluetooth terminal to be in the message receiving mode and judges the preset Whether the command to create a bluetooth connection sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal is received within the time period.
  • the first bluetooth terminal receives the command sent by the second bluetooth terminal within the preset time If the first Bluetooth end does not receive the second confirmation character sent by the second Bluetooth end within the preset time, it means that the first Bluetooth end does not receive the second confirmation character sent by the second Bluetooth end. If the Bluetooth end does not record the device address of the second Bluetooth end, the first Bluetooth end sends a Bluetooth connection creation command to the second Bluetooth end according to the default address of the first Bluetooth end.
  • the second bluetooth end when the second bluetooth end does not receive the command to create a bluetooth connection sent by the first bluetooth end to the bluetooth end using the pairing address of the first bluetooth end within the preset time period, the second bluetooth end can use The default address of the second Bluetooth terminal enters the message receiving mode to receive the command to create a Bluetooth connection.
  • an embodiment of the present application provides an address transmission method, including the following steps:
  • S1701 Determine whether the preset reset button on the first Bluetooth terminal has been activated for more than a preset time period; if so, go to step S1702; if the preset reset button on the first Bluetooth terminal has not been activated for a preset time period, go to step S1702 S1701A;
  • the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third preset condition is met; if the third preset condition is met, step S1703 is performed;
  • the first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal.
  • the fourth preset condition may be that the reset button is activated for more than a preset duration, which can be understood as a long press. For example, it is determined whether the preset reset button on the first Bluetooth terminal is pressed or touched for more than 5s.
  • the third preset condition is that the first Bluetooth terminal does not receive the second confirmation character sent by the second Bluetooth terminal within the preset time.
  • the second Bluetooth terminal uses the default address of the second Bluetooth terminal to enter the message receiving mode, and the preset conditions include the sixth preset condition and the seventh preset condition,
  • the seventh preset condition is that the preset reset button on the second bluetooth terminal is activated for more than a preset time period; if the seventh preset condition is satisfied, the second bluetooth terminal uses the device address of the second bluetooth terminal to enter the message receiving mode and judges whether it is satisfied A sixth preset condition; the sixth preset condition is that the second Bluetooth terminal does not receive a command for creating a Bluetooth connection sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal within a preset time period.
  • an embodiment of the present application provides an address transmission method, including the following steps:
  • the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal; and the second bluetooth terminal uses the default address of the second bluetooth terminal to enter a message receiving mode;
  • the first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection;
  • the first bluetooth terminal sends a bluetooth connection creation command to the bluetooth terminal using the device address received by the first bluetooth terminal;
  • step S1803 is to establish a bluetooth connection through the device address of the second bluetooth terminal received by the first bluetooth terminal, that is, to disconnect the first bluetooth connection and establish a second bluetooth connection.
  • the bluetooth terminal of the device address of the second bluetooth terminal received by the first bluetooth terminal sends a command to create a bluetooth connection.
  • the second bluetooth terminal After the second bluetooth terminal establishes a connection with the first bluetooth terminal through the default address and sends its own device address to the first bluetooth terminal, You can choose to use the device address of the second bluetooth terminal to enter the message receiving mode, so that the first bluetooth terminal can connect to the second bluetooth terminal through the device address without relying on the default address; for the second bluetooth terminal, the second bluetooth terminal receives After reaching the device address of the first bluetooth terminal sent by the first bluetooth terminal, the second bluetooth terminal can also initiate the establishment of a bluetooth connection through the device address, without relying on the default address of the second bluetooth terminal.
  • the Bluetooth chip 1900 includes: a memory 1901 and a processor 1902; the memory is coupled to the processor;
  • the processor is configured to invoke the program instructions stored in the memory, so that the Bluetooth chip executes the address transmission method described in any of the foregoing embodiments.
  • Embodiments of the present application further provide a Bluetooth headset, which includes a headset casing and the Bluetooth chip as mentioned in the above embodiments, which is placed inside the headset casing.
  • a Bluetooth headset which includes a headset casing and the Bluetooth chip as mentioned in the above embodiments, which is placed inside the headset casing.
  • the specific implementation process and beneficial effects thereof can be referred to above, which will not be repeated here.
  • An embodiment of the present application further provides an electronic device, the electronic device includes a casing and the Bluetooth chip as mentioned in the above embodiments, which is placed inside the casing.
  • the electronic device may be an earphone, a Bluetooth speaker, or the like. The specific implementation process and beneficial effects thereof can be referred to above, which will not be repeated here.
  • the embodiment of the present application further provides a communication system, including a first Bluetooth terminal and a second Bluetooth terminal; specifically, the first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal, and the second Bluetooth terminal sends a command to create a Bluetooth connection.
  • a communication system including a first Bluetooth terminal and a second Bluetooth terminal; specifically, the first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal, and the second Bluetooth terminal sends a command to create a Bluetooth connection.
  • the terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal; the default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal, and the device address of the first bluetooth terminal is different from that of the second bluetooth terminal;
  • the first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and the second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection; and/or, the second bluetooth terminal
  • the device address of the second bluetooth terminal is sent to the first bluetooth terminal through the bluetooth connection, and the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection.
  • the first Bluetooth terminal and the second Bluetooth terminal may be an earphone, a Bluetooth speaker, etc.
  • the communication system for address transmission may further include a charging box, and the charging box is used for charging the first Bluetooth terminal and the second Bluetooth terminal.
  • a processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method embodiments may be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software.
  • the above-mentioned processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (field programmaLE gate array, FPGA), or other possible solutions.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • Programming logic devices discrete gate or transistor logic devices, discrete hardware components.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
  • the memory in this embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (programmaLE rom, PROM), erasable programmable read-only memory (erasaLE PROM, EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • RAM random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous DRAM
  • SDRAM double data rate synchronous dynamic random access memory
  • DouLE data rate SDRAM double data rate synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM
  • B corresponding to A means that B is associated with A, and B can be determined according to A.
  • determining B according to A does not mean that B is only determined according to A, and B may also be determined according to A and/or other information.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

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

Abstract

An address transmission method, a Bluetooth chip, a Bluetooth headset, and an electronic device. The address transmission method comprises: a first Bluetooth end sending a Bluetooth connection creation command to a Bluetooth end using a default address of the first Bluetooth end, and a second Bluetooth end using a default address of the second Bluetooth end to enter a message receiving mode (S1401), wherein the Bluetooth connection creation command is used for establishing a Bluetooth connection; and the first Bluetooth end sending a device address of the first Bluetooth end to the second Bluetooth end by means of a Bluetooth connection, and/or, the first Bluetooth end receiving, by means of a Bluetooth connection, a device address, sent by the second Bluetooth end, of the second Bluetooth end (S1402), wherein the default address of the first Bluetooth end is the same as the default address of the second Bluetooth end. By means of the address transmission method of the present application, a Bluetooth connection is established by means of the same default address of a first Bluetooth end and a second Bluetooth end, so as to complete the transmission of a device address by means of the Bluetooth connection, thereby avoiding providing a pin for data transmission at the first Bluetooth end or the second Bluetooth end. Thus, the structure is simple, and the costs are low.

Description

一种地址传输方法、蓝牙芯片、蓝牙耳机以及电子设备An address transmission method, a Bluetooth chip, a Bluetooth headset and an electronic device 技术领域technical field
本申请涉及蓝牙领域,尤其涉及一种地址传输方法、蓝牙芯片、蓝牙耳机、电子设备及通信系统。The present application relates to the field of Bluetooth, and in particular, to an address transmission method, a Bluetooth chip, a Bluetooth headset, an electronic device and a communication system.
背景技术Background technique
每个蓝牙设备拥有唯一的设备地址,用于建立蓝牙连接。真无线立体声(True Wireless Stereo,TWS)蓝牙耳机一般由一对耳机组成,左右耳机可以摆脱左右耳机之间连接线的束缚。为实现左右耳机之间低功耗蓝牙连接的建立,左右耳机必须知道对方的设备地址。因此,设备地址对蓝牙耳机来说尤其重要。现有技术中,如果一对耳机不知道对方的设备地址,可以通过充电盒交换左右耳机的设备地址,具体的,每个耳机的机身上除了两个管脚用于与充电盒相应的两个管脚连接以实现充电外,还需要在耳机上设置第三个传输数据的管脚与充电盒相应的第三个管脚连接,以实现左右耳机的地址传输。现有技术中两只耳机之间的地址传输的方案需要分别对充电盒和耳机额外增加一个管脚,使得耳机和充电盒的结构复杂,成本较高。Each Bluetooth device has a unique device address, which is used to establish a Bluetooth connection. A True Wireless Stereo (TWS) Bluetooth headset generally consists of a pair of headphones, and the left and right headphones can get rid of the shackles of the connecting wires between the left and right headphones. In order to establish a low-power Bluetooth connection between the left and right earphones, the left and right earphones must know the device address of each other. Therefore, the device address is especially important for Bluetooth headsets. In the prior art, if a pair of earphones do not know the device address of the other party, the device addresses of the left and right earphones can be exchanged through the charging box. In addition to connecting each pin to realize charging, it is also necessary to set a third pin on the earphone for data transmission to be connected to the corresponding third pin of the charging box to realize the address transmission of the left and right earphones. The solution of address transmission between two earphones in the prior art needs to add an additional pin to the charging box and the earphone respectively, which makes the structures of the earphone and the charging box complicated and the cost is high.
发明内容SUMMARY OF THE INVENTION
针对现有技术中地址传输方案使得结构复杂度增加的问题,本申请实施例提供了一种地址传输方法、蓝牙芯片、蓝牙耳机、电子设备及通信系统。Aiming at the problem that the address transmission scheme in the prior art increases the structural complexity, the embodiments of the present application provide an address transmission method, a Bluetooth chip, a Bluetooth headset, an electronic device, and a communication system.
本申请的实施例的第一方面提供了一种地址传输方法,用于第一蓝牙端,包括:A first aspect of the embodiments of the present application provides an address transmission method for a first Bluetooth terminal, including:
第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令,并且第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式;创建蓝牙连接命令用于建立蓝牙连接;The first bluetooth terminal sends a bluetooth connection command to the bluetooth terminal using the default address of the first bluetooth terminal, and the second bluetooth terminal uses the default address of the second bluetooth terminal to enter the message receiving mode; the create bluetooth connection command is used to establish a bluetooth connection;
第一蓝牙端通过蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,和/或,第一蓝牙端通过蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址;The first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and/or the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection;
第一蓝牙端的默认地址和第二蓝牙端的默认地址相同,第一蓝牙端的设备地址与第二蓝牙端的设备地址不同。The default address of the first Bluetooth end is the same as the default address of the second Bluetooth end, and the device address of the first Bluetooth end is different from the device address of the second Bluetooth end.
根据第一方面,在一种可能的实现方式中,在第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令之前还包括:配置第一蓝牙端的设备地址和第一蓝牙端的默认地址。According to the first aspect, in a possible implementation manner, before the first bluetooth terminal sends the bluetooth connection creation command to the bluetooth terminal using the default address of the first bluetooth terminal, the method further includes: configuring the device address of the first bluetooth terminal and the first bluetooth terminal The default address of the terminal.
根据第一方面,在一种可能的实现方式中,第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令之后,还包括:According to the first aspect, in a possible implementation manner, after the first bluetooth terminal sends a bluetooth connection creation command to the bluetooth terminal using the default address of the first bluetooth terminal, the method further includes:
第一蓝牙端接收第二蓝牙端发送的第一确认字符;第一确认字符为第二蓝牙端对第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令的应答。The first bluetooth terminal receives the first confirmation character sent by the second bluetooth terminal; the first confirmation character is the response of the second bluetooth terminal to the bluetooth connection creation command sent by the first bluetooth terminal to the bluetooth terminal using the default address of the first bluetooth terminal.
根据第一方面,在一种可能的实现方式中,蓝牙连接为经典蓝牙连接或者低功耗蓝牙连接;若满足预设条件,则第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令;According to the first aspect, in a possible implementation manner, the Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection; if the preset conditions are met, the first Bluetooth terminal sends the Bluetooth terminal using the default address of the first Bluetooth terminal to send Create bluetooth connection command;
预设条件包括第一预设条件和第二预设条件;充电盒用于给第一蓝牙端供电;The preset conditions include a first preset condition and a second preset condition; the charging box is used to supply power to the first Bluetooth terminal;
第一预设条件为充电盒上预设的复位按键被启动;The first preset condition is that the preset reset button on the charging box is activated;
第二预设条件为第一蓝牙端被置于充电盒内。The second preset condition is that the first Bluetooth terminal is placed in the charging box.
根据第一方面,在一种可能的实现方式中,预设条件还包括第三预设条件,若满足第一预设条件和第二预设条件,第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令并且判断是否满足第三预设条件;According to the first aspect, in a possible implementation manner, the preset condition further includes a third preset condition. If the first preset condition and the second preset condition are met, the first Bluetooth terminal will pair with the first Bluetooth terminal using the first Bluetooth terminal. The bluetooth end of the address sends a command to create a bluetooth connection and judges whether the third preset condition is met;
若第二蓝牙端收到第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令,则第二蓝牙端回复第二确认字符给第一蓝牙端;If the second bluetooth terminal receives the command to create a bluetooth connection sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal, the second bluetooth terminal replies with a second confirmation character to the first bluetooth terminal;
第三预设条件为第一蓝牙端在预设时间内未收到第二蓝牙端发送的第二确认字符。The third preset condition is that the first Bluetooth terminal does not receive the second confirmation character sent by the second Bluetooth terminal within the preset time.
根据第一方面,在一种可能的实现方式中,第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令包括:According to the first aspect, in a possible implementation manner, the first Bluetooth terminal sending the Bluetooth connection creation command to the Bluetooth terminal using the pairing address of the first Bluetooth terminal includes:
第一蓝牙端根据第一蓝牙端配对地址以预设跳频序列发送创建蓝牙连接命令给第二蓝牙端,预设跳频序列对应于第一蓝牙端配对地址。The first Bluetooth terminal sends a Bluetooth connection creation command to the second Bluetooth terminal with a preset frequency hopping sequence according to the pairing address of the first Bluetooth terminal, and the preset frequency hopping sequence corresponds to the pairing address of the first Bluetooth terminal.
根据第一方面,在一种可能的实现方式中,还包括:According to the first aspect, in a possible implementation manner, it further includes:
若满足第一预设条件和第二预设条件,第一蓝牙端收到充电盒发送的由高电平和低电平组成的预设电平序列;若第一蓝牙端收到充电盒发送的预设电平序列,第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令并且判断是否满足第三预设条件;若满足第三预设条件,第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令。If the first preset condition and the second preset condition are met, the first Bluetooth terminal receives the preset level sequence consisting of high level and low level sent by the charging box; if the first Bluetooth terminal receives the preset level sequence sent by the charging box In the preset level sequence, the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third preset condition is met; if the third preset condition is met, the first bluetooth terminal sends a command to the use The bluetooth terminal of the default address of the first bluetooth terminal sends a command to create a bluetooth connection.
根据第一方面,在一种可能的实现方式中,若满足预设条件,则第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令:According to the first aspect, in a possible implementation manner, if the preset conditions are met, the first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal:
预设条件包括第三预设条件和第四预设条件,第四预设条件为第一蓝牙端上预设的复位按键被启动超过预设时长;The preset condition includes a third preset condition and a fourth preset condition, and the fourth preset condition is that the preset reset button on the first Bluetooth terminal is activated for a preset duration;
若满足第四预设条件,第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令并且判断是否满足第三预设条件;若第二蓝牙端收到第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令,则第二蓝牙端回复第二确认字符给第一蓝牙端;If the fourth preset condition is met, the first Bluetooth terminal sends a command to create a Bluetooth connection to the Bluetooth terminal using the pairing address of the first Bluetooth terminal and judges whether the third preset condition is met; Using the bluetooth connection creation command sent by the bluetooth terminal of the first bluetooth terminal pairing address, the second bluetooth terminal replies with the second confirmation character to the first bluetooth terminal;
第三预设条件为第一蓝牙端在预设时间内未收到第二蓝牙端发送的第二确认字符。The third preset condition is that the first Bluetooth terminal does not receive the second confirmation character sent by the second Bluetooth terminal within the preset time.
根据第一方面,在一种可能的实现方式中,第一蓝牙端通过蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址之后包括:According to the first aspect, in a possible implementation manner, after the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection, it includes:
第一蓝牙端向使用第一蓝牙端收到的设备地址的蓝牙端发送创建蓝牙连接命令。The first bluetooth terminal sends a bluetooth connection creation command to the bluetooth terminal using the device address received by the first bluetooth terminal.
根据第一方面,在一种可能的实现方式中,第一蓝牙端记录第一蓝牙端的默认地址、第一蓝牙端的设备地址和第一蓝牙端配对地址:第一蓝牙端接收到第二蓝牙端发送的第二蓝牙端的设备地址后,第一蓝牙端将收到的第二蓝牙端发送的第二蓝牙端的设备地址记录为第一蓝牙端配对地址。According to the first aspect, in a possible implementation manner, the first bluetooth terminal records the default address of the first bluetooth terminal, the device address of the first bluetooth terminal and the pairing address of the first bluetooth terminal: the first bluetooth terminal receives the second bluetooth terminal After sending the device address of the second bluetooth terminal, the first bluetooth terminal records the received device address of the second bluetooth terminal sent by the second bluetooth terminal as the pairing address of the first bluetooth terminal.
本申请的实施例的第二方面提供了一种地址传输方法,用于第二蓝牙端,包括:A second aspect of the embodiments of the present application provides an address transmission method for a second Bluetooth terminal, including:
第二蓝牙端使用第二蓝牙端的默认地址接收第一蓝牙端发送的创建蓝牙连接命令,创建蓝牙连接命令由第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送,以用于建立蓝牙连接;The second bluetooth terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal, and the create bluetooth connection command is sent by the first bluetooth terminal to the bluetooth terminal using the default address of the first bluetooth terminal for establishing a bluetooth connection connect;
第二蓝牙端通过蓝牙连接接收第一蓝牙端发送的第一蓝牙端的设备地址,和/或,第二蓝牙端通过蓝牙连接发送第二蓝牙端的设备地址给第一蓝牙端;第一蓝牙端的默认地址和第二蓝牙端的默认地址相同;第一蓝牙端的设备地址与第二蓝牙端的设备地址不同。The second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection, and/or the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection; the default of the first bluetooth terminal The address is the same as the default address of the second bluetooth terminal; the device address of the first bluetooth terminal is different from the device address of the second bluetooth terminal.
根据第二方面,在一种可能的实现方式中,在第二蓝牙端使用第二蓝牙端的默认地址接收第一蓝牙端发送的创建蓝牙连接命令之前还包括:配置第二蓝牙端的设备地址和第二蓝牙端的默认地址。According to the second aspect, in a possible implementation manner, before the second bluetooth terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal, the method further includes: configuring the device address of the second bluetooth terminal and the first bluetooth terminal. 2. The default address of the Bluetooth terminal.
根据第二方面,在一种可能的实现方式中,第二蓝牙端使用第二蓝牙端的默认地址接收第一蓝牙端发送的创建蓝牙连接命令之后,还包括:According to the second aspect, in a possible implementation manner, after the second bluetooth terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal, the method further includes:
第二蓝牙端发送第一确认字符给第一蓝牙端;第一确认字符为第二蓝牙端对第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令的应答。The second bluetooth end sends the first confirmation character to the first bluetooth end; the first confirmation character is the response of the second bluetooth end to the bluetooth connection creation command sent by the first bluetooth end to the bluetooth end using the default address of the first bluetooth end.
根据第二方面,在一种可能的实现方式中,蓝牙连接为经典蓝牙连接或者低功耗蓝牙连接;若满足预设条件,第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式以接收第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令;According to the second aspect, in a possible implementation manner, the Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection; if the preset conditions are met, the second Bluetooth terminal uses the default address of the second Bluetooth terminal to enter the message receiving mode to receive A command to create a Bluetooth connection sent by the first Bluetooth terminal to the Bluetooth terminal using the default address of the first Bluetooth terminal;
预设条件包括第一预设条件和第五预设条件;充电盒用于给第二蓝牙端供电;The preset conditions include a first preset condition and a fifth preset condition; the charging box is used to supply power to the second Bluetooth terminal;
第一预设条件为充电盒上预设的复位按键被启动;The first preset condition is that the preset reset button on the charging box is activated;
第五预设条件为第二蓝牙端被置于充电盒内。The fifth preset condition is that the second Bluetooth terminal is placed in the charging box.
根据第二方面,在一种可能的实现方式中,预设条件还包括第六预设条件,若满足第一预设条件和第五预设条件,第二蓝牙端使用第二蓝牙端的设备地址进入消息接收模式,并且判断是否满足第六预设条件;According to the second aspect, in a possible implementation manner, the preset condition further includes a sixth preset condition. If the first preset condition and the fifth preset condition are satisfied, the second Bluetooth terminal uses the device address of the second Bluetooth terminal Entering the message receiving mode, and judging whether the sixth preset condition is met;
第六预设条件为在预设时长内第二蓝牙端未收到第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令。The sixth preset condition is that the second Bluetooth terminal does not receive a Bluetooth connection creation command sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal within the preset time period.
根据第二方面,在一种可能的实现方式中,还包括:若满足第一预设条件和第五预设条件,第二蓝牙端收到充电盒发送的由高电平和低电平组成的预设电平序列;若第二蓝牙端收到充电盒发送的预设电平序列,则第二蓝牙端使用第二蓝牙端的设备地址进入消息接收模式,并且判断是否满足第六预设条件;若满足第六预设条件,第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式以接收第一蓝牙端发送的创建蓝牙连接命令。According to the second aspect, in a possible implementation manner, the method further includes: if the first preset condition and the fifth preset condition are met, the second Bluetooth terminal receives a signal composed of a high level and a low level sent by the charging box. preset level sequence; if the second bluetooth terminal receives the preset level sequence sent by the charging box, the second bluetooth terminal uses the device address of the second bluetooth terminal to enter the message receiving mode, and determines whether the sixth preset condition is met; If the sixth preset condition is met, the second Bluetooth terminal enters the message receiving mode by using the default address of the second Bluetooth terminal to receive a command to create a Bluetooth connection sent by the first Bluetooth terminal.
根据第二方面,在一种可能的实现方式中,若满足预设条件,则第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式;According to the second aspect, in a possible implementation manner, if the preset conditions are met, the second Bluetooth terminal uses the default address of the second Bluetooth terminal to enter the message receiving mode;
预设条件包括第六预设条件和第七预设条件,第七预设条件为第二蓝牙端上预设的复位按键被启动超过预设时长;The preset conditions include a sixth preset condition and a seventh preset condition, and the seventh preset condition is that the preset reset button on the second Bluetooth terminal is activated for a preset duration;
若满足第七预设条件,第二蓝牙端使用第二蓝牙端的设备地址进入消息接收模式并且判断是否满足第六预设条件;If the seventh preset condition is met, the second Bluetooth terminal uses the device address of the second Bluetooth terminal to enter the message receiving mode and determines whether the sixth preset condition is met;
第六预设条件为第二蓝牙端在预设时长内未收到第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令。The sixth preset condition is that the second Bluetooth terminal does not receive a Bluetooth connection creation command sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal within a preset time period.
根据第二方面,在一种可能的实现方式中,第二蓝牙端通过蓝牙连接发送第二蓝牙端的设备地址给第一蓝牙端之后包括:According to the second aspect, in a possible implementation manner, after the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection, the method includes:
第二蓝牙端使用第二蓝牙端的设备地址接收第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令。The second bluetooth terminal uses the device address of the second bluetooth terminal to receive a bluetooth connection creation command sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal.
根据第二方面,在一种可能的实现方式中,第二蓝牙端记录第二蓝牙端的默 认地址、第二蓝牙端的设备地址和第二蓝牙端配对地址:第二蓝牙端通过蓝牙连接接收第一蓝牙端发送的第一蓝牙端的设备地址后,第二蓝牙端将收到的第一蓝牙端发送的第一蓝牙端的设备地址记录为第二蓝牙端配对地址。According to the second aspect, in a possible implementation manner, the second bluetooth terminal records the default address of the second bluetooth terminal, the device address of the second bluetooth terminal and the pairing address of the second bluetooth terminal: the second bluetooth terminal receives the first bluetooth terminal through the bluetooth connection. After the device address of the first bluetooth terminal is sent by the bluetooth terminal, the second bluetooth terminal records the received device address of the first bluetooth terminal sent by the first bluetooth terminal as the pairing address of the second bluetooth terminal.
本申请的实施例的第三方面提供了一种蓝牙芯片,包括:存储器和处理器;存储器与处理器耦合;A third aspect of the embodiments of the present application provides a Bluetooth chip, including: a memory and a processor; the memory is coupled to the processor;
存储器,用于存储程序指令;memory for storing program instructions;
处理器,用于调用存储器存储的程序指令,使得蓝牙芯片执行上述第一方面中任一项的地址传输方法或者使得蓝牙芯片执行上述第二方面中任一项的地址传输方法。The processor is configured to invoke the program instructions stored in the memory, so that the Bluetooth chip executes any one of the address transmission methods in the first aspect or the Bluetooth chip executes the address transmission method in any one of the second aspects above.
本申请的实施例的第四方面提供了一种蓝牙耳机,包括耳机外壳和置于耳机外壳内部的如上述第三方面的蓝牙芯片。A fourth aspect of the embodiments of the present application provides a Bluetooth headset, including an earphone housing and a Bluetooth chip according to the above-mentioned third aspect disposed inside the earphone housing.
本申请的实施例的第五方面一种电子设备,包括外壳和置于外壳内部的如上述第三方面的蓝牙芯片。A fifth aspect of the embodiments of the present application is an electronic device, comprising a casing and a Bluetooth chip according to the above-mentioned third aspect placed inside the casing.
本申请的实施例的第六方面一种通信系统,包括第一蓝牙端和第二蓝牙端;A sixth aspect of the embodiments of the present application is a communication system, comprising a first Bluetooth terminal and a second Bluetooth terminal;
第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令,并且第二蓝牙端使用第二蓝牙端的默认地址接收第一蓝牙端发送的创建蓝牙连接命令,创建蓝牙连接命令用于建立蓝牙连接;The first bluetooth terminal sends the bluetooth connection command to the bluetooth terminal using the default address of the first bluetooth terminal, and the second bluetooth terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal. to establish a Bluetooth connection;
第一蓝牙端的默认地址和第二蓝牙端的默认地址相同,第一蓝牙端的设备地址与第二蓝牙端的设备地址不同;The default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal, and the device address of the first bluetooth terminal is different from the device address of the second bluetooth terminal;
第一蓝牙端通过蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且第二蓝牙端通过蓝牙连接接收第一蓝牙端发送的第一蓝牙端的设备地址;和/或,The first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and the second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection; and/or,
第二蓝牙端通过蓝牙连接发送第二蓝牙端的设备地址给第一蓝牙端,并且,第一蓝牙端通过蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址。The second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection, and the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection.
与现有技术相比,本申请实施例的有益效果在于:本申请实施例提供了一种地址传输方法、蓝牙芯片、蓝牙耳机、电子设备及通信系统,通过第一蓝牙端和第二蓝牙端相同的默认地址建立蓝牙连接,以通过该蓝牙连接完成设备地址的传输,避免了在第一蓝牙端或者第二蓝牙端设置传输数据的管脚,因而结构简单,成本较低。Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the embodiments of the present application provide an address transmission method, a Bluetooth chip, a Bluetooth headset, an electronic device and a communication system, through the first Bluetooth terminal and the second Bluetooth terminal. The same default address establishes a bluetooth connection to complete the transmission of the device address through the bluetooth connection, which avoids setting pins for data transmission on the first bluetooth end or the second bluetooth end, so the structure is simple and the cost is low.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本申请实施例提供的一地址传输方法的流程图;1 is a flowchart of an address transmission method provided by an embodiment of the present application;
图2为本申请实施例提供的又一地址传输方法的流程图;2 is a flowchart of another address transmission method provided by an embodiment of the present application;
图3为本申请实施例提供的主副耳机的地址传输方法的流程图;3 is a flowchart of an address transmission method for a primary and secondary headset provided by an embodiment of the present application;
图4为本申请实施例提供的再一地址传输方法的流程图;4 is a flowchart of yet another address transmission method provided by an embodiment of the present application;
图5为本申请实施例提供的再一地址传输方法的流程图;FIG. 5 is a flowchart of still another address transmission method provided by an embodiment of the present application;
图6为本申请实施例提供的地址传输前的主副耳机的拓扑图;6 is a topology diagram of the primary and secondary earphones before address transmission provided by an embodiment of the present application;
图7为本申请实施例提供的一建立第一蓝牙连接的拓扑图;7 is a topology diagram of establishing a first Bluetooth connection according to an embodiment of the present application;
图8为本申请实施例提供的又一建立第一蓝牙连接的拓扑图;FIG. 8 is another topology diagram of establishing a first Bluetooth connection according to an embodiment of the present application;
图9为本申请实施例提供的再一地址传输方法的流程图;9 is a flowchart of still another address transmission method provided by an embodiment of the present application;
图10为本申请实施例提供的再一地址传输方法的流程图;10 is a flowchart of yet another address transmission method provided by an embodiment of the present application;
图11为本申请实施例提供的一建立第二蓝牙连接的拓扑图;FIG. 11 is a topology diagram of establishing a second Bluetooth connection according to an embodiment of the present application;
图12为本申请实施例提供的一通过第一蓝牙端记录的第二蓝牙端的设备地址建立第一蓝牙端和第二蓝牙端之间的第二蓝牙连接的流程图;12 is a flowchart of establishing a second Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal by using the device address of the second Bluetooth terminal recorded by the first Bluetooth terminal according to an embodiment of the present application;
图13为本申请实施例提供的一通过第一蓝牙端的默认地址建立第一蓝牙连接的流程图;13 is a flowchart of establishing a first Bluetooth connection through a default address of a first Bluetooth terminal provided by an embodiment of the present application;
图14为本申请实施例提供的再一地址传输方法的流程图;14 is a flowchart of still another address transmission method provided by an embodiment of the present application;
图15为本申请实施例提供的再一地址传输方法的流程图;15 is a flowchart of still another address transmission method provided by an embodiment of the present application;
图16为本申请实施例提供的再一地址传输方法的流程图;16 is a flowchart of still another address transmission method provided by an embodiment of the present application;
图17为本申请实施例提供的再一地址传输方法的流程图;FIG. 17 is a flowchart of still another address transmission method provided by an embodiment of the present application;
图18为本申请实施例提供的再一地址传输方法的流程图;FIG. 18 is a flowchart of still another address transmission method provided by an embodiment of the present application;
图19为本申请实施例提供的一种蓝牙芯片的示意图。FIG. 19 is a schematic diagram of a Bluetooth chip provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的部分实施例采用举例的方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在各例子中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the objectives, technical solutions and advantages of the present application clearer, some embodiments of the present application will be described in detail below by way of examples in conjunction with the accompanying drawings. However, one of ordinary skill in the art will appreciate that in each instance, numerous technical details are set forth in order to provide the reader with a better understanding of the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized.
本申请实施例提供一种地址传输方法,用于第一蓝牙端,具体的第一蓝牙端可以为蓝牙芯片,也可以为电子设备,例如TWS(True Wireless Stereo,真无线立体声)蓝牙耳机、音箱等。在一些场景中,第一蓝牙端可以理解为主设备端,第二蓝牙端可以理解为从设备端;在另外一些场景中,第一蓝牙端也可以理解为从设备端,第二蓝牙端可以理解为主设备端。例如,在转发模式下,主设备端用于转发语音数据给从设备,在监听模式下,主设备端用于发送同步数据。请参考图1,该地址传输的方法包括以下步骤:The embodiment of the present application provides an address transmission method for a first Bluetooth terminal, and the specific first Bluetooth terminal may be a Bluetooth chip or an electronic device, such as a TWS (True Wireless Stereo, true wireless stereo) Bluetooth headset, a speaker Wait. In some scenarios, the first Bluetooth end can be understood as the master device end, and the second Bluetooth end can be understood as the slave device end; in other scenarios, the first Bluetooth end can also be understood as the slave device end, and the second Bluetooth end can be understood as the slave device end. Understand the main device side. For example, in the forwarding mode, the master device is used to forward voice data to the slave device, and in the monitoring mode, the master device is used to send synchronous data. Please refer to FIG. 1, the address transmission method includes the following steps:
S101:通过第一蓝牙端的默认地址与第二蓝牙端建立第一蓝牙连接;第一蓝牙连接为经典蓝牙连接或者低功耗蓝牙连接;S101: Establish a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal; the first Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection;
S102:通过第一蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且,通过第一蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址。S102: Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and receive the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
本实施例中,为了便于表述,通过默认地址建立的蓝牙连接可以称之为第一蓝牙连接,通过设备地址建立的蓝牙连接可以称之为第二蓝牙连接,即在第一蓝牙端和第二蓝牙端互相不清楚设备地址的条件下建立的蓝牙连接称之为第一蓝牙连接,在互相清楚了设备地址之后建立的蓝牙连接称之为第二蓝牙连接。该地址传输方法应用于第一蓝牙端,以第一蓝牙端和第二蓝牙端为TWS蓝牙耳机为例进行说明,TWS耳机的左耳机和右耳机分别至少记录三个地址。左耳机记录的地址包括默认地址、左耳机设备地址和左耳机配对地址。其中,默认地址可以理解为所有蓝牙设备统一的固定地址,该默认地址不能被改变,左耳机和右耳机以及其他耳机的默认地址都配置得相同,具体的,默认地址的格式和左耳机设备地址、右耳机设备地址的格式相同,例如,可以是由48位(6字节)二进制表示的数据。左耳机设备地址为左耳机唯一的设备地址,不可被更改,左耳机配对地址为与左耳机配对的任一右耳机的唯一的设备地址,左耳机配对地址可以通过地址传输方法进行修改。同样的, 右耳机记录的地址也包括默认地址、右耳机设备地址和右耳机配对地址,右耳机配对地址为右耳机唯一的设备地址,不可被更改,右耳机配对地址为与右耳机配对的任一左耳机的唯一的设备地址,右耳机配对地址可以通过地址传输方法进行修改。可以理解的是,任一蓝牙设备的设备地址都不同,另外,同一时刻一个蓝牙设备只能使用一个地址,可以理解的是,不同的地址对应不同的跳频序列,例如,在经典蓝牙连接建立过程中,主设备(Master)根据从设备(Slave)的设备地址计算发送的ID包的跳频序列,从设备根据自己的设备地址计算接收到的ID包的跳频序列,这两个跳频序列相同。当左右耳机使用同一种跳频序列时,左右耳机可以互通消息。例如,左耳机向使用左耳机存储的默认地址的蓝牙端发送创建蓝牙连接命令,右耳机使用右耳机的默认地址进入消息接收模式,则左右耳机可以通过默认地址建立蓝牙连接而实现互通消息;或者,右耳机向使用默认地址的蓝牙端发送创建蓝牙连接命令,左耳机使用左耳机的默认地址进入消息接收模式,则左右耳机可以通过默认地址建立蓝牙连接而实现互通消息。另外,如果两个蓝牙设备之间已经完成配对了,互相知道了对方的设备地址,也可以建立连接进行通信,例如,左耳机可以向自己存储的右耳机的设备地址的蓝牙端发送创建蓝牙连接命令,右耳机可以使用右耳机设备地址进入消息接收模式以接收左耳机发送的创建蓝牙连接命令,左右耳机通过左耳机设备地址和右耳机设备地址可以建立低功耗蓝牙连接或者低功耗蓝牙连接。本实施例中经典蓝牙连接也称之为BR(basic rate,基础速率)连接或者EDR(enhanced datarate,增强速率)连接,或者也可以称之为ACL(ASYNCHRONOUS LOGICAL LINKS,异步逻辑链路)连接;低功耗蓝牙连接也可以称之为LE(Low Energy,低功耗)连接,或者也可以称之为LEACL(Low Energy ASYNCHRONOUS LOGICAL LINKS,低功耗异步逻辑链路)连接,蓝牙耳机在出厂设置时,已经配置好了左耳机使用左耳机设备地址,右耳机使用右耳机设备地址,同时各自的默认地址也已经配置好,即可以根据需求对于第一蓝牙端和第二蓝牙端配置各自的默认地址和设备地址,该配置好的默认地址和设备地址可以存储在第一蓝牙端和第二蓝牙端,一般的,对于任一蓝牙端,默认地址与设备地址不同。In this embodiment, for convenience of description, the Bluetooth connection established through the default address may be referred to as the first Bluetooth connection, and the Bluetooth connection established through the device address may be referred to as the second Bluetooth connection, that is, between the first Bluetooth terminal and the second Bluetooth connection The Bluetooth connection established under the condition that the Bluetooth terminals do not know the device address of each other is called the first Bluetooth connection, and the Bluetooth connection established after the device addresses are known to each other is called the second Bluetooth connection. The address transmission method is applied to the first bluetooth end, and the first bluetooth end and the second bluetooth end are TWS bluetooth earphones as an example for illustration, and the left earphone and the right earphone of the TWS earphone record at least three addresses respectively. The addresses recorded by the left earphone include the default address, the left earphone device address, and the left earphone pairing address. Among them, the default address can be understood as a unified fixed address for all Bluetooth devices. The default address cannot be changed. The default addresses of the left earphone, the right earphone and other earphones are configured the same. Specifically, the format of the default address and the device address of the left earphone , the right earphone device address has the same format, for example, it can be data represented by 48-bit (6-byte) binary. The device address of the left earphone is the unique device address of the left earphone and cannot be changed. The pairing address of the left earphone is the unique device address of any right earphone paired with the left earphone. The pairing address of the left earphone can be modified by the address transmission method. Similarly, the address recorded by the right earphone also includes the default address, the device address of the right earphone and the pairing address of the right earphone. The pairing address of the right earphone is the unique device address of the right earphone and cannot be changed. The pairing address of the right earphone is any device that is paired with the right earphone. The unique device address of the left earphone and the pairing address of the right earphone can be modified by the address transmission method. It is understandable that the device address of any Bluetooth device is different. In addition, a Bluetooth device can only use one address at the same time. It is understandable that different addresses correspond to different frequency hopping sequences. For example, when a classic Bluetooth connection is established In the process, the master device (Master) calculates the frequency hopping sequence of the ID packet sent according to the device address of the slave device (Slave), and the slave device calculates the frequency hopping sequence of the received ID packet according to its own device address. The sequence is the same. When the left and right earphones use the same frequency hopping sequence, the left and right earphones can communicate with each other. For example, if the left earphone sends a command to create a Bluetooth connection to the Bluetooth terminal using the default address stored in the left earphone, and the right earphone uses the default address of the right earphone to enter the message receiving mode, the left and right earphones can establish a Bluetooth connection through the default address to communicate messages; or , the right earphone sends a command to create a Bluetooth connection to the Bluetooth terminal using the default address, and the left earphone uses the default address of the left earphone to enter the message receiving mode, then the left and right earphones can establish a Bluetooth connection through the default address to communicate messages. In addition, if two Bluetooth devices have been paired and know each other's device address, they can also establish a connection for communication. For example, the left earphone can send the Bluetooth end of the device address of the right earphone stored by itself to create a Bluetooth connection. Command, the right earphone can use the right earphone device address to enter the message receiving mode to receive the create Bluetooth connection command sent by the left earphone, and the left and right earphones can establish a low energy bluetooth connection or low energy bluetooth connection through the left earphone device address and the right earphone device address . In this embodiment, a classic Bluetooth connection is also called a BR (basic rate, basic rate) connection or an EDR (enhanced datarate, enhanced rate) connection, or can also be called an ACL (ASYNCHRONOUS LOGICAL LINKS, asynchronous logical link) connection; Low-power Bluetooth connection can also be called LE (Low Energy, low power) connection, or can also be called LEACL (Low Energy ASYNCHRONOUS LOGICAL LINKS, low-power asynchronous logic link) connection, the Bluetooth headset is set in the factory When the device address of the left earphone is used for the left earphone, the device address of the right earphone is used for the right earphone, and the respective default addresses have also been configured, that is, the default address of the first Bluetooth terminal and the second Bluetooth terminal can be configured according to the requirements. address and device address. The configured default address and device address can be stored in the first Bluetooth terminal and the second Bluetooth terminal. Generally, for any Bluetooth terminal, the default address is different from the device address.
在步骤S101中,通过第一蓝牙端的默认地址与第二蓝牙端建立第一蓝牙连接,具体的,第一蓝牙端根据第一蓝牙端的默认地址发送创建蓝牙连接命令给第二蓝牙端,创建蓝牙连接命令包括第一蓝牙端的默认地址,另外,创建蓝牙连接命令还可以包括蓝牙设备的ID、控制器的特性参数等信息。创建蓝牙连接命令用于建立第一蓝牙端和第二蓝牙端的经典蓝牙连接或者低功耗蓝牙连接。第一蓝牙端的默认地址和第二蓝牙端的默认地址相同,也可以理解通过第一蓝牙端的默认地址和第二蓝牙端的默认地址建立第一蓝牙端和第二蓝牙端之间的蓝牙连接。对于两只不知道对方设备地址的耳机,若需要成为一副耳机,则可以先通过二者相同的默认地址建立经典蓝牙连接或者LE连接。可以理解的是,在这种情况下,第一蓝牙连接和第二蓝牙连接互相不知道对方的设备地址,因此,第一蓝牙端和第二蓝牙端无法通过设备地址建立连接。若此时有多个蓝牙端在使用默认地址,则第一蓝牙端可能与多个第二蓝牙端连接,在这种情况下,第一蓝牙端可以选择一个第二蓝牙端,例如,选择一个RSSI最大的第二蓝牙端,即选择一个与其距离最近的第二蓝牙端,或者选择最先回复自己的蓝牙端建立蓝牙连接,第一蓝牙端可以和选择的第二蓝牙端建立经典蓝牙连接或者LE连接。地址传输方法也可以用于第二蓝牙端,在步骤S101中,第一蓝牙连接也可以由第二蓝牙端主动发起而建立,即第二蓝牙端也可以通过第二蓝牙端的默认地址与第一蓝牙端建立第一蓝牙连接,具体的,第二蓝牙端向使用第 二蓝牙端的默认地址的蓝牙端发送创建蓝牙连接,第一蓝牙端如果正在使用默认地址处于消息接收模式,则第一蓝牙端会收到该创建蓝牙连接命令,并且回复ACK(Acknowledge character,确认字符)给第二蓝牙端以建立蓝牙连接,从而实现地址传输。In step S101, a first Bluetooth connection is established with the second Bluetooth terminal through the default address of the first Bluetooth terminal. Specifically, the first Bluetooth terminal sends a Bluetooth connection creation command to the second Bluetooth terminal according to the default address of the first Bluetooth terminal to create a Bluetooth connection. The connection command includes the default address of the first Bluetooth terminal. In addition, the Bluetooth connection creation command may also include information such as the ID of the Bluetooth device and the characteristic parameters of the controller. The create bluetooth connection command is used to establish a classic bluetooth connection or a low energy bluetooth connection between the first bluetooth end and the second bluetooth end. The default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal, and it can also be understood that the bluetooth connection between the first bluetooth terminal and the second bluetooth terminal is established through the default address of the first bluetooth terminal and the default address of the second bluetooth terminal. For two earphones that do not know the address of each other's device, if they need to become a pair of earphones, they can first establish a classic Bluetooth connection or an LE connection through the same default address. It can be understood that, in this case, the first Bluetooth connection and the second Bluetooth connection do not know each other's device address, so the first Bluetooth terminal and the second Bluetooth terminal cannot establish a connection through the device address. If there are multiple bluetooth terminals using the default address at this time, the first bluetooth terminal may be connected with multiple second bluetooth terminals. In this case, the first bluetooth terminal can select a second bluetooth terminal, for example, select one The second bluetooth terminal with the largest RSSI, that is, choose a second bluetooth terminal that is closest to it, or choose the bluetooth terminal that responds first to establish a bluetooth connection. The first bluetooth terminal can establish a classic bluetooth connection with the selected second bluetooth terminal or LE connection. The address transmission method can also be used for the second bluetooth terminal. In step S101, the first bluetooth connection can also be initiated and established by the second bluetooth terminal, that is, the second bluetooth terminal can also communicate with the first bluetooth terminal through the default address of the second bluetooth terminal. The Bluetooth terminal establishes the first Bluetooth connection. Specifically, the second Bluetooth terminal sends the Bluetooth terminal that uses the default address of the second Bluetooth terminal to create a Bluetooth connection. If the first Bluetooth terminal is using the default address and is in the message receiving mode, the first Bluetooth terminal The command to create a bluetooth connection will be received, and an ACK (Acknowledge character, confirmation character) will be returned to the second bluetooth terminal to establish a bluetooth connection, thereby realizing address transmission.
在步骤S102中,当建立了第一蓝牙连接之后,则可以通过第一蓝牙连接互相发送自己的设备地址给对方,即第一蓝牙端通过第一蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且第二蓝牙端通过第一蓝牙连接发送第二蓝牙端的设备地址给第一蓝牙端,第一蓝牙端因而可以收到第二蓝牙端的设备地址,第二蓝牙端也可以收到第一蓝牙端的设备地址,以此实现设备地址的互通。另外,该地址传输方法也可以用于第二蓝牙端,即在步骤S102中,通过第一蓝牙连接,第二蓝牙端发送第二蓝牙端的设备地址给第一蓝牙端,并且,第二蓝牙端接收第一蓝牙端发送的第一蓝牙端的设备地址。In step S102, after the first Bluetooth connection is established, it can send its own device address to each other through the first Bluetooth connection, that is, the first Bluetooth terminal sends the device address of the first Bluetooth terminal to the second Bluetooth terminal through the first Bluetooth connection. Bluetooth terminal, and the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the first bluetooth connection, the first bluetooth terminal can receive the device address of the second bluetooth terminal, and the second bluetooth terminal can also receive the first bluetooth terminal. A device address of the Bluetooth terminal, so as to realize the intercommunication of device addresses. In addition, the address transmission method can also be used for the second bluetooth terminal, that is, in step S102, through the first bluetooth connection, the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal, and the second bluetooth terminal is connected. The device address of the first Bluetooth terminal sent by the first Bluetooth terminal is received.
本申请实施例提供的地址传输方法,由于第一蓝牙端和第二蓝牙端的默认地址相同,则第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令后,由于第二蓝牙端使用第二蓝牙端的默认地址进行消息接收,因此,第二蓝牙端可以收到该创建蓝牙连接命令,以使得可以成功的建立蓝牙连接。通过该默认地址先建立蓝牙连接,然后通过该蓝牙连接传输设备地址,以使得第一蓝牙端和第二蓝牙端都可以知道对方的设备地址,避免了在第一蓝牙端、第二蓝牙端和充电盒额外设置传输数据的管脚,因而结构简单,成本较低。In the address transmission method provided by the embodiment of the present application, since the default addresses of the first Bluetooth end and the second Bluetooth end are the same, after the first Bluetooth end sends the Bluetooth connection creation command to the Bluetooth end using the default address of the first Bluetooth end, because the second Bluetooth end The Bluetooth terminal uses the default address of the second Bluetooth terminal to receive messages, so the second Bluetooth terminal can receive the command to create a Bluetooth connection, so that the Bluetooth connection can be successfully established. First establish a Bluetooth connection through the default address, and then transmit the device address through the Bluetooth connection, so that both the first Bluetooth end and the second Bluetooth end can know the device address of the other party, avoiding the need for the first Bluetooth end, the second Bluetooth end and the The charging box is additionally provided with pins for transmitting data, so the structure is simple and the cost is low.
基于上述实施例公开的内容,本实施例中,请参考图2,一种地址传输方法可以包括以下步骤:Based on the contents disclosed in the foregoing embodiments, in this embodiment, referring to FIG. 2 , an address transmission method may include the following steps:
S201:判断是否满足预设条件;若满足,则执行步骤S202,若不满足,则执行步骤S201A:以预设时序继续判断是否满足预设条件;S201: judge whether the preset condition is met; if so, execute step S202, if not, execute step S201A: continue to judge whether the preset condition is met with the preset time sequence;
S202:通过第一蓝牙端的默认地址与第二蓝牙端建立第一蓝牙连接;第一蓝牙连接为经典蓝牙连接或者低功耗蓝牙连接;S202: Establish a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal; the first Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection;
S203:通过第一蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且,第一蓝牙端通过第一蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址。S203: Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and the first Bluetooth end receives the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
本实施例中,步骤S202-S203与前述实施例中的步骤S101、S102相同或者近似,此处不再赘述。在步骤S201中,需要判断是否满足预设条件,只有在满足预设条件时,才执行前述实施例中的地址传输,即只有在满足预设条件时,第一蓝牙端根据第一蓝牙端的默认地址发送创建蓝牙连接命令给第二蓝牙端,也可以理解为第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令。可以理解的是,如果第一蓝牙端和第二蓝牙端不清楚对方的设备地址,则可以通过二者相同的默认地址建立第一蓝牙连接以实现地址传输。本实施例中,预设条件可以为第一蓝牙端和第二蓝牙端互相未保存对方的设备地址,例如上一次与第一蓝牙端建立蓝牙连接的蓝牙端遗失因而第一蓝牙端需要获取到新的即将与之配对的第二蓝牙端的地址,另外,若第一蓝牙端没有存储其他蓝牙端的设备地址,也可以执行前述实施例的地址传输方法,以使得第一蓝牙端获取到第二蓝牙端的设备地址。步骤S201A中的预设时序可以是每秒钟判断一次预设条件是否满足,或者是每分钟判断一次预设条件是否满足。In this embodiment, steps S202-S203 are the same as or similar to steps S101 and S102 in the foregoing embodiment, and are not repeated here. In step S201, it is necessary to judge whether the preset conditions are met, and only when the preset conditions are met, the address transmission in the foregoing embodiment is performed, that is, only when the preset conditions are met, the first Bluetooth terminal performs the first Bluetooth terminal according to the default conditions of the first Bluetooth terminal. The address sending the Bluetooth connection creation command to the second Bluetooth terminal can also be understood as the first Bluetooth terminal sending the Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal. It can be understood that, if the first Bluetooth end and the second Bluetooth end do not know each other's device addresses, the first Bluetooth connection can be established through the same default address to realize address transmission. In this embodiment, the preset condition may be that the first bluetooth terminal and the second bluetooth terminal do not save each other's device address, for example, the bluetooth terminal that established a bluetooth connection with the first bluetooth terminal last time is lost, so the first bluetooth terminal needs to obtain The address of the new second bluetooth terminal to be paired with. In addition, if the first bluetooth terminal does not store the device addresses of other bluetooth terminals, the address transmission method of the foregoing embodiment can also be executed, so that the first bluetooth terminal can obtain the second bluetooth terminal. device address of the terminal. The preset sequence in step S201A may be to determine whether the preset condition is satisfied once per second, or to determine whether the preset condition is satisfied once per minute.
基于上述实施例公开的内容,本实施例中,以第一蓝牙端为左耳机,第二蓝牙端为右耳机为例进行说明。若用户遗失了一对耳机中的一只,或者是一对耳机中的某一只损坏,面对这种仅有一只耳机可以使用的情况,用户可以购买一只新的耳 机与可以正常使用的耳机配对进行使用,但是新买的耳机与原有的耳机互相并不知道对方的设备地址,基于此,需要进行地址传输的操作,使得左右耳机互相获取到对方的设备地址,这样左右耳机进而可以通过设备地址建立LE连接或者经典蓝牙连接。请参考图3,地址传输的过程可以包括如下步骤:Based on the contents disclosed in the above embodiments, in this embodiment, the first Bluetooth terminal is the left earphone and the second Bluetooth terminal is the right earphone as an example for description. If the user loses one of a pair of earphones, or one of the pair of earphones is damaged, in the face of such a situation that only one earphone can be used, the user can buy a new earphone and one that can be used normally. The earphones are paired for use, but the newly bought earphones and the original earphones do not know each other's device address. Based on this, the address transmission operation needs to be performed, so that the left and right earphones can obtain each other's device address, so that the left and right earphones can further Establish an LE connection or a classic Bluetooth connection via the device address. Referring to Figure 3, the process of address transmission may include the following steps:
S301:判断是否满足预设条件;若满足,则执行步骤S302,若不满足,则执行步骤S301A:以预设时序继续判断是否满足预设条件;S301: judge whether the preset condition is met; if so, execute step S302, if not, execute step S301A: continue to judge whether the preset condition is met with the preset time sequence;
S302:通过主耳机保存的默认地址在主耳机与副耳机之间建立经典蓝牙连接或者低功耗蓝牙连接;S302: establish a classic bluetooth connection or low-power bluetooth connection between the main earphone and the auxiliary earphone through the default address saved by the main earphone;
S303:主耳机通过建立的该蓝牙连接向副耳机发送主耳机地址,副耳机通过建立的该蓝牙连接向主耳机发送副耳机地址;S303: the main earphone sends the main earphone address to the secondary earphone through the established Bluetooth connection, and the secondary earphone sends the secondary earphone address to the main earphone through the established Bluetooth connection;
S304:断开建立的该蓝牙连接;S304: Disconnect the established Bluetooth connection;
在步骤S301中,满足预设条件是执行S302的前提,即若符合预设条件,则建立第一蓝牙连接,这样可以避免前述实施例中的地址传输过程被频繁启动而浪费功耗。具体的,预设条件可以包括以下几种方式,例如,可以判断两只耳机上的按键是否同时被长按,若同时被长按,则满足预设条件,但是这种方式容易由于用户误触而使得S302被误触发;另外,也可以是通过手机APP实现,具体的,可以判断手机的蓝牙列表中是否有两只耳机被选定并且同时被选定为执行复位,若是,则满足预设条件,但是这个触发条件比较复杂,给用户带来操作繁琐的问题。步骤S301A与前述实施例中的步骤S201A相同或者近似,此处不再赘述。In step S301, satisfying the preset condition is the premise of executing S302, that is, if the preset condition is met, the first Bluetooth connection is established, which can avoid the waste of power consumption due to frequent activation of the address transmission process in the foregoing embodiment. Specifically, the preset conditions may include the following methods. For example, it can be determined whether the buttons on the two earphones are pressed and held at the same time. If they are pressed for a long time at the same time, the preset conditions are satisfied. As a result, S302 is triggered by mistake; in addition, it can also be realized through the mobile phone APP. Specifically, it can be determined whether there are two earphones in the Bluetooth list of the mobile phone that are selected and selected to perform reset at the same time. If so, the preset is satisfied. condition, but this trigger condition is more complicated, which brings tedious operation to the user. Step S301A is the same as or similar to step S201A in the foregoing embodiment, and is not repeated here.
基于上述实施例公开的内容,本实施例中,预设条件可以包括第一预设条件、第三预设条件中的一种或两种。Based on the contents disclosed in the foregoing embodiments, in this embodiment, the preset condition may include one or both of the first preset condition and the third preset condition.
第一预设条件为充电盒上预设的复位按键被启动,具体的,若用户想要使得两个本来不是一对的耳机可以建立蓝牙连接成为一对,即想要使得两个以前没有通信过的耳机进行通信,则可以触摸充电盒上的预设的复位按键,以使得前述实施例中的地址传输流程开启,使得第一蓝牙端和第二蓝牙端互相获取到对方的设备地址,从而使得第一蓝牙端和第二蓝牙端可以根据设备地址建立LE连接或者经典蓝牙连接。本实施例中,预设的复位按键也可以是实体按键,也可以是虚拟按键,并且,对预设的复位按键的触摸时长不作限定,可以是长时间按,例如1秒,或者2秒,如果预设条件设置为长按复位按键,则以复用其他功能按键,例如,第一预设条件可以设置为充电盒上预设的复位按键被长按超过5s。The first preset condition is that the preset reset button on the charging box is activated. Specifically, if the user wants to make two headphones that are not originally a pair can establish a Bluetooth connection to become a pair, that is, they want to make the two headphones have no communication before. If you want to communicate with the past headset, you can touch the preset reset button on the charging box to enable the address transmission process in the foregoing embodiment, so that the first Bluetooth terminal and the second Bluetooth terminal can obtain each other's device address, thereby This enables the first Bluetooth terminal and the second Bluetooth terminal to establish an LE connection or a classic Bluetooth connection according to the device address. In this embodiment, the preset reset button may also be a physical button or a virtual button, and the touch duration of the preset reset button is not limited. If the preset condition is set to long-press the reset button, other function buttons can be reused. For example, the first preset condition can be set as the preset reset button on the charging box is long-pressed for more than 5s.
第三预设条件为通过设备地址建立第一蓝牙端和第二蓝牙端之间的蓝牙连接失败,具体的,第一蓝牙端和第二蓝牙端之间通过设备地址建立蓝牙连接失败,可能是由于第一蓝牙端和第二蓝牙端互相不知道对方的设备地址,因此,无法成功地通过设备地址建立蓝牙连接,在这种情况下,第一蓝牙端和第二蓝牙端不能被识别为一对耳机,可以理解的是,若两个耳机已经配对为一副耳机,则这两个耳机之间应该互相知道对方的设备地址,具体的,左耳机需要知道右耳机地址,或者,右耳机需要知道左耳机地址,这样二者之间才可以建立蓝牙连接,以交互信息,例如,实现转发模式。因此,当第一蓝牙端和第二蓝牙端通过设备地址建立蓝牙连接失败时,可以开始地址传输流程,即,第一蓝牙端根据第一蓝牙端的默认地址发送创建蓝牙连接命令给第二蓝牙端,以使得第一蓝牙端和第二蓝牙端可以通过默认地址建立蓝牙连接从而互相获取到对方的设备地址,进而使得第一蓝牙端和第二蓝牙端可以通过设备地址进行通信,而不再使用默认地址。本实施例中,第三预设条件为通过设备地址建立第一蓝牙端和第二蓝牙端之间的蓝牙连接失败,对通过设备地址建 立蓝牙连接失败的次数不做限制,例如,第一预设条件可以为建立第一蓝牙端和第二蓝牙端之间的蓝牙连接失败的次数超过预设次数,预设次数可以是1次、2次、3次等,当预设次数为2次或者3次时,可以理解为第一蓝牙端已经尝试过多次与第二蓝牙端通过设备地址建立蓝牙连接,但是都未成功,在这种情况下,很可能是由于二者不清楚对方的设备地址,此时,需要通过默认地址建立蓝牙连接,通过该蓝牙连接,第一蓝牙端和第二蓝牙端可以获取对方的设备地址。另外,第一蓝牙端和第二蓝牙端之间通过默认地址建立蓝牙连接的行为可以是第一蓝牙端主动发起而建立,也可以是第二蓝牙端主动发起而建立,本实施例对此不作限定。本实施例中,通过设备地址建立第一蓝牙端和第二蓝牙端之间的蓝牙连接失败包括:第一蓝牙端在预设时间内未收到第二蓝牙端的第二确认字符,第二确认字符为第二蓝牙端对第一蓝牙端向使用第一蓝牙端存储的第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令的应答。可以理解的是,在通过设备地址建立第一蓝牙端和第二蓝牙端之间的蓝牙连接时,第一蓝牙端向使用第一蓝牙端存储的第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令,创建蓝牙连接命令用于建立第一蓝牙端和第二蓝牙端的经典蓝牙连接或者低功耗蓝牙连接。另外,若误触了充电盒上的复位按键,即使互相知道蓝牙地址,若是两个蓝牙端距离较远,也不能成功地通过设备地址建立蓝牙连接,这种情况下,由于两个蓝牙距离较远,使用默认地址建立蓝牙连接也会失败。等到两个蓝牙端距离较近一些后,若两个蓝牙端互相不知道设备地址,依然可以依靠默认地址尝试建立蓝牙连接。The third preset condition is that the establishment of the Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal through the device address fails. Specifically, the establishment of the Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal through the device address fails, which may be Since the first bluetooth terminal and the second bluetooth terminal do not know each other's device address, the bluetooth connection cannot be successfully established through the device address. In this case, the first bluetooth terminal and the second bluetooth terminal cannot be identified as one For earphones, it can be understood that if two earphones have been paired as a pair of earphones, the two earphones should know each other's device address. Specifically, the left earphone needs to know the right earphone address, or the right earphone needs to know the address of the right earphone. Know the address of the left earphone, so that a Bluetooth connection can be established between the two to exchange information, for example, to implement forwarding mode. Therefore, when the first bluetooth terminal and the second bluetooth terminal fail to establish a bluetooth connection through the device address, the address transmission process can be started, that is, the first bluetooth terminal sends a bluetooth connection creation command to the second bluetooth terminal according to the default address of the first bluetooth terminal , so that the first bluetooth terminal and the second bluetooth terminal can establish a bluetooth connection through the default address to obtain each other's device address, so that the first bluetooth terminal and the second bluetooth terminal can communicate through the device address without using default address. In this embodiment, the third preset condition is that the establishment of the Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal through the device address fails, and the number of times that the Bluetooth connection fails to be established through the device address is not limited. For example, the first preset The set condition may be that the number of failures to establish a Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal exceeds a preset number of times, and the preset number of times may be 1 time, 2 times, 3 times, etc., when the preset number of times is 2 times or 3 times, it can be understood that the first bluetooth terminal has tried to establish a bluetooth connection with the second bluetooth terminal through the device address many times, but all failed. address, at this time, a Bluetooth connection needs to be established through the default address, and through the Bluetooth connection, the first Bluetooth terminal and the second Bluetooth terminal can obtain the device address of each other. In addition, the behavior of establishing a Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal through the default address may be established by the first Bluetooth terminal initiatively initiated or initiated by the second Bluetooth terminal. limited. In this embodiment, the failure to establish a Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal by using the device address includes: the first Bluetooth terminal does not receive the second confirmation character from the second Bluetooth terminal within the preset time, and the second confirmation The character is the response of the second bluetooth terminal to the bluetooth connection creation command sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal stored by the first bluetooth terminal. It can be understood that when the Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal is established through the device address, the first Bluetooth terminal sends the Bluetooth terminal that uses the pairing address of the first Bluetooth terminal stored in the first Bluetooth terminal to create a Bluetooth connection. The connection command, the create bluetooth connection command is used to establish a classic bluetooth connection or a low-power bluetooth connection between the first bluetooth terminal and the second bluetooth terminal. In addition, if the reset button on the charging box is touched by mistake, even if the Bluetooth addresses are known to each other, if the two Bluetooth terminals are far away, the Bluetooth connection cannot be successfully established through the device address. far, establishing a bluetooth connection using the default address will also fail. After the two bluetooth terminals are closer, if the two bluetooth terminals do not know the device address of each other, they can still try to establish a bluetooth connection by relying on the default address.
基于上述实施例公开的内容,本实施例中,预设条件可以包括第一预设条件和第三预设条件,即充电盒上预设的复位按键被启动,并且通过设备地址建立第一蓝牙端和第二蓝牙端之间的低功耗连接失败,则第一蓝牙端通过第一蓝牙端的默认地址与第二蓝牙端建立第一蓝牙连接。可以理解的是,假设充电盒上预设了复位按键,用户有时候可能不小心碰到了该复位按键,但是左右耳机其实互相知道对方的设备地址,此时就没有必要进行地址传输,因此,预设条件设置为除了充电盒上预设的复位按键被启动之外,还包括通过设备地址建立第一蓝牙端和第二蓝牙端之间的蓝牙连接失败,在这种情况下,即使充电盒上的预设的复位按键被误启动,如果第一蓝牙端和第二蓝牙端之间通过设备地址建立蓝牙连接成功,则也不进行地址传输,以免不必要的功率消耗。Based on the content disclosed in the above embodiments, in this embodiment, the preset conditions may include a first preset condition and a third preset condition, that is, the preset reset button on the charging box is activated, and the first Bluetooth is established through the device address. If the low-power connection between the terminal and the second Bluetooth terminal fails, the first Bluetooth terminal establishes a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal. It is understandable that, assuming that the reset button is preset on the charging box, the user may accidentally touch the reset button sometimes, but the left and right earphones actually know each other's device address, so there is no need for address transmission at this time. The condition is set to not only be activated by the reset button preset on the charging box, but also include the failure to establish a Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal through the device address. If the preset reset button of the device is activated by mistake, if the Bluetooth connection is successfully established between the first Bluetooth terminal and the second Bluetooth terminal through the device address, the address transmission will not be performed to avoid unnecessary power consumption.
基于上述实施例公开的内容,本实施例中,也可以先判断是否满足第一预设条件,若满足第一预设条件,第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令,再判断是否满足第三预设条件,若第三预设条件也满足,则可以执行前述实施例中的地址传输方法。请参考图4,本实施例的地址传输方法可以包括以下步骤:Based on the content disclosed in the above embodiments, in this embodiment, it is also possible to first determine whether the first preset condition is met. If the first preset condition is met, the first Bluetooth terminal sends the created Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal. Bluetooth connection command, and then determine whether the third preset condition is satisfied, and if the third preset condition is also satisfied, the address transmission method in the foregoing embodiment can be executed. Referring to FIG. 4 , the address transmission method of this embodiment may include the following steps:
S401:判断是否满足第一预设条件;若满足第一预设条件,则执行步骤S402;S401: Determine whether the first preset condition is met; if the first preset condition is met, perform step S402;
S402:第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令;S402: The first bluetooth terminal sends a bluetooth connection creation command to the bluetooth terminal using the pairing address of the first bluetooth terminal;
S403:判断第一蓝牙端是否收到第二蓝牙端发送的对于该创建蓝牙连接命令的应答;若没有收到该应答,则执行步骤S404;S403: Determine whether the first bluetooth terminal has received a response to the command to create a bluetooth connection sent by the second bluetooth terminal; if the response is not received, perform step S404;
S404:第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令以与第二蓝牙端建立第一蓝牙连接;S404: The first bluetooth terminal sends a create bluetooth connection command to the bluetooth terminal using the default address of the first bluetooth terminal to establish a first bluetooth connection with the second bluetooth terminal;
S405:通过第一蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且,第一蓝牙端通过第一蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址。S405: Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and the first Bluetooth end receives the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
在步骤S401中,若不满足第一预设条件,说明充电盒上预设的复位按键没有被启动,即用户目前不需要使得两只耳机之间可以建立连接,则可以执行步骤S401A:以预设时序继续判断是否满足预设条件;在步骤S403中,若不满足第三预设条件,即虽然复位按键被启动,但是第一蓝牙端和第二蓝牙端之间通过设备地址建立蓝牙连接成功,则意味着用户可能误触了充电盒上的复位按键,其实第一蓝牙端和第二蓝牙端之间是互相知道对方的设备地址的,因此,这二者之间才可以成功地通过二者的设备地址建立蓝牙连接,此时,可以以预设时序判断是否满足预设条件,以确认下一时刻是否需要通过默认地址完成设备地址的传输。步骤S404与步骤S405与前述实施例中的步骤S102和S103相同或者相似,此处不再赘述。本实施例中,先判断充电盒上预设的复位按键是否被启动,若启动,则判断通过设备地址建立蓝牙连接是否失败,若失败,则通过默认地址建立蓝牙连接,若通过默认地址建立蓝牙连接成功,这样第一蓝牙端和第二蓝牙端可以通过该蓝牙连接互相发送各自的设备地址。本实施例中,由于充电盒上的预设的复位按键被按下的概率较低,相比较于先判断通过设备地址建立蓝牙连接是否失败,再判断复位按键是否被按下的预设条件,本实施例中,先判断充电盒上预设的复位按键是否被按下,再判断通过设备地址建立蓝牙连接是否失败的预设条件有更好的效果,具体的,这可以避免耳机通过设备地址不断的尝试与其他耳机进行蓝牙连接,以至于浪费功耗。步骤S401A与前述实施例中的步骤S201A相同或者近似,此处不再赘述。In step S401, if the first preset condition is not met, it means that the preset reset button on the charging box has not been activated, that is, the user does not need to establish a connection between the two earphones at present, then step S401A can be executed: to preset Set the time sequence to continue to judge whether the preset condition is met; in step S403, if the third preset condition is not met, that is, although the reset button is activated, the Bluetooth connection between the first Bluetooth terminal and the second Bluetooth terminal is successfully established through the device address. , it means that the user may have touched the reset button on the charging box by mistake. In fact, the first Bluetooth terminal and the second Bluetooth terminal know each other's device address. Therefore, the two can successfully pass the two The device address of the user establishes a Bluetooth connection. At this time, it can be judged whether the preset conditions are met according to the preset time sequence, so as to confirm whether the transmission of the device address needs to be completed through the default address at the next moment. Steps S404 and S405 are the same as or similar to steps S102 and S103 in the foregoing embodiments, and will not be repeated here. In this embodiment, it is first determined whether the preset reset button on the charging box is activated. If activated, it is determined whether the establishment of the Bluetooth connection through the device address fails. If it fails, the Bluetooth connection is established through the default address. If the Bluetooth connection is established through the default address The connection is successful, so that the first Bluetooth terminal and the second Bluetooth terminal can send their respective device addresses to each other through the Bluetooth connection. In this embodiment, since the probability of the preset reset button on the charging box being pressed is low, compared with the preset condition of first judging whether the establishment of the Bluetooth connection through the device address fails, and then judging whether the reset button is pressed, In this embodiment, it is more effective to first determine whether the preset reset button on the charging box is pressed, and then determine whether the Bluetooth connection fails to be established through the device address. Specifically, this can prevent the headset from passing the device address. Constantly trying to connect with other headphones via bluetooth wastes power consumption. Step S401A is the same as or similar to step S201A in the foregoing embodiment, and details are not repeated here.
基于上述实施例公开的内容,本实施例中,预设条件还可以包括第二预设条件,第二预设条件为第一蓝牙端和第二蓝牙端均被放置于充电盒内。具体的,例如,若检测到第一蓝牙端和第二蓝牙端被放置于充电盒内,并且充电盒上预设的复位按键被启动,则满足预设条件,则可以通过默认地址建立蓝牙连接并且第一蓝牙端和第二蓝牙端可以通过该蓝牙连接互相发送各自的设备地址给对方,以使得第一蓝牙连接和第二蓝牙连接可以收到对方的设备地址。具体的,再例如,若第一蓝牙端和第二蓝牙端被放置于充电盒内,并且第一蓝牙端和第二蓝牙端之间通过设备地址建立蓝牙连接失败,则满足预设条件,则可以建立第一蓝牙连接并且第一蓝牙端和第二蓝牙端可以通过该第一蓝牙连接互相发送各自的设备地址给对方,以使得第一蓝牙端和第二蓝牙端可以收到对方的设备地址。将两只耳机放进充电盒并且触摸或者按下充电盒上的复位按键,这样才建立第一蓝牙连接,相比于将两只耳机放进充电盒就进行地址传输的方案,避免了浪费功耗,因为并不是每次将耳机放进充电盒就是为了地址传输,更多的时候只是为了给耳机充电。本实施例中,对于第一蓝牙端来说,请参考图5,本实施例的地址传输方法包括以下步骤:Based on the contents disclosed in the above embodiments, in this embodiment, the preset condition may further include a second preset condition, and the second preset condition is that both the first Bluetooth terminal and the second Bluetooth terminal are placed in the charging box. Specifically, for example, if it is detected that the first bluetooth terminal and the second bluetooth terminal are placed in the charging box, and the preset reset button on the charging box is activated, and the preset conditions are met, the Bluetooth connection can be established through the default address. And the first bluetooth terminal and the second bluetooth terminal can send their respective device addresses to each other through the bluetooth connection, so that the first bluetooth connection and the second bluetooth connection can receive the other party's device address. Specifically, for another example, if the first bluetooth terminal and the second bluetooth terminal are placed in the charging box, and the establishment of a bluetooth connection between the first bluetooth terminal and the second bluetooth terminal through the device address fails, the preset conditions are met, then A first bluetooth connection can be established and the first bluetooth end and the second bluetooth end can send their respective device addresses to each other through the first bluetooth connection, so that the first bluetooth end and the second bluetooth end can receive each other's device address . Put the two earphones into the charging box and touch or press the reset button on the charging box to establish the first Bluetooth connection. Compared with the solution of putting the two earphones into the charging box for address transmission, it avoids wasting energy. consumption, because not every time the headset is put into the charging box is for address transmission, more often it is just to charge the headset. In this embodiment, for the first Bluetooth terminal, please refer to FIG. 5 , the address transmission method in this embodiment includes the following steps:
S501:判断充电盒上预设的复位按键被启动;若充电盒上预设的复位按键被启动,则执行步骤S502;若充电盒上预设的复位按键没有被启动,则执行步骤S501A:以预设时序继续判断是否满足预设条件;S501: determine that the preset reset button on the charging box is activated; if the preset reset button on the charging box is activated, then execute step S502; if the preset reset button on the charging box is not activated, execute step S501A: with The preset timing continues to determine whether the preset conditions are met;
S502:判断第一蓝牙端是否被置于充电盒内;若第一蓝牙端被置于充电盒内,则执行步骤S503;若不满足,则执行步骤S501A;S502: Determine whether the first Bluetooth terminal is placed in the charging box; if the first Bluetooth terminal is placed in the charging box, go to step S503; if not, go to step S501A;
S503:第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令;S503: The first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the pairing address of the first Bluetooth terminal;
S504:判断第一蓝牙端是否收到第二蓝牙端发送的对于该创建蓝牙连接命令的应答;若第一蓝牙端收到第二蓝牙端发送的对于该创建蓝牙连接命令的应答,则执行步骤S505;若不满足,则执行步骤S501A;S504: Determine whether the first bluetooth terminal receives a response to the command to create a bluetooth connection sent by the second bluetooth terminal; if the first bluetooth terminal receives a response to the command to create a bluetooth connection sent by the second bluetooth terminal, perform steps S505; if not satisfied, execute step S501A;
S505:通过第一蓝牙端的默认地址与第二蓝牙端建立第一蓝牙连接;S505: Establish a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal;
S506:通过第一蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且,第一蓝牙端通过第一蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址。S506: Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and the first Bluetooth end receives the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
本实施例中,步骤S505、S506与前述实施例中的步骤S202和S203相同或者相似,此处不再赘述。本实施例中,先判断充电盒上的预设的复位按键是否被启动,若启动,再判断第一蓝牙端和第二蓝牙端是否被放置在充电盒内,若第一蓝牙端和第二蓝牙端均被放置在充电盒内,再判断第一蓝牙端和第二蓝牙端之间通过设备地址建立蓝牙连接是否失败,若失败,则第一蓝牙端和第二蓝牙端之间通过默认地址建立第一蓝牙连接并且第一蓝牙端和第二蓝牙端通过该第一蓝牙连接发送各自的设备地址给对方,以实现地址传输,便于后续第一蓝牙端和第二蓝牙端通过设备地址进行通信。步骤S501A与前述实施例中的步骤S201A相同或者近似,此处不再赘述。In this embodiment, steps S505 and S506 are the same as or similar to steps S202 and S203 in the foregoing embodiment, and are not repeated here. In this embodiment, it is first determined whether the preset reset button on the charging box is activated. If activated, it is then determined whether the first Bluetooth terminal and the second Bluetooth terminal are placed in the charging box. The bluetooth terminals are placed in the charging box, and then it is determined whether the establishment of the bluetooth connection between the first bluetooth terminal and the second bluetooth terminal through the device address fails. If it fails, the first bluetooth terminal and the second bluetooth terminal pass the default address. A first Bluetooth connection is established, and the first Bluetooth terminal and the second Bluetooth terminal send their respective device addresses to each other through the first Bluetooth connection, so as to realize address transmission and facilitate subsequent communication between the first Bluetooth terminal and the second Bluetooth terminal through the device address. . Step S501A is the same as or similar to step S201A in the foregoing embodiment, and is not repeated here.
基于上述实施例公开的内容,本实施例中,若满足第一预设条件和第二预设条件,充电盒将预设电平序列发送给第一蓝牙端,例如发送一定顺序的高电平和低电平组成的序列给第一蓝牙端。第一蓝牙端收到该预设电平序列后,第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令;或者第一蓝牙端收到该预设电平序列后,第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令并且判断是否满足第三预设条件,若满足第三预设条件,第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令。对于第二蓝牙端来说,若满足第一或者第五预设条件,充电盒将预设电平序列发送给第一蓝牙端。第二蓝牙端收到该预设电平序列后,第二蓝牙端可以使用第二蓝牙端的默认地址配置为消息接收模式,以使得第二蓝牙端可以接收第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令,从而第一蓝牙端与第二蓝牙端建立第一蓝牙连接;或者,第二蓝牙端收到该预设电平序列后,第二蓝牙端使用第二蓝牙端的设备地址进入消息接收模式,并且判断是否满足第六预设条件,第六预设条件为第二蓝牙端在预设时长内未收到第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令;若满足第六预设条件,第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式以接收第一蓝牙端发送的创建蓝牙连接命令,本实施例中,第五预设条件为第二蓝牙端被置于充电盒内。Based on the content disclosed in the above embodiments, in this embodiment, if the first preset condition and the second preset condition are satisfied, the charging box sends the preset level sequence to the first Bluetooth terminal, for example, sending a certain sequence of high level and A sequence consisting of a low level is sent to the first Bluetooth terminal. After the first bluetooth terminal receives the preset level sequence, the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal; or after the first bluetooth terminal receives the preset level sequence, The first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third preset condition is satisfied. If the third predetermined condition is satisfied, the first bluetooth terminal sends the default address using the first bluetooth terminal to the The bluetooth side sends the create bluetooth connection command. For the second Bluetooth terminal, if the first or fifth preset conditions are met, the charging box sends the preset level sequence to the first Bluetooth terminal. After the second bluetooth terminal receives the preset level sequence, the second bluetooth terminal can use the default address of the second bluetooth terminal to configure the message receiving mode, so that the second bluetooth terminal can receive the message from the first bluetooth terminal to the first bluetooth terminal. A Bluetooth connection creation command sent by the Bluetooth end with the default address, so that the first Bluetooth end and the second Bluetooth end establish a first Bluetooth connection; or, after the second Bluetooth end receives the preset level sequence, the second Bluetooth end uses the first Bluetooth connection. The device address of the two Bluetooth terminals enters the message receiving mode, and it is determined whether the sixth preset condition is met. The sixth preset condition is that the second Bluetooth terminal does not receive the first Bluetooth terminal within the preset period of time to use the first Bluetooth terminal pairing address If the sixth preset condition is met, the second bluetooth terminal uses the default address of the second bluetooth terminal to enter the message receiving mode to receive the create bluetooth connection command sent by the first bluetooth terminal. In this embodiment , and the fifth preset condition is that the second Bluetooth terminal is placed in the charging box.
本实施例中,判断预设条件是否满足的作用是用于启动蓝牙地址传输,以确定是否需要使得主耳机和副耳机互相知道对方的地址,从而主耳机和副耳机可以成为一对耳机,手机可以通过与主耳机地址的连接,就可以实现与主耳机和副耳机实现通信。具体的,请参考图6,在初始状态,即左右耳机互相不知道对方的设备地址的情况下,左耳机601记录了三个地址,分别是默认地址、左耳机地址和左耳机配对地址,左耳机配对地址可以理解为前一次与左耳机连接的耳机的地址,右耳机602记录了三个地址,分别是默认地址、右耳机地址和右耳机配对地址,右耳机配对地址可以理解为前一次与右耳机连接的耳机的地址,若图6中的左耳机601与右耳机602互相完成了配对,则左耳机配对地址就等于右耳机地址,右耳机地址就等于左耳机地址。In this embodiment, the function of judging whether the preset condition is satisfied is to start the Bluetooth address transmission, so as to determine whether it is necessary to make the main earphone and the auxiliary earphone know each other's address, so that the main earphone and the auxiliary earphone can become a pair of earphones, and the mobile phone By connecting with the address of the main earphone, communication with the main earphone and the sub-earphone can be realized. Specifically, please refer to FIG. 6 , in the initial state, that is, when the left and right earphones do not know each other's device addresses, the left earphone 601 records three addresses, which are the default address, the left earphone address and the left earphone pairing address, respectively. The earphone pairing address can be understood as the address of the earphone connected to the left earphone last time. The right earphone 602 records three addresses, which are the default address, the right earphone address, and the right earphone pairing address. The right earphone pairing address can be understood as the previous pairing address with the left earphone. The address of the earphone connected to the right earphone. If the left earphone 601 and the right earphone 602 in FIG. 6 are paired with each other, the pairing address of the left earphone is equal to the address of the right earphone, and the address of the right earphone is equal to the address of the left earphone.
在步骤S505中,由于主耳机不知道右耳机的设备地址,右耳机也不知道主耳机的设备地址,因此,在满足预设条件后,为了使得两个耳机之间的地址传输,可以通过主耳机的默认地址建立主耳机和副耳机之间的第一蓝牙连接,请参考图7所示的拓扑图,主耳机701与副耳机702都可以通过默认地址建立第一蓝牙连接,左耳机的默认地址等于右耳机的默认地址。请参考图7,如果是左耳机主动发起创建蓝牙连接命令,对于左耳机701,左耳机701可以向使用左耳机默认地址的右耳机发送 创建蓝牙连接命令,对于右耳机702,右耳机702使用右耳机默认地址进入消息接收模式以接收左耳机向使用左耳机默认地址的右耳机发送的创建蓝牙连接命令。类似的,如果是右耳机主动发起创建蓝牙连接命令,对于右耳机702,右耳机702可以向使用右耳机默认地址的左耳机发送创建蓝牙连接命令,对于左耳机701,左耳机701使用左耳机默认地址进入消息接收模式以接收右耳机向使用右耳机默认地址的左耳机发送的创建蓝牙连接命令。需要说明的是,主耳机的默认地址和副耳机的默认地址相同,建立第一蓝牙连接的过程可以是主耳机发起的,也可以是副耳机发起的,本实施例对此不作限定。In step S505, since the main earphone does not know the device address of the right earphone, and the right earphone does not know the device address of the main earphone, therefore, after the preset conditions are met, in order to enable the address transmission between the two earphones, the main earphone can be transmitted through the main earphone. The default address of the headset establishes the first Bluetooth connection between the main headset and the secondary headset. Please refer to the topology diagram shown in FIG. 7. Both the primary headset 701 and the secondary headset 702 can establish the first Bluetooth connection through the default address. The default address of the left headset The address is equal to the default address of the right earphone. Please refer to FIG. 7 , if the left earphone actively initiates a Bluetooth connection creation command, for the left earphone 701 , the left earphone 701 can send a Bluetooth connection creation command to the right earphone using the default address of the left earphone. For the right earphone 702 , the right earphone 702 uses the right earphone The headset default address enters the message receiving mode to receive the create bluetooth connection command sent by the left headset to the right headset using the default address of the left headset. Similarly, if the right earphone actively initiates the Bluetooth connection creation command, for the right earphone 702, the right earphone 702 can send the Bluetooth connection creation command to the left earphone using the default address of the right earphone. For the left earphone 701, the left earphone 701 uses the left earphone default address. The address enters the message receiving mode to receive the create bluetooth connection command sent by the right earphone to the left earphone using the default address of the right earphone. It should be noted that the default address of the main headset is the same as the default address of the secondary headset, and the process of establishing the first Bluetooth connection may be initiated by the primary headset or the secondary headset, which is not limited in this embodiment.
请参考图8,建立第一蓝牙连接01之后,主耳机可以通过该第一蓝牙连接01向副耳机发送主耳机地址,即左耳机地址,副耳机可以通过该第一蓝牙连接01向主耳机发送副耳机地址,即右耳机地址,这样,两个蓝牙耳机之间就实现了地址传输。当主耳机收到右耳机地址后,主耳机更新其记录的地址,具体的,用收到的右耳机地址代替原来的左耳机配对地址;当右耳机收到左耳机地址后,右耳机更新其记录的地址,具体的,用收到的左耳机地址代替原来的右耳机配对地址。主耳机和副耳机更新完其记录的地址之后,如图8所示,主耳机801记录了默认地址、左耳机地址和右耳机地址,右耳机802记录了默认地址,左耳机地址和右耳机地址。本实施例中,使用默认地址建立第一蓝牙连接的目的是为了可以进行地址传输,使得左耳机获取到右耳机地址,并且右耳机获取到左耳机地址,以便于后续使用设备地址进行通信,本实施例中,左耳机地址和右耳机地址都属于设备地址。Please refer to FIG. 8 , after the first Bluetooth connection 01 is established, the main earphone can send the address of the main earphone, that is, the address of the left earphone, to the secondary earphone through the first Bluetooth connection 01, and the secondary earphone can send the address of the main earphone to the main earphone through the first Bluetooth connection 01 The address of the secondary earphone is the address of the right earphone. In this way, the address transmission is realized between the two Bluetooth earphones. When the main earphone receives the address of the right earphone, the main earphone updates its recorded address, specifically, replaces the original pairing address of the left earphone with the received address of the right earphone; when the right earphone receives the address of the left earphone, the right earphone updates its record address, specifically, replace the original right earphone pairing address with the received left earphone address. After the primary headset and the secondary headset have updated their recorded addresses, as shown in FIG. 8 , the primary headset 801 records the default address, the left headset address and the right headset address, and the right headset 802 records the default address, the left headset address and the right headset address. . In this embodiment, the purpose of using the default address to establish the first Bluetooth connection is to enable address transmission, so that the left earphone can obtain the address of the right earphone, and the right earphone can obtain the address of the left earphone, so that the device address can be used for subsequent communication. In the embodiment, both the left earphone address and the right earphone address belong to the device address.
在步骤S506中,当主耳机和副耳机互相收到对方的设备地址后,可以更新了其记录的地址,另外,当主耳机和副耳机互相收到对方的设备地址后,可以断开第一蓝牙连接,以节省功耗。断开第一蓝牙连接之后,还可以设置左耳机为主耳机,右耳机为副耳机,左耳机使用左耳机设备地址工作,右耳机使用右耳机地址工作。In step S506, after the main headset and the secondary headset receive each other's device address, the recorded addresses can be updated. In addition, when the primary headset and the secondary headset receive each other's device address, the first Bluetooth connection can be disconnected , to save power consumption. After disconnecting the first Bluetooth connection, you can also set the left earphone as the main earphone, the right earphone as the secondary earphone, the left earphone works with the left earphone device address, and the right earphone works with the right earphone address.
基于上述实施例公开的内容,本实施例中,请参考图9,在步骤S102之后,还可以包括步骤S103:断开第一蓝牙连接。本实施例中,当实现地址传输之后,第一蓝牙连接便使用完了,则可以断开第一蓝牙连接,以节省功耗。Based on the contents disclosed in the above embodiments, in this embodiment, please refer to FIG. 9 , after step S102 , step S103 : disconnecting the first Bluetooth connection may be further included. In this embodiment, after the address transmission is implemented and the first Bluetooth connection is used up, the first Bluetooth connection can be disconnected to save power consumption.
基于上述实施例公开的内容,本实施例中,请参考图10,地址传输方法包括以下步骤:Based on the content disclosed in the above embodiments, in this embodiment, please refer to FIG. 10 , the address transmission method includes the following steps:
S1001:通过第一蓝牙端的默认地址与第二蓝牙端建立第一蓝牙连接;第一蓝牙连接为经典蓝牙连接或者低功耗蓝牙连接;S1001: Establish a first Bluetooth connection with the second Bluetooth terminal through the default address of the first Bluetooth terminal; the first Bluetooth connection is a classic Bluetooth connection or a low-power Bluetooth connection;
S1002:通过第一蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且,通过第一蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址。S1002: Send the device address of the first Bluetooth end to the second Bluetooth end through the first Bluetooth connection, and receive the device address of the second Bluetooth end sent by the second Bluetooth end through the first Bluetooth connection.
S1003:断开第一蓝牙连接;S1003: Disconnect the first Bluetooth connection;
S1004:通过第一蓝牙端的设备地址或者第二蓝牙端的设备地址建立第一蓝牙端和第二蓝牙端之间的第二蓝牙连接;本实施例中,第二蓝牙连接为低功耗蓝牙连接或者经典蓝牙连接,步骤S1001-S1003与前述实施例中的步骤S101-S103相同或者近似,此处不再赘述。断开第一蓝牙连接之后,第一蓝牙端可以通过收到的第二蓝牙端的设备地址建立第二蓝牙连接,或者,第二蓝牙端也可以通过收到的第一蓝牙端的设备地址建立第二蓝牙连接,以实现左右耳机之间的通信。具体的,请参考图11,左耳机1101可以向使用右耳机地址的蓝牙端发送创建蓝牙连接命令,右耳机1102使用右耳机地址进入消息接收模式以接收到该创建蓝牙连接命令从而建立第二蓝牙连接02利用设备地址进行通信。S1004: Establish a second Bluetooth connection between the first Bluetooth end and the second Bluetooth end by using the device address of the first Bluetooth end or the device address of the second Bluetooth end; in this embodiment, the second Bluetooth connection is a low-power Bluetooth connection or In the classic Bluetooth connection, steps S1001-S1003 are the same as or similar to steps S101-S103 in the foregoing embodiment, and are not repeated here. After disconnecting the first bluetooth connection, the first bluetooth terminal can establish a second bluetooth connection through the received device address of the second bluetooth terminal, or the second bluetooth terminal can also establish a second bluetooth connection through the received device address of the first bluetooth terminal. Bluetooth connection for communication between left and right earphones. Specifically, please refer to FIG. 11 , the left earphone 1101 can send a command to create a Bluetooth connection to the Bluetooth terminal using the address of the right earphone, and the right earphone 1102 uses the address of the right earphone to enter a message receiving mode to receive the command to create a Bluetooth connection to establish a second Bluetooth connection Connection 02 communicates using the device address.
基于上述实施例公开的内容,本实施例中,第一蓝牙端收到第二蓝牙端发送 的第二蓝牙端的设备地址后,第一蓝牙端记录收到的第二蓝牙端发送的第二蓝牙端的设备地址为第一蓝牙端配对地址,若以前第一蓝牙端记录有第一蓝牙端配对地址,当收到新的第二蓝牙端发送的第二蓝牙端的设备地址后,第一蓝牙端用新收到的第二蓝牙端的设备地址替换第一蓝牙端配对地址,以更新第一蓝牙端配对地址;同样的,第二蓝牙端收到第一蓝牙端发送的第一蓝牙端的设备地址之后,第二蓝牙端将新收到的第一蓝牙端的设备地址记录为第二蓝牙端配对地址。可以理解的是,本实施例中的记录可以指存储,即第一蓝牙端存储收到的第二蓝牙端的地址,第二蓝牙端存储收到的第一蓝牙端的地址。具体的,以左耳机为例进行说明,左耳机收到了右耳机发送的右耳机的设备地址后,左耳机记录该右耳机的设备地址。Based on the content disclosed in the above embodiments, in this embodiment, after the first Bluetooth end receives the device address of the second Bluetooth end sent by the second Bluetooth end, the first Bluetooth end records the received second Bluetooth end sent by the second Bluetooth end The device address of the terminal is the pairing address of the first bluetooth terminal. If the first bluetooth terminal previously recorded the pairing address of the first bluetooth terminal, after receiving the device address of the second bluetooth terminal sent by the new second bluetooth terminal, the first bluetooth terminal uses The newly received device address of the second bluetooth terminal replaces the pairing address of the first bluetooth terminal to update the pairing address of the first bluetooth terminal; similarly, after the second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal, The second bluetooth terminal records the newly received device address of the first bluetooth terminal as the pairing address of the second bluetooth terminal. It can be understood that the record in this embodiment may refer to storage, that is, the first Bluetooth end stores the received address of the second Bluetooth end, and the second Bluetooth end stores the received address of the first Bluetooth end. Specifically, taking the left earphone as an example for illustration, after the left earphone receives the device address of the right earphone sent by the right earphone, the left earphone records the device address of the right earphone.
基于上述实施例公开的内容,本实施例中,请参考图12,通过第一蓝牙端的设备地址或者第二蓝牙端的设备地址建立第一蓝牙端和第二蓝牙端之间的第二蓝牙连接可以包括以下步骤:Based on the content disclosed in the above embodiments, in this embodiment, please refer to FIG. 12 , establishing a second Bluetooth connection between the first Bluetooth end and the second Bluetooth end through the device address of the first Bluetooth end or the device address of the second Bluetooth end can be Include the following steps:
S1201:第一蓝牙端通过第一蓝牙端记录的第二蓝牙端的设备地址配置为创建蓝牙连接的模式;S1201: The first bluetooth terminal is configured to create a bluetooth connection mode through the device address of the second bluetooth terminal recorded by the first bluetooth terminal;
S1202:第一蓝牙端接收到第二蓝牙端发送的广播消息后,判断广播消息中是否包含第一蓝牙端记录的第二蓝牙端的设备地址;若包含,则执行步骤S1203;若不包含,则返回步骤S1201,重新开始通过设备地址建立第二蓝牙连接:S1202: After receiving the broadcast message sent by the second Bluetooth terminal, the first Bluetooth terminal determines whether the broadcast message contains the device address of the second Bluetooth terminal recorded by the first Bluetooth terminal; if it does, go to step S1203; if not, then Return to step S1201, and restart the establishment of the second Bluetooth connection through the device address:
S1203:第一蓝牙端向第二蓝牙端发送创建蓝牙连接命令;该创建蓝牙连接命令用于建立经典蓝牙连接或者是低功耗蓝牙连接。S1203: The first Bluetooth terminal sends a Bluetooth connection creation command to the second Bluetooth terminal; the Bluetooth connection creation command is used to establish a classic Bluetooth connection or a low-power Bluetooth connection.
基于上述实施例公开的内容,本实施例中,请参考图13,通过第一蓝牙端的默认地址建立第一蓝牙连接可以包括以下步骤:Based on the content disclosed in the above embodiments, in this embodiment, please refer to FIG. 13 , establishing a first Bluetooth connection through the default address of the first Bluetooth terminal may include the following steps:
S1301:第一蓝牙端向使用第一蓝牙端默认地址的蓝牙端发送创建蓝牙连接命令,创建蓝牙连接命令包括第一蓝牙端的默认地址;S1301: The first bluetooth terminal sends a bluetooth connection creation command to the bluetooth terminal using the default address of the first bluetooth terminal, and the bluetooth connection creation command includes the default address of the first bluetooth terminal;
S1302:第一蓝牙端接收到第二蓝牙端发送的对于该创建蓝牙连接命令的应答消息。S1302: The first Bluetooth terminal receives a response message sent by the second Bluetooth terminal to the command to create a Bluetooth connection.
在步骤S1301中,如果第一蓝牙端和第二蓝牙端的默认地址相同,则创建蓝牙连接命令包括的第一蓝牙端的默认地址,其实也可以理解为是第二蓝牙端的默认地址,即第二蓝牙端目前使用的地址。本实施例中,第二蓝牙端根据第二蓝牙端的默认地址设置为处于可连接模式,即第二蓝牙端工作在第二蓝牙端的默认地址对应的跳频序列,第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令,第一蓝牙端可以工作在第一蓝牙端的默认地址对应的跳频序列,而第一蓝牙端的默认地址等于第二蓝牙端的默认地址,因此,第一蓝牙端和第二蓝牙端工作在相同的跳频序列,第一蓝牙端可以和第二蓝牙端通过默认地址建立蓝牙连接。第二蓝牙端接收到该创建蓝牙连接命令后,返回创建蓝牙连接命令的应答消息给第一蓝牙端,若第一蓝牙端收到第二蓝牙端发送的对于创建蓝牙连接命令的应答消息,则第一蓝牙连接成功建立,若第一蓝牙端没有收到第二蓝牙端发送的对于创建蓝牙连接命令的应答消息,则第一蓝牙连接建立失败。具体的,以左右耳机为例进行说明,右耳机使用默认地址并且处于可连接模式,左耳机向使用默认地址的耳机发送创建蓝牙连接的命令,该创建蓝牙连接的命令包括左耳机的默认地址,具体的,左耳机发送创建蓝牙连接命令时,可以根据左耳机的默认地址做变频处理,即根据左耳机的默认地址确定左耳机工作的跳频序列。右耳机收到该创建蓝牙连接的命令后,根据右耳机的默认地址做变频处理发送对于创建蓝牙连接命令的应答消息,由于左右耳机分别是根据自己的默认地址做变频处理,因此,若左右耳机默认地址不同,左 耳机很可能不能收到该应答消息,则第一蓝牙连接很可能创建失败,因此,第一蓝牙设备的默认地址与第二蓝牙设备的默认地址需要相同才可以成功的创建第一蓝牙连接。In step S1301, if the default addresses of the first bluetooth terminal and the second bluetooth terminal are the same, the default address of the first bluetooth terminal included in the creation bluetooth connection command can also be understood as the default address of the second bluetooth terminal, that is, the second bluetooth terminal. The address currently used by the terminal. In this embodiment, the second bluetooth terminal is set to be in a connectable mode according to the default address of the second bluetooth terminal, that is, the second bluetooth terminal works in the frequency hopping sequence corresponding to the default address of the second bluetooth terminal, and the first bluetooth terminal uses the first bluetooth terminal to use the first bluetooth terminal. The bluetooth terminal of the default address of the bluetooth terminal sends a command to create a bluetooth connection, the first bluetooth terminal can work in the frequency hopping sequence corresponding to the default address of the first bluetooth terminal, and the default address of the first bluetooth terminal is equal to the default address of the second bluetooth terminal. A bluetooth terminal and a second bluetooth terminal work in the same frequency hopping sequence, and the first bluetooth terminal can establish a bluetooth connection with the second bluetooth terminal through a default address. After the second bluetooth terminal receives the command to create a bluetooth connection, it returns a response message to the command to create a bluetooth connection to the first bluetooth terminal. The first Bluetooth connection is successfully established. If the first Bluetooth terminal does not receive a response message sent by the second Bluetooth terminal to the command to create a Bluetooth connection, the establishment of the first Bluetooth connection fails. Specifically, taking the left and right earphones as an example, the right earphone uses the default address and is in a connectable mode, and the left earphone sends a command to create a Bluetooth connection to the earphone using the default address. The command to create a Bluetooth connection includes the default address of the left earphone. Specifically, when the left earphone sends a command to create a Bluetooth connection, frequency conversion processing can be performed according to the default address of the left earphone, that is, the frequency hopping sequence for the left earphone to work is determined according to the default address of the left earphone. After the right earphone receives the command to create a bluetooth connection, it performs frequency conversion processing according to the default address of the right earphone and sends a response message to the command to create a bluetooth connection. If the default address is different, the left earphone may not receive the response message, and the first Bluetooth connection may fail to be created. Therefore, the default address of the first Bluetooth device and the default address of the second Bluetooth device need to be the same to successfully create the first Bluetooth device. A Bluetooth connection.
基于上述实施例公开的内容,本实施例中,请参考图14,本申请实施例提供一种地址传输方法,包括以下步骤:Based on the contents disclosed in the foregoing embodiments, in this embodiment, referring to FIG. 14 , an embodiment of the present application provides an address transmission method, including the following steps:
S1401:第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令;并且第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式;S1401: the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal; and the second bluetooth terminal uses the default address of the second bluetooth terminal to enter a message receiving mode;
S1402:第一蓝牙端通过蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,和/或,第一蓝牙端通过蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址。S1402: The first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and/or the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection.
本实施例中,第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令时,第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式以接收第一蓝牙端发送的该创建蓝牙连接命令。若第一蓝牙端的默认地址和第二蓝牙端的默认地址相同,则可以理解为第一蓝牙端向第二蓝牙端发送创建蓝牙连接命令,第二蓝牙端可以收到该创建蓝牙连接命令,以可以成功创建蓝牙连接。本实施例提供的地址传输方法,在第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令之前,还可以包括对第一蓝牙端配置第一蓝牙端的默认地址和第一蓝牙端的设备地址,对第二蓝牙端配置第二蓝牙端的默认地址和第二蓝牙端的设备地址,具体的,配置的第一蓝牙端的默认地址和第二蓝牙端的默认地址相同。In this embodiment, when the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal, the second bluetooth terminal uses the default address of the second bluetooth terminal to enter the message receiving mode to receive the message sent by the first bluetooth terminal. The create bluetooth connection command. If the default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal, it can be understood that the first bluetooth terminal sends a command to create a bluetooth connection to the second bluetooth terminal, and the second bluetooth terminal can receive the command to create a bluetooth connection, so as to be able to Successfully created bluetooth connection. The address transmission method provided in this embodiment may further include configuring the default address of the first bluetooth terminal and the first The device address of the bluetooth terminal is configured with the default address of the second bluetooth terminal and the device address of the second bluetooth terminal for the second bluetooth terminal. Specifically, the configured default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal.
对于第二蓝牙端来说,本实施例提供的地址传输方法,在第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式之前,还可以包括对第二蓝牙端配置第二蓝牙端的默认地址和第二蓝牙端的设备地址。For the second bluetooth terminal, the address transmission method provided in this embodiment may further include configuring the default address of the second bluetooth terminal on the second bluetooth terminal before the second bluetooth terminal enters the message receiving mode using the default address of the second bluetooth terminal and the device address of the second Bluetooth terminal.
对于步骤S1401,第二蓝牙端收到该创建蓝牙连接的命令后,第二蓝牙端会回复第一确认字符给第一蓝牙端,第一确认字符可以理解为对第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令的应答。For step S1401, after the second bluetooth terminal receives the command to create a bluetooth connection, the second bluetooth terminal will reply a first confirmation character to the first bluetooth terminal. The response to the command to create a Bluetooth connection sent by the Bluetooth end with the default address of the Bluetooth end.
对于步骤S1402,若第一蓝牙端收到该第一确认字符,则表示该蓝牙连接创建成功,若蓝牙连接创建成功,则第一蓝牙端可以通过该蓝牙连接发送自己的设备地址给第二蓝牙端,以使得第二蓝牙端获取到第一蓝牙端发送的第一蓝牙端的设备地址;或者,若该蓝牙连接创建成功,第一蓝牙端通过蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址,即第二蓝牙端通过该蓝牙连接发送第二蓝牙端的设备地址给第二蓝牙端,第二蓝牙端通过该蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址;或者,若该蓝牙连接创建成功,则第一蓝牙端可以通过该蓝牙连接发送自己的设备地址给第二蓝牙端,并且第一蓝牙端通过蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址,即,第一蓝牙端通过该蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且第二蓝牙端通过该蓝牙连接发送第二蓝牙端的设备地址给第一蓝牙端。类似的,第二蓝牙端可以通过该蓝牙连接接收第一蓝牙端发送的第一蓝牙端的设备地址,和/或,第二蓝牙端通过蓝牙连接发送第二蓝牙端的设备地址给第一蓝牙端。For step S1402, if the first bluetooth terminal receives the first confirmation character, it means that the bluetooth connection is successfully created; if the bluetooth connection is successfully created, the first bluetooth terminal can send its own device address to the second bluetooth through the bluetooth connection terminal, so that the second bluetooth terminal obtains the device address of the first bluetooth terminal sent by the first bluetooth terminal; or, if the bluetooth connection is established successfully, the first bluetooth terminal receives the second bluetooth terminal's address sent by the second bluetooth terminal through the bluetooth connection. Device address, that is, the second bluetooth terminal sends the device address of the second bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and the second bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection; or, if If the bluetooth connection is successfully created, the first bluetooth terminal can send its own device address to the second bluetooth terminal through the bluetooth connection, and the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection, that is , the first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection. Similarly, the second bluetooth terminal can receive the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection, and/or the second bluetooth terminal can send the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection.
基于上述实施例公开的内容,本实施例中,第一蓝牙端通过蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址。对于第二蓝牙端来说,第二蓝牙端可以通过该蓝牙连接发送自己的设备地址给第一蓝牙端,以使得第一蓝牙端获取到第二蓝牙端的设备地址。Based on the contents disclosed in the above embodiments, in this embodiment, the first Bluetooth terminal receives the device address of the second Bluetooth terminal sent by the second Bluetooth terminal through the Bluetooth connection. For the second bluetooth terminal, the second bluetooth terminal can send its own device address to the first bluetooth terminal through the bluetooth connection, so that the first bluetooth terminal obtains the device address of the second bluetooth terminal.
基于上述实施例公开的内容,本实施例中,请参考图15,本申请实施例提供一种地址传输方法,包括以下步骤:Based on the contents disclosed in the foregoing embodiments, in this embodiment, referring to FIG. 15 , an embodiment of the present application provides an address transmission method, including the following steps:
S1501:第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令;并且第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式;S1501: the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal; and the second bluetooth terminal uses the default address of the second bluetooth terminal to enter a message receiving mode;
S1502:第一蓝牙端接收第二蓝牙端发送的第一确认字符;第一确认字符为第二蓝牙端对第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令的应答。S1502: The first bluetooth terminal receives the first confirmation character sent by the second bluetooth terminal; the first confirmation character is the command of creating a bluetooth connection sent by the second bluetooth terminal to the first bluetooth terminal to the bluetooth terminal using the default address of the first bluetooth terminal answer.
S1503:第一蓝牙端通过蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端。S1503: The first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection.
本实施例中,步骤S1501、S1503与前述实施例中的步骤S1402、S1402相同或者相似,此处不再赘述。在步骤S1502中,第一蓝牙端收到第二蓝牙端发送的第一确认字符后,可以表明第二蓝牙端的默认地址等于第一蓝牙端的默认地址,则第一蓝牙端和第二蓝牙端之间可以通过默认地址成功建立蓝牙连接。In this embodiment, steps S1501 and S1503 are the same as or similar to steps S1402 and S1402 in the foregoing embodiment, and are not repeated here. In step S1502, after the first bluetooth terminal receives the first confirmation character sent by the second bluetooth terminal, it can indicate that the default address of the second bluetooth terminal is equal to the default address of the first bluetooth terminal, then the relationship between the first bluetooth terminal and the second bluetooth terminal is A Bluetooth connection can be successfully established through the default address.
基于上述实施例公开的内容,本实施例中,在满足预设条件时,第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令,并且第二蓝牙端使用第二蓝牙端的默认地址接收创建蓝牙连接命令,以使得可以根据第一蓝牙端的默认地址和第二蓝牙端的默认地址建立蓝牙连接,从而实现设备地址的互通。本实施例中,当满足预设条件时,第二蓝牙端使用默认地址进行工作,以配合第一蓝牙端向使用默认地址的蓝牙端发送创建蓝牙连接命令的动作。预设条件可以包括第一预设条件和/或第二预设条件:Based on the content disclosed in the above embodiments, in this embodiment, when the preset conditions are met, the first Bluetooth terminal sends a command to create a Bluetooth connection to the Bluetooth terminal using the default address of the first Bluetooth terminal, and the second Bluetooth terminal uses the second Bluetooth terminal The default address of the terminal receives the create Bluetooth connection command, so that a Bluetooth connection can be established according to the default address of the first Bluetooth terminal and the default address of the second Bluetooth terminal, thereby realizing the intercommunication of device addresses. In this embodiment, when the preset conditions are met, the second Bluetooth terminal uses the default address to work, so as to cooperate with the first Bluetooth terminal to send the Bluetooth connection creation command to the Bluetooth terminal using the default address. The preset conditions may include a first preset condition and/or a second preset condition:
第一预设条件:充电盒上预设的复位按键被启动;The first preset condition: the preset reset button on the charging box is activated;
第二预设条件:第一蓝牙端被置于充电盒内。本实施例中,第二蓝牙端在充电盒上预设的复位按键被启动时,才使用默认地址进入消息接收模式;或者,第二蓝牙端在被置于充电盒内时,才使用默认地址进入消息接收模式;或者,第二蓝牙端在充电盒上预设的复位按键被启动并且第二蓝牙端被置于充电盒内时,才使用默认地址进入消息接收模式。对于第二蓝牙端来说,若充电盒上预设的复位按键被启动并且第二蓝牙端被放置在充电盒内时,第二蓝牙端可以切换为使用默认地址以接收消息,以便于接收第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令。若第一蓝牙端在满足第一预设条件和第二预设条件时向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接请求,则相应的,第二蓝牙端在充电盒上预设的复位按键被启动并且第二蓝牙端被置于充电盒内时,才使用默认地址进入消息接收模式。The second preset condition: the first Bluetooth terminal is placed in the charging box. In this embodiment, the second Bluetooth terminal only uses the default address to enter the message receiving mode when the reset button preset on the charging box is activated; or, the second Bluetooth terminal uses the default address only when it is placed in the charging box Enter the message receiving mode; or, the default address is used to enter the message receiving mode only when the reset button preset on the charging box of the second Bluetooth terminal is activated and the second Bluetooth terminal is placed in the charging box. For the second bluetooth terminal, if the preset reset button on the charging box is activated and the second bluetooth terminal is placed in the charging box, the second bluetooth terminal can switch to use the default address to receive messages, so as to receive the second bluetooth terminal. A command for creating a Bluetooth connection sent by a Bluetooth terminal to the Bluetooth terminal using the default address of the first Bluetooth terminal. If the first bluetooth terminal sends a request to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal when the first preset condition and the second predetermined condition are met, correspondingly, the second bluetooth terminal is preset on the charging box The default address is used to enter the message receiving mode only when the reset button of the device is activated and the second Bluetooth terminal is placed in the charging box.
基于上述实施例公开的内容,本实施例中,第一蓝牙端和第二蓝牙端可能互相知道对方的设备地址,而若互相知道对方的设备地址,则可以通过设备地址建立蓝牙连接。为了弄清楚第一蓝牙端是否知道第二蓝牙端的设备地址,第一蓝牙端可以向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令,若第一蓝牙配对地址为第二蓝牙端的设备地址,而第二蓝牙端使用第二蓝牙端的设备地址处于消息接收模式,则第二蓝牙端会收到该创建蓝牙连接命令,第二蓝牙端收到该创建蓝牙连接命令之后,会回复第二确认字符给第一蓝牙端,因而第一蓝牙端和第二蓝牙可以成功的通过设备地址建立蓝牙连接。若第一蓝牙配对地址不是第二蓝牙端的设备地址,而第二蓝牙端使用第二蓝牙端的设备地址处于消息接收模式,则第二蓝牙端收不到第一蓝牙端发送的创建蓝牙连接命令,第一蓝牙端也就收不到第二确认字符,因而第一蓝牙端和第二蓝牙端通过设备地址建立蓝牙连接失败。因此,当第一蓝牙端在预设时间内未收到第二蓝牙端发送的第二确认字符时,可以执行地址传输方法,即第一蓝牙端根据第一蓝牙端的默认地址发送创建蓝牙连接命令给第二蓝牙端。本实施例中,第一蓝牙端配对地址为第一蓝牙端记录的与之配对的蓝牙端的设备地址。Based on the content disclosed in the above embodiments, in this embodiment, the first Bluetooth terminal and the second Bluetooth terminal may know each other's device address, and if they know each other's device address, a Bluetooth connection can be established through the device address. In order to find out whether the first bluetooth terminal knows the device address of the second bluetooth terminal, the first bluetooth terminal can send a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal, if the first bluetooth pairing address is the device of the second bluetooth terminal address, and the second bluetooth terminal uses the device address of the second bluetooth terminal to be in message receiving mode, the second bluetooth terminal will receive the command to create a bluetooth connection, and the second bluetooth terminal will reply to the second bluetooth connection after receiving the command to create a bluetooth connection. The confirmation character is given to the first bluetooth terminal, so the first bluetooth terminal and the second bluetooth terminal can successfully establish a bluetooth connection through the device address. If the first bluetooth pairing address is not the device address of the second bluetooth terminal, and the second bluetooth terminal uses the device address of the second bluetooth terminal to be in the message receiving mode, the second bluetooth terminal cannot receive the bluetooth connection creation command sent by the first bluetooth terminal, The first bluetooth terminal cannot receive the second confirmation character, so the first bluetooth terminal and the second bluetooth terminal fail to establish a bluetooth connection through the device address. Therefore, when the first bluetooth terminal does not receive the second confirmation character sent by the second bluetooth terminal within the preset time, the address transmission method can be executed, that is, the first bluetooth terminal sends a command to create a bluetooth connection according to the default address of the first bluetooth terminal to the second bluetooth end. In this embodiment, the pairing address of the first bluetooth terminal is the device address of the paired bluetooth terminal recorded by the first bluetooth terminal.
基于上述实施例公开的内容,本实施例中,第一蓝牙端向使用第一蓝牙端配对地址发送创建蓝牙连接包括:第一蓝牙端根据第一蓝牙端配对地址以预设跳频序列发送创建蓝牙连接命令给第二蓝牙端,预设跳频序列对应于第一蓝牙端配对地址。Based on the contents disclosed in the foregoing embodiments, in this embodiment, the sending of the first Bluetooth terminal to create a Bluetooth connection by using the pairing address of the first Bluetooth terminal includes: the first Bluetooth terminal sends the created Bluetooth connection in a preset frequency hopping sequence according to the pairing address of the first Bluetooth terminal. The bluetooth connection command is given to the second bluetooth terminal, and the preset frequency hopping sequence corresponds to the pairing address of the first bluetooth terminal.
基于上述实施例公开的内容,本实施例中,请参考图16,本申请实施例提供一种地址传输方法,包括以下步骤:Based on the contents disclosed in the foregoing embodiments, in this embodiment, referring to FIG. 16 , an embodiment of the present application provides an address transmission method, including the following steps:
S1601:判断充电盒上预设的复位按键是否被启动并且第一蓝牙端是否被置于充电盒内,若充电盒上预设的复位按键被启动并且第一蓝牙端被置于充电盒内,则执行步骤S1602;若不满足第一预设条件和第二预设条件,则执行步骤S1601A;S1601: Determine whether the preset reset button on the charging box is activated and the first Bluetooth terminal is placed in the charging box. If the preset reset button on the charging box is activated and the first Bluetooth terminal is placed in the charging box, Then go to step S1602; if the first preset condition and the second preset condition are not satisfied, go to step S1601A;
S1602:第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令并且判断是否满足第三预设条件;若满足第三预设条件,则执行步骤S1603;若不满足第一预设条件和第三预设条件,则执行步骤S1601A;S1602: The first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third preset condition is met; if the third preset condition is met, step S1603 is executed; if the first The preset condition and the third preset condition, then execute step S1601A;
S1603:第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令。S1603: The first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal.
在步骤S1602中,第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令,此时,第二蓝牙端使用第二蓝牙端的设备地址处于消息接收模式,若第二蓝牙端收到第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令,则第二蓝牙端回复第二确认字符给第一蓝牙端;第三预设条件为第一蓝牙端在预设时间内未收到第二蓝牙端发送的第二确认字符,判断第一蓝牙端在预设时间内是否收到第二蓝牙端发送的第二确认字符,若未收到,则满足预设条件,执行步骤S1603。In step S1602, the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal. At this time, the second bluetooth terminal uses the device address of the second bluetooth terminal to be in the message receiving mode. After receiving the command to create a Bluetooth connection sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal, the second Bluetooth terminal replies with a second confirmation character to the first Bluetooth terminal; the third preset condition is that the first Bluetooth terminal If the second confirmation character sent by the second Bluetooth terminal is not received within the preset time, it is determined whether the first Bluetooth terminal has received the second confirmation character sent by the second Bluetooth terminal within the preset time. Preset conditions, step S1603 is executed.
在步骤S1603中,若第一蓝牙端在预设时间未收到第二蓝牙端发送的第二确认字符,则第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令,对于第二蓝牙端,若充电盒上的复位按键被启动并且第二蓝牙端被放置在充电盒内,第二蓝牙端开始检测在预设时间内是否收到第一蓝牙端发送的创建蓝牙连接命令,若第二蓝牙端在预设时间内收到该创建蓝牙连接命令,则表示第一蓝牙端知道第二蓝牙端的设备地址,若第二蓝牙端在预设时间内没有收到该创建蓝牙命令,则表明第一蓝牙端不知道第二蓝牙端的设备地址,因此,第二蓝牙端使用第二蓝牙端的默认地址处于消息接收模式,以接收第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接请求,由于第二蓝牙端使用第二蓝牙端的默认地址处在消息接收模式,因此若第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接请求,第二蓝牙端可以收到该创建蓝牙连接命令,因此可以成功建立蓝牙连接以传输设备地址。第二蓝牙端可以使用默认地址进入消息接收模式,按照默认地址对应的跳频序列工作,以按照该跳频序列接收消息,即在第二蓝牙端还未与其他设备建立连接的时候,使用默认地址接收其他蓝牙设备发送的创建蓝牙连接命令。In step S1603, if the first bluetooth terminal does not receive the second confirmation character sent by the second bluetooth terminal within the preset time, the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal, For the second bluetooth terminal, if the reset button on the charging box is activated and the second bluetooth terminal is placed in the charging box, the second bluetooth terminal starts to detect whether it receives the bluetooth connection created by the first bluetooth terminal within the preset time. command, if the second bluetooth terminal receives the command to create a bluetooth connection within the preset time, it means that the first bluetooth terminal knows the device address of the second bluetooth terminal, and if the second bluetooth terminal does not receive the command to create a bluetooth connection within the preset time command, it indicates that the first bluetooth terminal does not know the device address of the second bluetooth terminal, therefore, the second bluetooth terminal uses the default address of the second bluetooth terminal to be in the message receiving mode to receive the first bluetooth terminal to use the default address of the first bluetooth terminal. The Bluetooth connection creation request sent by the Bluetooth end, because the second Bluetooth end uses the default address of the second Bluetooth end to be in the message receiving mode, so if the first Bluetooth end sends the Bluetooth connection creation request to the Bluetooth end using the default address of the first Bluetooth end , the second bluetooth terminal can receive the command to create a bluetooth connection, and thus can successfully establish a bluetooth connection to transmit the device address. The second Bluetooth terminal can use the default address to enter the message receiving mode, and work according to the frequency hopping sequence corresponding to the default address to receive messages according to the frequency hopping sequence, that is, when the second Bluetooth terminal has not established a connection with other devices, use the default The address receives the create bluetooth connection command sent by other bluetooth devices.
本实施例中,在满足三个预设条件的情况下,才开始地址传输,以避免地址传输误触发而导致浪费功耗,另外,本实施例中,只有在充电盒上的按键被按下或者触摸,并且第一蓝牙端被置于充电盒内时,第一蓝牙端根据第一蓝牙端配对地址发送创建蓝牙连接命令给第二蓝牙端。对于第二蓝牙端来说,在充电盒上的按键被按下,并且第二蓝牙端被置于充电盒内时,第二蓝牙端使用第二蓝牙端的设备地址处于消息接收模式并且判断预设时长内是否收到第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令,在这种情况下,若第一蓝牙端在预设时间内收到第二蓝牙端发送的第二确认字符,则表示第一蓝牙端配对地址等于第二蓝牙 端的设备地址,若第一蓝牙端在预设时间内没有收到第二蓝牙端发送的第二确认字符,则表示第一蓝牙端没有记录第二蓝牙端的设备地址,则第一蓝牙端根据第一蓝牙端的默认地址发送创建蓝牙连接命令给第二蓝牙端。而对于第二蓝牙端来说,第二蓝牙端在预设时长内未收到第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令时,第二蓝牙端可以使用第二蓝牙端的默认地址进入消息接收模式从而接收该创建蓝牙连接命令。In this embodiment, address transmission is started only when three preset conditions are met, so as to avoid wasting power consumption due to false triggering of address transmission. In addition, in this embodiment, only the button on the charging box is pressed. Or touch, and when the first bluetooth terminal is placed in the charging box, the first bluetooth terminal sends a bluetooth connection creation command to the second bluetooth terminal according to the pairing address of the first bluetooth terminal. For the second bluetooth terminal, when the button on the charging box is pressed and the second bluetooth terminal is placed in the charging box, the second bluetooth terminal uses the device address of the second bluetooth terminal to be in the message receiving mode and judges the preset Whether the command to create a bluetooth connection sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal is received within the time period. In this case, if the first bluetooth terminal receives the command sent by the second bluetooth terminal within the preset time If the first Bluetooth end does not receive the second confirmation character sent by the second Bluetooth end within the preset time, it means that the first Bluetooth end does not receive the second confirmation character sent by the second Bluetooth end. If the Bluetooth end does not record the device address of the second Bluetooth end, the first Bluetooth end sends a Bluetooth connection creation command to the second Bluetooth end according to the default address of the first Bluetooth end. For the second bluetooth end, when the second bluetooth end does not receive the command to create a bluetooth connection sent by the first bluetooth end to the bluetooth end using the pairing address of the first bluetooth end within the preset time period, the second bluetooth end can use The default address of the second Bluetooth terminal enters the message receiving mode to receive the command to create a Bluetooth connection.
基于上述实施例公开的内容,本实施例中,请参考图17,本申请实施例提供一种地址传输方法,包括以下步骤:Based on the content disclosed in the foregoing embodiments, in this embodiment, referring to FIG. 17 , an embodiment of the present application provides an address transmission method, including the following steps:
S1701:判断第一蓝牙端上预设的复位按键是否被启动超过预设时长;若是,则执行步骤S1702;若第一蓝牙端上预设的复位按键没有被启动超过预设时长,则执行步骤S1701A;S1701: Determine whether the preset reset button on the first Bluetooth terminal has been activated for more than a preset time period; if so, go to step S1702; if the preset reset button on the first Bluetooth terminal has not been activated for a preset time period, go to step S1702 S1701A;
S1702:第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令并且判断是否满足第三预设条件;若满足第三预设条件,则执行步骤S1703;S1702: The first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third preset condition is met; if the third preset condition is met, step S1703 is performed;
S1703:第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令。S1703: The first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal.
对于步骤S1701,第四预设条件可以为复位按键被启动超过预设时长可以理解为长按,例如,判断第一蓝牙端上预设的复位按键是否被按下或者触摸超过5s。对于步骤S1702,第三预设条件为第一蓝牙端在预设时间内未收到第二蓝牙端发送的第二确认字符。相应的,对于第二蓝牙端来说,若满足预设条件,则第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式,预设条件包括第六预设条件和第七预设条件,第七预设条件为第二蓝牙端上预设的复位按键被启动超过预设时长;若满足第七预设条件,第二蓝牙端使用第二蓝牙端的设备地址进入消息接收模式并且判断是否满足第六预设条件;第六预设条件为第二蓝牙端在预设时长内未收到第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令。For step S1701, the fourth preset condition may be that the reset button is activated for more than a preset duration, which can be understood as a long press. For example, it is determined whether the preset reset button on the first Bluetooth terminal is pressed or touched for more than 5s. For step S1702, the third preset condition is that the first Bluetooth terminal does not receive the second confirmation character sent by the second Bluetooth terminal within the preset time. Correspondingly, for the second Bluetooth terminal, if the preset conditions are met, the second Bluetooth terminal uses the default address of the second Bluetooth terminal to enter the message receiving mode, and the preset conditions include the sixth preset condition and the seventh preset condition, The seventh preset condition is that the preset reset button on the second bluetooth terminal is activated for more than a preset time period; if the seventh preset condition is satisfied, the second bluetooth terminal uses the device address of the second bluetooth terminal to enter the message receiving mode and judges whether it is satisfied A sixth preset condition; the sixth preset condition is that the second Bluetooth terminal does not receive a command for creating a Bluetooth connection sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal within a preset time period.
基于上述实施例公开的内容,请参考图18,本申请实施例提供一种地址传输方法,包括以下步骤:Based on the content disclosed in the foregoing embodiments, please refer to FIG. 18 , an embodiment of the present application provides an address transmission method, including the following steps:
S1801:第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令;并且第二蓝牙端使用第二蓝牙端的默认地址进入消息接收模式;S1801: the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal; and the second bluetooth terminal uses the default address of the second bluetooth terminal to enter a message receiving mode;
S1802:第一蓝牙端通过蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且,第一蓝牙端通过蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址;S1802: the first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection;
S1803:第一蓝牙端向使用第一蓝牙端收到的设备地址的蓝牙端发送创建蓝牙连接命令;S1803: The first bluetooth terminal sends a bluetooth connection creation command to the bluetooth terminal using the device address received by the first bluetooth terminal;
本实施例中,步骤S1803是为了通过第一蓝牙端收到的第二蓝牙端的设备地址建立蓝牙连接,即断开第一蓝牙连接,建立第二蓝牙连接,具体的,第一蓝牙端向使用第一蓝牙端收到的第二蓝牙端的设备地址的蓝牙端发送创建蓝牙连接命令,第二蓝牙端在通过默认地址和第一蓝牙端建立连接并且发送自己的设备地址给第一蓝牙端之后,可以选择使用第二蓝牙端的设备地址进入消息接收模式,以使得第一蓝牙端可以通过设备地址连接第二蓝牙端,而不需要依赖默认地址;对于第二蓝牙端来说,第二蓝牙端收到了第一蓝牙端发送的第一蓝牙端的设备地址之后,第二蓝牙端也可以发起通过设备地址建立蓝牙连接,而不惜要依赖第二蓝牙端的默认地址。In this embodiment, step S1803 is to establish a bluetooth connection through the device address of the second bluetooth terminal received by the first bluetooth terminal, that is, to disconnect the first bluetooth connection and establish a second bluetooth connection. The bluetooth terminal of the device address of the second bluetooth terminal received by the first bluetooth terminal sends a command to create a bluetooth connection. After the second bluetooth terminal establishes a connection with the first bluetooth terminal through the default address and sends its own device address to the first bluetooth terminal, You can choose to use the device address of the second bluetooth terminal to enter the message receiving mode, so that the first bluetooth terminal can connect to the second bluetooth terminal through the device address without relying on the default address; for the second bluetooth terminal, the second bluetooth terminal receives After reaching the device address of the first bluetooth terminal sent by the first bluetooth terminal, the second bluetooth terminal can also initiate the establishment of a bluetooth connection through the device address, without relying on the default address of the second bluetooth terminal.
本申请实施例还提供一种蓝牙芯片,请参考图19,该蓝牙芯片1900包括:存储器1901和处理器1902;存储器与处理器耦合;The embodiment of the present application also provides a Bluetooth chip, please refer to FIG. 19 , the Bluetooth chip 1900 includes: a memory 1901 and a processor 1902; the memory is coupled to the processor;
存储器,用于存储程序指令;memory for storing program instructions;
处理器,用于调用存储器存储的程序指令,使得所述蓝牙芯片执行上述任一实施例所述的地址传输方法。The processor is configured to invoke the program instructions stored in the memory, so that the Bluetooth chip executes the address transmission method described in any of the foregoing embodiments.
本申请实施例还提供一种蓝牙耳机,该蓝牙耳机包括耳机外壳和置于耳机外壳内部的如上述实施例提到的蓝牙芯片。其具体的实现过程及有益效果参见上述,在此不再赘述。Embodiments of the present application further provide a Bluetooth headset, which includes a headset casing and the Bluetooth chip as mentioned in the above embodiments, which is placed inside the headset casing. The specific implementation process and beneficial effects thereof can be referred to above, which will not be repeated here.
本申请实施例还提供一种电子设备,该电子设备包括外壳和置于该外壳内部的如上述实施例提到的蓝牙芯片。本实施例中,电子设备可以为耳机、蓝牙音箱等。其具体的实现过程及有益效果参见上述,在此不再赘述。An embodiment of the present application further provides an electronic device, the electronic device includes a casing and the Bluetooth chip as mentioned in the above embodiments, which is placed inside the casing. In this embodiment, the electronic device may be an earphone, a Bluetooth speaker, or the like. The specific implementation process and beneficial effects thereof can be referred to above, which will not be repeated here.
本申请实施例还提供一种通信系统,包括第一蓝牙端和第二蓝牙端;具体的,第一蓝牙端向使用第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令,并且第二蓝牙端使用第二蓝牙端的默认地址接收第一蓝牙端发送的创建蓝牙连接命令;第一蓝牙端的默认地址和第二蓝牙端的默认地址相同,第一蓝牙端的设备地址与第二蓝牙端的设备地址不同;第一蓝牙端通过蓝牙连接发送第一蓝牙端的设备地址给第二蓝牙端,并且第二蓝牙端通过蓝牙连接接收第一蓝牙端发送的第一蓝牙端的设备地址;和/或,第二蓝牙端通过蓝牙连接发送第二蓝牙端的设备地址给第一蓝牙端,并且,第一蓝牙端通过蓝牙连接接收第二蓝牙端发送的第二蓝牙端的设备地址。本实施例中,第一蓝牙端和第二蓝牙端可以为耳机、蓝牙音箱等,具体可以参考前述实施例公开的第一蓝牙端和第二蓝牙端。另外,该用于地址传输的通信系统还可以包括充电盒,充电盒用于给第一蓝牙端和第二蓝牙端充电。其具体的实现过程及有益效果参见上述,在此不再赘述。The embodiment of the present application further provides a communication system, including a first Bluetooth terminal and a second Bluetooth terminal; specifically, the first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal, and the second Bluetooth terminal sends a command to create a Bluetooth connection. The terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal; the default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal, and the device address of the first bluetooth terminal is different from that of the second bluetooth terminal; The first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and the second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection; and/or, the second bluetooth terminal The device address of the second bluetooth terminal is sent to the first bluetooth terminal through the bluetooth connection, and the first bluetooth terminal receives the device address of the second bluetooth terminal sent by the second bluetooth terminal through the bluetooth connection. In this embodiment, the first Bluetooth terminal and the second Bluetooth terminal may be an earphone, a Bluetooth speaker, etc. For details, reference may be made to the first Bluetooth terminal and the second Bluetooth terminal disclosed in the foregoing embodiments. In addition, the communication system for address transmission may further include a charging box, and the charging box is used for charging the first Bluetooth terminal and the second Bluetooth terminal. The specific implementation process and beneficial effects thereof can be referred to above, which will not be repeated here.
应注意,本申请上述方法实施例可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmaLE gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be noted that the above method embodiments of the present application may be applied to a processor, or implemented by a processor. A processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiments may be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (field programmaLE gate array, FPGA), or other possible solutions. Programming logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmaLE rom,PROM)、可擦除可编程只读存储器(erasaLE PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(douLE data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、 同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory in this embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (programmaLE rom, PROM), erasable programmable read-only memory (erasaLE PROM, EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (douLE data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (direct rambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.
应理解,在本申请实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that, in this embodiment of the present application, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean that B is only determined according to A, and B may also be determined according to A and/or other information.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, There are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (23)

  1. 一种地址传输方法,用于第一蓝牙端,其特征在于,包括:An address transmission method for a first Bluetooth terminal, characterized in that it includes:
    第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令,并且第二蓝牙端使用所述第二蓝牙端的默认地址进入消息接收模式;所述创建蓝牙连接命令用于建立蓝牙连接;The first bluetooth terminal sends a bluetooth connection command to the bluetooth terminal using the default address of the first bluetooth terminal, and the second bluetooth terminal uses the default address of the second bluetooth terminal to enter the message receiving mode; the create bluetooth connection command is used for establish a bluetooth connection;
    所述第一蓝牙端通过所述蓝牙连接发送所述第一蓝牙端的设备地址给所述第二蓝牙端,和/或,所述第一蓝牙端通过所述蓝牙连接接收所述第二蓝牙端发送的所述第二蓝牙端的设备地址;The first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and/or the first bluetooth terminal receives the second bluetooth terminal through the bluetooth connection The sent device address of the second Bluetooth terminal;
    所述第一蓝牙端的默认地址和所述第二蓝牙端的默认地址相同,所述第一蓝牙端的设备地址与所述第二蓝牙端的设备地址不同。The default address of the first Bluetooth end is the same as the default address of the second Bluetooth end, and the device address of the first Bluetooth end is different from the device address of the second Bluetooth end.
  2. 根据权利要求1所述的地址传输方法,其特征在于,在所述第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令之前还包括:配置所述第一蓝牙端的设备地址和所述第一蓝牙端的默认地址。The address transmission method according to claim 1, wherein before the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal, it further comprises: configuring the first bluetooth terminal The device address of the terminal and the default address of the first Bluetooth terminal.
  3. 根据权利要求1或2所述的地址传输方法,其特征在于,所述第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令之后,还包括:The address transmission method according to claim 1 or 2, wherein after the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal, the method further comprises:
    所述第一蓝牙端接收所述第二蓝牙端发送的第一确认字符;所述第一确认字符为所述第二蓝牙端对所述第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令的应答。The first bluetooth terminal receives the first confirmation character sent by the second bluetooth terminal; the first confirmation character is the default address of the second bluetooth terminal to the first bluetooth terminal to use the first bluetooth terminal The response to the create bluetooth connection command sent by the bluetooth side.
  4. 根据权利要求1至3中任一项所述的地址传输方法,其特征在于,所述蓝牙连接为经典蓝牙连接或者低功耗蓝牙连接;若满足预设条件,则所述第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令;The address transmission method according to any one of claims 1 to 3, wherein the bluetooth connection is a classic bluetooth connection or a low-power bluetooth connection; if a preset condition is met, the first bluetooth terminal sends the Using the bluetooth terminal of the default address of the first bluetooth terminal to send a command to create a bluetooth connection;
    所述预设条件包括第一预设条件和第二预设条件;充电盒用于给所述第一蓝牙端供电;The preset conditions include a first preset condition and a second preset condition; the charging box is used to supply power to the first Bluetooth terminal;
    所述第一预设条件为所述充电盒上预设的复位按键被启动;The first preset condition is that a preset reset button on the charging box is activated;
    所述第二预设条件为所述第一蓝牙端被置于所述充电盒内。The second preset condition is that the first Bluetooth terminal is placed in the charging box.
  5. 根据权利要求4所述的地址传输方法,其特征在于,所述预设条件还包括第三预设条件,若满足所述第一预设条件和所述第二预设条件,所述第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令并且判断是否满足所述第三预设条件;The address transmission method according to claim 4, wherein the preset condition further comprises a third preset condition, and if the first preset condition and the second preset condition are satisfied, the first preset condition The bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third preset condition is satisfied;
    若所述第二蓝牙端收到所述第一蓝牙端向所述使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令,则所述第二蓝牙端回复第二确认字符给所述第一蓝牙端;If the second bluetooth terminal receives a command to create a bluetooth connection sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal, the second bluetooth terminal replies with a second confirmation character to the The first Bluetooth terminal;
    所述第三预设条件为所述第一蓝牙端在预设时间内未收到所述第二蓝牙端发送的第二确认字符。The third preset condition is that the first Bluetooth terminal does not receive the second confirmation character sent by the second Bluetooth terminal within a preset time.
  6. 根据权利要求5所述的地址传输方法,其特征在于,所述第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令包括:The address transmission method according to claim 5, wherein the sending of the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal to create a bluetooth connection command comprises:
    所述第一蓝牙端根据所述第一蓝牙端配对地址以预设跳频序列发送创建蓝牙连接命令给所述第二蓝牙端,所述预设跳频序列对应于所述第一蓝牙端配对地址。The first bluetooth terminal sends a command to create a bluetooth connection to the second bluetooth terminal according to the pairing address of the first bluetooth terminal with a preset frequency hopping sequence, and the preset frequency hopping sequence corresponds to the pairing of the first bluetooth terminal address.
  7. 根据权利要求5或6所述的地址传输方法,其特征在于,还包括:The address transmission method according to claim 5 or 6, characterized in that, further comprising:
    若满足所述第一预设条件和所述第二预设条件,所述第一蓝牙端收到所述充电盒发送的由高电平和低电平组成的预设电平序列;若所述第一蓝牙端收到所述充电盒发送的所述预设电平序列,所述第一蓝牙端向所述使用第一蓝牙端配对地址的蓝 牙端发送创建蓝牙连接命令并且判断是否满足所述第三预设条件;若满足所述第三预设条件,所述第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令。If the first preset condition and the second preset condition are satisfied, the first Bluetooth terminal receives the preset level sequence consisting of high level and low level sent by the charging box; if the The first bluetooth terminal receives the preset level sequence sent by the charging box, and the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and determines whether the a third preset condition; if the third preset condition is satisfied, the first Bluetooth terminal sends a Bluetooth connection creation command to the Bluetooth terminal using the default address of the first Bluetooth terminal.
  8. 根据权利要求1或2所述的地址传输方法,其特征在于,若满足预设条件,则所述第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令:The address transmission method according to claim 1 or 2, wherein, if a preset condition is met, the first Bluetooth terminal sends a command to create a Bluetooth connection to the Bluetooth terminal using the default address of the first Bluetooth terminal:
    所述预设条件包括第三预设条件和第四预设条件,所述第四预设条件为所述第一蓝牙端上预设的复位按键被启动超过预设时长;The preset condition includes a third preset condition and a fourth preset condition, and the fourth preset condition is that the preset reset button on the first Bluetooth terminal is activated for a preset duration;
    若满足所述第四预设条件,所述第一蓝牙端向所述使用第一蓝牙端配对地址的蓝牙端发送创建蓝牙连接命令并且判断是否满足第三预设条件;若所述第二蓝牙端收到所述第一蓝牙端向所述使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令,则所述第二蓝牙端回复第二确认字符给所述第一蓝牙端;If the fourth preset condition is satisfied, the first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the pairing address of the first bluetooth terminal and judges whether the third predetermined condition is satisfied; if the second bluetooth terminal When the terminal receives a command for creating a Bluetooth connection sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal, the second Bluetooth terminal replies with a second confirmation character to the first Bluetooth terminal;
    所述第三预设条件为所述第一蓝牙端在预设时间内未收到所述第二蓝牙端发送的第二确认字符。The third preset condition is that the first Bluetooth terminal does not receive the second confirmation character sent by the second Bluetooth terminal within a preset time.
  9. 根据权利要求1至8中任一项所述的地址传输方法,其特征在于,所述第一蓝牙端通过所述蓝牙连接接收所述第二蓝牙端发送的所述第二蓝牙端的设备地址之后包括:The address transmission method according to any one of claims 1 to 8, wherein after the first Bluetooth terminal receives the device address of the second Bluetooth terminal sent by the second Bluetooth terminal through the Bluetooth connection include:
    所述第一蓝牙端向使用所述第一蓝牙端收到的设备地址的蓝牙端发送所述创建蓝牙连接命令。The first bluetooth terminal sends the bluetooth connection creation command to the bluetooth terminal using the device address received by the first bluetooth terminal.
  10. 根据权利要求5至9中任一项所述的地址传输方法,其特征在于,所述第一蓝牙端记录所述第一蓝牙端的默认地址、所述第一蓝牙端的设备地址和所述第一蓝牙端配对地址:所述第一蓝牙端接收到所述第二蓝牙端发送的所述第二蓝牙端的设备地址后,所述第一蓝牙端将收到的所述第二蓝牙端发送的所述第二蓝牙端的设备地址记录为所述第一蓝牙端配对地址。The address transmission method according to any one of claims 5 to 9, wherein the first bluetooth terminal records the default address of the first bluetooth terminal, the device address of the first bluetooth terminal and the first bluetooth terminal. Bluetooth end pairing address: After the first Bluetooth end receives the device address of the second Bluetooth end sent by the second Bluetooth end, the first Bluetooth end will receive the data sent by the second Bluetooth end. The device address of the second Bluetooth terminal is recorded as the pairing address of the first Bluetooth terminal.
  11. 一种地址传输方法,用于第二蓝牙端,其特征在于,包括:An address transmission method for a second Bluetooth terminal, characterized in that it includes:
    第二蓝牙端使用所述第二蓝牙端的默认地址接收第一蓝牙端发送的创建蓝牙连接命令,所述创建蓝牙连接命令由所述第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送,以用于建立蓝牙连接;The second bluetooth terminal uses the default address of the second bluetooth terminal to receive a bluetooth connection creation command sent by the first bluetooth terminal, and the bluetooth connection creation command is sent from the first bluetooth terminal to the bluetooth using the default address of the first bluetooth terminal. terminal to be used to establish a Bluetooth connection;
    所述第二蓝牙端通过所述蓝牙连接接收所述第一蓝牙端发送的所述第一蓝牙端的设备地址,和/或,所述第二蓝牙端通过所述蓝牙连接发送所述第二蓝牙端的设备地址给所述第一蓝牙端;the second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection, and/or the second bluetooth terminal sends the second bluetooth terminal through the bluetooth connection The device address of the terminal is given to the first Bluetooth terminal;
    所述第一蓝牙端的默认地址和所述第二蓝牙端的默认地址相同;所述第一蓝牙端的设备地址与所述第二蓝牙端的设备地址不同。The default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal; the device address of the first bluetooth terminal is different from the device address of the second bluetooth terminal.
  12. 根据权利要求11所述的地址传输方法,其特征在于,在所述第二蓝牙端使用所述第二蓝牙端的默认地址接收第一蓝牙端发送的创建蓝牙连接命令之前还包括:配置所述第二蓝牙端的设备地址和所述第二蓝牙端的默认地址。The address transmission method according to claim 11, wherein before the second bluetooth terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal, it further comprises: configuring the first bluetooth terminal The device address of the second Bluetooth terminal and the default address of the second Bluetooth terminal.
  13. 根据权利要求11或12所述的地址传输方法,其特征在于,所述第二蓝牙端使用所述第二蓝牙端的默认地址接收第一蓝牙端发送的创建蓝牙连接命令之后,还包括:The address transmission method according to claim 11 or 12, wherein after the second bluetooth terminal uses the default address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal, the method further comprises:
    所述第二蓝牙端发送第一确认字符给所述第一蓝牙端;所述第一确认字符为所述第二蓝牙端对所述第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令的应答。The second bluetooth terminal sends a first confirmation character to the first bluetooth terminal; the first confirmation character is the communication between the second bluetooth terminal and the first bluetooth terminal using the default address of the first bluetooth terminal. The response to the command to create a Bluetooth connection sent by the Bluetooth side.
  14. 根据权利要求11至13中任一项所述的地址传输方法,其特征在于,所述 蓝牙连接为经典蓝牙连接或者低功耗蓝牙连接;若满足预设条件,所述第二蓝牙端使用所述第二蓝牙端的默认地址进入消息接收模式以接收第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送的创建蓝牙连接命令;The address transmission method according to any one of claims 11 to 13, wherein the bluetooth connection is a classic bluetooth connection or a low-power bluetooth connection; if a preset condition is met, the second bluetooth terminal uses the The default address of the second bluetooth terminal enters the message receiving mode to receive the create bluetooth connection command sent by the first bluetooth terminal to the bluetooth terminal using the default address of the first bluetooth terminal;
    所述预设条件包括第一预设条件和第五预设条件;充电盒用于给所述第二蓝牙端供电;The preset conditions include a first preset condition and a fifth preset condition; the charging box is used to supply power to the second Bluetooth terminal;
    所述第一预设条件为所述充电盒上预设的复位按键被启动;The first preset condition is that a preset reset button on the charging box is activated;
    所述第五预设条件为所述第二蓝牙端被置于所述充电盒内。The fifth preset condition is that the second Bluetooth terminal is placed in the charging box.
  15. 根据权利要求14所述的地址传输方法,其特征在于,所述预设条件还包括第六预设条件,若满足所述第一预设条件和所述第五预设条件,所述第二蓝牙端使用第二蓝牙端的设备地址进入消息接收模式,并且判断是否满足所述第六预设条件;The address transmission method according to claim 14, wherein the preset condition further comprises a sixth preset condition, and if the first preset condition and the fifth preset condition are satisfied, the second preset condition The bluetooth terminal uses the device address of the second bluetooth terminal to enter the message receiving mode, and judges whether the sixth preset condition is satisfied;
    所述第六预设条件为在预设时长内所述第二蓝牙端未收到所述第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令。The sixth preset condition is that the second Bluetooth terminal does not receive a Bluetooth connection creation command sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal within a preset time period.
  16. 根据权利要求15所述的地址传输方法,其特征在于,还包括:若满足所述第一预设条件和所述第五预设条件,所述第二蓝牙端收到所述充电盒发送的由高电平和低电平组成的预设电平序列;若所述第二蓝牙端收到所述充电盒发送的所述预设电平序列,则所述第二蓝牙端使用所述第二蓝牙端的设备地址进入消息接收模式,并且判断是否满足所述第六预设条件;若满足所述第六预设条件,所述第二蓝牙端使用所述第二蓝牙端的默认地址进入消息接收模式以接收所述第一蓝牙端发送的创建蓝牙连接命令。The address transmission method according to claim 15, further comprising: if the first preset condition and the fifth preset condition are satisfied, the second Bluetooth terminal receives the information sent by the charging box. A preset level sequence consisting of a high level and a low level; if the second Bluetooth terminal receives the preset level sequence sent by the charging box, the second Bluetooth terminal uses the second Bluetooth terminal The device address of the Bluetooth terminal enters the message receiving mode, and judges whether the sixth preset condition is met; if the sixth preset condition is met, the second Bluetooth terminal uses the default address of the second Bluetooth terminal to enter the message receiving mode. to receive a Bluetooth connection creation command sent by the first Bluetooth terminal.
  17. 根据权利要求11至13中任一项所述的地址传输方法,其特征在于,若满足预设条件,则所述第二蓝牙端使用所述第二蓝牙端的默认地址进入消息接收模式;The address transmission method according to any one of claims 11 to 13, wherein if a preset condition is met, the second Bluetooth terminal uses the default address of the second Bluetooth terminal to enter a message receiving mode;
    所述预设条件包括第六预设条件和第七预设条件,所述第七预设条件为所述第二蓝牙端上预设的复位按键被启动超过预设时长;The preset condition includes a sixth preset condition and a seventh preset condition, and the seventh preset condition is that the reset button preset on the second Bluetooth terminal is activated for a preset duration;
    若满足所述第七预设条件,所述第二蓝牙端使用第二蓝牙端的设备地址进入消息接收模式并且判断是否满足所述第六预设条件;If the seventh preset condition is met, the second Bluetooth terminal uses the device address of the second Bluetooth terminal to enter the message receiving mode and determines whether the sixth preset condition is met;
    所述第六预设条件为所述第二蓝牙端在预设时长内未收到所述第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的创建蓝牙连接命令。The sixth preset condition is that the second Bluetooth terminal does not receive a Bluetooth connection creation command sent by the first Bluetooth terminal to the Bluetooth terminal using the pairing address of the first Bluetooth terminal within a preset time period.
  18. 根据权利要求11至17中任一项所述的地址传输方法,其特征在于,The address transmission method according to any one of claims 11 to 17, wherein,
    所述第二蓝牙端通过所述蓝牙连接发送所述第二蓝牙端的设备地址给所述第一蓝牙端之后包括:After the second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection, it includes:
    所述第二蓝牙端使用所述第二蓝牙端的设备地址接收所述第一蓝牙端向使用第一蓝牙端配对地址的蓝牙端发送的所述创建蓝牙连接命令。The second bluetooth terminal uses the device address of the second bluetooth terminal to receive the bluetooth connection creation command sent by the first bluetooth terminal to the bluetooth terminal using the pairing address of the first bluetooth terminal.
  19. 根据权利要求11至18中任一项所述的地址传输方法,其特征在于,所述第二蓝牙端记录所述第二蓝牙端的默认地址、所述第二蓝牙端的设备地址和第二蓝牙端配对地址:所述第二蓝牙端通过所述蓝牙连接接收所述第一蓝牙端发送的所述第一蓝牙端的设备地址后,所述第二蓝牙端将收到的所述第一蓝牙端发送的所述第一蓝牙端的设备地址记录为所述第二蓝牙端配对地址。The address transmission method according to any one of claims 11 to 18, wherein the second bluetooth terminal records the default address of the second bluetooth terminal, the device address of the second bluetooth terminal and the second bluetooth terminal Pairing address: after the second bluetooth terminal receives the device address of the first bluetooth terminal sent by the first bluetooth terminal through the bluetooth connection, the second bluetooth terminal sends the received first bluetooth terminal The device address of the first Bluetooth terminal is recorded as the pairing address of the second Bluetooth terminal.
  20. 一种蓝牙芯片,其特征在于,包括:存储器和处理器;所述存储器与处理器耦合;A Bluetooth chip, comprising: a memory and a processor; the memory is coupled to the processor;
    所述存储器,用于存储程序指令;the memory for storing program instructions;
    所述处理器,用于调用所述存储器存储的程序指令,使得所述蓝牙芯片执行上述权利要求1至10中任一项所述的地址传输方法或者使得所述蓝牙芯片执行上述权利要求11至19中任一项所述的地址传输方法。The processor is configured to invoke the program instructions stored in the memory, so that the Bluetooth chip executes the address transmission method described in any one of the preceding claims 1 to 10 or causes the Bluetooth chip to execute the preceding claims 11 to 10 The address transmission method described in any one of 19.
  21. 一种蓝牙耳机,其特征在于,包括耳机外壳和置于所述耳机外壳内部的如上述权利要求20所述的蓝牙芯片。A bluetooth earphone is characterized in that it comprises an earphone casing and the bluetooth chip according to claim 20 which is placed inside the earphone casing.
  22. 一种电子设备,其特征在于,包括外壳和置于所述外壳内部的如上述权利要求20所述的蓝牙芯片。An electronic device, characterized in that it comprises a casing and the Bluetooth chip according to claim 20, which is placed inside the casing.
  23. 一种通信系统,其特征在于,包括第一蓝牙端和第二蓝牙端;A communication system, comprising a first Bluetooth terminal and a second Bluetooth terminal;
    所述第一蓝牙端向使用所述第一蓝牙端的默认地址的蓝牙端发送创建蓝牙连接命令,并且所述第二蓝牙端使用所述第二蓝牙端的默认地址接收所述第一蓝牙端发送的创建蓝牙连接命令,所述创建蓝牙连接命令用于建立蓝牙连接;The first bluetooth terminal sends a command to create a bluetooth connection to the bluetooth terminal using the default address of the first bluetooth terminal, and the second bluetooth terminal uses the default address of the second bluetooth terminal to receive the command sent by the first bluetooth terminal. creating a bluetooth connection command, the creating bluetooth connection command is used to establish a bluetooth connection;
    所述第一蓝牙端的默认地址和所述第二蓝牙端的默认地址相同,所述第一蓝牙端的设备地址与所述第二蓝牙端的设备地址不同;The default address of the first bluetooth terminal is the same as the default address of the second bluetooth terminal, and the device address of the first bluetooth terminal is different from the device address of the second bluetooth terminal;
    所述第一蓝牙端通过所述蓝牙连接发送所述第一蓝牙端的设备地址给所述第二蓝牙端,并且所述第二蓝牙端通过所述蓝牙连接接收所述第一蓝牙端发送的所述第一蓝牙端的设备地址;和/或,The first bluetooth terminal sends the device address of the first bluetooth terminal to the second bluetooth terminal through the bluetooth connection, and the second bluetooth terminal receives the information sent by the first bluetooth terminal through the bluetooth connection. the device address of the first Bluetooth terminal; and/or,
    所述第二蓝牙端通过所述蓝牙连接发送所述第二蓝牙端的设备地址给所述第一蓝牙端,并且,所述第一蓝牙端通过所述蓝牙连接接收所述第二蓝牙端发送的所述第二蓝牙端的设备地址。The second bluetooth terminal sends the device address of the second bluetooth terminal to the first bluetooth terminal through the bluetooth connection, and the first bluetooth terminal receives the data sent by the second bluetooth terminal through the bluetooth connection. The device address of the second Bluetooth terminal.
PCT/CN2020/116929 2020-09-22 2020-09-22 Address transmission method, bluetooth chip, bluetooth headset, and electronic device WO2022061551A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/116929 WO2022061551A1 (en) 2020-09-22 2020-09-22 Address transmission method, bluetooth chip, bluetooth headset, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/116929 WO2022061551A1 (en) 2020-09-22 2020-09-22 Address transmission method, bluetooth chip, bluetooth headset, and electronic device

Publications (1)

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

Family

ID=80844580

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/116929 WO2022061551A1 (en) 2020-09-22 2020-09-22 Address transmission method, bluetooth chip, bluetooth headset, and electronic device

Country Status (1)

Country Link
WO (1) WO2022061551A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866896A (en) * 2022-04-27 2022-08-05 歌尔股份有限公司 Earphone pairing method, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109348466A (en) * 2018-11-29 2019-02-15 与德科技有限公司 Bluetooth headset, bluetooth headset box and bluetooth headset MAC Address exchange method
CN109618318A (en) * 2018-12-21 2019-04-12 潍坊歌尔电子有限公司 A kind of matching method and TWS earphone of TWS earphone
US20190253858A1 (en) * 2014-06-06 2019-08-15 BBPOS Limited System and method of bluetooth pairing with a group of bluetooth devices
CN111436038A (en) * 2019-10-23 2020-07-21 珠海市杰理科技股份有限公司 Bluetooth connection method and system, Bluetooth master and slave device connection method and Bluetooth master and slave device
CN111464993A (en) * 2020-04-08 2020-07-28 昆山泰芯微电子有限公司 Double-ear Bluetooth headset pairing method and wireless headset for double-ear Bluetooth headset

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190253858A1 (en) * 2014-06-06 2019-08-15 BBPOS Limited System and method of bluetooth pairing with a group of bluetooth devices
CN109348466A (en) * 2018-11-29 2019-02-15 与德科技有限公司 Bluetooth headset, bluetooth headset box and bluetooth headset MAC Address exchange method
CN109618318A (en) * 2018-12-21 2019-04-12 潍坊歌尔电子有限公司 A kind of matching method and TWS earphone of TWS earphone
CN111436038A (en) * 2019-10-23 2020-07-21 珠海市杰理科技股份有限公司 Bluetooth connection method and system, Bluetooth master and slave device connection method and Bluetooth master and slave device
CN111464993A (en) * 2020-04-08 2020-07-28 昆山泰芯微电子有限公司 Double-ear Bluetooth headset pairing method and wireless headset for double-ear Bluetooth headset

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866896A (en) * 2022-04-27 2022-08-05 歌尔股份有限公司 Earphone pairing method, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
JP3790186B2 (en) Device hiding
CN111200769B (en) Communication method for Bluetooth headset device and Bluetooth headset device
US20150201440A1 (en) BLUETOOTH Device Connection Method and Device
CN111464993B (en) Bluetooth headset pairing method and wireless headset for Bluetooth headset
CN108810741B (en) Method and device for connecting double wireless earphones and wireless earphones
CN110166951B (en) Wireless audio output device
CN111757206B (en) Communication method between charging box and earphone, charging box, earphone and storage medium
CN108810697B (en) Wireless earphone pairing method and device and wireless earphone
KR20210020541A (en) Electronic device for retransmitting data in bluetooth network environment and method thereof
KR20200106742A (en) Electronic device for transmitting response message in bluetooth network environment and method thereof
KR20210020542A (en) Method for supporting multiple links in bluetooth network environment and electronic device thereof
WO2019019050A1 (en) Wireless communication pairing method, wireless receiving device, and wireless transmitting device and system
WO2023036178A1 (en) Bluetooth connection method and apparatus, earphone device, and computer-readable storage medium
WO2022061551A1 (en) Address transmission method, bluetooth chip, bluetooth headset, and electronic device
CN111954123B (en) Method, system, medium, and wireless audio device for information synchronization of wireless audio devices
CN113473291A (en) Communication method, earphone cabin and WIFI earphone
WO2023061076A1 (en) Bluetooth connection method and apparatus, earphone, and storage medium
CN112672245A (en) Earphone control method, earphone box and computer readable storage medium
CN112104943B (en) Address transmission method, Bluetooth chip, Bluetooth headset and electronic equipment
KR102639249B1 (en) Method for sharing channel information and electronic device therefor
JP5892348B1 (en) Wireless communication apparatus and control method thereof
WO2023093223A1 (en) Bluetooth connection method and apparatus, and bluetooth device and storage medium
CN110858965A (en) Data transmission method and device, terminal and storage medium
WO2024016885A1 (en) Bluetooth connection method and apparatus, electronic device, and computer readable 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: 20954405

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

Country of ref document: EP

Kind code of ref document: A1