CN113938868A - Connection switching method for wireless Bluetooth headset and multiple devices - Google Patents

Connection switching method for wireless Bluetooth headset and multiple devices Download PDF

Info

Publication number
CN113938868A
CN113938868A CN202111153128.8A CN202111153128A CN113938868A CN 113938868 A CN113938868 A CN 113938868A CN 202111153128 A CN202111153128 A CN 202111153128A CN 113938868 A CN113938868 A CN 113938868A
Authority
CN
China
Prior art keywords
bluetooth
slave
connection
master
master device
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.)
Withdrawn
Application number
CN202111153128.8A
Other languages
Chinese (zh)
Inventor
冉仕位
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202111153128.8A priority Critical patent/CN113938868A/en
Publication of CN113938868A publication Critical patent/CN113938868A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements

Landscapes

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

Abstract

The invention discloses a method for switching connection between a wireless Bluetooth headset and a plurality of devices, which comprises the following steps: the links between the master device and all the slave devices are in communication connection with all the slave devices, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones are in monitoring link connection at the same time; the master device activates a preset instruction according to a preset event, and the master device sends a Bluetooth headset connection request to the slave device; after receiving all the upper-layer state information of the Bluetooth headset sent by the master device, the slave device replies an agreement instruction to the master device; the master device sends the upper layer state information of all the Bluetooth earphones in the current connection state to the slave device; and establishing Bluetooth connection with the Bluetooth headset according to the Bluetooth headset pairing information prestored in the slave equipment, and completing the connection switching of the Bluetooth headset between the master equipment and the slave equipment. The invention can realize the automatic switching of the Bluetooth headset among a plurality of devices, and bring great enjoyment to the life and work of people.

Description

Connection switching method for wireless Bluetooth headset and multiple devices
Technical Field
The invention relates to the technical field of Bluetooth communication, in particular to a method for switching connection between a wireless Bluetooth headset and a plurality of devices.
Background
With the development of science and technology, most users have a plurality of mobile devices and non-mobile devices, such as a plurality of mobile phones, a plurality of notebook computers, a plurality of tablet computers, televisions, projectors, vehicle-mounted navigation devices and other intelligent devices capable of outputting audio, video and voice calls and video phones, but a bluetooth headset and a bluetooth sound box can only be connected with one device at a time, that is, the bluetooth headset can only be connected with one device at a time, so that the functions of playing music, calling and the like are provided for the connected devices. When another device which is not connected with the Bluetooth earphone and the Bluetooth loudspeaker box needs to use the Bluetooth earphone, the Bluetooth loudspeaker box and the like to answer a call, or when a user needs to use another device to play music, the user needs to manually disconnect the Bluetooth earphone and the Bluetooth loudspeaker box from the current Bluetooth of the connected device, and then the Bluetooth earphone and the Bluetooth loudspeaker box are connected with the device to be used in a Bluetooth mode, so that the user operation is increased, and the user experience is reduced.
Disclosure of Invention
The present invention is directed to a method for switching connection between a wireless bluetooth headset and a plurality of devices, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a method for switching connection between a wireless Bluetooth headset and a plurality of devices comprises the following steps:
s10: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s10-1: the method comprises the steps that a master device activates a preset instruction according to a preset event, and sends a Bluetooth headset connection request to a slave device according to the requirement of the preset event, wherein the master device is converted into a slave mode through the master mode, and the slave device is converted into a master mode through the slave mode;
s10-2: after receiving all the upper-layer state information of the Bluetooth headset sent by the master device, the slave device replies an agreement instruction to the master device;
s10-3: after receiving the agreement instruction replied by the slave equipment, the master equipment sends the upper-layer state information of all the Bluetooth earphones in the current connection state to the slave equipment, and the master equipment disconnects the Bluetooth connection with all the Bluetooth earphones;
s10-4: and after the slave equipment converted into the master mode receives the Bluetooth headset state information sent by the master equipment, establishing Bluetooth connection with the Bluetooth headset according to Bluetooth headset pairing information prestored in the slave equipment, and completing Bluetooth headset connection switching between the master equipment and the slave equipment, wherein master-slave switching is completed.
In a preferred embodiment, the method comprises the following steps:
s20: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s20-1: when an external event is influenced, the master device locks the master device into a unique master device according to a preset event, the master device sends a Bluetooth headset connection request to the slave device, and the master-slave mode is unchanged;
s20-2: after receiving all the upper-layer state information of the Bluetooth headset sent by the master device, the slave device replies an agreement instruction to the master device;
s20-3: after receiving the agreement instruction replied by the slave equipment, the master equipment sends the upper-layer state information of the Bluetooth headset in the current connection state to the slave equipment, and disconnects the Bluetooth connection with the master equipment, and the communication connection between the Bluetooth headset and the master equipment is continuous;
s20-4: after receiving the Bluetooth headset state information sent by the master device, the slave device establishes Bluetooth connection according to prestored Bluetooth headset pairing information, completes the distribution switching connection of the Bluetooth headset between the master device and the slave device, and the Bluetooth connection state of other Bluetooth headsets connected with the master device is unchanged;
s20-5: when the master device requires the slave device to return the Bluetooth headset according to an external event, the master device sends a Bluetooth headset returning instruction to the slave device;
s20-6: after receiving the returning instruction sent by the master device, the slave device replies the returning agreement information to the master device, sends the upper-layer state information of the Bluetooth headset in the connection state to the master device, and disconnects the Bluetooth connection with the Bluetooth headset;
s20-7: after receiving the Bluetooth headset state information sent by the slave device, the master device establishes Bluetooth connection with the Bluetooth headset according to prestored Bluetooth headset pairing information, completes Bluetooth headset connection switching between the master device and the slave device, and completes master-slave switching.
In a preferred embodiment, the method comprises the following steps:
s30: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s30-1: when the master device is required to be locked as the master device according to an external event, the master device locks the master device as the only master device according to a preset event, the master device sets the master device as a first trust device according to the preset event, all slave devices are set as second trust devices, the master device Bluetooth sets a Bluetooth headset and a software switching distribution system which are installed on the master device as a first trust software distribution system according to the preset event, software distribution systems which are installed on all the slave devices are set as second trust software distribution systems, and the trust relationship of the software distribution systems is synchronous with the trust relationship of the devices;
s30-2: when the main device software distribution system is influenced by an external event and distributes the Bluetooth headset to the slave device according to the requirement of the external event, the main device software distribution system sends the upper-layer state information of the Bluetooth headset to a Bluetooth headset connection request of the slave device through communication connection by the main device;
s30-3: the master device sends a distribution connection request of the software distribution system to the slave device Bluetooth connection request according to a preset event requirement, and the master-slave mode is unchanged;
s30-4: the method comprises the steps that the slave equipment replies an agreement instruction after receiving a Bluetooth headset connection request sent by the master equipment, the master equipment sends upper-layer state information of the Bluetooth headset to be distributed to the slave equipment according to a preset event after receiving the agreement instruction replied by the slave equipment, and the Bluetooth headset is disconnected from the master equipment;
s30-5: after receiving the upper-layer state information of the Bluetooth headset sent by the master device, the slave device synchronizes the Bluetooth headset trusted by the master device under the condition that the slave device is not paired with the Bluetooth headset according to the preset device trust relationship, performs Bluetooth connection with the slave device according to the Bluetooth headset pairing information prestored by the synchronous master device, disconnects the master device from the Bluetooth headset, completes the distribution switching connection between the master device and the Bluetooth headset, and maintains the connection state of other Bluetooth headsets in Bluetooth connection with the master device and the master device unchanged.
In a preferred embodiment, the method comprises the following steps:
s40: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s40-1: when the master device receives an external event and requires Bluetooth connection of a Bluetooth headset to switch Bluetooth connection of master and slave devices, the master device sends a Bluetooth headset connection request to the slave device according to a preset event, the master device master mode is converted into a slave mode, the slave device slave mode is converted into a master mode, and the relation between the master and slave devices is not changed when the switching is not completed;
s40-2: after receiving a request instruction sent by the master device, the slave device replies an agreement instruction to the master device according to a preset event;
s40-3: after receiving the agreement instruction replied by the slave equipment, the master equipment sends the upper-layer state information of all the Bluetooth earphones in the current connection state to the slave equipment, and the master equipment disconnects the Bluetooth connection with all the Bluetooth earphones;
s40-4: after the slave device converted into the master mode receives the upper-layer state information of the Bluetooth headset sent by the master device, the slave device synchronizes Bluetooth headset pairing information prestored by the master device according to a preset trust relationship to establish Bluetooth connection with the Bluetooth headset, so that Bluetooth headset connection switching between the master device and the slave device is completed, Bluetooth headset Bluetooth connection switching is completed, the master device is converted into the slave device, the master mode slave device is converted into the master device, and master-slave switching is completed.
In a preferred embodiment, the preset event includes an incoming call event, a voice call event, a video call event, or an audio play event of a master device and a slave device, the preset event includes a temporary connection event and a long-term connection event, bluetooth connection switching devices are disposed in the master device, the slave device, the bluetooth headset, and the bluetooth speaker, and the communication connection is bluetooth connection.
In a preferred embodiment, after the temporary connection event is requested, the slave device is connected to the bluetooth headset or the bluetooth speaker after the master device and the slave device are switched, and after the temporary connection event is completed, the original master device can be automatically reconnected to the bluetooth headset or the bluetooth speaker.
In a preferred embodiment, the bluetooth connection switching device includes a processor, a user interface, bluetooth hardware, a software switching distribution system, an intelligent voice system, a network interface, and a hardware operating system, where the hardware operating system includes a user interface module, a network communication module, a connection switching program, a distribution switching software module, an earphone connection switching module, an intelligent voice interface module, a bluetooth communication connection module, a memory, and a repeater module.
In a preferred embodiment, the bluetooth hardware divides the frequency band of the bluetooth system 1.0-5.0 into 79 frequency band channels, and sequentially orders the 79 frequency band channels from the low megahertz to the high megahertz, wherein each frequency band channel with the serial number establishes a communication connection.
In a preferred embodiment, the earphone connection switching module includes a device communication connection module, a connection switching request module, a connection switching response module, a software system synchronization module, an intelligent device software distribution module, a switching connection module, an earphone switching module, and a repeater switching module, where the switching connection module includes an earphone connection establishing unit and a device connection establishing unit.
In a preferred embodiment, after the step S30-5 is completed, when the master device receives an external event and requests to switch the bluetooth headset connected to the first slave device in bluetooth to the second slave device, the master device sends preset allocation information to the first slave device, the first slave device sends bluetooth headset upper layer status information connected to the first slave device in bluetooth to the second slave device according to a preset event after receiving the bluetooth headset allocation information sent by the master device, and disconnects bluetooth connection with the bluetooth headset, the second slave device establishes bluetooth connection with the bluetooth headset according to bluetooth pre-stored pairing information of the synchronous master device after receiving the bluetooth headset upper layer status information sent by the first slave device, the master device and the slave device complete bluetooth headset allocation connection switching, and the master-slave mode relationship is not changed.
Compared with the prior art, the invention has the technical effects and advantages that:
the invention solves the problems that when a master device and a slave device are connected with a plurality of master-slave Bluetooth earphones or one Bluetooth earphone, one device and one device are required to be operated, the time waste caused by the Bluetooth connection of different devices is caused, the inconvenience caused by answering the calls of a plurality of mobile phones of one person is caused, and the like.
Drawings
Fig. 1 is a schematic flow chart of a connection switching method between a wireless bluetooth headset and a plurality of devices according to the present invention.
Fig. 2 is a link diagram of the connection structure of the device and the bluetooth headset according to the present invention.
Fig. 3 is a block diagram of the bluetooth connection switching apparatus according to the present invention.
Fig. 4 is a schematic diagram of an earphone connection switching module according to the present invention.
Fig. 5 is a schematic diagram of a bluetooth headset listening link according to the present invention.
FIG. 6 is a flowchart illustrating a connection switching method of a repeater according to the present invention.
Fig. 7 is a flowchart illustrating a method for switching connection between a wireless bluetooth headset and a plurality of devices according to another embodiment of the present invention.
Fig. 8 is a schematic structural diagram of the bluetooth hardware of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to the connection switching method of the wireless Bluetooth headset and the plurality of devices shown in the figures 1-8, the method comprises the following steps:
s10: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s10-1: the method comprises the steps that a master device activates a preset instruction according to a preset event, and sends a Bluetooth headset connection request to a slave device according to the requirement of the preset event, wherein the master device is converted into a slave mode through the master mode, and the slave device is converted into a master mode through the slave mode;
s10-2: after receiving all the upper-layer state information of the Bluetooth headset sent by the master device, the slave device replies an agreement instruction to the master device;
s10-3: after receiving the agreement instruction replied by the slave equipment, the master equipment sends the upper-layer state information of all the Bluetooth earphones in the current connection state to the slave equipment, and the master equipment disconnects the Bluetooth connection with all the Bluetooth earphones;
s10-4: and after the slave equipment converted into the master mode receives the Bluetooth headset state information sent by the master equipment, establishing Bluetooth connection with the Bluetooth headset according to Bluetooth headset pairing information prestored in the slave equipment, and completing Bluetooth headset connection switching between the master equipment and the slave equipment, wherein master-slave switching is completed.
In a preferred embodiment, the method comprises the following steps:
s20: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s20-1: when an external event is influenced, the master device locks the master device into a unique master device according to a preset event, the master device sends a Bluetooth headset connection request to the slave device, and the master-slave mode is unchanged;
s20-2: after receiving all the upper-layer state information of the Bluetooth headset sent by the master device, the slave device replies an agreement instruction to the master device;
s20-3: after receiving the agreement instruction replied by the slave equipment, the master equipment sends the upper-layer state information of the Bluetooth headset in the current connection state to the slave equipment, and disconnects the Bluetooth connection with the master equipment, and the communication connection between the Bluetooth headset and the master equipment is continuous;
s20-4: after receiving the Bluetooth headset state information sent by the master device, the slave device establishes Bluetooth connection according to prestored Bluetooth headset pairing information, completes the distribution switching connection of the Bluetooth headset between the master device and the slave device, and the Bluetooth connection state of other Bluetooth headsets connected with the master device is unchanged;
s20-5: when the master device requires the slave device to return the Bluetooth headset according to an external event, the master device sends a Bluetooth headset returning instruction to the slave device;
s20-6: after receiving the returning instruction sent by the master device, the slave device replies the returning agreement information to the master device, sends the upper-layer state information of the Bluetooth headset in the connection state to the master device, and disconnects the Bluetooth connection with the Bluetooth headset;
s20-7: after receiving the Bluetooth headset state information sent by the slave device, the master device establishes Bluetooth connection with the Bluetooth headset according to prestored Bluetooth headset pairing information, completes Bluetooth headset connection switching between the master device and the slave device, and completes master-slave switching.
In a preferred embodiment, the method comprises the following steps:
s30: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s30-1: when the master device is required to be locked as the master device according to an external event, the master device locks the master device as the only master device according to a preset event, the master device sets the master device as a first trust device according to the preset event, all slave devices are set as second trust devices, the master device Bluetooth sets a Bluetooth headset and a software switching distribution system which are installed on the master device as a first trust software distribution system according to the preset event, software distribution systems which are installed on all the slave devices are set as second trust software distribution systems, and the trust relationship of the software distribution systems is synchronous with the trust relationship of the devices;
s30-2: when the main device software distribution system is influenced by an external event and distributes the Bluetooth headset to the slave device according to the requirement of the external event, the main device software distribution system sends the upper-layer state information of the Bluetooth headset to a Bluetooth headset connection request of the slave device through communication connection by the main device;
s30-3: the master device sends a distribution connection request of the software distribution system to the slave device Bluetooth connection request according to a preset event requirement, and the master-slave mode is unchanged;
s30-4: the method comprises the steps that the slave equipment replies an agreement instruction after receiving a Bluetooth headset connection request sent by the master equipment, the master equipment sends upper-layer state information of the Bluetooth headset to be distributed to the slave equipment according to a preset event after receiving the agreement instruction replied by the slave equipment, and the Bluetooth headset is disconnected from the master equipment;
s30-5: after receiving the upper-layer state information of the Bluetooth headset sent by the master device, the slave device synchronizes the Bluetooth headset trusted by the master device under the condition that the slave device is not paired with the Bluetooth headset according to the preset device trust relationship, performs Bluetooth connection with the slave device according to the Bluetooth headset pairing information prestored by the synchronous master device, disconnects the master device from the Bluetooth headset, completes the distribution switching connection between the master device and the Bluetooth headset, and maintains the connection state of other Bluetooth headsets in Bluetooth connection with the master device and the master device unchanged.
In a preferred embodiment, the method comprises the following steps:
s40: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s40-1: when the master device receives an external event and requires Bluetooth connection of a Bluetooth headset to switch Bluetooth connection of master and slave devices, the master device sends a Bluetooth headset connection request to the slave device according to a preset event, the master device master mode is converted into a slave mode, the slave device slave mode is converted into a master mode, and the relation between the master and slave devices is not changed when the switching is not completed;
s40-2: after receiving a request instruction sent by the master device, the slave device replies an agreement instruction to the master device according to a preset event;
s40-3: after receiving the agreement instruction replied by the slave equipment, the master equipment sends the upper-layer state information of all the Bluetooth earphones in the current connection state to the slave equipment, and the master equipment disconnects the Bluetooth connection with all the Bluetooth earphones;
s40-4: after the slave device converted into the master mode receives the upper-layer state information of the Bluetooth headset sent by the master device, the slave device synchronizes Bluetooth headset pairing information prestored by the master device according to a preset trust relationship to establish Bluetooth connection with the Bluetooth headset, so that Bluetooth headset connection switching between the master device and the slave device is completed, Bluetooth headset Bluetooth connection switching is completed, the master device is converted into the slave device, the master mode slave device is converted into the master device, and master-slave switching is completed.
In a preferred embodiment, the preset event includes an incoming call event, a voice call event, a video call event, or an audio play event of a master device and a slave device, the preset event includes a temporary connection event and a long-term connection event, bluetooth connection switching devices are disposed in the master device, the slave device, the bluetooth headset, and the bluetooth speaker, and the communication connection is bluetooth connection.
In a preferred embodiment, after the temporary connection event is requested, the slave device is connected to the bluetooth headset or the bluetooth speaker after the master device and the slave device are switched, and after the temporary connection event is completed, the original master device can be automatically reconnected to the bluetooth headset or the bluetooth speaker.
In this embodiment, when a preset event is detected, it is required to detect whether the event is a temporary connection event, for example, the device 1 is used as a default master device, after bluetooth connection is established with a bluetooth headset, an audio function such as music playing or conversation can be realized, the master device 1 (the device 1) is in communication connection with the slave device 1 (the device 2) and the slave device 2 (the device 3), bidirectional data communication between the devices can be realized, the devices 2 and 3 can send audio service request information to the device 1, after the slave device 2 (the device 3) receives a response that allows temporary master-slave switching from the master device 1, the device 1 is marked as a device that needs to return the authority of the master device, and the master device enters a master mode, the slave device 2 becomes the master device 1, the master device 1 initiates a call, because the previous device 2 has already paired with the bluetooth headset, the devices 1 and the device 3, and has already obtained information such as an address and a pairing password of the devices, the master mode slave device 2 can directly call the slave device, the slave device records the trust information of the device 2, and the connection can be directly established without re-pairing, so that the communication connection between the master mode device 2 and the bluetooth headset, the device 1 and the device 3 is realized, and the automatic switching of the master device of the bluetooth headset is realized, that is, the bluetooth headset playing the audio content of the device 1 is switched to the call operation of the device 2, after the call is finished, the master mode device 2 sends the master device permission returning request information to the device 1 marked as needing the master device permission to be returned, the device 1 receives the request information and returns the response of master-slave switching to the master device 2, then the master mode is switched, and the slave device 1 becomes the master device 1. Meanwhile, after receiving the response of master-slave switching sent by the slave device 1, the master device 2 actively disconnects the slave device (including the bluetooth headset, the device 1 and the device 3), and switches to the master mode, so that the slave device 1 becomes the master device 1. The master device 1 initiates a call, and the master device 1 can directly call the slave device because the slave device 2, the slave device 2 and information such as addresses and pairing passwords of the bluetooth headset are obtained. Therefore, the automatic switching of the main equipment of the Bluetooth headset is realized, namely the Bluetooth headset recovers the audio content of the playing equipment 1.
When a user opens the audio playing function of the slave device 1, the slave device 2 sends audio service request information to the master device 1, after receiving the request information and replying a response allowing long-term master-slave switching to the slave device 2, the master device 1 actively disconnects the connection with the slave device (including a bluetooth headset, the device 1 and the device 3) and switches to a slave mode, the master device 1 (the device 3) becomes the slave device 1, and after receiving the response allowing long-term master-slave switching sent by the master device 1, the slave device 2 directly switches to the master mode. Because the music playing function is long-term connection time, the device 1 does not need to be marked as a device needing to return the authority of the main device, namely, the device 3 obtains the authority of the default main device and enters a main mode, the slave device 3 is changed into the main device 3, the main device 3 initiates a call, because the former device 3 finishes the pairing with the bluetooth headset and the devices 1 and 3 and obtains the address, the pairing password and other information of the devices, the main device 3 can directly call the slave device and directly establish connection, so that the bluetooth connection between the main device 3 and the bluetooth headset, the devices 1 and 2 is realized, and the automatic switching of the main device of the bluetooth headset is realized, namely, the bluetooth headset for playing the audio content of the device 1 is switched to the audio playing operation of the device 3. Through the operation, the equipment for playing the audio can be set as default main equipment, and the played audio content is listened through the Bluetooth headset; the equipment that has the conversation to dial in can obtain the interim authority that master slave switched and realize bluetooth headset's interim conversation function, and after the conversation was ended, will resume acquiescence main equipment's audio playback, promote user experience.
In a preferred embodiment, the bluetooth connection switching device includes a processor, a user interface, bluetooth hardware, a software switching distribution system, an intelligent voice system, a network interface, and a hardware operating system, where the hardware operating system includes a user interface module, a network communication module, a connection switching program, a distribution switching software module, an earphone connection switching module, an intelligent voice interface module, a bluetooth communication connection module, a memory, and a repeater module.
Connecting the Bluetooth connection with the components in the switching equipment by using a communication bus; the user interface includes a display screen, an input unit such as a keyboard; the Bluetooth hardware comprises an external USB plug-in Bluetooth function of equipment, such as a television, and also comprises a function of dividing Bluetooth wireless frequency into a plurality of frequency bands in the existing Bluetooth technology and distributing different frequency bands among the equipment in a frequency division list mode, wherein each equipment uses different frequencies to complete, a software switching and distributing system is an intelligent equipment without a software system, and a main equipment distributing and connecting switching software system can also be used for completing the distribution and switching connection of the main equipment and the slave equipment of the Bluetooth earphone of the equipment; the intelligent voice comprises an artificial intelligent voice system of each intelligent device and an artificial intelligent voice app software system which is preferred by a user and can be downloaded and installed in a device application market; the network interface optionally comprises a standard wired interface and a standard wireless interface, and the memory in the hardware operating system is a high-speed RAM memory and can also be a stable memory, such as a disk memory.
In a preferred embodiment, the bluetooth hardware divides the frequency band of the bluetooth system 1.0-5.0 into 79 frequency band channels, and sequentially orders the 79 frequency band channels from the low megahertz to the high megahertz, wherein each frequency band channel with the serial number establishes a communication connection.
The function of the frequency division list in the embodiment allocates the bluetooth frequency band according to the preset event as follows; when the master device and the slave device are in communication connection and communication connection is established with all Bluetooth earphones, frequency bands 1 and 2 are allocated to the master device and the slave device 1 according to a preset event frequency band allocation list, the frequency band 1 is used as a communication link between the master device and the slave device, the frequency band 2 is used as a spare frequency band, frequency bands 3 and 4 are allocated to the master device and the slave device 2 according to the preset event frequency band allocation list, the frequency band 3 is used as a communication connection link between the master device and the slave device 2, the frequency band 4 is used, frequency bands 5 and 6 are allocated to the master device and the slave device 3 according to the preset event frequency band allocation list, the frequency band 5 is used as a communication connection link between the master device and the slave device 3, the frequency band 5 is used, and the frequency bands 7, 8, 9 and 10 are allocated to the master device and the left earphone of the Bluetooth earphone 1 according to the preset event frequency band allocation list, A right earphone, a frequency band 7 is used as a link of the left earphone connected with the main device Bluetooth, a frequency band 8 is spare, a frequency band 9 is used as a Bluetooth connection between the right earphone and the main device, and a frequency band 10 is spare, frequency bands 11, 12, 13, 14 are allocated to a Bluetooth earphone 2, a left earphone and a right earphone are connected with the main device Bluetooth according to a preset event frequency band allocation list, the frequency band 11 is used as a Bluetooth connection between the left earphone and the main device, the frequency band 12 is spare, the frequency band 13 is used as a Bluetooth connection link between the right earphone and the main device, the frequency band 14 is spare, frequency bands 15, 16, 17, 18 are allocated to a left loudspeaker box and a right loudspeaker box of a Bluetooth loudspeaker box 1 according to the preset event frequency band allocation list, the frequency band 15 is used as a Bluetooth connection between the left loudspeaker box and the main device, the frequency band 16 is spare, the frequency band 17 is used as a Bluetooth connection between the right loudspeaker box and the main device, and the frequency band 18 is spare, all slave devices and all Bluetooth earphones are in communication connection, communication connection is given to all the slave devices and all the Bluetooth earphones according to a preset event frequency band distribution list, the frequency bands are distributed to be used as communication connection and Bluetooth connection, different frequency bands are distributed to be used and standby when new devices are added each time according to preset events, the frequency bands are not interfered with each other and can be used simultaneously when connection is switched between the whole master device and the whole slave device and between all the Bluetooth earphones, and circuit switching is completed according to the preset events after master-slave switching is completed.
In another embodiment, the function of the frequency division list allocates the bluetooth frequency bands according to the preset event as follows; allocating a frequency band 1 to a communication connection link between a master device and a slave device 1 according to a preset event frequency band allocation list for use, allocating a frequency band 2 to a communication connection link between the master device and the slave device 2 according to the preset event frequency band allocation list for use, allocating a frequency band 3 to a communication connection link between the master device and the slave device 3 according to the preset event frequency band allocation list for use, allocating a frequency band 4 to a bluetooth connection link between the master device and a left earphone of a bluetooth earphone 1 according to the preset event frequency band allocation list for use, allocating a frequency band 5 to a bluetooth connection link between the master device and a right earphone of the bluetooth earphone 1 for use, allocating a frequency band 6 to a bluetooth connection link between the master device and a left earphone of the bluetooth earphone 2 according to the preset event frequency band allocation list for use, allocating a frequency band 7 to a bluetooth connection link between the master device and a right earphone of the bluetooth earphone 2 for use, and allocating a frequency band 8 to a bluetooth connection link between the master device and a left earphone of the bluetooth speaker 1 according to the preset event frequency band allocation list And the frequency band 9 is allocated to the Bluetooth connection link between the master device and the Bluetooth loudspeaker box right loudspeaker box, frequency bands are allocated to all the slave devices and all the Bluetooth earphones according to the preset event frequency band allocation list and the connection time sequence of all the slave devices and the master device, and the rest frequency bands are used as standby frequency bands.
In a preferred embodiment, the headset connection switching module includes a device communication connection module, a connection switching request module, a connection switching response module, a software system synchronization module, an intelligent device software distribution module, a switching connection module, a headset switching module, and a repeater switching module.
The device communication connection module in the embodiment is used for establishing communication connection between the master device and all slave devices and establishing Bluetooth connection with the Bluetooth headset; the connection switching request module is used for detecting a preset event at the slave equipment; the connection switching response module is used for disconnecting the Bluetooth connection with the Bluetooth headset when the master equipment receives the headset connection request instruction; the switching connection module is used for establishing Bluetooth connection with the Bluetooth headset according to prestored Bluetooth headset pairing information when the slave device converted into the master mode receives an allowing instruction fed back by the master device, so that connection switching of the Bluetooth headset between the master device and the slave device is completed, and the master device is converted into the master mode when receiving a master-slave switching response instruction, establishes Bluetooth connection with the Bluetooth headset, establishes communication connection with all slave devices, and monitors master-slave device switching requests triggered by all the slave devices; the intelligent device software distribution module acquires all device state information, and all devices set a software distribution switching system installed on the devices as trusted software.
In a preferred embodiment, the switching connection module includes an earphone connection establishing unit and a device connection establishing unit, where the earphone connection establishing unit is configured to establish a bluetooth connection with a bluetooth earphone according to pre-stored bluetooth earphone pairing information and first trusted device information when the slave device converted into the master mode receives an allowance instruction; and the device connection establishing unit is used for the slave device converted into the master mode to establish Bluetooth connection with the master device and other slave devices according to the pre-stored device pairing information and the second trust device information so as to monitor master-slave device switching requests and distribution requests of the master device and other slave devices and complete connection distribution switching of the Bluetooth headset between the master device and the slave devices.
In a preferred embodiment, after the step S30-5 is completed, when the master device receives an external event and requests to switch the bluetooth headset connected to the first slave device in bluetooth to the second slave device, the master device sends preset allocation information to the first slave device, the first slave device sends bluetooth headset upper layer status information connected to the first slave device in bluetooth to the second slave device according to a preset event after receiving the bluetooth headset allocation information sent by the master device, and disconnects bluetooth connection with the bluetooth headset, the second slave device establishes bluetooth connection with the bluetooth headset according to bluetooth pre-stored pairing information of the synchronous master device after receiving the bluetooth headset upper layer status information sent by the first slave device, the master device and the slave device complete bluetooth headset allocation connection switching, and the master-slave mode relationship is not changed.
In another embodiment, after step S30-5 is completed, the master device receives an external event to request activation of a preset event, and when the slave device returns the bluetooth headset connected to the master device, the master device sends a bluetooth headset returning instruction to the slave device, and after receiving the returning instruction of the master device, the slave device replies agreement information to the master device and sends upper-layer state information of the bluetooth headset connected to the slave device in a bluetooth mode to the master device, so as to disconnect the bluetooth connection of the bluetooth headset; after receiving the upper-layer state information of the Bluetooth headset sent by the slave device, the master device establishes Bluetooth connection with the Bluetooth headset according to prestored Bluetooth headset pairing information, completes Bluetooth connection switching between the master device and the slave device, and completes switching.
The points to be finally explained are: first, in the description of the present application, it should be noted that, unless otherwise specified and limited, the terms "mounted," "connected," and "connected" should be understood broadly, and may be a mechanical connection or an electrical connection, or a communication between two elements, and may be a direct connection, and "upper," "lower," "left," and "right" are only used to indicate a relative positional relationship, and when the absolute position of the object to be described is changed, the relative positional relationship may be changed;
secondly, the method comprises the following steps: in the drawings of the disclosed embodiments of the invention, only the structures related to the disclosed embodiments are referred to, other structures can refer to common designs, and the same embodiment and different embodiments of the invention can be combined with each other without conflict;
and finally: the above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that are within the spirit and principle of the present invention are intended to be included in the scope of the present invention.

Claims (10)

1. A method for switching connection between a wireless Bluetooth headset and a plurality of devices is characterized in that: the method comprises the following steps:
s10: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s10-1: the method comprises the steps that a master device activates a preset instruction according to a preset event, and sends a Bluetooth headset connection request to a slave device according to the requirement of the preset event, wherein the master device is converted into a slave mode through the master mode, and the slave device is converted into a master mode through the slave mode;
s10-2: after receiving all the upper-layer state information of the Bluetooth headset sent by the master device, the slave device replies an agreement instruction to the master device;
s10-3: after receiving the agreement instruction replied by the slave equipment, the master equipment sends the upper-layer state information of all the Bluetooth earphones in the current connection state to the slave equipment, and the master equipment disconnects the Bluetooth connection with all the Bluetooth earphones;
s10-4: and after the slave equipment converted into the master mode receives the Bluetooth headset state information sent by the master equipment, establishing Bluetooth connection with the Bluetooth headset according to Bluetooth headset pairing information prestored in the slave equipment, and completing Bluetooth headset connection switching between the master equipment and the slave equipment, wherein master-slave switching is completed.
2. The method of claim 1, wherein the method comprises the following steps: the method comprises the following steps:
s20: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s20-1: when an external event is influenced, the master device locks the master device into a unique master device according to a preset event, the master device sends a Bluetooth headset connection request to the slave device, and the master-slave mode is unchanged;
s20-2: after receiving all the upper-layer state information of the Bluetooth headset sent by the master device, the slave device replies an agreement instruction to the master device;
s20-3: after receiving the agreement instruction replied by the slave equipment, the master equipment sends the upper-layer state information of the Bluetooth headset in the current connection state to the slave equipment, and disconnects the Bluetooth connection with the master equipment, and the communication connection between the Bluetooth headset and the master equipment is continuous;
s20-4: after receiving the Bluetooth headset state information sent by the master device, the slave device establishes Bluetooth connection according to prestored Bluetooth headset pairing information, completes the distribution switching connection of the Bluetooth headset between the master device and the slave device, and the Bluetooth connection state of other Bluetooth headsets connected with the master device is unchanged;
s20-5: when the master device requires the slave device to return the Bluetooth headset according to an external event, the master device sends a Bluetooth headset returning instruction to the slave device;
s20-6: after receiving the returning instruction sent by the master device, the slave device replies the returning agreement information to the master device, sends the upper-layer state information of the Bluetooth headset in the connection state to the master device, and disconnects the Bluetooth connection with the Bluetooth headset;
s20-7: after receiving the Bluetooth headset state information sent by the slave device, the master device establishes Bluetooth connection with the Bluetooth headset according to prestored Bluetooth headset pairing information, completes Bluetooth headset connection switching between the master device and the slave device, and completes master-slave switching.
3. The method of claim 1, wherein the method comprises the following steps: the method comprises the following steps:
s30: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s30-1: when the master device is required to be locked as the master device according to an external event, the master device locks the master device as the only master device according to a preset event, the master device sets the master device as a first trust device according to the preset event, all slave devices are set as second trust devices, the master device Bluetooth sets a Bluetooth headset and a software switching distribution system which are installed on the master device as a first trust software distribution system according to the preset event, software distribution systems which are installed on all the slave devices are set as second trust software distribution systems, and the trust relationship of the software distribution systems is synchronous with the trust relationship of the devices;
s30-2: when the main device software distribution system is influenced by an external event and distributes the Bluetooth headset to the slave device according to the requirement of the external event, the main device software distribution system sends the upper-layer state information of the Bluetooth headset to a Bluetooth headset connection request of the slave device through communication connection by the main device;
s30-3: the master device sends a distribution connection request of the software distribution system to the slave device Bluetooth connection request according to a preset event requirement, and the master-slave mode is unchanged;
s30-4: the method comprises the steps that the slave equipment replies an agreement instruction after receiving a Bluetooth headset connection request sent by the master equipment, the master equipment sends upper-layer state information of the Bluetooth headset to be distributed to the slave equipment according to a preset event after receiving the agreement instruction replied by the slave equipment, and the Bluetooth headset is disconnected from the master equipment;
s30-5: after receiving the upper-layer state information of the Bluetooth headset sent by the master device, the slave device synchronizes the Bluetooth headset trusted by the master device under the condition that the slave device is not paired with the Bluetooth headset according to the preset device trust relationship, performs Bluetooth connection with the slave device according to the Bluetooth headset pairing information prestored by the synchronous master device, disconnects the master device from the Bluetooth headset, completes the distribution switching connection between the master device and the Bluetooth headset, and maintains the connection state of other Bluetooth headsets in Bluetooth connection with the master device and the master device unchanged.
4. The method of claim 1, wherein the method comprises the following steps: the method comprises the following steps:
s40: the links between the master device and all the slave devices are in communication connection with all the slave devices to form a personal Bluetooth ecosystem, and are in Bluetooth connection with all the Bluetooth earphones, and all the Bluetooth earphones establish monitoring links at the same time;
s40-1: when the master device receives an external event and requires Bluetooth connection of a Bluetooth headset to switch Bluetooth connection of master and slave devices, the master device sends a Bluetooth headset connection request to the slave device according to a preset event, the master device master mode is converted into a slave mode, the slave device slave mode is converted into a master mode, and the relation between the master and slave devices is not changed when the switching is not completed;
s40-2: after receiving a request instruction sent by the master device, the slave device replies an agreement instruction to the master device according to a preset event;
s40-3: after receiving the agreement instruction replied by the slave equipment, the master equipment sends the upper-layer state information of all the Bluetooth earphones in the current connection state to the slave equipment, and the master equipment disconnects the Bluetooth connection with all the Bluetooth earphones;
s40-4: after the slave device converted into the master mode receives the upper-layer state information of the Bluetooth headset sent by the master device, the slave device synchronizes Bluetooth headset pairing information prestored by the master device according to a preset trust relationship to establish Bluetooth connection with the Bluetooth headset, so that Bluetooth headset connection switching between the master device and the slave device is completed, Bluetooth headset Bluetooth connection switching is completed, the master device is converted into the slave device, the master mode slave device is converted into the master device, and master-slave switching is completed.
5. A method of switching connection between a wireless Bluetooth headset and a plurality of devices according to claims 1-4, characterized in that: the preset events comprise incoming call events, voice call events, video call events or audio playing events of master and slave devices, the preset events comprise temporary connection events and long-term connection events, Bluetooth connection switching devices are arranged in the master device, the slave devices, the Bluetooth earphones and the Bluetooth loudspeaker boxes, and the communication connection mode is Bluetooth connection.
6. The method of claim 5, wherein the method comprises the following steps: after the temporary connection event is requested, the master and the slave realize the switching and then the slave is connected with the Bluetooth earphone or the Bluetooth sound box, and after the temporary connection event is completed, the original master can be automatically reconnected with the Bluetooth earphone or the Bluetooth sound box.
7. The method of claim 5, wherein the method comprises the following steps: the Bluetooth connection switching equipment comprises a processor, a user interface, Bluetooth hardware, a software switching distribution system, an intelligent voice system, a network interface and a hardware operating system, wherein the hardware operating system comprises a user interface module, a network communication module, a connection switching program, a distribution switching software module, an earphone connection switching module, an intelligent voice interface module, a Bluetooth communication connection module, a memory and a repeater module.
8. The method of claim 7, wherein the method comprises: the Bluetooth hardware divides the frequency band of the Bluetooth system 1.0-5.0 into 79 frequency band channels, and the 79 frequency band channels are sequentially sequenced from low megahertz to high megahertz, and the frequency band channel of each serial number establishes a communication connection.
9. The method of claim 7, wherein the method comprises: the earphone connection switching module comprises an equipment communication connection module, a connection switching request module, a connection switching response module, a software system synchronization module, an intelligent equipment software distribution module, a switching connection module, an earphone switching module and a repeater switching module, and the switching connection module comprises an earphone connection establishing unit and an equipment connection establishing unit.
10. The method of claim 3, wherein the method comprises the following steps: after the step S30-5 is completed, when the master device receives a request from an external matter to switch the bluetooth headset connected to the bluetooth of the first slave device to the second slave device, the master device sends preset allocation information to the first slave device, the first slave device sends upper layer status information of the bluetooth headset connected to the first slave device to the second slave device according to a preset event after receiving the bluetooth headset allocation information sent by the master device, and disconnects the bluetooth connection with the bluetooth headset, the second slave device establishes bluetooth connection with the bluetooth headset according to bluetooth pre-stored pairing information of the synchronous master device after receiving the upper layer status information of the bluetooth headset sent by the first slave device, the bluetooth headset allocation connection switching of the master device and the slave device is completed, and the master-slave mode relationship is unchanged.
CN202111153128.8A 2021-09-29 2021-09-29 Connection switching method for wireless Bluetooth headset and multiple devices Withdrawn CN113938868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111153128.8A CN113938868A (en) 2021-09-29 2021-09-29 Connection switching method for wireless Bluetooth headset and multiple devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111153128.8A CN113938868A (en) 2021-09-29 2021-09-29 Connection switching method for wireless Bluetooth headset and multiple devices

Publications (1)

Publication Number Publication Date
CN113938868A true CN113938868A (en) 2022-01-14

Family

ID=79277442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111153128.8A Withdrawn CN113938868A (en) 2021-09-29 2021-09-29 Connection switching method for wireless Bluetooth headset and multiple devices

Country Status (1)

Country Link
CN (1) CN113938868A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116761110A (en) * 2023-08-18 2023-09-15 江西斐耳科技有限公司 Multi-point bluetooth headset control method, system, storage medium and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116761110A (en) * 2023-08-18 2023-09-15 江西斐耳科技有限公司 Multi-point bluetooth headset control method, system, storage medium and equipment
CN116761110B (en) * 2023-08-18 2023-11-14 江西斐耳科技有限公司 Multi-point bluetooth headset control method, system, storage medium and equipment

Similar Documents

Publication Publication Date Title
CN109391926B (en) Data processing method of wireless audio equipment and wireless audio equipment
US11350200B2 (en) Wireless audio source switching
US20100048133A1 (en) Audio data flow input/output method and system
CN113411793A (en) Bluetooth communication method and terminal
CN108769431A (en) Audio play control method, device, storage medium and mobile terminal
CN111432386B (en) Connection switching method, device, equipment and storage medium of Bluetooth headset
JPH09331576A (en) Portable telephone set utilization limit system and portable telephone set
JP2020517206A (en) Communication method, device and system in live broadcast channel
CN105282660A (en) Method, terminal and system for realizing multichannel stereo output
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
CN111615090B (en) Interaction method and device between Bluetooth devices, storage medium and electronic device
CN110521230A (en) Mutual interference indicating means, method of reseptance and device in equipment
CN111049709B (en) Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium
CN113938868A (en) Connection switching method for wireless Bluetooth headset and multiple devices
KR20190069749A (en) Head unit of vehicle and control method thereof
CN111182597B (en) Processing method and device
CN111182518A (en) Processing method and device
JP2022522207A (en) Transmission resource instruction method, transmission method, network equipment and terminals
US11665271B2 (en) Controlling audio output
CN110381418B (en) Loudspeaking device, relay device and mobile terminal
KR101343071B1 (en) The conference call method using time division communication in the short distance wireless communication network
JP4722762B2 (en) Wireless communication system
KR20070120665A (en) Apparatus and method for audio broadcasting through bluetooth module
CN114885440B (en) Method for voice call among multiple audio devices, electronic device and storage medium
CN113068193B (en) Information processing method, device and equipment and storage medium

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220114

WW01 Invention patent application withdrawn after publication