CN113271530A - Plug-pull detection method and device of earphone equipment - Google Patents

Plug-pull detection method and device of earphone equipment Download PDF

Info

Publication number
CN113271530A
CN113271530A CN202110549438.5A CN202110549438A CN113271530A CN 113271530 A CN113271530 A CN 113271530A CN 202110549438 A CN202110549438 A CN 202110549438A CN 113271530 A CN113271530 A CN 113271530A
Authority
CN
China
Prior art keywords
earphone
feedback signal
determining
equipment
seat
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110549438.5A
Other languages
Chinese (zh)
Other versions
CN113271530B (en
Inventor
张文志
赖春霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongruitengbiao Shenzhen Testing Co ltd
Original Assignee
Shenzhen Tongbiao Technology Co ltd
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 Shenzhen Tongbiao Technology Co ltd filed Critical Shenzhen Tongbiao Technology Co ltd
Priority to CN202110549438.5A priority Critical patent/CN113271530B/en
Publication of CN113271530A publication Critical patent/CN113271530A/en
Application granted granted Critical
Publication of CN113271530B publication Critical patent/CN113271530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Headphones And Earphones (AREA)

Abstract

The application relates to a plug detection method of earphone equipment, which relates to the field of earphone equipment and comprises the following steps: when the earphone device is detected to be inserted into the earphone seat of the electronic device, a first detection signal is sent to the earphone device, and if a feedback signal sent by the earphone device is received, the earphone device is determined to be inserted into the earphone seat. This application has the more accurate effect of inserting of messenger's earphone equipment and detects.

Description

Plug-pull detection method and device of earphone equipment
Technical Field
The present disclosure relates to the field of earphone devices, and in particular, to a plug detection method and device for an earphone device.
Background
The earphone is a pair of conversion units which receive the electric signals sent by the electronic equipment and convert the electric signals into audible sound waves by using a loudspeaker close to the ear. The earphone can be separated from the electronic equipment, can be connected by only using one plug, and can listen to the sound independently without influencing other people; can also isolate the sound of the surrounding environment, and is very helpful for people who use in a noisy environment such as a recording studio, a bar, a trip, sports, and the like.
When earphone equipment is connected with electronic equipment, electronic equipment usually need to detect inserting and extracting of earphone equipment, can change the signal level in the electronic equipment usually when earphone equipment inserts or extracts electronic equipment at present to this reaches the detection plug purpose, but probably also can change the signal level when the foreign matter gets into in the earphone seat, thereby makes the detection earphone equipment male degree of accuracy lower, and then leads to user experience relatively poor.
Disclosure of Invention
In order to enable the insertion detection of the earphone equipment to be more accurate, the application provides a plugging and unplugging detection method and device of the earphone equipment.
In a first aspect, the present application provides a method for detecting plugging/unplugging of an earphone device, which adopts the following technical scheme:
a plug-in detection method of earphone equipment comprises the steps that when the earphone equipment is detected to be plugged into an earphone seat of electronic equipment, a first detection signal is sent to the earphone equipment;
and if receiving a feedback signal sent by the earphone equipment, determining that the earphone equipment is inserted into the earphone seat.
Through adopting above-mentioned technical scheme, if it inserts electronic equipment's earphone seat to detect there is the object, then electronic equipment sends first detected signal, if the object that inserts the earphone seat is earphone equipment, then earphone equipment can send the repayment signal to first detected signal after receiving first detected signal, consequently electronic equipment can confirm the object that inserts the earphone seat after receiving the repayment signal and be earphone equipment to can improve the degree of accuracy that detects earphone equipment and insert the earphone seat, and then can promote user experience.
In one possible implementation manner, the method further includes:
if the feedback signal is received, outputting a first prompt message;
converting an output channel of the audio signal, and outputting corresponding audio information through the converted channel;
the first prompt message is used for prompting a user that the earphone device is inserted into the earphone seat.
By adopting the technical scheme, the electronic equipment receives the feedback signal and then indicates that the earphone equipment is inserted into the earphone seat, and the electronic equipment outputs the first prompt information to prompt the user that the earphone equipment is inserted into the earphone seat, so that the user experience is improved. The electronic equipment converts the output channel of the audio signal, so that the electronic equipment can output the audio information to be output through the earphone equipment, automatic switching of the audio output channel after the earphone equipment is inserted can be realized, and user experience is further improved.
In one possible implementation, the feedback signal includes at least one of a first feedback signal and a second feedback signal,
if receiving a feedback signal sent by the earphone device, determining that the earphone device is inserted into the earphone seat, including:
if at least one of a first feedback signal and a second feedback signal sent by the earphone equipment is received, determining that the earphone equipment is inserted into the earphone seat;
by adopting the technical scheme, the two sound channels of the earphone device respectively send the first feedback signal and the second feedback signal, and when the electronic device detects at least one of the first feedback signal and the second feedback signal, the earphone device is inserted into the earphone seat, so that when a certain sound channel of the earphone device is damaged, the electronic device can still detect that the earphone device is inserted into the earphone seat, the detection accuracy can be improved, and a user can timely know whether the earphone device is in fault or not.
In a possible implementation manner, determining that the earphone device is inserted into the earphone seat further includes at least one of the following:
acquiring relevant information of the earphone equipment, generating at least two adaptation sound effects supported by the earphone equipment based on the relevant information, determining a target adaptation sound effect from the at least two adaptation sound effects in a preset mode, and outputting corresponding audio information through the target adaptation sound effect;
acquiring related information of the earphone equipment, generating an adaptive sound effect based on the related information, and outputting audio information through the generated adaptive sound effect;
wherein, determining the target adapted sound effect from the at least two adapted sound effects in a preset manner comprises at least one of the following:
determining a target adapted sound effect from the at least two adapted sound effects based on a user selection operation;
and determining a target adaptive sound effect from the at least two adaptive sound effects based on the historical habit information of the user, wherein the historical habit information is used for representing the adaptive sound effect selected by the user in history.
Through adopting above-mentioned technical scheme, electronic equipment generates the adaptation audio that is applicable to earphone equipment according to information such as the model of earphone equipment, number information and parameter, then confirms target adaptation audio based on user selection or user historical habit information to carry out audio output, thereby can make and play the audio more humanized through earphone equipment, accord with user's demand more.
In one possible implementation manner, the determining a manner of receiving the feedback signal sent by the earphone device includes:
and when receiving the audio signal collected by the earphone equipment, determining to receive a feedback signal sent by the earphone equipment.
By adopting the technical scheme, after the earphone device is inserted into the earphone seat, the microphone device on the earphone device collects the audio information in the surrounding environment, and the electronic device determines that the earphone device is inserted into the earphone seat after receiving the audio information, so that the detection is further more accurate.
In one possible implementation, the method further includes:
if the first feedback signal is received and the second feedback signal is not received within a first preset time, determining that a sound channel corresponding to the second feedback signal is in fault;
and outputting second prompt information, wherein the second prompt information is used for prompting a user that the sound channel corresponding to the second feedback signal is in failure.
By adopting the technical scheme, if the electronic equipment does not receive the second feedback signal within the first preset time after receiving the first feedback signal, the sound channel corresponding to the second feedback signal is in fault. The electronic equipment outputs the second prompt message to inform the user that the sound channel corresponding to the second feedback signal is in fault.
In one possible implementation, the feedback signal includes: a first feedback signal corresponding to any one of the two sound channels of the headphone device and a second feedback signal corresponding to the other sound channel of the headphone device;
wherein the determining that the earphone device is inserted into the earphone seat further comprises at least one of the following steps:
sending a second detection signal every second preset time and/or in real time, and if a feedback signal aiming at the second detection signal sent by the earphone equipment is not received within a third preset time, determining that the earphone equipment is pulled out of the earphone seat, wherein the second detection signal is used for detecting whether the earphone equipment is pulled out of the earphone seat;
and sending the first detection signal every second preset time and/or in real time, and if the first feedback signal is not received and the second feedback signal is not received after a third preset time threshold value is reached, determining that the earphone device is pulled out of the earphone seat.
By adopting the technical scheme, the second detection signal is sent every second preset time to reduce the electric quantity loss, the feedback signal aiming at the second detection signal sent by the earphone equipment is not received in the third preset time, and the prompt information is output to prompt the user that the earphone equipment is pulled out of the earphone seat, so that the user can know that the earphone equipment is pulled out of the earphone seat conveniently.
In a second aspect, the present application provides a plug detection device for an earphone device, which adopts the following technical scheme:
a plug detection device of an earphone device, comprising:
the first signal sending module is used for sending a first detection signal to the earphone device when the earphone device is detected to be inserted into an earphone seat of the electronic device;
the first determining module is used for determining that the earphone device is inserted into the earphone seat.
Through adopting above-mentioned technical scheme, if it inserts the earphone seat of electronic equipment to detect there is the object, then electronic equipment sends first detected signal through first signal transmission module, if the object that inserts the earphone seat is earphone equipment, then earphone equipment can send the repayment signal to first detected signal after receiving first detected signal, consequently electronic equipment can make the object that first definite module confirmed to insert the earphone seat be earphone equipment after receiving the repayment signal, thereby can detect the degree of accuracy that earphone equipment inserted the earphone seat, and then can promote user experience.
In one possible implementation, the apparatus further includes: a first information output module, a channel conversion module and a second information output module, wherein,
the first information output module is used for outputting first prompt information when receiving the feedback signal;
the channel conversion module is used for converting an output channel of the audio signal;
the second information output module is used for outputting corresponding audio information through the converted channel;
the first prompt message is used for prompting a user that the earphone device is inserted into the earphone seat.
In one possible implementation, the feedback signal includes at least one of a first feedback signal and a second feedback signal,
when receiving the feedback signal sent by the earphone device, the first determining module is specifically configured to:
when at least one of a first feedback signal and a second feedback signal sent by the earphone device is received, determining that the earphone device is inserted into the earphone seat;
the first feedback signal corresponds to any one of the two sound channels of the earphone device, and the second feedback signal corresponds to the other sound channel of the earphone device.
In one possible implementation, the apparatus further includes: a first information acquisition module, a first sound effect generation module, a sound effect determination module and a third information output module, wherein,
the first information acquisition module is used for acquiring related information of the earphone equipment;
the first sound effect generation module is used for generating at least two adaptive sound effects supported by the earphone equipment based on the related information;
the sound effect determining module is used for determining a target adaptive sound effect from the at least two adaptive sound effects in a preset mode;
the third information output module is used for outputting corresponding audio information through the target adaptive sound effect;
the sound effect determining module is specifically used for at least one of the following when determining a target adapted sound effect from the at least two adapted sound effects in a preset mode:
determining a target adapted sound effect from the at least two adapted sound effects based on a user selection operation;
and determining a target adaptive sound effect from the at least two adaptive sound effects based on the historical habit information of the user, wherein the historical habit information is used for representing the adaptive sound effect selected by the user in history.
In another possible implementation manner, the apparatus further includes: a second information acquisition module, a second sound effect generation module and a fourth information output module, wherein,
the second information acquisition module is used for acquiring related information of the earphone equipment;
the second sound effect generation module is used for generating an adaptive sound effect based on the related information;
the fourth information output module is used for outputting audio information through the generated adaptive sound effect;
in one possible implementation, the apparatus further includes: a second determination module, wherein,
the second determining module is specifically configured to determine that the feedback signal sent by the earphone is received when the feedback signal sent by the earphone is determined to be received and when the audio signal collected by the earphone is received.
In one possible implementation, the apparatus further includes a fault determination module and a fifth information output module, wherein,
the fault determining module is configured to determine that a sound channel corresponding to the second feedback signal is faulty when the first feedback signal is received and the second feedback signal is not received within a first preset time;
and the fifth information output module is used for outputting second prompt information, and the second prompt information is used for prompting a user that a sound channel corresponding to the second feedback signal fails.
In one possible implementation, the apparatus further includes: a second signal transmission module and a third determination module, wherein,
the second signal sending module is used for sending a second detection signal every second preset time and/or in real time, and the second detection signal is used for detecting whether the earphone device is pulled out of the earphone seat;
the third determining module is configured to determine that the earphone device has been pulled out of the earphone seat when a feedback signal, which is sent by the earphone device and is directed to the second detection signal, is not received within a third preset time;
in another possible implementation manner, the apparatus further includes: a third signal transmission module and a fourth determination module, wherein,
the third signal sending module is used for sending the first detection signal every second preset time and/or in real time;
the fourth determining module is configured to determine that the earphone device has been pulled out of the earphone seat when the first feedback signal is not received and the second feedback signal is not received after a third preset time threshold is reached.
In a third aspect, the present application provides an electronic device, which adopts the following technical solutions:
an electronic device, comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the method for detecting the plugging and unplugging of the earphone device is executed.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, comprising: a computer program is stored which can be loaded by a processor and which performs the above-described method of detecting the plugging of a headphone apparatus.
In summary, the present application includes at least one of the following beneficial technical effects:
1. if the object inserted into the earphone seat of the electronic equipment is detected, the electronic equipment sends a first detection signal, and if the object inserted into the earphone seat is the earphone equipment, a feedback signal aiming at the first detection signal sent by the earphone equipment can be received to determine that the object inserted into the earphone seat is the earphone equipment, so that the accuracy of inserting the earphone equipment into the earphone seat can be detected, and the user experience can be improved;
2. and sending a second detection signal every second preset time to reduce the electric quantity loss, and not receiving a feedback signal aiming at the second detection signal sent by the earphone equipment in a third preset time to determine that the earphone seat of the user is pulled out by the earphone equipment, so that whether the earphone equipment is pulled out of the earphone seat can be accurately determined.
Drawings
Fig. 1 is a schematic flow chart of a plugging and unplugging detection method for an earphone device according to an embodiment of the present application.
Fig. 2 is a schematic device structure diagram of a plug detection device of an earphone device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
A person skilled in the art, after reading the present description, may make modifications to the embodiments as required, without any inventive contribution thereto, but shall be protected by the patent laws within the scope of the claims of the present application.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
An embodiment of the present application provides a plug detection method for an earphone device, where the plug detection method for the earphone device provided in the embodiment of the present application may be executed by an electronic device, and the electronic device may be a terminal device, where the terminal device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like, but is not limited thereto, and the embodiment of the present application is not limited thereto, and as shown in fig. 1, the method includes:
s101, when the earphone device is inserted into an earphone seat of the electronic device, a first detection signal is sent to the earphone device.
For the embodiment of the application, when a user needs to use the earphone device to receive audio information, the user inserts the plug of the earphone device into the earphone seat of the electronic device, and when the electronic device detects that the level for detecting the plugging and unplugging of the earphone device changes, a situation that the earphone device is inserted into the earphone seat of the electronic device may exist, and at this time, a first detection signal may be sent to the earphone device to detect whether the earphone device is actually inserted into the earphone seat.
For the embodiment of the present application, a manner for the electronic device to send the first detection signal to the earphone device may include: the electronic device sends the first detection signal through a wire between the earphone device and the electronic device, and/or the electronic device sends the first detection signal through a preset channel, in this embodiment of the present application, the preset channel may include: bluetooth channel, Ultra Wide Band (UWB) channel, etc.
And S102, if the feedback signal sent by the earphone equipment is received, determining that the earphone equipment is inserted into the earphone seat.
For the embodiment of the present application, after the earphone device receives the first detection signal through the chip or the processor, if it is determined that the earphone seat of the first detection signal transmitting device is inserted, the feedback signal is transmitted. Specifically, the feedback signal is transmitted to the electronic device through the connection channel. In this embodiment of the present application, the connection channel for receiving the feedback signal and the channel for sending the first detection signal may be the same channel or different channels, and are not limited in this embodiment of the present application.
For the embodiment of the application, if the electronic device receives the feedback signal, it is determined that the earphone device is inserted into the earphone seat and enters the working state, and the electronic device may transmit the audio information to the earphone device so that the earphone device outputs the audio information.
Further, if the electronic device does not receive the feedback signal, it is determined that the object inserted into the earphone seat is not the earphone device or the reason for the level change of the electronic device is not the insertion of the earphone device, so that the detection of the earphone device inserted into the earphone seat is more accurate, and the user experience is further improved.
Specifically, the feedback signal may include at least one of a first feedback signal corresponding to one of the two channels of the headphone apparatus and a second feedback signal corresponding to the other channel of the headphone apparatus.
Specifically, in the embodiment of the present application, if the feedback signal sent by the earphone device is received, it is determined that the earphone device is inserted into the earphone seat (step S102), which may further include step S1021 (not shown), wherein,
s1021, if at least one of the first feedback signal and the second feedback signal sent by the earphone device is received, it is determined that the earphone device is inserted into the earphone seat.
For the embodiment of the application, the earphone device comprises a left sound channel and a right sound channel, the left sound channel and the right sound channel are both connected with the electronic device through a connecting channel, a first feedback signal corresponds to the left sound channel, a second feedback signal corresponds to the right sound channel, and the first feedback signal and the second feedback signal are respectively used for indicating whether the left sound channel and the right sound channel are connected to an output channel of an earphone audio signal.
For the embodiment of the application, when the earphone device receives the first detection signal through the connection channel corresponding to the left channel and receives the first detection signal through the connection channel corresponding to the right channel, it is determined that the earphone device has completed inserting into the earphone seat of the electronic device, and the electronic device determines that the earphone device has been inserted into the earphone seat after receiving the first feedback signal and the second feedback signal by sending the first feedback signal and the second feedback signal through the connection channels corresponding to the left channel and the right channel, respectively.
For the embodiment of the application, a chip or a processor in the earphone device respectively outputs a first feedback signal and a second feedback signal after responding to a first detection signal, when a left channel fails and a right channel is normal, the electronic device cannot receive the first feedback signal and can receive the second feedback signal, so that the earphone device can be determined to be inserted into an earphone seat, and the earphone device can output audio information to be played through the right channel; when the right channel is failed and the left channel is normal, the electronic device cannot receive the second feedback signal and can receive the first feedback signal, so that the earphone device can be determined to be inserted into the earphone seat, and the earphone device can output audio information to be played through the left channel.
Further, if the electronic device cannot receive the first feedback signal and the second feedback signal, it is characterized that both the left channel and the right channel of the headphone device are damaged, or that the headphone device is not inserted into a headphone base of the electronic device.
In a possible implementation manner of the embodiment of the present application, the method may further include a step S103 (not shown in the figure) and a step S104 (not shown in the figure), where the step S103 and the step S104 are executed after the electronic device receives the feedback signal, and may be executed after the step S102, or may be executed simultaneously with the step S102, which is not limited in the embodiment of the present application, and wherein,
s103, outputting a first prompt message if a feedback signal is received;
the first prompt message is used for prompting a user that the earphone device is inserted into the earphone seat.
For the embodiment of the application, the electronic device outputs the first prompt signal based on the feedback signal after receiving the feedback signal, so that a user can know that the earphone device is inserted into the earphone seat and can output audio information to be played through the earphone device.
Specifically, the first prompt message may be an audio prompt message output by the electronic device, for example, the first prompt message may be an audio message of "that the earphone is inserted" and is output by the earphone device through the connection channel, and the user hears the audio message of "that the earphone is inserted" after wearing the earphone, thereby prompting the user that the earphone device is inserted; the first prompt message may also be display information output by the electronic device, for example, the first prompt message may also be text display information of "the earphone is inserted", or may also be earphone icon information.
And S104, converting an output channel of the audio signal, and outputting corresponding audio information through the converted channel.
For the embodiment of the present application, the electronic device generally sets two output channels of the audio signal, and when the earphone device is not plugged in, the default audio output channel of the electronic device is the output channel where the speaker is located. When the earphone device is detected to be inserted into the earphone seat, the electronic device converts the output channel of the audio signal into the output channel of the earphone output audio signal.
Specifically, the determining the manner of receiving the feedback signal sent by the earphone device includes: and when receiving the audio signal collected by the earphone equipment, determining to receive a feedback signal sent by the earphone equipment.
For the embodiment of the application, the surrounding environment where the earphone device is located is not completely in a quiet state, after the earphone device is inserted into the earphone seat, the microphone device on the earphone device enters a working state and collects audio information of the surrounding environment, the audio information is transmitted to the electronic device through the connection channel, and if the electronic device receives the surrounding environment audio information collected by the microphone device, it is determined that a feedback signal sent by the earphone device is received, that is, it is determined that the earphone device is inserted into the earphone seat.
In a possible implementation manner of the embodiment of the present application, the method may further include a step S107 (not shown in the figure) and a step S108 (not shown in the figure), where the step S107 and the step S108 are executed after the electronic device receives the feedback signal, the step S107 and the step S108 may be executed at the same time in the step S102, or after the step S102, or before the step S102, and an execution sequence of the step S107 and the step S108 and the other steps is not limited in the embodiment of the present application, where,
s107, if the first feedback signal is received and the second feedback signal is not received within the first preset time, determining that the sound channel corresponding to the second feedback signal is in fault.
For the embodiment of the present application, it is assumed that the first feedback signal corresponds to the left channel and the second feedback signal corresponds to the right channel; assume that the first preset time is 1 s. If the electronic equipment receives the first feedback signal and does not receive the second feedback signal within 1s, the right channel is in fault.
S108, outputting second prompt information;
the second prompt message is used for prompting the user that the sound channel corresponding to the second feedback signal is in fault.
For the embodiment of the application, assuming that the right channel is in failure, the electronic device outputs second prompt information, where the second prompt information may be audio information that the right channel is in failure and is output through the earphone device, and the electronic device outputs the audio information that the right channel is in failure through the left channel, and enables a user to hear the audio information that the right channel is in failure; the second prompt message may also be display information output by the electronic device, for example, the second prompt message may also be text display information of "right channel is failed", and may also be image information for indicating that the right channel is failed; and displaying by the electronic device based on the second prompt message. Thereby achieving the effect of prompting the user that the right channel is in failure.
In another possible implementation manner of the embodiment of the present application, the feedback signal includes: the first feedback signal corresponds to any one of the two sound channels of the earphone device, and the second feedback signal corresponds to the other sound channel of the earphone device; wherein, it is determined that the earphone device is inserted into the earphone seat, and then at least one of step S1091 (not shown in the figure) and step S1092 (not shown in the figure) may be further included, wherein,
s1091, sending a second detection signal every second preset time and/or in real time; and if the feedback signal aiming at the second detection signal and sent by the earphone equipment is not received within the third preset time, determining that the earphone equipment is pulled out of the earphone seat.
The second detection signal is used for detecting whether the earphone device is pulled out of the earphone seat.
For the embodiment of the present application, it is assumed that the second preset time is 0.1s, and the third preset time is 1 s. The electronic equipment sends a second detection signal every 0.1s, the earphone equipment outputs a feedback signal aiming at the second detection signal after receiving the second detection signal, and the electronic equipment indicates that the earphone equipment is in an insertion state after receiving the feedback signal aiming at the second detection signal in 1 s; and if the electronic equipment does not receive the feedback signal sent by the earphone equipment aiming at the second detection signal within 1s, determining that the earphone equipment is pulled out of the earphone seat.
Step S1092, sending the first detection signal every second preset time and/or in real time, and determining that the earphone device has been pulled out of the earphone seat if the first feedback signal is not received and the second feedback signal is not received after the third preset time threshold is reached.
For the embodiment of the application, when it is detected that the earphone device is inserted into the earphone seat of the electronic device, the electronic device may start to send the first detection signal to the earphone device at intervals of the second preset time or in real time, when the feedback signal sent by the earphone device is received for the first time, it is determined that the earphone device is inserted into the earphone seat, but the first detection signal is still sent to the earphone device at intervals of the second preset time or in real time, and if the electronic device does not receive the first feedback signal and does not receive the second feedback signal after reaching the third preset time threshold, it is determined that the earphone device has been pulled out of the earphone seat.
Further, if the first feedback signal is not received and the second feedback signal is not received after the third preset time threshold is reached, outputting a prompt message for prompting the user that the earphone device is pulled out of the earphone seat.
For the embodiment of the application, when the plug of the earphone device is pulled out of the earphone seat, the innermost part of the plug located on the earphone seat is the sound channel where the second feedback signal is located, and the part close to the innermost part is the sound channel where the first feedback signal is located. When a user pulls out the earphone device, the connection channel of the sound channel where the first feedback signal is located is disconnected firstly, the connection channel of the sound channel where the second feedback signal is located is disconnected after the connection channel of the sound channel where the first feedback signal is located, and if the third preset time is 1s, if the electronic device does not receive the first feedback signal and does not receive the second feedback signal within 1s, it is determined that the earphone device has pulled out the earphone seat.
For the embodiment of the application, the electronic device outputs the prompt information for prompting that the earphone device of the user is pulled out of the earphone seat, the prompt information can be the character display information of the pulled-out earphone, the electronic device displays the character information of the pulled-out earphone, and the user can conveniently know that the earphone device is pulled out through the character display information of the pulled-out earphone.
Further, in this embodiment of the application, after step S102, the method may further include: step S1010 (not shown), in which,
s1010, when the earphone device pulling-out indication signal is detected, controlling the earphone device to pull out the earphone seat;
wherein the earphone device unplugging indication signal comprises at least one of:
a user pulls out an indication signal through earphone equipment triggered by the electronic equipment;
and the user pulls out the indication signal of the earphone device through the earphone device trigger.
For the embodiment of the application, a spring sheet for ejecting the earphone device or other driving mechanisms capable of ejecting the earphone device can be included in the electronic device. When a user needs to pull out the earphone device from the earphone seat, the user can control the earphone device to be pulled out from the earphone seat of the electronic device by triggering the virtual key used for representing the pulling-out of the earphone device on the electronic device. Specifically, after detecting an indication signal for pulling out the earphone device triggered by a user, the electronic device controls an elastic sheet or a driving mechanism to act after responding to the indication signal, so as to eject a plug of the earphone device; in the embodiment of the present application, the triggering of the virtual key of the electronic device by the user to trigger the earphone device unplugging indication signal is not limited, and the triggering of the entity key of the electronic device by the user to trigger the earphone device unplugging indication signal may also be included;
further, the earphone device pulling-out indication signal triggered by the user through the electronic device can also be triggered through voice. For example, a worker speaks a voice instruction of "pulling out an earphone", a microphone on the earphone device receives the voice instruction of "pulling out the earphone", and transmits the voice instruction of "pulling out the earphone" to the electronic device, and the electronic device controls the elastic piece or the driving mechanism to act after receiving the voice instruction of "pulling out the earphone", so that the plug of the earphone device is ejected.
Furthermore, the earphone device can further comprise a key for sending an instruction for popping up the earphone device, when a user needs to pull the earphone device out of the earphone seat, the user sends an earphone device pulling-out indicating signal by pressing the key on the earphone device, and after the electronic device receives the pulling-out indicating signal, the electronic device controls the elastic sheet or the driving mechanism to act, so that the earphone device is controlled to be pulled out of the earphone seat.
The above embodiments describe a method for detecting plugging and unplugging of an earphone device from the perspective of a method flow, and the following embodiments describe a device for detecting plugging and unplugging of an earphone device from the perspective of a virtual module or a virtual unit, which are described in detail in the following embodiments.
The embodiment of the present application provides a device for detecting plugging and unplugging of an earphone device, as shown in fig. 2, the device 20 for detecting plugging and unplugging of an earphone device may specifically include: a first signal sending module 201 and a first determining module 202, wherein,
the first signal sending module 201 is configured to send a first detection signal to the headset device when it is detected that the headset device is inserted into the headset base of the electronic device.
A first determining module 202, configured to determine that the earphone device is inserted into the earphone seat.
For the embodiment of the application, if it is detected that an object is inserted into the earphone seat of the electronic device, the electronic device sends a first detection signal through the first signal sending module 201, and if the object inserted into the earphone seat is an earphone device, a feedback signal for the first detection signal sent by the earphone device can be received, so that the first determining module 202 determines that the object inserted into the earphone seat is the earphone device, thereby detecting the accuracy of the earphone device inserted into the earphone seat, and further improving user experience.
In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: a first information output module, a channel conversion module and a second information output module, wherein,
the first information output module is used for outputting first prompt information when receiving the feedback signal;
the channel conversion module is used for converting an output channel of the audio signal;
the second information output module is used for outputting corresponding audio information through the converted channel;
the first prompt message is used for prompting a user that the earphone device is inserted into the earphone seat.
The feedback signal includes at least one of a first feedback signal and a second feedback signal,
when receiving the feedback signal sent by the headphone device, the first determining module 202 is specifically configured to:
when at least one of a first feedback signal and a second feedback signal sent by the earphone equipment is received, the earphone equipment is determined to be inserted into the earphone seat;
the first feedback signal corresponds to any one of the two sound channels of the earphone device, and the second feedback signal corresponds to the other sound channel of the earphone device.
In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: a first information acquisition module, a first sound effect generation module, a sound effect determination module and a third information output module, wherein,
the first information acquisition module is used for acquiring related information of the earphone equipment;
the first sound effect generation module is used for generating at least two adaptive sound effects supported by the earphone equipment based on the related information;
the sound effect determining module is used for determining a target adaptive sound effect from at least two adaptive sound effects in a preset mode;
the third information output module is used for outputting corresponding audio information through the target adaptive sound effect;
the sound effect determining module is specifically used for at least one of the following when determining a target adaptive sound effect from at least two adaptive sound effects in a preset mode:
determining a target adapted sound effect from at least two adapted sound effects based on a user selection operation;
and determining a target adaptive sound effect from the at least two adaptive sound effects based on the historical habit information of the user, wherein the historical habit information is used for representing the adaptive sound effect selected by the user in history.
In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: a second information acquisition module, a second sound effect generation module and a fourth information output module, wherein,
the second information acquisition module is used for acquiring related information of the earphone equipment;
the second sound effect generation module is used for generating an adaptive sound effect based on the related information;
and the fourth information output module is used for outputting the audio information through the generated adaptive sound effect. In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: a second determination module, wherein,
the second determining module is specifically configured to determine that the feedback signal sent by the earphone is received when the feedback signal sent by the earphone is determined to be received and the audio signal collected by the earphone is received.
In one possible implementation manner of the embodiment of the present application, the apparatus 20 further includes a fault determination module and a fifth information output module, wherein,
the fault determining module is used for determining that a sound channel corresponding to the second feedback signal has a fault when the first feedback signal is received and the second feedback signal is not received within a first preset time;
and the fifth information output module is used for outputting second prompt information, and the second prompt information is used for prompting the user that the sound channel corresponding to the second feedback signal fails.
In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: a second signal transmission module and a third determination module, wherein,
the second signal sending module is used for sending a second detection signal every second preset time and/or in real time, and the second detection signal is used for detecting whether the earphone device is pulled out of the earphone seat;
and the third determining module is used for determining that the earphone device is pulled out of the earphone seat when a feedback signal aiming at the second detection signal and sent by the earphone device is not received within a third preset time.
In another possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: a third signal transmission module and a fourth determination module, wherein,
the third signal sending module is used for sending the first detection signal every second preset time and/or in real time;
and the fourth determining module is used for determining that the earphone device is pulled out of the earphone seat when the first feedback signal is not received and the second feedback signal is not received after the third preset time threshold is reached.
For the embodiment of the present application, the first signal sending module 201, the second signal sending module, and the third signal sending module may all be the same sending module, or may all be different sending modules, or may be partially the same sending module; the first determining module 202, the second determining module, the third determining module and the fourth determining module may all be the same determining module, or may all be different determining modules, or may be partially the same determining module; the first information output module, the second information output module, the third information output module, the fourth information output module and the fifth information output module can be the same information output module, can be different information output modules, and can be partially the same information output module; the first sound effect generation module and the second sound effect generation module can be the same sound effect generation module or different sound effect generation modules; the first information acquisition module and the second information acquisition module can be the same information acquisition module or different information acquisition modules; the embodiments of the present application are not limited.
In an embodiment of the present application, an electronic device is provided, and as shown in fig. 3, an electronic device 30 shown in fig. 3 includes: a processor 301 and a memory 303. Wherein processor 301 is coupled to memory 303, such as via bus 302. Optionally, the electronic device 30 may also include a transceiver 304. It should be noted that the transceiver 304 is not limited to one in practical applications, and the structure of the electronic device 30 is not limited to the embodiment of the present application.
The Processor 301 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 301 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 302 may include a path that transfers information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 1002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The Memory 303 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 303 is used for storing application program codes for executing the scheme of the application, and the processor 301 controls the execution. The processor 301 is configured to execute application program code stored in the memory 303 to implement the aspects illustrated in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. But also a server, etc. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments. Compared with the prior art, if the earphone seat that has the object to insert electronic equipment is detected in this application embodiment, then electronic equipment sends first detected signal, if the object that inserts the earphone seat is earphone equipment, then can receive the repayment signal to first detected signal that earphone equipment sent to confirm that the object that inserts the earphone seat is earphone equipment, thereby can detect the degree of accuracy that earphone equipment inserted the earphone seat, and then can promote user experience.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (10)

1. A plug detection method of earphone equipment is characterized by comprising the following steps:
when detecting that the earphone device is inserted into an earphone seat of the electronic device, sending a first detection signal to the earphone device;
and if receiving a feedback signal sent by the earphone equipment, determining that the earphone equipment is inserted into the earphone seat.
2. The method according to claim 1, further comprising:
if the feedback signal is received, outputting a first prompt message;
converting an output channel of the audio signal, and outputting corresponding audio information through the converted channel;
the first prompt message is used for prompting a user that the earphone device is inserted into the earphone seat.
3. The method of claim 1, wherein the feedback signal comprises at least one of a first feedback signal and a second feedback signal,
if receiving a feedback signal sent by the earphone device, determining that the earphone device is inserted into the earphone seat, including:
if at least one of a first feedback signal and a second feedback signal sent by the earphone equipment is received, determining that the earphone equipment is inserted into the earphone seat;
the first feedback signal corresponds to any one of the two sound channels of the earphone device, and the second feedback signal corresponds to the other sound channel of the earphone device.
4. The method according to any of claims 1 to 3, wherein the determining that the earphone device is inserted into the earphone seat further comprises at least one of:
acquiring relevant information of the earphone equipment, generating at least two adaptation sound effects supported by the earphone equipment based on the relevant information, determining a target adaptation sound effect from the at least two adaptation sound effects in a preset mode, and outputting corresponding audio information through the target adaptation sound effect;
acquiring related information of the earphone equipment, generating an adaptive sound effect based on the related information, and outputting audio information through the generated adaptive sound effect;
wherein, determining the target adapted sound effect from the at least two adapted sound effects in a preset manner comprises at least one of the following:
determining a target adapted sound effect from the at least two adapted sound effects based on a user selection operation;
and determining a target adaptive sound effect from the at least two adaptive sound effects based on the historical habit information of the user, wherein the historical habit information is used for representing the adaptive sound effect selected by the user in history.
5. The method as claimed in claim 1, wherein determining the manner of receiving the feedback signal transmitted by the headset device comprises:
and when receiving the audio signal collected by the earphone equipment, determining to receive a feedback signal sent by the earphone equipment.
6. The method according to claim 3, further comprising:
if the first feedback signal is received and the second feedback signal is not received within a first preset time, determining that a sound channel corresponding to the second feedback signal is in fault;
and outputting second prompt information, wherein the second prompt information is used for prompting a user that the sound channel corresponding to the second feedback signal is in failure.
7. The method as claimed in claim 1, wherein the feedback signal comprises: a first feedback signal corresponding to any one of the two sound channels of the headphone device and a second feedback signal corresponding to the other sound channel of the headphone device;
wherein the determining that the earphone is inserted into the earphone seat further comprises at least one of the following steps:
sending a second detection signal every second preset time and/or in real time, and if a feedback signal aiming at the second detection signal sent by the earphone equipment is not received within a third preset time, determining that the earphone equipment is pulled out of the earphone seat, wherein the second detection signal is used for detecting whether the earphone equipment is pulled out of the earphone seat;
and sending the first detection signal every second preset time and/or in real time, and if the first feedback signal is not received and the second feedback signal is not received after a third preset time threshold value is reached, determining that the earphone device is pulled out of the earphone seat.
8. The utility model provides an earphone equipment plug detection device which characterized in that includes:
the first signal sending module is used for sending a first detection signal to the earphone device when the earphone device is detected to be inserted into an earphone seat of the electronic device;
the first determining module is used for determining that the earphone device is inserted into the earphone seat.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: method of performing a plugging detection of a headphone arrangement according to any of the claims 1-7.
10. A computer-readable storage medium, comprising: a computer program which can be loaded by a processor and which performs the method according to any of claims 1-7.
CN202110549438.5A 2021-05-20 2021-05-20 Plug-pull detection method and device of earphone equipment Active CN113271530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110549438.5A CN113271530B (en) 2021-05-20 2021-05-20 Plug-pull detection method and device of earphone equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110549438.5A CN113271530B (en) 2021-05-20 2021-05-20 Plug-pull detection method and device of earphone equipment

Publications (2)

Publication Number Publication Date
CN113271530A true CN113271530A (en) 2021-08-17
CN113271530B CN113271530B (en) 2022-09-06

Family

ID=77231976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110549438.5A Active CN113271530B (en) 2021-05-20 2021-05-20 Plug-pull detection method and device of earphone equipment

Country Status (1)

Country Link
CN (1) CN113271530B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1398132A (en) * 2001-07-12 2003-02-19 株式会社东芝 Portable terminal device
CN102480563A (en) * 2010-11-30 2012-05-30 比亚迪股份有限公司 Control method and device in process of inserting earphone into earphone socket
CN103546852A (en) * 2012-07-09 2014-01-29 马克西姆综合产品公司 System and method for optimized playback of audio signals through headphones
CN105635486A (en) * 2016-03-01 2016-06-01 广东欧珀移动通信有限公司 Method and terminal for starting photographing mode of selfie stick
CN105828224A (en) * 2014-08-27 2016-08-03 宏碁股份有限公司 Electronic device, corrector and earphone microphone for correcting electronic device
CN106028185A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Earphone authentication method and device, electronic equipment and earphone
CN108028989A (en) * 2015-08-24 2018-05-11 三星电子株式会社 Detect the method for external equipment and the electronic equipment of processing this method
CN108174316A (en) * 2016-12-07 2018-06-15 中兴通讯股份有限公司 A kind of ear speaker device control method and device
CN108293157A (en) * 2015-07-17 2018-07-17 思睿逻辑国际半导体有限公司 According to the earphone management of microphone terminal Characteristics Detection

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1398132A (en) * 2001-07-12 2003-02-19 株式会社东芝 Portable terminal device
CN102480563A (en) * 2010-11-30 2012-05-30 比亚迪股份有限公司 Control method and device in process of inserting earphone into earphone socket
CN103546852A (en) * 2012-07-09 2014-01-29 马克西姆综合产品公司 System and method for optimized playback of audio signals through headphones
CN105828224A (en) * 2014-08-27 2016-08-03 宏碁股份有限公司 Electronic device, corrector and earphone microphone for correcting electronic device
CN108293157A (en) * 2015-07-17 2018-07-17 思睿逻辑国际半导体有限公司 According to the earphone management of microphone terminal Characteristics Detection
CN108028989A (en) * 2015-08-24 2018-05-11 三星电子株式会社 Detect the method for external equipment and the electronic equipment of processing this method
CN105635486A (en) * 2016-03-01 2016-06-01 广东欧珀移动通信有限公司 Method and terminal for starting photographing mode of selfie stick
CN106028185A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Earphone authentication method and device, electronic equipment and earphone
CN108174316A (en) * 2016-12-07 2018-06-15 中兴通讯股份有限公司 A kind of ear speaker device control method and device

Also Published As

Publication number Publication date
CN113271530B (en) 2022-09-06

Similar Documents

Publication Publication Date Title
US9756439B2 (en) Method and devices for outputting an audio file
EP2597844A1 (en) Method and device for sharing micro-usb interface between earphone and usb
US9213391B2 (en) Using a processing device as a dock for a media player
EP3664291A1 (en) Audio signal adjustment method and device, storage medium, and terminal
JP2020016875A (en) Voice interaction method, device, equipment, computer storage medium, and computer program
CN109151634A (en) Wireless headset method for controlling volume, wireless headset and mobile terminal
US20220353627A1 (en) Wireless earphone synchronization detection method, apparatus, wireless earphones and storage medium
CN111193978A (en) Charging box control method, earphone charging box and computer readable storage medium
CN103581853A (en) Method and device for voice broadcast of text message on mobile phone
CN107209378B (en) Head-mounted display device and head-mounted display system
CN113271530B (en) Plug-pull detection method and device of earphone equipment
CN109509469A (en) Voice control body temperature detection method, device, system and storage medium
CN109194998A (en) Data transmission method, device, electronic equipment and computer-readable medium
CN106209583A (en) A kind of message input method, device and user terminal thereof
CN111556406B (en) Audio processing method, audio processing device and earphone
CN104954939A (en) Power amplifier of earphone and method for controlling power amplifier of earphone
CN106331356B (en) Volume control method and terminal
CN114639392A (en) Audio processing method and device, electronic equipment and storage medium
CN113407147A (en) Audio playing method, device, equipment and storage medium
CN112542178B (en) Audio data processing method and device
CN112261712A (en) Power regulation method and device
CN113163053B (en) Electronic device and play control method
JP2015042008A (en) Audio playback system, earphones adopted for audio playback system, and automatic control method for audio playback system
CN110913301A (en) Earphone control method, earphone and readable storage medium
TWI760939B (en) Audio data processing circuit and audio data processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 518000 floor 1, building 6, rundongsheng Industrial Zone, Longzhu community, Xixiang street, Bao'an District, Shenzhen, Guangdong Province

Patentee after: Zhongruitengbiao (Shenzhen) Testing Co.,Ltd.

Address before: 518000 floor 1, building 6, rundongsheng Industrial Zone, Longzhu community, Xixiang street, Bao'an District, Shenzhen, Guangdong Province

Patentee before: Shenzhen Tongbiao Technology Co.,Ltd.