CN111447600B - Audio sharing method of wireless earphone, terminal equipment and storage medium - Google Patents

Audio sharing method of wireless earphone, terminal equipment and storage medium Download PDF

Info

Publication number
CN111447600B
CN111447600B CN202010248656.0A CN202010248656A CN111447600B CN 111447600 B CN111447600 B CN 111447600B CN 202010248656 A CN202010248656 A CN 202010248656A CN 111447600 B CN111447600 B CN 111447600B
Authority
CN
China
Prior art keywords
pair
wireless
earphones
earphone
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010248656.0A
Other languages
Chinese (zh)
Other versions
CN111447600A (en
Inventor
王杰松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010248656.0A priority Critical patent/CN111447600B/en
Publication of CN111447600A publication Critical patent/CN111447600A/en
Application granted granted Critical
Publication of CN111447600B publication Critical patent/CN111447600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses an audio sharing method of a wireless earphone, which comprises the following steps: after receiving connection information sent by connected electronic equipment, the first pair of wireless earphones establishes connection with the second pair of wireless earphones according to the connection information; and after receiving the audio data sent by the electronic equipment, the first pair of wireless earphones sends the audio data to the second wireless earphone. The invention also discloses a wireless earphone and electronic equipment. According to the invention, the first pair of wireless earphones is connected with the electronic equipment, then the connection is established with the second pair of wireless earphones, after the audio data sent by the electronic equipment is received, the audio data is sent to the second pair of wireless earphones, the second pair of wireless earphones does not need to establish a connection relation with the electronic equipment, so that multiple pairs of earphones can synchronously listen to the same audio data of the same electronic equipment, other interfaces do not need to be added, and the hardware of the electronic equipment does not need to be modified, so that the method has the advantages of simplicity in implementation and low cost.

Description

Audio sharing method of wireless earphone, terminal equipment and storage medium
Technical Field
The present invention relates to the field of bluetooth headphones, and in particular, to an audio sharing method, a terminal device, and a storage medium for a wireless headphone.
Background
With the development of Bluetooth technology, the Bluetooth earphone is utilized to listen to audio, so that the living of people is greatly facilitated. When the Bluetooth headset listens to the audio, one playing device can only send the audio to a pair of Bluetooth headset, but can not send the audio to a plurality of pairs of Bluetooth headset at the same time, but the situation that a plurality of persons share one section of audio exists, such as lovers, in the prior art, a plurality of headset interfaces are arranged on the mobile terminal, and a pair of headset is connected on each headset interface, so that the problem that a plurality of pairs of headset listen to the same audio data of the same mobile terminal at the same time, the cost is increased, and the headset wire is wound is solved.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The embodiment of the invention mainly aims to provide an audio sharing method of a wireless earphone, which aims to solve the technical problems of cost increase and earphone wire winding in the prior art.
In order to solve the above problems, an embodiment of the present invention provides an audio sharing method for a wireless earphone, including the following contents:
after receiving connection information sent by connected electronic equipment, the first pair of wireless earphones establishes connection with the second pair of wireless earphones according to the connection information;
and after receiving the audio data sent by the electronic equipment, the first pair of wireless earphones sends the audio data to the second wireless earphone.
Optionally, after receiving connection information sent by the connected electronic device, the step of establishing connection between the first pair of wireless headphones and the second pair of wireless headphones according to the connection information includes:
the first pair of wireless earphones is switched to a main connection mode after receiving connection information sent by the electronic equipment;
pairing the wireless earphone according to a secret key in the connection information and a second pair of wireless earphones corresponding to the address information in the connection information, wherein the connection information comprises the secret key and the address information;
after the pairing is successful, the first pair of wireless headphones establishes a connection with the second pair of wireless headphones.
Optionally, after receiving the identification information sent by the connected electronic device, the step of establishing connection between the first pair of wireless headphones and the second pair of wireless headphones corresponding to the identification information further includes:
the first pair of wireless headphones switches to a main connection mode after receiving connection information sent by the electronic equipment, wherein the connection information comprises identification information;
receiving Bluetooth broadcasting information;
when the identification information in the Bluetooth broadcast information is matched with the identification information in the connection information, a pairing request is sent to a second wireless earphone which sends the Bluetooth broadcast information;
after the pairing is successful, the first pair of wireless headphones establishes a connection with the second pair of wireless headphones.
Optionally, the step of establishing a connection between the first pair of wireless headphones and the second pair of wireless headphones comprises:
the left earphone of the first pair of wireless earphones is connected with the left earphone of the second pair of wireless earphones;
the right earphone of the first pair of wireless earphones establishes a connection with the right earphone of the second pair of wireless earphones.
Optionally, the step of the first pair of wireless headphones, after receiving the audio data sent by the electronic device, sending the audio data to the second pair of wireless headphones includes:
the first pair of wireless headphones acquires authority information of the audio data after receiving the audio data sent by the electronic equipment;
and when the permission information contains the identification information of the second pair of wireless headphones, sending the audio data to the second pair of wireless headphones.
In addition, in order to solve the above problem, an embodiment of the present invention further provides an audio sharing method of a wireless headset, where the audio sharing method of the wireless headset includes:
after receiving a pairing request of a second pair of wireless earphones, the electronic equipment acquires connection information of the second pair of wireless earphones;
the electronic device sends the connection information to the first pair of wireless headphones for the first pair of wireless headphones to establish connection with the second pair of wireless headphones according to the connection information.
Optionally, after the step of sending the connection information to the first pair of wireless headphones by the electronic device to enable the first pair of wireless headphones to establish a connection with the second pair of wireless headphones according to the connection information, the audio sharing method of the wireless headphones further includes:
the electronic device sends audio data to the first pair of wireless headphones.
Optionally, the step of obtaining, by the electronic device, connection information of the second pair of wireless headphones after receiving a pairing request of the second pair of wireless headphones includes:
after receiving the pairing request of the second pair of wireless earphones, the electronic equipment disconnects the connection with the first pair of wireless earphones;
the electronic equipment establishes connection with the second pair of wireless earphones, and acquires connection information of the second pair of wireless earphones;
and after the electronic equipment acquires the connection information of the second pair of wireless earphones, the electronic equipment disconnects the connection with the second pair of wireless earphones and establishes connection with the first pair of wireless earphones.
The embodiment of the invention also provides a wireless earphone, which comprises a processor, a memory and an audio sharing program of the wireless earphone, wherein the audio sharing program of the wireless earphone is stored in the memory and can run on the processor, and the steps of the audio sharing method of the wireless earphone are realized when the audio sharing program of the wireless earphone is executed by the processor.
The embodiment of the invention also provides an electronic device, which comprises a processor, a memory and an audio sharing program of the wireless earphone, wherein the audio sharing program of the wireless earphone is stored in the memory and can run on the processor, and the steps of the audio sharing method of the wireless earphone are realized when the audio sharing program of the wireless earphone is executed by the processor.
According to the audio sharing method of the wireless earphone, the first pair of wireless earphones are detected to be in the out-of-box state, the first pair of wireless earphones send the pairing request, connection with the electronic equipment is established, connection with the second pair of wireless earphones is established, after the electronic equipment sends audio data, the audio data are sent to the second pair of wireless earphones, the second pair of wireless earphones do not need to establish a connection relation with the electronic equipment, multiple pairs of wireless earphones can synchronously listen to the same audio data of the same electronic equipment, other earphone interfaces do not need to be added, hardware of the electronic equipment does not need to be modified, and the audio sharing method has the advantages of being simple to implement and low in cost.
Drawings
Fig. 1 is a flowchart of a first embodiment of an audio sharing method of a wireless headset according to the present invention;
fig. 2 is a schematic connection diagram of a first pair of wireless headphones, an electronic device, and a second pair of wireless headphones according to an embodiment of the present invention;
fig. 3 is a flowchart of a second embodiment of an audio sharing method of a wireless headset according to the present invention;
fig. 4 is a flowchart of a third embodiment of an audio sharing method of a wireless headset according to the present invention;
fig. 5 is a flowchart of a fourth embodiment of an audio sharing method of a wireless headset according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the detailed description is presented by way of example only and is not intended to limit the invention.
The main solutions of the embodiments of the present invention are: after receiving connection information sent by connected electronic equipment, the first pair of wireless earphones establishes connection with the second pair of wireless earphones according to the connection information; and after receiving the audio data sent by the electronic equipment, the first pair of wireless earphones sends the audio data to the second wireless earphone.
Because the prior art has the technical problem of increased cost and winding of the earphone wire.
The embodiment of the invention provides a solution, wherein the first pair of wireless earphones is detected to be in a box-out state, the first pair of wireless earphones sends a pairing request, connection with electronic equipment is established, then connection with the second pair of wireless earphones is established, after receiving audio data sent by the electronic equipment, the audio data are sent to the second pair of wireless earphones, the second pair of wireless earphones do not need to establish a connection relationship with the electronic equipment, a plurality of pairs of earphones can listen to the same audio data of the same electronic equipment at the same time, no more interfaces are required to be added, hardware of the electronic equipment is not required to be modified, and the method has the advantages of being simple to implement and low in cost
The implementation main body of the embodiment of the invention is a first pair of wireless earphone, which can be a TWS (True Wireless Stereo, real wireless stereo) Bluetooth earphone or a common Bluetooth earphone.
The first pair of wireless headphones may include a processor, where the processor may be implemented as a highly integrated chip, integrating the functions of a bluetooth module, an MCU (Microcontroller Unit, micro control unit) and a DSP (Digital Signal Processing ), and may also integrate other components, without limitation; the bluetooth module may include dual mode bluetooth, i.e., a base rate/enhanced rate bluetooth module (BR/EDR) and a bluetooth low energy module (BLE); MCU is used mainly for earphone control function, DSP is used mainly for realizing digital signal processing. Further, the first pair of wireless headphones further comprises a memory; the memory as a computer readable storage medium may further include an operating system, a network communication module, and a connection switching program of the first pair of wireless headphones, where the network communication module is mainly used to connect the terminal and the earphone box, and is in communication connection with the terminal and the earphone box.
Further, the first pair of wireless headphones further comprises an audio acquisition device (such as a microphone), a battery assembly, a touch assembly, an LED lamp, a sensor, and a speaker. For an audio collection device (such as a microphone), the collected audio signal is used for realizing a call function, the other microphone can be a noise reduction microphone, and the collected audio signal is used for reducing noise; the battery assembly is used for supplying power to the first pair of wireless earphones; the touch component is used for realizing a touch function and can be a key; the LED lamp is used for prompting working states of Bluetooth, such as a start-up prompt, a charging prompt, a terminal connection prompt and a earphone box connection prompt lamp; the sensor may include a gravitational acceleration sensor, a vibration sensor, a gyroscope, etc. for detecting the state of the first pair of wireless headphones, so as to determine the physical action state of the user currently wearing the first pair of wireless headphones; for loudspeaker, can include more than two horns, for example first pair of wireless earphone every earphone all sets up two horns, and a moving coil loudspeaker, a moving coil loudspeaker are better in well low frequency response, and moving coil loudspeaker is better in well high frequency part response, and two horns use simultaneously, and the frequency division function through the treater is with moving the iron loudspeaker and parallelly connected on moving coil loudspeaker, makes the sound wave of whole audio frequency band audible to the people's ear.
It will be appreciated by those skilled in the art that the hardware configuration of the first pair of wireless headphones described above is not limiting of the invention, and in practice the first pair of wireless headphones may comprise more or fewer components than the examples described above, or may combine certain components, or may have a different arrangement of components.
Based on the above-mentioned structure of the first pair of wireless headphones, a first embodiment of the present invention is provided, referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of an audio sharing method of the wireless headphones, where the audio sharing method of the wireless headphones includes the following steps:
step S10, after receiving connection information sent by connected electronic equipment, a first pair of wireless earphones establishes connection with a second pair of wireless earphones according to the connection information;
in this embodiment, the execution body is a first pair of wireless headphones. The first pair of wireless headphones may be a TWS bluetooth headset or a normal bluetooth headset.
When the first pair of wireless headphones detects that the first pair of wireless headphones is in a box-out state, a pairing request is broadcast so as to establish connection with electronic equipment, wherein the electronic equipment is equipment with a Bluetooth module and can be terminal equipment such as a smart phone, a smart watch, a PAD, an MP3, a portable notebook, an MP4 and the like. The electronic device has the function of playing audio at the same time, and can play the audio file through a loudspeaker or a microphone.
Optionally, the left earphone and the right earphone of the first pair of wireless earphones may be respectively connected with the electronic device, so as to achieve the effect of synchronous playing of stereo audio by the left ear and the right ear. The left earphone and the right earphone of the first pair of wireless earphone can be distinguished through Bluetooth addresses, so that the left earphone and the right earphone are not interfered with each other, and better stereophonic experience is provided for users. The bluetooth addresses of the left and right ear pieces of the first pair of wireless ear pieces are the same except for the portion that distinguishes the left and right ear pieces, and are not limited herein.
The electronic equipment can receive nearby pairing broadcast through the Bluetooth module, acquire connection information of the second pair of wireless earphones after receiving a pairing request of the second pair of wireless earphones, and transmit the connection information to the first pair of wireless earphones so that the first pair of wireless earphones can establish connection with the second pair of wireless earphones after receiving the connection information. Wherein the connection information may include one or more of a device number, a key, and address information of the second pair of wireless headphones.
The second pair of wireless headphones may be a TWS bluetooth headset, or may be a conventional wireless headset, and may be the same or different from the manufacturer of the first pair of wireless headphones.
In the communication connection between the first pair of wireless earphones and the electronic device, the first pair of wireless earphones can serve as slave devices, and the first pair of wireless earphones can be switched into the master device.
After receiving the connection information sent by the electronic equipment, the first pair of wireless earphones triggers the first pair of wireless earphones to be switched from the slave equipment to the master equipment and to be switched into a master connection mode so as to be paired with the second pair of wireless earphones.
The first pair of wireless earphones can be connected with the second pair of wireless earphones in a pairing mode according to the address information and the secret key in the connection information; the first pair of wireless earphones can also be matched and connected with the second pair of wireless earphones in a mode of broadcasting a matching request according to the equipment number in the connecting equipment.
After the first pair of wireless earphones and the second pair of wireless earphones are connected, data can be transmitted through Bluetooth.
Referring to fig. 2, fig. 2 is a schematic connection diagram of a first pair of wireless headphones, an electronic device, and a second pair of wireless headphones, and it can be seen that the first pair of wireless headphones 10 are connected to the electronic device 20 and the second pair of wireless headphones 30, respectively.
After the pairing is completed, each device records the information of the paired device, and when the paired device broadcasts the next pairing request, the connection can be directly established.
As an alternative embodiment, step S10 includes:
the left earphone of the first pair of wireless earphones is connected with the left earphone of the second pair of wireless earphones;
the right earphone of the first pair of wireless earphones establishes a connection with the right earphone of the second pair of wireless earphones.
The bluetooth addresses respectively corresponding to the left earphone and the right earphone of the second pair of wireless earphones are different. The left earphone of the first pair of wireless earphones can be connected with the second pair of wireless left earphones in a pairing mode according to the Bluetooth address of the left earphone of the second pair of wireless earphones; the right earphone of the first pair of wireless earphones can be connected with the second pair of wireless earphones in a pairing mode according to the Bluetooth address of the right earphone of the second pair of wireless earphones.
The electronic device may transmit multiple channels of audio data simultaneously, and thus the left and right headphones of the first pair of wireless headphones may receive audio data from different channels of the electronic device simultaneously.
The left earphone of the first pair of wireless earphone can send the audio data of the left channel to the left earphone of the second pair of wireless earphone through Bluetooth transmission; the right earpiece of the first pair of wireless earpieces may transmit the right channel of audio data to the right earpiece of the second pair of wireless earpieces via bluetooth transmission. Thus, the second pair of wireless headphones also has a stereo effect of a different channel.
In step S20, after receiving the audio data sent by the electronic device, the first pair of wireless headphones sends the audio data to the second wireless headphones.
The electronic device may send the audio data to the first pair of wireless headphones via bluetooth transmission, and may package the audio data into a data packet for transmission to the first pair of wireless headphones.
After receiving the audio data sent by the electronic equipment, the first pair of wireless earphones not only play the audio data through the microphone, but also forward the audio data to the second pair of wireless earphones, so that the sharing of the audio data is realized.
As an alternative embodiment, step S20 includes:
the first pair of wireless headphones acquires authority information of the audio data after receiving the audio data sent by the electronic equipment;
and when the permission information contains the identification information of the second pair of wireless headphones, sending the audio data to the second pair of wireless headphones.
When the data is protected, the electronic equipment can set the authority information for the audio data only when a certain authority is opened to be shared, and the electronic equipment is permitted to be shared when the requirement of the authority information is met.
After receiving the audio data sent by the electronic device, the first pair of wireless headphones can analyze the authority information in the audio data if the audio data contains the authority information, wherein the authority information contains the identification information of the device which is allowed to be received. The identification information may be a device number of the bluetooth device.
When the permission information contains identification information of the second pair of wireless earphones, the second pair of wireless earphones is permitted to receive, and the first pair of wireless earphones sends the audio data to the second pair of wireless earphones through Bluetooth transmission. Thus, encryption protection of the audio data can be realized.
In this embodiment, by detecting that the first pair of wireless headphones is in the out-of-box state, the first pair of wireless headphones sends a pairing request, establishes connection with the electronic device, establishes connection with the second pair of wireless headphones, and sends the audio data to the second pair of wireless headphones after receiving the audio data sent by the electronic device, the second pair of wireless headphones does not need to establish a connection relationship with the electronic device, so that multiple pairs of headphones can listen to the same audio data of the same electronic device at the same time, no more interfaces need to be added, no hardware of the electronic device needs to be modified, and the method has the advantages of being simple to implement and low in cost
Referring to fig. 3, fig. 3 is a flowchart of a second embodiment of an audio sharing method of a wireless headset according to the present invention, based on the first embodiment, step S10 includes:
step S11, after receiving the connection information sent by the electronic equipment, the first pair of wireless earphones are switched to a main connection mode;
step S12, pairing is carried out according to a secret key in the connection information and a second pair of wireless earphones corresponding to the address information in the connection information, wherein the connection information comprises the secret key and the address information;
the first pair of wireless headphones is in a state of a slave device in connection with the electronic device. When the first pair of wireless earphones is in the slave device state, connection with the second pair of wireless earphones cannot be actively established. After receiving the connection information sent by the electronic device, the first pair of wireless earphones is switched to a main connection mode, and a pairing request can be sent to the second pair of wireless earphones. It will be appreciated that the connection information may trigger the first pair of wireless headphones to switch from the slave device to the master connection mode.
The connection information includes one or more of a key of the second pair of wireless headphones and address information. The address information may be a bluetooth address of the second pair of wireless headphones.
The first pair of wireless earphones acquires a second pair of wireless earphones corresponding to the address information according to the address information in the connection information, and pairs with the second pair of wireless earphones according to the secret key in the connection information so as to establish connection with the second pair of wireless earphones.
Step S13, after the pairing is successful, the first pair of wireless headphones establishes a connection with the second pair of wireless headphones.
After successful pairing with the second pair of wireless headphones, the first pair of wireless headphones establishes a connection with the second pair of wireless headphones.
The pairing of the first pair of wireless earphone and the second pair of wireless earphone can be that Bluetooth after touching is connected, and the Bluetooth is connected through secret keys and address information.
Optionally, the first pair of wireless headphones may store the successfully paired device information, and when the pairing broadcast of the second pair of wireless headphones is detected next time, and the first pair of wireless headphones is in the main connection mode, connection may be automatically established with the second pair of wireless headphones.
In this embodiment, the first pair of wireless headphones establishes pairing with the second pair of wireless headphones corresponding to the address information in the connection information sent by the electronic device according to the secret key in the connection information, after the pairing is successful, the connection with the second pair of wireless headphones is established, the electronic device is required to send information to trigger the first pair of wireless headphones to establish connection with the specific device, and the connection is established with the second pair of wireless headphones according to the address information and the secret key, so that the device connected with the first pair of wireless headphones has directivity, and the connection can be performed according to the requirements of the user.
Referring to fig. 4, fig. 4 is a flowchart of a third embodiment of the audio sharing method of the wireless headset according to the present invention, based on the first embodiment, step S10 further includes:
step S14, after receiving the connection information sent by the electronic equipment, the first pair of wireless earphones is switched to a main connection mode, wherein the connection information comprises identification information;
after receiving the connection information of the electronic device, the first pair of wireless earphones triggers the first pair of wireless earphones to switch from the slave device to the master connection mode so as to establish connection with other devices. The connection information includes identification information, wherein the identification information may be a device number.
Step S15, receiving Bluetooth broadcasting information;
step S16, when the identification information in the Bluetooth broadcast information is matched with the identification information in the connection information, a pairing request is sent to a second wireless earphone which sends the Bluetooth broadcast information;
the first pair of wireless headphones may receive bluetooth broadcast information within a signal range, and may obtain identification information corresponding to the bluetooth broadcast information, where the bluetooth broadcast information may be a pairing request broadcasted by other bluetooth devices, and includes the identification information of the bluetooth device.
When the identification information in the received Bluetooth broadcast information is matched with the identification information in the connection information, the first pair of wireless earphones sends a pairing request to the second pair of wireless earphones broadcasting the Bluetooth broadcast information. The matching is complete matching, namely, the identification information in the connection information is completely consistent with the identification information in the Bluetooth broadcasting information.
Step S17, after the pairing is successful, the first pair of wireless headphones establishes a connection with the second pair of wireless headphones.
After the pairing is successful, the first pair of wireless headphones establishes a connection with the second pair of wireless headphones. After the first pair of wireless headphones conveys the request for pairing to the second pair of wireless headphones, the second pair of wireless headphones may establish a connection with the first pair of wireless headphones without establishing a connection with the other wireless headphones.
In this embodiment, the first pair of wireless headphones sends the pairing request according to the identification information in the connection information sent by the electronic device and the second pair of wireless headphones corresponding to the identification information, and connection with the second pair of wireless headphones is established, so that the device connected with the first pair of wireless headphones has directivity, and the device can be connected according to the requirements of the user.
Referring to fig. 5, fig. 5 is a flowchart of a fourth embodiment of an audio sharing method of a wireless headset according to the present invention, where the audio sharing method of the wireless headset includes:
step S30, after receiving a pairing request of a second pair of wireless earphones, the electronic equipment acquires connection information of the second pair of wireless earphones;
in this embodiment, the execution body is an electronic device, where the electronic device is a device with a bluetooth module, and may be a terminal device such as a smart phone, a smart watch, a PAD, an MP3, a portable notebook, and an MP 4. The electronic device has the function of playing audio at the same time, and can play the audio file through a loudspeaker or a microphone.
After receiving the pairing request of the first pair of wireless earphones, the electronic equipment establishes connection with the first pair of wireless earphones.
The electronic device may receive bluetooth broadcast information within the signal range, and may acquire connection information of the second pair of wireless headphones after receiving a pairing request of the second pair of wireless headphones. Wherein the connection information may include one or more of identification information, a key, and address information.
If the electronic device establishes connection pairing with the second pair of wireless headphones before, the electronic device can store connection information of the second pair of wireless headphones, and obtain identification information of the second pair of wireless headphones according to a pairing request of the second pair of wireless headphones, so that connection information corresponding to the identification information can be obtained.
As an alternative embodiment, step S30 includes:
after receiving the pairing request of the second pair of wireless earphones, the electronic equipment disconnects the connection with the first pair of wireless earphones;
the electronic equipment establishes connection with the second pair of wireless earphones, and acquires connection information of the second pair of wireless earphones;
and after the electronic equipment acquires the connection information of the second pair of wireless earphones, the electronic equipment disconnects the connection with the second pair of wireless earphones and establishes connection with the first pair of wireless earphones.
If the connection relation between the electronic equipment and the second pair of wireless earphones is not established, the electronic equipment disconnects the connection with the first pair of wireless earphones after receiving the pairing request of the second pair of wireless earphones, broadcasts the pairing request to the second pair of wireless earphones, and establishes Bluetooth connection with the second pair of wireless earphones after successful pairing. After the electronic device establishes a connection with the second pair of wireless headphones, connection information of the second pair of wireless headphones may be obtained. After the electronic equipment acquires the connection information of the second pair of wireless earphones, the electronic equipment disconnects the connection with the second pair of wireless earphones, broadcasts a pairing request to the first pair of wireless earphones, and establishes connection with the first pair of wireless earphones.
Therefore, even if the electronic equipment does not store the connection information of the second pair of wireless earphones, the electronic equipment can acquire the connection information of the second pair of wireless earphones, and the electronic equipment can share the audio data to a plurality of pairs of wireless earphones without user operation, so that the electronic equipment has the advantages of simplicity, convenience and high efficiency.
Step S40, the electronic device sends the connection information to the first pair of wireless headphones, so that the first pair of wireless headphones establishes a connection with the second pair of wireless headphones according to the connection information.
The electronic equipment transmits the connection information of the second pair of wireless earphones to the first pair of wireless earphones through Bluetooth transmission so as to trigger the first pair of wireless earphones to be switched into a main connection mode from the slave equipment, and connection is established with the second pair of wireless earphones according to the connection information.
As an alternative embodiment, after step S40, the method further includes:
the electronic device sends audio data to the first pair of wireless headphones.
The electronic device may send the audio data to the first pair of wireless headphones via bluetooth transmission. The first pair of wireless earphones can send the received audio data to the second pair of wireless earphones, so that the audio data can be synchronously shared among a plurality of pairs of Bluetooth earphones.
In this embodiment, when the electronic device receives a pairing request of the second pair of wireless headphones, the electronic device obtains connection information of the second pair of wireless headphones, and sends the connection information to the first pair of wireless headphones connected with the second pair of wireless headphones, so that after the first pair of wireless headphones receives the connection information of the electronic device, connection with the second pair of wireless headphones is established according to the connection information, and when the electronic device transmits audio data, the beneficial effect that the same audio data is shared among the plurality of pairs of wireless headphones is achieved.
In addition, the embodiment of the invention also provides a wireless earphone, which comprises a processor, a memory and an audio sharing program of the wireless earphone, wherein the audio sharing program of the wireless earphone is stored on the memory and can run on the processor, and the content of the audio sharing method embodiment of the wireless earphone is realized when the audio sharing program of the wireless earphone is executed by the processor.
The embodiment of the invention also provides an electronic device, which comprises a processor, a memory and an audio sharing program of the wireless earphone, wherein the audio sharing program of the wireless earphone is stored on the memory and can run on the processor, and the content of the audio sharing method embodiment of the wireless earphone is realized when the audio sharing program of the wireless earphone is executed by the processor.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a computer readable storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (5)

1. An audio sharing method of a wireless earphone is characterized in that the audio sharing method of the wireless earphone comprises the following steps:
after receiving connection information sent by connected electronic equipment, the first pair of wireless headphones is switched to a main connection mode, wherein the connection information comprises identification information;
receiving Bluetooth broadcasting information;
when the identification information in the Bluetooth broadcast information is matched with the identification information in the connection information, a pairing request is sent to a second pair of wireless headphones for sending the Bluetooth broadcast information, and the connection information comprises a secret key and address information;
after successful pairing, the first pair of wireless earphones and the second pair of wireless earphones are connected, the left earphone of the first pair of wireless earphones and the left earphone of the second pair of wireless earphones are connected, and the right earphone of the first pair of wireless earphones and the right earphone of the second pair of wireless earphones are connected;
and after receiving the audio data sent by the electronic equipment, the first pair of wireless earphones sends the audio data to the second pair of wireless earphones.
2. The method of audio sharing for a wireless headset of claim 1, wherein the step of the first pair of wireless headsets transmitting audio data to the second pair of wireless headsets after receiving the audio data transmitted by the electronic device comprises:
the first pair of wireless headphones acquires authority information of the audio data after receiving the audio data sent by the electronic equipment;
and when the permission information contains the identification information of the second pair of wireless headphones, sending the audio data to the second pair of wireless headphones.
3. An audio sharing method of a wireless earphone, wherein a first pair of wireless earphones is connected to an electronic device, and the audio sharing method of the wireless earphone comprises the following steps:
after receiving a pairing request of a second pair of wireless earphones, the electronic equipment acquires connection information of the second pair of wireless earphones, wherein the connection information comprises identification information;
the electronic equipment sends the connection information to a first pair of wireless earphones, so that the first pair of wireless earphones sends a pairing request to the second pair of wireless earphones according to the connection information, and the connection information comprises a secret key and address information;
after successful pairing, the first pair of wireless earphones and the second pair of wireless earphones are connected, the left earphone of the first pair of wireless earphones and the left earphone of the second pair of wireless earphones are connected, and the right earphone of the first pair of wireless earphones and the right earphone of the second pair of wireless earphones are connected;
the electronic device sends audio data to the first pair of wireless headphones, and the first pair of wireless headphones sends the audio data to the second pair of wireless headphones after receiving the audio data sent by the electronic device.
4. A wireless headset comprising a processor, a memory, and an audio sharing program of the wireless headset stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the audio sharing method of the wireless headset according to any one of claims 1 to 2.
5. An electronic device comprising a processor, a memory, and an audio sharing program of a wireless headset stored on the memory and executable on the processor, the audio sharing program of the wireless headset, when executed by the processor, implementing the steps of the audio sharing method of the wireless headset of claim 3.
CN202010248656.0A 2020-03-31 2020-03-31 Audio sharing method of wireless earphone, terminal equipment and storage medium Active CN111447600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010248656.0A CN111447600B (en) 2020-03-31 2020-03-31 Audio sharing method of wireless earphone, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010248656.0A CN111447600B (en) 2020-03-31 2020-03-31 Audio sharing method of wireless earphone, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111447600A CN111447600A (en) 2020-07-24
CN111447600B true CN111447600B (en) 2023-04-25

Family

ID=71652758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010248656.0A Active CN111447600B (en) 2020-03-31 2020-03-31 Audio sharing method of wireless earphone, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111447600B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492529B (en) * 2020-11-27 2022-09-23 努比亚技术有限公司 Audio transmission method, mobile terminal and computer readable storage medium
CN112995829B (en) * 2021-02-25 2023-04-25 恒玄科技(上海)股份有限公司 Audio processing assembly for wireless communication and signal processing method thereof
CN115525366A (en) * 2021-06-25 2022-12-27 华为技术有限公司 Screen projection method and related device
CN114499587B (en) * 2021-07-22 2022-12-23 荣耀终端有限公司 Audio synchronization communication method, system, wireless earphone, terminal and storage medium
CN113709737B (en) * 2021-08-24 2024-01-26 深圳艾创力科技有限公司 Voice communication method and device based on TWS Bluetooth headset
CN115278624A (en) * 2022-07-21 2022-11-01 Oppo广东移动通信有限公司 Information updating method and device, audio sharing method and system and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006051505A1 (en) * 2004-11-12 2006-05-18 Koninklijke Philips Electronics N.V. Apparatus and method for sharing contents via headphone set
CN103825635B (en) * 2014-03-11 2016-04-06 宁波翼动通讯科技有限公司 A kind of method utilizing bluetooth earphone to share audio frequency
KR20160042569A (en) * 2014-10-10 2016-04-20 삼성전자주식회사 Multi-connection method and electronic device supporting the same
CN105208511A (en) * 2015-08-28 2015-12-30 深圳市冠旭电子有限公司 Intelligent Bluetooth earphone-based music sharing method, system and intelligent Bluetooth earphone
CN108810741B (en) * 2018-06-14 2021-01-29 歌尔科技有限公司 Method and device for connecting double wireless earphones and wireless earphones

Also Published As

Publication number Publication date
CN111447600A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
CN111447600B (en) Audio sharing method of wireless earphone, terminal equipment and storage medium
EP3718323B1 (en) Wireless low-latency audio content sharing
CN112868244B (en) Point-to-multipoint data transmission method and device
EP3606015B1 (en) Method for call processing and electronic device
KR20080114753A (en) Method and apparatus for wirelessly streaming multi-channel content
CN113411793A (en) Bluetooth communication method and terminal
CN109348334B (en) Wireless earphone and environment monitoring method and device thereof
CN205622810U (en) Bluetooth talkback earphone and bluetooth intercom system
CN101127987A (en) Audio system employing multiple mobile devices in concert
US20170195817A1 (en) Simultaneous Binaural Presentation of Multiple Audio Streams
CN114339696A (en) Bluetooth communication system, Bluetooth connection method, electronic device, and storage medium
CN105744022A (en) Mobile terminal as well as voice playing method and system
CN111586515A (en) Sound monitoring method, equipment and storage medium based on wireless earphone
CN113727231B (en) Earphone volume adjusting method and equipment
CN115175159B (en) Bluetooth headset playing method and equipment
CN116033304B (en) Audio output method, electronic equipment and readable storage medium
CN113645573B (en) Headset configuration data sharing method, headset and storage medium
CN113115153B (en) Processing method, Bluetooth headset and management platform
CN106302945A (en) Mobile terminal incoming call processing method and device, mobile terminal
CN113709906B (en) Wireless audio system, wireless communication method and equipment
CN114257924A (en) Method for distributing sound channels and related equipment
CN205232413U (en) Headset
CN104066026A (en) Bluetooth headset and combination thereof
CN218772434U (en) Signal repeater applied to hearing aid system and hearing aid system
CN116600275A (en) Voice transmission method, terminal equipment and computer 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
GR01 Patent grant
GR01 Patent grant