CN109151644B - Method and device for distributing master-slave state of earphone - Google Patents

Method and device for distributing master-slave state of earphone Download PDF

Info

Publication number
CN109151644B
CN109151644B CN201811108982.0A CN201811108982A CN109151644B CN 109151644 B CN109151644 B CN 109151644B CN 201811108982 A CN201811108982 A CN 201811108982A CN 109151644 B CN109151644 B CN 109151644B
Authority
CN
China
Prior art keywords
earphone
weight coefficient
influence factor
factor
influence
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
CN201811108982.0A
Other languages
Chinese (zh)
Other versions
CN109151644A (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.)
Wanmo acoustics Co.,Ltd.
Original Assignee
1More 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 1More Inc filed Critical 1More Inc
Priority to CN201811108982.0A priority Critical patent/CN109151644B/en
Publication of CN109151644A publication Critical patent/CN109151644A/en
Application granted granted Critical
Publication of CN109151644B publication Critical patent/CN109151644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Abstract

The embodiment of the invention relates to a master-slave state distribution method of an earphone, which comprises the following steps: acquiring a first system influence factor of a first earphone and a second system influence factor of a second earphone; the first system influencing factor and the second system influencing factor both comprise at least two different system influencing factors; distributing weight coefficients to all system influence factors of a first earphone, superposing all system influence factors according to corresponding weight coefficients to serve as the first influence factors of the first earphone, distributing weight coefficients to all system influence factors of a second earphone, superposing all system influence factors according to the distributed weight coefficients to serve as the second influence factors of the second earphone; comparing the first influence factor with the second influence factor; and distributing master-slave earphone states for the first earphone and the second earphone according to the comparison result of the first influence factor and the second influence factor, so that the communication stability of the master earphone and the terminal can be improved.

Description

Method and device for distributing master-slave state of earphone
Technical Field
The invention relates to the technical field of earphones, in particular to a master-slave state distribution method and device of an earphone.
Background
Existing headsets, such as TWS (True Wireless Stereo) headsets, which have been in increasing demand in recent years, are generally required to communicate with terminals. In order to realize the connection between the earphone and the terminal, various networking systems between the earphone and the terminal (e.g., a mobile phone) are available. The headsets are typically paired, but these networking systems still only allow one of the headsets, which we call the master headset, to communicate with the terminal directly, and the other headset, which we call the slave headset, to communicate with the terminal indirectly, only through the master headset, or in some other way.
At present, the earphone is allocated as a master earphone or a slave earphone by comparing single system influence factors of two earphones, and allocating master-slave states of the earphones according to the system influence factors of the two earphones. The system influencing factor is a factor influencing the communication stability of the headset. For example, for a TWS headset that is a battery-charged wireless headset, the only system factor of concern when a TWS headset is currently assigned as a master or slave is the remaining power of the headset.
However, the master-slave state allocation of the earphones is confirmed only by comparing single system influence factors of the two earphones, other system influence factors are not considered, and the communication stability of the master earphone and the terminal is influenced finally.
Disclosure of Invention
Based on this, it is necessary to provide a master-slave state allocation method for earphones.
A master-slave state allocation method of a headset comprises the following steps:
acquiring a first system influence factor of a first earphone and a second system influence factor of a second earphone; the first system influencing factor and the second system influencing factor both comprise at least two different system influencing factors;
distributing weight coefficients to all system influence factors of a first earphone, superposing all system influence factors according to corresponding weight coefficients to serve as the first influence factors of the first earphone, distributing weight coefficients to all system influence factors of a second earphone, superposing all system influence factors according to the distributed weight coefficients to serve as the second influence factors of the second earphone;
comparing the first influence factor with the second influence factor; and
and distributing master-slave earphone states for the first earphone and the second earphone according to the comparison result of the first influence factor and the second influence factor.
According to the master-slave state distribution method of the earphones, when the master-slave states of the first earphones and the second earphones are distributed, at least two different system influence factors are considered comprehensively, corresponding weight coefficients are distributed for the corresponding system influence factors, and compared with the situation that only one system factor of the two earphones is compared to confirm the master-slave states of the earphones, the master earphones distributed by the method are used for communicating with the terminal, and therefore communication stability can be improved.
In one embodiment, the first system influencing factor and the second system influencing factor each include at least two of remaining battery capacity of the earphones, a sequence of taking out the storage box from the earphones, a sequence of putting the earphones into the ear, strength of a mobile phone signal received by the earphones, and magnitude of ambient noise of the earphones.
In one embodiment, the step of comparing the first influencing factor and the second influencing factor is to compare the magnitude relationship between the numerical value of the first influencing factor and the numerical value of the second influencing factor;
the step of allocating master-slave earphone states to the first earphone and the second earphone according to the first influence factor and the second influence factor is allocating the master-slave earphone states to the first earphone and the second earphone according to the magnitude relation between the numerical value of the first influence factor and the numerical value of the second influence factor.
In one embodiment, if it is detected that the first earphone and the second earphone are in the on state, the first system influence factor and the second system influence factor both include five different system influence factors, namely, remaining earphone power, an order of taking out the earphone from the storage box, an order of putting the earphone into the ear, a signal intensity of a mobile phone received by the earphone, and an ambient noise of the earphone;
the step of acquiring the first system influence factor of the first earphone comprises the steps of acquiring the residual electric quantity of the first earphone, acquiring the order of taking out the storage box from the first earphone, acquiring the sequence of putting the first earphone into the ear, acquiring the intensity of a mobile phone signal received by the first earphone, and acquiring the magnitude of the environmental noise of the first earphone; the step of acquiring the second system influence factors of the second earphone comprises the steps of acquiring the residual electric quantity of the second earphone, acquiring the order of taking out the storage box of the second earphone, acquiring the in-ear order of the second earphone, acquiring the intensity of a mobile phone signal received by the second earphone and acquiring the ambient noise of the second earphone.
In one embodiment, if it is detected that the first earphone and the second earphone are in a normal working mode, the first system influence factor and the second system influence factor both include three different system influence factors, namely, remaining earphone power, mobile phone signal strength received by the earphone, and environmental noise of the earphone;
the step of acquiring the first system influence factor of the first earphone comprises the steps of acquiring the residual electric quantity of the first earphone, acquiring the intensity of a mobile phone signal received by the first earphone and acquiring the magnitude of the environmental noise of the first earphone; the step of obtaining the second system influence factor of the second earphone comprises the steps of obtaining the residual electric quantity of the second earphone, obtaining the mobile phone signal strength received by the second earphone and obtaining the environmental noise of the second earphone.
In one embodiment, the step of assigning a weight coefficient to each system influencing factor of the first headphone and superimposing each system influencing factor according to the corresponding weight coefficient as the first influencing factor of the first headphone comprises: distributing a first electric quantity weight coefficient for the residual electric quantity of the first earphone, distributing a first in-ear weight coefficient for the in-ear sequence of the first earphone, distributing a first taking weight coefficient for the taking-out sequence of the first earphone from the storage box, distributing a first signal weight coefficient for the mobile phone signal strength received by the earphone of the first earphone, and distributing a first noise weight coefficient for the environmental noise of the first earphone; multiplying a residual electric quantity value of a first earphone by a first electric quantity weight coefficient, multiplying an in-ear sequence value of the first earphone by a first in-ear weight coefficient, multiplying a sequence value of a first earphone taking-out storage box by a first taking-out weight coefficient, multiplying a mobile phone signal intensity value received by the earphone of the first earphone by a first signal weight coefficient, multiplying an environmental noise value of the first earphone by a first noise weight coefficient, adding the obtained multiplied values, and taking the added value as an influence factor of the first earphone;
the step of assigning a weight coefficient to each system influencing factor of the second headphone, and superimposing each system influencing factor according to the assigned weight coefficient, as a second influencing factor of the second headphone, includes: distributing a second electric quantity weight coefficient for the residual electric quantity of the second earphone, distributing a second in-ear weight coefficient for the in-ear sequence of the second earphone, distributing a second taking weight coefficient for the taking-out sequence of the second earphone, distributing a second signal weight coefficient for the mobile phone signal strength received by the earphone of the second earphone, and distributing a second noise weight coefficient for the environmental noise of the second earphone; multiplying the residual electric quantity value of the second earphone by a second electric quantity weight coefficient, multiplying the in-ear sequence value of the second earphone by a second in-ear weight coefficient, multiplying the sequence value of the second earphone taking out the storage box by a second taking out weight coefficient, multiplying the mobile phone signal intensity value received by the earphone of the second earphone by a second signal weight coefficient, multiplying the environmental noise value of the second earphone by a second noise weight coefficient, adding the obtained multiplied values, and taking the added value as an influence factor of the second earphone.
In one embodiment, the first power weighting factor is equal to the second power weighting factor, the first in-ear weighting factor is equal to the second in-ear weighting factor, the first extraction weighting factor is equal to the second extraction weighting factor, the first signal weighting factor is equal to the second signal weighting factor, and the first noise weighting factor is equal to the second noise weighting factor.
In one embodiment, the method further comprises:
acquiring a first user influence factor of whether a user needs to fix a first earphone as a main earphone or not, and acquiring a second user influence factor of whether the user needs to fix a second earphone as a main earphone or not;
assigning a first user fixed weight coefficient to the first user influencing factor and a second user fixed weight coefficient to the second user influencing factor;
the step of superposing the system influence factors according to the corresponding weight coefficients as the first influence factor comprises: taking the sum of the system influence factors superposed by the system influence factors according to the corresponding weight coefficients as the first system influence factor, distributing a first system weight coefficient for the first system influence factor, and superposing the first system influence factor and the first user influence factor according to the corresponding weight coefficients as the first influence factor;
the step of superposing the factors according to the corresponding weight coefficients to serve as the second influence factor comprises: and taking the sum of the system influence factors superposed by the system influence factors according to the corresponding weight coefficients as the second system influence factor, distributing a second system weight coefficient for the second system influence factor, and superposing the first system influence factor and the first user influence factor according to the corresponding weight coefficients as the first influence factor.
In one embodiment, if information that a user needs to fix a first earphone as a master earphone is acquired, configuring a first system weight coefficient to be zero, configuring a first user fixed weight coefficient to be 1, configuring the current state of the first earphone to be a master earphone state according to the information that the user needs to fix the first earphone as the master earphone, and configuring the current state of a second earphone to be a slave earphone state;
and if the information that the user needs to fix the second earphone as the main earphone is acquired, configuring a second system weight coefficient to be zero, configuring a second user fixed weight coefficient to be 1, configuring the current state of the second earphone to be the main earphone state according to the information that the user needs to fix the second earphone as the main earphone, and configuring the current state of the first earphone to be the slave earphone state.
A master-slave state allocation apparatus for a headset, the apparatus comprising:
the acquisition module is used for acquiring a first system influence factor of the first earphone and acquiring a second system influence factor of the second earphone; the first system influencing factor and the second system influencing factor both comprise at least two different system influencing factors;
the weight distribution and superposition module is used for distributing weight coefficients for all system influence factors of the first earphone, superposing all the system influence factors according to the corresponding weight coefficients to serve as the first influence factors of the first earphone, distributing weight coefficients for all the system influence factors of the second earphone, and superposing all the system influence factors according to the distributed weight coefficients to serve as the second influence factors of the second earphone;
the comparison module is used for comparing the first influence factor with the second influence factor; and
and the master-slave earphone state distribution module is used for distributing master-slave earphone states for the first earphone and the second earphone according to the comparison result of the first influence factor and the second influence factor.
Drawings
Fig. 1 is a schematic flowchart of a master-slave state allocation method for an earphone according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a master-slave state allocation method of an earphone in another embodiment;
fig. 3 is a schematic flow chart illustrating a method for assigning a master-slave state of an earphone in an embodiment, where the earphone is in a power-on state and a normal operating mode;
fig. 4 is a schematic structural diagram of a master-slave state allocation apparatus of a headset according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a flowchart illustrating a master-slave state allocation method for an earphone according to an embodiment of the present application. The master-slave state allocation method of the headset in fig. 1 comprises the following steps:
102, acquiring a first system influence factor of a first earphone and a second system influence factor of a second earphone; the first system influencing factor and the second system influencing factor each comprise at least two different system influencing factors. The system influencing factor is a factor influencing the communication stability of the earphone and the terminal.
The first earpiece may be a left earpiece and the second earpiece may be a right earpiece. The first and second headsets may be TWS headsets each powered by a separate battery.
The first system influence factor and the second system influence factor include but are not limited to any two or more of remaining capacity of the earphones, taking-out sequence of the earphones from the storage box, inserting sequence of the earphones into the ears, mobile phone signal strength received by the earphones and ambient noise of the earphones.
It should be noted that the acquired first system influencing factor and the acquired second system influencing factor should have the same factor content.
The earphone residual capacity is the residual capacity of the battery for the wireless earphone charged by the battery, the residual capacity of the battery is large, and the service life of the corresponding earphone is long. The earphones are generally placed in the storage box when not used, and the earphone taking-out sequence of the storage box is that one earphone is taken out of the storage box relative to the other earphone. The earphone-in-ear sequence is a sequence in which one earphone is worn at the user's ear relative to the other earphone. The earphone communicates with the terminal through the networking system, the better the mobile phone signal strength received by the earphone is, and the probability of sound break and sound blocking is reduced.
And 104, distributing weight coefficients for all system influence factors of the first earphone, superposing all system influence factors according to the corresponding weight coefficients to serve as the first influence factors of the first earphone, distributing weight coefficients for all system influence factors of the second earphone, and superposing all system influence factors according to the distributed weight coefficients to serve as the second influence factors of the second earphone.
The weight coefficients assigned to the respective system influencing factors of the first headphone and the second headphone may range from 0 to 1. The weight coefficient can be distributed according to the influence of each system influence factor on the earphone, and the system influence factor with large influence on the earphone can be distributed with a larger weight coefficient.
It should be noted that the sum of the weight coefficients assigned to the system influencing factors of the first earphone is equal to the sum of the weight coefficients assigned to the system influencing factors of the second earphone. For the same system influencing factor, the factor weight factor assigned to the first earpiece should be equal to the factor weight factor assigned to the second earpiece.
And 106, comparing the first influence factor with the second influence factor.
For the first earphone and the second earphone, the step of superposing the system influence factors according to the distributed weight coefficients is to superpose the numerical values of the system influence factors according to the distributed weight coefficients. Comparing the first influencing factor with the second influencing factor is to compare the magnitude relationship between the value of the first influencing factor and the value of the second influencing factor.
And 108, distributing master-slave earphone states for the first earphone and the second earphone according to the comparison result of the first influence factor and the second influence factor so as to determine the master-slave earphone.
Specifically, the step of comparing the first influence factor with the second influence factor is to compare a magnitude relationship between a numerical value of the first influence factor and a numerical value of the second influence factor, and the step of assigning the master-slave earphone state to the first earphone and the second earphone according to the first influence factor and the second influence factor is to assign the master-slave earphone state to the first earphone and the second earphone according to the magnitude relationship between the numerical value of the first influence factor and the numerical value of the second influence factor.
In a specific embodiment, the first system influence factor and the second system influence factor each include five factors of remaining battery capacity of the earphones, an order of taking out the storage box from the earphones, an order of putting the earphones into the ears, strength of a mobile phone signal received by the earphones, and magnitude of environmental noise of the earphones; then, the step of acquiring the first system influence factor of the first earphone comprises the steps of acquiring the residual electric quantity of the first earphone, acquiring the order of taking out the storage box from the first earphone, acquiring the sequence of putting the first earphone into the ear, acquiring the signal intensity of the mobile phone received by the first earphone, and acquiring the magnitude of the environmental noise of the first earphone; the step of acquiring the second system influence factors of the second earphone comprises the steps of acquiring the residual electric quantity of the second earphone, acquiring the order of taking out the storage box of the second earphone, acquiring the sequence of putting the second earphone into the ear, acquiring the intensity of a mobile phone signal received by the second earphone and acquiring the ambient noise of the second earphone.
Then, further, assigning a weight coefficient to each system influencing factor of the first earphone, and superimposing each system influencing factor according to the corresponding weight coefficient, as the first influencing factor of the first earphone, the step includes: distributing a first electric quantity weight coefficient for the residual electric quantity of the first earphone, distributing a first in-ear weight coefficient for the in-ear sequence of the first earphone, distributing a first taking weight coefficient for the taking-out sequence of the first earphone from the storage box, distributing a first signal weight coefficient for the mobile phone signal strength received by the earphone of the first earphone, and distributing a first noise weight coefficient for the environmental noise of the first earphone; multiplying the residual electric quantity value of the first earphone by a first electric quantity weight coefficient, multiplying the in-ear sequence value of the first earphone by a first in-ear weight coefficient, multiplying the sequence value of the first earphone taking out a storage box by a first taking out weight coefficient, multiplying the mobile phone signal intensity value received by the earphone of the first earphone by a first signal weight coefficient, multiplying the environmental noise value of the first earphone by a first noise weight coefficient, adding the obtained multiplied values, and taking the added value as an influence factor of the first earphone;
distributing weight coefficients for each system influence factor of the second earphone, and superposing each system influence factor according to the distributed weight coefficients, wherein the step of using each system influence factor as the second influence factor of the second earphone comprises the following steps: distributing a second electric quantity weight coefficient for the residual electric quantity of the second earphone, distributing a second in-ear weight coefficient for the in-ear sequence of the second earphone, distributing a second taking weight coefficient for the taking-out sequence of the second earphone, distributing a second signal weight coefficient for the mobile phone signal strength received by the earphone of the second earphone, and distributing a second noise weight coefficient for the environmental noise of the second earphone; multiplying the residual electric quantity value of the second earphone by a second electric quantity weight coefficient, multiplying the in-ear sequence value of the second earphone by a second in-ear weight coefficient, multiplying the sequence value of the second earphone taking out the storage box by a second taking out weight coefficient, multiplying the mobile phone signal intensity value received by the earphone of the second earphone by a second signal weight coefficient, multiplying the environmental noise value of the second earphone by a second noise weight coefficient, adding the obtained multiplied values, and taking the added value as an influence factor of the second earphone.
The first electric quantity weight coefficient is equal to the second electric quantity weight coefficient, the first in-ear weight coefficient is equal to the second in-ear weight coefficient, the first taking-out weight coefficient is equal to the second taking-out weight coefficient, the first signal weight coefficient is equal to the second signal weight coefficient, and the first noise weight coefficient is equal to the second noise weight coefficient.
The step of acquiring the remaining power of the first earphone and the second earphone may be detecting the remaining power of a battery of the first earphone and a battery of the second earphone, respectively.
The order of taking out the storage box of the first earphone and the second earphone can be obtained by detecting the time when the first earphone and the second earphone leave the storage box. The order of taking out the receiver of the earphone that can utilize great numerical representation to take out the receiver earlier, the order of taking out the receiver of the earphone of receiver is then represented with less numerical value afterwards. For example, the timing when the first earphone is detected to be out of the storage case is earlier than the timing when the second earphone is detected, the order in which the first earphone is taken out of the storage case may be represented by numeral "4", and the order in which the second earphone is taken out of the storage case may be represented by numeral "3".
The receiver can be the box body that can accomodate the earphone, can charge to the earphone again.
The order of the earphones entering the ear first can be represented by a larger numerical value, and the order of the earphones entering the ear later can be represented by a smaller numerical value. For example, if a first earphone is detected to enter the ear first, the sequence of the first earphone entering the ear may be represented by the number "2", and the sequence of the second earphone entering the ear may be represented by the number "1".
The environmental noise of the first earphone and the second earphone can be obtained by utilizing the microphones of the first earphone and the second earphone, because the earphone which is influenced by the environmental noise to a small extent can be selected as the main earphone in consideration of the communication quality of the earphones, the environmental noise value of the earphone which is influenced by a large factor value can be represented by utilizing a large numerical value under the condition that the earphone which is influenced by a large factor value is used as the main earphone, and the environmental noise value of the earphone which is influenced by a small numerical value is represented by utilizing a small numerical value. For example, the noise level of the first earphone is less than the noise level of the second earphone, the ambient noise value of the first earphone may be characterized by a number "2" and the ambient noise value of the second earphone may be characterized by a number "1".
The signal intensity of the mobile phone received by the first earphone can be obtained by detecting the signal intensity received by the first earphone. In particular, the signal strength received by the first earphone can be detected by detecting the radio frequency parameter of the first earphone. The step of obtaining the strength of the mobile phone signal received by the first earphone is also the same, and is not described again.
Then, in the method for allocating master-slave states of earphones in the embodiment of the present application, if the value of the first influencing factor is greater than the value of the second influencing factor, the current state of the first earphone is configured as the master earphone state, and the current state of the second earphone is configured as the slave earphone state; and if the numerical value of the first influence factor is smaller than the numerical value of the second influence factor, configuring the current state of the second earphone as the master earphone state, and configuring the current state of the first earphone as the slave earphone state.
Specifically, for the system influence factor considered by the user to be heavily considered, the value of the system influence factor may be made larger than the values of the other system influence factors, or a weight coefficient assigned to the system influence factor may be larger than the weight coefficients assigned to the other system influence factors.
In one embodiment, referring to fig. 2, the method for assigning a master-slave state of an earphone in the embodiment of the present application further includes the following steps:
step 202, acquiring whether a user needs to fix a first user influence factor with a first earphone as a main earphone, and acquiring whether the user needs to fix a second user influence factor with a second earphone as a main earphone.
Step 204, assigning a first user fixed weight coefficient to the first user influencing factor and assigning a second user fixed weight coefficient to the second user influencing factor.
Then, the step of superposing the system influence factors according to the corresponding weight coefficients as the first influence factor includes: taking the sum of the system influence factors superposed by the system influence factors according to the corresponding weight coefficients as a first system influence factor, distributing a first system weight coefficient for the first system influence factor, and superposing the first system influence factor and the first user influence factor according to the corresponding weight coefficients as a first influence factor; the step of superposing all the factors according to the corresponding weight coefficients as a second influence factor comprises the following steps: and taking the sum of the system influence factors superposed by the system influence factors according to the corresponding weight coefficients as a second system influence factor, distributing a second system weight coefficient for the second system influence factor, and superposing the first system influence factor and the first user influence factor according to the corresponding weight coefficients as a first influence factor.
The influencing factors of the first earphone and the second earphone can be calculated according to the following formula:
influence factors of (CH 1) (C1 (the order of taking out the storage box from the earphone) + C2 (the order of putting the earphone into the ear) + C3 (the residual capacity of the earphone) + C4 (the signal intensity of the earphone receiving the mobile phone) + C5 (the environmental noise of the earphone) + DEG) + CH2 (whether the user needs to fix the earphone as the main earphone or not)) formula (1)
Wherein CH1 is an assigned system weight coefficient, CH2 is an assigned user-fixed weight coefficient, C1 is an assigned power weight coefficient, C2 is an assigned in-ear weight coefficient, C3 is an assigned take-out weight coefficient, C4 is an assigned signal weight coefficient, and C5 is an assigned noise weight coefficient.
For factors not considered, their respective weighting coefficients may be set to 0. For example, C4 may be set to zero regardless of the signal strength of the handset received by the headset.
For example, the first earphone is an earphone a, the second earphone is an earphone B, the system influence factors of the earphone a include the remaining power of the earphone a, the order in which the earphone a takes out the storage box, the order in which the earphone a goes into the ear, the mobile phone signal strength received by the earphone a and the environmental noise of the earphone a, the user influence factors of the earphone a include whether the user needs to fix the earphone a as the main earphone, the system influence factors of the earphone B include the remaining power of the earphone B, the order in which the earphone B takes out the storage box, the order in which the earphone B goes into the ear, the mobile phone signal strength received by the earphone B and the environmental noise of the earphone B, and whether the user needs to fix the earphone B as the main earphone.
The influence factors of the A earphone are calculated according to the following formula:
the earphone influence factor a is CH1A (C1A (the order of taking out the storage box from the earphone a) + C2A (the order of putting the earphone into the ear) + C3A (the remaining power of the earphone a) + C4A (the signal strength of the earphone receiving the mobile phone) + C5A (the ambient noise of the earphone a) + · · ·) + CH2A (whether the user needs to fix the earphone a as the main earphone))
Wherein CH1A is the system weight coefficient of the assigned a-headphone, CH2A is the user-fixed weight coefficient of the assigned a-headphone, C1A is the power weight coefficient of the assigned a-headphone, C2A is the in-ear weight coefficient of the assigned a-headphone, C3A is the take-out weight coefficient of the assigned a-headphone, C4A is the signal weight coefficient of the assigned a-headphone, and C5A is the noise weight coefficient of the assigned a-headphone.
The influence factors of the B earphone are calculated according to the following formula:
b earphone influencing factor CH1B (C1B (the order of taking out the storage box from the B earphone) + C2B (the order of putting the B earphone into the ear) + C3B (the remaining battery capacity of the B earphone) + C4B (the signal strength of the B earphone receiving the handset) + C5B (the ambient noise of the B earphone) + · · ·) + CH2B (whether the user needs to fix the B earphone as the main earphone))
Wherein CH1B is a system weight coefficient of the assigned B-headphone, CH2B is a user-fixed weight coefficient of the assigned B-headphone, C1B is an electric quantity weight coefficient of the assigned B-headphone, C2B is an in-ear weight coefficient of the assigned B-headphone, C3B is an out-take weight coefficient of the assigned B-headphone, C4B is a signal weight coefficient of the assigned B-headphone, and C5B is a noise weight coefficient of the assigned B-headphone.
In one embodiment, please refer to fig. 3, in the method for allocating master-slave states of earphones in the embodiment of the present application, if it is detected that the first earphone and the second earphone are in the on state, the first system influencing factor and the second system influencing factor both include five factors, namely, an order in which the earphones take out of the storage box, an order in which the earphones enter the ear, a remaining electric quantity of the earphones, a signal strength of the earphones receiving the mobile phone, and an environmental noise of the earphones, and also consider whether the user needs to fix the earphones as the master earphone.
If the first earphone and the second earphone are detected to be in the normal working mode, the first system influence factors and the second system influence factors respectively comprise three factors of the remaining electric quantity of the earphone, the signal intensity of the earphone for receiving the mobile phone and the environmental noise of the earphone, namely, the sequence of taking out the storage box from the earphone and the sequence of putting the earphone into the ear are not considered.
And the first earphone and the second earphone are both in a state of listening to the target sound for the user, and the normal working mode is the normal working mode.
Referring to fig. 3, in the method for allocating master-slave states of earphones in the embodiment of the present application, the intelligent determination system may compare the first influencing factor with the second influencing factor, and then allocate master-slave earphone states to the first earphone and the second earphone according to a comparison result of the first influencing factor and the second influencing factor.
The intelligent judgment system may be specifically an APP used by one of the terminals, such as a mobile phone, to allocate a master and a slave headset.
According to the master-slave state distribution method of the earphones, when the master-slave states of the first earphones and the second earphones are distributed, at least two different system influence factors are considered comprehensively, corresponding weight coefficients are distributed for the corresponding system influence factors, and compared with the situation that only one system factor of the two earphones is compared to confirm the master-slave states of the earphones, the master earphones distributed by the method are used for communicating with the terminal, and therefore communication stability can be improved.
A master-slave state distribution device for earphones is also proposed, please refer to fig. 4, the device includes:
an obtaining module 410, configured to obtain a first system influencing factor of a first headset, and obtain a second system influencing factor of a second headset; the first system influencing factor and the second system influencing factor comprise at least two different system influencing factors;
the weight distribution and superposition module 420 is configured to distribute a weight coefficient to each system influence factor of the first earphone, superpose each system influence factor according to the corresponding weight coefficient, serve as the first influence factor of the first earphone, distribute a weight coefficient to each system influence factor of the second earphone, superpose each system influence factor according to the distributed weight coefficients, and serve as the second influence factor of the second earphone;
a comparison module 430, configured to compare the first influence factor with the second influence factor; and
and a master-slave earphone state allocation module 440, configured to allocate master-slave earphone states for the first earphone and the second earphone according to the comparison result of the first influencing factor and the second influencing factor.
An electronic device is also provided, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to perform the steps of the method for assigning a master-slave state of a headset according to any embodiment of the present application.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (4)

1. A method for master-slave state allocation for a headset, the method comprising:
acquiring first system influence factors of a first earphone, wherein the first system influence factors comprise at least two of the earphone residual capacity of the first earphone, the order of taking out a storage box by the earphone, the earphone in-ear order, the mobile phone signal strength received by the earphone and the environmental noise of the earphone;
respectively allocating a weight coefficient to the acquired first system influence factor and carrying out weighting calculation to obtain a numerical value of the first influence factor, wherein the weight coefficient comprises at least two of a first electric quantity weight coefficient, a first extraction weight coefficient, a first in-ear weight coefficient, a first signal weight coefficient and a first noise weight coefficient;
acquiring a second system influence factor of a second earphone, wherein the second system influence factor has the same factor content as the first system influence factor;
respectively allocating a weight coefficient to the obtained second system influence factor and performing weighting calculation to obtain a numerical value of the second influence factor, wherein the weight coefficient comprises at least two of a second electric quantity weight coefficient, a second extraction weight coefficient, a second in-ear weight coefficient, a second signal weight coefficient and a second noise weight coefficient, the first electric quantity weight coefficient is equal to the second electric quantity weight coefficient, the first in-ear weight coefficient is equal to the second in-ear weight coefficient, the first extraction weight coefficient is equal to the second extraction weight coefficient, the first signal weight coefficient is equal to the second signal weight coefficient, and the first noise weight coefficient is equal to the second noise weight coefficient;
and distributing master-slave earphone states for the first earphone and the second earphone according to the comparison result of the magnitude relation between the numerical value of the first influence factor and the numerical value of the second influence factor.
2. The method of claim 1, wherein the weighting calculation comprises the steps of:
multiplying the numerical value of each system influence factor by the weight coefficient distributed by the system influence factor;
the resulting products are added.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
if the first user influence factor or the second user influence factor is obtained, setting the weight coefficient of the first user influence factor or the second user influence factor to be 1, setting the weight coefficients of the first system influence factor and the second system influence factor to be zero, and carrying out weighting calculation again; the first user influence factor is that the first earphone is fixed as the main earphone by the user, and the second user influence factor is that the second earphone is fixed as the main earphone by the user.
4. A master-slave state allocation apparatus for a headset, the apparatus comprising:
the acquisition module is used for acquiring a first system influence factor of the first earphone and a second system influence factor of the second earphone, wherein the first system influence factor comprises at least two of the earphone residual capacity of the first earphone, the earphone taking-out sequence of the storage box, the earphone in-ear sequence, the mobile phone signal strength received by the earphone and the environmental noise of the earphone; the second system influence factor has the same factor content as the first system influence factor;
the weight distribution and superposition module is used for distributing a weight coefficient to the obtained first system influence factors respectively and carrying out weighted calculation to obtain the numerical value of the first influence factors, wherein the weight coefficient comprises at least two of a first electric quantity weight coefficient, a first extraction weight coefficient, a first in-ear weight coefficient, a first signal weight coefficient and a first noise weight coefficient; respectively allocating a weight coefficient to the obtained second system influence factor and performing weighting calculation to obtain a numerical value of the second influence factor, wherein the weight coefficient comprises at least two of a second electric quantity weight coefficient, a second extraction weight coefficient, a second in-ear weight coefficient, a second signal weight coefficient and a second noise weight coefficient, the first electric quantity weight coefficient is equal to the second electric quantity weight coefficient, the first in-ear weight coefficient is equal to the second in-ear weight coefficient, the first extraction weight coefficient is equal to the second extraction weight coefficient, the first signal weight coefficient is equal to the second signal weight coefficient, and the first noise weight coefficient is equal to the second noise weight coefficient;
the comparison module is used for comparing the magnitude relation between the numerical value of the first influence factor and the numerical value of the second influence factor;
and the master-slave earphone state distribution module is used for distributing master-slave earphone states for the first earphone and the second earphone according to the comparison result of the magnitude relation between the numerical value of the first influence factor and the numerical value of the second influence factor.
CN201811108982.0A 2018-09-21 2018-09-21 Method and device for distributing master-slave state of earphone Active CN109151644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811108982.0A CN109151644B (en) 2018-09-21 2018-09-21 Method and device for distributing master-slave state of earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811108982.0A CN109151644B (en) 2018-09-21 2018-09-21 Method and device for distributing master-slave state of earphone

Publications (2)

Publication Number Publication Date
CN109151644A CN109151644A (en) 2019-01-04
CN109151644B true CN109151644B (en) 2020-04-14

Family

ID=64823194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811108982.0A Active CN109151644B (en) 2018-09-21 2018-09-21 Method and device for distributing master-slave state of earphone

Country Status (1)

Country Link
CN (1) CN109151644B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922540B (en) * 2019-03-01 2021-12-03 展讯通信(上海)有限公司 Wireless transceiver group communication method, device group, system and storage medium
CN110166879B (en) * 2019-06-28 2020-11-13 歌尔科技有限公司 Voice acquisition control method and device and TWS earphone
CN111225308B (en) * 2019-10-30 2022-02-15 维沃移动通信有限公司 Electric quantity prompting method, storage box and earphone

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1912388A2 (en) * 2006-10-11 2008-04-16 Samsung Electronics Co., Ltd. Audio delivery system and method for mobile phone
CN102651893A (en) * 2011-02-25 2012-08-29 华为终端有限公司 Service base station switching method, system and device
CN104185221A (en) * 2014-02-19 2014-12-03 上海物联网有限公司 Vertical network switching method based on self-adaptive weight adjustment
CN105338078A (en) * 2015-10-26 2016-02-17 北京百度网讯科技有限公司 Data storage method and device used for storing system
CN205961391U (en) * 2016-08-31 2017-02-15 刘万丽 Earphone of changeable monaural or ears mode
CN106878921A (en) * 2017-01-04 2017-06-20 佳禾智能科技股份有限公司 Earphone, earphone and voice signal send the method and device connected between equipment
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Ears wireless headset and its communication control method
CN106998511A (en) * 2017-04-14 2017-08-01 广东思派康电子科技有限公司 Receiver and wireless headset in wireless earphone assembly, wireless earphone assembly
CN107071620A (en) * 2017-05-11 2017-08-18 建荣半导体(深圳)有限公司 A kind of bluetooth earphone and its matching method, Bluetooth chip and storage device
CN107071618A (en) * 2017-04-26 2017-08-18 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN107145330A (en) * 2017-04-26 2017-09-08 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN107404412A (en) * 2017-09-12 2017-11-28 浙江中控技术股份有限公司 A kind of switching method of server, device, system and electronic equipment
WO2018026201A1 (en) * 2016-08-03 2018-02-08 에잇비트 주식회사 System for determining attributes and state of wireless stereo headset element
CN108271090A (en) * 2018-01-10 2018-07-10 深圳市沃特沃德股份有限公司 Bluetooth headset master-slave switching method and device
CN108496374A (en) * 2018-04-13 2018-09-04 万魔声学科技有限公司 Earphone Working mode switching method and device, voicefrequency circuit, earphone and earphone system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7577262B2 (en) * 2002-11-18 2009-08-18 Panasonic Corporation Microphone device and audio player
CN103947170B (en) * 2011-11-21 2018-01-19 英特尔公司 The wireless device and method operated for low-power and low data rate
CN107707280A (en) * 2017-08-30 2018-02-16 努比亚技术有限公司 Antenna handover trigger control method, communication terminal and computer-readable recording medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1912388A2 (en) * 2006-10-11 2008-04-16 Samsung Electronics Co., Ltd. Audio delivery system and method for mobile phone
CN102651893A (en) * 2011-02-25 2012-08-29 华为终端有限公司 Service base station switching method, system and device
CN104185221A (en) * 2014-02-19 2014-12-03 上海物联网有限公司 Vertical network switching method based on self-adaptive weight adjustment
CN105338078A (en) * 2015-10-26 2016-02-17 北京百度网讯科技有限公司 Data storage method and device used for storing system
WO2018026201A1 (en) * 2016-08-03 2018-02-08 에잇비트 주식회사 System for determining attributes and state of wireless stereo headset element
CN205961391U (en) * 2016-08-31 2017-02-15 刘万丽 Earphone of changeable monaural or ears mode
CN106878921A (en) * 2017-01-04 2017-06-20 佳禾智能科技股份有限公司 Earphone, earphone and voice signal send the method and device connected between equipment
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Ears wireless headset and its communication control method
CN106998511A (en) * 2017-04-14 2017-08-01 广东思派康电子科技有限公司 Receiver and wireless headset in wireless earphone assembly, wireless earphone assembly
CN107071618A (en) * 2017-04-26 2017-08-18 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN107145330A (en) * 2017-04-26 2017-09-08 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN107071620A (en) * 2017-05-11 2017-08-18 建荣半导体(深圳)有限公司 A kind of bluetooth earphone and its matching method, Bluetooth chip and storage device
CN107404412A (en) * 2017-09-12 2017-11-28 浙江中控技术股份有限公司 A kind of switching method of server, device, system and electronic equipment
CN108271090A (en) * 2018-01-10 2018-07-10 深圳市沃特沃德股份有限公司 Bluetooth headset master-slave switching method and device
CN108496374A (en) * 2018-04-13 2018-09-04 万魔声学科技有限公司 Earphone Working mode switching method and device, voicefrequency circuit, earphone and earphone system

Also Published As

Publication number Publication date
CN109151644A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109151644B (en) Method and device for distributing master-slave state of earphone
US9344793B2 (en) Audio apparatus and methods
CN103475985B (en) Hearing devices system with rechargeable battery
CN110166871B (en) Earphone charging box, TWS earphone, working state switching method and storage medium
CN110381490B (en) Communication method for wireless earphone, wireless earphone and wireless equipment
CN106254993B (en) A kind of earphone left and right acoustic channels self-adaptation control method and device
CN109246517B (en) Noise reduction microphone correction method of wireless earphone, wireless earphone and charging box
CN105163216A (en) Automatic music playing method and earphone
CN111225320B (en) Earphone wearing state detection method, earphone and readable storage medium
CN110147557A (en) The charging box and storage medium of a kind of interpretation method, system and wireless headset
CN108810696A (en) A kind of electric quantity reminding method, TWS earphones and earphone charging equipment
CN109429162A (en) Including the hearing aid device for the self-test unit for determining the state of one or more functions component based on feedback response
CN108649660A (en) Electric quantity display method and wireless transmitting-receiving equipments, charging equipment
CN110366062B (en) TWS earphone in-place detection method and system
WO2020019843A1 (en) Microphone hole blockage detection method and related product
US20210314022A1 (en) Device and method for adaptively controlling preamble in uwb network
WO2015026859A1 (en) Audio apparatus and methods
CN113557755A (en) External information assisted channel assessment for bluetooth adaptive frequency hopping
CN103986818B (en) A kind of information processing method and electronic equipment
CN111970603A (en) Detection method, audio component and readable storage medium
CN112821963A (en) Method and device for reducing interference to loudspeaker and electronic equipment
WO2018170920A1 (en) Signal processing method and apparatus
CN111416412A (en) Charging control method and device and terminal equipment
US20100150386A1 (en) Universal serial bus interfaces for a hearing aid
CN111447600A (en) Audio sharing method for wireless earphone, terminal device and 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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 35th floor, block a, Tanglang City, 3333 Liuxian Avenue, Nanshan District, Shenzhen, Guangdong 518000

Patentee after: Wanmo acoustics Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: 1MORE Inc.