WO2021121411A1 - Open-closed detection method, wireless earphone, earphone box and storage medium - Google Patents

Open-closed detection method, wireless earphone, earphone box and storage medium Download PDF

Info

Publication number
WO2021121411A1
WO2021121411A1 PCT/CN2020/137792 CN2020137792W WO2021121411A1 WO 2021121411 A1 WO2021121411 A1 WO 2021121411A1 CN 2020137792 W CN2020137792 W CN 2020137792W WO 2021121411 A1 WO2021121411 A1 WO 2021121411A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio signal
earphone
preset
wireless
switch detection
Prior art date
Application number
PCT/CN2020/137792
Other languages
French (fr)
Chinese (zh)
Inventor
刘绍斌
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021121411A1 publication Critical patent/WO2021121411A1/en

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
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • 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
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Definitions

  • the embodiments of the present application relate to the field of terminal technology, and in particular, to a switch detection method, a wireless earphone, a earphone box, and a storage medium.
  • TWS headset which is spawned by True Wireless Stereo (TWS) technology
  • TWS headsets and other such wireless headsets are the left and right two. Only earplugs do not need cable connection, and can work independently only by realizing the wireless separation of the left and right channels.
  • the wireless earphone can determine the on-off state of the earphone box through the setting of the Hall sensor.
  • this switch detection method by adding a Hall sensor to the wireless headset will affect the shape and structure of the wireless headset, and the function of the Hall sensor will fail at high temperatures, which will directly cause detection errors and reduce The accuracy of detection leads to the defect of poor reliability of wireless headsets.
  • the embodiments of the present application provide a switch detection method, a wireless headset, a headset box, and a storage medium. Without affecting the shape and structure of the wireless headset, the accuracy of the switch detection of the wireless headset can be greatly improved, and the wireless headset can be effectively improved Reliability.
  • an embodiment of the present application provides a switch detection method, the switch detection method is applied to a wireless headset, the wireless headset includes a sound generating module, a sound receiving module, and a power supply module, and the method includes:
  • the power supply module After the power supply module detects the excitation voltage input by the earphone box, generating a preset audio signal through the sounding module;
  • the switch detection result is determined according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
  • an embodiment of the present application provides a switch detection method, the switch detection method is applied to an earphone box, the earphone box includes a power supply module, and the method includes:
  • the power supply module transmits the excitation voltage to the wireless earphone connected to the earphone box, so that the sound generating module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone collects the audio signal to obtain the target audio signal
  • the target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone learns the state of the open/close cover of the earphone box.
  • an embodiment of the present application provides a wireless headset, the wireless headset is provided with a sound generating module, a receiving module, and a power supply module.
  • the wireless headset includes: a generating part, an acquiring part, and a determining part,
  • the generating part is configured to generate a preset audio signal through the sounding module after the power supply module detects the excitation voltage input by the earphone box;
  • the acquiring part is configured to perform audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine a situation in which the sound receiving module acquires a preset audio signal;
  • the determining part is configured to determine a switch detection result according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
  • an embodiment of the present application provides an earphone box, the earphone box is provided with a power supply module, and the earphone box includes: a power supply part,
  • the power supply part is configured to transmit an excitation voltage to the wireless earphone connected to the earphone box through the power supply module, so that the sound module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone collects
  • the audio signal is used to obtain a target audio signal, and the target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone learns the open/closed state of the earphone box.
  • an embodiment of the present application provides a wireless headset.
  • the wireless headset includes a processor, a memory storing executable instructions of the processor, a sound module, a sound receiver module, and a power supply module. When executed by the processor, the switch detection method as described above is realized.
  • an embodiment of the present application provides a computer-readable storage medium with a program stored thereon and applied to a wireless headset.
  • the program is executed by a processor, the above-mentioned switch detection method is implemented.
  • the embodiment of the application provides a switch detection method, a wireless earphone, a earphone box, and a storage medium.
  • the switch detection method is applied to a wireless earphone.
  • the wireless earphone includes a sound module, a sound receiver module, and a power module.
  • the power module detects the earphone box input After the excitation voltage of the sound module, the preset audio signal is generated by the sound module; the target audio signal is obtained by audio collection through the sound module; wherein, the target audio signal is used to determine the situation where the sound module obtains the preset audio signal; according to the target
  • the audio signal determines the switch detection result; the switch detection result is used to determine the switch state of the earphone box.
  • the wireless earphone after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speaker and microphone of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that it can be guaranteed without affecting the shape and structure of the wireless headset The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
  • Figure 1 is a schematic diagram of a wireless headset and a headset box
  • Figure 2 is a schematic diagram of the composition structure of a wireless headset
  • Figure 3 is a second schematic diagram of the composition structure of a wireless headset
  • Figure 4 is the first schematic diagram of the implementation process of the switch detection method
  • Figure 5 is a second schematic diagram of the implementation process of the switch detection method
  • Figure 6 is a third schematic diagram of the composition structure of a wireless headset
  • Figure 7 is a fourth schematic diagram of the composition structure of a wireless headset
  • Figure 8 is a schematic diagram of the composition structure of the earphone box
  • Figure 9 is a second schematic diagram of the composition structure of the earphone box.
  • the TWS headset which is based on TWS technology, applies TWS technology to the field of Bluetooth wireless headsets.
  • the left and right earplugs of such wireless earphones such as TWS earphones do not need to be connected by a cable, and can work independently only by realizing the wireless separation of the left and right channels.
  • Wireless earphones such as TWS earphones can completely get rid of the trouble of being bound by cables and have more freedom of movement.
  • wireless earphones can be used in a variety of ways, which can be exclusive, shared, and one device can be used as two devices.
  • the earphone box For wireless earphones, there can be a matching earphone box.
  • the function of the earphone box is to store the wireless earphones.
  • the earphone box is also integrated with a mobile power supply. Therefore, when the TWS earphone is out of power, just put it in the earphone box. Can be charged.
  • the POGO PIN can make the circuit between the wireless earphone and the earphone box conduct, thereby Charge the wireless headset.
  • Common wireless earphones are set with 2 PINs or 3 PINs, which are generally located at the corresponding positions on the wireless earphone and earphone box.
  • the POGO PIN on the earphone and the POGO PIN on the earphone box will be Just touching and conducting.
  • the wireless earphone can determine the on-off state of the earphone box through the setting of the Hall sensor.
  • Hall switch belongs to this kind of active magnetoelectric conversion device. It is made by integrated packaging and assembly process based on the principle of Hall effect, which can easily convert magnetic input signals into electrical signals in practical applications. At the same time, it also meets the requirements of easy operation and reliability in practical industrial applications.
  • FIG. 1 is a schematic diagram of a wireless headset and a headset box.
  • the wireless headset can be provided with a Hall sensor A. Accordingly, a magnet B is placed on the top of the headset box.
  • the output level of the earphone sensor changes, and the wireless earphone can judge the switch state of the earphone box by detecting the level change of the Hall sensor output. Specifically, when the box cover of the earphone box is opened, the Hall sensor outputs a high level, and when the box cover of the earphone box is closed, the Hall sensor outputs a low level.
  • the wireless earphone can determine the on-off state of the earphone box by monitoring the corresponding voltage.
  • the existing wireless earphones method for detecting the on-off state of the earphone box has the following defects:
  • the wireless earphone requires additional components. For example, when a Hall sensor is used for detection, a Hall sensor needs to be added, and the left and right earphones need a Hall sensor each, so the cost is higher.
  • the occupied space is relatively large. It is precisely because of the need to add Hall sensors and other devices in the wireless headset, it will increase the size of the wireless headset, and at the same time will affect the shape and structure of the wireless headset, and reduce the user experience.
  • Reliability is unstable. For example, the function of the magnet induced by the Hall sensor will fail at high temperature and after a period of use. This will cause the detection of the switch state to be wrong, reduce the accuracy of the detection, and have poor reliability.
  • the existing switching detection method of adding a Hall sensor to a wireless headset will affect the shape and structure of the wireless headset, and the Hall sensor will fail to function at high temperatures, which will directly cause detection errors. , Which reduces the accuracy of detection, leading to the defect of poor reliability of wireless headsets.
  • the wireless earphone can directly perform the switch detection of the earphone box by using the sound generating device and the sound receiving device configured by itself, without adding additional devices such as a Hall sensor.
  • it significantly reduces the production cost of wireless earphones.
  • it greatly reduces the size and structural complexity of wireless earphones.
  • it avoids the risk of magnet failure after a period of use, and effectively improves the reliability of wireless earphones. .
  • FIG. 2 is a schematic diagram of the composition structure of a wireless headset.
  • the wireless headset 10 may include a sound emitting module 11, a sound receiving module 12, and a power supply module 13.
  • the wireless headset 10 may be a TWS headset based on TWS technology.
  • the sound emitting module 11 configured in the wireless earphone 10 is mainly a module for emitting sound signals, such as a sound emitting device such as a speaker.
  • the loudspeaker also known as the "horn" is a very commonly used electroacoustic transducer.
  • the loudspeaker is a transducer that converts an electric signal into an acoustic signal.
  • the performance of the loudspeaker has a great influence on the sound quality.
  • the speaker is one of the weakest components in audio equipment, and it is the most important component for audio effects. There are many types of speakers, and the prices vary greatly. Audio electric energy uses electromagnetic, piezoelectric or electrostatic effects to make the cone or diaphragm vibrate and resonate (resonate) with the surrounding air to produce sound.
  • the sound receiving module 12 configured in the wireless earphone 10 is mainly a module for receiving sound signals, such as a sound transmission device such as a microphone.
  • the microphone microphone
  • the scientific name is microphone, also known as microphone, microphone.
  • a microphone is an energy conversion device that converts sound signals into electrical signals. Specifically, it can be divided into moving coil type, capacitive type, electret, and the recently emerging silicon micro-microphone, in addition to liquid microphones and laser microphones. Most microphones are electret condenser microphones, and their working principle is to use a polymer material diaphragm with permanent charge isolation.
  • the power module 13 configured in the wireless headset 10 may specifically include a power supply circuit, and further, may also include a charging circuit.
  • FIG. 3 is a second schematic diagram of the structure of the wireless headset.
  • the wireless headset 10 may also be provided with a POGO PIN14.
  • POGO PIN is a precision connector used in mobile phones and other electronic products, and is widely used in semiconductor equipment to play a connection role.
  • POGO PIN is a spring-type probe formed by the three basic components of a needle shaft, a spring, and a needle tube after being riveted and pre-compressed by a precision instrument. There is a precision spring structure inside.
  • the surface coating of POGO PIN is generally gold-plated, which can better improve its anti-corrosion function, mechanical properties, and electrical properties.
  • the needle tip has sharp needles, grasping needles, round needles, knife-shaped needles and so on.
  • POGO PIN is generally used for precision connections in electronic products such as mobile phones, communications, automobiles, medical, aerospace, etc., which can improve the corrosion resistance, stability, and durability of these connectors. Since POGO PIN is a very fine probe, it can be used in precision connectors to reduce the weight and appearance of the connector, which can make the connector more refined and beautiful.
  • the POGO PIN14 in the wireless headset 10 may be a metal pin, which is generally arranged at the bottom of the two earphones or under the earplugs.
  • the POGO PIN 14 can conduct the circuit between the wireless earphone 10 and the earphone box, thereby charging the wireless earphone.
  • Common wireless earphones are set with 2 or 3 POGO PINs, which are located at the corresponding positions on the wireless earphone and earphone box. When the wireless earphone is placed in the earphone box, the POGO PIN on the wireless earphone and the POGO PIN on the earphone box Will just touch and conduct.
  • the wireless headset performing switch detection refers to detecting whether the cover of the headset box is in an open state or a closed state. Specifically, if the wireless headset is placed in the headset box for charging, once the cover of the headset box is opened, it can be considered that the wireless headset needs to be used. Therefore, the wireless headset needs to broadcast so that the surrounding terminals can recognize the wireless headset. Connect with the terminal, such as Bluetooth connection. Correspondingly, if the wireless headset is put into the headset box after use, once the cover of the headset box is closed, it can be considered that the wireless headset does not need to be used. In order to save power consumption, it is no longer necessary to connect to the terminal, then the wireless headset is disconnected Connection with the terminal.
  • the wireless headset can accurately perform switch detection, and can establish a connection with the terminal in time when it needs to be used, and it can also disconnect with the terminal in time when it is not needed, thus improving the intelligence of the wireless headset. , And save power consumption.
  • Fig. 4 is a schematic diagram 1 of the implementation process of the switch detection method.
  • the switch detection method of the wireless headset may include the following steps:
  • Step 101 After the power supply module detects the excitation voltage input from the earphone box, it generates a preset audio signal through the sounding module.
  • the wireless earphone after the power module in the wireless earphone detects the excitation voltage input by the earphone box, the wireless earphone can generate the preset audio signal through the sound module.
  • the detection of the excitation voltage input by the earphone box by the power module may include: the wireless earphone receives the charging voltage (for example, a 5V voltage) transmitted by the earphone box. That is to say, the wireless earphone is put into the earphone box for charging.
  • the wireless earphone receives the charging voltage transmitted by the earphone box
  • the wireless earphone generates a preset audio signal through the sound module, and collects the audio signal through the sound module to obtain the target
  • the audio signal is used for the wireless headset to determine the open status of the charging box, and then determine the Bluetooth connection status with mobile phones and other terminal devices.
  • the power supply module detecting the excitation voltage input by the earphone box may further include: the first preset voltage transmitted by the earphone box to the earphone when the earphone box is in a dormant state. That is to say, when the earphone box is in a sleep state, the earphone box will still emit a first preset voltage, which may not be enough to enable the earphone box to supply power to the wireless earphone, but can stimulate the sound device of the wireless earphone to emit The audio is preset, and the sound receiver performs audio collection to obtain the target audio signal, so that the wireless headset can determine the open state of the charging box, and then determine the Bluetooth connection state with terminal devices such as mobile phones.
  • the earphone box itself does not need to detect whether the cover is opened or not.
  • the wireless earphones in the earphone box are either in the charging state, receiving the charging voltage, or receiving sleep in the fully charged state.
  • the first preset voltage output by the earphone box in the state, or the earphone box enters the dormant state due to low power, stops supplying power to the wireless earphone but keeps outputting the first preset voltage to the wireless earphone. Therefore, after the wireless earphone is placed in the earphone box, it will continue to detect whether the charging box is open or closed by sending preset audio signals and collecting audio signals. When the wireless earphone is taken out of the earphone box, it no longer receives the excitation voltage, thereby stopping the generation of the preset audio signal and the collection of the audio signal.
  • the power module detecting the excitation voltage input by the earphone box may also include: when the earphone box itself detects opening and closing of the cover, emitting a second preset voltage to excite the sound device of the wireless earphone to emit a preset audio , And the sound receiving device performs audio collection to obtain the target audio signal.
  • the wireless earphone is in contact with the earphone box.
  • the earphone box detects that the cover is closed, the earphone box sends the second preset voltage to the wireless earphone.
  • the wireless earphone receives the second preset voltage.
  • the sound module of the wireless earphone generates the preset audio, and the sound module of the wireless earphone collects the audio signal to obtain the target audio. Since the cover of the earphone box is closed, the collection of the preset audio signal is affected, so that it can be judged that the earphone box is closed and the Bluetooth connection is disconnected.
  • the second preset voltage is sent to the wireless earphone in the earphone box, so that the sound module of the wireless earphone generates the preset audio, and the sound module of the wireless earphone collects audio signals to obtain the target audio. Since the earphone box is opened, the collection of the preset audio signal will not be affected, so it is judged that the earphone box is opened and the Bluetooth is connected back.
  • This implementation manner can also be applied when the earphone box is in a sleep state, when the earphone box is opened or closed, the earphone box transmits the second preset voltage to the earphone.
  • the second preset voltage may be a voltage value different from the charging voltage and the first preset voltage.
  • the earphone box itself needs to have the cover opening detection function, so that the excitation voltage can be sent to the wireless earphone in time when the cover opening and closing is detected, so that after the wireless earphone is placed in the earphone box, its sound device and
  • the sound receiving device does not need to continuously send out and collect preset audio signals, but only send out and collect preset audio signals after the cover of the earphone box is opened and closed, which can reduce the power consumption of wireless earphones.
  • the wireless earphone can continuously or intermittently generate the preset audio signal and collect the audio signal in the charging state. In the dormant state, it is necessary to combine the opening and closing detection function of the earphone box.
  • the earphone box detects that the cover is opened or closed, the excitation voltage is sent out, which triggers the wireless earphone to generate a preset audio signal and collect the audio signal.
  • the earphone box can be changed from the closed state to the open state in the sleep state.
  • the sleep state of the earphone box may mean that the earphone box stops supplying power to the wireless earphone and enters a low power consumption state.
  • the sleep state may include two different situations. One is that the headset box enters the sleep state after the wireless headset is fully charged, and the other is that the headset box no longer supplies power to the wireless headset and enters the sleep state when the headset box has insufficient power.
  • the wireless earphone when the earphone box detects that the lid is opened, the wireless earphone can be activated by outputting an excitation voltage. Accordingly, the power module of the wireless earphone can receive the earphone box input
  • the excitation voltage can be a charging voltage or other preset voltages, such as a first preset voltage or a second preset voltage.
  • the earphone box and the wireless earphone are provided with a POGO PIN at the positions corresponding to each other. After the earphone box detects that the cover is opened, it can output the excitation voltage through the POGO PIN on the earphone box. It is recognized by the power module through the corresponding POGO PIN on the wireless headset.
  • the power module of the headset can further detect the excitation voltage through the POGO PIN.
  • the power module in the wireless headset can activate the sound generating module and the sound receiving module after detecting the excitation voltage input by the earphone box, so that the sound generating module and the sound receiving module can be used.
  • the module determines the switch state of the earphone box.
  • the wireless headset needs to further determine the connection state with the terminal according to the on or off state of the headset box. Therefore, the wireless headset needs to perform accurate switch detection on the headset box.
  • the earphone box needs to have a detection function of opening and closing the cover, and the earphone box can determine the open state or the closed state of the box cover in a variety of ways.
  • a Hall sensor can be provided in the earphone box, so that the Hall sensor can be used to detect the state change of the box cover.
  • An infrared sensor can also be provided in the earphone box, so that the infrared sensor can be used to detect the state change of the box cover.
  • Step 102 Perform audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine the situation in which the sound receiving module obtains a preset audio signal.
  • the sound receiving module in the wireless earphone may perform audio collection to obtain the target audio signal.
  • the target audio signal is used to determine the condition that the sound receiving module can receive the preset audio signal.
  • the sound module in the wireless earphone after the sound module in the wireless earphone generates and sends out the preset audio signal, when the sound receiver module in the wireless earphone performs audio collection, if the earphone box is turned on, then The radio module can collect audio signals. If the earphone box is closed, the cover of the earphone box will block the transmission of audio signals between the sound module and the radio module, which will affect the radio module’s ability to preset audio signals. Collection.
  • the sound module when the wireless headset receives the excitation voltage, the sound module will continuously or intermittently emit a preset audio signal, and the sound receiver module will correspondingly continuously or intermittently collect the audio signal. Further, To prevent the user from hearing the preset audio signal, the preset audio signal can be set to a frequency that cannot be heard by human ears.
  • the wireless earphone when the wireless earphone generates and emits a preset audio signal through the sound emitting module, it may emit the preset audio signal according to a preset time threshold.
  • the wireless earphone collects audio through the sound receiving module, it can also collect audio according to the preset time threshold.
  • the preset time threshold may be a time parameter preset and stored by the wireless headset, in order to prevent misidentification. For example, after receiving the excitation voltage, a preset audio signal is generated within a preset time threshold, and the audio signal is collected, thereby increasing the accuracy of detection. In another case, it is also possible to send out a round of preset audio signals and collect audio signals every preset time threshold, thereby reducing power consumption.
  • the preset time threshold can be set according to actual application conditions.
  • the sound emitting module may continuously emit the preset audio signal according to the preset time threshold, or may intermittently emit the preset audio signal according to the preset time threshold.
  • the sound receiving module can continuously perform audio collection according to the preset time threshold, or can perform audio collection intermittently according to the preset time threshold, so as to obtain the target audio signal. That is to say, in order to prevent misidentification, the sound generating module and the sound receiving module may continuously or intermittently emit and collect audio signals within a period of time according to the preset time threshold.
  • the preset audio signal may include a pulsed sound wave signal or an encoded sound signal.
  • Step 103 Determine the switch detection result according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
  • the switch detection result can be determined according to the target audio signal.
  • the switch detection result determined by the wireless headset based on the target audio signal may be used to determine the switch state of the headset box. That is to say, in some embodiments of the present application, the wireless earphone only needs to use the sound generating module and the sound receiving module configured in the wireless earphone to realize the detection of the on-off state of the earphone box. In some embodiments, it is required that the earphone box itself has the function of detecting the opening and closing of the cover. Compared with the prior art, there is no need to add a Hall sensor in the wireless earphone, so the shape and structure of the wireless earphone will not be affected, nor will it not work normally under high temperature conditions.
  • the wireless headset when the wireless headset determines the switch detection result according to the target audio signal, if the target audio signal includes a preset audio signal, the wireless headset can determine that the switch detection result is on, that is, the headset box is On state; if the target audio signal does not include the preset audio signal, the wireless headset can determine that the switch detection result is off, that is, the headset box is off.
  • the sound receiving module can collect the preset audio signal emitted by the sound emitting module. Therefore, when the target audio signal collected by the sound receiving module includes the preset audio signal When the audio signal is set, it can be determined that the switch detection result is on; accordingly, if the earphone box is closed, the cover of the earphone box will block the transmission of audio signals between the sound module and the sound module, and the sound module The preset audio signal from the sound module cannot be received. Therefore, when the target audio signal collected by the sound module does not include the preset audio signal, it can be determined that the switch detection result is closed.
  • the sound receiving module in an ideal state, if the earphone box is closed, the sound receiving module cannot receive the preset audio signal sent by the sound emitting module, and at the same time, the sound receiving module cannot receive either To other audio signals, therefore, when the target audio signal collected by the radio module is empty, it can be determined that the switch detection result is closed.
  • the sound receiving module can still receive some audio signals. Then, the wireless earphone needs to pre-check the target audio signal collected by the sound receiving module. It is assumed that the signal strength of the audio signal is determined to further determine the switch state of the earphone box.
  • the switch detection result is turned on; accordingly, if the target audio signal collected by the sound receiving module includes If the preset audio signal of is less than or equal to the preset threshold, it is determined that the switch detection result is closed.
  • the preset audio signal can be collected when the earphone box is closed and opened, but the amount of collection is different. Therefore, the threshold range of the collection can be obtained according to the experiment, the preset threshold can be set, and then when the collected preset audio When the signal is greater than or equal to the preset threshold, the cover of the earphone box is considered to be open. When the collected preset audio signal is less than the preset threshold, the cover of the earphone box is considered to be closed.
  • the preset threshold may be the signal strength threshold. The threshold used to measure the strength of the preset audio signal collected.
  • the wireless earphone can directly perform the switch detection of the earphone box using its own configured sound generating device and sound receiving device, without adding additional devices such as a Hall sensor.
  • it significantly reduces The production cost of the wireless headset, on the one hand, greatly reduces the size and structural complexity of the wireless headset, on the other hand, it avoids the risk of failure of the magnet after a period of use, and effectively improves the reliability of the wireless headset.
  • the embodiment of the application provides a switch detection method.
  • the switch detection method is applied to a wireless headset.
  • the wireless headset includes a sounding module, a sound receiving module, and a power supply module.
  • the power supply module detects the excitation voltage input by the earphone box, it is generated by the sounding module Preset audio signal; audio collection is performed by the radio module to obtain the target audio signal; wherein the target audio signal is used to determine the situation in which the radio module obtains the preset audio signal; the switch detection result is determined according to the target audio signal; wherein, The switch detection result is used to determine the switch state of the earphone box.
  • the wireless earphone after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speaker and microphone of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that it can be guaranteed without affecting the shape and structure of the wireless headset The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
  • FIG. 5 is a schematic diagram of the implementation process of the switch detection method.
  • the wireless After the headset determines the switch detection result according to the target audio signal, that is, after step 103, the method for the wireless headset to perform switch detection may include the following steps:
  • Step 104 Control the connection state with the terminal according to the switch detection result.
  • the wireless headset after the wireless headset determines the switch detection result according to the target audio signal, it can continue to control the connection state between the wireless headset and the terminal according to the switch detection result.
  • the wireless headset and the headset box are controlled to be in a Bluetooth connection state; if the switch detection result is off, the wireless headset and the headset box are controlled to be in a Bluetooth disconnected state.
  • the terminal may be any device that has communication and storage functions and is provided with a touch screen.
  • the terminal may be any device that has communication and storage functions and is provided with a touch screen.
  • tablet computers mobile phones, e-readers, remote controls, personal computers (PC), notebook computers, in-vehicle devices, Internet TVs, wearable devices and other devices.
  • PC personal computers
  • notebook computers in-vehicle devices, Internet TVs, wearable devices and other devices.
  • the wireless headset when the wireless headset controls the connection state with the terminal, it may specifically include establishing a connection with the terminal, or disconnecting the terminal.
  • the wireless headset can first determine its real-time connection status with the terminal. Specifically, before the wireless headset controls the connection state with the terminal according to the switch detection result, it needs to determine the real-time connection state first.
  • the real-time connection status is the current connection status between the wireless headset and the terminal.
  • the real-time connection status may be connected or unconnected.
  • the wireless headset controls the connection status with the terminal according to the switch detection result, if the switch detection result is ON and the real-time connection status is If it is not connected, the wireless headset can establish a connection with the terminal. Specifically, the wireless headset can establish a connection with the terminal by turning on Bluetooth.
  • the wireless headset when the switch detection result is turned on and the real-time connection status is not connected, the wireless headset can be considered as not being used yet, but the headset box has the lid open, and the wireless headset is about to be used Therefore, the wireless headset needs to establish a connection with the terminal, and the wireless headset can directly broadcast and turn on Bluetooth, so that the surrounding terminals can recognize the wireless headset and connect with the terminal.
  • the wireless headset when the switch detection result is turned on and the real-time connection status is connected, the wireless headset can continue to maintain the connection with the terminal.
  • the wireless headset controls the connection status with the terminal according to the switch detection result, if the switch detection result is closed and the real-time connection status is Connected, you can disconnect from the terminal by turning off Bluetooth. Then the wireless headset can be disconnected from the terminal. Specifically, the wireless headset can be disconnected from the terminal by turning off Bluetooth.
  • the wireless headset when the switch detection result is closed and the real-time connection status is connected, the wireless headset can be considered to be currently in use, but the headset box is closed with the cover, and the wireless headset is about to end use Therefore, the wireless headset needs to be disconnected from the terminal to save power consumption, and the wireless headset can turn off the Bluetooth, so that the connection with the terminal can be disconnected.
  • the wireless headset when the switch detection result is closed, and the real-time connection status is not connected, the wireless headset may continue to be disconnected from the terminal.
  • the wireless earphone if the wireless earphone is placed in the earphone box for charging, once the cover of the earphone box is opened, it can be considered that the wireless earphone needs to be used, and therefore the wireless earphone needs to be connected to the terminal.
  • the wireless headset if the wireless headset is put into the headset box after use, once the cover of the headset box is closed, it can be considered that the wireless headset needs to start charging. In order to save power consumption, the wireless headset can be disconnected from the terminal.
  • the wireless headset can establish a connection with the terminal in time when it needs to be used, and it can also be disconnected from the terminal in time when it needs to be charged, thus improving the intelligence of the wireless headset. It also saves power consumption.
  • the preset audio signal generated and emitted by the sound generating module may include a pulsed sound wave signal or an encoded sound signal.
  • the audio signal larger than 20k may be emitted, and the audio signal is encoded, that is, the preset audio
  • the signal is an encoded sound signal.
  • the preset audio signal may also be a pulsed sound wave signal.
  • the sound module can send out a pulsed sound wave signal. After the sound module continues to collect the audio signal, it can analyze the acquired target audio signal to obtain its corresponding pulse parameter to further determine the switch detection result based on the pulse parameter .
  • the wireless headset when the wireless headset determines the switch detection result according to the target audio signal, it can first determine the pulse parameter corresponding to the target audio signal; wherein, the pulse parameter can be characterized in a preset time interval (such as 1s) The number of high-level sonic pulses in the target audio signal accumulated and counted within. Further, after the wireless headset determines the pulse parameter corresponding to the target audio signal, the pulse parameter can be compared with the preset pulse threshold. If the pulse parameter is greater than or equal to the preset pulse threshold, the wireless headset can determine the switch detection result Is turned on.
  • a preset time interval such as 1s
  • the user's hand may block the sound receiving module during the process of putting the wireless earphone into the earphone box. If it is simply considered that the sound receiving module cannot receive the preset audio signal, then To make sure that the earphone box is closed, it may cause misrecognition and wrong switch detection results.
  • the wireless earphone can be detected by the power module after it is put in the earphone box.
  • the radio module After the excitation voltage input by the earphone box, there needs to be a period of time before the radio module can receive the preset audio signal, and then for a period of time (such as a few seconds) the radio module cannot recognize the preset audio signal before the wireless headset determines The switch detection result is closed. It can also be determined by the number of times the radio module collects the preset audio signal, and the cover is confirmed to be closed or open only after the preset number of times is reached continuously.
  • the wireless earphone can directly perform the switch detection of the earphone box using its own configured sound generating device and sound receiving device, without adding additional devices such as a Hall sensor.
  • it significantly reduces The production cost of the wireless headset, on the one hand, greatly reduces the size and structural complexity of the wireless headset, on the other hand, it avoids the risk of failure of the magnet after a period of use, and effectively improves the reliability of the wireless headset.
  • the embodiment of the application provides a switch detection method.
  • the switch detection method is applied to a wireless headset.
  • the wireless headset includes a sounding module, a sound receiving module, and a power supply module.
  • the power supply module detects the excitation voltage input by the earphone box, it is generated by the sounding module Preset audio signal; audio collection is performed by the radio module to obtain the target audio signal; wherein the target audio signal is used to determine the situation in which the radio module obtains the preset audio signal; the switch detection result is determined according to the target audio signal; wherein, The switch detection result is used to determine the switch state of the earphone box.
  • the wireless earphone after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speakers and microphones of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that the shape and structure of the wireless headset can be guaranteed without affecting the shape and structure of the wireless headset. The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
  • yet another embodiment of the present application proposes a switch detection method, which is applied to a headset box.
  • the earphone box includes a power supply module.
  • the power supply module transmits an excitation voltage to the wireless earphone connected to the earphone box, so that the sound module of the wireless earphone generates a preset audio signal, and the wireless earphone receives
  • the sound module collects the audio signal to obtain the target audio signal, and the target audio signal is used to determine the situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone knows the state of the opening and closing cover of the earphone box.
  • the excitation voltage may be the charging voltage (for example, 5V) output when the earphone box is in the power supply state; the excitation voltage may also be the first preset voltage output when the earphone box is in the dormant state.
  • the first preset voltage may be a voltage that cannot supply power to the earphone; the excitation voltage may also be a second preset voltage output by the earphone box after detecting that the cover is opened or closed by itself, and the second preset voltage may be It is a voltage value that is different from the charging voltage or the voltage output in the sleep state.
  • the wireless earphone is put into the earphone box for charging, and when the wireless earphone receives the earphone box transmission After the charging voltage is reached, the wireless headset generates a preset audio signal through the sound module, and collects the audio signal through the sound module to obtain the target audio signal, so that the wireless headset can determine the open state of the charging box, and then determine the connection with the mobile phone and other terminals.
  • the Bluetooth connection status of the device is the case where the excitation voltage is the charging voltage (for example, 5V voltage) transmitted by the wireless earphone receiving the earphone box.
  • the excitation voltage is the first preset voltage transmitted by the earphone box to the earphone when the earphone box is in the dormant state
  • the earphone box will still send out when the earphone box is in the dormant state.
  • a first preset voltage the first preset voltage may not be enough to enable the earphone box to supply power to the wireless earphone, but can stimulate the sound generating device of the wireless earphone to emit a preset audio, and the sound receiving device performs audio collection to obtain the target audio signal , So that the wireless headset can determine the open status of the charging box, and then determine the Bluetooth connection status with terminal devices such as mobile phones.
  • the earphone box itself does not need to detect whether the cover is opened or not.
  • the wireless earphones in the earphone box are either in the charging state, receiving the charging voltage, or receiving sleep in the fully charged state.
  • the first preset voltage output by the earphone box in the state, or the earphone box enters the dormant state due to low power, stops supplying power to the wireless earphone but keeps outputting the first preset voltage to the wireless earphone. Therefore, after the wireless earphone is placed in the earphone box, it will continue to detect whether the charging box is open or closed by sending preset audio signals and collecting audio signals. When the wireless earphone is taken out of the earphone box, it no longer receives the excitation voltage, thereby stopping the generation of the preset audio signal and the collection of the audio signal.
  • the excitation voltage is the second preset voltage when the earphone box itself detects the opening and closing of the cover
  • the wireless earphone and the earphone are placed in the earphone box.
  • the earphone box detects that the cover is closed
  • the earphone box sends the second preset voltage to the wireless earphone.
  • the sound module of the wireless earphone After the wireless earphone receives the second preset voltage, the sound module of the wireless earphone generates the preset audio.
  • the sound receiving module collects audio signals to obtain target audio. Since the cover of the earphone box is closed, the collection of the preset audio signal is affected, so that it can be judged that the earphone box is closed and the Bluetooth connection is disconnected.
  • the second preset voltage is sent to the wireless earphone in the earphone box, so that the sound module of the wireless earphone generates the preset audio, and the sound module of the wireless earphone collects audio signals to obtain the target audio. Since the earphone box is opened, the collection of the preset audio signal will not be affected, so it is judged that the earphone box is opened and the Bluetooth is connected back.
  • This implementation manner can also be applied when the earphone box is in a sleep state, when the earphone box is opened or closed, the earphone box transmits the second preset voltage to the earphone.
  • the second preset voltage may be a voltage value different from the charging voltage and the first preset voltage.
  • the earphone box itself needs to have the cover opening detection function, so that the excitation voltage can be sent to the wireless earphone in time when the cover opening and closing is detected, so that after the wireless earphone is placed in the earphone box, its sound device
  • the sound receiving device does not need to continuously send out and collect preset audio signals, but only send out and collect preset audio signals after the cover of the earphone box is opened and closed, which can reduce the power consumption of wireless earphones.
  • the wireless earphone can continuously or intermittently generate the preset audio signal and collect the audio signal in the charging state. In the dormant state, it is necessary to combine the opening and closing detection function of the earphone box.
  • the earphone box detects that the cover is opened or closed, the excitation voltage is sent out, which triggers the wireless earphone to generate a preset audio signal and collect the audio signal.
  • the embodiment of the application provides a switch detection method, which is applied to a headset box.
  • the headset box includes a power supply module.
  • the headset box transmits an excitation voltage to the wireless headset connected to the headset box through the power supply module, so that the sound generating module of the wireless headset generates
  • the audio signal is preset, and the radio module of the wireless earphone collects the audio signal to obtain the target audio signal.
  • the target audio signal is used to determine the situation where the radio module obtains the preset audio signal, so that the wireless earphone knows the switch of the earphone box Cover state.
  • the wireless earphone after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speakers and microphones of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that the shape and structure of the wireless headset can be guaranteed without affecting the shape and structure of the wireless headset. The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
  • the wireless earphone is provided with a sound generating module, a sound receiving module, and a power supply module.
  • FIG. 6 is a schematic diagram of the composition structure of the wireless earphone. As shown in FIG. 6, the wireless earphone 10 may include: a generating part 15, an acquiring part 16, and a determining part 17.
  • the generating part 15 is configured to generate a preset audio signal through the sounding module after the power supply module detects the excitation voltage input by the earphone box;
  • the acquiring part 16 is configured to perform audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine a situation in which the sound receiving module acquires the preset audio signal;
  • the determining part 17 is configured to determine a switch detection result according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
  • FIG. 7 is a fourth schematic diagram of the composition structure of the wireless headset.
  • the wireless headset 10 proposed in the embodiment of the present application may further include a processor 18, and a processor 18 may be stored therein.
  • the memory 19 for executing instructions.
  • the wireless headset 10 may further include a communication interface 110 and a bus 111 for connecting the processor 18, the memory 19, and the communication interface 110.
  • the aforementioned processor 18 may be an application specific integrated circuit (ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD). ), Programmable Logic Device (ProgRAMmable Logic Device, PLD), Field Programmable Gate Array (Field ProgRAMmable Gate Array, FPGA), Central Processing Unit (CPU), Controller, Microcontroller, Microprocessor At least one of. It is understandable that, for different devices, the electronic devices used to implement the above-mentioned processor functions may also be other, which is not specifically limited in the embodiment of the present application.
  • ASIC application specific integrated circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • Field Programmable Gate Array Field ProgRAMmable Gate Array
  • CPU Central Processing Unit
  • Controller Microcontroller
  • Microprocessor At least one of. It is understandable that, for different devices, the electronic devices used to implement the above-mentioned processor functions may also be other
  • the wireless headset 10 may also include a memory 19, which may be connected to the processor 18, wherein the memory 19 is used to store executable program code, the program code includes computer operation instructions, the memory 19 may include high-speed RAM memory, or may also Including non-volatile memory, for example, at least two disk memories.
  • the bus 111 is used to connect the communication interface 110, the processor 18 and the memory 19, and to communicate with each other among these devices.
  • the memory 19 is used to store instructions and data.
  • the aforementioned processor 37 is configured to generate a preset audio signal through the sound module after the power module detects the excitation voltage input by the earphone box; and through the sound receiver module Perform audio collection to obtain a target audio signal; wherein, the target audio signal is used to determine the situation in which the sound receiving module obtains the preset audio signal; the switch detection result is determined according to the target audio signal; wherein, The switch detection result is used to determine the switch state of the earphone box.
  • the aforementioned memory 19 may be a volatile memory (volatile memory), such as a random-access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and send it to the processor 18 Provide instructions and data.
  • volatile memory such as a random-access memory (Random-Access Memory, RAM)
  • non-volatile memory such as a read-only memory (Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and send it to the processor 18 Provide instructions and data.
  • the functional modules in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be realized in the form of hardware or software function module.
  • the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this embodiment is essentially or correct
  • the part that the prior art contributes or all or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer).
  • the aforementioned storage media include: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
  • An embodiment of the application proposes a wireless headset, which includes a sound emitting module, a sound receiving module, and a power supply module.
  • the sound module After the power supply module detects the excitation voltage input from the earphone box, the sound module generates a preset audio signal; The module performs audio collection to obtain the target audio signal; among them, the target audio signal is used to determine the situation in which the radio module obtains the preset audio signal; the switch detection result is determined according to the target audio signal; wherein the switch detection result is used to determine the earphone box The switch status.
  • the wireless earphone after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speaker and microphone of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that it can be guaranteed without affecting the shape and structure of the wireless headset The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
  • the earphone box is provided with a power supply module.
  • FIG. 8 is a schematic diagram of the structure of the earphone box. As shown in FIG. 8, the earphone box 20 may include: a power supply part 21 .
  • the power supply part 21 is configured to transmit an excitation voltage to the wireless earphone connected to the earphone box through the power supply module, so that the sound generating module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone Collect an audio signal to obtain a target audio signal, the target audio signal is used to determine the situation in which the radio module obtains the preset audio signal, so that the wireless earphone knows the state of the cover of the earphone box .
  • FIG. 9 is a second schematic diagram of the composition structure of the earphone box.
  • the earphone box 20 proposed in the embodiment of the present application may further include a processor 22, and a processor 22 may be stored therein.
  • the memory 23 for executing instructions.
  • the wireless headset 20 may further include a communication interface 24 and a bus 25 for connecting the processor 22, the memory 23, and the communication interface 24.
  • the earphone box 20 proposed in the embodiment of the present application may further include a power supply module 26.
  • the aforementioned processor 22 is configured to transmit an excitation voltage to the wireless earphone connected to the earphone box through the power supply module, so that the sound module of the wireless earphone generates a preset audio signal , And the sound receiving module of the wireless headset collects audio signals to obtain a target audio signal, and the target audio signal is used to determine the situation in which the sound receiving module obtains the preset audio signal, so that the wireless The earphone learns the state of the cover of the earphone box.
  • An embodiment of the present application proposes an earphone box, which includes a power supply module.
  • the earphone box transmits an excitation voltage to a wireless earphone connected to the earphone box through the power supply module, so that the sound module of the wireless earphone generates a preset audio signal, and the wireless earphone
  • the sound receiving module collects audio signals to obtain the target audio signal, and the target audio signal is used to determine the situation that the sound receiving module obtains the preset audio signal, so that the wireless earphone knows the state of the opening and closing cover of the earphone box.
  • the wireless earphone after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speakers and microphones of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that the shape and structure of the wireless headset can be guaranteed without affecting the shape and structure of the wireless headset. The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
  • the embodiment of the present application provides a computer-readable storage medium on which a program is stored, and when the program is executed by a processor, the switch detection method as described above is implemented.
  • the program instructions corresponding to a switch detection method in this embodiment can be stored on storage media such as optical disks, hard disks, USB flash drives, etc.
  • storage media such as optical disks, hard disks, USB flash drives, etc.
  • the power supply module After the power supply module detects the excitation voltage input by the earphone box, generating a preset audio signal through the sounding module;
  • the switch detection result is determined according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
  • the power supply module transmits the excitation voltage to the wireless earphone connected to the earphone box, so that the sound generating module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone collects the audio signal to obtain the target audio signal
  • the target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone learns the state of the open/close cover of the earphone box.
  • this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one or more processes in the schematic diagram and/or one block or more in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in one or more processes in the schematic diagram and/or one block or more in the block diagram.
  • the embodiment of the application provides a switch detection method, a wireless earphone, a earphone box, and a storage medium.
  • the switch detection method is applied to a wireless earphone.
  • the wireless earphone includes a sound module, a sound receiver module, and a power module.
  • the power module detects the earphone box input After the excitation voltage of the sound module, the preset audio signal is generated by the sound module; the target audio signal is obtained through audio collection by the sound module; wherein, the target audio signal is used to determine the situation where the sound module obtains the preset audio signal; according to the target
  • the audio signal determines the switch detection result; the switch detection result is used to determine the switch state of the earphone box.
  • the wireless earphone after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speakers and microphones of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that the shape and structure of the wireless headset can be guaranteed without affecting the shape and structure of the wireless headset. The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)
  • Headphones And Earphones (AREA)

Abstract

Disclosed are an open-closed detection method, a wireless earphone, an earphone box and a storage medium. The open-closed detection method is applied to a wireless earphone. The wireless earphone comprises a sound producing module, a sound receiving module and a power supply module. The method comprises: after a power supply module detects an excitation voltage input from an earphone box, generating a preset audio signal by means of a sound producing module; performing audio collection by means of a sound receiving module so as to obtain a target audio signal, wherein the target audio signal is used for determining the situation regarding the sound receiving module acquiring the preset audio signal; and determining an open-closed detection result according to the target audio signal, wherein the open-closed detection result is used for determining the open-closed state of the earphone box.

Description

开关检测方法、无线耳机、耳机盒及存储介质Switch detection method, wireless earphone, earphone box and storage medium
本申请基于申请号为201911315110.6、申请日为2019年12月19日、申请名称为“开关检测方法、无线耳机、耳机盒及存储介质”的在先中国专利申请提出,并要求该在先中国专利申请的优先权,该在先中国专利申请的全部内容在此引入本申请作为参考。This application is based on a prior Chinese patent application with the application number 201911315110.6, the application date on December 19, 2019, and the application name "Switch detection method, wireless earphones, earphone box and storage medium", and requires the prior Chinese patent For the priority of the application, the entire content of the prior Chinese patent application is hereby incorporated into this application as a reference.
技术领域Technical field
本申请实施例涉及终端技术领域,尤其涉及一种开关检测方法、无线耳机、耳机盒及存储介质。The embodiments of the present application relate to the field of terminal technology, and in particular, to a switch detection method, a wireless earphone, a earphone box, and a storage medium.
背景技术Background technique
随着科技的不断进步和发展,真无线立体声(True Wireless Stereo,TWS)技术而催生的TWS耳机,是将TWS技术运用到了蓝牙无线耳机领域中,其中,TWS耳机等这种无线耳机的左右两只耳塞无需线缆连接,只需通过实现左右声道的无线分离即可独立工作。With the continuous progress and development of science and technology, the TWS headset, which is spawned by True Wireless Stereo (TWS) technology, is the application of TWS technology to the field of Bluetooth wireless headsets. Among them, TWS headsets and other such wireless headsets are the left and right two. Only earplugs do not need cable connection, and can work independently only by realizing the wireless separation of the left and right channels.
一般情况下,无线耳机在使用时,往往需要先对耳机盒的开关状态进行确定。具体地,无线耳机可以通过霍尔传感器的设置来确定耳机盒的开关状态。然而,这种通过在无线耳机中增加霍尔传感器的开关检测方式,会影响无线耳机的外形和结构,且霍尔传感器在高温下存在功能失效的情况,便会直接造成检测的失误,降低了检测的准确性,导致无线耳机的可靠性差的缺陷。In general, when using a wireless headset, it is often necessary to determine the switch state of the headset box first. Specifically, the wireless earphone can determine the on-off state of the earphone box through the setting of the Hall sensor. However, this switch detection method by adding a Hall sensor to the wireless headset will affect the shape and structure of the wireless headset, and the function of the Hall sensor will fail at high temperatures, which will directly cause detection errors and reduce The accuracy of detection leads to the defect of poor reliability of wireless headsets.
发明内容Summary of the invention
本申请实施例提供了一种开关检测方法、无线耳机、耳机盒及存储介质,在不影响无线耳机的外形和结构的前提下,可以大大提高无线耳机进行开关检测的准确性,有效提升无线耳机的可靠性。The embodiments of the present application provide a switch detection method, a wireless headset, a headset box, and a storage medium. Without affecting the shape and structure of the wireless headset, the accuracy of the switch detection of the wireless headset can be greatly improved, and the wireless headset can be effectively improved Reliability.
本申请实施例的技术方案是这样实现的:The technical solutions of the embodiments of the present application are implemented as follows:
第一方面,本申请实施例提供了一种开关检测方法,所述开关检测方法应用于无线耳机,所述无线耳机包括发声模块,收声模块,电源模块,所述方法包括:In the first aspect, an embodiment of the present application provides a switch detection method, the switch detection method is applied to a wireless headset, the wireless headset includes a sound generating module, a sound receiving module, and a power supply module, and the method includes:
在所述电源模块检测到耳机盒输入的激励电压之后,通过所述发声模块生成预设音频信号;After the power supply module detects the excitation voltage input by the earphone box, generating a preset audio signal through the sounding module;
通过所述收声模块进行音频采集,获得目标音频信号;其中,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定;Performing audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal;
根据所述目标音频信号确定开关检测结果;其中,所述开关检测结果用于确定所述耳机盒的开关状态。The switch detection result is determined according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
第二方面,本申请实施例提供了一种开关检测方法,所述开关检测方法应用于耳机盒,所述耳机盒包括供电模块,所述方法包括:In a second aspect, an embodiment of the present application provides a switch detection method, the switch detection method is applied to an earphone box, the earphone box includes a power supply module, and the method includes:
所述供电模块向与所述耳机盒连接的无线耳机传输激励电压,使得所述无线耳机的发声模块生成预设音频信号,且所述无线耳机的收声模块采集音频信号,以获得目标音频信号,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定,以使得所述无线耳机获知所述耳机盒的开关盖状态。The power supply module transmits the excitation voltage to the wireless earphone connected to the earphone box, so that the sound generating module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone collects the audio signal to obtain the target audio signal The target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone learns the state of the open/close cover of the earphone box.
第三方面,本申请实施例提供了一种无线耳机,所述无线耳机设置有发声模块,收声模块,电源模块,所述无线耳机包括:生成部分,获取部分,确定部分,In a third aspect, an embodiment of the present application provides a wireless headset, the wireless headset is provided with a sound generating module, a receiving module, and a power supply module. The wireless headset includes: a generating part, an acquiring part, and a determining part,
所述生成部分,配置为在所述电源模块检测到耳机盒输入的激励电压之后,通过所述发声模块生成预设音频信号;The generating part is configured to generate a preset audio signal through the sounding module after the power supply module detects the excitation voltage input by the earphone box;
所述获取部分,配置为通过所述收声模块进行音频采集,获得目标音频信号;其中,所述目标音频信号用于对所述收声模块获取预设音频信号的情况进行确定;The acquiring part is configured to perform audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine a situation in which the sound receiving module acquires a preset audio signal;
所述确定部分,配置为根据所述目标音频信号确定开关检测结果;其中,所述开关检测结果用于确定所述耳机盒的开关状态。The determining part is configured to determine a switch detection result according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
第四方面,本申请实施例提供了一种耳机盒,所述耳机盒设置有供电模块,所述耳机盒包括:供电部分,In a fourth aspect, an embodiment of the present application provides an earphone box, the earphone box is provided with a power supply module, and the earphone box includes: a power supply part,
所述供电部分,配置为通过所述供电模块向与所述耳机盒连接的无线耳机传输激励电压,使得所述无线耳机的发声模块生成预设音频信号,且所述无线耳机的收声模块采集音频信号,以获得目标音频信号,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定,以使得所述无线耳机获知所述耳机盒的开关盖状态。The power supply part is configured to transmit an excitation voltage to the wireless earphone connected to the earphone box through the power supply module, so that the sound module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone collects The audio signal is used to obtain a target audio signal, and the target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone learns the open/closed state of the earphone box.
第五方面,本申请实施例提供了一种无线耳机,所述无线耳机包括:处理器、存储有所述处理器可执行指令的存储器,发声模块,收声模块,电源模块,当所述指令被所述处理器执行时,实现如上所述的开关检测方法。In a fifth aspect, an embodiment of the present application provides a wireless headset. The wireless headset includes a processor, a memory storing executable instructions of the processor, a sound module, a sound receiver module, and a power supply module. When executed by the processor, the switch detection method as described above is realized.
第六方面,本申请实施例提供了一种计算机可读存储介质,其上存储有程序,应用于无线耳机中,所述程序被处理器执行时,实现如上所述的开关检测方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium with a program stored thereon and applied to a wireless headset. When the program is executed by a processor, the above-mentioned switch detection method is implemented.
本申请实施例提供了一种开关检测方法、无线耳机、耳机盒及存储介质,开关检测方法应用于无线耳机,无线耳机包括发声模块,收声模块,电源模块,在电源模块检测到耳机盒输入的激励电压之后,通过发声模块生成预设音频信号;通过收声模块进行音频采集,获得目标音频信号;其中,目标音频信号用于对收声模块获取预设音频信号的情况进行确定;根 据目标音频信号确定开关检测结果;其中,开关检测结果用于确定耳机盒的开关状态。由此可见,在本申请的实施例中,在接收到耳机盒的激励电压之后,无线耳机可以通过发声模块进行预设音频信号的发出,并通过收声模块获取目标音频信号,最终便可以直接根据目标音频信号确定耳机盒的开关检测结果。由于发声模块和收声模块可以共用耳机本身的扬声器和麦克风,以节省硬件成本,且不易在高温或者长时间使用的情况下失效,从而在不影响无线耳机的外形和结构的前提下,可以保障无线耳机进行开关检测的准确性,有效提升无线耳机的可靠性。The embodiment of the application provides a switch detection method, a wireless earphone, a earphone box, and a storage medium. The switch detection method is applied to a wireless earphone. The wireless earphone includes a sound module, a sound receiver module, and a power module. The power module detects the earphone box input After the excitation voltage of the sound module, the preset audio signal is generated by the sound module; the target audio signal is obtained by audio collection through the sound module; wherein, the target audio signal is used to determine the situation where the sound module obtains the preset audio signal; according to the target The audio signal determines the switch detection result; the switch detection result is used to determine the switch state of the earphone box. It can be seen that, in the embodiment of the present application, after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speaker and microphone of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that it can be guaranteed without affecting the shape and structure of the wireless headset The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
附图说明Description of the drawings
图1为无线耳机和耳机盒的示意图;Figure 1 is a schematic diagram of a wireless headset and a headset box;
图2为无线耳机的组成结构示意图一;Figure 2 is a schematic diagram of the composition structure of a wireless headset;
图3为无线耳机的组成结构示意图二;Figure 3 is a second schematic diagram of the composition structure of a wireless headset;
图4为开关检测方法的实现流程示意图一;Figure 4 is the first schematic diagram of the implementation process of the switch detection method;
图5为开关检测方法的实现流程示意图二;Figure 5 is a second schematic diagram of the implementation process of the switch detection method;
图6为无线耳机的组成结构示意图三;Figure 6 is a third schematic diagram of the composition structure of a wireless headset;
图7为无线耳机的组成结构示意图四;Figure 7 is a fourth schematic diagram of the composition structure of a wireless headset;
图8为耳机盒的组成结构示意图一;Figure 8 is a schematic diagram of the composition structure of the earphone box;
图9为耳机盒的组成结构示意图二。Figure 9 is a second schematic diagram of the composition structure of the earphone box.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅仅用于解释相关申请,而非对该申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关申请相关的部分。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It is understandable that the specific embodiments described here are only used to explain the related application, but not to limit the application. In addition, it should be noted that, for ease of description, only the parts related to the relevant application are shown in the drawings.
随着终端技术的不断进步,耳机也在不断发生改变,其中,基于TWS技术而催生的TWS耳机,是将TWS技术运用到了蓝牙无线耳机领域中。TWS耳机等这种无线耳机的左右两只耳塞无需线缆连接,只需通过实现左右声道的无线分离即可独立工作。With the continuous advancement of terminal technology, headsets are constantly changing. Among them, the TWS headset, which is based on TWS technology, applies TWS technology to the field of Bluetooth wireless headsets. The left and right earplugs of such wireless earphones such as TWS earphones do not need to be connected by a cable, and can work independently only by realizing the wireless separation of the left and right channels.
TWS耳机等无线耳机可以完全摆脱被线缆束缚的烦恼,运动更自由;同时,无线耳机使用方式多样,既可独享,又可分享,还可一机当作两机。Wireless earphones such as TWS earphones can completely get rid of the trouble of being bound by cables and have more freedom of movement. At the same time, wireless earphones can be used in a variety of ways, which can be exclusive, shared, and one device can be used as two devices.
对于无线耳机,可以有与其配套的耳机盒,耳机盒的作用是收纳无线耳机,对应的,耳机盒内部还集成了移动电源,因此在TWS耳机没电的时候只要把其放入耳机盒内便可以充电。For wireless earphones, there can be a matching earphone box. The function of the earphone box is to store the wireless earphones. Correspondingly, the earphone box is also integrated with a mobile power supply. Therefore, when the TWS earphone is out of power, just put it in the earphone box. Can be charged.
可以理解的是,无线耳机的底部一般会有至少一个金属引脚,称为POGO PIN,当无线耳机放置在耳机盒内时,POGO PIN可以使无线耳机与耳机盒之间的电路导通,从而给无线耳机进行充电。常见的无线耳机设置 有2个PIN或3个PIN,一般分别位于无线耳机和耳机盒上的对应位置,当无线耳机放置在耳机盒内时,耳机上的POGO PIN和耳机盒上的POGO PIN会刚好接触和导通。It is understandable that there is generally at least one metal pin at the bottom of the wireless earphone, called POGO PIN. When the wireless earphone is placed in the earphone box, the POGO PIN can make the circuit between the wireless earphone and the earphone box conduct, thereby Charge the wireless headset. Common wireless earphones are set with 2 PINs or 3 PINs, which are generally located at the corresponding positions on the wireless earphone and earphone box. When the wireless earphone is placed in the earphone box, the POGO PIN on the earphone and the POGO PIN on the earphone box will be Just touching and conducting.
一般情况下,无线耳机在使用时,往往需要先对耳机盒的开关状态进行确定,从而可以进一步确认是否自动开启或者关闭蓝牙等功能。具体地,无线耳机可以通过霍尔传感器的设置来确定耳机盒的开关状态。Under normal circumstances, when wireless headsets are in use, it is often necessary to determine the switch state of the headset box first, so that it can be further confirmed whether to automatically turn on or turn off Bluetooth and other functions. Specifically, the wireless earphone can determine the on-off state of the earphone box through the setting of the Hall sensor.
当一块通有电流的金属或半导体薄片垂直地放在磁场中时,薄片的两端就会产生电位差,这种现象就称为霍尔效应。霍尔效应的灵敏度高低与外加磁场的磁感应强度成正比的关系。霍尔开关就属于这种有源磁电转换器件,它是在霍尔效应原理的基础上,利用集成封装和组装工艺制作而成,可方便的把磁输入信号转换成实际应用中的电信号,同时又具备工业场合实际应用易操作和可靠性的要求。When a piece of metal or semiconductor sheet with current is placed vertically in a magnetic field, a potential difference will be generated at both ends of the sheet. This phenomenon is called the Hall effect. The sensitivity of the Hall effect is proportional to the magnetic induction intensity of the applied magnetic field. Hall switch belongs to this kind of active magnetoelectric conversion device. It is made by integrated packaging and assembly process based on the principle of Hall effect, which can easily convert magnetic input signals into electrical signals in practical applications. At the same time, it also meets the requirements of easy operation and reliability in practical industrial applications.
图1为无线耳机和耳机盒的示意图,如图1所示,目前,无线耳机上可以设置有霍尔传感器A,相应地,耳机盒的顶部放置磁铁B,当耳机盒开关盒盖时,霍尔传感器输出的电平发生变化,无线耳机通过检测霍尔传感器输出的电平变化,便可以判断耳机盒的开关状态。具体地,耳机盒的盒盖打开时,霍尔传感器输出高电平,耳机盒的盒盖关闭时,霍尔传感器输出低电平,由此可见,在耳机盒的盒盖的开关过程中有中断触发,无线耳机通过监控对应的电压便可以对耳机盒的开关状态进行确定。Figure 1 is a schematic diagram of a wireless headset and a headset box. As shown in Figure 1, at present, the wireless headset can be provided with a Hall sensor A. Accordingly, a magnet B is placed on the top of the headset box. The output level of the earphone sensor changes, and the wireless earphone can judge the switch state of the earphone box by detecting the level change of the Hall sensor output. Specifically, when the box cover of the earphone box is opened, the Hall sensor outputs a high level, and when the box cover of the earphone box is closed, the Hall sensor outputs a low level. When the interrupt is triggered, the wireless earphone can determine the on-off state of the earphone box by monitoring the corresponding voltage.
然而,现有的无线耳机对耳机盒的开关状态进行检测的方法,具有如下几方面的缺陷:However, the existing wireless earphones method for detecting the on-off state of the earphone box has the following defects:
1、无线耳机需要外加器件,例如采用霍尔传感器进行检测的方式,需要加霍尔传感器,且左右两个耳机各需要一个霍尔传感器,这样成本较高。1. The wireless earphone requires additional components. For example, when a Hall sensor is used for detection, a Hall sensor needs to be added, and the left and right earphones need a Hall sensor each, so the cost is higher.
2、占用空间体积比较大,正是由于需要在无线耳机中增加霍尔传感器等器件,因此会导致无线耳机的体积增大,同时会影响无线耳机的外形和结构,降低用户体验。2. The occupied space is relatively large. It is precisely because of the need to add Hall sensors and other devices in the wireless headset, it will increase the size of the wireless headset, and at the same time will affect the shape and structure of the wireless headset, and reduce the user experience.
3、可靠性不稳定,例如霍尔传感器感应的磁铁在高温下以及使用一段时间后功能会失效,这样会造成开关状态的检测失误,降低了检测的准确性,可靠性差。3. Reliability is unstable. For example, the function of the magnet induced by the Hall sensor will fail at high temperature and after a period of use. This will cause the detection of the switch state to be wrong, reduce the accuracy of the detection, and have poor reliability.
也就是说,现有的通过在无线耳机中增加霍尔传感器的开关检测方式,会影响无线耳机的外形和结构,且霍尔传感器在高温下存在功能失效的情况,便会直接造成检测的失误,降低了检测的准确性,导致无线耳机的可靠性差的缺陷。In other words, the existing switching detection method of adding a Hall sensor to a wireless headset will affect the shape and structure of the wireless headset, and the Hall sensor will fail to function at high temperatures, which will directly cause detection errors. , Which reduces the accuracy of detection, leading to the defect of poor reliability of wireless headsets.
为了解决现有技术所存在的问题,在本申请的实施例中,无线耳机可以使用自身配置的发声装置和收声装置直接进行耳机盒的开关检测,无需增加霍尔传感器等额外的器件,一方面,显著降低了无线耳机的生产成本,再一方面,大大降低了无线耳机的尺寸和结构复杂度,另一方面,避免了磁铁使用一段时间后失效的风险,有效提升了无线耳机的可靠性。In order to solve the problems existing in the prior art, in the embodiments of the present application, the wireless earphone can directly perform the switch detection of the earphone box by using the sound generating device and the sound receiving device configured by itself, without adding additional devices such as a Hall sensor. On the one hand, it significantly reduces the production cost of wireless earphones. On the other hand, it greatly reduces the size and structural complexity of wireless earphones. On the other hand, it avoids the risk of magnet failure after a period of use, and effectively improves the reliability of wireless earphones. .
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
本申请一实施例提供了一种开关检测方法,该开关检测方法应用于无线耳机,具体地,图2为无线耳机的组成结构示意图一,如图2所示,在本申请的实施例中,无线耳机10可以包括发声模块11,收声模块12,电源模块13。An embodiment of the present application provides a switch detection method, which is applied to a wireless headset. Specifically, FIG. 2 is a schematic diagram of the composition structure of a wireless headset. As shown in FIG. 2, in the embodiment of the present application, The wireless headset 10 may include a sound emitting module 11, a sound receiving module 12, and a power supply module 13.
需要说明的是,在本申请的实施例中,无线耳机10可以为基于TWS技术的TWS耳机。It should be noted that, in the embodiment of the present application, the wireless headset 10 may be a TWS headset based on TWS technology.
可以理解的是,在本申请的实施例中,无线耳机10中配置的发声模块11主要是用于发出声音信号的模块,例如扬声器等发声器件。其中,扬声器又称“喇叭”,是一种十分常用的电声换能器件,扬声器是一种把电信号转变为声信号的换能器件,扬声器的性能优劣对音质的影响很大。扬声器在音响设备中是一个最薄弱的器件,而对于音响效果而言,它又是一个最重要的部件。扬声器的种类繁多,而且价格相差很大。音频电能通过电磁,压电或静电效应,使其纸盆或膜片振动并与周围的空气产生共振(共鸣)而发出声音。It can be understood that, in the embodiment of the present application, the sound emitting module 11 configured in the wireless earphone 10 is mainly a module for emitting sound signals, such as a sound emitting device such as a speaker. Among them, the loudspeaker, also known as the "horn", is a very commonly used electroacoustic transducer. The loudspeaker is a transducer that converts an electric signal into an acoustic signal. The performance of the loudspeaker has a great influence on the sound quality. The speaker is one of the weakest components in audio equipment, and it is the most important component for audio effects. There are many types of speakers, and the prices vary greatly. Audio electric energy uses electromagnetic, piezoelectric or electrostatic effects to make the cone or diaphragm vibrate and resonate (resonate) with the surrounding air to produce sound.
可以理解的是,在本申请的实施例中,无线耳机10中配置的收声模块12主要是用于接收声音信号的模块,例如麦克风等传声器件。其中,麦克风(microphone),学名为传声器,也称话筒、微音器。麦克风是将声音信号转换为电信号的能量转换器件。具体可以分为动圈式、电容式、驻极体以及最近新兴的硅微传声器,此外还有液体传声器和激光传声器。大多数麦克风都是驻极体电容器麦克风,其的工作原理是利用具有永久电荷隔离的聚合材料振动膜。It can be understood that, in the embodiment of the present application, the sound receiving module 12 configured in the wireless earphone 10 is mainly a module for receiving sound signals, such as a sound transmission device such as a microphone. Among them, the microphone (microphone), the scientific name is microphone, also known as microphone, microphone. A microphone is an energy conversion device that converts sound signals into electrical signals. Specifically, it can be divided into moving coil type, capacitive type, electret, and the recently emerging silicon micro-microphone, in addition to liquid microphones and laser microphones. Most microphones are electret condenser microphones, and their working principle is to use a polymer material diaphragm with permanent charge isolation.
可以理解的是,在本申请的实施例中,无线耳机10中配置的电源模块13,具体可以包括供电电路,进一步的,还可以包括充电电路。It can be understood that, in the embodiment of the present application, the power module 13 configured in the wireless headset 10 may specifically include a power supply circuit, and further, may also include a charging circuit.
图3为无线耳机的组成结构示意图二,如图3所示,在本申请的实施例中,无线耳机10中还可以设置有POGO PIN14。其中,POGO PIN是一种应用于手机等电子产品中的精密连接器,广泛应用于半导体设备中,起连接作用。具体地,POGO PIN是一种由针轴、弹簧、针管三个基本部件通过精密仪器铆压预压之后形成的弹簧式探针,其内部有一个精密的弹簧结构。POGO PIN的表面镀层一般都镀金,可以更好的提高它的防腐蚀功能、机械性能、电气性能等。针尖具有尖针、抓针、圆头针、刀型针等。POGO PIN一般应用于手机、通讯、汽车、医疗、航空航天等电子产品中的精密连接,可以提高这些连接器的防腐蚀性、稳定性、耐久性。由于POGO PIN是一个很精细的探针,所以应用在精密连接器中可以降低连接器的重量以及外观的体积,可以让连接器更加精细美观。FIG. 3 is a second schematic diagram of the structure of the wireless headset. As shown in FIG. 3, in the embodiment of the present application, the wireless headset 10 may also be provided with a POGO PIN14. Among them, POGO PIN is a precision connector used in mobile phones and other electronic products, and is widely used in semiconductor equipment to play a connection role. Specifically, POGO PIN is a spring-type probe formed by the three basic components of a needle shaft, a spring, and a needle tube after being riveted and pre-compressed by a precision instrument. There is a precision spring structure inside. The surface coating of POGO PIN is generally gold-plated, which can better improve its anti-corrosion function, mechanical properties, and electrical properties. The needle tip has sharp needles, grasping needles, round needles, knife-shaped needles and so on. POGO PIN is generally used for precision connections in electronic products such as mobile phones, communications, automobiles, medical, aerospace, etc., which can improve the corrosion resistance, stability, and durability of these connectors. Since POGO PIN is a very fine probe, it can be used in precision connectors to reduce the weight and appearance of the connector, which can make the connector more refined and beautiful.
可以理解的是,在本申请的实施例中,无线耳机10中的POGO PIN14可以为金属引脚,一般设置在两个耳机的下端底部或者耳塞下方。其中, 当无线耳机放置在耳机盒内时,POGO PIN14可以使无线耳机10与耳机盒之间的电路导通,从而给无线耳机充电。常见的无线耳机设置有2个或3个POGO PIN,位置分别位于无线耳机和耳机盒上的对应位置,当无线耳机放置在耳机盒内时,无线耳机上的POGO PIN和耳机盒上的POGO PIN会刚好接触和导通。It is understandable that, in the embodiment of the present application, the POGO PIN14 in the wireless headset 10 may be a metal pin, which is generally arranged at the bottom of the two earphones or under the earplugs. Wherein, when the wireless earphone is placed in the earphone box, the POGO PIN 14 can conduct the circuit between the wireless earphone 10 and the earphone box, thereby charging the wireless earphone. Common wireless earphones are set with 2 or 3 POGO PINs, which are located at the corresponding positions on the wireless earphone and earphone box. When the wireless earphone is placed in the earphone box, the POGO PIN on the wireless earphone and the POGO PIN on the earphone box Will just touch and conduct.
需要说明的是,在本申请的实施例中,无线耳机进行开关检测是指检测耳机盒的盒盖是开启状态还是关闭状态。具体地,如果无线耳机被放置在耳机盒中充电,那么一旦耳机盒的盒盖开启,则可以认为需要使用无线耳机,因此无线耳机需要发出广播,以便周围的终端可以识别到无线耳机,从而可以与终端进行连接,例如蓝牙连接。相应地,如果无线耳机使用结束后被放进耳机盒中,那么一旦耳机盒的盒盖关闭,则可以认为无线耳机不需要使用,为了节省功耗不再需要与终端连接,那么无线耳机断开与终端的连接。It should be noted that, in the embodiments of the present application, the wireless headset performing switch detection refers to detecting whether the cover of the headset box is in an open state or a closed state. Specifically, if the wireless headset is placed in the headset box for charging, once the cover of the headset box is opened, it can be considered that the wireless headset needs to be used. Therefore, the wireless headset needs to broadcast so that the surrounding terminals can recognize the wireless headset. Connect with the terminal, such as Bluetooth connection. Correspondingly, if the wireless headset is put into the headset box after use, once the cover of the headset box is closed, it can be considered that the wireless headset does not need to be used. In order to save power consumption, it is no longer necessary to connect to the terminal, then the wireless headset is disconnected Connection with the terminal.
由此可见,保证无线耳机能够准确的进行开关检测,可以在需要使用时及时的与终端建立连接,也可以在不需要使用时及时的与终端断开连接,从而既提升了无线耳机的智能性,又节省了功耗。It can be seen that it can ensure that the wireless headset can accurately perform switch detection, and can establish a connection with the terminal in time when it needs to be used, and it can also disconnect with the terminal in time when it is not needed, thus improving the intelligence of the wireless headset. , And save power consumption.
图4为开关检测方法的实现流程示意图一,如图4所示,无线耳机进行开关检测的方法可以包括以下步骤:Fig. 4 is a schematic diagram 1 of the implementation process of the switch detection method. As shown in Fig. 4, the switch detection method of the wireless headset may include the following steps:
步骤101、在电源模块检测到耳机盒输入的激励电压之后,通过发声模块生成预设音频信号。Step 101: After the power supply module detects the excitation voltage input from the earphone box, it generates a preset audio signal through the sounding module.
在本申请的实施例中,在无线耳机中的电源模块检测到耳机盒输入的激励电压之后,无线耳机便可以通过发声模块生成预设音频信号。In the embodiment of the present application, after the power module in the wireless earphone detects the excitation voltage input by the earphone box, the wireless earphone can generate the preset audio signal through the sound module.
一种可行的实施方式,电源模块检测到耳机盒输入的激励电压可以包括:无线耳机接收耳机盒传输的充电电压(例如5V电压)。也就是说,无线耳机放入耳机盒进行充电,当无线耳机收到耳机盒传输的充电电压后,无线耳机便通过发声模块生成预设音频信号,且通过收声模块采集音频信号,以获得目标音频信号,以供无线耳机判断充电盒的开盖状态,进而确定与手机等终端设备蓝牙连接状态。In a feasible implementation manner, the detection of the excitation voltage input by the earphone box by the power module may include: the wireless earphone receives the charging voltage (for example, a 5V voltage) transmitted by the earphone box. That is to say, the wireless earphone is put into the earphone box for charging. When the wireless earphone receives the charging voltage transmitted by the earphone box, the wireless earphone generates a preset audio signal through the sound module, and collects the audio signal through the sound module to obtain the target The audio signal is used for the wireless headset to determine the open status of the charging box, and then determine the Bluetooth connection status with mobile phones and other terminal devices.
一种可行的实施方式,电源模块检测到耳机盒输入的激励电压还可以包括:耳机盒处于休眠状态下,耳机盒向耳机传输的第一预设电压。也就是说,在耳机盒处于休眠状态下,耳机盒仍然会发出一个第一预设电压,该第一预设电压可以不足以使得耳机盒对无线耳机供电,但能够激励无线耳机的发声装置发出预设音频,以及收声装置进行音频采集,以获得目标音频信号,从而供无线耳机判断充电盒的开盖状态,进而确定与手机等终端设备蓝牙连接状态。In a feasible implementation manner, the power supply module detecting the excitation voltage input by the earphone box may further include: the first preset voltage transmitted by the earphone box to the earphone when the earphone box is in a dormant state. That is to say, when the earphone box is in a sleep state, the earphone box will still emit a first preset voltage, which may not be enough to enable the earphone box to supply power to the wireless earphone, but can stimulate the sound device of the wireless earphone to emit The audio is preset, and the sound receiver performs audio collection to obtain the target audio signal, so that the wireless headset can determine the open state of the charging box, and then determine the Bluetooth connection state with terminal devices such as mobile phones.
由此可见,对于上述两种不同的激励电压的传输方式,耳机盒自身可以不需要检测是否开关盖,无线耳机在耳机盒中要么处于充电状态,接收充电电压,要么处于满电状态下接收休眠状态的耳机盒输出的第一预设电 压,要么耳机盒因低电进入休眠状态,停止为无线耳机供电但保持向无线耳机输出第一预设电压。从而无线耳机在置入耳机盒后会持续通过发送预设音频信号和采集音频信号来检测充电盒是否开关盖。当无线耳机从耳机盒中取出后不再接收激励电压,从而停止预设音频信号的生成和音频信号的采集。It can be seen that for the above two different excitation voltage transmission methods, the earphone box itself does not need to detect whether the cover is opened or not. The wireless earphones in the earphone box are either in the charging state, receiving the charging voltage, or receiving sleep in the fully charged state. The first preset voltage output by the earphone box in the state, or the earphone box enters the dormant state due to low power, stops supplying power to the wireless earphone but keeps outputting the first preset voltage to the wireless earphone. Therefore, after the wireless earphone is placed in the earphone box, it will continue to detect whether the charging box is open or closed by sending preset audio signals and collecting audio signals. When the wireless earphone is taken out of the earphone box, it no longer receives the excitation voltage, thereby stopping the generation of the preset audio signal and the collection of the audio signal.
一种可行的实施方式,电源模块检测到耳机盒输入的激励电压也可以包括:在耳机盒自身检测到开盖和关盖时,发出第二预设电压激励无线耳机的发声装置发出预设音频,以及收声装置进行音频采集,以获得目标音频信号。In a feasible implementation manner, the power module detecting the excitation voltage input by the earphone box may also include: when the earphone box itself detects opening and closing of the cover, emitting a second preset voltage to excite the sound device of the wireless earphone to emit a preset audio , And the sound receiving device performs audio collection to obtain the target audio signal.
例如,无线耳机放入耳机盒后,无线耳机与耳机盒接触连接,当耳机盒检测到关盖时,耳机盒发送第二预设电压给无线耳机,无线耳机在收到第二预设电压后,无线耳机的发声模块产生预设音频,无线耳机的收声模块采集音频信号,以获得目标音频。由于耳机盒关盖,影响了对预设音频信号的采集,从而可以判断耳机盒已关闭,从而断开蓝牙连接。当耳机盒开盖时,发送第二预设电压给耳机盒中的无线耳机,使得无线耳机的发声模块产生预设音频,无线耳机的收声模块采集音频信号,以获得目标音频。由于耳机盒开盖,不会影响对预设音频信号的采集,从而判断耳机盒开盖,确定回连蓝牙。该实施方式,也可以应用在耳机盒处于休眠状态下,当耳机盒开盖或关盖时,耳机盒向耳机传输第二预设电压。第二预设电压可以是一个有别于充电电压和第一预设电压的电压值。For example, after the wireless earphone is put into the earphone box, the wireless earphone is in contact with the earphone box. When the earphone box detects that the cover is closed, the earphone box sends the second preset voltage to the wireless earphone. The wireless earphone receives the second preset voltage. , The sound module of the wireless earphone generates the preset audio, and the sound module of the wireless earphone collects the audio signal to obtain the target audio. Since the cover of the earphone box is closed, the collection of the preset audio signal is affected, so that it can be judged that the earphone box is closed and the Bluetooth connection is disconnected. When the earphone box is opened, the second preset voltage is sent to the wireless earphone in the earphone box, so that the sound module of the wireless earphone generates the preset audio, and the sound module of the wireless earphone collects audio signals to obtain the target audio. Since the earphone box is opened, the collection of the preset audio signal will not be affected, so it is judged that the earphone box is opened and the Bluetooth is connected back. This implementation manner can also be applied when the earphone box is in a sleep state, when the earphone box is opened or closed, the earphone box transmits the second preset voltage to the earphone. The second preset voltage may be a voltage value different from the charging voltage and the first preset voltage.
可以理解的是,在上述实施方式中,耳机盒自身需要具备开盖检测功能,才能在检测到开关盖时及时发送激励电压给无线耳机,这样无线耳机在置入耳机盒后,其发声装置和收声装置不用持续进行预设音频信号的发出和采集工作,而是当耳机盒开关盖后才进行预设音频信号的发出和采集,可以降低无线耳机的功耗,此外,相比现有技术,在耳机端不需要增加如红外、霍尔等传感器,而是复用无线耳机的喇叭和麦克风就可以实现耳机检测,可以减少无线耳机的重量。It is understandable that, in the above-mentioned embodiment, the earphone box itself needs to have the cover opening detection function, so that the excitation voltage can be sent to the wireless earphone in time when the cover opening and closing is detected, so that after the wireless earphone is placed in the earphone box, its sound device and The sound receiving device does not need to continuously send out and collect preset audio signals, but only send out and collect preset audio signals after the cover of the earphone box is opened and closed, which can reduce the power consumption of wireless earphones. In addition, compared with the prior art , There is no need to add sensors such as infrared and Hall on the earphone, but the speaker and microphone of the wireless earphone can be reused to realize the earphone detection, which can reduce the weight of the wireless earphone.
需要说明的是,上述实施方式在不冲突的情况下可以相互组合,例如在耳机盒具备检测开关盖功能时,无线耳机可以在充电状态时持续或间断生成预设音频信号和采集音频信号,在休眠状态时,需要结合耳机盒的开关盖检测功能,当耳机盒检测到开盖或关盖才发出激励电压,触发无线耳机生成预设音频信号并采集音频信号。It should be noted that the above embodiments can be combined without conflict. For example, when the earphone box has the function of detecting the switch cover, the wireless earphone can continuously or intermittently generate the preset audio signal and collect the audio signal in the charging state. In the dormant state, it is necessary to combine the opening and closing detection function of the earphone box. When the earphone box detects that the cover is opened or closed, the excitation voltage is sent out, which triggers the wireless earphone to generate a preset audio signal and collect the audio signal.
可以理解的是,在本申请中,耳机盒可以是在休眠状态下由关闭状态变换为开启状态的。其中,耳机盒的休眠状态,可以是指耳机盒停止向无线耳机供电,进入低功耗状态。具体地,休眠状态可以包括两种不同的情况,一种是无线耳机充满电后,耳机盒进入休眠状态,另一种是耳机盒电量不足时,耳机盒不再向无线耳机供电进入休眠状态。It is understandable that, in this application, the earphone box can be changed from the closed state to the open state in the sleep state. Among them, the sleep state of the earphone box may mean that the earphone box stops supplying power to the wireless earphone and enters a low power consumption state. Specifically, the sleep state may include two different situations. One is that the headset box enters the sleep state after the wireless headset is fully charged, and the other is that the headset box no longer supplies power to the wireless headset and enters the sleep state when the headset box has insufficient power.
需要说明的是,在本申请的一些实施例中,当耳机盒检测到盒盖打开 时,便可以通过输出激励电压来激活无线耳机,相应地,无线耳机的电源模块便可以接收到耳机盒输入的激励电压,该激励电压可以是充电电压,也可以是其他预设电压,如第一预设电压或第二预设电压。具体地,在本申请中,耳机盒和无线耳机在相互对应的位置上设置有POGO PIN,耳机盒在检测到盒盖开启之后,便可以通过耳机盒上的POGO PIN输出激励电压,该激励电压通过无线耳机上对应的POGO PIN被电源模块识别到。It should be noted that in some embodiments of the present application, when the earphone box detects that the lid is opened, the wireless earphone can be activated by outputting an excitation voltage. Accordingly, the power module of the wireless earphone can receive the earphone box input The excitation voltage can be a charging voltage or other preset voltages, such as a first preset voltage or a second preset voltage. Specifically, in this application, the earphone box and the wireless earphone are provided with a POGO PIN at the positions corresponding to each other. After the earphone box detects that the cover is opened, it can output the excitation voltage through the POGO PIN on the earphone box. It is recognized by the power module through the corresponding POGO PIN on the wireless headset.
进一步地,在本申请的一些实施例中,当无线耳机放入至耳机盒之后,无线耳机中的POGO PIN与耳机盒中对应的POGO PIN互相接触,从而使耳机盒识别到无线耳机的放入,并通过POGO PIN输出激励电压,耳机的电源模块便可以进一步通过POGO PIN检测到激励电压。Further, in some embodiments of the present application, after the wireless earphone is put into the earphone box, the POGO PIN in the wireless earphone and the corresponding POGO PIN in the earphone box are in contact with each other, so that the earphone box recognizes the insertion of the wireless earphone , And output the excitation voltage through the POGO PIN, the power module of the headset can further detect the excitation voltage through the POGO PIN.
可以理解的是,在本申请的一些实施例中,无线耳机中的电源模块在检测到耳机盒输入的激励电压之后,便可以将发声模块和收声模块激活,从而可以利用发声模块和收声模块确定耳机盒的开关状态。It is understandable that in some embodiments of the present application, the power module in the wireless headset can activate the sound generating module and the sound receiving module after detecting the excitation voltage input by the earphone box, so that the sound generating module and the sound receiving module can be used. The module determines the switch state of the earphone box.
需要说明的是,在本申请的实施例中,无线耳机需要根据耳机盒的开启状态或者关闭状态,进一步确定与终端的连接状态,因此,无线耳机需要对耳机盒进行准确的开关检测。It should be noted that, in the embodiment of the present application, the wireless headset needs to further determine the connection state with the terminal according to the on or off state of the headset box. Therefore, the wireless headset needs to perform accurate switch detection on the headset box.
可以理解的是,在本申请的一些实施例中,耳机盒需要自身具备开关盖检测功能,耳机盒可以通过多种方式对盒盖的开启状态或关闭状态进行确定。具体地,耳机盒中可以设置有霍尔传感器,从而可以利用霍尔传感器检测盒盖的状态变化。耳机盒中还可以设置有红外传感器,从而可以利用红外传感器检测盒盖的状态变化。It is understandable that, in some embodiments of the present application, the earphone box needs to have a detection function of opening and closing the cover, and the earphone box can determine the open state or the closed state of the box cover in a variety of ways. Specifically, a Hall sensor can be provided in the earphone box, so that the Hall sensor can be used to detect the state change of the box cover. An infrared sensor can also be provided in the earphone box, so that the infrared sensor can be used to detect the state change of the box cover.
步骤102、通过收声模块进行音频采集,获得目标音频信号;其中,目标音频信号用于对收声模块获取预设音频信号的情况进行确定。Step 102: Perform audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine the situation in which the sound receiving module obtains a preset audio signal.
在本申请的实施例中,无线耳机中的发声模块在生成预设音频信号之后,无线耳机中的收声模块可以进行音频采集,从而获得目标音频信号。In the embodiment of the present application, after the sound generating module in the wireless earphone generates the preset audio signal, the sound receiving module in the wireless earphone may perform audio collection to obtain the target audio signal.
需要说明的是,在本申请的实施例中,目标音频信号用于对收声模块能够接收到预设音频信号的情况进行确定。It should be noted that, in the embodiment of the present application, the target audio signal is used to determine the condition that the sound receiving module can receive the preset audio signal.
可以理解的是,在本申请的实施例中,当无线耳机中的发声模块生成并发出预设音频信号之后,无线耳机中的收声模块在进行音频采集时,如果耳机盒为开启状态,那么收声模块便可以采集的到音频信号,如果耳机盒为关闭状态,那么耳机盒的盒盖便会阻挡音频信号在发声模块和收声模块之间的传输,影响收声模块对预设音频信号的采集。It is understandable that, in the embodiment of the present application, after the sound module in the wireless earphone generates and sends out the preset audio signal, when the sound receiver module in the wireless earphone performs audio collection, if the earphone box is turned on, then The radio module can collect audio signals. If the earphone box is closed, the cover of the earphone box will block the transmission of audio signals between the sound module and the radio module, which will affect the radio module’s ability to preset audio signals. Collection.
一种可行的实施方式下,无线耳机在收到激励电压的情况下,发声模块会持续或间断的发出预设音频信号,且收声模块对应地会持续或间断的采集音频信号,进一步地,为避免用户听到预设音频信号,预设音频信号可以设置为人耳不能听到的频率。In a feasible implementation manner, when the wireless headset receives the excitation voltage, the sound module will continuously or intermittently emit a preset audio signal, and the sound receiver module will correspondingly continuously or intermittently collect the audio signal. Further, To prevent the user from hearing the preset audio signal, the preset audio signal can be set to a frequency that cannot be heard by human ears.
进一步地,在本申请的一些实施例中,无线耳机在通过发声模块生成并发出预设音频信号时,可以按照预设时间阈值发出预设音频信号。相应 地,无线耳机通过收声模块进行音频采集时,也可以按照预设时间阈值进行音频采集。其中,预设时间阈值可以为无线耳机预先设置并存储的一个时间参数,为了防止误识别。例如,在收到激励电压后,在预设时间阈值内生成预设音频信号,并采集音频信号,从而可以增加检测的准确性。另一种情况,也可以每隔预设时间阈值发出一轮预设音频信号并进行音频信号采集,从而降低功耗。该预设时间阈值可以根据实际应用情况进行设置。Further, in some embodiments of the present application, when the wireless earphone generates and emits a preset audio signal through the sound emitting module, it may emit the preset audio signal according to a preset time threshold. Correspondingly, when the wireless earphone collects audio through the sound receiving module, it can also collect audio according to the preset time threshold. Wherein, the preset time threshold may be a time parameter preset and stored by the wireless headset, in order to prevent misidentification. For example, after receiving the excitation voltage, a preset audio signal is generated within a preset time threshold, and the audio signal is collected, thereby increasing the accuracy of detection. In another case, it is also possible to send out a round of preset audio signals and collect audio signals every preset time threshold, thereby reducing power consumption. The preset time threshold can be set according to actual application conditions.
可以理解的是,在本申请的一些实施例中,发声模块可以按照预设时间阈值持续地发出预设音频信号,也可以按照预设时间阈值间断地发出预设音频信号。相应地,收声模块可以按照预设时间阈值持续地进行音频采集,也可以按照预设时间阈值间断地进行音频采集,从而获得目标音频信号。也就是说,为了防止误识别,发声模块和收声模块可以按照预设时间阈值持续或间断的在一段时间内对音频信号进行发出和采集。It is understandable that, in some embodiments of the present application, the sound emitting module may continuously emit the preset audio signal according to the preset time threshold, or may intermittently emit the preset audio signal according to the preset time threshold. Correspondingly, the sound receiving module can continuously perform audio collection according to the preset time threshold, or can perform audio collection intermittently according to the preset time threshold, so as to obtain the target audio signal. That is to say, in order to prevent misidentification, the sound generating module and the sound receiving module may continuously or intermittently emit and collect audio signals within a period of time according to the preset time threshold.
需要说明的是,在本申请的实施例中,预设音频信号可以包括脉冲声波信号或编码后的声音信号。It should be noted that, in the embodiment of the present application, the preset audio signal may include a pulsed sound wave signal or an encoded sound signal.
步骤103、根据目标音频信号确定开关检测结果;其中,开关检测结果用于确定耳机盒的开关状态。Step 103: Determine the switch detection result according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
在本申请的实施例中,无线耳机在通过收声模块进行音频采集,获得目标音频信号之后,便可以根据目标音频信号确定开关检测结果。In the embodiment of the present application, after the wireless earphone performs audio collection through the sound receiving module and obtains the target audio signal, the switch detection result can be determined according to the target audio signal.
需要说明的是,在本申请的实施例中,无线耳机基于目标音频信号确定的开关检测结果可以用于确定耳机盒的开关状态。也就是说,在本申请中的一些实施例中,无线耳机只需要利用无线耳机中配置的发声模块和收声模块,便可以实现对耳机盒的开关状态的检测。在一些实施例中,则需要耳机盒自身具有开关盖检测功能。与现有技术相比,无需在无线耳机中增加霍尔传感器,因此既不会影响无线耳机的形状和结构,也不会存在高温情况下无法正常工作的情况。It should be noted that, in the embodiment of the present application, the switch detection result determined by the wireless headset based on the target audio signal may be used to determine the switch state of the headset box. That is to say, in some embodiments of the present application, the wireless earphone only needs to use the sound generating module and the sound receiving module configured in the wireless earphone to realize the detection of the on-off state of the earphone box. In some embodiments, it is required that the earphone box itself has the function of detecting the opening and closing of the cover. Compared with the prior art, there is no need to add a Hall sensor in the wireless earphone, so the shape and structure of the wireless earphone will not be affected, nor will it not work normally under high temperature conditions.
进一步地,在本申请的实施例中,无线耳机在根据目标音频信号确定开关检测结果时,如果目标音频信号包括预设音频信号,那么无线耳机便可以确定开关检测结果为开启,即耳机盒为开启状态;如果目标音频信号不包括预设音频信号,那么无线耳机便可以确定开关检测结果为关闭,即耳机盒为关闭状态。Further, in the embodiment of the present application, when the wireless headset determines the switch detection result according to the target audio signal, if the target audio signal includes a preset audio signal, the wireless headset can determine that the switch detection result is on, that is, the headset box is On state; if the target audio signal does not include the preset audio signal, the wireless headset can determine that the switch detection result is off, that is, the headset box is off.
可以理解的是,在本申请的实施例中,如果耳机盒为开启状态,那么收声模块便可以采集到发声模块发出的预设音频信号,因此,当收声模块采集的目标音频信号包括预设音频信号时,便可以确定开关检测结果为开启;相应地,如果耳机盒为关闭状态,那么耳机盒的盒盖便会阻挡音频信号在发声模块和收声模块之间的传输,收声模块便不能接收到发声模块发出的预设音频信号,因此,当收声模块采集的目标音频信号不包括预设音频信号,便可以确定开关检测结果为关闭。It is understandable that, in the embodiment of the present application, if the earphone box is turned on, the sound receiving module can collect the preset audio signal emitted by the sound emitting module. Therefore, when the target audio signal collected by the sound receiving module includes the preset audio signal When the audio signal is set, it can be determined that the switch detection result is on; accordingly, if the earphone box is closed, the cover of the earphone box will block the transmission of audio signals between the sound module and the sound module, and the sound module The preset audio signal from the sound module cannot be received. Therefore, when the target audio signal collected by the sound module does not include the preset audio signal, it can be determined that the switch detection result is closed.
可以理解的是,在本申请的一些实施例中,理想状态下,如果耳机盒 为关闭状态,那么收声模块便不能接收到发声模块发出的预设音频信号,同时,收声模块也不能接收到其他音频信号,因此,当收声模块采集的目标音频信号为空时,便可以确定开关检测结果为关闭。It is understandable that, in some embodiments of the present application, in an ideal state, if the earphone box is closed, the sound receiving module cannot receive the preset audio signal sent by the sound emitting module, and at the same time, the sound receiving module cannot receive either To other audio signals, therefore, when the target audio signal collected by the radio module is empty, it can be determined that the switch detection result is closed.
进一步地,在本申请的实施例中,可以认为耳机盒为关闭状态时,收声模块仍然能够接收到一些音频信号,那么,无线耳机便需要对收声模块采集到的目标音频信号中的预设音频信号的信号强度进行确定,从而进一步确定耳机盒的开关状态。Further, in the embodiment of the present application, it can be considered that when the earphone box is closed, the sound receiving module can still receive some audio signals. Then, the wireless earphone needs to pre-check the target audio signal collected by the sound receiving module. It is assumed that the signal strength of the audio signal is determined to further determine the switch state of the earphone box.
一种可行的实施方式,如果收声模块采集的目标音频信号中包括的预设音频信号大于预设阈值,则确定开关检测结果为开启;相应地,如果收声模块采集的目标音频信号中包括的预设音频信号小于或等于预设阈值,则确定开关检测结果为关闭。In a feasible implementation manner, if the preset audio signal included in the target audio signal collected by the sound receiving module is greater than the preset threshold, it is determined that the switch detection result is turned on; accordingly, if the target audio signal collected by the sound receiving module includes If the preset audio signal of is less than or equal to the preset threshold, it is determined that the switch detection result is closed.
该实施方式中,耳机盒关闭和打开都能采集到预设音频信号,但是采集的量不同,因此可以根据实验获取该采集的阈值范围,设定预设阈值,然后当采集到的预设音频信号大于或等于预设阈值时,则认为耳机盒的盒盖开启,当采集到的预设音频信号小于预设阈值时,则认为耳机盒的盒盖关闭,该预设阈值可以是信号强度阈值等用于衡量采集的预设音频信号强弱的阈值。In this embodiment, the preset audio signal can be collected when the earphone box is closed and opened, but the amount of collection is different. Therefore, the threshold range of the collection can be obtained according to the experiment, the preset threshold can be set, and then when the collected preset audio When the signal is greater than or equal to the preset threshold, the cover of the earphone box is considered to be open. When the collected preset audio signal is less than the preset threshold, the cover of the earphone box is considered to be closed. The preset threshold may be the signal strength threshold. The threshold used to measure the strength of the preset audio signal collected.
综上所述,在本申请的实施例中,无线耳机可以使用自身配置的发声装置和收声装置直接进行耳机盒的开关检测,无需增加霍尔传感器等额外的器件,一方面,显著降低了无线耳机的生产成本,再一方面,大大降低了无线耳机的尺寸和结构复杂度,另一方面,避免了磁铁使用一段时间后失效的风险,有效提升了无线耳机的可靠性。In summary, in the embodiments of the present application, the wireless earphone can directly perform the switch detection of the earphone box using its own configured sound generating device and sound receiving device, without adding additional devices such as a Hall sensor. On the one hand, it significantly reduces The production cost of the wireless headset, on the one hand, greatly reduces the size and structural complexity of the wireless headset, on the other hand, it avoids the risk of failure of the magnet after a period of use, and effectively improves the reliability of the wireless headset.
本申请实施例提供了一种开关检测方法,开关检测方法应用于无线耳机,无线耳机包括发声模块,收声模块,电源模块,在电源模块检测到耳机盒输入的激励电压之后,通过发声模块生成预设音频信号;通过收声模块进行音频采集,获得目标音频信号;其中,目标音频信号用于对收声模块获取预设音频信号的情况进行确定;根据目标音频信号确定开关检测结果;其中,开关检测结果用于确定耳机盒的开关状态。由此可见,在本申请的实施例中,在接收到耳机盒的激励电压之后,无线耳机可以通过发声模块进行预设音频信号的发出,并通过收声模块获取目标音频信号,最终便可以直接根据目标音频信号确定耳机盒的开关检测结果。由于发声模块和收声模块可以共用耳机本身的扬声器和麦克风,以节省硬件成本,且不易在高温或者长时间使用的情况下失效,从而在不影响无线耳机的外形和结构的前提下,可以保障无线耳机进行开关检测的准确性,有效提升无线耳机的可靠性。The embodiment of the application provides a switch detection method. The switch detection method is applied to a wireless headset. The wireless headset includes a sounding module, a sound receiving module, and a power supply module. After the power supply module detects the excitation voltage input by the earphone box, it is generated by the sounding module Preset audio signal; audio collection is performed by the radio module to obtain the target audio signal; wherein the target audio signal is used to determine the situation in which the radio module obtains the preset audio signal; the switch detection result is determined according to the target audio signal; wherein, The switch detection result is used to determine the switch state of the earphone box. It can be seen that, in the embodiment of the present application, after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speaker and microphone of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that it can be guaranteed without affecting the shape and structure of the wireless headset The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
基于上述实施例中,本申请的另一实施例提出了一种开关检测方法,该开关检测方法应用于无线耳机中,图5为开关检测方法的实现流程示意图二,如图5所示,无线耳机在根据目标音频信号确定开关检测结果之后, 即步骤103之后,无线耳机进行开关检测的方法可以包括以下步骤:Based on the above-mentioned embodiments, another embodiment of the present application proposes a switch detection method, which is applied to a wireless headset. FIG. 5 is a schematic diagram of the implementation process of the switch detection method. As shown in FIG. 5, the wireless After the headset determines the switch detection result according to the target audio signal, that is, after step 103, the method for the wireless headset to perform switch detection may include the following steps:
步骤104、根据开关检测结果控制与终端的连接状态。Step 104: Control the connection state with the terminal according to the switch detection result.
在本申请的实施例中,无线耳机在根据目标音频信号确定开关检测结果之后,可以继续根据开关检测结果来控制无线耳机与终端之间的连接状态。In the embodiment of the present application, after the wireless headset determines the switch detection result according to the target audio signal, it can continue to control the connection state between the wireless headset and the terminal according to the switch detection result.
例如,若开关检测结果为开启,则控制无线耳机与耳机盒处于蓝牙连接状态;若开关检测结果为关闭,则控制无线耳机与耳机盒处于蓝牙未连接状态。For example, if the switch detection result is on, the wireless headset and the headset box are controlled to be in a Bluetooth connection state; if the switch detection result is off, the wireless headset and the headset box are controlled to be in a Bluetooth disconnected state.
可以理解的是,在本申请的实施例中,终端可以为任何具备通信和存储功能、且设置有触摸屏的设备。例如:平板电脑、手机、电子阅读器、遥控器、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视、可穿戴设备等设备。It can be understood that, in the embodiments of the present application, the terminal may be any device that has communication and storage functions and is provided with a touch screen. For example: tablet computers, mobile phones, e-readers, remote controls, personal computers (PC), notebook computers, in-vehicle devices, Internet TVs, wearable devices and other devices.
需要说明的是,在本申请的实施例中,无线耳机在控制与终端之间的连接状态时,具体可以包括与终端建立连接,或者,与终端断开连接。It should be noted that, in the embodiment of the present application, when the wireless headset controls the connection state with the terminal, it may specifically include establishing a connection with the terminal, or disconnecting the terminal.
进一步地,在本申请的实施例中,无线耳机可以先确定出其与终端的实时连接状态。具体地,无线耳机在根据开关检测结果控制与终端的连接状态之前,需要先确定出实时连接状态。其中,实时连接状态即为无线耳机与终端之间的当前连接状态,示例性的,实时连接状态可以为已连接或未连接。Further, in the embodiment of the present application, the wireless headset can first determine its real-time connection status with the terminal. Specifically, before the wireless headset controls the connection state with the terminal according to the switch detection result, it needs to determine the real-time connection state first. Among them, the real-time connection status is the current connection status between the wireless headset and the terminal. Illustratively, the real-time connection status may be connected or unconnected.
需要说明的是,在本申请的实施例中,确定开关检测结果和实时连接状态之后,无线耳机在根据开关检测结果控制与终端的连接状态时,如果开关检测结果为开启,且实时连接状态为未连接,那么无线耳机可以建立与终端的连接,具体地,无线耳机可以通过开启蓝牙建立与终端的连接。It should be noted that in the embodiment of the present application, after the switch detection result and the real-time connection status are determined, when the wireless headset controls the connection status with the terminal according to the switch detection result, if the switch detection result is ON and the real-time connection status is If it is not connected, the wireless headset can establish a connection with the terminal. Specifically, the wireless headset can establish a connection with the terminal by turning on Bluetooth.
可以理解的是,在本申请的实施例中,当开关检测结果为开启,且实时连接状态为未连接时,无线耳机可以认为目前还没有使用,但是耳机盒打开了盒盖,无线耳机即将使用,因此,无线耳机需要与终端建立连接,无线耳机便可以直接发出广播,开启蓝牙,以便周围的终端可以识别到无线耳机,从而可以与终端进行连接。It is understandable that, in the embodiment of the present application, when the switch detection result is turned on and the real-time connection status is not connected, the wireless headset can be considered as not being used yet, but the headset box has the lid open, and the wireless headset is about to be used Therefore, the wireless headset needs to establish a connection with the terminal, and the wireless headset can directly broadcast and turn on Bluetooth, so that the surrounding terminals can recognize the wireless headset and connect with the terminal.
进一步地,在本申请的实施例中,当开关检测结果为开启,且实时连接状态为连接时,无线耳机可以继续保持与终端之间的连接。Further, in the embodiment of the present application, when the switch detection result is turned on and the real-time connection status is connected, the wireless headset can continue to maintain the connection with the terminal.
需要说明的是,在本申请的实施例中,确定开关检测结果和实时连接状态之后,无线耳机在根据开关检测结果控制与终端的连接状态时,如果开关检测结果为关闭,且实时连接状态为已连接,则可以通过关闭蓝牙断开与终端的连接。那么无线耳机可以断开与终端的连接,具体地,无线耳机可以通过关闭蓝牙断开与终端的连接。It should be noted that, in the embodiment of the present application, after the switch detection result and the real-time connection status are determined, when the wireless headset controls the connection status with the terminal according to the switch detection result, if the switch detection result is closed and the real-time connection status is Connected, you can disconnect from the terminal by turning off Bluetooth. Then the wireless headset can be disconnected from the terminal. Specifically, the wireless headset can be disconnected from the terminal by turning off Bluetooth.
可以理解的是,在本申请的实施例中,当开关检测结果为关闭,且实时连接状态为已连接时,无线耳机可以认为目前正在使用,但是耳机盒关闭了盒盖,无线耳机即将结束使用,因此,无线耳机需要与终端断开连接 以节省功耗,无线耳机便可以关闭蓝牙,从而可以断开与终端的连接。It is understandable that, in the embodiment of the present application, when the switch detection result is closed and the real-time connection status is connected, the wireless headset can be considered to be currently in use, but the headset box is closed with the cover, and the wireless headset is about to end use Therefore, the wireless headset needs to be disconnected from the terminal to save power consumption, and the wireless headset can turn off the Bluetooth, so that the connection with the terminal can be disconnected.
进一步地,在本申请的实施例中,当开关检测结果为关闭,且实时连接状态为未连接时,无线耳机可以继续保持断开与终端的连接。Further, in the embodiment of the present application, when the switch detection result is closed, and the real-time connection status is not connected, the wireless headset may continue to be disconnected from the terminal.
由此可见,在本申请的实施例中,如果无线耳机被放置在耳机盒中充电,那么一旦耳机盒的盒盖开启,则可以认为需要使用无线耳机,因此无线耳机需要与终端进行连接。相应地,如果无线耳机使用结束后被放进耳机盒中,那么一旦耳机盒的盒盖关闭,则可以认为无线耳机需要开始充电,为了节省功耗,无线耳机可以断开与终端的连接。也就是说,保证无线耳机能够准确的进行开关检测,可以在需要使用时及时的与终端建立连接,也可以在需要充电时及时的与终端断开连接,从而既提升了无线耳机的智能性,又节省了功耗。It can be seen that, in the embodiment of the present application, if the wireless earphone is placed in the earphone box for charging, once the cover of the earphone box is opened, it can be considered that the wireless earphone needs to be used, and therefore the wireless earphone needs to be connected to the terminal. Correspondingly, if the wireless headset is put into the headset box after use, once the cover of the headset box is closed, it can be considered that the wireless headset needs to start charging. In order to save power consumption, the wireless headset can be disconnected from the terminal. In other words, to ensure that the wireless headset can accurately perform switch detection, it can establish a connection with the terminal in time when it needs to be used, and it can also be disconnected from the terminal in time when it needs to be charged, thus improving the intelligence of the wireless headset. It also saves power consumption.
在本申请的实施例中,进一步地,发声模块产生并发出的预设音频信号可以包括脉冲声波信号或编码后的声音信号。In the embodiment of the present application, further, the preset audio signal generated and emitted by the sound generating module may include a pulsed sound wave signal or an encoded sound signal.
需要说明的是,在本申请的实施例中,为了避免发声模块产生并发出的预设音频信号被用户听到,可以采取发出大于20k的音频信号,并且对音频信号进行编码,即预设音频信号为编码后的声音信号。It should be noted that, in the embodiment of the present application, in order to prevent the preset audio signal generated and emitted by the sound module from being heard by the user, the audio signal larger than 20k may be emitted, and the audio signal is encoded, that is, the preset audio The signal is an encoded sound signal.
需要说明的是,在本申请的实施例中,由于编码的信号需要解析出来,有些蓝牙芯片的数据处理能力较弱,因此,预设音频信号也可以为脉冲声波信号。具体地,发声模块可以发出脉冲声波信号,收声模块在继续进行音频信号的采集之后,可以对获取到的目标音频信号进行分析,获得其对应的脉冲参数,以根据脉冲参数进一步确定开关检测结果。It should be noted that, in the embodiment of the present application, since the encoded signal needs to be parsed, some Bluetooth chips have weak data processing capabilities. Therefore, the preset audio signal may also be a pulsed sound wave signal. Specifically, the sound module can send out a pulsed sound wave signal. After the sound module continues to collect the audio signal, it can analyze the acquired target audio signal to obtain its corresponding pulse parameter to further determine the switch detection result based on the pulse parameter .
具体地,在本申请的实施例中,无线耳机在根据目标音频信号确定开关检测结果时,可以先确定目标音频信号对应的脉冲参数;其中,脉冲参数可以表征在预设时间间隔(如1s)内累计统计到的目标音频信号中的声波高电平脉冲数量。进一步地,无线耳机在去确定出目标音频信号对应的脉冲参数之后,可以将脉冲参数与预设脉冲阈值进行比较,如果脉冲参数大于或者等于预设脉冲阈值,那么无线耳机便可以确定开关检测结果为开启。Specifically, in the embodiment of the present application, when the wireless headset determines the switch detection result according to the target audio signal, it can first determine the pulse parameter corresponding to the target audio signal; wherein, the pulse parameter can be characterized in a preset time interval (such as 1s) The number of high-level sonic pulses in the target audio signal accumulated and counted within. Further, after the wireless headset determines the pulse parameter corresponding to the target audio signal, the pulse parameter can be compared with the preset pulse threshold. If the pulse parameter is greater than or equal to the preset pulse threshold, the wireless headset can determine the switch detection result Is turned on.
可以理解的是,在本申请的实施例中,在无线耳机放入耳机盒的过程中,用户的手部可能会挡住收声模块,若单纯地认为收声模块无法接收到预设音频信号便去确定耳机盒关闭,就可能造成误识别,会产生错误的开关检测结果,为了减少无线耳机对耳机盒开关状态的误识别率,可以在无线耳机在放入耳机盒之后,即通过电源模块检测到耳机盒输入的激励电压之后,需要先有一段时间收声模块可以接收到预设音频信号,之后持续一段时间(如几秒钟)收声模块无法识别到预设音频信号,无线耳机才确定开关检测结果为关闭。也可以通过收声模块采集到预设音频信号的次数来确定,连续达到预设次数才确认为关盖或开盖。It is understandable that in the embodiment of the present application, the user's hand may block the sound receiving module during the process of putting the wireless earphone into the earphone box. If it is simply considered that the sound receiving module cannot receive the preset audio signal, then To make sure that the earphone box is closed, it may cause misrecognition and wrong switch detection results. In order to reduce the misrecognition rate of the wireless earphone on the switch state of the earphone box, the wireless earphone can be detected by the power module after it is put in the earphone box. After the excitation voltage input by the earphone box, there needs to be a period of time before the radio module can receive the preset audio signal, and then for a period of time (such as a few seconds) the radio module cannot recognize the preset audio signal before the wireless headset determines The switch detection result is closed. It can also be determined by the number of times the radio module collects the preset audio signal, and the cover is confirmed to be closed or open only after the preset number of times is reached continuously.
综上所述,在本申请的实施例中,无线耳机可以使用自身配置的发声 装置和收声装置直接进行耳机盒的开关检测,无需增加霍尔传感器等额外的器件,一方面,显著降低了无线耳机的生产成本,再一方面,大大降低了无线耳机的尺寸和结构复杂度,另一方面,避免了磁铁使用一段时间后失效的风险,有效提升了无线耳机的可靠性。In summary, in the embodiments of the present application, the wireless earphone can directly perform the switch detection of the earphone box using its own configured sound generating device and sound receiving device, without adding additional devices such as a Hall sensor. On the one hand, it significantly reduces The production cost of the wireless headset, on the one hand, greatly reduces the size and structural complexity of the wireless headset, on the other hand, it avoids the risk of failure of the magnet after a period of use, and effectively improves the reliability of the wireless headset.
本申请实施例提供了一种开关检测方法,开关检测方法应用于无线耳机,无线耳机包括发声模块,收声模块,电源模块,在电源模块检测到耳机盒输入的激励电压之后,通过发声模块生成预设音频信号;通过收声模块进行音频采集,获得目标音频信号;其中,目标音频信号用于对收声模块获取预设音频信号的情况进行确定;根据目标音频信号确定开关检测结果;其中,开关检测结果用于确定耳机盒的开关状态。由此可见,在本申请的实施例中,在接收到耳机盒的激励电压之后,无线耳机可以通过发声模块进行预设音频信号的发出,并通过收声模块获取目标音频信号,最终便可以直接根据目标音频信号确定耳机盒的开关检测结果。由于发声模块和收声模块可以共用耳机本身的扬声器和麦克风,以节省硬件成本,且不易在高温或者长时间使用的情况下失效,从而在不影响无线耳机的外形和结构的前提下,可以保障无线耳机进行开关检测的准确性,有效提升无线耳机的可靠性。The embodiment of the application provides a switch detection method. The switch detection method is applied to a wireless headset. The wireless headset includes a sounding module, a sound receiving module, and a power supply module. After the power supply module detects the excitation voltage input by the earphone box, it is generated by the sounding module Preset audio signal; audio collection is performed by the radio module to obtain the target audio signal; wherein the target audio signal is used to determine the situation in which the radio module obtains the preset audio signal; the switch detection result is determined according to the target audio signal; wherein, The switch detection result is used to determine the switch state of the earphone box. It can be seen that, in the embodiment of the present application, after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speakers and microphones of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that the shape and structure of the wireless headset can be guaranteed without affecting the shape and structure of the wireless headset. The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
基于上述实施例,本申请的再一实施例提出了一种开关检测方法,该开关检测方法应用于耳机盒中。具体地,耳机盒包括供电模块,耳机盒辅助无线耳机进行开关检测时,供电模块向与耳机盒连接的无线耳机传输激励电压,使得无线耳机的发声模块生成预设音频信号,且无线耳机的收声模块采集音频信号,以获得目标音频信号,目标音频信号用于对收声模块获取预设音频信号的情况进行确定,以使得无线耳机获知耳机盒的开关盖状态。Based on the foregoing embodiment, yet another embodiment of the present application proposes a switch detection method, which is applied to a headset box. Specifically, the earphone box includes a power supply module. When the earphone box assists the wireless earphone to perform switch detection, the power supply module transmits an excitation voltage to the wireless earphone connected to the earphone box, so that the sound module of the wireless earphone generates a preset audio signal, and the wireless earphone receives The sound module collects the audio signal to obtain the target audio signal, and the target audio signal is used to determine the situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone knows the state of the opening and closing cover of the earphone box.
进一步的,在本申请的实施例中,激励电压可以为耳机盒处于供电状态下,输出的充电电压(例如5V);激励电压也可以为耳机盒处于休眠状态下,输出的第一预设电压,该第一预设电压可以是一个不能给耳机供电的电压;激励电压还可以为耳机盒在检测到自身开盖或关盖后,输出的第二预设电压,该第二预设电压可以是一个不同于充电电压或休眠状态下输出的电压的一个电压值。Further, in the embodiment of the present application, the excitation voltage may be the charging voltage (for example, 5V) output when the earphone box is in the power supply state; the excitation voltage may also be the first preset voltage output when the earphone box is in the dormant state. , The first preset voltage may be a voltage that cannot supply power to the earphone; the excitation voltage may also be a second preset voltage output by the earphone box after detecting that the cover is opened or closed by itself, and the second preset voltage may be It is a voltage value that is different from the charging voltage or the voltage output in the sleep state.
可以理解的是,在本申请中,对于激励电压为无线耳机接收耳机盒传输的充电电压(例如5V电压)的这种情况,无线耳机放入耳机盒进行充电,当无线耳机收到耳机盒传输的充电电压后,无线耳机便通过发声模块生成预设音频信号,且通过收声模块采集音频信号,以获得目标音频信号,以供无线耳机判断充电盒的开盖状态,进而确定与手机等终端设备蓝牙连接状态。It is understandable that in this application, for the case where the excitation voltage is the charging voltage (for example, 5V voltage) transmitted by the wireless earphone receiving the earphone box, the wireless earphone is put into the earphone box for charging, and when the wireless earphone receives the earphone box transmission After the charging voltage is reached, the wireless headset generates a preset audio signal through the sound module, and collects the audio signal through the sound module to obtain the target audio signal, so that the wireless headset can determine the open state of the charging box, and then determine the connection with the mobile phone and other terminals. The Bluetooth connection status of the device.
可以理解的是,在本申请中,对于激励电压为耳机盒处于休眠状态下,耳机盒向耳机传输的第一预设电压的这种情况,在耳机盒处于休眠状态下, 耳机盒仍然会发出一个第一预设电压,该第一预设电压可以不足以使得耳机盒对无线耳机供电,但能够激励无线耳机的发声装置发出预设音频,以及收声装置进行音频采集,以获得目标音频信号,从而供无线耳机判断充电盒的开盖状态,进而确定与手机等终端设备蓝牙连接状态。It is understandable that in this application, for the case where the excitation voltage is the first preset voltage transmitted by the earphone box to the earphone when the earphone box is in the dormant state, the earphone box will still send out when the earphone box is in the dormant state. A first preset voltage, the first preset voltage may not be enough to enable the earphone box to supply power to the wireless earphone, but can stimulate the sound generating device of the wireless earphone to emit a preset audio, and the sound receiving device performs audio collection to obtain the target audio signal , So that the wireless headset can determine the open status of the charging box, and then determine the Bluetooth connection status with terminal devices such as mobile phones.
由此可见,对于上述两种不同的激励电压的传输方式,耳机盒自身可以不需要检测是否开关盖,无线耳机在耳机盒中要么处于充电状态,接收充电电压,要么处于满电状态下接收休眠状态的耳机盒输出的第一预设电压,要么耳机盒因低电进入休眠状态,停止为无线耳机供电但保持向无线耳机输出第一预设电压。从而无线耳机在置入耳机盒后会持续通过发送预设音频信号和采集音频信号来检测充电盒是否开关盖。当无线耳机从耳机盒中取出后不再接收激励电压,从而停止预设音频信号的生成和音频信号的采集。It can be seen that for the above two different excitation voltage transmission methods, the earphone box itself does not need to detect whether the cover is opened or not. The wireless earphones in the earphone box are either in the charging state, receiving the charging voltage, or receiving sleep in the fully charged state. The first preset voltage output by the earphone box in the state, or the earphone box enters the dormant state due to low power, stops supplying power to the wireless earphone but keeps outputting the first preset voltage to the wireless earphone. Therefore, after the wireless earphone is placed in the earphone box, it will continue to detect whether the charging box is open or closed by sending preset audio signals and collecting audio signals. When the wireless earphone is taken out of the earphone box, it no longer receives the excitation voltage, thereby stopping the generation of the preset audio signal and the collection of the audio signal.
可以理解的是,在本申请中,对于激励电压为在耳机盒自身检测到开盖和关盖时,发出第二预设电压的这种情况,无线耳机放入耳机盒后,无线耳机与耳机盒接触连接,当耳机盒检测到关盖时,耳机盒发送第二预设电压给无线耳机,无线耳机在收到第二预设电压后,无线耳机的发声模块产生预设音频,无线耳机的收声模块采集音频信号,以获得目标音频。由于耳机盒关盖,影响了对预设音频信号的采集,从而可以判断耳机盒已关闭,从而断开蓝牙连接。当耳机盒开盖时,发送第二预设电压给耳机盒中的无线耳机,使得无线耳机的发声模块产生预设音频,无线耳机的收声模块采集音频信号,以获得目标音频。由于耳机盒开盖,不会影响对预设音频信号的采集,从而判断耳机盒开盖,确定回连蓝牙。该实施方式,也可以应用在耳机盒处于休眠状态下,当耳机盒开盖或关盖时,耳机盒向耳机传输第二预设电压。第二预设电压可以是一个有别于充电电压和第一预设电压的电压值。It is understandable that, in this application, for the case where the excitation voltage is the second preset voltage when the earphone box itself detects the opening and closing of the cover, the wireless earphone and the earphone are placed in the earphone box. When the earphone box detects that the cover is closed, the earphone box sends the second preset voltage to the wireless earphone. After the wireless earphone receives the second preset voltage, the sound module of the wireless earphone generates the preset audio. The sound receiving module collects audio signals to obtain target audio. Since the cover of the earphone box is closed, the collection of the preset audio signal is affected, so that it can be judged that the earphone box is closed and the Bluetooth connection is disconnected. When the earphone box is opened, the second preset voltage is sent to the wireless earphone in the earphone box, so that the sound module of the wireless earphone generates the preset audio, and the sound module of the wireless earphone collects audio signals to obtain the target audio. Since the earphone box is opened, the collection of the preset audio signal will not be affected, so it is judged that the earphone box is opened and the Bluetooth is connected back. This implementation manner can also be applied when the earphone box is in a sleep state, when the earphone box is opened or closed, the earphone box transmits the second preset voltage to the earphone. The second preset voltage may be a voltage value different from the charging voltage and the first preset voltage.
可以理解的是,在上述实施方式中,耳机盒自身需要具备开盖检测功能,才能在检测到开关盖时及时发送激励电压给无线耳机,这样无线耳机在置入耳机盒后,其发声装置和收声装置不用持续进行预设音频信号的发出和采集工作,而是当耳机盒开关盖后才进行预设音频信号的发出和采集,可以降低无线耳机的功耗,此外,相比现有技术,在耳机端不需要增加如红外、霍尔等传感器,而是复用无线耳机的喇叭和麦克风就可以实现耳机检测,可以减少无线耳机的重量。It is understandable that, in the above-mentioned embodiment, the earphone box itself needs to have the cover opening detection function, so that the excitation voltage can be sent to the wireless earphone in time when the cover opening and closing is detected, so that after the wireless earphone is placed in the earphone box, its sound device The sound receiving device does not need to continuously send out and collect preset audio signals, but only send out and collect preset audio signals after the cover of the earphone box is opened and closed, which can reduce the power consumption of wireless earphones. In addition, compared with the prior art , There is no need to add sensors such as infrared and Hall on the earphone, but the speaker and microphone of the wireless earphone can be reused to realize the earphone detection, which can reduce the weight of the wireless earphone.
需要说明的是,上述实施方式在不冲突的情况下可以相互组合,例如在耳机盒具备检测开关盖功能时,无线耳机可以在充电状态时持续或间断生成预设音频信号和采集音频信号,在休眠状态时,需要结合耳机盒的开关盖检测功能,当耳机盒检测到开盖或关盖才发出激励电压,触发无线耳机生成预设音频信号并采集音频信号。It should be noted that the above embodiments can be combined without conflict. For example, when the earphone box has the function of detecting the switch cover, the wireless earphone can continuously or intermittently generate the preset audio signal and collect the audio signal in the charging state. In the dormant state, it is necessary to combine the opening and closing detection function of the earphone box. When the earphone box detects that the cover is opened or closed, the excitation voltage is sent out, which triggers the wireless earphone to generate a preset audio signal and collect the audio signal.
本申请实施例提供了一种开关检测方法,开关检测方法应用于耳机盒, 耳机盒包括供电模块,耳机盒通过供电模块向与耳机盒连接的无线耳机传输激励电压,使得无线耳机的发声模块生成预设音频信号,且无线耳机的收声模块采集音频信号,以获得目标音频信号,目标音频信号用于对收声模块获取预设音频信号的情况进行确定,以使得无线耳机获知耳机盒的开关盖状态。由此可见,在本申请的实施例中,在接收到耳机盒的激励电压之后,无线耳机可以通过发声模块进行预设音频信号的发出,并通过收声模块获取目标音频信号,最终便可以直接根据目标音频信号确定耳机盒的开关检测结果。由于发声模块和收声模块可以共用耳机本身的扬声器和麦克风,以节省硬件成本,且不易在高温或者长时间使用的情况下失效,从而在不影响无线耳机的外形和结构的前提下,可以保障无线耳机进行开关检测的准确性,有效提升无线耳机的可靠性。The embodiment of the application provides a switch detection method, which is applied to a headset box. The headset box includes a power supply module. The headset box transmits an excitation voltage to the wireless headset connected to the headset box through the power supply module, so that the sound generating module of the wireless headset generates The audio signal is preset, and the radio module of the wireless earphone collects the audio signal to obtain the target audio signal. The target audio signal is used to determine the situation where the radio module obtains the preset audio signal, so that the wireless earphone knows the switch of the earphone box Cover state. It can be seen that, in the embodiment of the present application, after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speakers and microphones of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that the shape and structure of the wireless headset can be guaranteed without affecting the shape and structure of the wireless headset. The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
基于上述实施例,在本申请的另一实施例中,无线耳机设置有发声模块,收声模块,电源模块,图6为无线耳机的组成结构示意图三,如图6所示,所述无线耳机10可以包括:生成部分15,获取部分16,确定部分17。Based on the above embodiment, in another embodiment of the present application, the wireless earphone is provided with a sound generating module, a sound receiving module, and a power supply module. FIG. 6 is a schematic diagram of the composition structure of the wireless earphone. As shown in FIG. 6, the wireless earphone 10 may include: a generating part 15, an acquiring part 16, and a determining part 17.
所述生成部分15,配置为在所述电源模块检测到耳机盒输入的激励电压之后,通过所述发声模块生成预设音频信号;The generating part 15 is configured to generate a preset audio signal through the sounding module after the power supply module detects the excitation voltage input by the earphone box;
所述获取部分16,配置为通过所述收声模块进行音频采集,获得目标音频信号;其中,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定;The acquiring part 16 is configured to perform audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine a situation in which the sound receiving module acquires the preset audio signal;
所述确定部分17,配置为根据所述目标音频信号确定开关检测结果;其中,所述开关检测结果用于确定所述耳机盒的开关状态。The determining part 17 is configured to determine a switch detection result according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
在本申请的实施例中,进一步地,图7为无线耳机的组成结构示意图四,如图7所示,本申请实施例提出的无线耳机10还可以包括处理器18、存储有处理器18可执行指令的存储器19,进一步地,无线耳机10还可以包括通信接口110,和用于连接处理器18、存储器19以及通信接口110的总线111。In the embodiment of the present application, further, FIG. 7 is a fourth schematic diagram of the composition structure of the wireless headset. As shown in FIG. 7, the wireless headset 10 proposed in the embodiment of the present application may further include a processor 18, and a processor 18 may be stored therein. The memory 19 for executing instructions. Further, the wireless headset 10 may further include a communication interface 110 and a bus 111 for connecting the processor 18, the memory 19, and the communication interface 110.
在本申请的实施例中,上述处理器18可以为特定用途集成电路(Application Specific Integrated Circuit,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理装置(Digital Signal Processing Device,DSPD)、可编程逻辑装置(ProgRAMmable Logic Device,PLD)、现场可编程门阵列(Field ProgRAMmable Gate Array,FPGA)、中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,用于实现上述处理器功能的电子器件还可以为其它,本申请实施例不作具体限定。无线耳机10还可以包括存储器19,该存储器19可以与处理器18连接,其中,存储器19用于存储可执行程序代码,该程序代码包括计算机操作指令,存储器19可能包含高速RAM存储器,也可能还包括非易失性存储器,例如,至少两个磁盘存储器。In the embodiment of the present application, the aforementioned processor 18 may be an application specific integrated circuit (ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD). ), Programmable Logic Device (ProgRAMmable Logic Device, PLD), Field Programmable Gate Array (Field ProgRAMmable Gate Array, FPGA), Central Processing Unit (CPU), Controller, Microcontroller, Microprocessor At least one of. It is understandable that, for different devices, the electronic devices used to implement the above-mentioned processor functions may also be other, which is not specifically limited in the embodiment of the present application. The wireless headset 10 may also include a memory 19, which may be connected to the processor 18, wherein the memory 19 is used to store executable program code, the program code includes computer operation instructions, the memory 19 may include high-speed RAM memory, or may also Including non-volatile memory, for example, at least two disk memories.
在本申请的实施例中,总线111用于连接通信接口110、处理器18以及存储器19以及这些器件之间的相互通信。In the embodiment of the present application, the bus 111 is used to connect the communication interface 110, the processor 18 and the memory 19, and to communicate with each other among these devices.
在本申请的实施例中,存储器19,用于存储指令和数据。In the embodiment of the present application, the memory 19 is used to store instructions and data.
进一步地,在本申请的实施例中,上述处理器37,用于在所述电源模块检测到耳机盒输入的激励电压之后,通过所述发声模块生成预设音频信号;通过所述收声模块进行音频采集,获得目标音频信号;其中,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定;根据所述目标音频信号确定开关检测结果;其中,所述开关检测结果用于确定所述耳机盒的开关状态。Further, in the embodiment of the present application, the aforementioned processor 37 is configured to generate a preset audio signal through the sound module after the power module detects the excitation voltage input by the earphone box; and through the sound receiver module Perform audio collection to obtain a target audio signal; wherein, the target audio signal is used to determine the situation in which the sound receiving module obtains the preset audio signal; the switch detection result is determined according to the target audio signal; wherein, The switch detection result is used to determine the switch state of the earphone box.
在实际应用中,上述存储器19可以是易失性存储器(volatile memory),例如随机存取存储器(Random-Access Memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(Read-Only Memory,ROM),快闪存储器(flash memory),硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);或者上述种类的存储器的组合,并向处理器18提供指令和数据。In practical applications, the aforementioned memory 19 may be a volatile memory (volatile memory), such as a random-access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and send it to the processor 18 Provide instructions and data.
另外,在本实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, the functional modules in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be realized in the form of hardware or software function module.
集成的单元如果以软件功能模块的形式实现并非作为独立的产品进行销售或使用时,可以存储在一个计算机可读取存储介质中,基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或processor(处理器)执行本实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or correct The part that the prior art contributes or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer). A computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the method in this embodiment. The aforementioned storage media include: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
本申请实施例提出的一种无线耳机,该无线耳机包括发声模块,收声模块,电源模块,在电源模块检测到耳机盒输入的激励电压之后,通过发声模块生成预设音频信号;通过收声模块进行音频采集,获得目标音频信号;其中,目标音频信号用于对收声模块获取预设音频信号的情况进行确定;根据目标音频信号确定开关检测结果;其中,开关检测结果用于确定耳机盒的开关状态。由此可见,在本申请的实施例中,在接收到耳机盒的激励电压之后,无线耳机可以通过发声模块进行预设音频信号的发出,并通过收声模块获取目标音频信号,最终便可以直接根据目标音频信号确定耳机盒的开关检测结果。由于发声模块和收声模块可以共用耳机本身的扬声器和麦克风,以节省硬件成本,且不易在高温或者长时间使用的情况下 失效,从而在不影响无线耳机的外形和结构的前提下,可以保障无线耳机进行开关检测的准确性,有效提升无线耳机的可靠性。An embodiment of the application proposes a wireless headset, which includes a sound emitting module, a sound receiving module, and a power supply module. After the power supply module detects the excitation voltage input from the earphone box, the sound module generates a preset audio signal; The module performs audio collection to obtain the target audio signal; among them, the target audio signal is used to determine the situation in which the radio module obtains the preset audio signal; the switch detection result is determined according to the target audio signal; wherein the switch detection result is used to determine the earphone box The switch status. It can be seen that, in the embodiment of the present application, after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speaker and microphone of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that it can be guaranteed without affecting the shape and structure of the wireless headset The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
基于上述实施例,在本申请的另一实施例中,耳机盒设置有供电模块,图8为耳机盒的组成结构示意图一,如图8所示,所述耳机盒20可以包括:供电部分21。Based on the foregoing embodiment, in another embodiment of the present application, the earphone box is provided with a power supply module. FIG. 8 is a schematic diagram of the structure of the earphone box. As shown in FIG. 8, the earphone box 20 may include: a power supply part 21 .
所述供电部分21,配置为通过所述供电模块向与所述耳机盒连接的无线耳机传输激励电压,使得所述无线耳机的发声模块生成预设音频信号,且所述无线耳机的收声模块采集音频信号,以获得目标音频信号,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定,以使得所述无线耳机获知所述耳机盒的开关盖状态。The power supply part 21 is configured to transmit an excitation voltage to the wireless earphone connected to the earphone box through the power supply module, so that the sound generating module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone Collect an audio signal to obtain a target audio signal, the target audio signal is used to determine the situation in which the radio module obtains the preset audio signal, so that the wireless earphone knows the state of the cover of the earphone box .
在本申请的实施例中,进一步地,图9为耳机盒的组成结构示意图二,如图9所示,本申请实施例提出的耳机盒20还可以包括处理器22、存储有处理器22可执行指令的存储器23,进一步地,无线耳机20还可以包括通信接口24,和用于连接处理器22、存储器23以及通信接口24的总线25。In the embodiment of the present application, further, FIG. 9 is a second schematic diagram of the composition structure of the earphone box. As shown in FIG. 9, the earphone box 20 proposed in the embodiment of the present application may further include a processor 22, and a processor 22 may be stored therein. The memory 23 for executing instructions. Further, the wireless headset 20 may further include a communication interface 24 and a bus 25 for connecting the processor 22, the memory 23, and the communication interface 24.
进一步地,本申请实施例提出的耳机盒20还可以包括供电模块26。Further, the earphone box 20 proposed in the embodiment of the present application may further include a power supply module 26.
进一步地,在本申请的实施例中,上述处理器22,用于通过所述供电模块向与所述耳机盒连接的无线耳机传输激励电压,使得所述无线耳机的发声模块生成预设音频信号,且所述无线耳机的收声模块采集音频信号,以获得目标音频信号,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定,以使得所述无线耳机获知所述耳机盒的开关盖状态。Further, in the embodiment of the present application, the aforementioned processor 22 is configured to transmit an excitation voltage to the wireless earphone connected to the earphone box through the power supply module, so that the sound module of the wireless earphone generates a preset audio signal , And the sound receiving module of the wireless headset collects audio signals to obtain a target audio signal, and the target audio signal is used to determine the situation in which the sound receiving module obtains the preset audio signal, so that the wireless The earphone learns the state of the cover of the earphone box.
本申请实施例提出的一种耳机盒,该耳机盒包括供电模块,耳机盒通过供电模块向与耳机盒连接的无线耳机传输激励电压,使得无线耳机的发声模块生成预设音频信号,且无线耳机的收声模块采集音频信号,以获得目标音频信号,目标音频信号用于对收声模块获取预设音频信号的情况进行确定,以使得无线耳机获知耳机盒的开关盖状态。由此可见,在本申请的实施例中,在接收到耳机盒的激励电压之后,无线耳机可以通过发声模块进行预设音频信号的发出,并通过收声模块获取目标音频信号,最终便可以直接根据目标音频信号确定耳机盒的开关检测结果。由于发声模块和收声模块可以共用耳机本身的扬声器和麦克风,以节省硬件成本,且不易在高温或者长时间使用的情况下失效,从而在不影响无线耳机的外形和结构的前提下,可以保障无线耳机进行开关检测的准确性,有效提升无线耳机的可靠性。An embodiment of the present application proposes an earphone box, which includes a power supply module. The earphone box transmits an excitation voltage to a wireless earphone connected to the earphone box through the power supply module, so that the sound module of the wireless earphone generates a preset audio signal, and the wireless earphone The sound receiving module collects audio signals to obtain the target audio signal, and the target audio signal is used to determine the situation that the sound receiving module obtains the preset audio signal, so that the wireless earphone knows the state of the opening and closing cover of the earphone box. It can be seen that, in the embodiment of the present application, after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speakers and microphones of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that the shape and structure of the wireless headset can be guaranteed without affecting the shape and structure of the wireless headset. The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.
本申请实施例提供一种计算机可读存储介质,其上存储有程序,该程序被处理器执行时实现如上所述的开关检测方法。The embodiment of the present application provides a computer-readable storage medium on which a program is stored, and when the program is executed by a processor, the switch detection method as described above is implemented.
具体来讲,本实施例中的一种开关检测方法对应的程序指令可以被存储在光盘,硬盘,U盘等存储介质上,当存储介质中的与一种开关检测方法对应的程序指令被一无线耳机读取或被执行时,包括如下步骤:Specifically, the program instructions corresponding to a switch detection method in this embodiment can be stored on storage media such as optical disks, hard disks, USB flash drives, etc. When the program instructions corresponding to a switch detection method in the storage medium are integrated When the wireless headset is read or executed, it includes the following steps:
在所述电源模块检测到耳机盒输入的激励电压之后,通过所述发声模块生成预设音频信号;After the power supply module detects the excitation voltage input by the earphone box, generating a preset audio signal through the sounding module;
通过所述收声模块进行音频采集,获得目标音频信号;其中,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定;Performing audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal;
根据所述目标音频信号确定开关检测结果;其中,所述开关检测结果用于确定所述耳机盒的开关状态。The switch detection result is determined according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
当存储介质中的与一种开关检测方法对应的程序指令被一耳机盒读取或被执行时,包括如下步骤:When the program instruction corresponding to a switch detection method in the storage medium is read or executed by an earphone box, the following steps are included:
所述供电模块向与所述耳机盒连接的无线耳机传输激励电压,使得所述无线耳机的发声模块生成预设音频信号,且所述无线耳机的收声模块采集音频信号,以获得目标音频信号,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定,以使得所述无线耳机获知所述耳机盒的开关盖状态。The power supply module transmits the excitation voltage to the wireless earphone connected to the earphone box, so that the sound generating module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone collects the audio signal to obtain the target audio signal The target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone learns the state of the open/close cover of the earphone box.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的实现流程示意图和/或方框图来描述的。应理解可由计算机程序指令实现流程示意图和/或方框图中的每一流程和/或方框、以及实现流程示意图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to the schematic diagrams and/or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the application. It should be understood that each process and/or block in the schematic flow diagram and/or block diagram can be realized by computer program instructions, and the combination of processes and/or blocks in the schematic flow diagram and/or block diagram can be realized. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are used to generate It is a device for realizing the functions specified in one or more processes in the schematic flow chart and/or one block or more blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one or more processes in the schematic diagram and/or one block or more in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in one or more processes in the schematic diagram and/or one block or more in the block diagram.
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。The above are only preferred embodiments of the present application, and are not used to limit the protection scope of the present application.
工业实用性Industrial applicability
本申请实施例提供了一种开关检测方法、无线耳机、耳机盒及存储介质,开关检测方法应用于无线耳机,无线耳机包括发声模块,收声模块,电源模块,在电源模块检测到耳机盒输入的激励电压之后,通过发声模块生成预设音频信号;通过收声模块进行音频采集,获得目标音频信号;其中,目标音频信号用于对收声模块获取预设音频信号的情况进行确定;根据目标音频信号确定开关检测结果;其中,开关检测结果用于确定耳机盒的开关状态。由此可见,在本申请的实施例中,在接收到耳机盒的激励电压之后,无线耳机可以通过发声模块进行预设音频信号的发出,并通过收声模块获取目标音频信号,最终便可以直接根据目标音频信号确定耳机盒的开关检测结果。由于发声模块和收声模块可以共用耳机本身的扬声器和麦克风,以节省硬件成本,且不易在高温或者长时间使用的情况下失效,从而在不影响无线耳机的外形和结构的前提下,可以保障无线耳机进行开关检测的准确性,有效提升无线耳机的可靠性。The embodiment of the application provides a switch detection method, a wireless earphone, a earphone box, and a storage medium. The switch detection method is applied to a wireless earphone. The wireless earphone includes a sound module, a sound receiver module, and a power module. The power module detects the earphone box input After the excitation voltage of the sound module, the preset audio signal is generated by the sound module; the target audio signal is obtained through audio collection by the sound module; wherein, the target audio signal is used to determine the situation where the sound module obtains the preset audio signal; according to the target The audio signal determines the switch detection result; the switch detection result is used to determine the switch state of the earphone box. It can be seen that, in the embodiment of the present application, after receiving the excitation voltage of the earphone box, the wireless earphone can send out a preset audio signal through the sound module, and obtain the target audio signal through the sound module, and finally can directly Determine the switch detection result of the earphone box according to the target audio signal. Since the sound module and the sound module can share the speakers and microphones of the headset itself to save hardware costs, it is not easy to fail under high temperature or long-term use, so that the shape and structure of the wireless headset can be guaranteed without affecting the shape and structure of the wireless headset. The accuracy of switch detection of wireless earphones effectively improves the reliability of wireless earphones.

Claims (20)

  1. 一种开关检测方法,所述开关检测方法应用于无线耳机,所述无线耳机包括发声模块,收声模块,电源模块,所述方法包括:A switch detection method, the switch detection method is applied to a wireless earphone, the wireless earphone includes a sound emitting module, a sound receiving module, and a power supply module. The method includes:
    在所述电源模块检测到耳机盒输入的激励电压之后,通过所述发声模块生成预设音频信号;After the power supply module detects the excitation voltage input by the earphone box, generating a preset audio signal through the sounding module;
    通过所述收声模块进行音频采集,获得目标音频信号;其中,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定;Performing audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal;
    根据所述目标音频信号确定开关检测结果;其中,所述开关检测结果用于确定所述耳机盒的开关状态。The switch detection result is determined according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
  2. 根据权利要求1所述的方法,其中,根据所述目标音频信号确定开关检测结果,包括:The method according to claim 1, wherein determining a switch detection result according to the target audio signal comprises:
    若所述目标音频信号包括所述预设音频信号,则确定所述开关检测结果为开启;或者,If the target audio signal includes the preset audio signal, it is determined that the switch detection result is on; or,
    若所述目标音频信号不包括所述预设音频信号,则确定所述开关检测结果为关闭。If the target audio signal does not include the preset audio signal, it is determined that the switch detection result is closed.
  3. 根据权利要求1所述的方法,其中,根据所述目标音频信号确定开关检测结果,包括:The method according to claim 1, wherein determining a switch detection result according to the target audio signal comprises:
    若所述目标音频信号中包括的所述预设音频信号大于预设阈值,则确定所述开关检测结果为开启;或者,If the preset audio signal included in the target audio signal is greater than a preset threshold, it is determined that the switch detection result is on; or,
    若所述目标音频信号中包括的所述预设音频信号小于或者等于所述预设阈值,则确定所述开关检测结果为关闭。If the preset audio signal included in the target audio signal is less than or equal to the preset threshold, it is determined that the switch detection result is closed.
  4. 根据权利要求1所述的方法,其中,所述根据所述目标音频信号确定开关检测结果,包括:The method according to claim 1, wherein the determining a switch detection result according to the target audio signal comprises:
    若所述目标音频信号中第一时间段获得的音频信号识别到所述预设音频信号,且第二时间段获得的音频信号未识别到所述预设音频信号,则确定所述开关检测结果为关闭;其中,所述第一时间段早于所述第二时间段。If the audio signal obtained in the first time period in the target audio signal recognizes the preset audio signal, and the audio signal obtained in the second time period does not recognize the preset audio signal, determine the switch detection result Is closed; wherein, the first time period is earlier than the second time period.
  5. 根据权利要求1所述的方法,其中,所述根据所述目标音频信号确定开关检测结果,包括:The method according to claim 1, wherein the determining a switch detection result according to the target audio signal comprises:
    通过所述目标音频信号确定所述收声模块获取所述预设音频信号的次数,若连续第一预设次数获取到所述预设音频信号,则确定所述开关检测结果为开启;或者,若连续第二预设次数未获取到所述预设音频信号,则确定所述开关检测结果为关闭。Determine the number of times that the sound receiving module obtains the preset audio signal according to the target audio signal, and if the preset audio signal is obtained continuously for the first preset number of times, it is determined that the switch detection result is on; or, If the preset audio signal is not acquired for the second preset number of consecutive times, it is determined that the switch detection result is closed.
  6. 根据权利要求1所述的方法,其中,通过所述发声模块生成预设音频信号,包括:The method according to claim 1, wherein generating a preset audio signal through the sound generating module comprises:
    所述发声模块按照预设时间阈值发出所述预设音频信号。The sound generating module emits the preset audio signal according to a preset time threshold.
  7. 根据权利要求6所述的方法,其中,通过所述收声模块进行音频采集,获得目标音频信号,包括:The method according to claim 6, wherein performing audio collection through the sound receiving module to obtain a target audio signal comprises:
    所述收声模块按照所述预设时间阈值进行音频采集,获得所述目标音频信号。The sound receiving module performs audio collection according to the preset time threshold to obtain the target audio signal.
  8. 根据权利要求1所述的方法,其中,所述预设音频信号包括脉冲声波信号或编码后的声音信号。The method according to claim 1, wherein the preset audio signal comprises a pulsed sound wave signal or an encoded sound signal.
  9. 根据权利要求8所述的方法,其中,当所述预设音频信号包括脉冲声波信号时,所述根据所述目标音频信号确定开关检测结果,包括:The method according to claim 8, wherein, when the preset audio signal includes a pulsed sound wave signal, the determining a switch detection result according to the target audio signal comprises:
    确定所述目标音频信号对应的脉冲参数;Determining the pulse parameter corresponding to the target audio signal;
    若所述脉冲参数大于或者等于预设脉冲阈值,则确定所述开关检测结果为开启。If the pulse parameter is greater than or equal to the preset pulse threshold, it is determined that the switch detection result is on.
  10. 根据权利要求1所述的方法,其中,所述根据所述目标音频信号确定开关检测结果之后,所述方法还包括:The method according to claim 1, wherein after the switch detection result is determined according to the target audio signal, the method further comprises:
    根据所述开关检测结果控制与终端的连接状态。The connection state with the terminal is controlled according to the detection result of the switch.
  11. 根据权利要求10所述的方法,其中,所述根据所述开关检测结果控制与终端的连接状态之前,所述方法还包括:The method according to claim 10, wherein, before said controlling the connection state with the terminal according to the switch detection result, the method further comprises:
    确定实时连接状态。Determine the real-time connection status.
  12. 根据权利要求11所述的方法,其中,所述根据所述开关检测结果控制与终端的连接状态,包括:The method according to claim 11, wherein the controlling the connection state with the terminal according to the switch detection result comprises:
    若所述开关检测结果为开启,且所述实时连接状态为未连接,则通过开启蓝牙建立与所述终端的连接;或,If the switch detection result is turned on, and the real-time connection status is not connected, establish a connection with the terminal by turning on Bluetooth; or,
    若所述开关检测结果为开启,且所述实时连接状态为已连接,则保持与所述终端的连接;或,If the switch detection result is turned on and the real-time connection status is connected, the connection with the terminal is maintained; or,
    若所述开关检测结果为关闭,且所述实时连接状态为已连接,则通过关闭蓝牙断开与所述终端的连接;或,If the switch detection result is closed, and the real-time connection status is connected, the connection with the terminal is disconnected by turning off Bluetooth; or,
    若所述开关检测结果为关闭,且所述实时连接状态为未连接,则保持断开与所述终端的连接。If the switch detection result is closed, and the real-time connection status is not connected, keep disconnecting from the terminal.
  13. 根据权利要求1所述的方法,其中,所述激励电压包括:The method of claim 1, wherein the excitation voltage comprises:
    所述无线耳机接收所述耳机盒传输的充电电压;或者,The wireless earphone receives the charging voltage transmitted by the earphone box; or,
    所述耳机盒处于休眠状态下,所述耳机盒向所述无线耳机传输的第一预设电压;或者,The first preset voltage transmitted by the earphone box to the wireless earphone when the earphone box is in the dormant state; or,
    所述耳机盒检测到开盖或关盖时,所述耳机盒向所述无线耳机传输的第二预设电压。When the earphone box detects that the cover is opened or closed, the earphone box transmits a second preset voltage to the wireless earphone.
  14. 一种开关检测方法,所述开关检测方法应用于耳机盒,所述耳机盒包括供电模块,所述方法包括:A switch detection method, the switch detection method is applied to an earphone box, the earphone box includes a power supply module, and the method includes:
    所述供电模块向与所述耳机盒连接的无线耳机传输激励电压,使得所述无线耳机的发声模块生成预设音频信号,且所述无线耳机的收声模块采集音频信号,以获得目标音频信号,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定,以使得所述无线耳机获知所述耳机盒的开关盖状态。The power supply module transmits the excitation voltage to the wireless earphone connected to the earphone box, so that the sound generating module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone collects the audio signal to obtain the target audio signal The target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone learns the state of the open/close cover of the earphone box.
  15. 根据权利要求14所述的开关检测方法,其中,所述激励电压包括:The switch detection method according to claim 14, wherein the excitation voltage comprises:
    所述耳机盒处于供电状态下,输出的充电电压;或者,The charging voltage output by the earphone box in the power supply state; or,
    所述耳机盒处于休眠状态下,输出的第一预设电压;或者,The first preset voltage output when the earphone box is in a sleep state; or,
    所述耳机盒在检测到开盖或关盖后,输出的第二预设电压。The earphone box outputs a second preset voltage after detecting that the cover is opened or closed.
  16. 一种无线耳机,所述无线耳机设置有发声模块,收声模块,电源模块,所述无线耳机包括:生成部分,获取部分,确定部分,A wireless earphone, the wireless earphone is provided with a sound generating module, a sound receiving module, and a power supply module. The wireless earphone includes: a generating part, an acquiring part, and a determining part,
    所述生成部分,配置为在所述电源模块检测到耳机盒输入的激励电压之后,通过所述发声模块生成预设音频信号;The generating part is configured to generate a preset audio signal through the sounding module after the power supply module detects the excitation voltage input by the earphone box;
    所述获取部分,配置为通过所述收声模块进行音频采集,获得目标音频信号;其中,所述目标音频信号用于对所述收声模块获取预设音频信号的情况进行确定;The acquiring part is configured to perform audio collection through the sound receiving module to obtain a target audio signal; wherein the target audio signal is used to determine a situation in which the sound receiving module acquires a preset audio signal;
    所述确定部分,配置为根据所述目标音频信号确定开关检测结果;其中,所述开关检测结果用于确定所述耳机盒的开关状态。The determining part is configured to determine a switch detection result according to the target audio signal; wherein the switch detection result is used to determine the switch state of the earphone box.
  17. 一种耳机盒,所述耳机盒设置有供电模块,所述耳机盒包括:供电部分,An earphone box, the earphone box is provided with a power supply module, the earphone box includes: a power supply part,
    所述供电部分,配置为通过所述供电模块向与所述耳机盒连接的无线耳机传输激励电压,使得所述无线耳机的发声模块生成预设音频信号,且所述无线耳机的收声模块采集音频信号,以获得目标音频信号,所述目标音频信号用于对所述收声模块获取所述预设音频信号的情况进行确定,以使得所述无线耳机获知所述耳机盒的开关盖状态。The power supply part is configured to transmit an excitation voltage to the wireless earphone connected to the earphone box through the power supply module, so that the sound module of the wireless earphone generates a preset audio signal, and the sound receiving module of the wireless earphone collects The audio signal is used to obtain a target audio signal, and the target audio signal is used to determine a situation in which the sound receiving module obtains the preset audio signal, so that the wireless earphone learns the open/closed state of the earphone box.
  18. 根据权利要求17所述的耳机盒,其中,所述激励电压包括:The earphone box of claim 17, wherein the excitation voltage comprises:
    所述耳机盒处于供电状态下,输出的充电电压;或者,The charging voltage output by the earphone box in the power supply state; or,
    所述耳机盒处于休眠状态下,输出的第一预设电压;或者,The first preset voltage output when the earphone box is in a sleep state; or,
    所述耳机盒在检测到开盖或关盖后,输出的第二预设电压。The earphone box outputs a second preset voltage after detecting that the cover is opened or closed.
  19. 一种无线耳机,所述无线耳机包括:处理器、存储有所述处理器可执行指令的存储器,发声模块,收声模块,电源模块,当所述指令被所述处理器执行时,实现如权利要求1-13任一项所述的方法。A wireless headset, the wireless headset includes: a processor, a memory storing executable instructions of the processor, a sounding module, a sound receiving module, and a power supply module. When the instructions are executed by the processor, the implementation is as follows: The method of any one of claims 1-13.
  20. 一种计算机可读存储介质,其上存储有程序,应用于无线耳机和耳机盒中,所述程序被处理器执行时,实现如权利要求1-13或14-16任一项所述的方法。A computer-readable storage medium with a program stored thereon and applied to wireless earphones and earphone boxes. When the program is executed by a processor, the method according to any one of claims 1-13 or 14-16 is realized .
PCT/CN2020/137792 2019-12-19 2020-12-18 Open-closed detection method, wireless earphone, earphone box and storage medium WO2021121411A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911315110.6A CN113015049B (en) 2019-12-19 2019-12-19 Switch detection method, wireless earphone, earphone box and storage medium
CN201911315110.6 2019-12-19

Publications (1)

Publication Number Publication Date
WO2021121411A1 true WO2021121411A1 (en) 2021-06-24

Family

ID=76381047

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137792 WO2021121411A1 (en) 2019-12-19 2020-12-18 Open-closed detection method, wireless earphone, earphone box and storage medium

Country Status (2)

Country Link
CN (1) CN113015049B (en)
WO (1) WO2021121411A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691904A (en) * 2021-08-04 2021-11-23 维沃移动通信有限公司 Earphone box and earphone assembly
WO2024105207A1 (en) * 2022-11-18 2024-05-23 Nomono As Casing arrangement, electronic device and method for operating an electronic device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472379B (en) * 2021-06-23 2023-03-14 芯海科技(深圳)股份有限公司 Intercommunication method, earphone box, earphone and storage medium
CN116133165A (en) * 2022-08-23 2023-05-16 荣耀终端有限公司 Headset connection system, method, headset, electronic device, and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090167545A1 (en) * 2007-12-27 2009-07-02 Kyocera Corporation Portable Electronic Device
US20130105342A1 (en) * 2011-10-26 2013-05-02 Ever Win International Corporation Earphone Case
CN107809696A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to establish the wireless headset interacted with Earphone box
CN108900945A (en) * 2018-09-29 2018-11-27 上海与德科技有限公司 Bluetooth headset box and audio recognition method, server and storage medium
CN109068206A (en) * 2018-07-02 2018-12-21 Oppo广东移动通信有限公司 Principal and subordinate's earphone method for handover control and Related product
CN109922395A (en) * 2019-03-08 2019-06-21 歌尔科技有限公司 A kind of earphone charging box
CN209375876U (en) * 2019-01-25 2019-09-10 深圳市蓝禾技术有限公司 Earphone box and audio devices

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102813519B (en) * 2011-06-10 2015-08-12 陈亮 A kind of hearing test system, control device and control method
US9621974B2 (en) * 2013-05-20 2017-04-11 Rajkumari Mohindra Dual purpose pill reminder and tamper detector
EP3151582B1 (en) * 2015-09-30 2020-08-12 Apple Inc. Earbud case with charging system
CN107920298B (en) * 2018-01-03 2019-07-05 京东方科技集团股份有限公司 A kind of earphone, headset control method and device
CN108901006B (en) * 2018-06-15 2021-06-08 Oppo广东移动通信有限公司 Wireless earphone pairing method and electronic equipment
CN109121059A (en) * 2018-07-26 2019-01-01 Oppo广东移动通信有限公司 Loudspeaker plug-hole detection method and Related product

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090167545A1 (en) * 2007-12-27 2009-07-02 Kyocera Corporation Portable Electronic Device
US20130105342A1 (en) * 2011-10-26 2013-05-02 Ever Win International Corporation Earphone Case
CN107809696A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to establish the wireless headset interacted with Earphone box
CN109068206A (en) * 2018-07-02 2018-12-21 Oppo广东移动通信有限公司 Principal and subordinate's earphone method for handover control and Related product
CN108900945A (en) * 2018-09-29 2018-11-27 上海与德科技有限公司 Bluetooth headset box and audio recognition method, server and storage medium
CN209375876U (en) * 2019-01-25 2019-09-10 深圳市蓝禾技术有限公司 Earphone box and audio devices
CN109922395A (en) * 2019-03-08 2019-06-21 歌尔科技有限公司 A kind of earphone charging box

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691904A (en) * 2021-08-04 2021-11-23 维沃移动通信有限公司 Earphone box and earphone assembly
CN113691904B (en) * 2021-08-04 2024-03-22 维沃移动通信有限公司 Earphone box and earphone assembly
WO2024105207A1 (en) * 2022-11-18 2024-05-23 Nomono As Casing arrangement, electronic device and method for operating an electronic device

Also Published As

Publication number Publication date
CN113015049B (en) 2022-06-14
CN113015049A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
WO2021121411A1 (en) Open-closed detection method, wireless earphone, earphone box and storage medium
US9891719B2 (en) Impact and contactless gesture inputs for electronic devices
KR101227678B1 (en) System and method for human body communication
US20180124495A1 (en) Wireless Earpiece with force feedback
US11076226B2 (en) Smart sensor for always-on operation
CN107094201B (en) Information processing apparatus
US20150036859A1 (en) Expandable electronic device and transmission system thereof
EP2945398B1 (en) Motion sensor
US9459710B1 (en) Method and device for charging stylus
WO2021232767A1 (en) Signal processing method and device for mems microphone, and mems microphone
CN114222928A (en) Proximity detection
CN104880968B (en) The control method and equipment of a kind of alarm clock
WO2015165176A1 (en) Terminal and ranging method therefor
US20240152313A1 (en) Wearing detection method, wearable device, and storage medium
CN204669605U (en) Acoustic equipment
JP3195320U (en) Earphone type ear canal sensor and chewing detection device
US9924268B1 (en) Signal processing system and a method
US11525703B2 (en) Integrated capacitor and antenna
US9743171B1 (en) Method and apparatus for delivering audio content to a user
WO2023020322A1 (en) Wireless earphone, earphone case and wireless earphone system
CN108668204B (en) Multiplexing circuit, wearable device and method for switching working modes of wearable device
CN111327994A (en) Low-power-consumption microphone, voice control device and voice control method
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN106843469B (en) Method for controlling wearable device to give time and wearable device
JP2016077690A (en) Chewing detection device

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: 20902861

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20902861

Country of ref document: EP

Kind code of ref document: A1