CN114615588A - Earphone communication method, equipment and computer readable storage medium - Google Patents

Earphone communication method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114615588A
CN114615588A CN202210313453.4A CN202210313453A CN114615588A CN 114615588 A CN114615588 A CN 114615588A CN 202210313453 A CN202210313453 A CN 202210313453A CN 114615588 A CN114615588 A CN 114615588A
Authority
CN
China
Prior art keywords
earphone
bluetooth
headset
information
communication 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.)
Pending
Application number
CN202210313453.4A
Other languages
Chinese (zh)
Inventor
马冬梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
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 Inc filed Critical Goertek Inc
Priority to CN202210313453.4A priority Critical patent/CN114615588A/en
Publication of CN114615588A publication Critical patent/CN114615588A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1008Earpieces of the supra-aural or circum-aural type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The invention discloses an earphone communication method, equipment and a computer readable storage medium, wherein the method is applied to a first earphone, and physical contact points are respectively arranged in the first earphone and a head-mounted device, and the method comprises the following steps: receiving device information transmitted by the head mounted device when the head mounted device is in communication connection through contact between the physical contact points; and establishing a Bluetooth communication connection with the head-mounted device based on the Bluetooth information of the head-mounted device in the device information, and/or establishing a Bluetooth communication connection with a second earphone based on the Bluetooth information of the second earphone in the device information, wherein the Bluetooth information of the second earphone in the device information is obtained when the head-mounted device is in communication connection with the second earphone. According to the invention, when a user needs to perform Bluetooth communication connection between the earphones and the head-mounted equipment or perform Bluetooth communication connection between the two earphones, the selection of a connection object is not required to be performed by manually operating the earphones or the head-mounted equipment, and the operation mode of the user is simplified.

Description

Earphone communication method, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of headset technologies, and in particular, to a headset communication method, device, and computer readable storage medium.
Background
At present, technologies of head-mounted devices such as VR and AR are developing faster and faster, and developers are dedicated to improving the experience of the head-mounted devices for users in various aspects. The open sound field of the head-mounted device can cause that a user cannot have good immersion, so that the technical trend is to adopt earphones to be matched with the head-mounted device for use. However, with the gradual popularization of the head-mounted device, there are more and more scenes in which multiple people use the head-mounted device at the same time, and in this case, when the bluetooth pairing connection is performed between the wireless headset and the head-mounted device or between a pair of wireless headsets, the user is often required to manually select the device of the user to perform the pairing connection, which greatly affects the user experience.
Disclosure of Invention
The invention mainly aims to provide an earphone communication method, equipment and a computer readable storage medium, and aims to solve the problem that a user needs to manually operate a wireless earphone and a head-mounted device or perform Bluetooth communication connection between a pair of wireless earphones in a scene that a plurality of users use the head-mounted device.
In order to achieve the above object, the present invention provides an earphone communication method, which is applied to a first earphone, wherein physical contact points are respectively arranged in the first earphone and a head-mounted device, and the method comprises the following steps:
receiving device information transmitted by the head mounted device when the head mounted device is in communication connection through the contact between the physical contact points;
and establishing a Bluetooth communication connection with the head-mounted device based on the Bluetooth information of the head-mounted device in the device information, and/or establishing a Bluetooth communication connection with the second earphone based on the Bluetooth information of the second earphone in the device information, wherein the Bluetooth information of the second earphone in the device information is obtained when the head-mounted device is in communication connection with the second earphone.
Optionally, the step of establishing a bluetooth communication connection with the headset based on the bluetooth information of the headset in the device information and establishing a bluetooth communication connection with the second headset based on the bluetooth information of the second headset in the device information includes:
establishing a Bluetooth communication connection with a second earphone based on Bluetooth information of the second earphone in the device information;
and when the first earphone is determined to be the main earphone based on Bluetooth communication connection negotiation with the second earphone, establishing Bluetooth communication connection with the head-mounted equipment based on the Bluetooth information of the head-mounted equipment in the equipment information.
Optionally, the method further comprises:
acquiring Bluetooth information of the first headset when the first headset is in communication connection with the head-mounted device through contact between the physical contact points;
and sending the Bluetooth information of the first earphone to the head-mounted equipment so that the head-mounted equipment establishes Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone, and/or sending the Bluetooth information of the first earphone to the second earphone when the head-mounted equipment is in communication connection with the second earphone, so that the second earphone establishes Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone.
Optionally, the step of establishing a bluetooth communication connection with the second headset based on the bluetooth information of the second headset in the device information includes:
determining whether a second earphone is a paired earphone according to the Bluetooth information of the second earphone in the device information;
if the second earphone is a paired earphone, acquiring paired information corresponding to the second earphone, and establishing Bluetooth communication connection with the second earphone based on the paired information;
and if the second earphone is an unpaired earphone, establishing Bluetooth communication connection after pairing with the second earphone according to the Bluetooth information of the second earphone.
In order to achieve the above object, the present invention further provides an earphone communication method, where the method is applied to a head-mounted device, and the head-mounted device and a first earphone are respectively provided with a physical contact point, and the method includes the following steps:
acquiring device information when the first headset is in communication connection through the contact between the physical contact points;
and sending the device information to the first earphone, so that the first earphone establishes a bluetooth communication connection with the head-mounted device based on the bluetooth information of the head-mounted device in the device information, and/or establishes a bluetooth communication connection with the second earphone based on the bluetooth information of the second earphone in the device information, wherein the bluetooth information of the second earphone in the device information is obtained when the head-mounted device is in communication connection with the second earphone.
Optionally, the method further comprises:
when the first earphone is in communication connection through the contact between the physical contact points, receiving Bluetooth information of the first earphone, which is sent by the first earphone;
and establishing Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone, and/or sending the Bluetooth information of the first earphone to the second earphone when in communication connection with the second earphone, so that the second earphone establishes Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone.
Optionally, when the first headset is communicatively connected through the contact between the physical contact points, the step of acquiring device information includes:
determining whether a Bluetooth communication connection has been established with the second headset while the first headset is in communication connection through the contact between the physical contact points;
and if the Bluetooth communication connection with the second earphone is established, acquiring the Bluetooth information of the second earphone as the equipment information.
Optionally, the second headset is provided with the physical contact points, and after the step of determining whether a bluetooth communication connection has been established with the second headset when the second headset is in communication connection with the first headset through contact between the physical contact points, the method further includes:
if the Bluetooth communication connection is not established with the second earphone, determining whether the Bluetooth communication connection with the second earphone is already established through the contact communication connection between the physical contact points;
if the second earphone is connected with the second earphone through contact communication between the physical contact points, acquiring Bluetooth information of the second earphone and Bluetooth information of the head-mounted equipment as the equipment information;
and if the second earphone is not in contact communication connection with the second earphone through the physical contact point, acquiring Bluetooth information of the head-mounted equipment as the equipment information.
To achieve the above object, the present invention further provides a headset communication device, including: a memory, a processor and a headset communication program stored on the memory and executable on the processor, the headset communication program when executed by the processor implementing the steps of the headset communication method as above.
Furthermore, to achieve the above object, the present invention further provides a computer readable storage medium having a headset communication program stored thereon, where the headset communication program is executed by a processor to implement the steps of the headset communication method as above.
According to the invention, the physical contact points are arranged in the first earphone and the head-mounted equipment, the first earphone receives the equipment information sent by the head-mounted equipment, the Bluetooth communication connection is established with the head-mounted equipment based on the Bluetooth information of the head-mounted equipment in the equipment information, and/or the Bluetooth communication connection is established with the second earphone based on the Bluetooth information of the second earphone in the equipment information, so that when a user needs to perform the Bluetooth communication connection between the earphone and the head-mounted equipment or perform the Bluetooth communication connection between the two earphones, the earphone or the head-mounted equipment does not need to be manually operated to select a connection object, the operation mode of the user is simplified, the situation that the user is difficult to select when a plurality of devices with the same name exist is avoided, and the accuracy of establishing the Bluetooth communication connection between the earphone and the head-mounted equipment or between the two earphones is improved.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a headset communication method according to the present invention;
fig. 2 is a schematic diagram of an earphone card slot in a head-mounted device according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a third embodiment of a headset communication method according to the present invention;
fig. 4 is a schematic diagram illustrating an interaction flow between a headset and an earphone according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a headset communication method according to a first embodiment of the present invention.
Embodiments of the present invention provide embodiments of a headset communication method, and it should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein. In this embodiment, the headset communication method is applied to the first headset, and the first headset may be a single headset used independently or one of a pair of headsets. In this embodiment, the headset communication method includes:
a step S10 of receiving device information transmitted by the head mounted device when the head mounted device is communicatively connected by the contact between the physical contact points;
the first earphone and the head-mounted device are respectively provided with physical contact points, and the number of the physical contact points is not limited in this embodiment, for example, two physical contact points may be respectively provided in the first earphone and the head-mounted device. When the physical contact point of the first earphone is in contact with the physical contact point of the head-mounted device, the first earphone and the head-mounted device are in communication connection, and data interaction can be carried out.
In a specific embodiment, before using the first earphone and the head-mounted device, the user may contact the physical contact point of the first earphone with the physical contact point of the head-mounted device, so that the first earphone and the head-mounted device may perform communication connection through contact between the physical contact points, and then complete subsequent bluetooth communication connection based on the communication connection.
Further, in an embodiment, as shown in fig. 2, a card slot for placing the first earphone may be provided in the headset, so that when the user places the first earphone in the card slot, the physical contact point of the first earphone is in contact with the physical contact point of the headset, and when the first earphone is taken out of the card slot, the physical contact point of the first earphone is disconnected from the physical contact point of the headset, thereby facilitating the operation of the user.
When the first earphone is communicatively connected with the head mounted device through the contact between the physical contact points, the first earphone may receive device information transmitted by the head mounted device. The device information may include bluetooth information of the headset device, or may include bluetooth information of the second headset, or may include bluetooth information of the headset device and bluetooth information of the second headset. The bluetooth information may include a bluetooth address, an authentication password, and other information for establishing a bluetooth communication connection, which is not limited in this embodiment. The second earpiece may be one of a pair of earpieces that is on a different side than the first earpiece, e.g., the first earpiece is a left ear earpiece, then the second earpiece may be a right ear earpiece; it should be noted that the first earphone and the second earphone may be a pair of standard earphones (i.e., a pair is configured when shipped from the factory), or may not be, that is, in this embodiment, the user is allowed to use the two pairs of standard earphones in a mixed manner when using the headset.
If the device information includes bluetooth information of the second headset, the bluetooth information of the second headset may be obtained from the second headset when the headset is communicatively connected to the second headset. Wherein the communication connection of the head mounted device with the second earpiece may refer to a bluetooth communication connection or a communication connection established by contact between physical contact points. When the headset transmits the bluetooth information of the second headset to the first headset, the headset may still be in a communication connection state with the second headset or may have been disconnected from the communication connection state. The condition of the disconnected communication connection state may be that the second earphone and the head-mounted device establish communication connection through contact of the physical contact point, the second earphone sends bluetooth information to the head-mounted device for storage, after the second earphone and the head-mounted device are disconnected from communication connection, the first earphone and the head-mounted device establish communication connection through contact of the physical contact point, and the head-mounted device sends bluetooth information of the second earphone to the first earphone, so that the first earphone and the second earphone can establish bluetooth communication connection. This may occur because the user brings one headset into contact with the headset, the headset acquires bluetooth information from the headset, the headset is disconnected without establishing a bluetooth communication connection with the headset, and then another headset is brought into contact with the headset.
In a specific implementation manner, what bluetooth information of the device is specifically included in the device information sent by the head-mounted device to the first earphone may be set as needed, or what bluetooth information of the device is specifically included in the device information sent by the head-mounted device to the first earphone may be determined according to a current scene, which is not limited in this embodiment.
For example, in an embodiment, the headset device may send the bluetooth information of the headset device to the first headset when there is no communication connection with the second headset or when the bluetooth information of the second headset is not acquired, so that the first headset device can establish a bluetooth communication connection with the headset device itself, and complete the audio playing operation of the first headset through audio data interaction between the first headset device and the headset device. For another example, in another embodiment, the headset may acquire the bluetooth information of the second headset and send the bluetooth information to the first headset when establishing the bluetooth communication connection with the second headset, so that the first headset can establish the bluetooth communication connection with the second headset, and thereby complete the audio playing operation of the headsets in a coordinated manner through the communication connection between two ears. For another example, in another embodiment, when the headset device establishes a communication connection with the second earphone through contact between the physical contact points, the bluetooth information of the headset device itself and the bluetooth information of the second earphone may be acquired and sent to the first earphone, so that the first earphone and the headset device and the second earphone respectively establish a bluetooth communication connection, and the audio playing work of the earphones is completed through audio data interaction between the first earphone and the headset device and through audio data interaction between two ears. In addition, in other embodiments, it may also be determined according to other situations that the device information sent to the first headset specifically includes which bluetooth information of the device, which is not described herein again.
Step S20, establishing a bluetooth communication connection with the headset device based on the bluetooth information of the headset device in the device information, and/or establishing a bluetooth communication connection with the second headset based on the bluetooth information of the second headset in the device information, where the bluetooth information of the second headset in the device information is obtained when the headset device is in communication connection with the second headset.
After receiving the device information, the first headset may establish a bluetooth communication connection with the corresponding device according to the bluetooth information included in the device information. For example, in a specific embodiment, when the bluetooth information of the headset device is included in the device information, the first headset may establish a bluetooth communication connection with the headset device based on the bluetooth information of the headset device; when the device information comprises the Bluetooth information of the second earphone, the first earphone can establish Bluetooth communication connection with the second earphone based on the Bluetooth information of the second earphone; when the device information includes bluetooth information of the headset device and bluetooth information of the second headset, the first headset may establish a bluetooth communication connection with the headset device based on the bluetooth information of the headset device and establish a bluetooth communication connection with the second headset based on the bluetooth information of the second headset, or determine to establish a bluetooth communication connection with one or both of the headset device and the second headset according to a current scene.
The specific process of the first headset establishing the bluetooth communication connection with the device based on the bluetooth information of the device may refer to a bluetooth communication connection process specified in a bluetooth protocol, which is not described herein again. It can be understood that, in the case that the first earphone already knows the bluetooth information of the other device, the bluetooth communication connection can be accurately established with the other device without the user manually operating and controlling the first earphone in the first earphone to establish the bluetooth communication connection with the specific device.
Specifically, the head-mounted device sends own Bluetooth information to the first earphone through the communication connection mode of physical contact point contact, so that the first earphone establishes Bluetooth communication connection with the head-mounted device based on the Bluetooth information of the head-mounted device, a user can complete Bluetooth communication connection between the first earphone and the head-mounted device only by contacting the first earphone and the physical contact point of the head-mounted device, the first earphone or the head-mounted device does not need to be manually operated to select a connection object, the operation mode of the user is simplified, the situation that the user is difficult to select when a plurality of devices with the same name occur is avoided, and the accuracy of establishing Bluetooth communication connection between the earphone and the head-mounted device is improved.
The Bluetooth communication connection between the first earphone and the second earphone can be completed by a user only needing to contact the first earphone with the physical contact point of the head-mounted device, the user does not need to manually operate the first earphone or the second earphone to select a connection object, the operation mode of the user is simplified, the situation that the user is difficult to select when a plurality of devices with the same name are avoided, and the accuracy of establishing the Bluetooth communication connection between the two earphones is improved.
The head-mounted device sends the Bluetooth information of the first earphone and the Bluetooth information of the second earphone to the first earphone through a communication connection mode of physical contact point contact, so that the first earphone establishes Bluetooth communication connection with the head-mounted device based on the Bluetooth information of the head-mounted device, and establishes Bluetooth communication connection with the second earphone based on the Bluetooth information of the second earphone, under the condition that the head-mounted device acquires the Bluetooth information of the second earphone, a user can complete the Bluetooth communication connection between the first earphone and the head-mounted device and the second earphone without manually operating the first earphone, the second earphone or the head-mounted device to select a connection object, the operation mode of the user is simplified, and the condition that the user is difficult to select when a plurality of devices with the same name exist is avoided, the accuracy of establishing Bluetooth communication connection between the earphone and the head-mounted device and between the two earphones is improved.
In this embodiment, by setting the physical contact points in the first earphone and the head-mounted device, the first earphone receives the device information sent by the head-mounted device, and establishes the bluetooth communication connection with the head-mounted device based on the bluetooth information of the head-mounted device in the device information, and/or establishes the bluetooth communication connection with the second earphone based on the bluetooth information of the second earphone in the device information, so that when a user needs to perform the bluetooth communication connection between the earphone and the head-mounted device or perform the bluetooth communication connection between the two earphones, the user does not need to manually operate the earphone or the head-mounted device to select a connection object, the operation mode of the user is simplified, the situation that the user is difficult to select when there are multiple devices with the same name is avoided, and the accuracy of establishing the bluetooth communication connection between the earphone and the head-mounted device or between the two earphones is improved.
Further, in an embodiment, the step of establishing a bluetooth communication connection with the second headset based on the bluetooth information of the second headset in the device information in step S20 includes:
step S201, determining whether a second earphone is a paired earphone or not according to the Bluetooth information of the second earphone in the device information;
when the first headset establishes the bluetooth communication connection with the second headset based on the bluetooth information of the second headset in the device information, the first headset may determine whether the second headset is a paired headset according to the bluetooth information of the second headset, that is, whether the second headset is a headset that has been successfully paired with the first headset. Specifically, the first headset may compare the bluetooth information of the second headset with the bluetooth information of paired headsets stored in the first headset, determine that the second headset is a paired headset if the bluetooth information of the second headset is consistent with the bluetooth information of one paired headset, and determine that the second headset is an unpaired headset if the bluetooth information of any paired headset is not consistent with the bluetooth information of any paired headset. Wherein, first earphone can be preserved the bluetooth information of the earphone that has paird successfully to can directly connect when carrying out bluetooth communication connection with this earphone next time, improve connection speed.
Step S202, if the second earphone is a paired earphone, acquiring paired information corresponding to the second earphone, and establishing Bluetooth communication connection with the second earphone based on the paired information;
if the second earphone is determined to be the paired earphone, it is determined that the second earphone has been paired with the first earphone successfully before, and at this time, the first earphone may acquire paired information corresponding to the second earphone and establish a bluetooth communication connection with the second earphone based on the paired information. The paired information may be information used for establishing a bluetooth communication connection after pairing is successful, and specifically includes which information may be determined according to an adopted bluetooth protocol. It will be appreciated that if the second earphone is a paired earphone, the second earphone and the first earphone may be a pair of standard earphones, or may have been previously used as a pair of earphones.
Step S203, if the second earphone is an unpaired earphone, establishing Bluetooth communication connection after pairing with the second earphone according to the Bluetooth information of the second earphone.
If the second earphone is determined to be an unpaired earphone, it is indicated that the second earphone is not paired with the first earphone before, and at this time, the first earphone needs to be paired with the second earphone according to the bluetooth information of the second earphone before bluetooth communication connection is performed.
Further, in an embodiment, when the first headset establishes the bluetooth communication connection with the headset based on the bluetooth information of the headset in the device information, it may also be determined whether the headset is a paired device according to the bluetooth information of the headset, if so, the bluetooth communication connection is directly established based on the pairing information, and if not, the first headset may be paired and then connected. The specific implementation process may refer to a process of establishing a bluetooth communication connection between the first earphone and the second earphone, which is not described herein again.
Further, in an embodiment, when the headset device establishes the bluetooth communication connection with the headset based on the bluetooth information of the headset, it may also be determined whether the headset is a paired device according to the bluetooth information of the headset, if so, the bluetooth communication connection is directly established based on the pairing information, and if not, the pairing may be performed first and then the connection is performed.
Further, based on the first embodiment, a second embodiment of the communication method between the earphone and the earphone box of the present invention is provided. In this embodiment, the step S20 of establishing a bluetooth communication connection with the headset based on the bluetooth information of the headset in the device information, and establishing a bluetooth communication connection with the second headset based on the bluetooth information of the second headset in the device information includes:
step S204, establishing Bluetooth communication connection with a second earphone based on the Bluetooth information of the second earphone in the equipment information;
when the device information includes bluetooth information of the head-mounted device and bluetooth information of the second headset, the first headset may establish bluetooth communication with the second headset based on the bluetooth information of the second headset, and then determine whether to establish bluetooth communication with the head-mounted device according to a condition whether the first headset is used as a main headset. Specifically, after the first headset establishes a bluetooth communication connection with the second headset, a negotiation may be performed to determine who is the master headset. Wherein, the main earphone is responsible for audio data interaction with the head-mounted equipment. The negotiation between the two headsets to determine who is the primary headset may be specifically negotiated according to a predefined protocol, and the protocol rules are not limited herein.
Step S205, when determining that the first earphone is the master earphone based on the bluetooth communication connection negotiation with the second earphone, establishing a bluetooth communication connection with the head-mounted device based on the bluetooth information of the head-mounted device in the device information.
When determining that the first earphone is used as the main earphone based on the bluetooth communication connection negotiation with the second earphone, the first earphone may establish the bluetooth communication connection with the head-mounted device based on the bluetooth information of the head-mounted device in the device information, so as to perform audio data interaction with the head-mounted device subsequently, thereby implementing the earphone audio playing function.
Further, in an embodiment, the first headset may not need to establish a bluetooth communication connection with the headset when it is determined, based on a bluetooth communication negotiation, with the second headset that the second headset is the master headset. If the second earphone does not establish communication connection with the head-mounted device at this time, and does not acquire the bluetooth information of the head-mounted device, the first earphone may further send the bluetooth information of the head-mounted device to the second earphone, so that the second earphone serving as the main earphone establishes bluetooth communication connection with the head-mounted device.
In another embodiment, if the first headset is fixed as a master headset, the first headset may also complete the bluetooth communication connection with the second headset and the headset without any sequence when receiving the bluetooth information of the headset and the bluetooth information of the second headset.
Further, in an embodiment, the method further comprises:
step S30, when the first headset is communicatively connected to the headset through the contact between the physical contact points, acquiring bluetooth information of the first headset;
step S40, sending the bluetooth information of the first earphone to the headset, so that the headset establishes a bluetooth communication connection with the first earphone based on the bluetooth information of the first earphone, and/or sending the bluetooth information of the first earphone to the second earphone when the headset is in a communication connection with the second earphone, so that the second earphone establishes a bluetooth communication connection with the first earphone based on the bluetooth information of the first earphone.
When the first earphone is in communication connection with the head-mounted device through the contact between the physical contact points, the first earphone can also acquire own Bluetooth information and send the Bluetooth information to the head-mounted device. The headset device may establish a bluetooth communication connection with the first headset based on the bluetooth information of the first headset; or when the head-mounted device is in communication connection with the second earphone, the head-mounted device may send the bluetooth information of the first earphone to the second earphone, so that the second earphone establishes bluetooth communication connection with the first earphone based on the bluetooth information of the first earphone; or when the head-mounted device is in communication connection with the second earphone, the head-mounted device can establish bluetooth communication connection with the first earphone and send bluetooth information of the first earphone to the second earphone, so that the second earphone establishes bluetooth communication connection with the first earphone based on the bluetooth information of the first earphone.
The head-mounted device can select one of the three operations according to the current scene. For example, when the headset is not communicatively connected to the second headset, the first operation may be selected; the second operation may be selected when the headset is in bluetooth communication connection with a second headset; when the headset is in contact communication connection with the second earpiece through the physical contact, the third operation may be selected if the first earpiece is the primary earpiece and the second operation may be selected if the second earpiece is the primary earpiece.
In the embodiment, when the first earphone and the head-mounted device are in communication connection through contact between the physical contact points, the Bluetooth information of the first earphone is acquired and sent to the head-mounted device, so that the head-wearing device can establish Bluetooth communication connection with the first earphone and/or the Bluetooth information of the first earphone is forwarded to the second earphone to enable the second earphone to establish Bluetooth communication connection with the first earphone, thereby realizing that when a user needs to perform Bluetooth communication connection between the earphone and the head-wearing device, or when the two earphones are in Bluetooth communication connection, the earphones or the head-mounted equipment do not need to be manually operated to select a connection object, so that the operation mode of a user is simplified, the situation that the user is difficult to select when a plurality of devices with the same name exist is avoided, and the accuracy of establishing Bluetooth communication connection between the earphones and the head-mounted equipment or between the two earphones is improved.
Further, based on the first and/or second embodiment described above, a third embodiment of the headset communication method of the present invention is proposed. Referring to fig. 3, fig. 3 is a flowchart illustrating a headset communication method according to a third embodiment of the present invention. In this embodiment, the method is applied to a head mounted device, the head mounted device and the first earphone being provided with physical contact points, respectively. The method comprises the following steps:
a step a10 of acquiring device information when communicatively connected to the first earphone through contact between the physical contact points;
step a20, sending the device information to the first earphone, so that the first earphone establishes a bluetooth communication connection with the headset based on the bluetooth information of the headset in the device information, and/or establishes a bluetooth communication connection with the second earphone based on the bluetooth information of the second earphone in the device information, where the bluetooth information of the second earphone in the device information is obtained when the headset is in communication connection with the second earphone.
The specific implementation of steps a10-a20 in this embodiment can refer to the specific implementation of steps S10-S20 in the first embodiment, which is not repeated herein.
Further, based on the third embodiment, a fourth embodiment of the communication method between the earphone and the earphone box of the present invention is provided. In this embodiment, the method further includes:
step A30, when the first earphone is connected with the communication through the contact between the physical contact points, the Bluetooth information of the first earphone sent by the first earphone is received;
step A40, establishing a Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone, and/or sending the Bluetooth information of the first earphone to the second earphone when in communication connection with the second earphone, so that the second earphone establishes a Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone.
The specific implementation of the steps a30-a40 in this embodiment can refer to the specific implementation of the steps S30-S40 in the first embodiment, which is not repeated herein
Further, in one embodiment, the step a10 includes:
a step a101 of determining whether a bluetooth communication connection has been established with the second headset when the first headset is in communication connection through contact between the physical contact points;
when the headset is communicatively connected with the first headset through contact between the physical contact points, it may be determined whether a bluetooth communication connection has been established with the second headset. It will be appreciated that if the first earpiece is a left earpiece, the headset may determine whether a bluetooth communication connection is established with a right earpiece, and if so, may determine that a bluetooth communication connection has been established with a second earpiece; conversely, if the first headset is a right headset, the headset may determine whether a bluetooth communication connection is established with a left headset, and if so, may determine that a bluetooth communication connection has been established with a second headset.
Step A102, if a Bluetooth communication connection is established with the second earphone, acquiring Bluetooth information of the second earphone as the device information.
When the bluetooth communication connection is established between the headset and the second earphone, the user contacts the first earphone with the headset again, which indicates that the user wants to use the first earphone and the second earphone as a pair of earphones. At this time, if the second earphone is used as the main earphone, the headset device may acquire the bluetooth information of the second earphone as the device information, that is, send the bluetooth information of the second earphone to the first earphone, so that the first earphone establishes a bluetooth communication connection with the second earphone based on the bluetooth information of the second earphone. Alternatively, in another embodiment, the headset device may acquire the bluetooth information of the first headset and send the bluetooth information to the second headset, so that the second headset establishes a bluetooth communication connection with the first headset based on the bluetooth information of the first headset. Or, the head-mounted device can acquire the bluetooth information of the first earphone and send the bluetooth information to the second earphone, and also acquire the bluetooth information of the second earphone and send the bluetooth information to the first earphone, so that the two earphones can establish bluetooth communication connection as soon as possible.
Further, in another embodiment, if the first earphone is used as the master earphone, the headset may acquire the bluetooth information of the second earphone and the bluetooth information of the headset itself as the device information, that is, the bluetooth information of the second earphone and the bluetooth information of the headset are sent to the first earphone, so that the first earphone establishes a bluetooth communication connection with the second earphone based on the bluetooth information of the second earphone, and then the first earphone establishes a bluetooth communication connection with the headset based on the bluetooth information of the headset. Or, in an embodiment, the headset may send the bluetooth information of the first headset to the second headset, so that the second headset establishes a bluetooth communication connection with the first headset based on the bluetooth information of the first headset, and the headset establishes a bluetooth communication connection with the first headset based on the bluetooth information of the first headset.
Further, in an embodiment, the second earphone is provided with the physical contact point, and after the step a101, the method further includes:
step A103, if the Bluetooth communication connection with the second earphone is not established, determining whether the Bluetooth communication connection with the second earphone is already established through the contact communication connection between the physical contact points;
physical contact points may also be provided in the second headset, and if the headset detects that no bluetooth communication connection is established with the second headset, it may be determined whether a contact communication connection with the second headset via the physical contact points has been established. It will be appreciated that if the first earpiece is a left earpiece, the headset may determine whether a contact communication connection with a right earpiece has been established via the physical contact points, and if so, may determine that a bluetooth communication connection has been established with the second earpiece; conversely, if the first earpiece is a right earpiece, the headset may determine whether a contact communication connection with a left earpiece has been established through a physical contact, and if so, may determine that a bluetooth communication connection has been established with a second earpiece.
Step A104, if the second earphone is connected with the second earphone through the contact communication between the physical contact points, obtaining the Bluetooth information of the second earphone and the Bluetooth information of the head-mounted equipment as the equipment information;
when the headset and the second earphone are connected through contact communication between the physical contact points, the user contacts the first earphone with the headset again, which indicates that the user wants to use the first earphone and the second earphone as a pair of earphones. At this time, the headset device may acquire the bluetooth information of the second earphone and the bluetooth information of the headset device as device information, that is, transmit the bluetooth information of the second earphone and the bluetooth information of the headset device to the first earphone, so that the first earphone establishes bluetooth communication with the second earphone based on the bluetooth information of the second earphone, and establishes bluetooth communication with the headset device based on the bluetooth information of the headset device under the condition that the first earphone is the master earphone.
Step a105, if the second earphone is not in contact communication connection with the second earphone through the physical contact point, acquiring bluetooth information of the head-mounted apparatus as the apparatus information.
When the headset device is in contact communication connection with the first earphone through the physical contact points and is not in communication connection with the second earphone, it is described that the user wants to use the first earphone alone, and at this time, the headset device can acquire own bluetooth information of the headset device as device information, that is, send the own bluetooth information to the first earphone, so that the first earphone and the second earphone establish bluetooth communication connection. Alternatively, in one embodiment, the headset device may acquire bluetooth information of the first headset and establish a bluetooth communication connection with the first headset based on the bluetooth information of the first headset.
In another embodiment, when the head-mounted device is connected with the first earphone through contact communication between the physical contact points and is not connected with the second earphone in communication, whether the state of contact communication connection with the first earphone only lasts for a certain period of time or not can be further detected; if the certain time is up, the user wants to use the first earphone independently, and at the moment, the head-mounted equipment sends own Bluetooth information as equipment information to the first earphone; if the communication connection with the second earphone is detected after a certain period of time, it indicates that the user does not want to use the first earphone alone, but only the operations of the first earphone and the second earphone are sequenced, and at this time, the headset device can acquire the bluetooth information of the second earphone and the bluetooth information of the headset device as device information and send the device information to the first earphone.
Further, in an embodiment, two earphones (the first earphone and the second earphone) and a headset (in the figure, a VR device) may perform bluetooth pairing connection according to the procedure shown in fig. 4.
In addition, an embodiment of the present invention further provides an earphone communication device, where the earphone communication device may be an earphone (hereinafter referred to as a first earphone), and in this embodiment, the first earphone may include a structural housing, a main control module, a memory, and the like. Physical contact points are provided in the first earpiece and the head-mounted device, respectively. The main control module can comprise a microprocessor, an audio decoding unit, a power supply and power supply management unit, a sensor and other active or passive devices required by the system and the like (which can be replaced, deleted or added according to actual functions), so that the wireless audio receiving and playing functions are realized. The memory of the earphone box can store an earphone communication program, and the microprocessor can be used for calling the earphone communication program stored in the memory and executing the following operations:
receiving device information transmitted by the head mounted device when the head mounted device is in communication connection through the contact between the physical contact points;
and establishing a Bluetooth communication connection with the head-mounted device based on the Bluetooth information of the head-mounted device in the device information, and/or establishing a Bluetooth communication connection with the second earphone based on the Bluetooth information of the second earphone in the device information, wherein the Bluetooth information of the second earphone in the device information is obtained when the head-mounted device is in communication connection with the second earphone.
Further, the operations of establishing a bluetooth communication connection with the headset based on the bluetooth information of the headset in the device information and establishing a bluetooth communication connection with the second headset based on the bluetooth information of the second headset in the device information include:
establishing a Bluetooth communication connection with a second earphone based on Bluetooth information of the second earphone in the device information;
and when the first earphone is determined to be the main earphone based on Bluetooth communication connection negotiation with the second earphone, establishing Bluetooth communication connection with the head-mounted equipment based on the Bluetooth information of the head-mounted equipment in the equipment information.
Further, the microprocessor may be further configured to invoke a headset communication program stored in the memory to perform the following operations:
acquiring Bluetooth information of the first headset when the first headset is in communication connection with the head-mounted device through contact between the physical contact points;
and sending the Bluetooth information of the first earphone to the head-mounted equipment so that the head-mounted equipment establishes Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone, and/or sending the Bluetooth information of the first earphone to the second earphone when the head-mounted equipment is in communication connection with the second earphone, so that the second earphone establishes Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone.
Further, the operation of establishing a bluetooth communication connection with a second headset based on the bluetooth information of the second headset in the device information includes:
determining whether a second earphone is a paired earphone according to the Bluetooth information of the second earphone in the device information;
if the second earphone is a paired earphone, acquiring paired information corresponding to the second earphone, and establishing Bluetooth communication connection with the second earphone based on the paired information;
and if the second earphone is an unpaired earphone, establishing Bluetooth communication connection after pairing with the second earphone according to the Bluetooth information of the second earphone.
In addition, an embodiment of the present invention further provides an earphone communication device, where in this embodiment, the earphone communication device may be a head-mounted device, and the head-mounted device may include a structural shell, a main control module, a speaker, a microphone, a memory, and the like. The head-mounted device and the first earpiece are each provided with a physical contact point. The main control module can comprise a microprocessor, an audio decoding unit, a power supply and power supply management unit, a sensor and other active or passive devices required by the system and the like (which can be replaced, deleted or added according to actual functions), so that the wireless audio receiving and playing functions are realized. The memory of the first headset may have a headset communication program stored therein, and the microprocessor may be configured to invoke the headset communication program stored in the memory and perform the following operations:
acquiring device information when the first headset is in communication connection through the contact between the physical contact points;
and sending the device information to the first earphone, so that the first earphone establishes a bluetooth communication connection with the head-mounted device based on the bluetooth information of the head-mounted device in the device information, and/or establishes a bluetooth communication connection with the second earphone based on the bluetooth information of the second earphone in the device information, wherein the bluetooth information of the second earphone in the device information is obtained when the head-mounted device is in communication connection with the second earphone.
Further, the microprocessor may be further configured to invoke a headset communication program stored in the memory to perform the following operations:
when the first earphone is in communication connection through the contact between the physical contact points, receiving Bluetooth information of the first earphone, which is sent by the first earphone;
and establishing Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone, and/or sending the Bluetooth information of the first earphone to the second earphone when in communication connection with the second earphone, so that the second earphone establishes Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone.
Further, the operation of acquiring device information while being communicatively connected to the first headset through the contact between the physical contact points includes:
determining whether a Bluetooth communication connection has been established with the second headset while the first headset is in communication connection through the contact between the physical contact points;
and if the Bluetooth communication connection with the second earphone is established, acquiring the Bluetooth information of the second earphone as the equipment information.
Further, the second headset is provided with the physical contact points, and after an operation of determining whether a bluetooth communication connection has been established with the second headset while the second headset is in communication connection with the first headset through contact between the physical contact points, the microprocessor may be further configured to call a headset communication program stored in the memory, and perform the following operations:
if the Bluetooth communication connection is not established with the second earphone, determining whether the Bluetooth communication connection with the second earphone is already established through the contact communication connection between the physical contact points;
if the second earphone is connected with the second earphone through contact communication between the physical contact points, acquiring Bluetooth information of the second earphone and Bluetooth information of the head-mounted equipment as the equipment information;
and if the second earphone is not in contact communication connection with the second earphone through the physical contact point, acquiring Bluetooth information of the head-mounted equipment as the equipment information.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a headset communication program, and the headset communication program, when executed by a processor, implements the steps of the headset communication method described above.
The embodiments of the headset communication device and the computer-readable storage medium of the present invention can refer to the embodiments of the headset communication method of the present invention, and are not described herein again.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An earphone communication method, wherein the method is applied to a first earphone, and a physical contact point is respectively arranged in the first earphone and a head-mounted device, and the method comprises the following steps:
receiving device information transmitted by the head mounted device when the head mounted device is in communication connection through the contact between the physical contact points;
and establishing a Bluetooth communication connection with the head-mounted device based on the Bluetooth information of the head-mounted device in the device information, and/or establishing a Bluetooth communication connection with the second earphone based on the Bluetooth information of the second earphone in the device information, wherein the Bluetooth information of the second earphone in the device information is obtained when the head-mounted device is in communication connection with the second earphone.
2. The headset communication method of claim 1, wherein the step of establishing a bluetooth communication connection with the headset based on the bluetooth information of the headset in the device information and establishing a bluetooth communication connection with the second headset based on the bluetooth information of the second headset in the device information comprises:
establishing a Bluetooth communication connection with a second earphone based on Bluetooth information of the second earphone in the device information;
and when the first earphone is determined to be the main earphone based on Bluetooth communication connection negotiation with the second earphone, establishing Bluetooth communication connection with the head-mounted equipment based on the Bluetooth information of the head-mounted equipment in the equipment information.
3. The headset communication method of claim 1, the method further comprising:
acquiring Bluetooth information of the first headset when the first headset is in communication connection with the head-mounted device through contact between the physical contact points;
and sending the Bluetooth information of the first earphone to the head-mounted equipment so that the head-mounted equipment establishes Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone, and/or sending the Bluetooth information of the first earphone to the second earphone when the head-mounted equipment is in communication connection with the second earphone, so that the second earphone establishes Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone.
4. The headset communication method according to any one of claims 1 to 3, wherein the step of establishing a Bluetooth communication connection with a second headset based on Bluetooth information of the second headset in the device information includes:
determining whether a second earphone is a paired earphone according to the Bluetooth information of the second earphone in the device information;
if the second earphone is a paired earphone, acquiring paired information corresponding to the second earphone, and establishing Bluetooth communication connection with the second earphone based on the paired information;
and if the second earphone is an unpaired earphone, establishing Bluetooth communication connection after pairing with the second earphone according to the Bluetooth information of the second earphone.
5. A headset communication method, wherein the method is applied to a head-mounted device, and the head-mounted device and a first headset are respectively provided with physical contact points, the method comprising the steps of:
acquiring device information when the first headset is in communication connection through the contact between the physical contact points;
and sending the device information to the first earphone, so that the first earphone establishes a bluetooth communication connection with the head-mounted device based on the bluetooth information of the head-mounted device in the device information, and/or establishes a bluetooth communication connection with the second earphone based on the bluetooth information of the second earphone in the device information, wherein the bluetooth information of the second earphone in the device information is obtained when the head-mounted device is in communication connection with the second earphone.
6. The headset communication method of claim 5, the method further comprising:
when the first earphone is in communication connection through the contact between the physical contact points, receiving Bluetooth information of the first earphone, which is sent by the first earphone;
and establishing Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone, and/or sending the Bluetooth information of the first earphone to the second earphone when in communication connection with the second earphone, so that the second earphone establishes Bluetooth communication connection with the first earphone based on the Bluetooth information of the first earphone.
7. The headset communication method according to claim 5, wherein the step of acquiring device information when communicatively connected to the first headset through contact between the physical contact points comprises:
determining whether a Bluetooth communication connection has been established with the second headset while the first headset is in communication connection through the contact between the physical contact points;
and if the Bluetooth communication connection with the second earphone is established, acquiring the Bluetooth information of the second earphone as the equipment information.
8. The headset communication method according to claim 7, wherein the second headset is provided with the physical contact points, and wherein the step of determining whether the bluetooth communication connection has been established with the second headset when the communication connection with the first headset is made through contact between the physical contact points further comprises:
if the Bluetooth communication connection is not established with the second earphone, determining whether the Bluetooth communication connection with the second earphone is already established through the contact communication connection between the physical contact points;
if the second earphone is connected with the second earphone through contact communication between the physical contact points, acquiring Bluetooth information of the second earphone and Bluetooth information of the head-mounted equipment as the equipment information;
and if the second earphone is not in contact communication connection with the second earphone through the physical contact point, acquiring Bluetooth information of the head-mounted equipment as the equipment information.
9. A headset communication device, characterized in that the headset communication device comprises: memory, a processor and a headset communication program stored on the memory and executable on the processor, the headset communication program, when executed by the processor, implementing the steps of the headset communication method according to any of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a headset communication program, which when executed by a processor implements the steps of the headset communication method according to any one of claims 1 to 8.
CN202210313453.4A 2022-03-28 2022-03-28 Earphone communication method, equipment and computer readable storage medium Pending CN114615588A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210313453.4A CN114615588A (en) 2022-03-28 2022-03-28 Earphone communication method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210313453.4A CN114615588A (en) 2022-03-28 2022-03-28 Earphone communication method, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114615588A true CN114615588A (en) 2022-06-10

Family

ID=81866043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210313453.4A Pending CN114615588A (en) 2022-03-28 2022-03-28 Earphone communication method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114615588A (en)

Similar Documents

Publication Publication Date Title
US11129218B2 (en) Bluetooth communication method and terminal
CN111629369B (en) Bluetooth headset, pairing connection method and device thereof, and TWS headset
US7689168B2 (en) Remote user interface for Bluetooth™ device
CN109548184B (en) Method and device for connecting mobile terminal and Bluetooth device and mobile terminal
CN111432386B (en) Connection switching method, device, equipment and storage medium of Bluetooth headset
CN111447602B (en) Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
CN112203179B (en) TWS earphone, automatic reconnection method and device thereof, and computer storage medium
CN111447600A (en) Audio sharing method for wireless earphone, terminal device and storage medium
WO2019019050A1 (en) Wireless communication pairing method, wireless receiving device, and wireless transmitting device and system
CN108064445A (en) Virtual reality device and its call management method
CN111601323B (en) Application method of network slice and electronic equipment
CN114786139A (en) Connection establishing method, device, equipment, storage medium and program product
CN110602683B (en) Bluetooth control method, device, mobile terminal and storage medium
CN109936840B (en) Communication method and device and electronic equipment
CN110139180B (en) Operation control method, device and computer readable storage medium
CN115119190A (en) Bluetooth connection method and device, computer equipment and readable storage medium
CN110856086A (en) Method and device for controlling sound system and readable storage medium
CN114500730A (en) Popup window function control method, device and computer readable storage medium
CN116074679B (en) Method, device, equipment and storage medium for determining left and right states of intelligent earphone
CN114615588A (en) Earphone communication method, equipment and computer readable storage medium
CN105991163B (en) Communication method and device based on Bluetooth application
EP2779602B1 (en) A method and a system for binding an audio accessory device with a program application
WO2020082387A1 (en) Method for changing audio channel, and related device
CN115580944A (en) Audio device connection method and device, storage medium and device
CN113810887B (en) Bluetooth protocol connection method and device, storage medium and related equipment

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