Disclosure of Invention
The present invention mainly aims to provide a communication control method for a binaural wireless headset, a communication device, a communication control system, and a computer-readable storage medium, and aims to enable the binaural wireless headset to communicate with the communication device even when only one headset is worn, thereby reducing the complexity of user operations and improving user experience.
In order to achieve the above object, the present invention provides a communication control method for a binaural wireless headset, the binaural wireless headset including a first headset and a second headset, the communication control method for the binaural wireless headset including the steps of:
detecting a state of the first and second earphones;
when any one of the first earphone and the second earphone is in a wearing state, pairing the first earphone or the second earphone in the wearing state with communication equipment;
and when the first earphone or the second earphone in the wearing state is successfully paired with the communication equipment, controlling the first earphone or the second earphone to receive and play audio data transmitted by the communication equipment.
Preferably, after the step of controlling the first headset or the second headset to receive and play audio data transmitted by the communication device when the first headset or the second headset in the wearing state is successfully paired with the communication device, the method further includes:
if the first earphone is successfully paired with the communication equipment, detecting the state of the second earphone;
when the second earphone is in a wearing state, pairing the first earphone and the second earphone;
and when the first earphone and the second earphone are successfully matched, controlling the second earphone to receive and play the audio data transmitted by the first earphone.
Preferably, after the step of controlling the first headset or the second headset to receive and play audio data transmitted by the communication device when the first headset or the second headset in the wearing state is successfully paired with the communication device, the method further includes:
when the first earphone is in an unworn state, controlling the first earphone to inform the second earphone to pair with the communication equipment;
and when the second earphone is successfully paired with the communication equipment, controlling the first earphone to be in a standby state.
Preferably, after the step of controlling the first headset to be in a standby state when the second headset is successfully paired with the communication device, the method further includes:
and when the second earphone is not worn, controlling the second earphone to be in a standby state.
Preferably, after the step of controlling the first headset or the second headset to receive and play audio data transmitted by the communication device when the first headset or the second headset in the wearing state is successfully paired with the communication device, the method further includes:
and when the second earphone is not worn, controlling the second earphone to inform the first earphone of disconnecting from the second earphone and controlling the second earphone to be in a standby state.
Preferably, after the step of controlling the second headset to notify the first headset to be disconnected from the second headset and controlling the second headset to be in a standby state when the second headset is in an unworn state, the method further includes:
and when the second earphone is in a standby state, if the first earphone is not worn, controlling the first earphone to be in the standby state.
Preferably, after the step of controlling the first headset or the second headset to receive and play audio data transmitted by the communication device when the first headset or the second headset in the wearing state is successfully paired with the communication device, the method further includes:
and if the first earphone and/or the second earphone is/are not worn, controlling the first earphone and/or the second earphone to be in a standby state.
To achieve the above object, the present invention further provides a binaural wireless headset, including a processor and a communication control method of the binaural wireless headset stored in and executable on the processor, wherein the communication control method of the binaural wireless headset, when executed by the processor, implements the steps of the communication control method of the binaural wireless headset as described above.
In order to achieve the above object, the present invention further provides a communication device, configured to pair with a first headset or a second headset in a wearing state, and transmit audio data to the first headset or the second headset when pairing is successful.
To achieve the above object, the present invention also provides a communication control system including a binaural wireless headset as described above, and a communication device as described above.
To achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a communication control program for a binaural wireless headset, the communication control program for the binaural wireless headset being executed by a processor for implementing the steps of the communication control method for the binaural wireless headset as described above.
According to the communication control method of the binaural wireless earphone, the communication device, the communication control system and the computer readable storage medium provided by the invention, by detecting the states of the first earphone and the second earphone, then when either the first earphone or the second earphone is in a wearing state, the first earphone or the second earphone in the wearing state is paired with the communication device, and then when the first earphone or the second earphone in the wearing state is successfully paired with the communication device, the first earphone or the second earphone is controlled to receive and play audio data transmitted by the communication device. Therefore, the double-ear wireless earphone can realize the communication with the communication equipment when only one earphone is in a wearing state, the complexity of user operation is reduced, and the user experience is improved.
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.
As shown in fig. 1, the binaural wireless headset of the present invention includes: aprocessor 1001, such as a CPU, auser interface 1002, amemory 1003, and acommunication bus 1004. Wherein acommunication bus 1004 is used to enable connective communication between these components. Theuser interface 1002 may include an input unit. Thememory 1003 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). Thememory 1003 may alternatively be a storage device separate from theprocessor 1001.
Those skilled in the art will appreciate that the binaural wireless headset shown in fig. 1 does not constitute a limitation of the binaural wireless headset and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
Thememory 1003, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a communication control method of the binaural wireless headset.
Theuser interface 1002 is mainly used for receiving a user instruction triggered by a user input instruction through an input unit; theprocessor 1001 is configured to invoke a communication control method of the binaural wireless headset stored in thememory 1003, and perform the following operations:
detecting a state of the first and second earphones;
when any one of the first earphone and the second earphone is in a wearing state, pairing the first earphone or the second earphone in the wearing state with communication equipment;
and when the first earphone or the second earphone in the wearing state is successfully paired with the communication equipment, controlling the first earphone or the second earphone to receive and play audio data transmitted by the communication equipment.
Further, theprocessor 1001 may call the duplex data communication program stored in thememory 1003, and further perform the following operations:
if the first earphone is successfully paired with the communication equipment, detecting the state of the second earphone;
when the second earphone is in a wearing state, pairing the first earphone and the second earphone;
and when the first earphone and the second earphone are successfully matched, controlling the second earphone to receive and play the audio data transmitted by the first earphone.
Further, theprocessor 1001 may call the duplex data communication program stored in thememory 1003, and further perform the following operations:
when the first earphone is in an unworn state, controlling the first earphone to inform the second earphone to pair with the communication equipment;
and when the second earphone is successfully paired with the communication equipment, controlling the first earphone to be in a standby state.
Further, theprocessor 1001 may call the duplex data communication program stored in thememory 1003, and further perform the following operations:
and when the second earphone is not worn, controlling the second earphone to be in a standby state.
Further, theprocessor 1001 may call the duplex data communication program stored in thememory 1003, and further perform the following operations:
and when the second earphone is not worn, controlling the second earphone to inform the first earphone of disconnecting from the second earphone and controlling the second earphone to be in a standby state.
Further, theprocessor 1001 may call the duplex data communication program stored in thememory 1003, and further perform the following operations:
and when the second earphone is in a standby state, if the first earphone is not worn, controlling the first earphone to be in the standby state.
Further, theprocessor 1001 may call the duplex data communication program stored in thememory 1003, and further perform the following operations:
and if the first earphone and/or the second earphone is/are not worn, controlling the first earphone and/or the second earphone to be in a standby state.
Referring to fig. 2, in a first embodiment, the present invention provides a communication control method for a binaural wireless headset including a first headset and a second headset, including the steps of:
step S1, detecting the states of the first earphone and the second earphone;
in this embodiment, the binaural wireless headset includes a left headset and a right headset, each of which includes a bluetooth processor unit and a wearing detection unit, wherein the bluetooth processor unit is configured to process and transmit and receive an audio signal sent by the communication device, and the wearing detection unit is configured to detect a state of the headset, that is, whether the headset is in a wearing state. The first earphone is the first earphone in a wearing state, and can be a left earphone or a right earphone; similarly, the second earphone is the second earphone in a wearing state, and may be the left earphone or the right earphone.
The detection of the states of the first earphone and the second earphone may be performed by the first earphone and the second earphone, respectively, or may be performed by one of the earphones, or may be performed by the communication device.
The manner of detecting the states of the first and second earphones may be:
1. the wearing detection unit detects a use motion of a user, which may be a wearing motion or a removing motion. The wearing detection unit may be an acceleration sensor or another sensor having a motion detection function. The acceleration sensor mainly detects the speed change of the wireless earphone from rest to motion, preferably detects the speed change of the wireless earphone from rest to motion in the gravity direction, and can also detect the speed change of the wireless earphone from rest to motion in the horizontal direction, or detect the speed changes in the gravity direction and the horizontal direction.
2. The wearing detection unit detects whether the binaural wireless earphone is in a wearing state, the wearing detection unit can be a capacitance sensor, and the wearing detection unit detects whether the binaural wireless earphone is in the wearing state through a sensing value of the capacitance sensor. Specifically, the capacitance sensor can be directly contacted with the ear of the wearer, and whether the binaural wireless earphone is contacted with the ear is judged according to the induction value, so that whether the binaural wireless earphone is in a wearing state is judged.
3. The wearing detection unit can also be a pressure sensor, and whether the binaural wireless earphone is in a wearing state or not is judged through a pressure value detected by the pressure sensor. When the pressure value detected by the pressure sensor is greater than a preset threshold value, the binaural wireless earphone can be determined to be in a wearing state.
Step S2, when any one of the first earphone and the second earphone is in a wearing state, pairing the first earphone or the second earphone in the wearing state with a communication device;
in this embodiment, the wearing states of the first earphone and the second earphone may be detected in real time or at regular time, and when any one of the first earphone and the second earphone is in a wearing state, if the first earphone is in a wearing state and the second earphone is in an unworn state, the first earphone and the communication device are paired; and pairing the second earphone and the communication equipment on the assumption that the second earphone is in a wearing state and the first earphone is in an unworn state.
The communication device may be a mobile terminal, a tablet computer, a notebook computer, a PM3, a PM4, or the like.
The first earphone or the second earphone and the communication device can be paired by Bluetooth or by infrared.
Step S3, when the first earphone or the second earphone in the wearing state is successfully paired with the communication device, controlling the first earphone or the second earphone to receive and play the audio data transmitted by the communication device.
In this embodiment, when the first headset in a wearing state is successfully paired with the communication device, the first headset is controlled to receive audio data transmitted by the communication device; and when the second earphone in the wearing state is successfully paired with the communication equipment, controlling the second earphone to receive and play audio data transmitted by the communication equipment.
The method is suitable for a scene that a user wears only one earphone, and when only one earphone is in a wearing state, data transmission between the double-ear wireless earphone and the communication equipment can be realized, so that a normal playing function of the double-ear wireless earphone is ensured, and thus, the operation complexity of wearing two wireless earphones by the user is avoided; the overall power consumption of the binaural wireless headset may also be reduced.
The communication control method of the double-ear wireless earphone provided by the invention comprises the steps of detecting the states of the first earphone and the second earphone, pairing the first earphone or the second earphone in a wearing state with communication equipment when any one of the first earphone and the second earphone is in the wearing state, and controlling the first earphone or the second earphone to receive and play audio data transmitted by the communication equipment when the first earphone or the second earphone in the wearing state is successfully paired with the communication equipment. Therefore, the double-ear wireless earphone can realize the communication with the communication equipment when only one earphone is in a wearing state, the complexity of user operation is reduced, and the user experience is improved.
Referring to fig. 3, in the second embodiment, based on the first embodiment, the step S3 is further followed by:
s4, if the first earphone and the communication equipment are successfully paired, detecting the state of the second earphone;
in this embodiment, it is assumed that the first earphone and the communication device are successfully paired, at this time, the first earphone may receive and play audio data transmitted by the communication device, that is, the first earphone may implement the function of the binaural wireless earphone. Further, in order to improve the audio effect of the user listening to the audio data, the state of the second earphone may be detected to determine whether to play the audio data through the second earphone at the same time.
S5, when the second earphone is in a wearing state, pairing the first earphone and the second earphone;
in this embodiment, when the second earphone is in a wearing state, it indicates that the user needs to use two earphones to play audio data, and at this time, the first earphone and the second earphone are paired, and similarly, the pairing mode may be bluetooth pairing, or other modes such as infrared pairing.
And S6, when the first earphone and the second earphone are successfully paired, controlling the second earphone to receive and play the audio data transmitted by the first earphone.
In this embodiment, when the first earphone and the second earphone are successfully paired, the first earphone transmits the audio data received from the communication device to the second earphone, and the second earphone plays the audio data simultaneously.
When a user only wears one earphone, the earphone can be used as a first earphone to work; when the user wears the two earphones, the second earphone also works, so that the second earphone can be prevented from being always in a working state, and the overall power consumption of the double-ear wireless earphone can be reduced.
Referring to fig. 4, in the third embodiment, based on the second embodiment, the step S6 is further followed by:
s7, when the first earphone is not worn, controlling the first earphone to inform the second earphone to pair with the communication equipment;
and S8, controlling the first earphone to be in a standby state when the second earphone is successfully paired with the communication equipment.
In this embodiment, when the user first plays the audio data of the communication device through the first earphone and the second earphone, if the user takes the first earphone off, that is, when it is detected that the first earphone is not worn, the first earphone notifies the second earphone to be paired with the communication device, and the specific pairing method is the same as above, and is not described here again.
And when the second earphone is successfully paired with the communication equipment, controlling the first earphone to be in a standby state. That is, the function of the binaural wireless headset can be realized when the user takes off one headset. So, need not the user and all wear two earphones at every turn to can reduce user's complex operation degree.
And S9, controlling the second earphone to be in a standby state when the second earphone is not worn.
In this embodiment, when the user takes off the second earphone, that is, when it is detected that the second earphone is also in an unworn state, the second earphone is controlled to be in a standby state. And when the double-ear wireless earphone receives a shutdown signal, controlling the first earphone and the second earphone to shut down.
Referring to fig. 5, in the fourth embodiment, based on the second embodiment, the step S6 is further followed by:
and S10, when the second earphone is not worn, controlling the second earphone to inform the first earphone to disconnect from the second earphone, and controlling the second earphone to be in a standby state.
In this embodiment, when the user first plays the audio data of the communication device through the first earphone and the second earphone, if the user takes the second earphone off, that is, when it is detected that the second earphone is not worn, the second earphone notifies the first earphone to disconnect from the second earphone, and the specific manner may be to disconnect the bluetooth connection or the infrared connection. And then controlling the second earphone to be in a standby state. That is, the function of the binaural wireless headset can be realized when the user takes off one headset. So, need not the user and all wear two earphones at every turn to can reduce user's complex operation degree.
And S11, when the second earphone is in a standby state, if the first earphone is not worn, controlling the first earphone to be in a standby state.
In this embodiment, when the user takes off the second earphone, that is, when it is detected that the second earphone is also in an unworn state, the second earphone is controlled to be in a standby state. And when the double-ear wireless earphone receives a shutdown signal, controlling the first earphone and the second earphone to shut down.
Referring to fig. 6, in a fifth embodiment, based on any of the above embodiments, after step S3, the method further includes:
and S12, if the first earphone and/or the second earphone is/are not worn, controlling the first earphone and/or the second earphone to be in a standby state.
In this embodiment, as long as one or both of the two earphones are in the unworn state, the corresponding earphone is controlled to be in the standby state. It is understood that when the binaural wireless headset receives a power-off signal, the first headset and the second headset are controlled to be powered off.
The present invention also provides a binaural wireless headset comprising a processor and a communication control method for a binaural wireless headset stored in and executable on said processor, wherein the communication control method for a binaural wireless headset, when executed by said processor, implements the steps of the communication control method for a binaural wireless headset as described above.
The invention also provides communication equipment, which is used for pairing with the first earphone or the second earphone in a wearing state and transmitting audio data to the first earphone or the second earphone when pairing is successful.
With reference to fig. 7, the present invention also provides acommunication control system 100, saidcommunication control system 100 comprising abinaural wireless headset 1 as described above, and acommunication device 2 as described above.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a communication control program for a binaural wireless headset, and the communication control program for a binaural wireless headset is executed by a processor to implement the steps of the communication control method for a binaural wireless headset as described above.
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 system 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 system. 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 system 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 (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method according to the embodiments of the present invention.