CN110430502B - Bluetooth headset pairing method and charging base - Google Patents

Bluetooth headset pairing method and charging base Download PDF

Info

Publication number
CN110430502B
CN110430502B CN201910711770.XA CN201910711770A CN110430502B CN 110430502 B CN110430502 B CN 110430502B CN 201910711770 A CN201910711770 A CN 201910711770A CN 110430502 B CN110430502 B CN 110430502B
Authority
CN
China
Prior art keywords
bluetooth
bluetooth headset
pairing
headset
ear
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910711770.XA
Other languages
Chinese (zh)
Other versions
CN110430502A (en
Inventor
何浪
王志明
许明强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Atx Technology Co ltd
Original Assignee
Shenzhen Atx Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Atx Technology Co ltd filed Critical Shenzhen Atx Technology Co ltd
Priority to CN201910711770.XA priority Critical patent/CN110430502B/en
Publication of CN110430502A publication Critical patent/CN110430502A/en
Application granted granted Critical
Publication of CN110430502B publication Critical patent/CN110430502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • 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
    • H04R1/1025Accumulators or arrangements for charging

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

According to the Bluetooth headset pairing method provided by the invention, when two Bluetooth headsets are detected to be connected to the base, the heartbeat packet is started, and when the preset interval time is up, a CMD (command-to-command) command is sent to the Bluetooth headsets; receiving an ACK instruction returned by the Bluetooth headset; and analyzing the ACK instruction, and pairing the two Bluetooth earphones when the two Bluetooth earphones are judged to be unpaired according to the ACK instruction. According to the method, after the Bluetooth headset is placed in the base and is contacted, the heartbeat packet is started, and the current state information of the Bluetooth headset is automatically acquired. If the Bluetooth headset is not paired, the base automatically sends an instruction to enable the two Bluetooth headsets to be paired. The method has the advantages that manual key pairing is not needed before each use, the use is convenient, the influence on the production progress due to a large amount of time consumption is avoided, and the yield is effectively improved.

Description

Bluetooth headset pairing method and charging base
Technical Field
The invention belongs to the technical field of Bluetooth headsets, and particularly relates to a Bluetooth headset pairing method and a charging base.
Background
In the TWS earphones on the market today, the pairing operation between the left and right ears is required before the factory shipment, and the user needs to use the function occasionally when using the earphones. When most of the Bluetooth earphones realize the function, the automatic TWS pairing record reconnection is carried out after the auxiliary earphone is started, and if the reconnection fails, the TWS pairing is carried out, and the automatic TWS pairing is carried out after the auxiliary earphone is started without the pairing record. Correspondingly, the same operation is carried out after the right ear is started. However, considering that the headset needs to be paired and connected with the mobile phone, in the conventional pairing process, the whole process of paired connection of the left ear and the right ear is generally controlled within 10 seconds, and if the time is out, the headset key needs to be operated to enter a TWS pairing state to complete pairing operation. Although the method can successfully realize the function of pairing and connecting the left ear and the right ear, the time consumption is too long, and in the production line production in time of seconds, the step of pairing the left ear and the right ear before leaving a factory consumes too much time, the production progress is seriously influenced, and the yield is reduced. In addition, in the using process of a user, the user needs to wait for a long time for connecting the left ear and the right ear after starting up each time and then connects the mobile phone, so that poor experience is brought.
Therefore, some Bluetooth headsets on the market improve the function by sending instructions to the headset by using the base to control the headset to enter the TWS pairing mode. The function realization of the aspect mainly depends on the communication between the base and the earphone, the communication mechanism is set between the base and the earphone, when in use, the earphone is placed in the base, the base is triggered by the base button to send a set pairing instruction, and the left ear and the right ear are paired in a TWS pairing state after the two ears receive the instruction. Although the design can quickly pair the left ear and the right ear, the user needs to manually press keys to control the left ear and the right ear to be paired before using the device every time, and the use is very inconvenient.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides the Bluetooth headset pairing method and the charging base, which do not need manual key pressing of a user to perform left and right ear pairing operation and are convenient to use.
In a first aspect, a bluetooth headset pairing method includes the following steps:
when two Bluetooth earphones are detected to be connected to the base, a heartbeat packet is started, and when a preset interval time is up, a CMD command is sent to the Bluetooth earphones;
receiving an ACK instruction returned by the Bluetooth headset;
and analyzing the ACK instruction, and pairing the two Bluetooth earphones when the two Bluetooth earphones are judged to be unpaired according to the ACK instruction.
Preferably, the CMD command comprises CMD data, and the CMD data comprises a bluetooth headset access state, a battery power level and a base working state;
the Bluetooth headset access state comprises that no Bluetooth headset is accessed, one Bluetooth headset is accessed and two Bluetooth headsets are accessed;
the battery power comprises the remaining battery power percentage of the Bluetooth headset;
the base operating state comprises starting and closing.
Preferably, the ACK instruction includes ACK data, where the ACK data includes a current state of the bluetooth headset, a connection state of the bluetooth headset with the mobile terminal, a bluetooth headset mode, and a bluetooth headset address code;
the current state of the Bluetooth headset comprises no action, left and right ear matching and centering, left and right ear connection, matching record return connection and resetting reset;
the connection state of the Bluetooth headset and the mobile terminal comprises no action, pairing with the mobile terminal, connecting with the mobile terminal, pairing record reconnection and resetting;
the Bluetooth headset mode comprises that the left headset and the right headset, the main ear, the auxiliary ear and no pairing record are not detected;
and the Bluetooth headset address code comprises the sum of the main ear address code and the auxiliary ear address code after the pairing is successful.
Preferably, when it is determined through the ACK instruction that the two bluetooth headsets are not paired, pairing the two bluetooth headsets specifically includes:
and when the Bluetooth headset mode is the non-pairing record in the ACK data, pairing the accessed Bluetooth headset.
Preferably, when it is determined through the ACK instruction that the two bluetooth headsets are not paired, pairing the two bluetooth headsets specifically includes:
when two connected Bluetooth earphones are detected, the Bluetooth earphone mode of ACK data is a main ear, the Bluetooth earphone mode of the other ACK data is an auxiliary ear, and the Bluetooth earphone address codes in the two ACK data are different, the two connected Bluetooth earphones are paired.
Preferably, the pairing of the two bluetooth headsets specifically includes:
analyzing the ACK data of the two accessed Bluetooth earphones, and setting the Bluetooth earphone mode of the Bluetooth earphone of the left ear as an auxiliary ear when the Bluetooth earphone modes of the two ACK data are both main ears;
and when the two Bluetooth headset modes of the ACK data are both auxiliary ears, setting the Bluetooth headset mode of the Bluetooth headset of the right ear as a main ear.
Preferably, the pairing of the two bluetooth headsets specifically includes:
analyzing the ACK data of the two accessed Bluetooth earphones, and setting the Bluetooth earphone mode of the Bluetooth earphone of the right ear as an auxiliary ear when the Bluetooth earphone modes of the two ACK data are both main ears;
and when the two Bluetooth headset modes of the ACK data are both auxiliary ears, setting the Bluetooth headset mode of the Bluetooth headset of the left ear as a main ear.
In a second aspect, a charging dock comprises a communication unit for performing the method of the first aspect.
Preferably, a power supply unit for charging the accessed bluetooth headset is further included.
Preferably, the charging base and the Bluetooth headset are in single-wire serial port communication.
According to the technical scheme, the Bluetooth headset pairing method and the charging base provided by the invention have the advantages that after the Bluetooth headset is placed in the base and is contacted, the heartbeat packet is started, and the current state information of the Bluetooth headset is automatically acquired. If the Bluetooth headset is not paired, the base automatically sends an instruction to enable the two Bluetooth headsets to be paired. The method has the advantages that manual key pairing is not needed before each use, the use is convenient, the influence on the production progress due to a large amount of time consumption is avoided, and the yield is effectively improved.
In addition, the charging base directly transmits and receives command signals to the Bluetooth headset by utilizing a single-wire serial port on the base in the aspect of communication with the Bluetooth headset, so that the effect of signal interaction with the Bluetooth headset is achieved, one-to-one communication operation between the Bluetooth headset and the base can be successfully realized by setting a communication mechanism of the Bluetooth headset and the base, auxiliary communication of other third-party equipment is not needed, and the use is convenient.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
Fig. 1 is a flowchart of a method according to an embodiment of the present invention.
Fig. 2 is a block diagram of a charging base according to a second embodiment of the present invention.
Fig. 3 is a diagram illustrating a connection method of a bluetooth headset according to a second embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby. It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
The first embodiment is as follows:
a bluetooth headset pairing method, see fig. 1, comprising the steps of:
s1: when two Bluetooth earphones are detected to be connected to the base, a heartbeat packet is started, and when a preset interval time is up, a CMD command is sent to the Bluetooth earphones;
preferably, the CMD command comprises CMD data, and the CMD data comprises a bluetooth headset access state, a battery power level and a base working state;
the Bluetooth headset access state comprises that no Bluetooth headset is accessed, one Bluetooth headset is accessed and two Bluetooth headsets are accessed;
the battery power comprises the remaining battery power percentage of the Bluetooth headset;
the base operating state comprises starting and closing.
Specifically, the format of the CMD instruction is as follows:
Header cmd len_h len_l Data CRC16
4bytes 1byte 1byte 1byte Len bytes 1byte
the format of the CMD instruction includes a Header (4 bytes), a command code (CMD, 1 byte), a Data length (len _ l and len _ h, 2 bytes), a Data code (Data, variable), a check value (CRC16, 1 byte);
the header is used to identify whether the command is a CMD command or an ACK command, for example, the header of the CMD command is 0x0a010a01, and the header of the ACK command is 0x0a080a 08. The data length is the length of the data code. The data code is used to identify specific information (e.g., new pairing name, parameters, etc.).
The format of the data code (i.e., CMD data) is as follows:
Figure BDA0002154024390000051
in box status is the bluetooth headset access status, 0x00 indicates that no bluetooth headset is accessed, 0x01 indicates that one bluetooth headset is accessed, and 0x02 indicates that two bluetooth headsets are accessed. Battery level is the Battery charge, expressed as a percentage. Cell status is base operating, 0x00 indicating off, 0x01 indicating on. Reserved is a Reserved byte, and defaults to 0x 00.
The command code may include the following commands (the following values are all 16-ary states):
CMD _ CHECK _ STATE is equal to 0, the identification headset confirms the current STATE, and the value is 0x 00;
CMD _ BOX _ OPEN is 1, the identifier base is in the OPEN state, and the value is 0x 01;
CMD _ BOX _ CLOSE is 2, the base is identified to be in a closed BOX state, and the value is 0x 02;
CMD _ INTO _ OTA equals 3, identifies that the headset enters an OTA (software upgrade) state, and takes a value of 0x 03;
CMD _ intotws _ PAIRING 4, which identifies that the headset enters a left-right ear PAIRING state and takes a value of 0x 04;
CMD _ intojphone _ PAIRING ═ 5, the earphone is identified to enter the mobile PHONE PAIRING state, and the value is 0x 05;
CMD _ TWS _ RESET is 7, and the left ear and the right ear of the identification earphone are paired and RESET, and the value is 0x 07;
CMD _ FACTORY _ RESET is 8, the identification earphone restores the FACTORY setting, and the value is 0x 08;
CMD _ READ _ VERSION 13, identifying the current software VERSION of the headset, and taking the value of 0x0 d;
CMD _ READ _ BDADDR is 14, identifies the headset bluetooth address, and takes the value of 0x0 e;
CMD _ WRITE _ REMOTE _ BDADDR is 15, the identification is written into the REMOTE Bluetooth address, and the value is 0x0 f;
CMD _ GOODBYE ═ 16, the headset is identified to be powered off, and the value is 0x1 f;
s2: receiving an ACK instruction returned by the Bluetooth headset;
preferably, the ACK instruction includes ACK data, where the ACK data includes a current state of the bluetooth headset, a connection state of the bluetooth headset with the mobile terminal, a bluetooth headset mode, and a bluetooth headset address code;
the current state of the Bluetooth headset comprises no action, left and right ear matching and centering, left and right ear connection, matching record return connection and resetting reset;
the connection state of the Bluetooth headset and the mobile terminal comprises no action, pairing with the mobile terminal, connecting with the mobile terminal, pairing record reconnection and resetting;
the Bluetooth headset mode comprises that the left headset and the right headset, the main ear, the auxiliary ear and no pairing record are not detected;
and the Bluetooth headset address code comprises the sum of the main ear address code and the auxiliary ear address code after the pairing is successful.
Specifically, the format of the ACK instruction is as follows:
Header cmd Ack len_h len_l Data CRC16
4bytes 1byte 1byte 1byte 1byte Len bytes 1byte
the format of the ACK instruction includes a Header (4 bytes), a command code (cmd, 1 byte), an ACK (1 byte), a Data length (len _ l and len _ h, 2 bytes), a Data code (Data, variable), a check value (CRC16, 1 byte);
the data code (i.e., ACK data) format is as follows:
Figure BDA0002154024390000071
wherein, TWS status is the current state of the Bluetooth headset: none indicates that the current Bluetooth headset is inactive; pairing represents that the current Bluetooth headset is in left and right ear alignment; connecting indicates that the current bluetooth headset is in left and right ear connection; the Reconnection indicates that the current Bluetooth headset has left and right ear matching records and is in a back connection and ear matching state; resetting indicates that the current bluetooth headset is in reset.
BT Conn status is a connection state between a bluetooth headset and a mobile terminal (including a mobile phone, a tablet computer, etc.): none indicates that the current Bluetooth headset is inactive; pairing represents that the current Bluetooth headset is matched with the mobile terminal; connecting indicates that the current Bluetooth headset is connected with the mobile terminal; the Reconnection indicates that the current Bluetooth headset has a matching record of the mobile terminal and is in the back connection of the matched equipment; resetting indicates that the current bluetooth headset is in reset.
TWS Mode is when bluetooth headset Mode: the TWS Bluetooth headset distinguishes a main ear and an auxiliary ear, and the None indicates that the left headset and the right headset are not detected, namely, one side of the left headset and the other side of the left headset are not provided with the earphones; master represents that the current Bluetooth headset is used for matching left and right ears and is used as a main ear; the Slave represents that the current Bluetooth headset is subjected to left and right ear pairing and is used as an auxiliary ear; freeman indicates that the current Bluetooth headset has no left and right ear pairing information.
The BT Addr SUM is a Bluetooth headset address code and is the SUM of a main ear address code and an auxiliary ear address code after successful pairing: the address codes (6 bits) of all the Bluetooth earphones are different, the two Bluetooth earphones can exchange the address codes in the process of pairing the left ear and the right ear, and after pairing is successful, the earphones sum the address codes of the main ear and the address codes of the auxiliary ear and store the sum as BT addrSUM of one byte.
S3: and analyzing the ACK instruction, and pairing the two Bluetooth headsets when the two Bluetooth headsets are judged to be unpaired through the ACK instruction, wherein the method specifically comprises the following method of whether the two Bluetooth headsets are paired.
1. And when the Bluetooth headset mode is the non-pairing record in the ACK data, pairing the accessed Bluetooth headset.
Specifically, if it is detected that the current state of the bluetooth headset is not in left-right ear alignment, the connection state of the bluetooth headset and the mobile terminal is not in left-right ear alignment, and the bluetooth headset mode is no alignment record, it indicates that the bluetooth headset has not been aligned before, and the accessed bluetooth headset is aligned.
2. When two connected Bluetooth earphones are detected, the Bluetooth earphone mode of ACK data is a main ear, the Bluetooth earphone mode of the other ACK data is an auxiliary ear, and the Bluetooth earphone address codes in the two ACK data are different, the two connected Bluetooth earphones are paired.
Specifically, when detecting that the TWS modes of the two currently-placed bluetooth headsets are one master and one slave, the bluetooth headset address codes of the two bluetooth headsets need to be compared, and if the bluetooth headset address codes are the same, it is indicated that the two bluetooth headsets which have been paired do not need to be paired again. If the address codes of the Bluetooth earphones are different, the two current Bluetooth earphones have left and right ear pairing records, but the two current Bluetooth earphones do not pair the ears and need to be paired again.
Preferably, the pairing of the two bluetooth headsets specifically includes:
analyzing the ACK data of the two accessed Bluetooth earphones, and setting the Bluetooth earphone mode of the Bluetooth earphone of the left ear as an auxiliary ear when the Bluetooth earphone modes of the two ACK data are both main ears;
and when the two Bluetooth headset modes of the ACK data are both auxiliary ears, setting the Bluetooth headset mode of the Bluetooth headset of the right ear as a main ear.
Specifically, in the initialization process, if the bluetooth headset of the right ear is the main ear by default, the bluetooth headset of the left ear is the auxiliary ear. If the Bluetooth headset has a master-slave switching function (namely each Bluetooth headset can be used as a main ear and also can be used as an auxiliary ear), and the master-slave mode of the Bluetooth headset is uncertain when the master-slave mode of the left ear and the slave ear is uncertain, the master-slave mode of the Bluetooth headset can be confirmed by the method, namely if the connected Bluetooth headsets are two main ears, the Bluetooth headset of the left ear is set as an auxiliary ear; if the connected Bluetooth earphone is two auxiliary ears, the Bluetooth earphone of the right ear is set as a main ear.
Preferably, the pairing of the two bluetooth headsets specifically includes:
analyzing the ACK data of the two accessed Bluetooth earphones, and setting the Bluetooth earphone mode of the Bluetooth earphone of the right ear as an auxiliary ear when the Bluetooth earphone modes of the two ACK data are both main ears;
and when the two Bluetooth headset modes of the ACK data are both auxiliary ears, setting the Bluetooth headset mode of the Bluetooth headset of the left ear as a main ear.
Specifically, in the initialization process, if the bluetooth headset of the right ear is the auxiliary ear and the bluetooth headset of the left ear is the main ear by default. If the accessed Bluetooth earphones are two main ears, the Bluetooth earphone of the right ear is set as an auxiliary ear; if the connected Bluetooth earphone is two auxiliary ears, the Bluetooth earphone of the left ear is set as a main ear.
For example, when the bluetooth headset is notified to enter the left-right ear PAIRING state, the sent CMD command is 0a010a 0104000100 ffff, where 0a010a01 is a header code, 04 is a command code (corresponding to a command ID: CMD _ INTO _ TWS _ PAIRING ═ 4), 0001 is a data length (1 byte), 00 is a data code (default is 0x00, that is, no information is included), and ffff is a check value.
The ACK command returned by the bluetooth headset is 0a080a 080401000101 ffff, 0a080a08 is a header code, 04 is a command code (corresponding to command ID: CMD _ INTO _ TWS _ PAIRING ═ 4), 01 is ACK (0x01: CMD command reception succeeds, CMD command reception fails in 0x 00), 0001 is data length (1 byte), 01 is a default value of the data code, and ffff is a check value.
According to the method, after the Bluetooth headset is placed in the base and is contacted, the heartbeat packet is started, and the current state information of the Bluetooth headset is automatically acquired. If the Bluetooth headset is not paired, the base automatically sends an instruction to enable the two Bluetooth headsets to be paired. The method has the advantages that manual key pairing is not needed before each use, the use is convenient, the influence on the production progress due to a large amount of time consumption is avoided, and the yield is effectively improved.
Example two:
a charging dock, see fig. 2, comprises a communication unit for performing the above method.
Specifically, this charging base puts into when detecting bluetooth headset to after the contact, will start the heartbeat package, and bluetooth headset regularly sends the state information of self for the base, if non-pairing bluetooth headset, the base is automatic to be sent the instruction and makes two bluetooth headset pair. This charging base need not mate before using at every turn the manual button, and is convenient to use, avoids consumeing a large amount of time and influences the production progress, effectively improves the productivity.
Preferably, a power supply unit for charging the accessed bluetooth headset is further included.
Specifically, this charging base not only has the function of charging like this, can also realize pairing the function in the charging process, like this, in bluetooth headset production process, just can be in the link of charging for bluetooth headset, carry out simultaneously and pair the function, need not set up a node of pairing alone on the production line, improved production efficiency.
Referring to fig. 3, the charging cradle performs single-wire serial communication with the bluetooth headset.
Specifically, a single-wire serial communication mode is adopted, namely a Tx signal source and an Rx signal source in a serial port are combined together to form a signal wire, a base sends a CMD command to a Bluetooth headset, and the Bluetooth headset returns an ACK command response.
For a brief description, and where not mentioned in the embodiments, reference may be made to the corresponding contents in the foregoing method embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (6)

1. A Bluetooth headset pairing method is characterized by comprising the following steps:
when two Bluetooth earphones are detected to be connected to the base, a heartbeat packet is started, and when a preset interval time is up, a CMD command is sent to the Bluetooth earphones;
receiving an ACK instruction returned by the Bluetooth headset;
analyzing the ACK instruction, and pairing the two Bluetooth earphones when the two Bluetooth earphones are judged to be unpaired through the ACK instruction;
the ACK instruction comprises ACK data, and the ACK data comprises the current state of the Bluetooth headset, the connection state of the Bluetooth headset and the mobile terminal, the Bluetooth headset mode and the Bluetooth headset address code;
the current state of the Bluetooth headset comprises no action, left and right ear matching and centering, left and right ear connection, matching record return connection and resetting reset;
the connection state of the Bluetooth headset and the mobile terminal comprises no action, pairing with the mobile terminal, connecting with the mobile terminal, pairing record reconnection and resetting;
the Bluetooth headset mode comprises that the left headset and the right headset, the main ear, the auxiliary ear and no pairing record are not detected;
the Bluetooth headset address code comprises the sum of a main ear address code and an auxiliary ear address code after pairing is successful;
when the two Bluetooth headsets are judged to be unpaired through the ACK instruction, pairing the two Bluetooth headsets specifically comprises the following steps:
when the ACK data is detected, the mode of the Bluetooth headset is a pairing record, and the accessed Bluetooth headset is paired;
when the two Bluetooth headsets are judged to be unpaired through the ACK instruction, pairing the two Bluetooth headsets specifically comprises the following steps:
when detecting that the Bluetooth headset mode of one ACK data is a main ear and the Bluetooth headset mode of the other ACK data is an auxiliary ear in the two accessed Bluetooth headsets, and the Bluetooth headset address codes in the two ACK data are different, pairing the two accessed Bluetooth headsets;
the base and the Bluetooth headset are in single-wire serial port communication.
2. The Bluetooth headset pairing method of claim 1,
the CMD command comprises CMD data, and the CMD data comprises a Bluetooth headset access state, battery capacity and a base working state;
the Bluetooth headset access state comprises that no Bluetooth headset is accessed, one Bluetooth headset is accessed and two Bluetooth headsets are accessed;
the battery power comprises the remaining battery power percentage of the Bluetooth headset;
the base operating state comprises starting and closing.
3. The Bluetooth headset pairing method of claim 1,
the pairing of the two bluetooth headsets specifically comprises:
analyzing the ACK data of the two accessed Bluetooth earphones, and setting the Bluetooth earphone mode of the Bluetooth earphone of the left ear as an auxiliary ear when the Bluetooth earphone modes of the two ACK data are both main ears;
and when the two Bluetooth headset modes of the ACK data are both auxiliary ears, setting the Bluetooth headset mode of the Bluetooth headset of the right ear as a main ear.
4. The Bluetooth headset pairing method of claim 1,
the pairing of the two bluetooth headsets specifically comprises:
analyzing the ACK data of the two accessed Bluetooth earphones, and setting the Bluetooth earphone mode of the Bluetooth earphone of the right ear as an auxiliary ear when the Bluetooth earphone modes of the two ACK data are both main ears;
and when the two Bluetooth headset modes of the ACK data are both auxiliary ears, setting the Bluetooth headset mode of the Bluetooth headset of the left ear as a main ear.
5. A charging dock comprising a communication unit for performing the method of any one of claims 1 to 4.
6. The charging dock of claim 5,
the Bluetooth headset also comprises a power supply unit used for charging the accessed Bluetooth headset.
CN201910711770.XA 2019-08-02 2019-08-02 Bluetooth headset pairing method and charging base Active CN110430502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910711770.XA CN110430502B (en) 2019-08-02 2019-08-02 Bluetooth headset pairing method and charging base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910711770.XA CN110430502B (en) 2019-08-02 2019-08-02 Bluetooth headset pairing method and charging base

Publications (2)

Publication Number Publication Date
CN110430502A CN110430502A (en) 2019-11-08
CN110430502B true CN110430502B (en) 2020-10-16

Family

ID=68413985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910711770.XA Active CN110430502B (en) 2019-08-02 2019-08-02 Bluetooth headset pairing method and charging base

Country Status (1)

Country Link
CN (1) CN110430502B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343533B (en) * 2020-02-27 2022-04-22 歌尔股份有限公司 Earphone storage device, earphone checking method, control device and storage medium thereof
CN114125620A (en) * 2020-08-31 2022-03-01 瑞昱半导体股份有限公司 Bluetooth headset system and box that charges is accomodate to bluetooth headset
CN112954523B (en) * 2021-01-29 2023-06-02 佳禾智能科技股份有限公司 TWS earphone checking method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600694A (en) * 2019-01-16 2019-04-09 歌尔科技有限公司 A kind of matching method of wireless headset, device, terminal and charging box

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10003881B2 (en) * 2015-09-30 2018-06-19 Apple Inc. Earbuds with capacitive touch sensor
CN108769856B (en) * 2018-06-12 2021-02-23 歌尔科技有限公司 Method and device for establishing single-wire connection, wireless earphone and charging box
CN109150294B (en) * 2018-08-14 2021-02-23 歌尔科技有限公司 Communication method, wireless earphone and charging box
CN109348466A (en) * 2018-11-29 2019-02-15 与德科技有限公司 Bluetooth headset, bluetooth headset box and bluetooth headset MAC Address exchange method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600694A (en) * 2019-01-16 2019-04-09 歌尔科技有限公司 A kind of matching method of wireless headset, device, terminal and charging box

Also Published As

Publication number Publication date
CN110430502A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN110430502B (en) Bluetooth headset pairing method and charging base
KR102505264B1 (en) Wireless audio output devices
US8078787B2 (en) Communication between a host device and an accessory via an intermediate device
CN112698733B (en) Wireless keyboard
US10735054B2 (en) Wireless communication device and method for transferring communication rights between electronic devices
CN102281482A (en) Function extension method and device thereof for earphone jack of smart phone
CN105718311A (en) Intelligent system and implementing method thereof, peripheral applied to intelligent device
US20130225074A1 (en) Non-volatile memory for nfc router
EP4082177B1 (en) Electronic device and method for recognizing audio output device connected to usb type-c connector
WO2021082263A1 (en) Method for communication between wireless earphone and charging case, charging case, tws earphone, and system
CN110996207A (en) Method and system capable of judging whether wireless earphone is in charging box or not and wireless earphone
CN113518331B (en) Communication method and device
CN113473291A (en) Communication method, earphone cabin and WIFI earphone
WO2021054647A1 (en) Power supply method and electronic device therefor
CN115086855B (en) Test system, method and related device
CN113905382B (en) Personalized wireless earphone box and using method thereof
CN105142237A (en) Device pairing method and system
CN110475175B (en) Method and device for charging wireless earphone
WO2022041681A1 (en) Wireless earpieces, method for controlling wireless earpieces, and storage medium
CN115086828A (en) Earphone control method and related device
CN210629486U (en) Data storage device and data storage system
CN212034123U (en) MIFI equipment
CN205430621U (en) Equipment system of paiing
CN111428227B (en) Intelligent key device supporting card reading
CN210380862U (en) Modular design structure capable of updating MCU software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant