Disclosure of Invention
The application aims to provide a method, a system and a device for switching connecting equipment of earphones and the earphone equipment, which can realize that two earphones respectively play audio signals of the two connecting equipment at the same moment, expand the application range of the earphones and enhance the user experience.
In order to solve the above technical problem, the present application provides a method for switching a connection device of an earphone, which is applied to any earphone in an earphone device, and the method for switching the connection device includes:
determining the wearing type of the earphone equipment, wherein the wearing type is worn by the same user or different users;
selecting a local target connecting device from the plurality of connecting devices according to the wearing type;
and receiving and playing the audio signal of the target connection equipment.
Optionally, the process of determining the wearing category of the headset device includes:
acquiring a first inertia parameter of a local machine;
acquiring a second inertial parameter of another earphone in the earphone device;
and when the first inertial parameter and the second inertial parameter have the same direction or opposite directions, judging that the wearing type of the earphone equipment is the same user wearing, otherwise, judging that the wearing type of the earphone equipment is different user wearing.
Optionally, the process of acquiring the first inertial parameter of the local computer includes:
when the local machine is detected to be in a wearing state, acquiring a first inertia parameter of the local machine;
the process of acquiring a second inertial parameter of another one of the headset devices comprises:
and when detecting that the other earphone in the earphone equipment is in the wearing state, acquiring a second inertia parameter of the other earphone.
Optionally, the process of determining the wearing category of the headset device includes:
acquiring the distance between the local earphone and the other earphone in the earphone equipment;
when the distance is smaller than a first preset value, the wearing type of the earphone equipment is that the earphone equipment is worn by the same user;
when the distance is larger than a second preset value, the wearing type of the earphone equipment is that the earphone equipment is worn by different users;
the second preset value is greater than or equal to the first preset value.
Optionally, the process of acquiring the distance between the local device and another earphone in the earphone device includes:
and measuring the distance between the local earphone and the other earphone in the earphone equipment through RSSI.
Optionally, the selecting a local target connection device from the plurality of connection devices according to the wearing category includes:
when the wearing type is that the user wears the earphone, selecting target connecting equipment of another earphone from the plurality of connecting equipment as local target connecting equipment;
and when the wearing type is that the earphone is worn by a plurality of users, selecting a connecting device different from the target connecting device of another earphone from the plurality of connecting devices as the local target connecting device.
Optionally, the selecting a local target connection device from the plurality of connection devices according to the wearing category includes:
acquiring the wearing sequence of the earphone and the other earphone;
and selecting the target connection equipment of the local equipment from the plurality of connection equipment according to the wearing sequence and the wearing type.
In order to solve the above technical problem, the present application further provides a system for switching a connection device of an earphone, which is applied to any earphone in an earphone device, and the system for switching the connection device includes:
the determining module is used for determining the wearing type of the earphone equipment, and the wearing type is worn by the same user or worn by different users;
the selection module is used for selecting the local target connection equipment from the plurality of connection equipment according to the wearing type;
and the control module is used for receiving and playing the audio signal of the target connection equipment.
In order to solve the above technical problem, the present application further provides a device for switching connection devices of an earphone, including:
a memory for storing a computer program;
a processor for implementing the steps of the method for switching a connected device of a headset as described in any one of the above when executing the computer program.
In order to solve the above technical problem, the present application further provides an earphone device, which includes two earphones, wherein the two earphones include the above earphone connection device switching device.
The application provides a method for switching connecting equipment of earphones, which comprises the steps of firstly judging the wearing type of the earphone equipment, namely whether two earphones in the earphone equipment are worn by the same user or different users, then selecting the corresponding target connecting equipment according to the wearing type of the earphone equipment respectively, receiving and playing audio signals of the corresponding target connecting equipment respectively by the two earphones, and not playing audio signals of other connecting equipment, so that the two earphones can play the audio signals of the two connecting equipment respectively at the same moment, the application range of the earphones is expanded, and the user experience is enhanced. The application also provides a system and a device for switching the connecting equipment of the earphone and the earphone equipment, and the system and the device have the same beneficial effects as the method for switching the connecting equipment of the earphone.
Detailed Description
The core of the application is to provide a method, a system and a device for switching the connecting equipment of the earphones and the earphone equipment, so that the two earphones can respectively play the audio signals of the two connecting equipment at the same moment, the application range of the earphones is expanded, and the user experience is enhanced.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, it should be noted that the earphone device includes two earphones, which are a left earphone and a right earphone, and both the two earphones can be paired with a plurality of connection devices. Before the scheme is executed, the left earphone is matched with the computer and the mobile phone, and the right earphone is matched with the computer and the mobile phone, so that the left earphone and the right earphone can receive audio signals of the mobile phone and/or the computer selectively.
It will be appreciated that the headphone arrangement may be selected for different wearing categories in different application environments, e.g. in some application environments the left and right headphones may be worn by the same user, in other application environments the left and right headphones may be worn by both users separately, taking into account that the left and right headphones may have different selections for which connected device audio signal they each are to receive in different wearing categories of the headphone arrangement.
Specifically, the execution main body of the scheme of this embodiment may be any earphone taken out of the charging bin and worn in the earphone device, and hereinafter, the control logic of this application will be described by taking a left earphone as an example, and the control logic of a right earphone is the same.
The following describes a method for switching connection devices of earphones provided by the present application in detail.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for switching a connection device of an earphone according to the present application, where the method for switching the connection device of the earphone includes:
s101: determining the wearing type of the earphone equipment, wherein the wearing type is that the earphone equipment is worn by the same user or different users;
specifically, the wearing type of the headset device is determined, that is, it is determined whether the local headset and the right headset are worn by the same user or worn by two users respectively, wherein the wearing of the same user further includes a case that one user only wears the local headset and the right headset is still not taken out of the charging bin, that is, the wearing of the headset device is performed by a single user.
In this embodiment, the wearing type of the earphone device may be determined according to a preset period, so as to find the change of the wearing type of the earphone device in time and respond.
It can be understood that, assuming that the local machine and the right earphone are both taken out from the charging bin, there is a sequence between the taking-out times of the local machine and the right earphone, and the wearing type of the earphone device can be detected by the earphone taken out first. For example, assuming that the local machine is taken out of the charging bin for wearing, the local machine may detect the wearing type of the headset device at preset time intervals, and send the detection result to the right headset normally worn, so that the right headset determines the wearing type of the headset device according to the detection result of the local machine. Correspondingly, if the right earphone is taken out of the charging bin and worn, the wearing type of the earphone equipment can be detected by the right earphone at preset time intervals, and the wearing type of the earphone equipment can be determined according to the detection result sent by the right earphone after the earphone is worn by the earphone.
Further, any one of the earphone devices may be selected in advance as a master earphone, and the other earphone may be selected as a slave earphone. After the earphone is worn by the main control earphone, the main control earphone can detect the wearing type of the earphone equipment once every preset time and sends the detection result to the normally worn auxiliary control earphone, so that the auxiliary control earphone determines the wearing type of the earphone equipment according to the detection result of the main control earphone. Considering the situation that the slave control earphone is taken out from the charging bin before the master control earphone, if the wearing type detection result sent by the master control earphone is not received in a preset time period from the wearing time of the slave control earphone, the local machine determines that the wearing type of the earphone equipment is single-machine wearing, and if the wearing type detection result sent by the master control earphone is subsequently received, the wearing type of the earphone equipment is determined according to the wearing type detection result.
The judgment of the wearing type is finished by one earphone, so that the two earphones can be ensured to adopt the same wearing type detection result to carry out subsequent control, and the target connecting equipment corresponding to each earphone can be accurately selected in the subsequent process.
Of course, the wearing type of the earphone device may also be detected by each of the two earphones, that is, after the earphone device is taken out from the charging bin and worn, the wearing type of the earphone device is detected, after the right earphone is taken out from the charging bin and worn, the wearing type of the earphone device is detected, and the two earphones select the corresponding target connection devices according to the wearing types obtained by the respective detections.
S102: selecting a local target connecting device from the plurality of connecting devices according to the wearing type;
s103: and receiving and playing the audio signal of the target connection device.
During the actual use of the earphone device, each earphone can only play the audio signal of one connected device at the same time. Therefore, it is necessary to select one of all the connection devices according to the wearing type of the headphone device as the target connection device of the local device, and the local device receives and plays only the audio signal of the target connection device, and does not receive the audio signals of other paired connection devices.
As described above, the wearing category includes wearing by the same user or wearing by different users, in this application, when both earphones in the earphone device are taken out from the charging bin, the same user wears, that is, the local earphone and the right earphone are worn by one user, and different users wear, that is, the local earphone is worn by one user and the right earphone is worn by another user, and when only the local earphone in the earphone device is taken out from the charging bin, the wearing category of the same user further includes wearing by a single earphone.
It will be appreciated that there is a communication link between the local and right ear phones to enable data interaction, so that both may communicate information about the respective selected target connected device.
As an alternative embodiment, the process of selecting the local target connection device from the plurality of connection devices according to the wearing category includes:
when the wearing type is that the user wears the earphone, selecting a target connecting device of another earphone from the plurality of connecting devices as a local target connecting device;
when the wearing type is that the earphone is worn by a plurality of users, a connecting device different from the target connecting device of another earphone is selected from the plurality of connecting devices as the local target connecting device.
Specifically, if the wearing type corresponds to that the local machine and the right earphone are worn by one user, the target connection device selected by the local machine is the same as the target connection device selected by the right earphone, and the local machine and the right earphone both receive and output the audio signal of the same target connection device, so that higher stereo hearing experience can be realized.
If the wearing type corresponding to the local machine and the right earphone is respectively worn by two users, the target connection device selected by the local machine and the target connection device selected by the right earphone can be different. If the local machine is worn by the user A and the right earphone is worn by the user B, if the local machine selects the computer as the target connection equipment, the audio signal of the computer is received and played, and correspondingly, the right earphone selects the mobile phone as the target connection equipment and receives and plays the audio signal of the earphone, so that the purpose that the two earphones respectively play the audio signals of different connection equipment at the same time is achieved. Certainly, in some application environments, for example, when the user a and the user B watch movies through one computer, at this time, the local computer and the right earphone can both select the computer as the target connection device, so that the local computer and the right earphone both receive and play the connection signal of the computer.
If the wearing type is single-machine wearing, namely only the machine is taken out to be worn, and the right earphone is not taken out from the charging bin, the machine can select the target connecting equipment according to the information such as the audio signal playing sequence of each connecting equipment, the playing priority of each connecting equipment and the like. For example, after the mobile phone is taken out of the charging bin and worn, if the mobile phone outputs an audio signal first, the mobile phone is used as a target connection device of the mobile phone; if the mobile phone and the computer both output audio signals, the connection equipment with higher playing priority can be selected as the target connection equipment of the mobile phone and the computer according to the preset playing priority of the mobile phone and the computer; if the mobile phone and the computer both output audio signals, after the mobile phone and the computer are taken out from the charging bin, the mobile phone and the computer both pause the output of the audio signals, and a user selects a certain device to continue playing, wherein the selected device is the target connection device of the mobile phone.
It can be seen that, in this embodiment, the wearing type of the earphone device is first determined, that is, two earphones in the earphone device are worn by the same user or different users, then the two earphones select their respective target connection devices according to the wearing type of the earphone device, and both the two earphones receive and play audio signals of their respective corresponding target connection devices, but do not play audio signals of other connection devices, so that the two earphones can play audio signals of the two connection devices at the same time, the application range of the earphones is expanded, and user experience is enhanced.
On the basis of the above-described embodiment:
as an alternative embodiment, the process of determining the wearing class of the ear speaker device includes:
acquiring a first inertia parameter of a local machine;
acquiring a second inertia parameter of another earphone in the earphone equipment;
when the first inertial parameter and the second inertial parameter are in the same direction or in opposite directions, the wearing type of the earphone equipment is judged to be that the earphone equipment is worn by the same user, otherwise, the wearing type of the earphone equipment is judged to be that the earphone equipment is worn by different users.
As an alternative embodiment, the process of acquiring the first inertia parameter of the local computer includes:
when the local machine is detected to be in a wearing state, acquiring a first inertia parameter of the local machine;
the process of obtaining a second inertial parameter of another headphone in the headphone device includes:
and when the other earphone in the earphone equipment is detected to be in a wearing state, acquiring a second inertia parameter of the other earphone.
Specifically, each earphone in the earphone device comprises an inertial sensor and a proximity sensor, wherein the proximity sensor is used for executing wearing detection of the earphone, the inertial sensor acquires inertial parameters of the earphone after judging that the earphone is normally worn, and the two earphones can wirelessly transmit the respective inertial parameters. The method comprises the steps of explaining a wearing type detection process by taking a left earphone as an example, after the left earphone is taken out from a charging bin, working a proximity sensor in the left earphone, detecting whether the left earphone is worn by a user, if so, working an inertia sensor of the left earphone, obtaining a first inertia parameter of the left earphone, comparing the first inertia parameter with a second inertia parameter after the left earphone obtains the second inertia parameter of the right earphone, judging the wearing type of the earphone equipment to be worn by the same user when the first inertia parameter and the second inertia parameter are in the same direction or in opposite directions, otherwise, judging the wearing type of the earphone equipment to be worn by different users, and similarly judging the wearing type detection process of the right earphone.
Certainly, the above embodiment is a scheme in which both the two earphones perform wearing type detection, as another optional embodiment, the earphone taken out first may be used for detecting the wearing type according to the sequence in which the two earphones are taken out from the charging bin, assuming that the earphone taken out first is a left earphone, after the left earphone is worn normally, the inertial parameter of the left earphone is obtained through the inertial sensor, after the right earphone is taken out and worn, the inertial sensor obtains the inertial parameter of the left earphone, and then the inertial parameter is sent to the left earphone, the left earphone compares the inertial parameter of the left earphone with the inertial parameter sent by the right earphone to obtain the wearing type of the earphone device, and sends the wearing type to the right earphone.
The following illustrates how to determine the wearing type of the headphone device according to the inertial parameters of the left and right headphones: firstly, six axes of the inertial sensor are defined, and the three axes of the inertial sensor have acceleration ax,ay,azThe three-axis angular acceleration is arx,ary,arzA schematic diagram of a six-axis accelerometer is shown with reference to figure 2. After left earphone or right earphone take out from the storehouse that charges, left earphone and right earphone all can wear the detection through proximity sensor, and after detecting that left earphone wears, the inertial sensor of left earphone begins work and gathers six parameters, a promptly1x,a1y,a1z,a1rx,a1ry,a1rzWhen the proximity sensor of the right earphone detects that the right earphone is normally worn, the inertial sensor of the right earphone starts to work and collects six-axis parameters, namely a2x,a2y,a2z,a2rx,a2ry,a2rz。
When the left and right earphones are worn by the same user, no matter the head of the userWhat action, the relative position of the left earphone and the right earphone is invariable, the movement direction can be determined, the acceleration direction can be on the same straight line, either in the same direction or in the opposite direction, firstly, the acceleration of three axes is judged, the magnitude of the acceleration resultant vector of the three axes can be different, but the direction is always in the same direction or in the opposite direction, therefore, the direction of the resultant vector is judged,
and
are in the same direction or opposite directions, the magnitude of the values is not matched, and the directions of the three-axis angular accelerations are necessarily the same, namely a
1rxAnd a
2rxIn the same direction, a
1ryAnd a
2ryIn the same direction, a
1rzAnd a
2rzThe directions are the same. The inertial sensors of the left earphone and the right earphone respectively acquire six-axis parameters according to a preset period (such as 6ms), and when the six-axis parameters acquired in a plurality of continuous periods (such as 300ms) all meet the conditions, the wearing type is judged to be the same user wearing. Further, if a few sampling data in the middle do not meet the condition, the sampling data are discarded, and the data are added for matching to ensure the accuracy.
When the left earphone and the right earphone are worn by different users respectively, the motion conditions of the two users are different, and the synthesized vector direction is the same
And
angular acceleration a not in a straight line (direction not the same or opposite)
1rxAnd a
2rxThe directions may be different, a
1ryAnd a
2ryDirection, a
1rzAnd a
2rzDirections may be different, if six-axis parameters are acquired in a plurality of continuous periods (e.g. 300ms), as long as one of the above four points can be satisfied each time, the wearing type is determined to be worn by different users. Further, if a few data in the middle do not satisfy the above condition, the data matching is discarded and increasedTo ensure accuracy. It can be understood that the inertial sensor has higher precision, and can accurately identify the difference of the motion conditions of two users when the two users wear the device.
As an alternative embodiment, the process of determining the wearing class of the ear speaker device includes:
acquiring the distance between the local machine and the other earphone in the earphone equipment;
when the distance is smaller than a first preset value, the wearing type of the earphone equipment is that the earphone equipment is worn by the same user;
when the distance is greater than a second preset value, the wearing type of the earphone equipment is different for users to wear;
the second preset value is greater than or equal to the first preset value. As an alternative embodiment, the process of obtaining the distance between the local device and the other earphone in the earphone device includes:
the distance between the local machine and the other earphone in the earphone device is measured by RSSI.
It can be understood that, at present, two earphones in the earphone device communicate through bluetooth, and therefore, the distance between the two earphones can be determined through the bluetooth RSSI ranging principle. Specifically, the bluetooth RSSI ranging principle is to establish a correlation relationship between the bluetooth signal strength and the distance between the transceiver device, so as to calculate the distance between two bluetooth devices (i.e. the left earphone and the right earphone in the present application) by using the RSSI value. The relation is as follows:
d=10(A-txpower)/10n;
wherein d is the distance between the left earphone and the right earphone, n is an empirical value, calibration measurement is performed at a factory, txpower is the RSSI value when the current equipment is at a distance of 1m, and A is the currently acquired RSSI value. The value of D and A is approximately proportional. The RSSI calibration is performed on each pair of headphones before shipment from the factory, and the n and txpower values are fixed. Then, a simulation head (50-65cm) is used for calibration, the RSSI value worn by a normal person under the real wearing condition is obtained, and the RSSI value is stored in a flash.
When a user wears the earphone, the A value is detected, if the A value is in the interval stored in the flash, the wearing type is indicated to be that the user wears the earphone, the earphone can be worn by one person through voice prompt, if the earphone is actually worn by two persons, the positions of the two persons are far away, the earphone can be judged to be worn by different users again, the wearing type detection is stopped, the earphone is detected again until the action that the person takes off the earphone is detected, correspondingly, if the A value detected after the earphone is worn is not in the interval, the earphone is directly judged to be worn by different users.
As an alternative embodiment, the process of selecting the local target connection device from the plurality of connection devices according to the wearing category includes:
acquiring the wearing sequence of the earphone and the other earphone;
and selecting the target connecting equipment of the local equipment from the plurality of connecting equipment according to the wearing sequence and the wearing type.
Specifically, the left earphone is assumed to be taken out from the charging bin first, after the left earphone is taken out and worn, one connecting device is selected from a computer or a mobile phone to serve as a target connecting device of the left earphone, if the target connecting device is the mobile phone, the mobile phone is enabled to output an audio signal, the left earphone is guaranteed to be matched with the mobile phone, the audio signal output by the mobile phone is received, then after the right earphone is taken out from the charging bin to be worn, the wearing type is detected, if the right earphone is worn by the same user, the right earphone also selects the earphone to serve as the target connecting device, the audio signal output by the mobile phone is received and played, if the right earphone is worn by different users, the computer is selected as the target connecting device, and the audio signal output by the computer is received and played.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a connection device switching system of an earphone, which is applied to any earphone in the earphone devices, and the connection device switching system includes:
the determiningmodule 11 is configured to determine a wearing type of the headset device, where the wearing type is that the headset device is worn by the same user or worn by different users;
aselection module 12, configured to select a local target connection device from the multiple connection devices according to the wearing category;
and thecontrol module 13 is configured to receive and play an audio signal of the target connected device.
It can be seen that, in this embodiment, the wearing type of the earphone device is first determined, that is, two earphones in the earphone device are worn by the same user or different users, then the two earphones select their respective target connection devices according to the wearing type of the earphone device, and both the two earphones receive and play audio signals of their respective corresponding target connection devices, but do not play audio signals of other connection devices, so that the two earphones can play audio signals of the two connection devices at the same time, the application range of the earphones is expanded, and user experience is enhanced.
As an alternative embodiment, the process of determining the wearing class of the ear speaker device includes:
acquiring a first inertia parameter of a local machine;
acquiring a second inertia parameter of another earphone in the earphone equipment;
when the first inertial parameter and the second inertial parameter are in the same direction or in opposite directions, the wearing type of the earphone equipment is judged to be that the earphone equipment is worn by the same user, otherwise, the wearing type of the earphone equipment is judged to be that the earphone equipment is worn by different users.
As an alternative embodiment, the process of acquiring the first inertia parameter of the local computer includes:
when the local machine is detected to be in a wearing state, acquiring a first inertia parameter of the local machine;
the process of obtaining a second inertial parameter of another headphone in the headphone device includes:
and when the other earphone in the earphone equipment is detected to be in a wearing state, acquiring a second inertia parameter of the other earphone.
As an alternative embodiment, the process of determining the wearing class of the ear speaker device includes:
acquiring the distance between the local machine and the other earphone in the earphone equipment;
when the distance is smaller than a first preset value, the wearing type of the earphone equipment is that the earphone equipment is worn by the same user;
when the distance is greater than a second preset value, the wearing type of the earphone equipment is different for users to wear;
the second preset value is greater than or equal to the first preset value.
As an alternative embodiment, the process of obtaining the distance between the local device and the other earphone in the earphone device includes:
the distance between the local machine and the other earphone in the earphone device is measured by RSSI.
As an alternative embodiment, the process of selecting the local target connection device from the plurality of connection devices according to the wearing category includes:
when the wearing type is that the user wears the earphone, selecting a target connecting device of another earphone from the plurality of connecting devices as a local target connecting device;
when the wearing type is that the earphone is worn by a plurality of users, a connecting device different from the target connecting device of another earphone is selected from the plurality of connecting devices as the local target connecting device.
As an alternative embodiment, the process of selecting the local target connection device from the plurality of connection devices according to the wearing category includes:
acquiring the wearing sequence of the earphone and the other earphone;
and selecting the target connecting equipment of the local equipment from the plurality of connecting equipment according to the wearing sequence and the wearing type.
On the other hand, the present application further provides a device for switching connection devices of earphones, including:
a memory 21 for storing a computer program;
aprocessor 22 for implementing the steps of the method for switching a connected device of a headset as described in any of the above embodiments when executing the computer program.
Specifically, the memory 21 includes a nonvolatile storage medium, an internal memory 21. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory 21 provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. Theprocessor 22 provides the headphone device with computing and control capabilities and, when executing the computer program stored in the memory 21, may perform the following steps: determining the wearing type of the earphone equipment, wherein the wearing type is that the earphone equipment is worn by the same user or different users; selecting a local target connecting device from the plurality of connecting devices according to the wearing type; and receiving and playing the audio signal of the target connection device.
It can be seen that, in this embodiment, the wearing type of the earphone device is first determined, that is, two earphones in the earphone device are worn by the same user or different users, then the two earphones select their respective target connection devices according to the wearing type of the earphone device, and both the two earphones receive and play audio signals of their respective corresponding target connection devices, but do not play audio signals of other connection devices, so that the two earphones can play audio signals of the two connection devices at the same time, the application range of the earphones is expanded, and user experience is enhanced.
As an alternative embodiment, when theprocessor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: acquiring a first inertia parameter of a local machine; acquiring a second inertia parameter of another earphone in the earphone equipment; when the first inertial parameter and the second inertial parameter are in the same direction or in opposite directions, the wearing type of the earphone equipment is judged to be that the earphone equipment is worn by the same user, otherwise, the wearing type of the earphone equipment is judged to be that the earphone equipment is worn by different users.
As an alternative embodiment, when theprocessor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: when the local machine is detected to be in a wearing state, acquiring a first inertia parameter of the local machine; the process of obtaining a second inertial parameter of another headphone in the headphone device includes: and when the other earphone in the earphone equipment is detected to be in a wearing state, acquiring a second inertia parameter of the other earphone.
As an alternative embodiment, when theprocessor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: acquiring the distance between the local machine and the other earphone in the earphone equipment; when the distance is smaller than a first preset value, the wearing type of the earphone equipment is that the earphone equipment is worn by the same user; when the distance is greater than a second preset value, the wearing type of the earphone equipment is different for users to wear; the second preset value is greater than or equal to the first preset value.
As an alternative embodiment, when theprocessor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: the distance between the local machine and the other earphone in the earphone device is measured by RSSI.
As an alternative embodiment, when theprocessor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: when the wearing type is that the user wears the earphone, selecting a target connecting device of another earphone from the plurality of connecting devices as a local target connecting device; when the wearing type is that the earphone is worn by a plurality of users, a connecting device different from the target connecting device of another earphone is selected from the plurality of connecting devices as the local target connecting device.
As an alternative embodiment, when theprocessor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: acquiring the wearing sequence of the earphone and the other earphone; and selecting the target connecting equipment of the local equipment from the plurality of connecting equipment according to the wearing sequence and the wearing type.
On the other hand, this application still provides an earphone equipment, includes two earphones, and two earphones all include the connecting device auto-change over device of earphone above.
Please refer to the above embodiments for the introduction of the earphone device provided in the present application, which is not described herein again.
The earphone device has the same beneficial effects as the switching method of the connecting device of the earphone.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical 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 application. 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 application. Thus, the present application 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.