CN113905309A - Wireless connection switching method and wireless component - Google Patents
Wireless connection switching method and wireless component Download PDFInfo
- Publication number
- CN113905309A CN113905309A CN202110940426.5A CN202110940426A CN113905309A CN 113905309 A CN113905309 A CN 113905309A CN 202110940426 A CN202110940426 A CN 202110940426A CN 113905309 A CN113905309 A CN 113905309A
- Authority
- CN
- China
- Prior art keywords
- wireless
- bluetooth headset
- sound source
- communication mode
- wireless adapter
- 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 56
- 238000004891 communication Methods 0.000 claims abstract description 183
- 230000005236 sound signal Effects 0.000 claims description 12
- 230000005540 biological transmission Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0023—Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the signalling
- H04L1/0025—Transmission of mode-switching indication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a wireless connection switching method and a wireless assembly, wherein the wireless connection switching method is applied to the wireless assembly and comprises the following steps: when the Bluetooth headset works in the first communication mode and is wirelessly connected with sound source equipment, the Bluetooth headset sends the identity of the Bluetooth headset to the sound source equipment, and when the wireless adapter is accessed to an external interface of the sound source equipment, the wireless adapter sends the identity of the Bluetooth headset to the sound source equipment; when the Bluetooth headset works in the first communication mode and receives the mode switching instruction sent by the sound source equipment, the Bluetooth headset is switched from the first communication mode to the second communication mode; and the Bluetooth headset establishes wireless connection with the wireless adapter in the second communication mode. The invention can reduce user operation and improve use convenience.
Description
Technical Field
The invention relates to the technical field of Bluetooth, in particular to a wireless connection switching method and a wireless assembly.
Background
At present, the bluetooth audio product has extensively popularized in people's daily life and work, especially bluetooth headset's use and popularization for the audio playback has distinguished traditional wired constraint, very big promotion user experience.
Traditional bluetooth headset usually adopts bluetooth standard communication protocol and sound source equipment (such as cell-phone, panel computer, notebook computer, desktop computer) to establish wireless connection, in order to reduce transmission delay, some existing bluetooth headsets still have private communication protocol and are equipped with wireless adapter (wireless transceiver), the external interface (such as USB interface) of sound source equipment can be inserted to wireless adapter, sound source equipment can carry out audio transmission through wireless adapter and bluetooth headset like this, simultaneously because adopt private communication protocol to establish wireless connection between wireless adapter and the bluetooth headset, can realize less transmission delay.
However, for the current bluetooth headset having both the bluetooth standard communication protocol and the private communication protocol, the user is usually required to manually switch the wireless connection object (for example, the connection object is switched from the audio source device to the wireless adapter), which brings inconvenience to the user during the use process.
Disclosure of Invention
Based on the above situation, the main objective of the present invention is to provide a wireless connection switching method and a wireless component, which can facilitate a user to switch a wireless connection object for a current bluetooth headset having both a bluetooth standard communication protocol and a private communication protocol.
In order to achieve the above object, a wireless connection switching method is provided in an embodiment of the present invention, and is applied to a wireless component, where the wireless component includes a bluetooth headset and a wireless adapter, the bluetooth headset has a first communication mode and a second communication mode and can be switched between the first communication mode and the second communication mode, the first communication mode adopts a bluetooth standard communication protocol, and the second communication mode adopts a private communication protocol, and the method includes:
s110: when the Bluetooth headset works in the first communication mode and is wirelessly connected with a sound source device, the Bluetooth headset sends an identity of the Bluetooth headset to the sound source device, and when the wireless adapter is accessed to an external interface of the sound source device, the wireless adapter sends the identity of the wireless adapter to the sound source device, so that the sound source device sends a mode switching instruction to the Bluetooth headset when detecting that the Bluetooth headset is wirelessly connected according to the acquired wireless component information and the external interface of the wireless adapter is accessed to the wireless adapter, wherein the wireless component information comprises an association relationship between the identity of the Bluetooth headset and the identity of the wireless adapter;
s120: when the Bluetooth headset works in the first communication mode and receives the mode switching instruction sent by the sound source equipment, the Bluetooth headset is switched from the first communication mode to the second communication mode;
s130: and the Bluetooth headset establishes wireless connection with the wireless adapter in the second communication mode, so that the sound source equipment transmits audio signals to the Bluetooth headset through the wireless adapter and/or the Bluetooth headset transmits audio signals to the sound source equipment through the wireless adapter.
Further, the S110 further includes:
when the Bluetooth headset works in the first communication mode and is in wireless connection with the sound source equipment, the Bluetooth headset also sends the wireless component information to the sound source equipment.
Further, the S110 further includes:
when the wireless adapter is accessed to the external interface of the sound source equipment, the wireless adapter also sends the wireless component information to the sound source equipment.
Further, the S130 includes:
the Bluetooth headset detects a wireless signal of the wireless adapter in the second communication mode, and sends a wireless connection request to the wireless adapter after the wireless signal of the wireless adapter is detected;
and the wireless adapter establishes wireless connection with the Bluetooth headset after receiving the wireless connection request.
Further, the S130 includes:
the wireless adapter detects a wireless signal of the Bluetooth headset, and sends a wireless connection request to the Bluetooth headset after detecting the wireless signal of the Bluetooth headset;
and the Bluetooth headset establishes wireless connection with the wireless adapter after receiving the wireless connection request in the second communication mode.
Further, the method further comprises:
and if the Bluetooth headset does not detect the wireless signal of the wireless adapter in the second communication mode and the duration time of the wireless signal reaches the preset time, switching the Bluetooth headset from the second communication mode to the first communication mode.
Further, the wireless adapter includes a key, the method further comprising:
and the wireless adapter starts or closes the wireless communication function of the wireless adapter according to the output instruction of the key.
In order to achieve the above object, a wireless connection switching method is further provided in the technical solution of the present invention, and is applied to a sound source device, where the method includes:
s210: the sound source equipment detects whether a Bluetooth headset in a wireless component is wirelessly connected or not and whether an external interface of the sound source equipment is connected to a wireless adapter in the wireless component or not according to the acquired wireless component information, wherein the wireless component information comprises an association relation between an identity of the Bluetooth headset and an identity of the wireless adapter;
s220: the method comprises the steps that when the sound source equipment detects that the sound source equipment is wirelessly connected with the Bluetooth headset and simultaneously an external interface of the sound source equipment is connected with the wireless adapter, a mode switching instruction is sent to the Bluetooth headset, so that the Bluetooth headset is switched from a current first communication mode to a second communication mode, the Bluetooth headset is wirelessly connected with the wireless adapter in the second communication mode, the sound source equipment transmits audio signals to the Bluetooth headset through the wireless adapter and/or the Bluetooth headset transmits the audio signals to the sound source equipment through the wireless adapter, wherein the first communication mode adopts a Bluetooth standard communication protocol, and the second communication mode adopts a private communication protocol.
Further, before the S210, the method further includes:
when the sound source equipment is wirelessly connected with the Bluetooth headset, the sound source equipment acquires the wireless component information sent by the Bluetooth headset.
Further, before the S210, the method further includes:
and when the wireless adapter is accessed to the external interface of the sound source equipment, the sound source equipment acquires the wireless component information sent by the wireless adapter.
In order to achieve the above object, the present invention further provides a wireless assembly, including a bluetooth headset and a wireless adapter, where the bluetooth headset includes a first processing module, the first processing module has a first communication mode and a second communication mode and can switch between the first communication mode and the second communication mode, the first communication mode uses a bluetooth standard communication protocol, and the second communication mode uses a private communication protocol;
the wireless adapter comprises a data interface and a second processing module, the second processing module has a wireless communication function based on a private communication protocol, and the data interface is used for accessing an external interface of the sound source equipment;
and the first processing module and the second processing module can execute the wireless connection switching method applied to the wireless component.
Further, the wireless adapter further comprises a key, and the second processing module is further configured to turn on or turn off its wireless communication function according to an output instruction of the key.
Further, the first processing module comprises a bluetooth chip having the first communication mode and the second communication mode and being switchable between the first communication mode and the second communication mode.
In order to achieve the above object, the technical solution of the present invention further provides an audio source device, which includes a processing module, where the processing module is capable of executing the above wireless connection switching method applied to the audio source device.
In order to achieve the above object, the invention further provides an audio system including the above wireless component and the above sound source device.
In order to achieve the above object, the present invention further provides a computer-readable storage medium storing a computer program, which when executed by a processor, implements the above wireless connection switching method applied to a wireless component or the above wireless connection switching method applied to an audio source device.
The invention provides a wireless connection switching method, when a Bluetooth earphone in a wireless component is wirelessly connected with a sound source device, the self identity mark is sent to the sound source device, when a wireless adapter in the wireless component is accessed to an external interface of the sound source device, the self identity mark is sent to the sound source device through the external interface, so that the sound source device sends a mode switching instruction to the Bluetooth earphone when detecting that the Bluetooth earphone is wirelessly connected and the external interface is accessed to the wireless adapter, when the Bluetooth earphone receives the mode switching instruction, the current first communication mode is switched to a second communication mode, and then the wireless connection with the wireless adapter can be established in the second communication mode, through the mode, when the Bluetooth earphone is wirelessly connected with the sound source device, and when the connection object of the Bluetooth earphone is required to be switched, a user can insert the wireless adapter into the external interface of the sound source device, when the access of the wireless adapter is identified, the sound source equipment can automatically control the Bluetooth headset to be switched to the second communication mode from the first communication mode, and then wireless connection between the Bluetooth headset and the wireless adapter is realized, so that user operation can be reduced, and the use convenience is improved.
Drawings
Preferred embodiments according to the present application will be described below with reference to the accompanying drawings. In the figure:
fig. 1 is a flowchart of a wireless connection switching method according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for switching a wireless connection according to an embodiment of the present invention.
Detailed Description
The present application is described below based on examples, but the present application is not limited to only these examples. In the following detailed description of the present application, certain specific details are set forth in order to avoid obscuring the nature of the present application, well-known methods, procedures, and components have not been described in detail.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
Referring to fig. 1, fig. 1 is a flowchart of a wireless connection switching method provided in an embodiment of the present invention, where the wireless connection switching method is applied to a wireless component, the wireless component includes a bluetooth headset and a wireless adapter (wireless transceiver), the bluetooth headset has a first communication mode and a second communication mode and is switchable between the first communication mode and the second communication mode, the first communication mode adopts a bluetooth standard communication protocol, the second communication mode adopts a private communication protocol, the wireless adapter includes a data interface and has a wireless communication function based on the private communication protocol, and is capable of establishing a wireless connection with the bluetooth headset operating in the second communication mode, and the data interface of the bluetooth headset is used for accessing an external interface of an audio source device, and the wireless connection switching method includes:
s110: when the Bluetooth headset works in the first communication mode and is in wireless connection (Bluetooth connection) with a sound source device, the Bluetooth headset sends the identity of the Bluetooth headset to the sound source device, and when the wireless adapter is connected to an external interface of the sound source device, the wireless adapter sends the identity of the wireless adapter to the sound source device, so that the sound source device sends a mode switching instruction to the Bluetooth headset when detecting that the Bluetooth headset is in wireless connection and the external interface of the wireless adapter is connected to the wireless adapter according to the acquired wireless component information, wherein the wireless component information comprises the association relationship between the identity of the Bluetooth headset and the identity of the wireless adapter.
The identity is information for identifying the identity of the device, for example, the identity may be a hardware communication address (such as a wireless communication address) or an identity identifier, the bluetooth headset and the wireless adapter in the same wireless component not only store their identities, but also store the identities of the other parties, that is, the bluetooth headset not only stores its own identity, but also stores the identities of its associated wireless adapter, the wireless adapter not only stores its own identity, but also stores the identities of its associated bluetooth headset, and specifically, the bluetooth headset and the wireless adapter may both store wireless component information of their wireless components.
The data interface of the wireless adapter may be a USB interface, for example, a USB TYPE-C interface, a Micro USB interface, or a lightning interface, when the data interface of the wireless adapter is inserted into the external interface of the sound source device, the identity of the other party may be identified through enumeration operation between the sound source device and the wireless adapter, and the wireless adapter may send the identity of the wireless adapter to the sound source device.
S120: when the bluetooth headset works in the first communication mode and receives the mode switching instruction sent by the sound source equipment, the bluetooth headset is switched from the first communication mode to the second communication mode.
S130: the Bluetooth headset establishes wireless connection with the wireless adapter in the second communication mode, so that the sound source equipment transmits audio signals to the Bluetooth headset through the wireless adapter and/or the Bluetooth headset transmits audio signals to the sound source equipment through the wireless adapter.
Wherein, after bluetooth headset and the wireless adapter who inserts the external interface of sound source equipment establish wireless connection, can carry out audio transmission through wireless adapter between bluetooth headset and the sound source equipment, namely, sound source equipment can send audio data to wireless adapter through self external interface, wireless adapter sends it to bluetooth headset through wireless connection after carrying out corresponding processing to it, or bluetooth headset's audio data (like the audio frequency that microphone gathered on the bluetooth headset) can send to wireless adapter, wireless adapter sends it to sound source equipment's external interface after carrying out corresponding processing to it, and then transmit to sound source equipment, and simultaneously, because adopt private communication agreement to establish wireless connection between wireless adapter and the bluetooth headset, can realize less transmission delay, realize better audio effect.
In the wireless connection switching method provided by the embodiment of the invention, when a Bluetooth headset in a wireless assembly is wirelessly connected with a sound source device, an identity of the Bluetooth headset is sent to the sound source device, when a wireless adapter in the wireless assembly is accessed to an external interface of the sound source device, the identity of the wireless adapter in the wireless assembly is sent to the sound source device through the external interface, so that the sound source device sends a mode switching instruction to the Bluetooth headset when detecting that the Bluetooth headset is wirelessly connected and the external interface of the wireless adapter is accessed to the Bluetooth headset at the same time, the Bluetooth headset is switched from a current first communication mode to a second communication mode when receiving the mode switching instruction, and further can be wirelessly connected with the wireless adapter in the second communication mode, and by the mode, when a connection object of the Bluetooth headset needs to be switched in the state that the Bluetooth headset is wirelessly connected with the sound source device, a user can insert the wireless adapter into the external interface of the sound source device, when the access of the wireless adapter is identified, the sound source equipment can automatically control the Bluetooth headset to be switched to the second communication mode from the first communication mode, and then wireless connection between the Bluetooth headset and the wireless adapter is realized, so that user operation can be reduced, and the use convenience is improved.
In this embodiment, the private communication protocol is different from the bluetooth standard communication protocol, and the private communication protocol may reduce some fields of a frame header and a frame tail compared with the bluetooth standard communication protocol, so as to reduce overhead of the protocol and implement a smaller transmission delay.
The sound source device in this embodiment may be a mobile phone, a tablet computer, a notebook computer, or a desktop computer, the wireless component information of the wireless component includes an identity of a bluetooth headset in the wireless component, an identity of a wireless adapter, and an association relationship between the two, and the sound source device may acquire the wireless component information in different manners, for example, the sound source device may acquire and store the wireless component information of the wireless component by scanning a two-dimensional code, and in addition, a user may input the wireless component information of the wireless component into the sound source device by a manual input manner, specifically, the sound source device may install a corresponding APP, and the user may implement different operations by the APP;
preferably, in an embodiment, the bluetooth headset pre-stores wireless component information of the wireless component, and the S110 further includes:
when the Bluetooth headset works in the first communication mode and is in wireless connection with the sound source equipment, the Bluetooth headset also sends the wireless component information to the sound source equipment. Specifically, when the Bluetooth headset working in a first communication mode is wirelessly connected with the sound source device, the Bluetooth headset sends pre-stored wireless component information to the sound source device through wireless connection, when the sound source device detects that the Bluetooth headset is wirelessly connected with the sound source device according to the wireless component information, and meanwhile, an external interface of the sound source device is connected with the wireless adapter, the sound source device sends a mode switching instruction to the Bluetooth headset through the wireless connection between the sound source device and the Bluetooth headset, and the Bluetooth headset controls the sound source device to be switched from the first communication mode to a second communication mode when receiving the mode switching instruction, so that the wireless connection between the sound source device and the sound source device is disconnected, and a wireless connection object can be switched to the wireless adapter.
In addition, in another embodiment, the wireless adapter has wireless component information of the wireless component prestored therein, and the S110 further includes:
when the wireless adapter is accessed to the external interface of the sound source equipment, the wireless adapter also sends the wireless component information to the sound source equipment. That is, the wireless adapter transmits the wireless component information of the wireless component to the sound source device, so as to realize the identification of the wireless component by the sound source device, specifically, when the data interface of the wireless adapter is connected with the external interface of the sound source equipment, the wireless adapter communicates with the sound source equipment through the data interface, the wireless adapter transmits the wireless component information of the wireless component to the sound source equipment, when the sound source equipment detects that the sound source equipment is wirelessly connected with the Bluetooth headset according to the wireless component information and simultaneously the external interface of the sound source equipment is accessed into the wireless adapter, the sound source equipment sends a mode switching instruction to the Bluetooth headset through the wireless connection between the sound source equipment and the Bluetooth headset, the Bluetooth headset controls the Bluetooth headset to switch from a first communication mode to a second communication mode when receiving the mode switching instruction, thereby, the wireless connection with the sound source device is disconnected, and the wireless connection object can be switched to the wireless adapter.
When the bluetooth headset switches to the second communication mode, it may establish a wireless connection based on a private communication protocol with the wireless adapter, for example, in an embodiment of the present invention, the wireless connection with the wireless adapter may be implemented by sending a connection request by the bluetooth headset, and the S130 may specifically include:
the Bluetooth headset detects a wireless signal of the wireless adapter in the second communication mode, and sends a wireless connection request to the wireless adapter after the wireless signal of the wireless adapter is detected; and the wireless adapter establishes wireless connection with the Bluetooth headset after receiving the wireless connection request.
Specifically, the bluetooth headset and the wireless adapter may store wireless communication addresses of each other, when the bluetooth headset is switched to the second communication mode, the wireless adapter may start to detect a wireless signal of the wireless adapter according to the pre-stored wireless communication address of the wireless adapter, when the wireless signal of the wireless adapter is detected, a wireless connection request may be sent to the wireless adapter, and when the wireless adapter detects the wireless connection request sent by the bluetooth headset according to the pre-stored wireless communication address of the bluetooth headset, a wireless connection may be established between the bluetooth headset and the wireless adapter.
In addition, in another embodiment of the present invention, a wireless connection between the bluetooth headset and the bluetooth headset may be implemented by using a wireless adapter to send a connection request, where the S130 may specifically include:
the wireless adapter detects a wireless signal of the Bluetooth headset, and sends a wireless connection request to the Bluetooth headset after detecting the wireless signal of the Bluetooth headset; and the Bluetooth headset establishes wireless connection with the wireless adapter after receiving the wireless connection request in the second communication mode.
Specifically, the wireless communication address of the other party can be stored between the bluetooth headset and the wireless adapter, when the wireless adapter starts the wireless communication function of the wireless adapter, the wireless adapter can start to detect the wireless signal of the bluetooth headset according to the pre-stored wireless communication address of the bluetooth headset, when the wireless signal of the bluetooth headset is detected, the wireless adapter sends a wireless connection request to the bluetooth headset, and when the bluetooth headset detects the wireless connection request sent by the wireless adapter according to the pre-stored wireless communication address of the wireless adapter, the wireless adapter establishes wireless connection between the bluetooth headset and the wireless adapter.
Preferably, in an embodiment, the wireless connection method in the embodiment of the present invention further includes:
and if the Bluetooth headset does not detect the wireless signal of the wireless adapter in the second communication mode and the duration time of the wireless signal reaches the preset time, switching the Bluetooth headset from the second communication mode to the first communication mode. That is, in the second communication mode, when the bluetooth headset does not detect the wireless signal of the wireless adapter within a certain time, the current second communication mode can be automatically switched to the first communication mode, and then the wireless connection between the bluetooth headset and the sound source device can be realized.
For example, the wireless adapter adopts an external power supply mode, the sound source device supplies power to the wireless adapter when the sound source device is inserted, the wireless adapter can automatically start the wireless communication function of the wireless adapter after power supply is obtained, at the moment, the wireless adapter can establish wireless connection with the Bluetooth headset working in the second communication mode, when the wireless adapter is pulled out from the external interface of the sound source device, the wireless adapter loses power supply so as to automatically close the wireless communication function, the wireless connection between the wireless adapter and the Bluetooth headset is disconnected, when the Bluetooth headset does not detect the wireless signal of the wireless adapter in the second communication mode and the duration time of the wireless adapter reaches the preset time, the Bluetooth headset is switched to the first communication mode from the current second communication mode, so that a wireless connection object can be automatically switched to the sound source device, and the convenience for a user is realized.
In addition, the wireless adapter can also adopt a self-powered mode, and further comprises a power supply battery and a key, and the wireless adapter can turn on or turn off the wireless communication function of the wireless adapter according to the output instruction of the key.
Referring to fig. 2, fig. 2 is a flowchart of another wireless connection switching method according to an embodiment of the present invention, where the wireless connection switching method is applied to an audio source device, and the audio source device may be the audio source device described above, and the wireless connection switching method includes:
s210: the sound source equipment detects whether a Bluetooth headset in a wireless component is wirelessly connected or not and whether an external interface of the sound source equipment is connected to a wireless adapter in the wireless component or not according to the acquired wireless component information, wherein the wireless component information comprises an association relation between an identity of the Bluetooth headset and an identity of the wireless adapter;
s220: when the sound source equipment detects that the sound source equipment is wirelessly connected with the Bluetooth headset and an external interface of the sound source equipment is accessed into the wireless adapter, a mode switching instruction is sent to the Bluetooth headset, so that the Bluetooth headset is switched from a current first communication mode to a second communication mode, the Bluetooth headset is wirelessly connected with the wireless adapter in the second communication mode, so that the sound source equipment transmits an audio signal to the Bluetooth headset through the wireless adapter and/or the Bluetooth headset transmits the audio signal to the sound source equipment through the wireless adapter, wherein the first communication mode adopts a Bluetooth standard communication protocol, and the second communication mode adopts a private communication protocol.
In the wireless connection switching method provided by the embodiment of the invention, the sound source device detects whether the sound source device is wirelessly connected with the Bluetooth headset in the wireless assembly or not and whether the external interface of the sound source device is connected with the wireless adapter in the wireless assembly or not according to the acquired wireless assembly information, and sends a mode switching instruction to the Bluetooth headset when detecting that the sound source device is wirelessly connected with the Bluetooth headset and simultaneously the external interface of the sound source device is connected with the wireless adapter, the Bluetooth headset is switched from the current first communication mode to the second communication mode when receiving the mode switching instruction, and further can establish wireless connection with the wireless adapter in the second communication mode, through the above way, in the state that the Bluetooth headset is wirelessly connected with the sound source device, when the connection object of the Bluetooth headset needs to be switched, a user can insert the wireless adapter into the external interface of the sound source device, and when the access of the wireless adapter is identified, the sound source equipment can automatically control the Bluetooth headset to be switched to the second communication mode from the first communication mode, and then wireless connection between the Bluetooth headset and the wireless adapter is realized, so that user operation can be reduced, and use convenience is improved.
The sound source equipment can be a mobile phone, a tablet computer, a notebook computer or a desktop computer, the wireless component information of the wireless component comprises an identity of a Bluetooth headset in the wireless component, an identity of a wireless adapter and an incidence relation between the identity and the identity, the sound source equipment can acquire the wireless component information in different modes, for example, the sound source equipment can acquire and store the wireless component information of the wireless component in a two-dimensional code scanning mode, and in addition, a user can input the wireless component information of the wireless component into the sound source equipment in a manual input mode.
Preferably, in an embodiment, before the S210, the method further includes:
when the sound source equipment is wirelessly connected with the Bluetooth headset, the sound source equipment acquires the wireless component information sent by the Bluetooth headset.
In another embodiment, before the S210, the method further includes:
and when the wireless adapter is accessed to the external interface of the sound source equipment, the sound source equipment acquires the wireless component information sent by the wireless adapter.
The embodiment of the invention also provides a wireless assembly, which comprises a Bluetooth headset and a wireless adapter, wherein the Bluetooth headset comprises a first processing module, the first processing module has a first communication mode and a second communication mode and can be switched between the first communication mode and the second communication mode, the first communication mode adopts a Bluetooth standard communication protocol, and the second communication mode adopts a private communication protocol;
the wireless adapter comprises a data interface and a second processing module, the second processing module has a wireless communication function based on a private communication protocol, and the data interface is used for accessing an external interface of the sound source equipment;
and the first processing module and the second processing module can execute the wireless connection switching method applied to the wireless component.
The first processing module may be a chip, or may include a plurality of chips; the second processing module may be a chip or may include a plurality of chips.
Preferably, in an embodiment, the wireless adapter further includes a key, and the second processing module is further configured to turn on or off its wireless communication function according to an output instruction of the key.
For example, in one embodiment, the first processing module includes a bluetooth chip having the first communication mode and the second communication mode and switchable between the first communication mode and the second communication mode.
The embodiment of the invention also provides sound source equipment, which comprises a processing module, wherein the processing module can execute the wireless connection switching method applied to the sound source equipment.
The embodiment of the invention also provides an audio system which comprises the wireless component and the sound source equipment.
An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the method for switching wireless connection applied to a wireless component or the method for switching wireless connection applied to a sound source device is implemented.
It will be appreciated by those skilled in the art that the above-described preferred embodiments may be freely combined, superimposed, without conflict.
It will be understood that the embodiments described above are illustrative only and not restrictive, and that various obvious and equivalent modifications and substitutions for details described herein may be made by those skilled in the art without departing from the basic principles of the invention.
Claims (12)
1. A wireless connection switching method applied to a wireless component, the wireless component comprising a bluetooth headset and a wireless adapter, the bluetooth headset having a first communication mode and a second communication mode and being switchable between the first communication mode and the second communication mode, the first communication mode employing a bluetooth standard communication protocol, the second communication mode employing a private communication protocol, the method comprising:
s110: when the Bluetooth headset works in the first communication mode and is wirelessly connected with a sound source device, the Bluetooth headset sends an identity of the Bluetooth headset to the sound source device, and when the wireless adapter is accessed to an external interface of the sound source device, the wireless adapter sends the identity of the wireless adapter to the sound source device, so that the sound source device sends a mode switching instruction to the Bluetooth headset when detecting that the Bluetooth headset is wirelessly connected according to the acquired wireless component information and the external interface of the wireless adapter is accessed to the wireless adapter, wherein the wireless component information comprises an association relationship between the identity of the Bluetooth headset and the identity of the wireless adapter;
s120: when the Bluetooth headset works in the first communication mode and receives the mode switching instruction sent by the sound source equipment, the Bluetooth headset is switched from the first communication mode to the second communication mode;
s130: and the Bluetooth headset establishes wireless connection with the wireless adapter in the second communication mode, so that the sound source equipment transmits audio signals to the Bluetooth headset through the wireless adapter and/or the Bluetooth headset transmits audio signals to the sound source equipment through the wireless adapter.
2. The method of claim 1, wherein the S110 further comprises:
when the Bluetooth headset works in the first communication mode and is in wireless connection with the sound source equipment, the Bluetooth headset also sends the wireless component information to the sound source equipment.
3. The method of claim 1, wherein the S110 further comprises:
when the wireless adapter is accessed to the external interface of the sound source equipment, the wireless adapter also sends the wireless component information to the sound source equipment.
4. The method according to any one of claims 1-3, wherein the S130 comprises:
the Bluetooth headset detects a wireless signal of the wireless adapter in the second communication mode, and sends a wireless connection request to the wireless adapter after the wireless signal of the wireless adapter is detected;
and the wireless adapter establishes wireless connection with the Bluetooth headset after receiving the wireless connection request.
5. The method according to any one of claims 1-3, wherein the S130 comprises:
the wireless adapter detects a wireless signal of the Bluetooth headset, and sends a wireless connection request to the Bluetooth headset after detecting the wireless signal of the Bluetooth headset;
and the Bluetooth headset establishes wireless connection with the wireless adapter after receiving the wireless connection request in the second communication mode.
6. The method according to any one of claims 1-5, further comprising:
and if the Bluetooth headset does not detect the wireless signal of the wireless adapter in the second communication mode and the duration time of the wireless signal reaches the preset time, switching the Bluetooth headset from the second communication mode to the first communication mode.
7. The method of any of claims 1-5, wherein the wireless adapter comprises a key, the method further comprising:
and the wireless adapter starts or closes the wireless communication function of the wireless adapter according to the output instruction of the key.
8. A wireless connection switching method is applied to sound source equipment, and is characterized by comprising the following steps:
s210: the sound source equipment detects whether a Bluetooth headset in a wireless component is wirelessly connected or not and whether an external interface of the sound source equipment is connected to a wireless adapter in the wireless component or not according to the acquired wireless component information, wherein the wireless component information comprises an association relation between an identity of the Bluetooth headset and an identity of the wireless adapter;
s220: the method comprises the steps that when the sound source equipment detects that the sound source equipment is wirelessly connected with the Bluetooth headset and simultaneously an external interface of the sound source equipment is connected with the wireless adapter, a mode switching instruction is sent to the Bluetooth headset, so that the Bluetooth headset is switched from a current first communication mode to a second communication mode, the Bluetooth headset is wirelessly connected with the wireless adapter in the second communication mode, the sound source equipment transmits audio signals to the Bluetooth headset through the wireless adapter and/or the Bluetooth headset transmits the audio signals to the sound source equipment through the wireless adapter, wherein the first communication mode adopts a Bluetooth standard communication protocol, and the second communication mode adopts a private communication protocol.
9. The method of claim 8, wherein prior to the S210, the method further comprises:
when the sound source equipment is wirelessly connected with the Bluetooth headset, the sound source equipment acquires the wireless component information sent by the Bluetooth headset.
10. The method of claim 8, wherein prior to the S210, the method further comprises:
and when the wireless adapter is accessed to the external interface of the sound source equipment, the sound source equipment acquires the wireless component information sent by the wireless adapter.
11. A wireless assembly comprising a bluetooth headset and a wireless adapter, wherein the bluetooth headset comprises a first processing module having a first communication mode and a second communication mode and being switchable between the first communication mode and the second communication mode, the first communication mode employing a bluetooth standard communication protocol and the second communication mode employing a private communication protocol;
the wireless adapter comprises a data interface and a second processing module, the second processing module has a wireless communication function based on a private communication protocol, and the data interface is used for accessing an external interface of the sound source equipment;
and the first processing module and the second processing module are capable of performing the method according to any one of claims 1-7.
12. The wireless assembly of claim 11, wherein the wireless adapter further comprises a key, and wherein the second processing module is further configured to turn on or off its wireless communication function according to an output instruction of the key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110940426.5A CN113905309B (en) | 2021-08-17 | 2021-08-17 | Wireless connection switching method and wireless component |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110940426.5A CN113905309B (en) | 2021-08-17 | 2021-08-17 | Wireless connection switching method and wireless component |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113905309A true CN113905309A (en) | 2022-01-07 |
CN113905309B CN113905309B (en) | 2024-04-26 |
Family
ID=79187571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110940426.5A Active CN113905309B (en) | 2021-08-17 | 2021-08-17 | Wireless connection switching method and wireless component |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113905309B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1377144A (en) * | 2001-03-28 | 2002-10-30 | 国际商业机器公司 | Bluetooth adaptor for infrared interface and communication method therefor |
US20020159419A1 (en) * | 2001-04-27 | 2002-10-31 | Martin Morris | System and method for connecting bluetooth-enabled devices to a personal computer |
CN205754327U (en) * | 2016-06-21 | 2016-11-30 | 深圳市丰景晟电子科技有限公司 | A kind of multifunction blue tooth adapter |
CN109890018A (en) * | 2019-01-29 | 2019-06-14 | 深圳傲智天下信息科技有限公司 | Blue-tooth transmission method, bluetooth transceiver and the computer readable storage medium of audio |
CN211352414U (en) * | 2020-01-14 | 2020-08-25 | 珠海市杰理科技股份有限公司 | Bluetooth headset charging box and communication circuit, chip and audio playing system thereof |
CN112511937A (en) * | 2020-11-17 | 2021-03-16 | 歌尔科技有限公司 | Bluetooth headset and use mode switching method of Bluetooth headset |
-
2021
- 2021-08-17 CN CN202110940426.5A patent/CN113905309B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1377144A (en) * | 2001-03-28 | 2002-10-30 | 国际商业机器公司 | Bluetooth adaptor for infrared interface and communication method therefor |
US20020159419A1 (en) * | 2001-04-27 | 2002-10-31 | Martin Morris | System and method for connecting bluetooth-enabled devices to a personal computer |
CN205754327U (en) * | 2016-06-21 | 2016-11-30 | 深圳市丰景晟电子科技有限公司 | A kind of multifunction blue tooth adapter |
CN109890018A (en) * | 2019-01-29 | 2019-06-14 | 深圳傲智天下信息科技有限公司 | Blue-tooth transmission method, bluetooth transceiver and the computer readable storage medium of audio |
CN211352414U (en) * | 2020-01-14 | 2020-08-25 | 珠海市杰理科技股份有限公司 | Bluetooth headset charging box and communication circuit, chip and audio playing system thereof |
CN112511937A (en) * | 2020-11-17 | 2021-03-16 | 歌尔科技有限公司 | Bluetooth headset and use mode switching method of Bluetooth headset |
Also Published As
Publication number | Publication date |
---|---|
CN113905309B (en) | 2024-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107277754B (en) | Bluetooth connection method and Bluetooth peripheral equipment | |
US11812485B2 (en) | Bluetooth communication method and terminal | |
US11805350B2 (en) | Point-to-multipoint data transmission method and device | |
US11778363B2 (en) | Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device | |
CN108718467B (en) | Voice data transmission method, wireless headset and TWS headset | |
US10609538B2 (en) | Method and device for identifying bluetooth headset voice source | |
JP5273214B2 (en) | Near field communication device | |
CN111343622A (en) | Bluetooth sound box synchronous playing method, device and system | |
WO2012142794A1 (en) | Method for pairing bluetooth accessory with bluetooth device, and bluetooth accessory | |
CN108810741B (en) | Method and device for connecting double wireless earphones and wireless earphones | |
WO2020113587A1 (en) | Method, device and system for calling using bluetooth earpiece | |
KR20200110086A (en) | Method for establishing wireless communication link and electronic device supporting the same | |
KR20190065786A (en) | Method for reconnecting bluetooth communication and apparatus using the same | |
US20200413456A1 (en) | Method for pairing and connecting secondary earphone with sound source device | |
CN109618318A (en) | A kind of matching method and TWS earphone of TWS earphone | |
JP2015144402A (en) | On-vehicle device and on-vehicle device control method | |
WO2021239032A1 (en) | Bluetooth protocol connection method and apparatus, storage medium, and related device | |
CN108513196B (en) | Wireless earphone and pairing method thereof | |
CN110944313B (en) | Bluetooth connection method, device, storage medium and terminal | |
CN107835518B (en) | Control method for selectively connecting and searching Bluetooth, mobile terminal and storage medium | |
WO2021233398A1 (en) | Wireless audio system, wireless communication method, and device | |
CN113905309B (en) | Wireless connection switching method and wireless component | |
CN111132108B (en) | Information processing method and electronic equipment | |
JP3751927B2 (en) | Voice information notification method for mobile phone and mobile phone with voice information notification function using the same | |
KR102113550B1 (en) | Method for Operating Functions and Resources of Electric Device |
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 |