CN111866822A - Master-slave set setting system, method and device of Bluetooth headset and Bluetooth headset - Google Patents
Master-slave set setting system, method and device of Bluetooth headset and Bluetooth headset Download PDFInfo
- Publication number
- CN111866822A CN111866822A CN201910343805.9A CN201910343805A CN111866822A CN 111866822 A CN111866822 A CN 111866822A CN 201910343805 A CN201910343805 A CN 201910343805A CN 111866822 A CN111866822 A CN 111866822A
- Authority
- CN
- China
- Prior art keywords
- bluetooth headset
- slave
- machine
- master
- bluetooth
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000004590 computer program Methods 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
- H04W84/20—Master-slave selection or change arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention is suitable for the technical field of Bluetooth, and provides a master-slave set setting system, a master-slave set setting method and a master-slave set setting device of a Bluetooth headset, and the Bluetooth headset, wherein the system comprises a first Bluetooth headset and a second Bluetooth headset, and the master-slave set setting system comprises: the first Bluetooth headset acquires the device connection states of the first Bluetooth headset and the second Bluetooth headset, determines a host and a slave according to the device connection states of the first Bluetooth headset and the second Bluetooth headset, sets the host or the slave for the first Bluetooth headset, and then sends first setting information to the second Bluetooth headset; the second Bluetooth earphone receives the first setting information and sets a host or a slave to the second Bluetooth earphone according to the first setting information; the set slave computer obtains the audio data packet, judges the source of the audio data packet and only receives the audio data packet with the source as the host computer. The invention can avoid the generation of audio frequency conflict.
Description
Technical Field
The invention belongs to the technical field of Bluetooth, and particularly relates to a master-slave set setting system, a master-slave set setting method and a master-slave set setting device of a Bluetooth headset and the Bluetooth headset.
Background
With the development of bluetooth technology, bluetooth headsets are widely used, and a pair of bluetooth headsets can be used individually or together. If two bluetooth headsets can be connected with different devices respectively, the two bluetooth headsets can receive audio data packets sent by the connected devices, so that the audio played in the two bluetooth headsets is different. Under the condition, if a user wants to use two Bluetooth earphones to listen to the same audio, the audio playing in the two Bluetooth earphones is asynchronous, namely, audio conflict is generated, and therefore poor experience is brought to the user.
Disclosure of Invention
In view of this, embodiments of the present invention provide a master-slave set setting system, method, and apparatus for a bluetooth headset, and a bluetooth headset, so as to solve the problem in the prior art that audio playing is not synchronous due to two bluetooth headsets receiving audio data packets of different devices respectively.
A first aspect of an embodiment of the present invention provides a master-slave set setting system for bluetooth headsets, where the system includes a first bluetooth headset and a second bluetooth headset, where:
the first Bluetooth headset acquires the device connection states of the first Bluetooth headset and the second Bluetooth headset, determines a host and a slave according to the device connection states of the first Bluetooth headset and the second Bluetooth headset, sets the host or the slave for the first Bluetooth headset, and then sends first setting information to the second Bluetooth headset;
The second Bluetooth earphone receives the first setting information and sets a host or a slave to the second Bluetooth earphone according to the first setting information; the set slave computer obtains the audio data packet, judges the source of the audio data packet and only receives the audio data packet with the source as the host computer.
A second aspect of the embodiments of the present invention provides a master/slave device setting method for a bluetooth headset, where the method is applied to a first bluetooth headset or a second bluetooth headset, and includes:
acquiring the equipment connection state of the Bluetooth headset and the other Bluetooth headset;
determining a host and a slave according to the device connection states of the local and another Bluetooth headset;
and setting the host or the slave of the local machine according to the determination result, and sending the first setting information to the other Bluetooth headset to indicate the other Bluetooth headset to complete the setting of the host or the slave.
A third aspect of an embodiment of the present invention provides a master/slave device setting apparatus for a bluetooth headset, including:
the acquisition module is used for acquiring the equipment connection states of the Bluetooth headset and the local machine;
the master-slave determining module is used for determining a master machine and a slave machine according to the equipment connection states of the local machine and the other Bluetooth headset;
And the master-slave machine setting module is used for setting the master machine or the slave machine for the local machine according to the determination result and sending the first setting information to the other Bluetooth earphone so as to indicate the other Bluetooth earphone to complete the setting of the master machine or the slave machine.
A fourth aspect of embodiments of the present invention provides a bluetooth headset comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the second aspect when executing the computer program.
A fifth aspect of embodiments of the present invention provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, performs the steps of the method according to the second aspect.
In the embodiment of the invention, the master machine and the slave machine are determined according to the equipment connection state of the first Bluetooth earphone and the second Bluetooth earphone, the master machine and the slave machine are set for the two Bluetooth earphones, and the set slave machine is limited to only receive the audio data packet with the source as the master machine, so that the slave machine can not receive the audio data packet sent by any equipment except the master machine, and further the generation of audio collision is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is an interaction diagram of a master-slave setting system of a bluetooth headset according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a master-slave setting method of a bluetooth headset according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another master-slave setting method for a bluetooth headset according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a master-slave setting device of a bluetooth headset according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a bluetooth headset according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is an interaction schematic diagram of a master-slave setting system of a bluetooth headset according to an embodiment of the present invention, where the system includes a first bluetooth headset 11 and a second bluetooth headset 12, where:
the first Bluetooth headset acquires the device connection states of the first Bluetooth headset and the second Bluetooth headset, determines a host and a slave according to the device connection states of the first Bluetooth headset and the second Bluetooth headset, sets the host or the slave for the first Bluetooth headset, and sends first setting information to the second Bluetooth headset.
Specifically, the first bluetooth headset is connected with the second bluetooth headset through a bluetooth communication protocol, and the first bluetooth headset and the second bluetooth headset can mutually send bluetooth data packets for information interaction, so that the master and the slave can be conveniently determined and set. The bluetooth data packet contains information such as device address, device connection state, electric quantity and the like.
The device connection state includes two states: connected and unconnected.
The first setting information includes setting information of a master or slave role of the first bluetooth headset.
The second Bluetooth earphone receives the first setting information and sets a host or a slave to the second Bluetooth earphone according to the first setting information; the set slave computer obtains the audio data packet, judges the source of the audio data packet and only receives the audio data packet with the source as the host computer.
If the first setting information is that the first Bluetooth headset is a master, setting a second Bluetooth headset as a slave correspondingly; and if the first setting information is that the first Bluetooth headset is a slave, setting the second Bluetooth headset as a master correspondingly. It should be noted that, in the two bluetooth headsets, there is only one master and one slave, so if one bluetooth headset is set as the master, the other bluetooth headset must be set as the slave.
The set slave machine acquires the audio data packet in the air, and the audio data packet in the air is sent by the host machine and also sent by other non-host machine equipment such as a mobile terminal, so that the source of the audio data packet needs to be judged, the audio data packet is selectively received, and the analyzed audio data is played.
Further, the specific manner of determining the source of the audio data packet may be: the audio data packet is analyzed, the device address carried by the audio data packet is obtained, and the source of the audio data packet can be judged by judging whether the obtained device address belongs to the host or other devices such as the mobile terminal and the like which are not the host.
The configured host also needs to acquire the audio data packet in the air, because the audio data packet in the air may originate from the mobile terminal connected to the host or from other devices, and therefore, the audio data packet needs to be further analyzed to acquire the device address carried by the audio data packet, so as to determine whether the audio data packet is the audio data packet that the host needs to receive.
The interaction mode of the master and slave machines and the mobile terminal is as follows: the host is connected with the mobile terminal, receives the audio data sent by the mobile terminal and sends the audio data to the slave; the slave machine is connected with the host machine and only receives the audio data sent by the host machine, but not receives the audio data sent by the mobile terminal, and the slave machine does not actively send the audio data, so that when the host machine and the slave machine are used together, the synchronous audio playing effect can be achieved, and audio conflict is avoided. Therefore, in the embodiment of the invention, the master machine and the slave machine are determined according to the connection state of the equipment, the master machine and the slave machine are set for the first Bluetooth headset and the second Bluetooth headset, and the set slave machine is limited to only receive the audio data packet with the source as the master machine, so that the slave machine can not receive the audio data packet sent by any equipment except the master machine, and further the generation of audio collision is avoided.
Fig. 2 is a flowchart illustrating a master-slave setting method of a bluetooth headset according to an embodiment of the present invention, where the master-slave setting method of the bluetooth headset is applied to a first bluetooth headset or a second bluetooth headset. The details are as follows:
s201: and acquiring the device connection state of the Bluetooth headset and the other Bluetooth headset.
Wherein the device connection state includes two types: and the connection and disconnection can determine the master machine and the slave machine according to the equipment connection states of the two Bluetooth headsets.
It should be noted that the purpose of the embodiment of the present invention is to avoid the situation that the two bluetooth headsets are connected to different audio output devices at the same time, and to avoid the occurrence of audio collision, so there are two situations: the first is that neither bluetooth headset is connected to any device, and the second is that only one bluetooth headset is connected to the mobile terminal.
Therefore, the master and the slave can be determined according to the two different situations, and the master or the slave can be arranged correspondingly.
S202: and determining the master machine and the slave machine according to the device connection states of the local machine and the other Bluetooth headset.
And after the device connection state of another Bluetooth headset is acquired, the host and the slave are determined by combining the audio playing state of the local device.
As an optional implementation manner in the embodiment of the present invention, the determining the master and the slave according to the device connection states of the local and another bluetooth headset includes:
if the connection states of the local machine and the other Bluetooth earphone are not connected, acquiring the equipment address of the other Bluetooth earphone, comparing the equipment address of the other Bluetooth earphone with the equipment address of the local machine, and determining the master machine and the slave machine according to the comparison result.
If the connection states of the two Bluetooth earphones are not connected, the equipment addresses of the two Bluetooth earphones can be obtained, and the master and the slave are determined according to the equipment addresses of the two Bluetooth earphones. The device address is a unique identifier of the bluetooth headset, which is specifically defined by a manufacturer, for example, the device address of the bluetooth headset in the embodiment of the present invention is a 12-bit hexadecimal number, of the 12-bit number, the first six bits are serial numbers of the manufacturer, and the last six bits are device addresses of the bluetooth headset, and the master and slave can be determined by comparing the device addresses of the two bluetooth headsets. In practical application, the bluetooth headset with a larger device address can be selected as a master and the bluetooth headset with a smaller device address can be selected as a slave, and the reverse can be true, that is, the bluetooth headset with a smaller device address can be selected as the master and the bluetooth headset with a larger device address can be selected as the slave. In the situation, when the two Bluetooth headsets are not connected with other equipment, the master and the slave are arranged, and the slave only receives the audio data packet sent by the master, so that the situation that the two Bluetooth headsets can be connected with different equipment at the same time can not occur, and the generation of audio conflict is avoided.
As another optional implementation manner in the embodiment of the present invention, the determining the master and the slave according to the device connection states of the local and another bluetooth headset includes:
if the device connection state of the local machine is connected and the device connection state of the other Bluetooth headset is not connected, determining that the local machine is used as a host machine;
and if the device connection state of the local machine is not connected and the device connection state of the other Bluetooth headset is connected, determining the local machine as a slave machine.
When only one Bluetooth headset is connected with equipment such as a mobile terminal, the Bluetooth headset connected with the mobile terminal can be used as a master machine, and the other Bluetooth headset can be used as a slave machine. In the situation, when only one of the two Bluetooth headsets is connected with other equipment, the master and the slave are arranged, and the slave only receives the audio data packet sent by the master, so that the situation that the two Bluetooth headsets can be connected with different equipment at the same time can not occur, and the generation of audio conflict is avoided.
S203: and setting the host or the slave of the local machine according to the determination result, and sending the first setting information to the other Bluetooth headset to indicate the other Bluetooth headset to complete the setting of the host or the slave.
After the master and the slave are determined, the local machine is set according to the determination result, for example, the local machine is set as the master, the first setting information is sent to the other Bluetooth headset, and the other Bluetooth headset is informed to set the local machine as the slave.
After the local machine is set as a master machine or a slave machine, the audio data packet in the air is acquired. It should be noted that only the master and the mobile terminal or other devices will send the audio data packet, and the slave will not send the audio data packet.
If the main machine is the master machine, the other Bluetooth earphone is determined as the slave machine, and because the slave machine cannot send the audio data packet, the audio data packet in the air is sent by the mobile terminal or other equipment connected with the main machine, whether the main machine needs to receive the audio data packet can be determined by judging whether the source of the audio data packet is the mobile terminal.
If the local machine is a slave machine, the other Bluetooth headset is determined to be a master machine. The slave machine obtains the audio data packet in the air, analyzes the audio data packet to obtain the carried equipment address, judges whether the equipment address is the equipment address of the host machine or not and further determines whether the audio data packet needs to be received or not. The slave is limited to only receive the audio data packet sent by the host, so that the slave can not receive the audio data packet sent by any equipment except the host, and further audio collision is avoided.
Fig. 3 is a schematic flow chart of another method for setting a master/slave device of a bluetooth headset according to an embodiment of the present invention, which is different from the previous embodiment in that the present embodiment focuses on that in a case where the local device is a master device and another bluetooth headset is a slave device, in some specific cases, such as insufficient power of the local device, the user takes the local device off, and the like, roles of the two bluetooth headsets need to be switched, that is, the local device is switched to the slave device and the another bluetooth headset is switched to the master device.
S301: and acquiring the device connection state of the Bluetooth headset and the other Bluetooth headset.
S302: and determining the master machine and the slave machine according to the device connection states of the local machine and the other Bluetooth headset.
S303: and setting the host or the slave of the local machine according to the determination result, and sending the first setting information to the other Bluetooth headset to indicate the other Bluetooth headset to complete the setting of the host or the slave.
S301 to S303 in this embodiment are the same as S201 to S203 in the previous embodiment, and specific reference is made to the description of S201 to S203 in the previous embodiment, which is not repeated herein.
After step S303 is performed, the following steps may also be performed:
s304: and acquiring the electric quantity of the Bluetooth headset and the electric quantity of the other Bluetooth headset.
The local machine can obtain the electric quantity of another Bluetooth earphone by receiving the Bluetooth data packet sent by another Bluetooth earphone.
S305: and if the electric quantity of the local machine is smaller than that of the other Bluetooth headset and the difference value of the electric quantities of the local machine and the other Bluetooth headset is not within the preset range, the local machine is set as a slave machine, and second setting information is sent to the other Bluetooth headset so as to indicate the other Bluetooth headset to set the host machine.
The second setting information is the setting information of the host machine switched to the slave machine.
Generally, the master needs to communicate with the mobile terminal to receive the audio data packets sent by the mobile terminal, and also needs to communicate with the slave to send the audio data packets to the slave, and the slave needs to communicate with the master only, so the power consumption of the bluetooth headset as the master is larger, and the power consumption speed is higher. When the power of the earphone is detected to be reduced, another earphone with more sufficient power can be selected as the host.
And comparing the electric quantity of the local machine with the acquired electric quantity of the other Bluetooth headset, and if the electric quantity of the local machine is smaller than the electric quantity of the other Bluetooth headset and the difference value of the electric quantities of the local machine and the other Bluetooth headset exceeds a preset range, switching the local machine into a slave machine, and using the other Bluetooth headset with relatively more sufficient electric quantity as a host machine. For example, if the power of the local machine is detected to be 30%, the power of the other bluetooth headset is acquired to be 40%, the preset range is set to be 5%, and the power difference between the two is 10%, the local machine needs to be switched from the master machine to the slave machine.
Of course, when the electric quantity of the local computer is detected to be smaller than the threshold value, the user can be reminded to charge the local computer in a voice prompt mode or a flash lamp mode.
The Bluetooth headset with sufficient electric quantity is used as the host machine, and better experience can be provided for users.
Alternatively, after performing step S303, the following steps may also be performed:
and if the user is detected to take off the local machine, setting the local machine as a slave machine, and sending second setting information to the other Bluetooth headset to instruct the other Bluetooth headset to set the master machine.
The sensor on the local machine can detect whether the user takes the action of taking off the local machine, if the user is detected to take off the local machine, the local machine can be switched to the slave machine, and the second setting information is sent to the other Bluetooth earphone, so that the second Bluetooth earphone is switched from the slave machine to the master machine.
Considering that the power of the user is greatly consumed because the user still serves as the master after taking off the computer, the power of the computer can be saved by switching the computer from the master to the slave when the action of taking off the computer by the user is detected.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 4 is a schematic diagram of a master-slave setting apparatus of a bluetooth headset according to an embodiment of the present invention, where the apparatus includes: the device comprises an acquisition module 41, a master-slave machine determining module 42 and a master-slave machine setting module 43. Wherein:
and an obtaining module 41, configured to obtain device connection states of the local device and another bluetooth headset.
And a master-slave determining module 42, configured to determine a master and a slave according to device connection states of the local and another bluetooth headset.
Further, the master-slave determination module 42 may be configured to: if the connection states of the local machine and the other Bluetooth earphone are not connected, acquiring the equipment address of the other Bluetooth earphone, comparing the equipment address of the other Bluetooth earphone with the equipment address of the local machine, and determining the master machine and the slave machine according to the comparison result.
The master-slave determination module 42 may also be configured to: if the device connection state of the local machine is connected and the device connection state of the other Bluetooth headset is not connected, determining that the local machine is used as a host machine; and if the device connection state of the local machine is not connected and the device connection state of the other Bluetooth headset is connected, determining the local machine as a slave machine.
And the master-slave setting module 43 is configured to set a master or a slave for the local device according to the determination result, and send the first setting information to the other bluetooth headset to instruct the other bluetooth headset to complete the setting of the master or the slave.
Optionally, the apparatus further comprises: electric quantity obtaining module 44 and first slave setting module 45, wherein:
the electric quantity obtaining module 44 is used for obtaining the electric quantity of the Bluetooth headset and the electric quantity of the other Bluetooth headset;
and the first slave machine setting module 45 is configured to set the local machine as a slave machine and send second setting information to another bluetooth headset to instruct the another bluetooth headset to perform setting of the master machine if the electric quantity of the local machine is less than the electric quantity of the another bluetooth headset and the difference value of the electric quantities of the local machine and the other bluetooth headset is not within the preset range.
Optionally, the apparatus further includes a second slave setting module 46, configured to set the local machine as a slave if it is detected that the user takes off the local machine, and send second setting information to the other bluetooth headset to instruct the other bluetooth headset to perform setting of the master.
Fig. 5 is a schematic diagram of a bluetooth headset according to an embodiment of the present invention. As shown in fig. 5, the bluetooth headset 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52, such as a master-slave set-up program for a bluetooth headset, stored in said memory 51 and executable on said processor 50. The processor 50 executes the computer program 52 to implement the steps in the above-mentioned method embodiment of master-slave setup of each bluetooth headset, for example, steps S201 to S203 shown in fig. 2. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 41 to 43 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the bluetooth headset 5. For example, the computer program 52 may be divided into an acquisition module, a master-slave determination module, and a master-slave setting module, and each module has the following specific functions:
the acquisition module is used for acquiring the equipment connection states of the Bluetooth headset and the local machine;
the master-slave determining module is used for determining a master machine and a slave machine according to the equipment connection states of the local machine and the other Bluetooth headset;
and the master-slave machine setting module is used for setting the master machine or the slave machine for the local machine according to the determination result and sending the first setting information to the other Bluetooth earphone so as to indicate the other Bluetooth earphone to complete the setting of the master machine or the slave machine.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the bluetooth headset 5, such as a memory of the bluetooth headset 5. The memory 51 is used to store the computer program and other programs and data required by the bluetooth headset. The memory 51 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A master-slave set-up system of Bluetooth headsets, the system comprising a first Bluetooth headset and a second Bluetooth headset, wherein:
The first Bluetooth headset acquires the device connection states of the first Bluetooth headset and the second Bluetooth headset, determines a host and a slave according to the device connection states of the first Bluetooth headset and the second Bluetooth headset, sets the host or the slave for the first Bluetooth headset, and then sends first setting information to the second Bluetooth headset;
the second Bluetooth earphone receives the first setting information and sets a host or a slave to the second Bluetooth earphone according to the first setting information; the set slave computer obtains the audio data packet, judges the source of the audio data packet and only receives the audio data packet with the source as the host computer.
2. A master-slave set setting method of Bluetooth earphones is applied to a first Bluetooth earphone or a second Bluetooth earphone and comprises the following steps:
acquiring the equipment connection state of the Bluetooth headset and the other Bluetooth headset;
determining a host and a slave according to the device connection states of the local and another Bluetooth headset;
and setting the host or the slave of the local machine according to the determination result, and sending the first setting information to the other Bluetooth headset to indicate the other Bluetooth headset to complete the setting of the host or the slave.
3. The method of claim 2, wherein determining the master and the slave according to the device connection status of the local and the other bluetooth headset comprises:
if the connection states of the local machine and the other Bluetooth earphone are not connected, acquiring the equipment address of the other Bluetooth earphone, comparing the equipment address of the other Bluetooth earphone with the equipment address of the local machine, and determining the master machine and the slave machine according to the comparison result.
4. The method of claim 2, wherein determining the master and the slave according to the device connection status of the local and the other bluetooth headset comprises:
if the device connection state of the local machine is connected and the device connection state of the other Bluetooth headset is not connected, determining that the local machine is used as a host machine;
and if the device connection state of the local machine is not connected and the device connection state of the other Bluetooth headset is connected, determining the local machine as a slave machine.
5. The method of claim 4, wherein after determining to use the local device as the master if the device connection status of the local device is connected and the device connection status of the other bluetooth headset is not connected, further comprising:
Acquiring the electric quantity of the Bluetooth headset and the electric quantity of the other Bluetooth headset;
and if the electric quantity of the local machine is smaller than that of the other Bluetooth headset and the difference value of the electric quantities of the local machine and the other Bluetooth headset is not within the preset range, the local machine is set as a slave machine, and second setting information is sent to the other Bluetooth headset so as to indicate the other Bluetooth headset to set the host machine.
6. The method of claim 4, wherein after determining to use the local device as the master if the device connection status of the local device is connected and the device connection status of the other bluetooth headset is not connected, further comprising:
and if the user is detected to take off the local machine, setting the local machine as a slave machine, and sending second setting information to the other Bluetooth headset to instruct the other Bluetooth headset to set the master machine.
7. A master slave set setting device of a Bluetooth headset is characterized by comprising:
the acquisition module is used for acquiring the equipment connection states of the Bluetooth headset and the local machine;
the master-slave determining module is used for determining a master machine and a slave machine according to the equipment connection states of the local machine and the other Bluetooth headset;
and the master-slave machine setting module is used for setting the master machine or the slave machine for the local machine according to the determination result and sending the first setting information to the other Bluetooth earphone so as to indicate the other Bluetooth earphone to complete the setting of the master machine or the slave machine.
8. The apparatus of claim 7, wherein the master-slave determination module is specifically configured to:
if the connection states of the local machine and the other Bluetooth earphone are not connected, acquiring the equipment address of the other Bluetooth earphone, comparing the equipment address of the other Bluetooth earphone with the equipment address of the local machine, and determining the master machine and the slave machine according to the comparison result.
9. A Bluetooth headset comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 2 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 2 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910343805.9A CN111866822B (en) | 2019-04-26 | 2019-04-26 | Master-slave machine setting system, method and device of Bluetooth headset and Bluetooth headset |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910343805.9A CN111866822B (en) | 2019-04-26 | 2019-04-26 | Master-slave machine setting system, method and device of Bluetooth headset and Bluetooth headset |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111866822A true CN111866822A (en) | 2020-10-30 |
CN111866822B CN111866822B (en) | 2023-11-10 |
Family
ID=72951648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910343805.9A Active CN111866822B (en) | 2019-04-26 | 2019-04-26 | Master-slave machine setting system, method and device of Bluetooth headset and Bluetooth headset |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111866822B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107708014A (en) * | 2017-11-08 | 2018-02-16 | 深圳市沃特沃德股份有限公司 | Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone |
CN109348334A (en) * | 2018-10-26 | 2019-02-15 | 歌尔科技有限公司 | A kind of wireless headset and its ambience listening method and apparatus |
CN109660975A (en) * | 2019-01-28 | 2019-04-19 | 上海与德通讯技术有限公司 | The switching method of principal and subordinate's earphone, main earphone, from earphone and bluetooth headset network |
CN109660906A (en) * | 2019-03-12 | 2019-04-19 | 恒玄科技(上海)有限公司 | Wireless Bluetooth headsets, wireless Bluetooth headsets master-slave swap optimization method |
-
2019
- 2019-04-26 CN CN201910343805.9A patent/CN111866822B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107708014A (en) * | 2017-11-08 | 2018-02-16 | 深圳市沃特沃德股份有限公司 | Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone |
CN109348334A (en) * | 2018-10-26 | 2019-02-15 | 歌尔科技有限公司 | A kind of wireless headset and its ambience listening method and apparatus |
CN109660975A (en) * | 2019-01-28 | 2019-04-19 | 上海与德通讯技术有限公司 | The switching method of principal and subordinate's earphone, main earphone, from earphone and bluetooth headset network |
CN109660906A (en) * | 2019-03-12 | 2019-04-19 | 恒玄科技(上海)有限公司 | Wireless Bluetooth headsets, wireless Bluetooth headsets master-slave swap optimization method |
Also Published As
Publication number | Publication date |
---|---|
CN111866822B (en) | 2023-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11997734B2 (en) | Wireless headphone matching method, device, terminal and charging box | |
US11750963B2 (en) | Communication control method, device and system, charging box and wireless earpiece | |
CN111669734B (en) | Electronic device for transmitting response message in Bluetooth network environment and method thereof | |
CN111200769A (en) | Communication method for Bluetooth headset device and Bluetooth headset device | |
CN110851387B (en) | Interface function configuration method and electronic equipment | |
CN113395687B (en) | Reconnection method, reconnection device, electronic equipment and storage medium | |
US11425520B2 (en) | Method for detecting blocking of microphone and related products | |
CN110191389B (en) | Multi-point connection method and device of wireless headset, Bluetooth headset and TWS headset | |
US20210345081A1 (en) | Extended connection method and extended connection system for bluetooth devices | |
CN111464993A (en) | Double-ear Bluetooth headset pairing method and wireless headset for double-ear Bluetooth headset | |
KR20210020541A (en) | Electronic device for retransmitting data in bluetooth network environment and method thereof | |
CN107465957B (en) | Method for rapidly connecting ARC power amplifier equipment by smart television | |
WO2019237463A1 (en) | Method for establishing bt connection, and wireless headset and tws headset | |
KR20210020542A (en) | Method for supporting multiple links in bluetooth network environment and electronic device thereof | |
CN111510902B (en) | Bluetooth device and Bluetooth state switching method and device thereof | |
JP2017184229A (en) | Method for configuring audio rendering and/or acquiring device, and corresponding audio rendering and/or acquiring device, system, computer readable program product and computer readable storage medium | |
TW201349793A (en) | Network connection device | |
CN105679350A (en) | Audio playing method and device | |
KR20210020649A (en) | Electronic device for transmitting data packet in bluetooth network environment and method thereof | |
CN111954123B (en) | Method, system, medium, and wireless audio device for information synchronization of wireless audio devices | |
KR20200110086A (en) | Method for establishing wireless communication link and electronic device supporting the same | |
CN111866822B (en) | Master-slave machine setting system, method and device of Bluetooth headset and Bluetooth headset | |
CN113498045A (en) | Communication equipment pairing connection method, communication terminal and device with storage function | |
CN111491278A (en) | Method and terminal for playing audio through Bluetooth device | |
KR20200106744A (en) | Method for sharing channel information and electronic device therefor |
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 |