CN110933738B - Mode switching method and system of wireless earphone and TWS earphone system - Google Patents

Mode switching method and system of wireless earphone and TWS earphone system Download PDF

Info

Publication number
CN110933738B
CN110933738B CN201911159354.XA CN201911159354A CN110933738B CN 110933738 B CN110933738 B CN 110933738B CN 201911159354 A CN201911159354 A CN 201911159354A CN 110933738 B CN110933738 B CN 110933738B
Authority
CN
China
Prior art keywords
ear
mode
earphone
switching
opposite
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911159354.XA
Other languages
Chinese (zh)
Other versions
CN110933738A (en
Inventor
田久东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek 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 CN201911159354.XA priority Critical patent/CN110933738B/en
Publication of CN110933738A publication Critical patent/CN110933738A/en
Application granted granted Critical
Publication of CN110933738B publication Critical patent/CN110933738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a mode switching method of a wireless earphone, wherein the switching mode is triggered as required, and the earphone executes a corresponding earphone mode switching strategy according to an earphone initiating synchronous event only after receiving a synchronous triggering instruction sent by the earphone when the synchronous event of the earphone occurs, so that the power consumption of the earphone is reduced without periodical round-robin triggering; in addition, in the method and the device, the synchronous event generated between the ear and the opposite ear when the state of the existing earphone changes is used as the trigger of the execution of the earphone mode switching strategy, detection information or detection data does not need to be additionally added, the power consumption is further reduced, and the mode switching process is simplified. The invention also discloses a mode switching system of the wireless earphone and a TWS earphone system, which have the same beneficial effects as the mode switching method of the wireless earphone.

Description

Mode switching method and system of wireless earphone and TWS earphone system
Technical Field
The present invention relates to the field of headset technologies, and in particular, to a method and a system for mode switching of a wireless headset, and a TWS headset system.
Background
The development of wireless earphones is rapid in recent years, and the wireless earphones become a new development hotspot in the earphone field. Two earphones in the wireless earphone are connected in a wireless mode (such as Bluetooth), and the wireless earphone is free from being limited by wires.
The real wireless bluetooth headset is usually divided into a main ear and a subordinate ear, and the main ear and the subordinate ear are often configured with different functions, so that a user has the requirement of using one or two ears in the using process. Therefore, switching between mono/binaural modes is required.
In the prior art, a periodic round-robin mode is usually adopted to detect whether the state of the wireless headset changes, and then trigger a headset mode switching strategy, but the detection mode has large power consumption.
Disclosure of Invention
The invention aims to provide a mode switching method and system of a wireless headset and a TWS headset system, which reduce power consumption and simplify the mode switching process.
In order to solve the above technical problem, the present invention provides a mode switching method for a wireless headset, including:
receiving a synchronous trigger instruction sent by the ear when a synchronous event of the ear and the opposite ear occurs;
determining an initiating earphone of the synchronous event according to the synchronous trigger instruction;
performing a headphone mode switching strategy corresponding to an originating headphone of the synchronization event, the headphone mode including a monaural mode and a binaural mode.
Preferably, the occurrence of the synchronous event of the local ear and the opposite ear comprises:
the method comprises the steps that a synchronous message which is sent when the state of an opposite ear changes and comprises opposite ear state information is received by the opposite ear;
performing a headset mode switching policy corresponding to the initiating headset of the synchronization event, including:
and correspondingly switching the mode of the earphone according to the information of the ear-facing state.
Preferably, the occurrence of the synchronous event of the local ear and the opposite ear comprises:
the method comprises the steps that when the self state of the ear changes, a synchronous message comprising ear state information is sent to the opposite ear;
performing a headset mode switching policy corresponding to the initiating headset of the synchronization event, including:
judging whether a synchronization success triggering instruction sent by the ear when receiving the response message returned by the opposite ear is received within a preset time; the response message includes information on the state of the ear;
if so, carrying out corresponding mode switching on the earphone mode of the user according to the ear-facing state information;
otherwise, switching the earphone mode of the user to the single-ear mode.
Preferably, the determining whether a synchronization success triggering instruction sent by the local ear when receiving the response message returned by the opposite ear is received within a preset time includes:
restarting a timer, wherein the timer finishes timing when the timer times to a preset time;
and judging whether a synchronization success triggering instruction sent by the local ear when receiving the response message returned by the opposite ear is received before the timer finishes timing.
Preferably, before switching the headset mode of the user to the single-ear mode, the method further includes:
adding one to the current cycle number;
judging whether the current cycle number is smaller than a preset value or not;
if yes, triggering the local ear to send a synchronous message including the local ear state information to the opposite ear again, and returning to the step of restarting the timer;
otherwise, clearing the current cycle number, and switching the earphone mode of the user into the single-ear mode.
Preferably, the mode switching of the earphone mode of the user according to the information on the state of the pair of ears correspondingly comprises:
judging whether the opposite ear is in the box or not according to the opposite ear state information;
if yes, switching the earphone mode of the user to a single-ear mode;
otherwise, switching the own earphone mode into a double-ear mode.
Preferably, after switching the earphone mode of the user to the monaural mode, the method further includes:
keeping a main ear mode, wherein the opposite ear is put into the box and the own ear is the main ear at the moment, and/or the own ear does not receive a synchronous successful trigger instruction returned by the opposite ear, and the own ear and the terminal are in a communication range and the own ear is the main ear; or the like, or, alternatively,
and switching the self mode from the slave ear mode to the master ear mode, wherein the opposite ear is put into the box and the local ear is the slave ear at the moment, and/or the local ear does not receive a synchronous success trigger instruction returned by the opposite ear, the local ear is in a communication range with the terminal and the local ear is the slave ear.
In order to solve the above technical problem, the present invention further provides a mode switching system for a wireless headset, including:
the receiving module is used for receiving a synchronous trigger instruction sent by the ear when the synchronous event of the ear and the opposite ear occurs;
the determining module is used for determining an initiating earphone of the synchronous event according to the synchronous trigger instruction;
a mode switching module for executing an earphone mode switching policy corresponding to an originating earphone of the synchronization event.
In order to solve the technical problem, the invention also provides a TWS earphone system, which comprises an earphone;
the earphone includes:
a memory for storing a computer program;
a processor for implementing the steps of the mode switching method of the wireless headset as described above when executing the computer program.
Preferably, the earphone is a main earphone and/or a pair earphone.
Preferably, the method further comprises the following steps:
the state detection module is used for detecting whether the state of the earphone changes or not;
the processor is further configured to generate a synchronization event with the ear and generate a synchronization trigger instruction when the state of the headset changes.
The invention provides a mode switching method of a wireless earphone, which is triggered as required, and the earphone executes a corresponding earphone mode switching strategy according to an initiating earphone of a synchronous event only after receiving a synchronous triggering instruction sent by the earphone when the synchronous event of the earphone occurs, so that the power consumption of the earphone is reduced without periodical round-robin triggering; in addition, in the method and the device, a synchronous event generated between the ear and the opposite ear when the state of the existing earphone changes is used as the trigger of the execution of the earphone mode switching strategy, detection information or detection data does not need to be additionally added, the power consumption is further reduced, and the mode switching process is simplified.
The invention also provides a mode switching system of the wireless earphone and a TWS earphone system, which have the same beneficial effects as the mode switching method of the wireless earphone.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of a wireless headset synchronization in the prior art;
fig. 2 is a process flow diagram of a mode switching method of a wireless headset according to the present invention;
FIG. 3 is a schematic diagram of switching between earphone modes when the initiating earphone of a synchronization event is facing the ear according to the present invention;
FIG. 4 is a schematic diagram of switching between earphone modes when the initiating earphone of a synchronization event is the present invention;
fig. 5 is a logic diagram for single/binaural mode conversion provided by the present invention;
fig. 6 is a schematic structural diagram of a mode switching system of a wireless headset according to the present invention;
fig. 7 is a schematic structural diagram of a TWS headset system according to the present invention.
Detailed Description
The core of the invention is to provide a mode switching method and system of a wireless earphone and a TWS earphone system, which reduces power consumption and simplifies the mode switching process.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
According to the existing Wireless headset mechanism, such as TWS (True Wireless Stereo) headset, the sending and receiving of messages between the master and slave ears can be realized through some link (such as acl (Asynchronous connection free)). Specifically, a specific communication protocol is determined before the headset communicates, different protocols correspond to different messages, and the headset receives the messages and performs different responses and sends response messages (i.e., response messages). The prior art is based on this by selecting a specific synchronization link and sending a message over the synchronization link to achieve state synchronization of the headset.
Referring to fig. 1, fig. 1 is a schematic diagram of wireless headset synchronization in the prior art.
Specifically, the existing wireless headset may detect its own state at regular time, and when detecting that its own state changes, the present headset actively uses the synchronization link to notify its own state information to the opposite headset in a message manner, and after receiving the synchronization message, the opposite headset first uses a communication protocol negotiated in advance to analyze the received synchronization message, then records the synchronization message, and then sends its own state information as a response message to the present headset. At this point, one synchronization of the master and slave ears is completed. The states of the earphones include out/in boxes, out/in ears, connection with a terminal (e.g., a mobile phone), and the like. In addition, different states correspond different detection methods, for example, the in-out box can be detected by a hall sensor, an infrared sensor and the like, the in-out ear can be obtained by wearing a detection algorithm and the like, and the application is not repeated herein.
In the method for switching the mode of the wireless headset, the existing synchronous event of the wireless headset is used as a trigger condition of a headset mode switching strategy, and power consumption is reduced.
The present application is described in detail below with reference to the attached drawing figures:
referring to fig. 2, fig. 2 is a process flow chart of a mode switching method of a wireless headset according to the present invention.
The mode switching method comprises the following steps:
s11: receiving a synchronous trigger instruction sent by the ear when a synchronous event of the ear and the opposite ear occurs;
s12: determining an earphone for initiating a synchronous event according to the synchronous trigger instruction;
s13: an earphone mode switching strategy corresponding to an originating earphone of the synchronization event is performed, the earphone modes including a monaural mode and a binaural mode.
It should be noted that, the mode switching method provided in the present application may be applied to any one of the wireless headsets, that is, both the present ear headset and the earphone for ears. In addition, in the present application, the monaural mode refers to that a user uses a certain earphone alone; binaural mode refers to the user using two headphones simultaneously. When a user uses the earphones at the same time, when one earphone is plugged into the box, turned off or moved away to cause that the two earphones exceed the communication range, the other earphone can enter a single-ear mode; if another earphone goes out of the box, is powered on or is moved close to the communication range again, the earphone can be switched from the single-ear mode to the double-ear mode.
Based on this, the usage scenario for the monaural mode is summarized as follows: when the ear and the opposite ear communication are normal (the two earphones are both started and are within the communication range at the moment), when one earphone is put into the box, the other earphone enters a single-ear mode; when the communication between the ear and the opposite ear is abnormal (the earphone is possible to be turned off or removed and the communication distance exceeds the range), the other earphone enters a single-ear mode. The usage scenario of binaural mode is: this ear and to the ear all start and all go out the box and in communication range. Other state changes, such as out/in, connection to a cell phone, etc., do not affect the transition of the headset mode. It can be seen that the switching of the earphone mode of the wireless earphone is mainly based on: 1) The earphone goes in and out of the box under normal communication; 2) The communication is abnormal.
In addition, considering that the initiator of the synchronization event may be the main ear or the opposite ear, and the initiators of the synchronization event are different, the headset mode switching strategy to be performed by the headset is also different. Specifically, the earphone mode switching policy is set according to the following different conditions: if the initiator of the synchronous event is the opposite ear, the synchronous event indicates that the self-ear receives the synchronous message sent when the state of the opposite ear is changed, the normal communication between the self-ear and the opposite ear can be unambiguously indicated at the moment, and the self-ear mode can be switched directly according to whether the opposite ear is put into the box or not. If the initiator of the synchronous event is the ear, the state of the ear needs to send a synchronous message to the opposite ear when changed, and two results may occur at this time, one is when the communication is normal, the ear receives a response message including self state information replied by the opposite ear under the condition, and the ear can switch the earphone mode of the ear according to whether the opposite ear is put into the box or not; one is when the communication is abnormal, then the ear can not receive the response message replied to the ear at this moment, the ear enters the monaural mode. In addition, it is also difficult to obtain, when the initiator of the synchronization event is against the ear, the synchronization trigger instruction may be a synchronization message sent by the ear; when the initiator of the synchronization event is the local ear, the synchronization trigger instruction can be a synchronization message sent by the local ear, and by utilizing the own synchronization message of the earphone, no additional message needs to be added.
In summary, the present application considers that the precondition for the occurrence of a synchronous event in the ear and the opposite ear is a change of the state in the ear or the opposite ear, and the state here also includes out-box/in-box. However, since the mode switching of the earphone is also related to the state of the earphone, the present application contemplates that a synchronization event occurring between the ear and the opposite ear is used as a trigger condition for switching the earphone in the present application. Specifically, after receiving a synchronization trigger instruction sent by the local ear when a synchronization event of the local ear and the opposite ear occurs, the initiator of the synchronization event is determined according to the synchronization trigger instruction, and if the initiator of the synchronization event is opposite ear, the earphone mode of the local ear is switched directly according to whether the opposite ear is put into a box or not. If the initiator of the synchronization event is the own ear, the earphone mode is switched correspondingly according to whether the response message is replied to the ear.
Therefore, the mode switching method of the wireless earphone provided by the invention has the advantages that the switching mode is triggered as required, and the earphone executes a corresponding earphone mode switching strategy according to the earphone initiating the synchronous event only after receiving the synchronous triggering instruction sent by the earphone when the synchronous event of the earphone occurs, so that the power consumption of the earphone is reduced without periodical round-robin triggering; in addition, in the application, a synchronization event generated between the ear and the opposite ear when the state of the existing earphone changes is used as a trigger for executing the earphone mode switching strategy (if a periodic synchronization message is additionally set, it is considered that the earphone is synchronized for about 200ms once, under some special scenes (such as startup), the synchronization time is longer, the maximum time can exceed 500ms, and the power consumption is high.
On the basis of the above-described embodiment:
as a preferred embodiment, the occurrence of a synchronization event of the present ear and the opposite ear comprises:
the method comprises the steps that a synchronous message which is sent when the state of an opposite ear changes and comprises opposite ear state information is received by the opposite ear;
performing a headset mode switching policy corresponding to the initiating headset of the synchronization event, including:
and correspondingly switching the modes of the earphone according to the information of the state of the opposite ear.
Referring to fig. 3, fig. 3 is a schematic diagram of earphone mode switching when an initiating earphone of a synchronous event is opposite to an ear according to the present invention.
Specifically, in the above embodiment, it is mentioned that the originator of the synchronous event between the ear and the opposite ear may be the ear, or may be the opposite ear, and stands at the angle of the ear, if the synchronous event occurs between the ear and the opposite ear, and the originator of the synchronous event is the opposite ear, the ear may receive the synchronous message sent when the state of the opposite ear (for example, the out-of-box/in-box, the out-of-ear/in-ear, and the connection condition with the mobile phone, etc.) changes, and the synchronous message includes the state information of the opposite ear (including the state after the state of the opposite ear is changed), at this time, it may also be unambiguously stated that the communication between the ear and the opposite ear is normal, and the ear may directly perform corresponding mode switching on its own earphone mode according to the state information of the opposite ear (specifically, whether the opposite ear enters the box).
Therefore, by the mode, the ear can realize on-demand triggering of self mode switching when the state of the ear is changed, and power consumption is reduced.
As a preferred embodiment, the mode switching of the earphone mode of the earphone according to the ear state information comprises:
judging whether the opposite ears are in the box or not according to the opposite ear state information;
if so, switching the earphone mode of the user into a single-ear mode;
otherwise, switching the own earphone mode to a double-ear mode.
Specifically, the synchronous message or the response message of the ears comprises the state information of the ears, and the state information of the ears comprises the state after the state of the ears is changed, so that the ears judge whether the ears are in a box after obtaining the state information of the ears, if so, the ears cannot be used, and the ears switch the earphone mode of the ears into a single-ear mode; otherwise, it indicates that the state of the opposite ear is changed, for example, the opposite ear is taken out of the box, the opposite ear is taken out/in, the opposite ear is connected with the mobile phone, and the earphone mode of the opposite ear is switched to the double-ear mode.
Therefore, when the state of the existing earphone is changed, a synchronous event generated between the ear and the opposite ear is used as the trigger of the execution of the earphone mode switching strategy, detection information or detection data does not need to be additionally added, the power consumption is further reduced, the mode switching process is simplified, and the reliability and the stability of the mode switching are ensured.
As a preferred embodiment, the occurrence of a synchronization event of the present ear and the opposite ear comprises:
the method comprises the steps that when the self state of the ear changes, a synchronous message comprising ear state information is sent to the opposite ear;
performing a headset mode switching policy corresponding to the initiating headset of the synchronization event, including:
judging whether a synchronization success triggering instruction sent when the response message returned by the ear is received within a preset time; the response message includes information on the state of the ear;
if so, correspondingly switching the earphone mode according to the information of the ear-facing state;
otherwise, switching the earphone mode of the user into a single-ear mode.
Referring to fig. 4, fig. 4 is a schematic diagram of earphone mode switching when the initiating earphone of the synchronous event is the present ear according to the present invention.
Specifically, if a synchronization event occurs between the self-ear and the opposite ear and the initiator of the synchronization event is the self-ear, the self-ear will send a synchronization message to the opposite ear when the self-state of the self-ear changes, where the synchronization message includes self-ear state information, and then there are two possibilities: one is for the communication is normal, receive the synchronous message and return a response message including the state information of the opposite ear to the ear; the other is communication abnormity, the synchronous message can not be received by the ears, and a response message can not be returned naturally; in order to distinguish the two situations, whether a synchronization successful trigger instruction sent by the ear is received within a preset time after the ear sends a synchronization message is judged, wherein the ear sends the synchronization successful trigger instruction after receiving a response message including the ear-facing state information returned by the ear, if so, the mode of the ear is correspondingly switched according to the ear-facing state information directly (the process is the same as the above embodiment, and the description is not repeated here), otherwise, the ear cannot keep normal communication with the ear, and the ear enters a single-ear mode.
Therefore, by the mode, the self-mode switching can be triggered as required when the self state is changed, and the power consumption is reduced.
As a preferred embodiment, the determining whether a synchronization success triggering instruction sent by the local ear when receiving a response message returned by the local ear is received within a preset time includes:
restarting the timer, and ending the timing when the timer times to the preset time;
and judging whether a synchronization success triggering instruction sent when the ear receives a response message returned to the ear is received before the timer finishes timing.
In this embodiment, after receiving a synchronization trigger instruction sent by the ear when a synchronization event of the ear and the opposite ear occurs, the timer is restarted, where restarting the timer is to clear the timer first and then trigger the timer to start timing, where the timer ends timing when timing reaches a preset time. If a synchronization success triggering instruction sent when the response message returned by the ear is received, judging that the synchronization success triggering instruction is within the preset time, and if the synchronization success triggering instruction is received, carrying out corresponding mode switching on the earphone mode of the ear according to the ear-facing state information; if the preset time is exceeded (the probability is small) or the synchronous successful trigger instruction sent by the ear is not received in the preset time at all, the communication between the ear and the opposite ear is abnormal, and at the moment, the ear switches the earphone mode of the ear into a single-ear mode. In addition, the preset time may be, but is not limited to, 1s.
Therefore, the method can be used for fully automatically judging whether the synchronous success triggering instruction sent by the ear when the response message returned by the ear is received within the preset time, and the control method is simple and reliable.
As a preferred embodiment, before switching the own earphone mode to the monaural mode, the method further includes:
adding one to the current cycle number;
judging whether the current cycle number is smaller than a preset value or not;
if yes, triggering the ear to send the synchronous message containing the ear state information to the opposite ear again, and returning to the step of restarting the timer;
otherwise, the current cycle number is cleared, and the step of switching the earphone mode of the earphone to the single-ear mode is carried out.
Specifically, in consideration of the fact that in practical application, the short-time communication between the ear and the opposite ear is unstable or the distance between the ear and the opposite ear exceeds the communication range for a short time, so that the ear cannot receive the response message returned by the opposite ear in time, if the ear directly switches the earphone mode of the ear into the single-ear mode, the subsequent communication between the ear and the opposite ear is stable quickly or the distance between the ear and the opposite ear is in the communication range quickly, the ear also needs to switch the earphone mode of the ear into the double-ear mode again, and the switching back and forth reduces the user experience.
Referring to fig. 5, fig. 5 is a logic diagram of a mono/binaural mode conversion according to the present invention.
In this embodiment, after it is determined for the first time that the synchronization successful trigger instruction sent when the response message returned by the self-ear is received is not received within the preset time, the mode of the self-ear is not directly switched to the monaural mode, but the self-ear is triggered to send the synchronization message including the self-ear state information to the monaural again, and it is determined whether the synchronization successful trigger instruction sent when the response message returned by the self-ear is received again. If the synchronous success trigger instruction sent by the earphone is received again within the continuous preset numerical number, it is indicated that only special conditions are not received before, and in such a condition, the earphone mode of the earphone is not switched to the single-ear mode. The preset value here may be, but is not limited to, 3.
The scheme adopts a strict in and out mode, limits the conditions for entering the single-ear mode and prevents the problem of back-and-forth switching of the single-ear mode and the double-ear mode caused by unstable communication. Under the condition of abnormal communication, the earphone can be switched to the single-ear mode only if the continuous synchronization fails for a preset number of times within the preset time; but conversely, once the headset receives the synchronization message to the ear and the ear is not in the box, the headset immediately exits the monaural mode and enters the binaural mode.
Therefore, misjudgment of switching of the earphone mode caused by the influence of some special conditions (for example, the short communication between the ear and the opposite ear is unstable or the distance between the ear and the opposite ear is short beyond the communication range) can be avoided, and the reliability and the stability of switching of the single-ear mode are improved.
In addition, in practical applications, considering that there is a delay in the synchronization message between the wireless headsets, and there are special situations, for example, when the headset is powered on and connected to the mobile phone immediately, the state of the headset frequently changes (power-on- > initialization- > out-of-box- > connection HFP (Hands-free Profile, software for controlling the phone by using a bluetooth device), A2DP (Advanced Audio Distribution Profile, bluetooth Audio transmission model protocol), AVRCP (Audio/Video Remote Control Profile, audio/Video Remote Control configuration file), and the like), in this case, the headset generates a large amount of synchronization messages, and in order to avoid affecting normal synchronization of the system, in this embodiment, a time base of a preset time (for example, 1 second) of the timer is used, and only when the state of the headset is stable and no state change occurs within the preset time, the headset is additionally triggered to send the synchronization message twice (when the preset value is 3). If the state of the headset changes within a preset time, the timer is restarted, i.e. the timer is cancelled and reinitialized. Therefore, in the scene that the state changes frequently, the earphone is not triggered to send the synchronization message, the normal synchronization of the earphone system is not influenced until the system is stable, and the normal synchronization of the earphone system is not influenced while the reliability and the stability of the single-ear mode switching are improved.
As a preferred embodiment, after switching the earphone mode of the user into the single-ear mode, the method further includes:
keeping a main ear mode, wherein the opposite ear is put into the box and the own ear is the main ear at the moment, and/or the own ear does not receive a synchronous successful trigger instruction returned by the opposite ear, and the own ear and the terminal are in a communication range and the own ear is the main ear; or the like, or, alternatively,
and switching the self mode from the slave ear mode to the master ear mode, wherein the opposite ear is put into the box and the local ear is the slave ear at the moment, and/or the local ear does not receive a synchronous success trigger instruction returned by the opposite ear, the local ear is in a communication range with the terminal and the local ear is the slave ear.
Considering that the headset may be a TWS headset comprising a master (briefly described as master ear in this application) and a slave (briefly described as slave ear in this application), the master ear is connected to the terminal and communicates directly during use of the TWS headset, and the slave ear is not connected to the terminal and communicates indirectly with the terminal via the master ear. Considering that the earphone switched to the monaural mode may be a master ear and may also be a slave ear in the present application, in order to ensure normal use of the TWS earphone, when the earphone switched to the monaural mode is the slave ear, the slave ear needs to be switched from the slave ear mode to the master ear mode so as to be connected to the terminal after switching.
As can be seen from the above embodiments, there may be two general cases when the present ear is switched to the monaural mode: 1) The anti-ear box, 2) and the anti-ear are out of communication range (out of communication range means that the communication connection cannot be established between the self-ear and the anti-ear). Therefore, in the present application, after the earphone mode of the user is switched to the monaural mode, the user can determine whether to enter the main ear mode according to whether the user is the main ear and the monaural mode entered by the user. Specifically, if the mode is a single-ear mode entered by inserting the ear into the box, the main ear mode is maintained if the mode is the main ear; if the slave ear is the slave ear, the slave ear mode is switched to the master ear mode. If the single-ear mode enters through the abnormal master-to-ear communication, if the single-ear mode is within the communication range with the terminal and the single-ear mode is the master ear, the master ear mode is kept; if the mobile terminal is in the communication range with the terminal and the mobile terminal is a slave ear, the mobile terminal is switched from the slave ear mode to the master ear mode, so that connection is established with the terminal, and switching between the master ear and the slave ear is achieved. It can be seen that in this way it can be ensured that the TWS headset will also work properly when switching from ear to monaural mode. In addition, it should be noted that, whether the terminal is in the communication range with the terminal may be determined as follows: and sending a detection message to the terminal, judging whether a response message returned by the terminal is received within a preset time, if so, indicating that the self and the terminal are in a communication range, and otherwise, indicating that the self and the terminal are not in the communication range. Of course, the determination may be made in other ways, and the present application is not limited to this.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mode switching system of a wireless headset according to the present invention.
The mode switching system includes:
the receiving module 61 is configured to receive a synchronization trigger instruction sent by the local ear when a synchronization event of the local ear and the opposite ear occurs;
a determining module 62, configured to determine an earphone initiating a synchronization event according to the synchronization trigger instruction;
a mode switching module 63 for executing a headset mode switching strategy corresponding to the originating headset of the synchronization event.
For the introduction of the mode switching system of the wireless headset provided by the present invention, please refer to the above method embodiment, and the present invention is not repeated herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a TWS headset system according to the present invention.
The invention also provides a TWS earphone system, which comprises an earphone;
the earphone includes:
a memory 71 for storing a computer program;
a processor 72 for implementing the steps of the mode switching method of the wireless headset as described above when executing the computer program.
As a preferred embodiment, the earphones are a master earphone and a slave earphone.
Specifically, in the present application, both the master earphone and the slave earphone may perform the mode switching method of the wireless earphone.
As a preferred embodiment, further comprising:
the state detection module is used for detecting whether the state of the earphone changes;
the processor 72 is also configured to generate a synchronization event with the ear and generate a synchronization trigger instruction when the state of the headset changes.
Specifically, the state detection module herein includes an in-out box state detection module (e.g., a hall sensor or an infrared sensor, etc.), an in-out ear state detection module (e.g., an acceleration sensor, etc.), and a state detection module (e.g., a signal detection module, etc.) connected to the mobile phone. In addition, in the application, the processor can be multiplexed with the processor for carrying out the synchronous event, so that the space of the TWS earphone is reduced, and the cost is reduced.
In addition, please refer to the above method embodiments for the introduction of the TWS headset system provided by the present invention, which is not described herein again.
It should be noted that, in the present specification, 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method for switching modes of a wireless headset, comprising:
receiving a synchronous trigger instruction sent by the ear when the synchronous event of the ear and the opposite ear occurs;
determining an initiating earphone of the synchronous event according to the synchronous trigger instruction;
executing an earphone mode switching strategy corresponding to an initiating earphone of the synchronous event, wherein the earphone mode comprises a monaural mode and a binaural mode;
wherein the occurrence of the synchronous event of the local ear and the opposite ear comprises:
the method comprises the steps that a synchronous message which is sent when the state of an opposite ear changes and comprises opposite ear state information is received by the opposite ear;
performing a headset mode switching policy corresponding to the initiating headset of the synchronization event, including:
correspondingly switching the earphone mode according to the information of the ear-facing state;
alternatively, the occurrence of the synchronous events of the local ear and the opposite ear comprises:
the method comprises the steps that when the self state of the ear changes, a synchronous message comprising ear state information is sent to the opposite ear;
performing a headset mode switching policy corresponding to the initiating headset of the synchronization event, including:
judging whether a synchronization success triggering instruction sent by the ear when receiving the response message returned by the opposite ear is received within a preset time; the response message includes information on the state of the ear;
if so, correspondingly switching the earphone mode according to the information of the ear-facing state;
otherwise, switching the earphone mode of the user to the single-ear mode.
2. The method for switching modes of a wireless headset according to claim 1, wherein determining whether a synchronization success triggering instruction sent by the local headset when receiving the response message returned by the opposite headset is received within a preset time includes:
restarting a timer, wherein the timer finishes timing when the timer times to a preset time;
and judging whether a synchronization success triggering instruction sent by the ear when receiving the response message returned by the opposite ear is received before the timer is timed to end.
3. The method for switching modes of a wireless headset according to claim 2, wherein before switching the headset mode of the wireless headset to the monaural mode, the method further comprises:
adding one to the current cycle number;
judging whether the current cycle number is smaller than a preset value or not;
if yes, triggering the local ear to send a synchronous message including the local ear state information to the opposite ear again, and returning to the step of restarting the timer;
otherwise, the current cycle number is cleared, and the step of switching the earphone mode of the earphone into the single-ear mode is carried out.
4. The mode switching method of wireless headset according to any one of claims 1 to 3, wherein switching the headset mode of the headset according to the information on the state of the ear correspondingly comprises:
judging whether the opposite ears are in the box or not according to the opposite ear state information;
if yes, switching the earphone mode of the user to a single-ear mode;
otherwise, switching the own earphone mode into a double-ear mode.
5. The mode switching method of a wireless headset according to claim 4, wherein after switching the headset mode of itself to the monaural mode, further comprising:
keeping a main ear mode, wherein the box is inserted into the ear and the ear is the main ear at the moment, and/or the ear does not receive a synchronous successful trigger instruction returned by the ear, and the ear and the terminal are in a communication range and the ear is the main ear; or the like, or, alternatively,
and switching the self from a slave ear mode to a master ear mode, wherein the opposite ear enters the box and the local ear is a slave ear, and/or the local ear does not receive a synchronous successful trigger instruction returned by the opposite ear, and the local ear and the terminal are in a communication range and the local ear is the slave ear.
6. A mode switching system for a wireless headset, comprising:
the receiving module is used for receiving a synchronous trigger instruction sent by the ear when the synchronous event of the ear and the opposite ear occurs;
the determining module is used for determining an initiating earphone of the synchronous event according to the synchronous trigger instruction;
a mode switching module for executing an earphone mode switching strategy corresponding to the initiating earphone of the synchronization event;
wherein the occurrence of the synchronous event of the local ear and the opposite ear comprises:
the method comprises the steps that a synchronous message which is sent when the state of an opposite ear changes and comprises opposite ear state information is received by the opposite ear;
the mode switching module is specifically configured to perform corresponding mode switching on the earphone mode of the mode switching module according to the information on the ear-facing state;
alternatively, the occurrence of the synchronous events of the local ear and the opposite ear comprises:
the method comprises the steps that when the self state of the ear changes, a synchronous message comprising ear state information is sent to the opposite ear;
the mode switching module is specifically configured to:
judging whether a synchronization success triggering instruction sent when the response message returned by the opposite ear is received by the local ear is received within a preset time; the response message includes information on the state of the ear;
if so, carrying out corresponding mode switching on the earphone mode of the user according to the ear-facing state information;
otherwise, switching the earphone mode of the user into a single-ear mode.
7. A TWS headset system comprising a headset;
the earphone includes:
a memory for storing a computer program;
a processor for implementing the steps of the method of mode switching of a wireless headset according to any of claims 1 to 5 when executing the computer program.
8. The TWS headset system of claim 7 further comprising:
the state detection module is used for detecting whether the state of the earphone changes or not;
the processor is further used for generating a synchronous event with the ears and generating a synchronous trigger instruction when the state of the earphones changes.
CN201911159354.XA 2019-11-22 2019-11-22 Mode switching method and system of wireless earphone and TWS earphone system Active CN110933738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911159354.XA CN110933738B (en) 2019-11-22 2019-11-22 Mode switching method and system of wireless earphone and TWS earphone system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911159354.XA CN110933738B (en) 2019-11-22 2019-11-22 Mode switching method and system of wireless earphone and TWS earphone system

Publications (2)

Publication Number Publication Date
CN110933738A CN110933738A (en) 2020-03-27
CN110933738B true CN110933738B (en) 2022-11-22

Family

ID=69851816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911159354.XA Active CN110933738B (en) 2019-11-22 2019-11-22 Mode switching method and system of wireless earphone and TWS earphone system

Country Status (1)

Country Link
CN (1) CN110933738B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866644B (en) * 2020-07-14 2022-02-22 歌尔科技有限公司 Bluetooth headset, detection method and device of Bluetooth headset and storage medium
CN111988695B (en) * 2020-08-24 2022-11-22 歌尔科技有限公司 Earphone synchronization method, device, equipment and storage medium of wireless earphone
CN114245453B (en) * 2021-12-27 2023-10-13 东莞市阿尔法电子科技有限公司 Time synchronization method, device, TWS earphone, computer equipment and storage medium
CN114945208A (en) * 2022-04-30 2022-08-26 恒玄科技(上海)股份有限公司 Method and system for reducing power consumption and earphone pair
CN114827973B (en) * 2022-06-29 2022-11-29 荣耀终端有限公司 Binaural consistency control method, graphical interface, system and related device
CN115086828B (en) * 2022-08-23 2022-12-27 荣耀终端有限公司 Earphone control method and related device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204305289U (en) * 2014-11-27 2015-04-29 深圳市乐迈科技有限公司 Can the bluetooth earphone that switches of single ears
WO2015127402A1 (en) * 2014-02-23 2015-08-27 Lee Daniel Keewoong An intelligent earplug system
CN205961391U (en) * 2016-08-31 2017-02-15 刘万丽 Earphone of changeable monaural or ears mode
EP3293611A1 (en) * 2016-09-06 2018-03-14 Apple Inc. Devices, methods, and graphical user interfaces for haptic mixing
CN108496374A (en) * 2018-04-13 2018-09-04 万魔声学科技有限公司 Earphone Working mode switching method and device, voicefrequency circuit, earphone and earphone system
CN110191389A (en) * 2019-06-25 2019-08-30 歌尔股份有限公司 Mulit-point Connection method, apparatus, bluetooth headset and the TWS earphone of wireless headset
US10412481B1 (en) * 2019-01-30 2019-09-10 Bestechnic (Shanghai) Co., Ltd. Operation mode switch of wireless headphones

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7590233B2 (en) * 2005-12-22 2009-09-15 Microsoft Corporation User configurable headset for monaural and binaural modes
US20110144779A1 (en) * 2006-03-24 2011-06-16 Koninklijke Philips Electronics N.V. Data processing for a wearable apparatus
GB2471871B (en) * 2009-07-15 2011-12-14 Sony Comp Entertainment Europe Apparatus and method for a virtual dance floor
US9002023B2 (en) * 2012-04-17 2015-04-07 Bose Corporation In-ear audio device customization

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015127402A1 (en) * 2014-02-23 2015-08-27 Lee Daniel Keewoong An intelligent earplug system
CN204305289U (en) * 2014-11-27 2015-04-29 深圳市乐迈科技有限公司 Can the bluetooth earphone that switches of single ears
CN205961391U (en) * 2016-08-31 2017-02-15 刘万丽 Earphone of changeable monaural or ears mode
EP3293611A1 (en) * 2016-09-06 2018-03-14 Apple Inc. Devices, methods, and graphical user interfaces for haptic mixing
CN108496374A (en) * 2018-04-13 2018-09-04 万魔声学科技有限公司 Earphone Working mode switching method and device, voicefrequency circuit, earphone and earphone system
US10412481B1 (en) * 2019-01-30 2019-09-10 Bestechnic (Shanghai) Co., Ltd. Operation mode switch of wireless headphones
CN110191389A (en) * 2019-06-25 2019-08-30 歌尔股份有限公司 Mulit-point Connection method, apparatus, bluetooth headset and the TWS earphone of wireless headset

Also Published As

Publication number Publication date
CN110933738A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN110933738B (en) Mode switching method and system of wireless earphone and TWS earphone system
CN108718467B (en) Voice data transmission method, wireless headset and TWS headset
CN108696784B (en) Wireless earphone role switching method, wireless earphone and TWS earphone
CN111436041B (en) Method and device for switching master and slave Bluetooth earphones, bluetooth earphones and system
CN111225346B (en) Connection switching method of wireless earphone, wireless earphone and storage medium
US9407981B2 (en) Audio class-compliant charging accessories for wireless headphones and headsets
CN109547897B (en) Wireless earphone connection method, device and system and wireless earphone box
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
CN111063170B (en) TWS earphone loss prevention method, TWS earphone and computer readable storage medium
CN110636485B (en) Bluetooth automatic connection method and method for initiating Bluetooth connection
WO2021143784A1 (en) State detection method and earphones, earphone charging box, and storage medium
CN111436042B (en) Bluetooth headset and dynamic master-slave switching method, device and system thereof
EP3820168B1 (en) Microphone hole blockage detection method and related product
CN110677767A (en) Wireless headset control method and system and TWS headset
CN111510902B (en) Bluetooth device and Bluetooth state switching method and device thereof
WO2023036178A1 (en) Bluetooth connection method and apparatus, earphone device, and computer-readable storage medium
CN114500730A (en) Popup window function control method, device and computer readable storage medium
CN112291683B (en) TWS earphone control method and device
CN114245362A (en) Device reconnection method and Bluetooth peripheral
CN112437371B (en) BLE link switching method, equipment, earphone pair, chip and medium
EP3057377B1 (en) Network device, terminal device and voice service control method
CN116074679B (en) Method, device, equipment and storage medium for determining left and right states of intelligent earphone
CN111988695B (en) Earphone synchronization method, device, equipment and storage medium of wireless earphone
CN115968054A (en) Communication method, communication device, earphone set and computer readable medium
WO2023035782A1 (en) Bluetooth connection method and apparatus, earphone device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant