CN111970603A - Detection method, audio component and readable storage medium - Google Patents

Detection method, audio component and readable storage medium Download PDF

Info

Publication number
CN111970603A
CN111970603A CN202010893773.2A CN202010893773A CN111970603A CN 111970603 A CN111970603 A CN 111970603A CN 202010893773 A CN202010893773 A CN 202010893773A CN 111970603 A CN111970603 A CN 111970603A
Authority
CN
China
Prior art keywords
earphone
charging box
capacitance
preset
capacitance value
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.)
Pending
Application number
CN202010893773.2A
Other languages
Chinese (zh)
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010893773.2A priority Critical patent/CN111970603A/en
Publication of CN111970603A publication Critical patent/CN111970603A/en
Pending legal-status Critical Current

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/1025Accumulators or arrangements for charging
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V3/00Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Acoustics & Sound (AREA)
  • Geology (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Geophysics (AREA)
  • Remote Sensing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a detection method, an audio component and a readable storage medium, wherein the detection method is applied to an earphone, the earphone is used for charging a charging box, and the detection method comprises the following steps: the earphone receives external charge; generating a capacitance value according to the charges, and comparing the capacitance value with a preset first preset capacitance; and if the capacitance value is greater than or equal to the first preset capacitance, judging that the earphone is arranged in the charging box. The technical scheme of the invention can accurately and effectively detect the use state of the earphone.

Description

Detection method, audio component and readable storage medium
Technical Field
The invention relates to the technical field of earphone detection, in particular to a detection method, an audio component and a readable storage medium.
Background
A tws (true Wireless stereo) headset is a true Wireless stereo headset. After the user uses the headset, the headset is generally placed in a charging box for storage. The charging box can detect that the headset is in order to trigger the next action. The conventional detection scheme is that the earphone is in communication connection with the charging box through contact of the earphone and a communication contact of the charging box, and if the communication is successful, the earphone and the charging box both detect the putting-in state. However, after the electric quantity of the charging box is exhausted, the earphone can not be in communication connection with the charging box after being placed in the charging box, and the use state of the earphone is difficult to accurately detect, so that the subsequent use of the earphone is influenced.
Disclosure of Invention
Therefore, in order to solve the problem that the use state of the earphone is difficult to accurately detect after the electric quantity of the charging box is exhausted, and the subsequent use of the earphone is affected, a detection method, an audio component and a readable storage medium are needed to be provided, and the use state of the earphone can be accurately and effectively detected.
In order to achieve the above object, the present invention provides a detection method for charging a charging box of an earphone, the detection method including:
the earphone receives external charge;
generating a capacitance value according to the charges, and comparing the capacitance value with a preset first preset capacitance;
and if the capacitance value is greater than or equal to the first preset capacitance, judging that the earphone is arranged in the charging box.
Optionally, after the step of comparing the capacitance value with a preset first preset capacitance, the method includes:
if the capacitance value is smaller than the first preset capacitance, comparing the capacitance value with a preset second preset capacitance, wherein the first preset capacitance is larger than the second preset capacitance;
if the capacitance value is larger than the second preset capacitance and smaller than the first preset capacitance, the earphone is judged to be worn on the ear of the person;
and if the capacitance value is smaller than or equal to the second preset capacitance, judging that the earphone is not worn on the ear of the person and the earphone is arranged outside the charging box.
Optionally, after the step of comparing the capacitance value with a preset first preset capacitance, the method further includes:
if the capacitance value is smaller than the first preset capacitance, the earphone detects whether a connection request of the charging box is received;
if the connection request of the charging box is detected, judging that the earphone is arranged in the charging box, and the charging box finishes charging recovery work;
and if the connection request of the charging box is not detected, judging that the earphone is arranged outside the charging box.
Optionally, after the step of determining that the earphone is placed inside the charging box, the method further includes:
the earphone is disconnected from the external wireless connection.
Further, in order to achieve the above object, the present invention also provides a detection method applied to a charging box for charging an earphone, the detection method including:
the charging box sends charges to the earphone, wherein when the earphone receives the charges, a capacitance value is generated according to the charges, the capacitance value is compared with a preset first preset capacitor, and if the capacitance value is larger than or equal to the first preset capacitor, the earphone generates a feedback signal;
the charging box receives a feedback signal sent by the earphone;
the charging box judges that the charging box stores the earphone according to the feedback signal.
In addition, in order to achieve the above object, the present invention further provides a detection method, where the detection method is applied to an audio component, where the audio component includes an earphone and a charging box, and the earphone is charged by using the charging box, and the detection method includes:
the charging box sends a charge to the headset;
the earphone receives the charges, generates a capacitance value according to the charges, and compares the capacitance value with a preset first preset capacitance;
and when the capacitance value is larger than or equal to the first preset capacitance, the earphone judges that the earphone is arranged in the charging box.
In addition, in order to achieve the above object, the present invention also provides an audio component including an earphone and a charging box, the earphone being charged using the charging box, the earphone including:
the capacitance detection module is arranged in the earphone and used for receiving external charges and generating a capacitance value according to the charges;
the first processing module is arranged in the earphone, and is electrically connected to the capacitance detection module, the first processing module is used for comparing the capacitance value with a preset first preset capacitor, and the capacitance value is larger than or equal to the first preset capacitor and is used for judging that the earphone is arranged in the charging box.
Optionally, the earphone further includes a conductive part, the conductive part is disposed at the sound output end of the earphone, and the conductive part is electrically connected to the capacitance detection module;
the charging box comprises a conductive contact and a first capacitor, the conductive contact corresponds to the conductive part, the first capacitor is arranged inside the charging box, and the first capacitor is electrically connected to the conductive contact.
Optionally, the earphone further includes a first data contact, the first data contact is disposed on an outer surface of the earphone, and the first data contact is electrically connected to the capacitance detection module;
the charging box comprises a second data contact and a second processing module, the second data contact corresponds to the first data contact, the second processing module is arranged in the charging box, the second processing module is connected with a switch module between the second data contacts, the charging box further comprises a second capacitor, and the second capacitor is electrically connected with the switch module.
Furthermore, in order to achieve the above object, the present invention also provides a readable storage medium having stored thereon a detection program which, when executed by a processor, implements the steps of the detection method as described above.
In the technical scheme provided by the invention, the charge of the charging box can be independently stored without being connected with a power supply of the charging box. The earphone can obtain external capacitance value, and the earphone is under different external environment, and the capacitance value that obtains is of different size. The earphone compares the obtained capacitance value with the first preset capacitance, the charge value provided by the charging box is larger, and the detected capacitance value is also larger. If the capacitance value is larger than the first preset capacitance, the earphone can be judged to be placed in the charging box at present, and the earphone can perform the next action. Therefore, according to the technical scheme, even when the electric quantity of the charging box is exhausted, the use state of the earphone can be accurately detected, the earphone is placed in the charging box, and the normal use of the earphone is further ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a first embodiment of the detection method of the present invention;
FIG. 2 is a schematic flow chart of a second embodiment of the detection method of the present invention;
FIG. 3 is a schematic flow chart of a third embodiment of the detection method of the present invention;
FIG. 4 is a schematic flow chart of a fourth embodiment of the detection method of the present invention;
FIG. 5 is a schematic flow chart of a fifth embodiment of the detection method of the present invention;
FIG. 6 is a schematic flow chart of a sixth embodiment of the detection method of the present invention;
FIG. 7 is a schematic structural diagram of a first embodiment of an audio module according to the present invention;
fig. 8 is a schematic structural diagram of an audio module according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
When the user places the headset in the charging box for storage, the charging box can detect that the headset is placed in the charging box, so as to trigger the next action. For example, the earphone is connected with the mobile phone in a Bluetooth mode, and after the earphone is detected to be placed in the charging box, the Bluetooth connection between the earphone and the mobile phone can be disconnected. In the related art, a commonly used scheme for detecting whether the earphone is placed in the charging box is that the earphone is in communication connection with the charging box through the contact of the earphone and the communication contact of the charging box, and the communication connection is performed based on a certain communication protocol. Successful communication indicates that the headset and the charging box both detect the dropped state. However, after the electric quantity of the charging box is exhausted, the earphone is placed into the charging box, the transmission of the communication protocol loses the power source, the earphone and the charging box cannot be in communication connection, and the use state of the earphone is difficult to accurately detect, so that the subsequent use of the earphone is influenced.
In order to solve the problems, the invention provides a detection method, which is applied to an earphone, wherein the earphone is provided with an independent battery, and the normal work of the earphone is ensured by supplying power to the earphone through the battery of the earphone when the earphone is used at ordinary times. When the earphone is not used, the earphone can be placed in the charging box and used for charging the charging box. The charging box provides a space for placing the earphone in addition to charging the earphone. Referring to fig. 1, according to a first embodiment of the present invention, a detection method includes:
in step S10, the headphone receives external electric charge. There are three general external environments to which the headset is exposed, and specific external environments include that the headset is placed inside the charging box, that the headset is worn in the ear of a person, or that the headset is placed outside the charging box and the user does not wear the headset. In each of these three external environments, the headset receives a different amount of charge and therefore a different capacitance value.
Step S20, generating a capacitance value according to the charges, and comparing the capacitance value with a preset first preset capacitance; the earphone is internally provided with a capacitance detection module, and the number of charges acquired to the outside of the earphone can be detected through the capacitance detection module. The human body can electrically conduct, so that when the earphone is worn in the ear of a person, the capacitance detection module can acquire electric charges from the human body. The earphone is placed outside the charging box, and under the condition that the user does not wear the earphone, the capacitance detection module is difficult to obtain electric charge, and the capacitance value can be considered to be basically zero at the moment. In addition, a capacitor is arranged in the charging box and can store electric charges, when the earphone is placed in the charging box, the earphone is communicated with the charging box, and the electric charge provided by the capacitor in the charging box is acquired by the capacitance detection module. The earphone is characterized in that a first processing module is further arranged inside the earphone and comprises a central processing unit and a storage, and a first preset capacitor is stored in the storage. Generally, the amount of charge provided by the capacitor in the charging box is the largest, and the least amount of charge is obtained when the headset is not worn in the position of the human ear and is placed outside the charging box. The capacitance obtained when the headset is worn in the position of the human ear is between the two cases, because the human body can provide the electric charge.
Step S30, if the capacitance is greater than or equal to the first predetermined capacitance, it is determined that the earphone is placed inside the charging box. The first preset capacitor is set to be equal to the number of charges released by the charging box to the earphone, and therefore when the capacitance value obtained by the earphone is larger than or equal to the first preset capacitor, the earphone is judged to be placed in the charging box. So that the next operation of the headset can be performed, for example, the bluetooth connection is disconnected and the sound is stopped. In addition, the first preset capacitance can be set in a changing way according to the quantity of the charges stored in the capacitor in the charging box.
In the technical scheme provided by the embodiment, the charges of the charging box can be independently stored without being connected with a power supply of the charging box. The earphone can obtain external capacitance value, and the earphone is under different external environment, and the capacitance value that obtains is of different size. The earphone compares the obtained capacitance value with the first preset capacitance, the charge value provided by the charging box is larger, and the detected capacitance value is also larger. If the capacitance value is larger than the first preset capacitance, the earphone can be judged to be placed in the charging box at present, and the earphone can perform the next action. Therefore, according to the technical scheme, even when the electric quantity of the charging box is exhausted, the use state of the earphone can be accurately detected, the earphone is placed in the charging box, and the normal use of the earphone is further ensured.
Referring to fig. 2, in the first embodiment of the present invention, it is difficult to determine whether the earphone is worn at the position of the human ear or placed outside the earphone case. To this end, a second embodiment of the invention is proposed on the basis of the first embodiment. After the step of comparing the capacitance value with a preset first preset capacitance, the method comprises the following steps:
step S40, if the capacitance value is smaller than the first preset capacitance, comparing the capacitance value with a preset second preset capacitance, wherein the first preset capacitance is larger than the second preset capacitance; when the earphone is worn in the ear of a person, the capacitance detection module can acquire charges from the human body, and the second preset capacitance is set to be lower than the capacitance formed by acquiring the charges from the human body. Due to the individual difference of the human body, the second preset capacitance may be set lower than the average value of the capacitances obtained from the human body, or may be set lower than the lowest value of the capacitances obtained from the human body. In addition, the second preset capacitor can be changed and set according to the individual condition of the user.
Step S41, if the capacitance value is larger than the second preset capacitance and smaller than the first preset capacitance, the earphone is judged to be worn on the ear of the person; at this time, the capacitance value obtained by the earphone is between the second preset capacitance and the first preset capacitance, which indicates that the electric charge obtained by the earphone comes from the human body, and thus, the earphone is judged to be worn on the ear of the person.
Step S42, if the capacitance is smaller than or equal to the second predetermined capacitance, it is determined that the earphone is not worn on the ear and the earphone is disposed outside the charging box. When the earphone is not worn on the ear of a person and the earphone is placed outside the charging box, the quantity of electric charges which can be acquired by the earphone is small. At this time, the charge that the earphone can acquire comes from the surrounding large air environment. Basically the charge in air comes from the ionization of gas molecules, which is extremely rare and thus the amount of charge in the air environment is extremely weak. If the capacitance value obtained by the earphone is smaller than or equal to the second preset capacitance, the earphone is not worn on the ear of the person, and the earphone is placed outside the charging box, namely, the earphone is idle outside the charging box at the moment.
Referring to fig. 3, the usage state of the charging box includes a power-rich state and a power-depleted state, so that the usage state of the charging box can be accurately detected. On the basis of the first embodiment of the present invention, a third embodiment of the present invention is proposed. After the step of comparing the capacitance value with a preset first preset capacitance, the method further comprises the following steps:
step S50, if the capacitance value is smaller than the first preset capacitance, the earphone detects whether the connection request of the charging box is received; and a switch module is also arranged in the charging box and used for controlling the capacitor to be connected or disconnected. When the capacitor is switched on, the charge can be released, and when the capacitor is switched off, the charge of the capacitor cannot be released outwards. In the case that the switch module is turned off, the capacitor is turned on, and at this time, as in step S30, the capacitance value is greater than or equal to the second preset capacitance, it can be determined that the earphone is placed inside the charging box. And the capacitance value is smaller than the first preset capacitance, two conditions exist. In one case, the headset is placed in the charging box, but the switch module is on. In another case, the earphone is placed outside the charging box, and the capacitance value is smaller than the first predetermined capacitance because the earphone is separated from the charging box and the charge of the capacitor cannot be obtained. In addition, if the charging box has enough power, the charging box actively sends a connection request to the earphone. The earphone can receive the connection request in such a way that the earphone and the charging box are in contact with each other, and the earphone is placed in the charging box.
Step S51, if the connection request of the charging box is detected, the earphone is judged to be arranged in the charging box, and the charging box finishes the charging recovery work; if the earphone receives the connection request sent by the charging box, the earphone is placed in the charging box. In addition, the charging box does not have sufficient power source to provide power to send the connection request signal in the event of a power exhaustion. Therefore, it is also stated that the charging box can transmit a connection request signal to the headset when the charging box has a sufficient amount of power.
In step S52, if the connection request of the charging box is not detected, it is determined that the earphone is placed outside the charging box. Therefore, under the condition that the connection request of the charging box is not detected, and the capacitance value obtained by the earphone is smaller than the first preset capacitance, the earphone can be judged to be placed outside the charging box.
Referring to fig. 4, a fourth embodiment of the present invention is proposed on the basis of the above-described embodiment. In the case of using a headset, a user typically makes a wireless connection between the headset and an audio playing device. For example, the headset and smartphone are bluetooth connected. However, after the headset is used, the user sometimes forgets to cancel the bluetooth connection. This results in the headset and smartphone being continuously connected and the power to the headset being continuously consumed. And because the earphone is connected with the smart phone, when a user makes a call, the user cannot hear the voice content directly through the smart phone, which also brings inconvenience to the user. Therefore, the step of determining that the earphone is placed inside the charging box includes:
in step S60, the earphone disconnects the wireless connection with the outside. By determining that the headset has been placed in the charging box, it can be determined that the user does not need to use the headset at this time. Therefore, the earphone is actively disconnected from the external wireless connection. Therefore, the power consumption of the earphone is avoided being consumed without reason, and the normal use of the audio playing equipment by a user is also ensured.
Referring to fig. 5, the present invention further provides a detection method, where the detection method is applied to a charging box, and the charging box is used for charging an earphone, and the detection method includes:
step S110, the charging box sends charges to the earphone, wherein the earphone receives the charges, the earphone generates a capacitance value according to the charges, the capacitance value is compared with a preset first preset capacitor, and if the capacitance value is larger than or equal to the first preset capacitor, the earphone generates a feedback signal; be provided with the condenser in the box that charges, be provided with electric capacity detection module in the earphone, can detect the capacitance value of acquireing to the earphone outside through electric capacity detection module. There are three general external environments to which the headset is exposed, and specific external environments include that the headset is placed inside the charging box, that the headset is worn in the ear of a person, or that the headset is placed outside the charging box and the user does not wear the headset. In each of these three external environments, the headset receives a different amount of charge and therefore a different capacitance value. The human body can electrically conduct, so that when the earphone is worn in the ear of a person, the capacitance detection module can acquire electric charges from the human body. The earphone is placed outside the charging box, and under the condition that the user does not wear the earphone, the capacitance detection module is difficult to obtain electric charge, and the capacitance value can be considered to be basically zero at the moment. In addition, a capacitor is arranged in the charging box and can store electric charges, when the earphone is placed in the charging box, the earphone is communicated with the charging box, and the electric charge provided by the capacitor in the charging box is acquired by the capacitance detection module. The earphone is characterized in that a first processing module is further arranged inside the earphone and comprises a central processing unit and a storage, and a first preset capacitor is stored in the storage. Generally, the amount of charge provided by the capacitor in the charging box is the largest, and the least amount of charge is obtained when the headset is not worn in the position of the human ear and is placed outside the charging box. The capacitance obtained when the headset is worn in the position of the human ear is between the two cases, because the human body can provide the electric charge. Through setting for first predetermined capacitance, first predetermined capacitance equals the electric charge number that the box released to the earphone that charges, from this when the capacitance value that the earphone obtained is greater than or equal to first predetermined capacitance, the earphone generates feedback signal, and the feedback signal is greater than or equal to the condition of first predetermined capacitance including the capacitance value in the feedback signal, and the earphone transmits feedback signal to the box that charges.
Step S210, the charging box receives a feedback signal sent by the earphone, the earphone is placed in the charging box, and the earphone and the charging box are in mutual contact. For example, the earphone is provided with a first data contact, the charging box is provided with a second data contact corresponding to the first data contact, and the earphone can transmit the generated feedback signal to the charging box through the contact of the first data contact and the second data contact.
Step S310, the charging box judges that the charging box contains the earphone according to the feedback signal. The second processing module is arranged in the charging box, and after the charging box receives the feedback signal, the second processing module judges that the charging box is used for containing the earphone according to the received feedback signal. Of course, the first preset capacitance may also be stored in the second processing module, so that the charging box only needs to receive the capacitance value obtained by the earphone.
Referring to fig. 6, the present invention further provides a detection method, where the detection method is applied to an audio component, the audio component includes an earphone and a charging box, the earphone is charged by using the charging box, and the detection method includes:
in step S1, the charging box sends the charge to the headset. The charging box is internally provided with a capacitor which can store charges, the earphone is internally provided with a capacitance detection module, the capacitance detection module can receive the charges outside the earphone, and the obtained charges are converted into capacitance values representing the number of the charges. There are three general external environments to which the headset is exposed, and specific external environments include that the headset is placed inside the charging box, that the headset is worn in the ear of a person, or that the headset is placed outside the charging box and the user does not wear the headset. In each of these three external environments, the headset receives a different amount of charge and therefore a different capacitance value. The human body can electrically conduct, so that when the earphone is worn in the ear of a person, the capacitance detection module can acquire electric charges from the human body. The earphone is placed outside the charging box, and under the condition that the user does not wear the earphone, the capacitance detection module is difficult to obtain electric charge, and the capacitance value can be considered to be basically zero at the moment.
In step S2, the earphone receives the charges, generates a capacitance value according to the charges, and compares the capacitance value with a preset first preset capacitance. When the earphone is placed in the charging box, the earphone is communicated with the charging box, and the capacitance detection module acquires the charge provided by the capacitor in the charging box. The earphone is characterized in that a first processing module is further arranged inside the earphone and comprises a central processing unit and a storage, and a first preset capacitor is stored in the storage. Generally, the amount of charge provided by the capacitor in the charging box is the largest, and the least amount of charge is obtained when the headset is not worn in the position of the human ear and is placed outside the charging box. The capacitance obtained when the headset is worn in the position of the human ear is between the two cases, because the human body can provide the electric charge.
And step S3, when the capacitance value is larger than or equal to the first preset capacitance, the earphone is judged to be arranged in the charging box. The first preset capacitor is set to be equal to the number of charges released by the charging box to the earphone, and therefore when the capacitance value obtained by the earphone is larger than or equal to the first preset capacitor, the earphone is judged to be placed in the charging box. So that the next operation of the headset can be performed, for example, the bluetooth connection is disconnected and the sound is stopped. In addition, the first preset capacitance can be set in a changing way according to the quantity of the charges stored in the capacitor in the charging box.
Referring to fig. 7, the present invention further provides an audio assembly, the audio assembly includes an earphone and a charging box, the earphone is charged by the charging box, and the earphone includes: the device comprises a capacitance detection module and a first processing module.
The capacitance detection module is arranged in the earphone and used for receiving external charges and generating a capacitance value according to the charges; there are three general external environments to which the headset is exposed, and specific external environments include that the headset is placed inside the charging box, that the headset is worn in the ear of a person, or that the headset is placed outside the charging box and the user does not wear the headset. In each of these three external environments, the headset receives a different amount of charge and therefore a different capacitance value. The human body can electrically conduct, so that when the earphone is worn in the ear of a person, the capacitance detection module can acquire electric charges from the human body. The earphone is placed outside the charging box, and under the condition that the user does not wear the earphone, the capacitance detection module is difficult to obtain electric charge, and the capacitance value can be considered to be basically zero at the moment. In addition, a capacitor is arranged in the charging box and can store electric charges, when the earphone is placed in the charging box, the earphone is communicated with the charging box, and the electric charge provided by the capacitor in the charging box is acquired by the capacitance detection module.
First processing module locates in the earphone, and first processing module electric connection is in electric capacity detection module, and first processing module is used for comparing the capacitance value with the first predetermined electric capacity of predetermineeing, and the capacitance value is greater than or equal to the first predetermined electric capacity, judges that the earphone is arranged in the inside of charging the box. The first processing module comprises a central processing unit and a memory, and a first preset capacitor is stored in the memory. Generally, the amount of charge provided by the capacitor in the charging box is the largest, and the least amount of charge is obtained when the headset is not worn in the position of the human ear and is placed outside the charging box. The capacitance obtained when the headset is worn in the position of the human ear is between the two cases, because the human body can provide the electric charge. The first preset capacitor is set to be equal to the number of charges released by the charging box to the earphone, and therefore when the capacitance value obtained by the earphone is larger than or equal to the first preset capacitor, the earphone is judged to be placed in the charging box. So that the next operation of the headset can be performed, for example, the bluetooth connection is disconnected and the sound is stopped. In addition, the first preset capacitance can be set in a changing way according to the quantity of the charges stored in the capacitor in the charging box.
Furthermore, the earphone also comprises a conductive part, the conductive part is arranged at the sound outlet end of the earphone, and the conductive part is electrically connected with the capacitance detection module; when the user uses the earphone, the sound outlet end of the earphone faces the user, the conductive part can be close to the human body or attached to the human body, and therefore charges carried by the human body can be acquired through the conductive part. The conductive portion transfers the obtained electric charge to the capacitance detection module.
The charging box comprises a conductive contact and a first capacitor, the conductive contact is arranged corresponding to the conductive part, the first capacitor is arranged inside the charging box, and the first capacitor is electrically connected to the conductive contact. The contacting of the earphone and the charging box is done by the contacting of the conductive part and the conductive contact, the charge of the first capacitor being transmitted to the conductive part via the conductive contact, thereby completing the transfer of the charge in the capacitor.
The memory also stores a second preset capacitor. The first preset capacitor is larger than the second preset capacitor; when the earphone is worn in the ear of a person, the capacitance detection module can acquire charges from the human body, and the second preset capacitance is set to be lower than the capacitance formed by acquiring the charges from the human body. Due to the individual difference of the human body, the second preset capacitance may be set lower than the average value of the capacitances obtained from the human body, or may be set lower than the lowest value of the capacitances obtained from the human body. In addition, the second preset capacitor can be changed and set according to the individual condition of the user.
The capacitance value is larger than the second preset capacitance and smaller than the first preset capacitance, and then the earphone is worn on the ear of the person; at this time, the conductive part acquires the human body charge, and thus the capacitance value acquired by the earphone is between the second preset capacitor and the first preset capacitor, and further the charge acquired by the earphone comes from the human body, so that the condition that the earphone is worn on the ear of the person is judged.
And if the capacitance value is less than or equal to the second preset capacitance, the earphone is not worn on the ear of the person and is arranged outside the charging box. When the earphone is not worn on the ear of a person and the earphone is placed outside the charging box, the quantity of electric charges which can be acquired by the earphone is small. At this time, the electric charge that the earphone can acquire through the conductive portion comes from the surrounding large air environment. Basically the charge in air comes from the ionization of gas molecules, which is extremely rare and thus the amount of charge in the air environment is extremely weak. If the capacitance value obtained by the earphone is smaller than or equal to the second preset capacitance, the earphone is not worn on the ear of the person, and the earphone is placed outside the charging box, namely, the earphone is idle outside the charging box at the moment.
Further, referring to fig. 8, the earphone further includes a first data contact, the first data contact is disposed on an outer surface of the earphone, and the first data contact is electrically connected to the capacitance detection module; the earphone is provided with a first data contact point, a power connection point and a grounding point, wherein the first data contact point is used for conducting a data signal, the power connection point is used for transmitting power, and the grounding point is used for grounding.
The charging box comprises a second data contact and a second processing module, the second data contact is arranged corresponding to the first data contact, the second processing module is arranged in the charging box, a switch module is connected between the second processing module and the second data contact, the charging box further comprises a second capacitor, and the second capacitor is electrically connected to the switch module.
The second processing module also comprises a central processing unit and a memory, the switch module has two switching states, one is an opening state of the switch module under the condition that the charging box has sufficient electric quantity, at the moment, the electric charge of the second capacitor cannot be conducted to the second data contact, and the second processing module is communicated with the second data contact. At this time, since the second capacitor cannot communicate with the second data contact, the charge stored in the second capacitor cannot be conducted to the second data point, and the charge cannot be detected by the capacitance detection module in the earphone. The second is that the switch module is in a closed state, at this time, the second capacitor is connected, and charges can be sent out through the second capacitor. And the capacitance value is smaller than the first preset capacitance, two conditions exist. In one case, the headset is placed in the charging box, but the switch module is on. In another case, the earphone is placed outside the charging box, and the capacitance value is smaller than the first predetermined capacitance because the earphone is separated from the charging box and the charge of the capacitor cannot be obtained. In addition, if the charging box has enough power, the charging box actively sends a connection request to the earphone. The earphone can receive the connection request in such a way that the earphone and the charging box are in contact with each other, and the earphone is placed in the charging box.
If the connection request of the charging box is detected, the earphone is placed in the charging box, and the charging box finishes charging recovery work; if the earphone receives the connection request sent by the charging box, the earphone is placed in the charging box. In addition, the charging box does not have sufficient power source to provide power to send the connection request signal in the event of a power exhaustion. Therefore, it is also stated that the charging box can transmit a connection request signal to the headset when the charging box has a sufficient amount of power.
If the connection request of the charging box is not detected, the earphone is placed outside the charging box. Therefore, under the condition that the connection request of the charging box is not detected, and the capacitance value obtained by the earphone is smaller than the first preset capacitance, the earphone can be judged to be placed outside the charging box.
The invention also provides a readable storage medium having stored thereon a detection program which, when executed by a processor, implements the steps of the detection method as described above.
For the specific implementation of the readable storage medium of the present invention, reference may be made to the embodiments of the detection method described above, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A detection method applied to an earphone used for charging a charging box, the detection method comprising:
the earphone receives external charge;
generating a capacitance value according to the charges, and comparing the capacitance value with a preset first preset capacitance;
and if the capacitance value is greater than or equal to the first preset capacitance, judging that the earphone is arranged in the charging box.
2. The method for detecting according to claim 1, wherein said step of comparing said capacitance value with a first predetermined capacitance comprises, after said step of comparing said capacitance value with a first predetermined capacitance, the steps of:
if the capacitance value is smaller than the first preset capacitance, comparing the capacitance value with a preset second preset capacitance, wherein the first preset capacitance is larger than the second preset capacitance;
if the capacitance value is larger than the second preset capacitance and smaller than the first preset capacitance, the earphone is judged to be worn on the ear of the person;
and if the capacitance value is smaller than or equal to the second preset capacitance, judging that the earphone is not worn on the ear of the person and the earphone is arranged outside the charging box.
3. The method for detecting according to claim 1, wherein said step of comparing said capacitance value with a first predetermined capacitance further comprises:
if the capacitance value is smaller than the first preset capacitance, the earphone detects whether a connection request of the charging box is received;
if the connection request of the charging box is detected, judging that the earphone is arranged in the charging box, and the charging box finishes charging recovery work;
and if the connection request of the charging box is not detected, judging that the earphone is arranged outside the charging box.
4. The method for testing as defined in any one of claims 1 to 3, wherein said step of determining that said earphone is placed inside said charging box comprises, after said step of determining that said earphone is placed inside said charging box:
the earphone is disconnected from the external wireless connection.
5. A detection method applied to a charging box for charging an earphone, the detection method comprising:
the charging box sends charges to the earphone, wherein when the earphone receives the charges, a capacitance value is generated according to the charges, the capacitance value is compared with a preset first preset capacitor, and if the capacitance value is larger than or equal to the first preset capacitor, the earphone generates a feedback signal;
the charging box receives a feedback signal sent by the earphone;
the charging box judges that the charging box stores the earphone according to the feedback signal.
6. A detection method is applied to an audio assembly, the audio assembly comprises an earphone and a charging box, the earphone is charged by the charging box, and the detection method comprises the following steps:
the charging box sends a charge to the headset;
the earphone receives the charges, generates a capacitance value according to the charges, and compares the capacitance value with a preset first preset capacitance;
and when the capacitance value is larger than or equal to the first preset capacitance, the earphone judges that the earphone is arranged in the charging box.
7. An audio assembly comprising a headset and a charging box, the headset employing the charging box for charging, the headset comprising:
the capacitance detection module is arranged in the earphone and used for receiving external charges and generating a capacitance value according to the charges;
the first processing module is arranged in the earphone, and is electrically connected to the capacitance detection module, the first processing module is used for comparing the capacitance value with a preset first preset capacitor, and the capacitance value is larger than or equal to the first preset capacitor and is used for judging that the earphone is arranged in the charging box.
8. The audio assembly of claim 7, wherein the earphone further comprises a conductive portion disposed at the sound output end of the earphone, the conductive portion being electrically connected to the capacitance detection module;
the charging box comprises a conductive contact and a first capacitor, the conductive contact corresponds to the conductive part, the first capacitor is arranged inside the charging box, and the first capacitor is electrically connected to the conductive contact.
9. The audio assembly of claim 7, wherein the headset further comprises a first data contact disposed on an outer surface of the headset, the first data contact electrically connected to the capacitance detection module;
the charging box comprises a second data contact and a second processing module, the second data contact corresponds to the first data contact, the second processing module is arranged in the charging box, the second processing module is connected with a switch module between the second data contacts, the charging box further comprises a second capacitor, and the second capacitor is electrically connected with the switch module.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a detection program which, when executed by a processor, implements the steps of the detection method according to any one of claims 1 to 6.
CN202010893773.2A 2020-08-28 2020-08-28 Detection method, audio component and readable storage medium Pending CN111970603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010893773.2A CN111970603A (en) 2020-08-28 2020-08-28 Detection method, audio component and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010893773.2A CN111970603A (en) 2020-08-28 2020-08-28 Detection method, audio component and readable storage medium

Publications (1)

Publication Number Publication Date
CN111970603A true CN111970603A (en) 2020-11-20

Family

ID=73400390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010893773.2A Pending CN111970603A (en) 2020-08-28 2020-08-28 Detection method, audio component and readable storage medium

Country Status (1)

Country Link
CN (1) CN111970603A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533102A (en) * 2021-02-10 2021-03-19 深圳市汇顶科技股份有限公司 Method for determining capacitance reference, and device and equipment for determining capacitance reference
EP4072157A4 (en) * 2021-02-10 2022-10-12 Shenzhen Goodix Technology Co., Ltd. Method for determining capacitance reference, apparatus for determining capacitance reference, and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190098388A1 (en) * 2017-09-25 2019-03-28 Apple Inc. Earphones With Sensors
CN110099325A (en) * 2019-05-24 2019-08-06 歌尔科技有限公司 A kind of wireless headset enters box detection method, device, wireless headset and earphone products
CN110891221A (en) * 2019-12-25 2020-03-17 歌尔科技有限公司 Wireless earphone and wearing detection device and method thereof
CN110958524A (en) * 2019-11-28 2020-04-03 歌尔股份有限公司 Earphone in-out box detection method, electronic equipment and earphone assembly

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190098388A1 (en) * 2017-09-25 2019-03-28 Apple Inc. Earphones With Sensors
CN110099325A (en) * 2019-05-24 2019-08-06 歌尔科技有限公司 A kind of wireless headset enters box detection method, device, wireless headset and earphone products
CN110958524A (en) * 2019-11-28 2020-04-03 歌尔股份有限公司 Earphone in-out box detection method, electronic equipment and earphone assembly
CN110891221A (en) * 2019-12-25 2020-03-17 歌尔科技有限公司 Wireless earphone and wearing detection device and method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533102A (en) * 2021-02-10 2021-03-19 深圳市汇顶科技股份有限公司 Method for determining capacitance reference, and device and equipment for determining capacitance reference
CN112533102B (en) * 2021-02-10 2021-06-18 深圳市汇顶科技股份有限公司 Method for determining capacitance reference, and device and equipment for determining capacitance reference
EP4072157A4 (en) * 2021-02-10 2022-10-12 Shenzhen Goodix Technology Co., Ltd. Method for determining capacitance reference, apparatus for determining capacitance reference, and device
US11910148B2 (en) 2021-02-10 2024-02-20 Shenzhen GOODIX Technology Co., Ltd. Method for determining capacitance reference, apparatus for determining capacitance reference, and device

Similar Documents

Publication Publication Date Title
US11043980B2 (en) Method for controlling earphone switching, earphone, and earphone system
KR20200117461A (en) Electronic device and method of communicating with an external device via a power supply line
US7565458B2 (en) Cell phone accessory identification algorithm by generating and measuring a voltage pulse through a pin interface
RU2156030C2 (en) Method and device for indication of communication between portable radio station and vehicle set
CN110602584A (en) Wireless earphone and wireless earphone system
CN106549451B (en) A kind of wireless charging method and device
CN109151644B (en) Method and device for distributing master-slave state of earphone
KR20200017308A (en) Electronic device for controlling communication connection with input device and method for controlling thereof
CN110958524B (en) Earphone in-out box detection method, electronic equipment and earphone assembly
CN111970603A (en) Detection method, audio component and readable storage medium
CN111225320B (en) Earphone wearing state detection method, earphone and readable storage medium
US11425520B2 (en) Method for detecting blocking of microphone and related products
KR20200085546A (en) Method for controlling power back off using grip sensor and electronic device for supporting the same
KR20210034200A (en) Electronic device for audio, electronic device and method for managing communication link
EP4099714A1 (en) Electronic device for audio, and method for managing power in electronic device for audio
KR20210027870A (en) Method for wireless charging and electronic device supporting the same
CN108513196B (en) Wireless earphone and pairing method thereof
KR20200106743A (en) Electronic device for transmitting response message in bluetooth network environment and method thereof
EP3664248A1 (en) Communication apparatus with charging reminder, and method
KR20210033758A (en) Method for power supply and an electronic device thereof
KR20210101718A (en) Method for wireless charging and electronic device supporting the same
EP4318216A1 (en) Electronic device, and method for updating external electronic device by using same
CN114079837B (en) Wireless earphone, earphone storage box and wireless earphone system
CN112653955B (en) Earphone box, earphone device and electronic equipment
CN114422919A (en) Master-slave switching method and device, TWS (two way communication system) headset and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201120

RJ01 Rejection of invention patent application after publication