WO2022228122A1 - 一种耳机左右耳校准的方法及耳机 - Google Patents

一种耳机左右耳校准的方法及耳机 Download PDF

Info

Publication number
WO2022228122A1
WO2022228122A1 PCT/CN2022/086557 CN2022086557W WO2022228122A1 WO 2022228122 A1 WO2022228122 A1 WO 2022228122A1 CN 2022086557 W CN2022086557 W CN 2022086557W WO 2022228122 A1 WO2022228122 A1 WO 2022228122A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
compartment
shape information
attribute information
information
Prior art date
Application number
PCT/CN2022/086557
Other languages
English (en)
French (fr)
Inventor
吴汉
张献春
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022228122A1 publication Critical patent/WO2022228122A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a method for calibrating left and right ears of an earphone and an earphone.
  • headphones have become a very common tool in people's daily life. People can use earphones to listen to songs, make calls, watch dramas, etc. Headphones can be divided into wired headphones and wireless headphones.
  • the wireless earphone is usually a Bluetooth earphone, and this earphone can be equipped with an earphone box, and the earphone box is provided with two earphone compartments for placing the left earphone and the right earphone respectively.
  • the earphone compartment design of such wireless earphones is usually that the earphone compartment on the left side of the earphone box is used for placing the left earphone, and the earphone compartment on the right side of the earphone box is used for placing the right earphone.
  • the user may put the right earphone into the earphone compartment on the left side of the earphone box and the left earphone in the earphone compartment on the right side of the earphone box due to unexpected reasons. Then, when the user uses the wireless earphone next time, he will think that the earphone compartment on the left side of the earphone box is the left earphone (actually it is the right earphone), and wear it on the left ear, resulting in the wrong earphone wearing. In the same way, the left earphone will also be worn incorrectly.
  • the embodiments of the present application provide a method and an earphone for calibrating the left and right ears of an earphone, which can calibrate the shape of the earphone in the earphone compartment, so that the earphone taken out by the user from the left earphone compartment is the left earphone, and the earphone taken out from the right earphone compartment is the right earphone Headphones to prevent wearing errors.
  • an embodiment of the present application provides a method for calibrating left and right ears of an earphone, including: after the earphone is placed in the earphone compartment, the earphone obtains earphone attribute information corresponding to the earphone compartment, wherein the earphone compartment includes a left earphone compartment and a right earphone compartment , the earphone attribute information includes the first earphone attribute information corresponding to the left earphone compartment and the second earphone attribute information corresponding to the right earphone compartment, and the first earphone attribute information and the second earphone attribute information are different; If the headset shape information is inconsistent, the headset modifies the headset shape information according to the acquired headset attribute information, and the headset shape information is used to indicate that the headset is a left headset or a right headset.
  • the earphone when the earphone is placed in the left earphone compartment, the earphone obtains the first earphone attribute information of the left earphone compartment, then when the earphone shape information of the earphone is not the left earphone, the earphone can use its own earphone shape information according to the first earphone shape information.
  • the attribute information of an earphone is modified to the left earphone. Therefore, the earphone placed in the left earphone compartment can be calibrated as the left earphone. In the same way, the earphones placed in the right earphone compartment can be calibrated as the right earphone.
  • the earphone shape information corresponding to the earphones placed in the earphone compartment is corrected, so that the earphones placed in the left earphone compartment can be used as the left earphone, and the earphones placed in the right earphone compartment can be used as the right earphone, so that the user can
  • the earphones taken out from the left earphone compartment are the left earphones, and the earphones taken out from the right earphone compartment are the right earphones to prevent wearing errors.
  • the earphone after acquiring the earphone attribute information, the earphone directly modifies the earphone shape information according to the acquired earphone attribute information, without first judging the relationship between the earphone attribute information and the earphone attribute information. Whether the headset shape information in the headset is consistent. In this way, one determination step is reduced, and the computing power requirement of the processor in the headset is reduced. And, in some special cases, the reading and writing speed of the headset is improved.
  • acquiring the attribute information of the earphone corresponding to the earphone compartment by the earphone includes: the earphone obtains the attribute information of the first earphone through the communication interface or the charging interface of the left earphone compartment, or the earphone obtains the attribute information of the first earphone through the communication interface or the charging interface of the left earphone compartment.
  • the communication interface or the charging interface of the right earphone compartment obtains the attribute information of the second earphone.
  • This implementation enables the earphone to communicate with the earphone compartment when the earphone is placed in the earphone compartment, so as to quickly obtain the earphone attribute information corresponding to the earphone compartment, so as to calibrate the earphone shape information of the earphone.
  • the earphone acquiring the earphone attribute information corresponding to the earphone compartment includes: the earphone obtains the first earphone attribute information through the Bluetooth connection with the left earphone compartment, or the earphone obtains the first earphone attribute information by connecting with the right earphone compartment.
  • the Bluetooth connection of the earphone compartment acquires attribute information of the second earphone.
  • the earphone shape information is stored in the non-volatile storage medium or register of the earphone; the earphone attribute information is stored in the non-volatile storage medium or the earphone compartment. in the register.
  • This implementation enables the earphone shape information and the earphone attribute information to be stored in a suitable storage medium, so that the earphone can read the earphone shape information and obtain the earphone attribute information corresponding to the earphone compartment.
  • the earphone after the earphone is placed in the earphone compartment, the earphone obtains the earphone attribute information corresponding to the earphone compartment, which specifically includes: after the earphone is placed in the earphone compartment, the first A communication interface is connected to the second communication interface of the earphone compartment, so that the earphone obtains the attribute information of the earphone through the first communication interface and the second communication interface, or when the earphone is placed in the earphone compartment, the first charging communication multiplexing interface of the earphone is connected to the earphone.
  • the second charging communication multiplexing interface of the earphone compartment is connected, so that the earphone obtains the attribute information of the earphone through the first charging communication multiplexing interface and the second charging communication multiplexing interface, or when the earphone is placed in the earphone compartment, the Bluetooth of the earphone is connected to the earphone.
  • a connection is established between the Bluetooth of the earphone and the earphone, so that the earphone obtains the attribute information of the earphone through the Bluetooth communication between the earphone and the earphone compartment.
  • communication is performed after the headset and the headset compartment are connected through the communication interface, the charging communication multiplexing interface, or Bluetooth, so that the headset can obtain the attribute information of the headset corresponding to the headset compartment through the above communication method.
  • the method further includes: when detecting that the user is wearing an earphone, the earphone prompts the user that the type of earphone worn by the user is a left earphone or a right earphone according to its own earphone shape information.
  • the earphone can prompt the user that the type of earphone to be worn is the left earphone or the right earphone, which further improves the user experience.
  • the earphone prompting the user that the type of earphone worn by the user is the left earphone or the right earphone according to the earphone shape information of the earphone includes: the earphone determines the audio information corresponding to the earphone shape information; The earphone plays audio information, which is used to prompt the user whether the type of earphone to be worn is the left earphone or the right earphone.
  • the earphone can prompt the user that the type of earphone worn by the user is the left earphone or the right earphone by playing a sound, thereby further improving the user experience.
  • the earphone prompts the user that the type of earphone worn by the user is the left earphone or the right earphone according to its own earphone shape information.
  • the attribute includes at least one of vibration frequency, number of vibrations, duration of vibration, and intensity of vibration; the headset vibrates according to the vibration attribute, which is used to prompt the user that the type of headset worn is the left headset or the right headset.
  • the earphone can determine the vibration attribute according to the earphone shape information, so that the left and right earphones have different vibration modes, thereby prompting the user to wear the earphone type is the left earphone or the right earphone, thereby further improving the user experience.
  • the earphone prompting the user that the type of earphone worn by the user is the left earphone or the right earphone according to the earphone shape information of the earphone includes: the earphone sends the earphone shape to the terminal connected to the earphone. information, so that the terminal prompts the user that the type of earphone being worn is the left earphone or the right earphone.
  • This implementation enables the terminal to give a prompt according to the earphone shape information of the earphone, indicating that the type of earphone worn by the user is the left earphone or the right earphone, thereby further improving the user experience.
  • the method further includes: when it is detected that the user is wearing an earphone and another earphone at the same time, the earphone determines a delay corresponding to the shape information of the earphone; The delay prompts the user whether the type of earphone being worn is the left earphone or the right earphone.
  • This implementation enables the earphone to prompt according to the time delay corresponding to the shape information of the earphone, that is, the left earphone can prompt slower or faster than the right earphone, so that the prompting time of the left and right earphones is different, preventing the user from receiving the two earphones at the same time. The cue creates perceptual confusion.
  • the method further includes: the earphone sends earphone shape information to the terminal, so that the terminal prompts the user not to wear the left earphone or the right earphone according to the wearing state of the earphone and the earphone shape information earphone.
  • the terminal determines which earphone is not worn in combination with the earphone wearing state and earphone shape information, and then prompts the user that the left earphone or the right earphone is not worn, which can improve the user experience.
  • the method further includes: the earphone sends earphone shape information to the terminal, so that the terminal sends corresponding audio to the earphone according to the earphone shape information.
  • the earphone sends earphone shape information to the terminal, so that the terminal sends corresponding audio to the earphone according to the earphone shape information.
  • the method further includes: the earphone obtains at least two channels of audio from the terminal; and the earphone selects audio from the at least two channels of audio to play according to the earphone shape information.
  • the terminal communicates with the headset according to the cooperative mode, so that the terminal does not need to distinguish the audio of the left and right ear channels, which reduces the processor load of the terminal.
  • an embodiment of the present application provides an earphone, including one or more processors, a memory, a non-volatile storage medium, and a wired or wireless network interface; the memory is a short-term storage memory or a persistent storage memory, and the memory stores Program code; the non-volatile storage medium stores the earphone shape information; the processor is configured to communicate with the memory and the non-volatile storage medium, and execute the program code in the memory to cause the earphone to perform the method of the first aspect.
  • the earphone provided by the embodiment of the present application can achieve the beneficial effects of the method of the first aspect.
  • the earphone further includes a charging interface and/or a communication interface; when the earphone is placed in the earphone compartment, the charging interface and/or the communication interface are connected to the interface on the earphone compartment , to establish a connection between the headset and the headset compartment.
  • This implementation enables the earphone to communicate with the earphone compartment when the earphone is placed in the earphone compartment, so as to quickly obtain the earphone attribute information corresponding to the earphone compartment, so as to calibrate the earphone shape information of the earphone.
  • the earphone further includes a Bluetooth module: the earphone sends the earphone shape information to the terminal through the Bluetooth module.
  • This implementation enables the headset to send the headset shape information to the terminal through the Bluetooth module, so that the terminal can perform related processing according to the headset shape information, such as dual-transmission mode communication, dual-transmission mode communication, prompting according to the headset shape information, etc. experience.
  • the headset further includes an audio module and a speaker; the processor is further configured to send audio corresponding to the shape information of the headset to the speaker through the audio module, so that the speaker plays the audio.
  • This implementation enables the earphone to play audio through the speaker, thereby prompting the user that the type of earphone to be worn is the left earphone or the right earphone, thereby further improving the user experience.
  • Fig. 1a is the schematic diagram of traditional earphone and earphone box
  • Figure 1b is a schematic diagram of misplacement of earphones in traditional earphones and earphone boxes
  • 2a is a schematic diagram of two earphone compartments in which earphones are put into the earphone box in the embodiment of the application;
  • Fig. 2b is a schematic diagram of the earphone being put into the earphone box in the embodiment of the application;
  • FIG. 3 is a flowchart of a method for calibrating left and right ears of an earphone provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of signaling interaction between an earphone and an earphone box according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of the situation when the left and right earphones are reversed in an embodiment of the present application
  • 6a is a schematic diagram of playing audio after wearing the headset provided by an embodiment of the application.
  • FIG. 6b is a schematic diagram of prompting through a terminal after wearing an earphone according to an embodiment of the present application
  • FIG. 7 is a schematic diagram of connecting an earphone and a terminal through Bluetooth in an embodiment of the application.
  • FIG. 8 is a schematic diagram of prompting not wearing an earphone provided by an embodiment of the present application.
  • FIG. 9a is a schematic diagram of a headset and a terminal communicating in a dual-transmission mode according to an embodiment of the present application
  • FIG. 9b is a flowchart during dual-transmission mode communication provided by an embodiment of the present application.
  • 10a is a schematic diagram of a headset and a terminal communicating in a collaborative mode according to an embodiment of the application;
  • FIG. 10b is a flowchart of the collaborative mode communication provided by the embodiment of the present application.
  • FIG. 11a is a hardware schematic diagram of an earphone and an earphone box provided by an embodiment of the application.
  • FIG. 11b is another schematic diagram of hardware of an earphone and an earphone box provided by an embodiment of the application.
  • FIG. 12 is a schematic diagram of hardware of an earphone and a terminal provided in an embodiment of the application.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplary” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplary” or “such as” is intended to present the related concepts in a specific manner.
  • the earphone marked with “L” is the left earphone
  • the earphone marked with "R” is the right earphone.
  • FIG. 1a is a schematic diagram of a conventional earphone and an earphone box.
  • the shapes of the left earphone and the right earphone are specially manufactured, corresponding to the shape of the earphone compartment in the earphone box. Therefore, in Fig. 1a, the left earphone can be smoothly put into the left earphone compartment, and the right earphone can be smoothly put into the right earphone compartment.
  • the right earphone cannot be placed in the left earphone compartment, and the left earphone cannot be placed in the right earphone compartment.
  • the traditional earphones use a special earphone shape to ensure that the earphones are placed in the corresponding earphone compartment.
  • the user takes out the earphone from the earphone box, the earphone taken out from the left earphone compartment is the left earphone, and the earphone taken out from the right earphone compartment is the right earphone. .
  • this solution requires special manufacture of the shapes of the left and right earphones, as well as the shape of the earphone compartment in the earphone box. That is, when manufacturing earphones, two industrial production lines are required to manufacture the left earphone and the right earphone respectively, and a special-shaped mold for the shape of the earphone compartment is also required. Therefore, the earphones and earphone boxes manufactured by this solution are difficult to process and cost high.
  • Fig. 2b is a schematic diagram of putting the earphones into the earphone box in the embodiment of the application.
  • the cylindrical earphones in the figure are only to show the earphones that can be put into two earphone compartments at will, and the shape of the earphones is simplified. Technicians can design according to actual needs, and the illustration does not constitute a limitation on the shape of the earphone.
  • the earphone 201 can be put into the left earphone compartment 2031 in the earphone box 203 or into the right earphone compartment 2032 in the earphone box 203 .
  • the earphone 202 can be put into the left earphone compartment 2031 in the earphone box 203 or into the right earphone compartment 2032 in the earphone box 203 .
  • the above four kinds of earphone storage conditions can be calibrated by applying the method for calibrating the left and right ears of the earphone provided in the embodiment of the present application, so that the earphone 201 or the earphone 202 put into the left earphone compartment 2031 is calibrated as the left earphone, and the earphone 201 or the earphone 202 placed in the right earphone compartment 2032 is calibrated.
  • the earphone 201 or earphone 202 is calibrated to the right earphone.
  • the earphone 201 is the left earphone and the earphone 202 is the right earphone.
  • the earphone 202 is the left earphone and the earphone 201 is the right earphone.
  • the method for calibrating the left and right ears of an earphone provided by the embodiments of the present application will be described in detail below.
  • one of the earphone 201 and the earphone 202 is a left earphone, and the other is a right earphone.
  • the earphone 201 is the left earphone and the earphone 202 is the right earphone, or the earphone 201 is the right earphone and the earphone 202 is the left earphone.
  • the headset 201 and the headset 202 can communicate via Bluetooth.
  • the user can take out the headset 201 and the headset 202 from the headset box 203 and put them on the user's left and right ears respectively.
  • the earphone 201 as the left earphone and the earphone 202 as the right earphone
  • the user can wear the earphone 201 to the left ear and the earphone 202 to the right ear.
  • the user can use the terminal purchased in advance by himself to perform the first Bluetooth pairing with the earphone 201 and the earphone 202 .
  • both the headset 201 and the headset 202 are connected to the terminal via Bluetooth.
  • the terminal plays audio (such as playing music, playing video with sound)
  • the terminal can send audio data to the headset 201 and the headset 202 through the Bluetooth connection, so that the headset 201 worn on the left ear plays the left channel data, and the headset 202 on the right ear is worn.
  • the data of the right channel is played, so that the user can hear the stereo sound by wearing the earphone 201 and the earphone 202, thereby improving the user's listening experience.
  • FIG. 3 is a flowchart of a method for calibrating left and right ears of an earphone provided by an embodiment of the present application, and the method includes:
  • the earphone After the earphone is put into the earphone compartment, the earphone obtains the earphone attribute information corresponding to the earphone compartment;
  • the earphone compartment includes a left earphone compartment and a right earphone compartment, for example, the left earphone compartment 2031 and the right earphone compartment 2032 shown in FIG. 2b.
  • the earphone attribute information may be stored in the storage medium of the earphone box 203, and this type of storage medium may be a register in the chip, a non-volatile storage medium, a persistent or transient memory, etc., which is not limited in this embodiment of the present application .
  • the earphone attribute information may include first earphone attribute information corresponding to the left earphone compartment 2031 and second earphone attribute information corresponding to the right earphone compartment 2032, and the first earphone attribute information and the second earphone attribute information are different.
  • the first earphone attribute information may be identifier 0, and the second earphone attribute information may be identifier 1.
  • the earphone 201 can obtain the identifier 0, that is, the attribute information of the first earphone.
  • the earphone 201 After the earphone 201 is placed in the right earphone compartment 2032, the earphone 201 can obtain the identifier 1, that is, the attribute information of the second earphone.
  • the earphone attribute information may also be represented by other identifiers or in other manners, which is not limited in this embodiment of the present application.
  • the methods for obtaining the attribute information of the earphones from the earphones placed in the earphone compartment may include at least the following methods:
  • the earphone is connected to the communication interface in the earphone compartment through the communication interface of the earphone, so as to obtain the attribute information of the earphone.
  • a communication interface (eg, a communication pin PIN) may be provided on the headset, and a corresponding communication interface may also be provided on the headset compartment. Therefore, when the earphone is put into the earphone compartment, the communication interface on the earphone can be connected with the communication interface on the earphone compartment, and the earphone can obtain the earphone attribute information corresponding to the earphone compartment through the communication interface on the earphone and the communication interface on the earphone compartment.
  • a communication interface eg, a communication pin PIN
  • the embodiment of the present application can ensure that the attribute information of the first earphone corresponding to the left earphone compartment 2031 can be accurately transmitted to the left earphone compartment 2031 through the communication interface on the left earphone compartment 2031 through the information transmission method of the above-mentioned communication interface. earphones, but not to the earphones placed in the right earphone compartment 2032. Similarly, it can also be ensured that the attribute information of the second earphone corresponding to the right earphone compartment 2032 can be accurately transmitted to the earphone placed in the right earphone compartment 2032 through the communication interface on the right earphone compartment 2032, and will not be transmitted to the earphone placed in the left earphone compartment 2031. earphones.
  • the connection of the charging interface may also be used.
  • the connection of the charging interface can be used to charge the headset.
  • the communication interface and the charging interface can be multiplexed, that is, two functions of charging and communication are realized through a "charging communication multiplexing interface", which will be described below.
  • the communication interface of the earphone is connected with the communication interface of the earphone compartment.
  • the earphone attribute information can be sent to the earphone through the communication interface.
  • the communication interface of the earphone is not connected with the communication interface of the earphone compartment, but the communication interface on the cover (that is, the communication interface corresponding to the earphone compartment) after the cover of the earphone box is closed. ) before connecting to the communication interface of the headset. Therefore, after the communication interface of the earphone is connected with the communication interface corresponding to the earphone compartment, the earphone compartment can send the earphone attribute information to the earphone through the communication interface.
  • the headset is connected to the charging communication multiplexing interface in the headset compartment through the charging communication multiplexing interface, so as to obtain the attribute information of the headset.
  • the "charging communication multiplexing interface” is a combination of a communication interface and a charging interface, which can realize both the charging function and the communication function.
  • the charging communication multiplexing interface on the earphone can be connected with the charging communication multiplexing interface on the earphone compartment, then the earphone can pass the charging communication multiplexing interface on the earphone and the earphone.
  • the charging communication multiplexing interface on the compartment obtains the earphone attribute information corresponding to the earphone compartment.
  • the embodiment of the present application can ensure that the attribute information of the first earphone corresponding to the left earphone compartment 2031 can be accurately transmitted to the left earphone compartment 2031 through the communication interface on the left earphone compartment 2031 through the information transmission method of the above-mentioned communication interface. earphones, but not to the earphones placed in the right earphone compartment 2032. Similarly, it can also be ensured that the attribute information of the second earphone corresponding to the right earphone compartment 2032 can be accurately transmitted to the earphone placed in the right earphone compartment 2032 through the communication interface on the right earphone compartment 2032, and will not be transmitted to the earphone placed in the left earphone compartment 2031. earphones.
  • the charging communication multiplexing interface of the earphone is connected to the charging communication multiplexing interface of the earphone compartment.
  • the earphone attribute information can be sent to the earphone through the charging communication multiplexing interface.
  • the charging communication multiplexing interface of the earphone is not connected with the charging communication multiplexing interface of the earphone compartment, but after the earphone box is covered with the cover, the charging communication multiplexing interface on the cover is reused.
  • the earphone compartment can send the earphone attribute information to the earphone through the charging communication multiplexing interface.
  • the headset establishes a connection with the Bluetooth of the headset compartment through Bluetooth to obtain the attribute information of the headset.
  • the earphone box 203 may be provided with Bluetooth for establishing a connection with the Bluetooth on the earphone 201 or the earphone 202 for communication.
  • the communication interface/charging interface/charging communication multiplexing interface of the earphone ie the earphone 201 or the earphone 202
  • the earphone compartment the left earphone compartment 2031 or the right earphone compartment
  • the corresponding interface on the earphone compartment 2032 is connected.
  • the earphone Before the earphone obtains the attribute information of the earphone through the Bluetooth communication between the earphone and the earphone compartment, the earphone can send an indication signal through the communication interface/charging interface/charging communication multiplexing interface, which is used to instruct the Bluetooth corresponding to the earphone compartment to send the earphone attribute to the earphone. information.
  • some rules can be set on the earphones so that the indication signals corresponding to the earphones 201 and 202 are not sent at the same time.
  • the earphone 201 is placed in the left earphone compartment 2031
  • the earphone 202 is placed in the right earphone compartment 2032
  • the earphone 201 sends an indication signal at the first moment
  • the earphone box 203 receives the indication through the interface on the left earphone compartment 2031.
  • the signal it can be determined that the indication signal is received from the interface on the left earphone compartment 2031, then the first earphone attribute information is sent to the earphone 201 through Bluetooth (if the indication signal is received from the interface on the right earphone compartment 2032, Then the second earphone attribute information is sent).
  • the communication interface/charging interface/charging communication multiplexing interface of the earphone is connected with the communication interface/charging interface/charging communication multiplexing interface of the earphone compartment.
  • the headphone compartment detects this connection, it can send headphone attribute information to the headphone through Bluetooth.
  • the communication interface/charging interface/charging communication multiplexing interface of the earphone is not connected with the communication interface/charging interface/charging communication multiplexing interface of the earphone compartment, but is in the earphone box.
  • the communication interface/charging interface/charging communication multiplexing interface on the cover ie, the interface corresponding to the headphone compartment
  • the headset compartment can send the headset attribute information to the headset through Bluetooth.
  • the embodiment of the present application can ensure that the attribute information of the first earphone corresponding to the left earphone compartment 2031 can be accurately transmitted to the left earphone compartment 2031 through the communication interface on the left earphone compartment 2031 through the information transmission method of the above-mentioned communication interface. earphones, but not to the earphones placed in the right earphone compartment 2032. Similarly, it can also be ensured that the attribute information of the second earphone corresponding to the right earphone compartment 2032 can be accurately transmitted to the earphone placed in the right earphone compartment 2032 through the communication interface on the right earphone compartment 2032, and will not be transmitted to the earphone placed in the left earphone compartment 2031. earphones.
  • the communication method corresponding to the earphone 201 or the earphone 202 and the earphone compartment 2031 or the earphone compartment 2032 may not only be the above-mentioned communication interface, charging interface, charging communication multiplexing interface, Bluetooth, but also other communication methods, such as near Field communication (near field communication, NFC), etc., which are not limited in this embodiment of the present application.
  • the earphone 201 after the earphone 201 acquires the attribute information of the earphone, it can notify the earphone 202 by making an announcement through Bluetooth communication. For example, the earphone 201 may send the notification information including the earphone attribute information to the earphone 202 via Bluetooth, so that the earphone 202 determines that the earphone 201 has received the earphone attribute information.
  • the earphone modifies the earphone form information according to the acquired earphone attribute information.
  • the earphone shape information in the earphone may be stored in a storage medium on the earphone, such as a register in a chip, a non-volatile storage medium, a persistent or transient memory, and the like. This is not limited.
  • the earphone shape information is used to indicate that the earphone is a left earphone or a right earphone.
  • the identifier 0 in the earphone shape information represents the left earphone
  • the identifier 1 represents the right earphone.
  • the earphone shape information of the earphone 201 is the identifier 0
  • the earphone shape information of the earphone 201 is the identifier 1
  • the earphone shape information may also be represented by other identifiers or in other manners, which is not limited in this embodiment of the present application.
  • the earphone in the state of the earphone when it leaves the factory, there may be no earphone shape information in the storage medium of the earphone (that is, the earphone shape information is non-existent or abnormal identification), then the earphone can be inserted into the earphone compartment to obtain the corresponding earphone attribute information, and write the earphone shape information of the earphone according to the acquired earphone attribute information. For example, if the earphone attribute information obtained by the earphone 201 is the identifier 0, the earphone 201 can write the identifier 0 as the earphone shape information.
  • the earphone After the earphone obtains the earphone attribute information corresponding to the earphone compartment, it can be compared with its own earphone shape information. If the obtained headphone attribute information is consistent with the headphone shape information, the headphone does not need to modify its own headphone shape information. If the obtained headphone attribute information is inconsistent with the headphone shape information, the headphone can modify its own headphone shape information, so that its own headphone shape information The earphone shape information is the same as the acquired earphone attribute information.
  • the earphone may not modify the earphone shape information of the earphone.
  • the earphone attribute information obtained by the earphone is identifier 1
  • its own earphone shape information is identifier 1
  • the earphone can modify its own earphone shape information to identifier 1, so that the earphone shape information of its own is the same as the acquired earphone shape information.
  • the attribute information of the earphones is the same, and both are marked as 1.
  • the earphone attribute information corresponding to the left earphone compartment 2031 is identifier 0
  • the earphone property information corresponding to the right earphone compartment 2032 is identifier 1
  • the earphone shape information of the earphone 201 is identifier 0 (indicating that the earphone 201 is currently used as the left earphone)
  • the earphone shape information of the earphone 202 is the identification 1 (indicating that the earphone 202 is currently used as the right earphone).
  • the earphone attribute information obtained by the earphone 201 is identifier 1 .
  • the earphone 201 detects that the acquired earphone attribute information is inconsistent with its own earphone shape information, and the earphone 201 can modify its own earphone shape information to ID 1, which is consistent with the acquired earphone attribute information. Therefore, the identifier of the earphone 201 placed in the right earphone compartment 2032 is changed from 0 to 1, indicating that the earphone 201 is used as the right earphone. Then, when the user takes out the earphone 201 from the right earphone compartment 2032, the earphone 201 can be put on the right ear.
  • the earphone attribute information obtained by the earphone 202 is the identifier 0.
  • the headset 202 detects that the acquired headset attribute information is inconsistent with its own headset shape information, and the headset 202 can modify its own headset shape information to identify 0, which is consistent with the acquired headset attribute information. Therefore, the identifier of the earphone 202 placed in the left earphone compartment 2031 is changed from 1 to 0, indicating that the earphone 202 is used as the left earphone. Then, when the user takes out the earphone 202 from the left earphone compartment 2031, the earphone 202 can be put on the left ear.
  • FIG. 4 is a schematic diagram of signaling interaction between an earphone and an earphone box according to an embodiment of the present application. After earphones are placed in the left earphone compartment 2031 and the right earphone compartment 2032 in the earphone box 203, the earphone box 203 can send the first earphone attribute information to the earphones placed in the left earphone compartment 2031 through the interface or Bluetooth.
  • the earphone put into the left earphone compartment 2031 After the earphone put into the left earphone compartment 2031 receives the first earphone attribute information, it can judge whether its own earphone shape information is the same as the first earphone attribute information.
  • the earphone of the first earphone can modify its earphone shape information to be the same as the attribute information of the first earphone.
  • the attribute information of the first earphone is identifier 0, if the earphone shape information of the earphone itself put into the left earphone compartment 2031 is the identifier 0, then the end; if the earphone shape information of the earphone itself put into the left earphone compartment 2031 is the identifier 1, Then, the earphones put into the left earphone compartment 2031 can have their own earphone shape information modified to the identifier 0.
  • the earphone box 203 can send the second earphone attribute information to the earphone put into the right earphone compartment 2032 through the interface or Bluetooth.
  • the earphone put into the right earphone compartment 2032 After the earphone put into the right earphone compartment 2032 receives the attribute information of the second earphone, it can be judged whether its own earphone shape information is the same as the attribute information of the second earphone.
  • the earphone of the first earphone can modify its earphone shape information to be the same as the attribute information of the second earphone.
  • the attribute information of the second earphone is identifier 1
  • the earphone shape information of the earphone itself put into the right earphone compartment 2032 is the identifier 1
  • it ends if the earphone shape information of the earphone itself put into the right earphone compartment 2032 is the identifier 0.
  • the earphones put into the right earphone compartment 2032 can modify their own earphone shape information to identifier 1.
  • the earphone 201 when the earphone 201 performs step 302, it may not make a judgment, but regardless of whether the acquired earphone attribute information is the same as its own earphone shape information, the earphone 201 modifies its own earphone according to the acquired earphone attribute information. Morphological information. For example, if the earphone attribute information obtained by the earphone 201 is the identifier 0, no matter whether the earphone shape information of the earphone 201 is the identifier 0 or the identifier 1, it is modified to the identifier 0 which is the same as the earphone attribute information. In practical applications, the earphone 201 does not actually read the original stored information, and performs overwriting modification (replacement modification) on the stored information.
  • overwriting modification replacement modification
  • step 302 the judgment may not be performed, and details are not described herein again.
  • the earphone shape information of the earphone in the right earphone compartment 2032 is changed from “L” to " R”
  • the earphone shape information of the earphone in the left earphone compartment 2031 is changed from “R” to "L” ". That is, the earphone in the left earphone compartment 2031 is changed to the left earphone.
  • the earphone shape information of the earphone in the right earphone compartment 2032 is the same as the attribute information of the second earphone, that is, the earphone in the right earphone compartment 2032 is changed to the right earphone.
  • the earphone compartment on the left side of the earphone box 203 is the left earphone compartment 2031
  • the earphone compartment on the right side is the right earphone compartment 2032 .
  • the earphones taken out from the left earphone compartment 2031 on the left side are used as the left earphones
  • the earphones taken out from the right earphone compartment 2032 on the right side are used as the right earphones, which avoids the need for taking out the earphones.
  • both step 301 and step 302 are performed by the earphone.
  • the main steps can be performed by the earphone box (including the left earphone compartment and the right earphone compartment), and the earphone box can instruct the earphone to modify the earphone shape information on the earphone, and the specific steps are as follows:
  • the earphone box obtains the earphone shape information of the earphone; the earphone box determines whether the earphone shape information is the same as the earphone attribute information of the corresponding earphone compartment. If the headset shape information is different from the headset attribute information of the corresponding headset compartment, the headset box instructs the headset to modify the headset shape information in the headset.
  • the earphone box can obtain the earphone shape information of the earphone through a communication method similar to the above-mentioned communication interface, charging communication multiplexing interface, Bluetooth, etc. Moreover, the earphone box can send out indication information, where the indication information is used to instruct the earphone to modify the earphone shape information in the earphone.
  • the instruction information may include an agreed instruction and earphone attribute information corresponding to the earphone compartment.
  • the earphone box 203 can obtain the earphone shape information of the earphone 203 . If the earphone shape information of the earphone 203 is different from the earphone attribute information corresponding to the left earphone compartment 2031, the earphone box 203 may send the indication information including the earphone property information corresponding to the left earphone compartment 2031 to the earphone 203, so that the earphone 203 modifies according to the indication information Its own earphone shape information is the same as the earphone attribute information corresponding to the left earphone compartment 2031 .
  • the earphone box 203 may directly send the earphone attribute information to the earphone put into the earphone compartment without making a judgment, so that the earphone modifies its own earphone shape information to the earphone attribute information.
  • the method provided by the embodiment of the present application further includes, when it is detected that the user is wearing the headset, the headset can prompt the user that the type of headset worn by the user is a left headset or a right headset .
  • a sensor such as an infrared ranging sensor, etc.
  • the embodiment of the present application does not limit the method for detecting whether the user wears the earphone.
  • the earphone can prompt the user that the type of earphone worn by the user is the left earphone or the right earphone in various ways, and the embodiment of the present application provides three ways as follows:
  • the earphone prompts the user whether the type of earphone worn by the user is the left earphone or the right earphone by playing audio.
  • FIG. 6a is a schematic diagram of playing audio after wearing an earphone provided by an embodiment of the present application.
  • the left earphone the earphone marked with “L” in FIG. 6a, the identifiers “L” and “R” on the earphone in FIG.
  • the sensor on the left earphone detects that the left earphone has been worn on the ear, then the left earphone can read the audio information corresponding to its own earphone shape information, that is, according to the identification 0, the audio information "you are wearing the left earphone" is read. , then play it out.
  • the earphone (the earphone marked with "R” in Figure 6a) is worn on the ear
  • the sensor on the right earphone detects that the right earphone has been worn on the ear, and the right earphone can read its own earphone shape.
  • the audio information corresponding to the information that is, the audio information "you are wearing the right earphone" is read according to the identifier 1, and then played.
  • the audio information corresponding to the earphone shape information is stored in the storage medium of the earphone. In other embodiments, the audio information corresponding to the earphone shape information is stored on the terminal. At this time, after the earphone detects that the earphone is worn, the earphone can send indication information to the terminal, so that the terminal returns the corresponding audio information to the earphone, and the earphone plays the audio information after acquiring the audio information.
  • the earphone reminds the user whether the earphone type worn by the user is the left earphone or the right earphone by means of vibration.
  • the earphone may remind the user whether the type of earphone worn by the user is the left earphone or the right earphone by means of vibration.
  • the headset may determine the vibration attribute corresponding to the shape information of the headset after detecting that the user has worn the headset, and then control the vibration module (which may be a rotor motor, a linear motor, etc.) to vibrate according to the vibration attribute.
  • the vibration properties may include, but are not limited to, vibration frequency, number of vibrations, duration of vibration, and intensity of vibration.
  • the vibration properties corresponding to different earphone shape information are generally different.
  • the vibration property corresponding to the left earphone may be one vibration
  • the vibration property corresponding to the right earphone may be two vibrations.
  • the vibration attribute corresponding to the left earphone is a long-time vibration
  • the vibration attribute corresponding to the right earphone is a short-time vibration.
  • the earphone prompts the user through the terminal that the type of earphone worn by the user is the left earphone or the right earphone.
  • FIG. 6b is a schematic diagram of prompting through a terminal after wearing an earphone according to an embodiment of the present application.
  • the earphone After the earphone detects that it is worn by the user, it can send its earphone shape information to the terminal. So that the terminal prompts the user that the type of earphone to be worn is the left earphone or the right earphone.
  • the terminal can prompt in various ways. Wherein, as shown in FIG. 6b, the earphone and the corresponding label are displayed on the terminal, indicating that the earphone has been worn. In other cases, the terminal may also be represented by the color of the displayed earphone, or the terminal plays audio information, etc., which is not limited in this embodiment of the present application.
  • the earphone can prompt the user to wear the earphone in different situations whether the earphone type is the left earphone or the right earphone.
  • the embodiments of the present application provide three situations as follows:
  • the first case when the earphone is taken out of the earphone compartment, the user is prompted that the type of earphone being worn is the left earphone or the right earphone. Specifically, the earphone can determine whether the earphone is taken out from the earphone compartment by detecting whether the earphone is disconnected from the interface on the earphone box. When the earphone is determined to be taken out of the earphone compartment, the user may be prompted that the type of earphone worn by the user is the left earphone or the right earphone through the above three methods or other methods.
  • Case 2 After detecting that the headset is worn by the user, the headset can prompt the user that the type of headset worn by the user is the left headset or the right headset.
  • the method for detecting the wearing state of the earphone may be detection by a capacitive sensor, an infrared sensor, a thermistor, a heart rate sensor, etc., which is not limited in this embodiment of the present application.
  • the left and right earphones may play audio to prompt the user at the same time.
  • the audio heard by the left and right ears is different, which may easily cause the user to hear wrongly.
  • the embodiments of the present application provide a way to solve the above problem, the way is: when it is detected that the user is wearing one earphone and another earphone at the same time (in practical applications, the two earphones can communicate through Bluetooth, and use the The Bluetooth protocol unifies the timing time, so that when it is detected that the earphones are worn at the same time, it can be determined to be worn at the same time), and the earphones determine the delay corresponding to the shape information of the earphones; the earphones remind the user according to the delay delay that the type of earphones worn by the user is the left earphone or right earphone.
  • the delay of the left earphone is 0 seconds
  • the delay of the right earphone is 3 seconds.
  • the left earphone and the right earphone detect that they are worn by the user at the same time, the left earphone will immediately play audio to prompt the user, while the right earphone will play audio immediately.
  • the headset will delay for 3 seconds before prompting. In this way, the audio of the two earphones will not be played at the same time, and the user can clearly hear the prompt audio of the earphones.
  • the left earphone when it is detected that the user is wearing one earphone and the other earphone at the same time, the left earphone can play audio to remind the user that the left earphone is worn, and at the same time send an indication to the right earphone through Bluetooth communication, so that the right earphone does not play the prompt audio . Then, after hearing the prompt of the left earphone, the user knows that the earphone is the left earphone, and the other earphone must be the right earphone. Therefore, in fact, only the left earphone can play the prompt audio to achieve the desired effect.
  • the third situation after the headset establishes a Bluetooth connection with the terminal, it prompts the user that the type of headset to be worn is the left headset or the right headset.
  • the right earphone can prompt the user that the type of earphone worn is the left earphone or the right earphone.
  • the right earphone can be prompted in one of the above three ways, or can be prompted in multiple ways at the same time, which is not limited in this embodiment of the present application.
  • the bluetooth connection can be used to prompt the user.
  • the headset it is a more appropriate solution for the headset to prompt the user that the type of headset worn by the user is the left headset or the right headset after the Bluetooth connection is established with the terminal.
  • the earphone may also be triggered by other situations to prompt the user that the type of earphone to be worn is the left earphone or the right earphone, which is not limited in this embodiment of the present application.
  • FIG. 8 is a schematic diagram of prompting not wearing an earphone according to an embodiment of the present application.
  • the earphone may send earphone shape information to the terminal, so that the terminal prompts the user that the left earphone or the right earphone is not worn according to the wearing state of the earphone and the earphone shape information.
  • the left earphone sends the earphone shape information (identification 0) and the associated wearing state of the left earphone (not worn) to the terminal, and after receiving the earphone shape information and wearing state information, the terminal can If it is determined that the left earphone is not worn, the terminal may display the information that the left earphone is not worn on the display screen.
  • the terminal can determine that the right earphone is worn.
  • the terminal may simultaneously prompt that the right earphone is worn and the left earphone is not worn.
  • a larger pattern and/or font, highlighting and/or dynamic display that the left earphone is not worn may be displayed. Smaller pattern and/or font, general indication that the right earphone is worn.
  • FIG. 9a is a schematic diagram of communication between an earphone and a terminal in a dual-transmission mode according to an embodiment of the present application.
  • FIG. 9b is a flowchart of a dual-transmit mode communication provided by an embodiment of the present application. The process includes:
  • the earphone reads the earphone shape information
  • the earphone may first read its own earphone shape information from a storage medium inside the earphone.
  • the earphone sends the earphone shape information to the terminal;
  • the earphone can send the earphone shape information to the terminal after reading the earphone shape information.
  • the headset may send the headset shape information to the terminal through Bluetooth communication.
  • the terminal sends left channel audio data or right channel audio data to the earphone according to the earphone shape information.
  • the terminal may record the Bluetooth from which the earphone shape information comes from (for example, record the Bluetooth address, etc.). Then the terminal can send audio data corresponding to the earphone shape information (that is, left channel audio data or right channel audio data) to the Bluetooth corresponding to the earphone shape information.
  • the earphone shape information sent by the left earphone to the terminal is identifier 0, and after receiving the earphone shape information, the terminal determines that the audio data corresponding to the identifier 0 is left channel audio data. Then the terminal can send left channel audio data to the Bluetooth corresponding to the earphone shape information.
  • the earphone shape information sent by the right earphone to the terminal is identifier 1, and after receiving the earphone shape information, the terminal determines that the audio data corresponding to the identifier 1 is the audio data of the right channel. Then, the terminal can send the audio data of the right channel to the Bluetooth corresponding to the earphone shape information.
  • FIG. 10a is a schematic diagram of a headset and a terminal communicating in a coordinated mode according to an embodiment of the present application.
  • FIG. 10b is a flowchart of the cooperative mode communication provided by the embodiment of the present application. The process includes:
  • the earphone receives left and right channel audio data from the terminal;
  • the terminal does not need to identify whether the earphone is a left earphone or a right earphone.
  • the terminal can send the audio data of the left and right channels to the two earphones, so that each earphone can obtain the audio data of the left and right channels from the terminal.
  • the audio data of the left and right channels may include audio data of the left channel and audio data of the right channel, and the two kinds of data may be distinguished by the earphone.
  • the earphone reads the earphone shape information
  • step 1002 is similar to step 901 in the foregoing embodiments corresponding to FIG. 9b , and details are not described herein again.
  • step 1001 and step 1002 have no sequence relationship.
  • step 1001 may be performed first, and then step 1002 may be performed, or step 1002 may be performed first, and then step 1001 may be performed, or performed simultaneously, which is not limited in this embodiment of the present application.
  • the earphone determines that it is the left earphone or the right earphone according to the earphone shape information
  • the earphone may determine itself as the left earphone or the right earphone according to the earphone shape information. If the earphone determines that it is the left earphone, the earphone can perform step 1004 . If the earphone determines that it is the right earphone, the earphone can perform step 1005 .
  • the earphone obtains the audio data of the left channel from the audio data of the left and right ear channels and plays it;
  • the audio data of the left channel can be obtained from the audio data of the left and right ear channels.
  • the method for acquiring left channel audio data from left and right ear channel audio data is the same as the existing solution, and details are not described herein again.
  • the earphone can send the audio data of the left channel to the decoder, and the decoder decodes the audio data of the left channel and transmits the audio data to the speaker for playback.
  • the earphone acquires the audio data of the right channel from the audio data of the left and right ear channels and plays the audio data.
  • the audio data of the right channel can be obtained from the audio data of the left and right ear channels.
  • the method for obtaining the audio data of the right channel from the audio data of the left and right ear channels is the same as that of the existing solution, and will not be repeated here.
  • the earphone can send the audio data of the right channel to the decoder, and the decoder decodes the audio data of the right channel and transmits the audio data to the speaker for playback.
  • FIG. 11a is a hardware schematic diagram of an earphone and an earphone box according to an embodiment of the present application. For simplicity of drawing, only some of the hardwares are shown in FIG. 11a, and other hardwares such as speakers and Bluetooth modules are not shown.
  • the earphone 1100 includes a chip/processor 1101 , a memory 1102 , a non-volatile storage medium 1103 and an earphone battery 1104 .
  • a communication interface 1105 and a charging interface 1106 are provided on the shell of the earphone 1100 .
  • Headphone case 1107 includes chip/processor 1108, memory 1110 and headphone case battery 1109.
  • the shell of the earphone box 1107 is provided with a communication interface 1111 , a charging interface 1112 , a communication interface 1113 and a charging interface 1114 .
  • the non-volatile storage medium 1103 may be a flash memory.
  • the memory 1102 and the non-volatile storage medium 1103 may be set as shown in FIG. 11a, or may be replaced by a memory, which is not limited in this embodiment of the present application.
  • the communication interface 1111 and the charging interface 1112 can be specifically arranged on the inner wall of the left earphone compartment, so that when the earphone 1100 is put into the left earphone compartment, the communication interface 1105 on the earphone 1100 can be connected with the communication interface 1111, and the charging interface 1106 can be connected with the charging interface 1112 to connect.
  • the communication interface 1113 and the charging interface 1114 may be specifically arranged on the inner wall of the right earphone compartment.
  • the communication interface 1111 and the charging interface 1112 can also be provided on the cover corresponding to the left earphone compartment, and when the earphone 1100 is placed in the left earphone compartment, the communication interface 1105 of the earphone 1100 faces outward and the communication interface 1111 on the cover Align. Therefore, when the cover is closed, the communication interface 1111 on the cover and the communication interface 1105 of the earphone 1100 can be connected. Similarly, the charging port 1106 of the earphone 1100 and the charging port 1112 on the cover can also be connected. Similarly, the communication interface 1113 and the charging interface 1114 can be provided on the cover corresponding to the right earphone compartment.
  • the earphone 1100 can execute the program code in the memory 1102 through the chip/processor 1101 , and the earphone 1100 can implement the program code corresponding to the aforementioned FIG. 3 . of various embodiments of the method.
  • the earphone box 1107 can execute the program code in the memory 1110 through the chip/processor 1108, and on the earphone box 1107, the earphone box 1107 can send the earphone box 1107 to the earphone 1100 through the communication interface 1111 or through the communication interface 1113. Steps for headset property information.
  • the earphone box battery 1109 can charge the earphone battery 1104 on the earphone 1100 through the charging interface 1112 and/or the charging interface 1106 .
  • the non-volatile storage medium 1103 is used to store headphone shape information.
  • FIG. 11b is another schematic diagram of hardware of an earphone and an earphone box provided by an embodiment of the present application. For simplicity of drawing, only some of the hardwares are shown in FIG. 11b , and other hardwares such as speakers and Bluetooth modules are not shown.
  • the earphone 1100 includes a chip/processor 1101 , a memory 1102 , a non-volatile storage medium 1103 and an earphone battery 1104 .
  • a charging communication multiplexing interface 1115 is provided on the shell of the earphone 1100 .
  • Headphone case 1107 includes chip/processor 1108 , memory 1110 and headphone case battery 1109 .
  • the shell of the earphone box 1107 is provided with a charging communication multiplexing interface 1116 and a charging communication multiplexing interface 1117 .
  • the non-volatile storage medium 1103 is used to store headphone shape information.
  • the non-volatile storage medium 1103 may be a flash memory.
  • the memory 1102 and the non-volatile storage medium 1103 may be set as shown in FIG. 11b, or may be replaced by a memory, which is not limited in this embodiment of the present application.
  • the charging communication multiplexing interface 1116 may be arranged on the inner wall of the left earphone compartment, and the charging communication multiplexing interface 1117 may be arranged on the inner wall of the right earphone compartment.
  • the charging communication multiplexing interface 1115 on the earphone 1100 can be connected with the charging communication multiplexing interface 1116 on the inner wall of the left earphone compartment.
  • the charging communication multiplexing interface 1115 on the earphone 1100 can be connected with the charging communication multiplexing interface 1117 on the inner wall of the right earphone compartment.
  • the charging communication multiplexing interface 1115 can be provided on the cover corresponding to the left earphone compartment, and when the earphone 1100 is placed in the left earphone compartment, the charging communication multiplexing interface 1116 of the earphone 1100 faces outwards and communicates with the charging communication on the cover.
  • the multiplexing interface 1116 is aligned. Therefore, when the cover is closed, the charging communication multiplexing interface 1116 on the cover and the charging communication multiplexing interface 1115 of the earphone 1100 can be connected.
  • the charging communication multiplexing interface 1117 can be provided on the cover corresponding to the right earphone compartment.
  • the earphone 1100 can execute the program code in the memory 1102 through the chip/processor 1101 , and the earphone 1100 can implement the program code corresponding to the aforementioned FIG. 3 . of various embodiments of the method.
  • the earphone box 1107 can execute the program code in the memory 1110 through the chip/processor 1108, and realize on the earphone box 1107 that the earphone box 1107 uses the charging communication multiplexing interface 1116 or the charging communication multiplexing interface in each embodiment corresponding to FIG. 3. 1117
  • the step of sending the headset attribute information to the headset 1100 is performed by the headset 1100 .
  • FIG. 12 is a schematic diagram of hardware of an earphone and a terminal provided in an embodiment of the application. For simplicity of drawing, only some of the hardwares are shown in FIG. 12 , and other hardwares such as batteries and communication interfaces are not shown.
  • the earphone 1200 includes a chip/processor 1201 , a memory 1202 , a non-volatile storage medium 1203 , a Bluetooth module 1204 , an audio module 1205 and a speaker 1206 .
  • the non-volatile storage medium 1203 may be a flash memory.
  • the memory 1202 and the non-volatile storage medium 1203 may be set as shown in FIG. 12 , or may be replaced by a memory, which is not limited in this embodiment of the present application.
  • the earphone 1200 can execute the program code in the memory 1202 through the chip/processor 1201, and implement the methods of the respective embodiments corresponding to FIG. 6a and FIG. 6b on the earphone 1200.
  • the earphone 1200 can read the earphone shape information from the non-volatile storage medium through the chip/processor 1201 , and read the audio information corresponding to the earphone shape information from the memory 1202 , and send it to the audio module 1205 .
  • the audio module 1205 may be a device such as a decoder. The audio module 1205 decodes the audio information and sends it to the speaker 1206 for playback.
  • the earphone 1200 can also send the earphone shape information to the terminal 1207 through the Bluetooth module 1204 .
  • the terminal 1207 After receiving the earphone shape information, the terminal 1207 can perform the steps of prompting, displaying, communication in dual mode, communication in cooperative mode, etc. as in the above-mentioned embodiment.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Abstract

本申请实施例提供一种耳机左右耳校准的方法及耳机。当耳机放入左耳机仓时,耳机获取到左耳机仓的第一耳机属性信息,则当耳机的耳机形态信息不是左耳机时,耳机可以将自身的耳机形态信息按照第一耳机属性信息修改为左耳机。因此,放入左耳机仓的耳机可以被校准为左耳机。同理,放入右耳机仓的耳机可以被校准为右耳机。本申请实施例通过将放入耳机仓的耳机对应的耳机形态信息进行校正,使得放入左耳机仓的耳机可以作为左耳机使用,放入右耳机仓的耳机可以作为右耳机使用,使得用户从左耳机仓拿出的耳机为左耳机,从右耳机仓拿出的耳机为右耳机,防止佩戴错误。

Description

一种耳机左右耳校准的方法及耳机
本申请要求于2021年4月30日提交的、中国申请号为202110486316.6、发明名称为“一种耳机左右耳校准的方法及耳机”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种耳机左右耳校准的方法及耳机。
背景技术
随着现代科技的发展,耳机成为了人们日常生活中十分常见的工具。人们可以使用耳机听歌、通话、看剧等。耳机可以分为有线耳机和无线耳机两种。其中,无线耳机通常为蓝牙耳机,这种耳机可以配备有一个耳机盒,耳机盒上设置有两个耳机仓,分别用于放置左耳机和右耳机。
目前,这类无线耳机的耳机仓设计通常是耳机盒左侧的耳机仓用于放置左耳机,耳机盒右侧的耳机仓用于放置右耳机。
然而,用户在使用无线耳机的过程中,可能由于意外原因将右耳机放入耳机盒左侧的耳机仓,将左耳机放置在耳机盒右侧的耳机仓。那么,当用户下一次再使用无线耳机时,便会以为耳机盒左侧的耳机仓是左耳机(实际上是右耳机),并佩戴在左耳上,导致耳机佩戴错误。同理,左耳机也会佩戴错误。
发明内容
本申请实施例提供了一种耳机左右耳校准的方法及耳机,能够校准耳机仓内的耳机形态,使得用户从左耳机仓拿出的耳机为左耳机,从右耳机仓拿出的耳机为右耳机,防止佩戴错误。
第一方面,本申请实施例提供一种耳机左右耳校准的方法,包括:当耳机放入耳机仓后,耳机获取耳机仓对应的耳机属性信息,其中,耳机仓包括左耳机仓和右耳机仓,耳机属性信息包括对应左耳机仓的第一耳机属性信息和对应右耳机仓的第二耳机属性信息,第一耳机属性信息和第二耳机属性信息不同;若获取的耳机属性信息与耳机中的耳机形态信息不一致,则耳机根据获取的耳机属性信息修改耳机形态信息,耳机形态信息用于表示耳机为左耳机或右耳机。
在本申请实施例中,耳机放入左耳机仓时,耳机获取到左耳机仓的第一耳机属性信息,则当耳机的耳机形态信息不是左耳机时,耳机可以将自身的耳机形态信息按照第一耳机属性信息修改为左耳机。因此,放入左耳机仓的耳机可以被校准为左耳机。同理,放入右耳机仓的耳机可以被校准为右耳机。本申请实施例通过将放入耳机仓的耳机对应的耳机形态信息进行校正,使得放入左耳机仓的耳机可以作为左耳机使用,放入右耳机仓的耳机可以作为右耳机使用,使得用户从左耳机仓拿出的耳机为左耳机,从右耳机仓拿出的耳机为右 耳机,防止佩戴错误。
结合第一方面,在本申请实施例提供的一种实现方式中,耳机在获取到耳机属性信息后,直接根据获取的耳机属性信息修改耳机形态信息,而不需要先去判断该耳机属性信息与耳机中的耳机形态信息是否一致。如此,减少了一个判定步骤,降低了耳机内处理器的算力要求。并且,在一些特殊情况下,提高了耳机的读写速度。
结合第一方面,在本申请实施例提供的一种实现方式中,耳机获取耳机仓对应的耳机属性信息包括:耳机通过左耳机仓的通信接口或充电接口获取第一耳机属性信息,或耳机通过右耳机仓的通信接口或充电接口获取第二耳机属性信息。该实现方式使得耳机在放入耳机仓时能够与耳机仓进行相互通讯,从而快速获取耳机仓对应的耳机属性信息,以便对该耳机的耳机形态信息进行校准。
结合第一方面,在本申请实施例提供的一种实现方式中,耳机获取耳机仓对应的耳机属性信息包括:耳机通过与左耳机仓的蓝牙连接获取第一耳机属性信息,或耳机通过与右耳机仓的蓝牙连接获取第二耳机属性信息。该实现方式使得耳机在放入耳机仓时能够通过蓝牙与耳机仓进行相互通信,从而快速获得耳机仓对应的耳机属性信息,以便对该耳机的耳机形态信息进行校准。
结合第一方面,在本申请实施例提供的一种实现方式中,耳机形态信息存储在耳机的非易失性存储介质或寄存器中;耳机属性信息存储在耳机仓的非易失性存储介质或寄存器中。该实现方式使得耳机形态信息和耳机属性信息能够存放在合适的存储介质中,以便耳机读取耳机形态信息以及获得耳机仓对应的耳机属性信息。
结合第一方面,在本申请实施例提供的一种实现方式中,当耳机放入耳机仓后,耳机获取耳机仓对应的耳机属性信息,具体包括:当耳机放入耳机仓后,耳机的第一通信接口与耳机仓的第二通信接口连接,以使得耳机通过第一通信接口和第二通信接口获取耳机属性信息,或当耳机放入耳机仓后,耳机的第一充电通信复用接口与耳机仓的第二充电通信复用接口连接,以使得耳机通过第一充电通信复用接口和第二充电通信复用接口获取耳机属性信息,或当耳机放入耳机仓后,耳机的蓝牙与耳机仓的蓝牙建立连接,以使得耳机通过耳机和耳机仓之间的蓝牙通信获取耳机属性信息。该实现方式在耳机与耳机仓通过通信接口或充电通信复用接口或蓝牙建立连接之后进行通信,从而使得耳机能够通过上述通信方式获取到耳机仓对应的耳机属性信息。
结合第一方面,在本申请实施例提供的一种实现方式中,方法还包括:当检测到用户佩戴耳机时,耳机根据自身的耳机形态信息提示用户佩戴的耳机类型是左耳机或右耳机。该实现方式中,耳机能够提示用户佩戴的耳机类型是左耳机或右耳机,进一步提升用户体验。
结合第一方面,在本申请实施例提供的一种实现方式中,耳机根据自身的耳机形态信息提示用户佩戴的耳机类型是左耳机或右耳机包括:耳机确定与耳机形态信息对应的音频信息;耳机播放音频信息,用于提示用户佩戴的耳机类型是左耳机或右耳机。该实现方式中,耳机能够通过播放声音提示用户佩戴的耳机类型是左耳机或右耳机,从而进一步提升用户体验。
结合第一方面,在本申请实施例提供的一种实现方式中,耳机根据自身的耳机形态信息提示用户佩戴的耳机类型是左耳机或右耳机包括:耳机确定耳机形态信息对应的振动属性,振动属性包括振动频率、振动次数、振动时长和振动强度中的至少一种;耳机根据振动属性进行振动,用于提示用户佩戴的耳机类型是左耳机或右耳机。该实现方式中,耳机能够根据通过耳机形态信息确定振动属性,使得左右耳机具有不同的振动方式,从而提示用户佩戴的耳机类型是左耳机或右耳机,从而进一步提升用户体验。
结合第一方面,在本申请实施例提供的一种实现方式中,耳机根据自身的耳机形态信息提示用户佩戴的耳机类型是左耳机或右耳机包括:耳机向与该耳机连接的终端发送耳机形态信息,以使得终端提示用户佩戴的耳机类型是左耳机或右耳机。该实现方式使得终端能够根据耳机的耳机形态信息进行提示,提示用户佩戴的耳机类型是左耳机或右耳机,从而进一步提升用户体验。
结合第一方面,在本申请实施例提供的一种实现方式中,方法还包括:当检测到用户同时佩戴耳机和另一个耳机时,耳机确定与耳机形态信息对应的时延;耳机根据时延延迟提示用户佩戴的耳机类型是左耳机或右耳机。该实现方式使得耳机能够根据耳机形态信息对应的时延来进行提示,即左耳机能够比右耳机更慢或更快进行提示,使得左右耳机的提示时间不同,防止用户同时收到两个耳机的提示造成感知混乱。
结合第一方面,在本申请实施例提供的一种实现方式中,方法还包括:耳机向终端发送耳机形态信息,以使得终端根据耳机的佩戴状态及耳机形态信息提示用户未佩戴左耳机或右耳机。该实现方式使得终端能够结合耳机的佩戴状态及耳机形态信息确定哪一个耳机没有佩戴,然后提示用户未佩戴左耳机或右耳机,能够提升用户的使用体验。
结合第一方面,在本申请实施例提供的一种实现方式中,方法还包括:耳机向终端发送耳机形态信息,以使得终端根据耳机形态信息发送对应的音频至耳机。该实现方式能够使得耳机从终端中获得对应的音频,实现提示音频的定制,且耳机内部不用存储那么多数据,可以降低耳机中存储介质的容量,减轻了耳机制备成本。
结合第一方面,在本申请实施例提供的一种实现方式中,方法还包括:耳机获取终端的至少两路音频;耳机根据耳机形态信息从至少两路音频中选择音频进行播放。该实现方式中,终端按照协同模式与耳机进行通信,使得终端无须区分左右耳声道的音频,减轻了终端的处理器负载。
第二方面,本申请实施例提供一种耳机,包括一个或一个以上处理器,存储器,非易失性存储介质,有线或无线网络接口;存储器为短暂存储存储器或持久存储存储器,存储器中存储有程序代码;非易失性存储介质存储有耳机形态信息;处理器配置为与存储器和非易失性存储介质通信,执行存储器中的程序代码以使得该耳机执行如第一方面的方法。本申请实施例提供的耳机能够达到如第一方面的方法的有益效果。
结合第二方面,在本申请实施例提供的一种实现方式中,耳机还包括充电接口和/或通信接口;耳机放入耳机仓时,充电接口和/或通信接口与耳机仓上的接口连接,使得耳机与耳机仓建立连接。该实现方式使得耳机在放入耳机仓时能够与耳机仓进行相互通讯,从而快速获取耳机仓对应的耳机属性信息,以便对该耳机的耳机形态信息进行校准。
结合第二方面,在本申请实施例提供的一种实现方式中,耳机还包括蓝牙模块:耳机通过蓝牙模块向终端发送耳机形态信息。该实现方式使得耳机能够通过蓝牙模块向终端发送耳机形态信息,以使得终端能够根据耳机形态信息进行相关的处理,如双发模式通信、双发模式通信、按照耳机形态信息进行提示等,提升用户体验。
结合第二方面,在本申请实施例提供的一种实现方式中,耳机还包括音频模块和喇叭;处理器还用于通过音频模块向喇叭发送与耳机形态信息对应的音频,使得喇叭播放音频。该实现方式使得耳机能够通过喇叭播放音频,从而提示用户佩戴的耳机类型是左耳机或右耳机,从而进一步提升用户体验。
附图说明
图1a为传统耳机和耳机盒的示意图;
图1b为传统耳机和耳机盒中,耳机错放的示意图;
图2a为本申请实施例中耳机放入耳机盒的两个耳机仓的示意图;
图2b为本申请实施例中耳机放入耳机盒的示意图;
图3为本申请实施例提供的耳机左右耳校准的方法的流程图;
图4为本申请实施例提供的耳机与耳机盒之间的信令交互示意图;
图5为本申请实施例中左右耳机放反时的情况示意图;
图6a为本申请实施例提供的耳机佩戴后播放音频的示意图;
图6b为本申请实施例提供的耳机佩戴后通过终端提示的示意图;
图7为本申请实施例中的耳机与终端通过蓝牙连接的示意图;
图8为本申请实施例提供的提示未佩戴耳机的示意图;
图9a为本申请实施例提供的耳机与终端以双发模式通信的示意图;
图9b为本申请实施例提供的双发模式通信时的流程图;
图10a为本申请实施例提供的耳机与终端以协同模式通信的示意图;
图10b为本申请实施例提供的协同模式通信时的流程图;
图11a为本申请实施例提供的耳机与耳机盒的硬件示意图;
图11b为本申请实施例提供的耳机与耳机盒的另一种硬件示意图;
图12为本申请实施例中提供的耳机与终端的硬件示意图。
具体实施方式
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“对应于”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列 出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍:
本申请实施例的附图中,标注有“L”的耳机为左耳机,标注有“R”的耳机为右耳机。
图1a为传统耳机和耳机盒的示意图。图1a中,左耳机和右耳机的形状都是特别制造的,与耳机盒中的耳机仓形状对应。因此,在图1a中,左耳机可以顺利放入左耳机仓,右耳机可以顺利放入右耳机仓。而在图1b中,右耳机无法放入左耳机仓,左耳机无法放入右耳机仓。传统的耳机通过特制的耳机形状来确保耳机放入对应的耳机仓,则当用户从耳机盒中取出耳机时,从左耳机仓取出的耳机为左耳机,从右耳机仓取出的耳机为右耳机。
然而,这种方案需要特别制造左耳机和右耳机的形状,以及耳机盒中耳机仓的形状。即制造耳机的时候,需要两条工业产线分别制造左耳机和右耳机,还需要为耳机仓的形状制造特别形状的模具。因此,该方案制造的耳机和耳机盒加工难度大,成本高。
目前,开发人员正在研究一种能够随意放入两个耳机仓的耳机,如图2a所示,该耳机放入左耳机仓的时候,能够自动变为左耳机,放入右耳机仓的时候,能够自动变为右耳机。这种耳机不仅在生产的时候方便,而且当用户不慎丢失了其中一个耳机的时候,购买耳机单体的时候无须区分左右耳机。这种耳机可以通过本申请实施例提供的技术方案实现。以下将详细介绍本申请实施例提供的技术方案。
图2b为本申请实施例中耳机放入耳机盒的示意图,此处图中的圆柱体形耳机仅是为示意能够随意放入两个耳机仓的耳机而将耳机形状简化,具体耳机形状可以由本领域技术人员根据实际需要进行设计,图示并不构成对耳机形状的限定。耳机201可以放入耳机盒203中的左耳机仓2031或者放入耳机盒203中的右耳机仓2032。同理,耳机202可以放入耳机盒203中的左耳机仓2031或者放入耳机盒203中的右耳机仓2032。上述四种耳机存放的情况均可以应用本申请实施例提供的耳机左右耳校准的方法来进行校准,使得放入左耳机仓2031的耳机201或耳机202校准为左耳机,放入右耳机仓2032的耳机201或耳机202校准为右耳机。即当用户将耳机201放入左耳机仓2031,将耳机202放入右耳机仓2032后,耳机201为左耳机,耳机202为右耳机。当用户将耳机202放入左耳机仓2031,将耳机201放入右耳机仓2032后,耳机202为左耳机,耳机201为右耳机。具体地,以下将对本申请实施例提供的耳机左右耳校准的方法进行详细的描述。
在本申请实施例中,耳机201和耳机202中的一个是左耳机,另一个是右耳机。例如,耳机201为左耳机,耳机202为右耳机,或者耳机201为右耳机,耳机202为左耳机。耳机201和耳机202之间可以通过蓝牙通信。
因此,用户购买了如耳机201、耳机202和耳机盒203的分体式蓝牙耳机时,用户可以从耳机盒203中取出耳机201和耳机202,并分别佩戴至用户的左耳和右耳。以耳机201为左耳机,耳机202为右耳机为例,用户可以将耳机201佩戴至左耳,将耳机202佩戴至 右耳。并且,用户可以用自己预先购买的终端与耳机201、耳机202进行第一次蓝牙配对。耳机201、耳机202与该终端进行蓝牙配对后,耳机201、耳机202均与该终端蓝牙连接。终端播放音频时(例如播放音乐、播放有声视频),终端可以通过蓝牙连接向耳机201和耳机202发送音频数据,使得佩戴至左耳的耳机201播放左声道数据,佩戴之右耳的耳机202播放右声道数据,从而用户能够通过佩戴耳机201和耳机202听到立体声音,提高用户听觉体验。
图3为本申请实施例提供的耳机左右耳校准的方法的流程图,该方法包括:
301、当耳机放入耳机仓后,耳机获取耳机仓对应的耳机属性信息;
在本申请实施例中,耳机仓包括左耳机仓和右耳机仓,例如图2b所示的左耳机仓2031和右耳机仓2032。
耳机属性信息可以是存储在耳机盒203的存储介质中,这类存储介质可以是芯片中的寄存器、非易失性存储介质、持久性或短暂性存储器等,本申请实施例对此不做限定。
耳机属性信息可以包括对应左耳机仓2031的第一耳机属性信息和对应右耳机仓2032的第二耳机属性信息,第一耳机属性信息和第二耳机属性信息不同。示例性的,第一耳机属性信息可以是标识0,第二耳机属性信息可以是标识1。那么,耳机201放入左耳机仓2031后,耳机201可以获取到标识0,即第一耳机属性信息。耳机201放入右耳机仓2032后,耳机201可以获取到标识1,即第二耳机属性信息。在实际应用中,耳机属性信息还可以用其他标识或者其他方式表示,本申请实施例对此不做限定。
在具体应用中,放入耳机仓的耳机获取耳机属性信息的方式可以至少包括以下几种:
1、耳机通过耳机的通信接口和耳机仓中的通信接口连接,从而获取耳机属性信息。
在本申请实施例中,耳机上可以设置有通信接口(例如通信引脚PIN),而耳机仓上也可以设置有对应的通信接口。因此当耳机放入耳机仓后,耳机上的通信接口可以与耳机仓上的通信接口连接,则耳机可以通过耳机上的通信接口以及耳机仓上的通信接口获取到耳机仓对应的耳机属性信息。
可以理解的是,本申请实施例通过上述通信接口的信息传递方式,可以保证左耳机仓2031对应的第一耳机属性信息可以通过左耳机仓2031上的通信接口准确传输到放入左耳机仓2031的耳机,而不会传输到放入右耳机仓2032中的耳机。同理也可以保证右耳机仓2032对应的第二耳机属性信息可以通过右耳机仓2032上的通信接口准确传输到放入右耳机仓2032的耳机,而不会传输到放入左耳机仓2031中的耳机。
在实际应用中,耳机和耳机仓之间除了通信接口的连接,还可以由充电接口(例如充电引脚PIN)的连接。充电接口的连接可以用于给耳机充电。而在一些应用中,通信接口和充电接口是可以复用的,即通过一个“充电通信复用接口”实现充电和通信两种功能,以下将描述这种情况。
在本申请实施例中,当耳机放入耳机仓后,耳机的通信接口与耳机仓的通信接口连接。耳机仓检测到这种连接后,则可以通过该通信接口向耳机发送耳机属性信息。在一些耳机盒中,耳机放入耳机仓后,耳机的通信接口与耳机仓的通信接口并没有连接,而是在耳机盒盖上盖子后,盖子上的通信接口(即耳机仓对应的通信接口)才与耳机的通信接口连接。 因此,当耳机的通信接口与耳机仓对应的通信接口连接后,耳机仓可以通过该通信接口向耳机发送耳机属性信息。
2、耳机通过充电通信复用接口和耳机仓中的充电通信复用接口连接,从而获取耳机属性信息。
在本申请实施例中,“充电通信复用接口”是通信接口和充电接口的结合,既可以实现充电功能,也可以实现通信功能。在其实现通信功能时,当耳机放入耳机仓后,耳机上的充电通信复用接口可以与耳机仓上的充电通信复用接口连接,则耳机可以通过耳机上的充电通信复用接口以及耳机仓上的充电通信复用接口获取到耳机仓对应的耳机属性信息。
可以理解的是,本申请实施例通过上述通信接口的信息传递方式,可以保证左耳机仓2031对应的第一耳机属性信息可以通过左耳机仓2031上的通信接口准确传输到放入左耳机仓2031的耳机,而不会传输到放入右耳机仓2032中的耳机。同理也可以保证右耳机仓2032对应的第二耳机属性信息可以通过右耳机仓2032上的通信接口准确传输到放入右耳机仓2032的耳机,而不会传输到放入左耳机仓2031中的耳机。
在本申请实施例中,当耳机放入耳机仓后,耳机的充电通信复用接口与耳机仓的充电通信复用接口连接。耳机仓检测到这种连接后,则可以通过该充电通信复用接口向耳机发送耳机属性信息。在一些耳机盒中,耳机放入耳机仓后,耳机的充电通信复用接口与耳机仓的充电通信复用接口并没有连接,而是在耳机盒盖上盖子后,盖子上的充电通信复用接口(即耳机仓对应的充电通信复用接口)才与耳机的充电通信复用接口连接。因此,当耳机的充电通信复用接口与耳机仓对应的充电通信复用接口连接后,耳机仓可以通过该充电通信复用接口向耳机发送耳机属性信息。
3、耳机通过蓝牙和耳机仓的蓝牙建立连接,从而获取耳机属性信息。
在本申请实施例中,耳机盒203上可以设置有蓝牙,用于与耳机201或耳机202上的蓝牙建立连接进行通信。当耳机201或耳机202放入左耳机仓2031或右耳机仓2032之后,耳机(即耳机201或耳机202)的通信接口/充电接口/充电通信复用接口与耳机仓(左耳机仓2031或右耳机仓2032)上的对应接口连接。在耳机通过耳机和耳机仓之间的蓝牙通信获取耳机属性信息前,耳机可以通过通信接口/充电接口/充电通信复用接口发送一个指示信号,用于指示耳机仓对应的蓝牙向耳机发送耳机属性信息。本申请实施例可以通过在耳机上设置一些规则,让耳机201和耳机202对应的指示信号不会同时发送。示例性的,耳机201放入了左耳机仓2031,耳机202放入了右耳机仓2032,耳机201在第一时刻发送指示信号,则耳机盒203通过左耳机仓2031上的接口接收到该指示信号后,可以确定该指示信号是从左耳机仓2031上的接口接收到的,则通过蓝牙向耳机201发送第一耳机属性信息(若指示信号是从右耳机仓2032上的接口接收到的,则发送的是第二耳机属性信息)。
在本申请实施例中,当耳机放入耳机仓后,耳机的通信接口/充电接口/充电通信复用接口与耳机仓的通信接口/充电接口/充电通信复用接口连接。耳机仓检测到这种连接后,则可以通过蓝牙向耳机发送耳机属性信息。在一些耳机盒中,耳机放入耳机仓后,耳机的通信接口/充电接口/充电通信复用接口与耳机仓的通信接口/充电接口/充电通信复用接口并没有连接,而是在耳机盒盖上盖子后,盖子上的通信接口/充电接口/充电通信复用接口 (即耳机仓对应的接口)才与耳机的通信接口/充电接口/充电通信复用接口连接。因此,当耳机的通信接口/充电接口/充电通信复用接口与耳机仓对应的通信接口/充电接口/充电通信复用接口连接后,耳机仓可以通过蓝牙向耳机发送耳机属性信息。
可以理解的是,本申请实施例通过上述通信接口的信息传递方式,可以保证左耳机仓2031对应的第一耳机属性信息可以通过左耳机仓2031上的通信接口准确传输到放入左耳机仓2031的耳机,而不会传输到放入右耳机仓2032中的耳机。同理也可以保证右耳机仓2032对应的第二耳机属性信息可以通过右耳机仓2032上的通信接口准确传输到放入右耳机仓2032的耳机,而不会传输到放入左耳机仓2031中的耳机。
在实际应用中,耳机201或耳机202与耳机仓2031或耳机仓2032对应的通信方式可以不仅是上述的通信接口、充电接口、充电通信复用接口、蓝牙,还可能是其他通信方式,例如近场通信(near field communication,NFC)等,本申请实施例对此不做限定。
在一些实施例中,耳机201获取到耳机属性信息后,可以通过蓝牙通信进行通告,告知耳机202。例如,耳机201可以将包含耳机属性信息的通告信息通过蓝牙发送给耳机202,使得耳机202确定耳机201接收到了该耳机属性信息。
302、若获取的耳机属性信息与耳机中的耳机形态信息不一致,则耳机根据获取的耳机属性信息修改耳机形态信息。
在本申请实施例中,耳机中的耳机形态信息可以是存储在耳机上的存储介质中,例如芯片中的寄存器、非易失性存储介质、持久性或短暂性存储器等,本申请实施例对此不做限定。
耳机形态信息用于表示该耳机为左耳机或右耳机。示例性的,耳机形态信息中标识0表示左耳机,标识1表示右耳机。那么若耳机201的耳机形态信息为标识0,则表示耳机201为左耳机,若耳机201的耳机形态信息为标识1,则表示耳机201为右耳机。在实际应用中,耳机形态信息还可以用其他标识或其他方式表示,本申请实施例对此不做限定。
在一些情况中,例如耳机出厂时的状态中,耳机的存储介质中可能没有耳机形态信息(即该耳机形态信息为不存在或非正常标识),则耳机可以通过插入耳机仓来获取对应的耳机属性信息,并根据获取到的耳机属性信息来写入耳机的耳机形态信息。例如,耳机201获取到的耳机属性信息为标识0,则耳机201可以写入标识0作为耳机形态信息。
当耳机获取了耳机仓对应的耳机属性信息后,可以与自身的耳机形态信息进行比较。若获取到的耳机属性信息与耳机形态信息一致,则耳机可以不修改自身的耳机形态信息,若获取到的耳机属性信息与耳机形态信息不一致,则耳机可以修改自身的耳机形态信息,使得自身的耳机形态信息与获取到的耳机属性信息相同。
示例性的,耳机获取到的耳机属性信息为标识0,而自身的耳机形态信息为标识0,则该耳机可以不修改自身的耳机形态信息。另一种示例中,耳机获取到的耳机属性信息为标识1,而自身的耳机形态信息为标识0,则该耳机可以修改自身的耳机形态信息为标识1,使得自身的耳机形态信息与获取到的耳机属性信息相同,均为标识1。
在实际应用场景中,左耳机仓2031对应的耳机属性信息为标识0,右耳机仓2032对应的耳机属性信息为标识1,耳机201的耳机形态信息为标识0(表示耳机201当前作为左 耳机使用),耳机202的耳机形态信息为标识1(表示耳机202当前作为右耳机使用)。当用户随意地将耳机201放入了右耳机仓2032,则耳机201获取到的耳机属性信息为标识1。那么耳机201检测到获取到的耳机属性信息与自身的耳机形态信息不一致,则耳机201可以将自身的耳机形态信息修改为标识1,与获取到的耳机属性信息一致。因此,放入了右耳机仓2032的耳机201的标识从0修改为1,表示耳机201作为右耳机使用。那么当用户从右耳机仓2032拿出耳机201时,可以将耳机201戴上右耳朵。同理,当用户随意地将耳机202放入了左耳机仓2031,则耳机202获取到的耳机属性信息为标识0。那么耳机202检测到获取到的耳机属性信息与自身的耳机形态信息不一致,则耳机202可以将自身的耳机形态信息修改为标识0,与获取到的耳机属性信息一致。因此,放入了左耳机仓2031的耳机202的标识从1修改为0,表示耳机202作为左耳机使用。那么当用户从左耳机仓2031拿出耳机202时,可以将耳机202戴上左耳朵。
可以理解的是,耳机201和耳机202所执行的步骤类似,均如图3所示的步骤301和步骤302。图4为本申请实施例提供的耳机与耳机盒之间的信令交互示意图。当耳机盒203中的左耳机仓2031和右耳机仓2032放入了耳机后,耳机盒203可以通过接口或蓝牙向放入左耳机仓2031的耳机发送第一耳机属性信息。放入左耳机仓2031的耳机接收到第一耳机属性信息后,可以判断其自身的耳机形态信息是否与第一耳机属性信息相同,若是,则结束步骤,若否,则放入左耳机仓2031的耳机可以将自身的耳机形态信息修改为与第一耳机属性信息相同。例如,第一耳机属性信息为标识0,若放入左耳机仓2031的耳机自身的耳机形态信息为标识0,则结束;若放入左耳机仓2031的耳机自身的耳机形态信息为标识1,则放入左耳机仓2031的耳机可以将自身的耳机形态信息修改为标识0。同理,耳机盒203可以通过接口或蓝牙向放入右耳机仓2032的耳机发送第二耳机属性信息。放入右耳机仓2032的耳机接收到第二耳机属性信息后,可以判断其自身的耳机形态信息是否与第二耳机属性信息相同,若是,则结束步骤,若否,则放入右耳机仓2032的耳机可以将自身的耳机形态信息修改为与第二耳机属性信息相同。例如,第二耳机属性信息为标识1,若放入右耳机仓2032的耳机自身的耳机形态信息为标识1,则结束;若放入右耳机仓2032的耳机自身的耳机形态信息为标识0,则放入右耳机仓2032的耳机可以将自身的耳机形态信息修改为标识1。
在一些实施例中,耳机201执行步骤302时,可以不进行判断,而是无论获取到的耳机属性信息与自身的耳机形态信息是否相同,耳机201都根据获取到的耳机属性信息修改自身的耳机形态信息。例如,耳机201获取到的耳机属性信息为标识0,则无论自身的耳机形态信息是标识0还是标识1,均修改为与耳机属性信息相同的标识0。在实际应用中,耳机201实际上是不读取原有的存储信息,并将该存储信息进行覆盖修改(替换修改)。如此,减少了一个判定步骤,降低了耳机内处理器的算力要求。并且,在一些特殊情况下,提高了耳机的读写速度。耳机202执行步骤302时同理可不进行判断,此处不再赘述。
综上所述,如图5所示,当左右耳机放入耳机仓中的时候位置放反时,经过步骤301和步骤302之后,左耳机仓2031中耳机的耳机形态信息与第一耳机属性信息相同,图5中耳机上的标识“L”和“R”用于表示当前该耳机中的耳机形态信息,耳机盒内的标识“L” 和“R”用于表示当前两个耳机仓中的耳机属性信息。也就是说,在用户将当前耳机形态信息为“L”的耳机放入耳机属性信息为“R”的耳机仓时或之后,右耳机仓2032中耳机的耳机形态信息从“L”修改为“R”,在用户将当前耳机形态信息为“R”的耳机放入耳机属性信息为“L”的耳机仓时或之后,左耳机仓2031中耳机的耳机形态信息从“R”修改为“L”。即左耳机仓2031中耳机被修改为左耳机,同理右耳机仓2032中耳机的耳机形态信息与第二耳机属性信息相同,即右耳机仓2032中耳机被修改为右耳机。并且,通常耳机盒203正面打开时,耳机盒203左侧的耳机仓为左耳机仓2031,右侧的耳机仓为右耳机仓2032。因此,用户正面打开耳机盒203后,从左侧的左耳机仓2031拿出来的耳机作为左耳机使用,从右侧的右耳机仓2032拿出来的耳机作为右耳机使用,避免了拿出来的时候左右耳机错位的情况,从而防止用户将耳机戴反。
上述实施例中,步骤301和步骤302均由耳机执行。在另一些实施例中,主要步骤可以由耳机盒(包括左耳机仓和右耳机仓)执行,耳机盒可以指示耳机修改耳机上的耳机形态信息,具体步骤如下:
耳机盒获取耳机的耳机形态信息;耳机盒判断耳机形态信息是否与对应耳机仓的耳机属性信息相同。若耳机形态信息与对应耳机仓的耳机属性信息不相同,则耳机盒指示该耳机修改耳机中的耳机形态信息。
其中,耳机盒可以通过类似上述通信接口、充电通信复用接口、蓝牙等的通信方式来实现获取耳机的耳机形态信息。并且,耳机盒可以发出指示信息,该指示信息用于指示该耳机修改耳机中的耳机形态信息。该指示信息中可以包括约定的指令,以及对应耳机仓的耳机属性信息。
例如,耳机201插入耳机盒203的左耳机仓2031中,则耳机盒203可以获取耳机203的耳机形态信息。若耳机203的耳机形态信息与左耳机仓2031对应的耳机属性信息不同,则耳机盒203可以向耳机203发送包括左耳机仓2031对应的耳机属性信息的指示信息,使得耳机203根据该指示信息修改自身的耳机形态信息为与左耳机仓2031对应的耳机属性信息相同。
在一些实施例中,耳机盒203可以不进行判断,而是直接向放入耳机仓的耳机发送耳机属性信息,使得耳机修改自身的耳机形态信息为该耳机属性信息。
在本申请的另一些实施例中,为进一步防止用户戴反耳机,本申请实施例提供的方法还包括,当检测到用户佩戴耳机时,耳机可以提示用户佩戴的耳机类型是左耳机或右耳机。耳机上可以设置有传感器(例如红外测距传感器等),用于检测用户是否佩戴耳机,本申请实施例对检测用户是否佩戴耳机的方法不做限定。耳机可以通过多种方式提示用户佩戴的耳机类型是左耳机或右耳机,本申请实施例提供其中三种方式如下:
1、耳机通过播放音频来提示用户佩戴的耳机类型是左耳机或右耳机。
图6a为本申请实施例提供的耳机佩戴后播放音频的示意图。示例性的,当左耳机(图6a中标识有“L”的耳机,图6a中耳机上的标识“L”和“R”用于表示当前该耳机中的耳机形态信息)佩戴到耳朵上之后,左耳机上的传感器检测到左耳机已经佩戴到耳朵上,则该左耳机可以读取自身的耳机形态信息对应的音频信息,即根据标识0读取到音频信息“您 佩戴的是左耳机”,然后播放出来。同理,当右耳机(图6a中标识有“R”的耳机)佩戴到耳朵上之后,右耳机上的传感器检测到右耳机已经佩戴到耳朵上,则该右耳机可以读取自身的耳机形态信息对应的音频信息,即根据标识1读取到音频信息“您佩戴的是右耳机”,然后播放出来。
在上述实施例中,耳机形态信息对应的音频信息存储在耳机的存储介质中。在另一些实施例中,耳机形态信息对应的音频信息存储在终端上。此时,耳机检测到耳机已佩戴后,可以向终端发送指示信息,使得终端向耳机返回对应的音频信息,耳机获取到该音频信息后进行播放。
2、耳机通过振动的方式来提示用户佩戴的耳机类型是左耳机或右耳机。
在另一些实施例中,耳机可以通过振动的方式来提示用户佩戴的耳机类型是左耳机或右耳机。具体地,耳机可以在检测到用户已佩戴耳机后,确定耳机形态信息对应的振动属性,然后根据该振动属性控制振动模块(可以是转子马达、线性马达等)进行振动。其中,振动属性可以包括但不限于振动频率、振动次数、振动时长和振动强度等。
可以理解的是,不同的耳机形态信息对应的振动属性一般不相同。例如,左耳机对应的振动属性可以是振动一次,而右耳机对应的振动属性可以是振动两次。或者左耳机对应的振动属性是较长时间振动,右耳机对应的振动属性是较短时间振动。
3、耳机通过终端来提示用户佩戴的耳机类型是左耳机或右耳机。
图6b为本申请实施例提供的耳机佩戴后通过终端提示的示意图。耳机检测到自身被用户佩戴后,可以向终端发送自身的耳机形态信息。以使得终端提示用户佩戴的耳机类型是左耳机或右耳机。具体地,终端可以以多种方式进行提示。其中,如图6b所示的方式为终端上显示耳机以及对应的标注,说明该耳机已佩戴。在其他情况下,终端也可以用显示的耳机颜色来表示,或者终端播放音频信息等,本申请实施例对此不做限定。
耳机可以在不同情况下提示用户佩戴的耳机类型是左耳机或右耳机,本申请实施例提供其中三种情况如下:
第一种情况:耳机从耳机仓中拿出来即提示用户佩戴的耳机类型是左耳机或右耳机。具体地,耳机可以通过检测耳机与耳机盒上接口是否断开来确定耳机是否从耳机仓中拿出。当耳机确定从耳机仓中拿出来后可以通过上述三种方式或其他方式提示用户佩戴的耳机类型是左耳机或右耳机。
第二种情况:耳机可以在检测到自身被用户佩戴后提示用户佩戴的耳机类型是左耳机或右耳机。检测耳机佩戴状态的方法可以是通过电容传感器、红外线传感器、热敏电阻、心率传感器等检测,本申请实施例对此不做限定。
可以理解的是,当用户同时佩戴两个耳机时,左右耳机可能同时通过播放音频来提示用户,此时左右耳听到的音频不同,容易造成用户听错。有鉴于此,本申请实施例提供一种方式解决上述问题,该方式为:当检测到用户同时佩戴一个耳机和另一个耳机时(在实际应用中,这两个耳机可以通过蓝牙通信,并通过蓝牙协议统一计时时间,从而当检测到耳机的佩戴时刻相同时,可以确定为同时佩戴),耳机确定与耳机形态信息对应的时延;耳机根据时延延迟提示用户佩戴的耳机类型是左耳机或右耳机。示例性的,左耳机的时延为 0秒,右耳机的时延为3秒,则当左耳机和右耳机同时检测到自身被用户佩戴后,左耳机会马上播放音频来提示用户,而右耳机则会延时3秒后再进行提示。这样两个耳机的音频不会同时播放,用户能够清楚听到耳机的提示音频。
在一些情况中,当检测到用户同时佩戴一个耳机和另一个耳机时,左耳机可以播放音频来提示用户佩戴的是左耳机,同时通过蓝牙通信向右耳机发送指示,使得右耳机不播放提示音频。则用户听到左耳机的提示后,已知该耳机是左耳机,则另外一个耳机必然是右耳机。因此实际上仅左耳机播放提示音频即可达到符合要求的效果。
第三种情况:耳机在与终端建立蓝牙连接之后提示用户佩戴的耳机类型是左耳机或右耳机。如图7所示,右耳机与终端建立蓝牙连接之后,右耳机可以提示用户佩戴的耳机类型是左耳机或右耳机。右耳机可以采用上述三种方式的其中一种方式进行提示,也可以多种方式同时提示,本申请实施例对此不做限定。
可以理解的是,一些耳机并没有检测用户是否佩戴耳机的功能。那么这类耳机在用户使用的时候,可以采用蓝牙连接后再进行提示的方案。例如,在实际应用中,用户将耳机从耳机仓拿出来后,将耳机佩戴好,再打开终端的蓝牙开关,使得终端与耳机进行蓝牙配对连接。因此在这种情况下,耳机在与终端建立蓝牙连接之后提示用户佩戴的耳机类型是左耳机或右耳机,是比较合适的方案。
在实际应用中,耳机还可能被其他情况触发而提示用户佩戴的耳机类型是左耳机或右耳机,本申请实施例对此不做限定。
图8为本申请实施例提供的提示未佩戴耳机的示意图。在本申请实施例中,耳机可以向终端发送耳机形态信息,以使得终端根据耳机的佩戴状态及耳机形态信息提示用户未佩戴左耳机或右耳机。示例性的,如图8所示,左耳机向终端发送耳机形态信息(标识0)和关联的左耳机的佩戴状态(未佩戴),则终端接收到该耳机形态信息和佩戴状态信息后,可以确定左耳机未佩戴,则终端可以在显示屏上显示左耳机未佩戴的信息。与之对比,右耳机可以向终端发送耳机形态信息(标识0)和关联的右耳机的佩戴状态(已佩戴),则终端可以确定右耳机已佩戴。可选地,终端可以同时提示右耳机已佩戴和左耳机未佩戴,为更醒目地提示用户,可以较大图案和/或字体、高亮和/或动态显示左耳机未佩戴,对应地,可以较小图案和/或字体、常规显示右耳机已佩戴。
图9a为本申请实施例提供的耳机与终端以双发模式通信的示意图。图9b为本申请实施例提供的双发模式通信时的流程图。该流程包括:
901、耳机读取耳机形态信息;
在本申请实施例中,耳机可以首先从耳机内部的存储介质中读取自身的耳机形态信息。
902、耳机向终端发送耳机形态信息;
在本申请实施例中,耳机读取到耳机形态信息后可以向终端发送。具体地,耳机可以在与终端建立蓝牙连接后,通过蓝牙通信向终端发送耳机形态信息。
903、终端根据耳机形态信息向耳机发送左声道音频数据或右声道音频数据。
在本申请实施例中,终端接收到耳机形态信息后,可以将该耳机形态信息来自的蓝牙记录起来(例如记录蓝牙地址等)。然后终端可以向该耳机形态信息对应的蓝牙发送与耳机 形态信息对应的音频数据(即左声道音频数据或右声道音频数据)。示例性的,左耳机向终端发送的耳机形态信息为标识0,那么终端接收到该耳机形态信息后,确定标识0对应的音频数据为左声道音频数据。则终端可以向该耳机形态信息对应的蓝牙发送左声道音频数据。右耳机向终端发送的耳机形态信息为标识1,那么终端接收到该耳机形态信息后,确定标识1对应的音频数据为右声道音频数据。则终端可以向该耳机形态信息对应的蓝牙发送右声道音频数据。
图10a为本申请实施例提供的耳机与终端以协同模式通信的示意图。图10b为本申请实施例提供的协同模式通信时的流程图。该流程包括:
1001、耳机接收来自终端的左右声道音频数据;
在本申请实施例中,终端无须识别耳机是左耳机还是右耳机。终端可以将左右声道音频数据发送给两个耳机,以使得每个耳机都获取到来自终端的左右声道音频数据。
可以理解的是,左右声道音频数据可以包括左声道音频数据和右声道音频数据,这两种数据可以被耳机区分开来。
1002、耳机读取耳机形态信息;
在本申请实施例中,步骤1002与前述图9b对应的各个实施例中的步骤901类似,此处不再赘述。
可以理解的是,步骤1001和步骤1002没有顺序关系。在实际应用中,可以先执行步骤1001,再执行步骤1002,也可以先执行步骤1002,再执行步骤1001,又或者同时执行,本申请实施例对此不做限定。
1003、耳机根据耳机形态信息确定自身为左耳机或右耳机;
在本申请实施例中,耳机可以根据耳机形态信息确定自身为左耳机或右耳机。若耳机确定自身为左耳机,则耳机可以执行步骤1004。若耳机确定自身为右耳机,则耳机可以执行步骤1005。
1004、耳机从左右耳声道音频数据中获取左声道音频数据并进行播放;
在本申请实施例中,耳机确定自身为左耳机后,可以从左右耳声道音频数据中获取左声道音频数据。从左右耳声道音频数据中获取左声道音频数据的方法与现有方案相同,此处不再赘述。耳机获取到左声道音频数据后,可以向解码器发送该左声道音频数据,解码器对该左声道音频数据进行解码后传输至喇叭进行播放。
1005、耳机从左右耳声道音频数据中获取右声道音频数据并进行播放。
在本申请实施例中,耳机确定自身为右耳机后,可以从左右耳声道音频数据中获取右声道音频数据。从左右耳声道音频数据中获取右声道音频数据的方法与现有方案相同,此处不再赘述。耳机获取到右声道音频数据后,可以向解码器发送该右声道音频数据,解码器对该右声道音频数据进行解码后传输至喇叭进行播放。
图11a为本申请实施例提供的耳机与耳机盒的硬件示意图。为简洁作图,图11a中仅示出了其中一些硬件,其他硬件如喇叭、蓝牙模块等未画出。图11a中,耳机1100包括芯片/处理器1101、存储器1102、非易失性存储介质1103和耳机电池1104。耳机1100的外壳上设置有通信接口1105和充电接口1106。耳机盒1107包括芯片/处理器1108、存储器 1110和耳机盒电池1109。耳机盒1107的外壳设置有通信接口1111、充电接口1112、通信接口1113和充电接口1114。在本申请实施例中,非易失性存储介质1103可以是flash存储器。存储器1102和非易失性存储介质1103可以如图11a设置,也可以用一个存储器代替,本申请实施例对此不做限定。
其中,通信接口1111和充电接口1112可以具体设置在左耳机仓的内壁,使得耳机1100放入左耳机仓时,耳机1100上的通信接口1105可以与通信接口1111连接,充电接口1106可以与充电接口1112连接。同理,通信接口1113和充电接口1114可以具体设置在右耳机仓的内壁。
在另一些情况中,通信接口1111和充电接口1112也可以设置在左耳机仓对应的盖子上,而且耳机1100放入左耳机仓时,耳机1100的通信接口1105朝外与盖子上的通信接口1111对齐。因此,当盖子盖上时,盖子上的通信接口1111和耳机1100的通信接口1105可以连接。同理,耳机1100的充电接口1106和盖子上的充电接口1112也可以连接。类似地,通信接口1113和充电接口1114可以设置在右耳机仓对应的盖子上。
在本申请实施例中,当耳机1100放入耳机盒1107中的其中一个耳机仓后,耳机1100可以通过芯片/处理器1101执行存储器1102中的程序代码,在耳机1100上实现如前述图3对应的各个实施例的方法。耳机盒1107可以通过芯片/处理器1108执行存储器1110中的程序代码,在耳机盒1107上实现如前述图3对应的各个实施例中耳机盒1107通过通信接口1111或通过通信接口1113向耳机1100发送耳机属性信息的步骤。
可以理解的是,耳机盒电池1109可以通过充电接口1112和/或充电接口1106给耳机1100上的耳机电池1104充电。非易失性存储介质1103用于存储耳机形态信息。
图11b为本申请实施例提供的耳机与耳机盒的另一种硬件示意图。为简洁作图,图11b中仅示出了其中一些硬件,其他硬件如喇叭、蓝牙模块等未画出。图11b中,耳机1100包括芯片/处理器1101、存储器1102、非易失性存储介质1103和耳机电池1104。耳机1100的外壳上设置有充电通信复用接口1115。耳机盒1107包括芯片/处理器1108、存储器1110和耳机盒电池1109。耳机盒1107的外壳设置有充电通信复用接口1116、充电通信复用接口1117。非易失性存储介质1103用于存储耳机形态信息。在本申请实施例中,非易失性存储介质1103可以是flash存储器。存储器1102和非易失性存储介质1103可以如图11b设置,也可以用一个存储器代替,本申请实施例对此不做限定。
其中,充电通信复用接口1116可以设置在左耳机仓的内壁,充电通信复用接口1117可以设置在右耳机仓的内壁。当耳机1100放入左耳机仓时,耳机1100上的充电通信复用接口1115可以与左耳机仓内壁的充电通信复用接口1116连接。当耳机1100放入右耳机仓时,耳机1100上的充电通信复用接口1115可以与右耳机仓内壁的充电通信复用接口1117连接。
在另一些情况中,充电通信复用接口1115可以设置在左耳机仓对应的盖子上,而且耳机1100放入左耳机仓时,耳机1100的充电通信复用接口1116朝外与盖子上的充电通信复用接口1116对齐。因此,当盖子盖上时,盖子上的充电通信复用接口1116和耳机1100的充电通信复用接口1115可以连接。同理,充电通信复用接口1117可以设置在右耳机仓对 应的盖子上。
在本申请实施例中,当耳机1100放入耳机盒1107中的其中一个耳机仓后,耳机1100可以通过芯片/处理器1101执行存储器1102中的程序代码,在耳机1100上实现如前述图3对应的各个实施例的方法。耳机盒1107可以通过芯片/处理器1108执行存储器1110中的程序代码,在耳机盒1107上实现如前述图3对应的各个实施例中耳机盒1107通过充电通信复用接口1116或充电通信复用接口1117向耳机1100发送耳机属性信息的步骤。
图12为本申请实施例中提供的耳机与终端的硬件示意图。为简洁作图,图12中仅示出了其中一些硬件,其他硬件如电池、通信接口等未画出。图12中,耳机1200包括芯片/处理器1201、存储器1202、非易失性存储介质1203、蓝牙模块1204、音频模块1205和喇叭1206。在本申请实施例中,非易失性存储介质1203可以是flash存储器。存储器1202和非易失性存储介质1203可以如图12设置,也可以用一个存储器代替,本申请实施例对此不做限定。
其中,当耳机1200从耳机仓拿出后,耳机1200可以通过芯片/处理器1201执行存储器1202中的程序代码,在耳机1200上实现如前述图6a和图6b对应的各个实施例的方法。具体地,耳机1200可以通过芯片/处理器1201从非易失性存储介质中读取耳机形态信息,并从存储器1202中读取与耳机形态信息对应的音频信息,发送至音频模块1205。音频模块1205可以是解码器等器件。音频模块1205对该音频信息解码后发送至喇叭1206进行播放。
另一方面,耳机1200还可以通过蓝牙模块1204向终端1207发送耳机形态信息。终端1207接收到该耳机形态信息后可以进行如上述实施例的提示、显示、双发模式通信、协同模式通信等步骤。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者 说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例的技术方案的范围。

Claims (17)

  1. 一种耳机左右耳校准的方法,其特征在于,包括:
    当耳机放入耳机仓后,所述耳机获取所述耳机仓对应的耳机属性信息,其中,所述耳机仓包括左耳机仓和右耳机仓,所述耳机属性信息包括对应所述左耳机仓的第一耳机属性信息和对应所述右耳机仓的第二耳机属性信息,所述第一耳机属性信息和所述第二耳机属性信息不同;
    若获取的所述耳机属性信息与所述耳机中的耳机形态信息不一致,则所述耳机根据获取的所述耳机属性信息修改所述耳机形态信息,所述耳机形态信息用于表示所述耳机为左耳机或右耳机。
  2. 根据权利要求1所述的方法,其特征在于,所述耳机获取所述耳机仓对应的耳机属性信息包括:
    所述耳机通过所述左耳机仓的通信接口或充电接口获取所述第一耳机属性信息,或
    所述耳机通过所述右耳机仓的通信接口或充电接口获取所述第二耳机属性信息。
  3. 根据权利要求1所述的方法,其特征在于,所述耳机获取所述耳机仓对应的耳机属性信息包括:
    所述耳机通过与所述左耳机仓的蓝牙连接获取所述第一耳机属性信息,或
    所述耳机通过与所述右耳机仓的蓝牙连接获取所述第二耳机属性信息。
  4. 根据权利要求1至3任意一项所述的方法,其特征在于,
    所述耳机形态信息存储在所述耳机的非易失性存储介质或寄存器中;
    所述耳机属性信息存储在所述耳机仓的非易失性存储介质或寄存器中。
  5. 根据权利要求1至4任意一项所述的方法,其特征在于,所述当耳机放入耳机仓后,所述耳机获取所述耳机仓对应的耳机属性信息,具体包括:
    当耳机放入耳机仓后,所述耳机的第一通信接口与所述耳机仓的第二通信接口连接,以使得所述耳机通过所述第一通信接口和所述第二通信接口获取所述耳机属性信息,或
    当耳机放入耳机仓后,所述耳机的第一充电通信复用接口与所述耳机仓的第二充电通信复用接口连接,以使得所述耳机通过所述第一充电通信复用接口和所述第二充电通信复用接口获取所述耳机属性信息,或
    当耳机放入耳机仓后,所述耳机的蓝牙与所述耳机仓的蓝牙建立连接,以使得所述耳机通过所述耳机和所述耳机仓之间的蓝牙通信获取所述耳机属性信息。
  6. 根据权利要求1至5任意一项所述的方法,其特征在于,所述方法还包括:
    当检测到用户佩戴所述耳机时,所述耳机根据所述耳机形态信息提示所述用户佩戴的耳机类型是左耳机或右耳机。
  7. 根据权利要求6所述的方法,其特征在于,所述耳机根据所述耳机形态信息提示所述用户佩戴的耳机类型是左耳机或右耳机包括:
    所述耳机确定与所述耳机形态信息对应的音频信息;
    所述耳机播放所述音频信息,用于提示所述用户佩戴的耳机类型是左耳机或右耳机。
  8. 根据权利要求6所述的方法,其特征在于,所述耳机根据所述耳机形态信息提示所 述用户佩戴的耳机类型是左耳机或右耳机包括:
    所述耳机确定所述耳机形态信息对应的振动属性,所述振动属性包括振动频率、振动次数、振动时长和振动强度中的至少一种;
    所述耳机根据所述振动属性进行振动,用于提示所述用户佩戴的耳机类型是左耳机或右耳机。
  9. 根据权利要求6所述的方法,其特征在于,所述耳机根据所述耳机形态信息提示所述用户佩戴的耳机类型是左耳机或右耳机包括:
    所述耳机向与所述耳机连接的终端发送所述耳机形态信息,以使得所述终端提示所述用户佩戴的耳机类型是左耳机或右耳机。
  10. 根据权利要求6至9任意一项所述的方法,其特征在于,所述方法还包括:
    当检测到所述用户同时佩戴所述耳机和另一个耳机时,所述耳机确定与所述耳机形态信息对应的时延;
    所述耳机根据所述时延延迟提示所述用户佩戴的耳机类型是左耳机或右耳机。
  11. 根据权利要求1至10任意一项所述的方法,其特征在于,所述方法还包括:
    所述耳机向终端发送所述耳机形态信息,以使得所述终端根据所述耳机的佩戴状态及所述耳机形态信息提示所述用户未佩戴左耳机或右耳机。
  12. 根据权利要求1至11任意一项所述的方法,其特征在于,所述方法还包括:
    所述耳机向终端发送所述耳机形态信息,以使得所述终端根据所述耳机形态信息发送对应的音频至所述耳机。
  13. 根据权利要求1至11任意一项所述的方法,其特征在于,所述方法还包括:
    所述耳机获取终端的至少两路音频;
    所述耳机根据所述耳机形态信息从所述至少两路音频中选择音频进行播放。
  14. 一种耳机,其特征在于,包括一个或一个以上处理器,存储器,非易失性存储介质,有线或无线网络接口;
    所述存储器为短暂存储存储器或持久存储存储器,所述存储器中存储有程序代码;
    所述非易失性存储介质存储有耳机形态信息;
    所述处理器配置为与所述存储器和所述非易失性存储介质通信,执行所述存储器中的程序代码以使得所述耳机执行权利要求1至13中任意一项所述的方法。
  15. 根据权利要求14所述的耳机,其特征在于,所述耳机还包括充电接口和/或通信接口;
    所述耳机放入耳机仓时,所述充电接口和/或所述通信接口与所述耳机仓上的接口连接,使得所述耳机与所述耳机仓建立连接。
  16. 根据权利要求14或15所述的耳机,其特征在于,所述耳机还包括蓝牙模块:
    所述耳机通过所述蓝牙模块向终端发送所述耳机形态信息。
  17. 根据权利要求14至16任意一项所述的耳机,其特征在于,所述耳机还包括音频模块和喇叭;
    所述处理器还用于通过所述音频模块向所述喇叭发送与所述耳机形态信息对应的音 频,使得所述喇叭播放所述音频。
PCT/CN2022/086557 2021-04-30 2022-04-13 一种耳机左右耳校准的方法及耳机 WO2022228122A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110486316.6A CN115278470A (zh) 2021-04-30 2021-04-30 一种耳机左右耳校准的方法及耳机
CN202110486316.6 2021-04-30

Publications (1)

Publication Number Publication Date
WO2022228122A1 true WO2022228122A1 (zh) 2022-11-03

Family

ID=83746166

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/086557 WO2022228122A1 (zh) 2021-04-30 2022-04-13 一种耳机左右耳校准的方法及耳机

Country Status (2)

Country Link
CN (1) CN115278470A (zh)
WO (1) WO2022228122A1 (zh)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080089539A1 (en) * 2006-10-17 2008-04-17 Kentaroh Ishii Wireless headphones
CN102026082A (zh) * 2009-09-21 2011-04-20 联想(北京)有限公司 用于发声装置的声道自适应方法和装置
CN104202697A (zh) * 2014-09-18 2014-12-10 苏州大学 一种自适应左右声道自动切换立体声耳机
CN105101016A (zh) * 2015-08-07 2015-11-25 深圳市金立通信设备有限公司 一种耳机声道切换方法及终端
CN108391205A (zh) * 2018-03-30 2018-08-10 广东欧珀移动通信有限公司 左右声道切换方法和装置、可读存储介质、终端
CN110166868A (zh) * 2019-05-28 2019-08-23 歌尔科技有限公司 一种与无线耳机通信的充电盒及充电系统
CN212519359U (zh) * 2020-04-23 2021-02-09 上海矽臻微电子有限公司 无线充电式蓝牙耳机装置
JP2021027569A (ja) * 2019-08-09 2021-02-22 株式会社Jvcケンウッド ワイヤレスイヤフォン
CN114286219A (zh) * 2020-09-28 2022-04-05 华为技术有限公司 耳机声道的配置方法、耳机组件和计算机可读存储介质

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080089539A1 (en) * 2006-10-17 2008-04-17 Kentaroh Ishii Wireless headphones
CN102026082A (zh) * 2009-09-21 2011-04-20 联想(北京)有限公司 用于发声装置的声道自适应方法和装置
CN104202697A (zh) * 2014-09-18 2014-12-10 苏州大学 一种自适应左右声道自动切换立体声耳机
CN105101016A (zh) * 2015-08-07 2015-11-25 深圳市金立通信设备有限公司 一种耳机声道切换方法及终端
CN108391205A (zh) * 2018-03-30 2018-08-10 广东欧珀移动通信有限公司 左右声道切换方法和装置、可读存储介质、终端
CN110166868A (zh) * 2019-05-28 2019-08-23 歌尔科技有限公司 一种与无线耳机通信的充电盒及充电系统
JP2021027569A (ja) * 2019-08-09 2021-02-22 株式会社Jvcケンウッド ワイヤレスイヤフォン
CN212519359U (zh) * 2020-04-23 2021-02-09 上海矽臻微电子有限公司 无线充电式蓝牙耳机装置
CN114286219A (zh) * 2020-09-28 2022-04-05 华为技术有限公司 耳机声道的配置方法、耳机组件和计算机可读存储介质

Also Published As

Publication number Publication date
CN115278470A (zh) 2022-11-01

Similar Documents

Publication Publication Date Title
EP2839675B1 (en) Auto detection of headphone orientation
CN102026082B (zh) 用于发声装置的声道自适应方法和装置
US9898248B2 (en) Method and device for playing modified audio signals
US6483925B1 (en) Headphone having several speakers
US20120114154A1 (en) Using accelerometers for left right detection of headset earpieces
US9338540B2 (en) Device control based on worn headphone detection
US9002026B2 (en) Headphone with speaker function
KR101518010B1 (ko) 모바일 단말기용 다기능 이어폰
EP2172055A1 (en) Headset with on-ear detection
US8666098B2 (en) Single earphone for stereo and monaural audio devices
CN101964932A (zh) 一种音源设备以及控制方法
US20170280244A1 (en) Switchable Four-pole Jack For Supporting Balanced Headphones and Headset Operation in Mobile Applications
KR101372945B1 (ko) 스피커로 분리 가능한 착탈형 헤드폰 및 이를 이용한 음향출력 방법
CN106993256A (zh) 用于在移动应用中区别地检测和驱动耳机的装置和方法
EP3700231A1 (en) Audio device and audio producing method
CN104902363A (zh) 一种辅助识别耳机输出端的方法及装置
WO2022228122A1 (zh) 一种耳机左右耳校准的方法及耳机
CN106451824A (zh) 蓝牙耳机的充电方法、装置及蓝牙耳机
JP2012516610A (ja) 人体通信を行う携帯用端末機及び聴音器、並びにそのためのデータ制御方法
CN113840200A (zh) 播放设备确定方法、装置、耳机收纳系统及电子设备
CN208863048U (zh) 一种无线播放设备及头戴式无线耳机系统
CN107396251A (zh) 支持移动应用中的平衡耳机和耳麦操作的可切换四极插头
CN203608329U (zh) 具备外放功能的头戴式耳机
US10111005B2 (en) Method and device for modifying audio signals based on hearing capabilities of the listener
EP1274274A1 (en) Headphone having several speakers

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22794593

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE