CN109348366B - Method for adjusting volume by using electrical parameters and mobile terminal - Google Patents

Method for adjusting volume by using electrical parameters and mobile terminal Download PDF

Info

Publication number
CN109348366B
CN109348366B CN201811341370.6A CN201811341370A CN109348366B CN 109348366 B CN109348366 B CN 109348366B CN 201811341370 A CN201811341370 A CN 201811341370A CN 109348366 B CN109348366 B CN 109348366B
Authority
CN
China
Prior art keywords
earphone
impedance
determining
current
headset
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.)
Active
Application number
CN201811341370.6A
Other languages
Chinese (zh)
Other versions
CN109348366A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811341370.6A priority Critical patent/CN109348366B/en
Publication of CN109348366A publication Critical patent/CN109348366A/en
Application granted granted Critical
Publication of CN109348366B publication Critical patent/CN109348366B/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
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method for adjusting volume by using an electrical parameter and a mobile terminal, and belongs to the technical field of communication. The method for adjusting the volume by using the electrical parameter comprises the following steps: determining an initial impedance of the headset; obtaining the current impedance of the earphone; determining a target gain of the earphone according to the current impedance and the initial impedance; and sending the target power matched with the target gain to the earphone. In the embodiment of the invention, the earphone can realize a better sound output effect, the problem of volume reduction caused by blockage of the sound output hole of the earphone is avoided, and the use experience of a user on the earphone is improved.

Description

Method for adjusting volume by using electrical parameters and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method for adjusting volume by utilizing electric parameters and a mobile terminal.
Background
As mobile terminals play more and more important roles in life, the frequency of using mobile terminals by people every day is higher and higher, and the relationship between daily life and work and the mobile terminals is closer and closer. Users often need to listen to sound, watch videos and the like by using the mobile terminal, and often use earphones to listen to the audio of the mobile terminal in order to avoid the audio played by a loudspeaker of the mobile terminal interfering with others.
However, with the increase of the use frequency of the earphone, the sound outlet hole on the earphone is easily blocked by impurities such as dust, oil stain and the like, so that the volume of the earphone is reduced, and the use experience of a user is influenced.
Disclosure of Invention
The invention provides a method for adjusting volume by using an electrical parameter and a mobile terminal, which are used for solving the problem that the volume of an earphone is reduced because the earphone is easily blocked.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for adjusting volume by using an electrical parameter, where the method is applied to a mobile terminal, and an earphone is connected to the mobile terminal, where the method includes:
determining an initial impedance of the headset; obtaining the current impedance of the earphone;
determining a target gain of the earphone according to the current impedance and the initial impedance;
and sending the target power matched with the target gain to the earphone.
In a second aspect, an embodiment of the present invention provides a mobile terminal, to which an earphone is connected, where the mobile terminal may include:
an initial impedance determination module for determining an initial impedance of the headset; a current impedance obtaining module, configured to obtain a current impedance of the earphone;
A target gain determining module, configured to determine a target gain of the earphone according to the current impedance and the initial impedance;
and the target power output module is used for sending the target power matched with the target gain to the earphone.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for implementing volume adjustment using the electrical parameter according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the method for implementing volume adjustment using the electrical parameter according to the first aspect.
In the embodiment of the invention, under the condition that the earphone is connected to the mobile terminal, the initial impedance of the earphone can be determined, and the current impedance of the earphone can be obtained. According to the current impedance and the initial impedance, not only can the blocking degree of the earphone be judged, but also a target gain of the earphone, which can realize a better sound output effect, under the blocking degree can be obtained according to the blocking degree of the earphone; and sending a target output power which can enable the earphone to achieve the target gain to the earphone so as to adjust the volume of the earphone. Therefore, the earphone can realize better sound effect, the problem that the volume of the earphone is reduced due to blockage of the sound hole is avoided, and the use experience of a user on the earphone is improved.
Drawings
Fig. 1 is a flowchart of a method for adjusting volume using an electrical parameter according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for determining an initial impedance of a headset according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an equivalent circuit structure of an earphone according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating steps of a method for obtaining a current impedance of an earphone according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating steps of a method for determining a target gain of a headset according to an embodiment of the present invention;
fig. 6 is a second flowchart of a method for adjusting volume using an electrical parameter according to an embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 8 is a second block diagram of a mobile terminal according to the second embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
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 some, not all, embodiments of the present invention. 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.
Example one
Fig. 1 is a flowchart of a method for adjusting volume using an electrical parameter according to an embodiment of the present invention, where the method may be applied to a mobile terminal to which an earphone is connected, and as shown in fig. 1, the method may include:
step 101: an initial impedance of the headset is determined.
In the embodiment of the invention, the earphone is an earphone which is accessed into an earphone jack of the mobile terminal. Specifically, the earphone may be a standard earphone of the mobile terminal or a non-standard earphone, and the specific type of the earphone may not be limited in the embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps of a method for determining an initial impedance of a headset according to an embodiment of the present invention. As shown in fig. 2, the method may include:
step 1011: determining a type of the headset.
In practical application, in the case that the earphone is a standard earphone of the mobile terminal, the type of the earphone can be automatically identified.
In the case where the headset is a non-standard headset, the model of the headset may be determined in two ways: the first is to determine the model of the headset by a user manually inputting the model of the headset. For example, in a case where the user manually inputs that the model of the headset is "a" at a setting interactive interface of the mobile terminal, it may be determined that the model of the headset is a. And the second method is to determine the type of the earphone by detecting parameters such as load, impedance and the like detected when the earphone is connected to the mobile terminal. For example, when a new non-standard earphone is connected to the mobile terminal, the type of the earphone can be determined to be B when the detected parameters such as load and impedance are matched with the existing parameters of the earphone type B.
Step 1012: determining an initial impedance of the headset according to the type of the headset.
In the embodiment of the present invention, the initial impedance may be an impedance of the earphone in a factory state (i.e., in a state where the sound outlet hole of the earphone is not blocked). In practical applications, each type of earphone often has a respective initial impedance.
In practical applications, each type of earphone and the corresponding initial impedance may be pre-stored. For example: the initial impedance for type a headphones is 4 ohms and the impedance for type B headphones is 8 ohms.
In the embodiment of the present invention, after the type of the earphone is determined, the preset initial impedance of the earphone may be determined according to the type of the earphone.
For example, in the case where the type of the earphone is determined as type a, it is possible to directly determine that the initial impedance of the earphone is 4 ohms.
In an alternative embodiment of the invention, the initial impedance of the earphone may also be determined by another method.
First, a first ac signal may be sent to the headset when the headset is first accessed. In practical applications, when the earphone is connected to the mobile terminal, a first ac signal may be sent to the earphone, and specifically, the first ac signal may be a voltage signal or a current signal.
Then, the current impedance of the earphone is determined according to the first feedback signal of the earphone. In practical application, after the first alternating current signal is sent to the earphone, the earphone feeds back a first feedback signal, and the initial impedance of the earphone can be determined according to the first feedback signal.
For example, when the first ac signal is a voltage signal, the earphone may feed back a current signal according to the voltage signal, where the current signal is the first feedback signal, and the initial impedance of the earphone may be determined according to a ratio of the voltage signal to the current signal.
Step 102: obtaining a current impedance of the earphone.
Fig. 3 is a schematic structural diagram of an equivalent circuit of an earphone according to an embodiment of the present invention, and as shown in fig. 3, the equivalent circuit of the earphone may specifically include: a voice coil direct current resistor 30, a voice coil inductor 31, a front cavity sound outlet hole acoustic resistor 32, a front cavity acoustic capacitor 33 and a front cavity sound outlet hole acoustic inductor 34; the voice coil direct current resistor 30, the voice coil inductor 31 and the front cavity sound outlet hole acoustic resistor 32 are connected in series, and the front cavity acoustic capacitor 33, the front cavity sound outlet hole acoustic inductor 34 and the front cavity sound outlet hole acoustic resistor 32 are connected in parallel. In practical application, the current impedance Zx of the earphone may be the sum of the direct current resistance 30 of the voice coil and the sound hole resistance 32 of the front cavity, the direct current resistance 30 of the voice coil is a fixed value, and the value of the sound hole resistance 32 of the front cavity is related to the blocking condition of the sound hole of the earphone.
Specifically, when the sound outlet of the earphone is blocked by dust, oil, and other impurities, the front cavity sound outlet acoustic resistance 32 is increased, and the more serious the sound outlet of the earphone is, the larger the value of the front cavity sound outlet acoustic resistance 32 is, and accordingly, the larger the current impedance Zx of the earphone is.
In practical applications, the earphone may include a left sub-earphone and a right sub-earphone. The equivalent circuit of the earphone shown in fig. 3 may be the equivalent circuit of the left-side sub-earphone or the equivalent circuit of the right-side sub-earphone. That is to say, the sub-earphones of the earphone correspond to a single current impedance, in the embodiment of the present invention, only one sub-earphone of the earphone is taken as an example for description, and the other sub-earphones of the earphone are referred to and executed.
In the embodiment of the invention, the current impedance of the mobile terminal can be automatically acquired under the condition that the earphone is connected to the mobile terminal.
Fig. 4 is a flowchart illustrating steps of a method for obtaining a current impedance of an earphone according to an embodiment of the present invention. As shown in fig. 4, the method may include:
step 1021: and sending a second alternating current signal to the earphone under the condition that the earphone does not carry out audio transmission.
In the embodiment of the present invention, the condition that the earphone does not perform audio transmission may be a condition that the earphone is connected to the mobile terminal but does not perform audio transmission, that is, the earphone does not emit audio.
In practical applications, the second ac signal may be sent to the headset without audio transmission by the headset. Specifically, the second alternating current signal may be a voltage signal or a current signal.
In an optional embodiment of the present invention, the second ac signal may be sent to the earphone at a preset frequency to improve the accuracy of the obtained current impedance. Specifically, the preset frequency may be once in 10 minutes, once in 20 minutes, or other frequencies, and the preset frequency is not particularly limited in the embodiment of the present invention.
Step 1022: and determining the current impedance of the earphone according to the second feedback signal of the earphone.
In practical application, after the second alternating current signal is sent to the earphone, the earphone feeds back a second feedback signal, and the current impedance of the earphone can be determined according to the second feedback signal.
For example, when the second ac signal is a voltage signal, the earphone may feed back a feedback current signal according to the voltage signal, where the feedback current signal is the second feedback signal, and the current impedance of the earphone may be determined according to a ratio of the voltage signal to the feedback current signal.
For another example, when the second ac signal is a current signal, the earphone may feed back a feedback voltage signal according to the current signal, where the feedback voltage signal is the second feedback signal, and the current impedance of the earphone may be determined according to a ratio of the feedback voltage signal to the current signal.
Step 103: and determining the target gain of the earphone according to the current impedance and the initial impedance.
In the embodiment of the invention, the blockage condition of the sound outlet hole of the earphone can be judged according to the current impedance and the initial impedance of the earphone, and the target gain matched with the blockage condition is determined according to the blockage condition. In practical applications, the target gain may be a gain at which the earphone can achieve a better sound effect. Specifically, the target gain determination method of the headset may be as follows.
Fig. 5 is a flowchart of steps of a method for determining a target gain of an earphone according to an embodiment of the present invention, and as shown in fig. 5, the method may specifically include:
step 1031: determining an impedance difference between the present impedance and the initial impedance based on the present impedance and the initial impedance.
In the embodiment of the present invention, the impedance difference may be obtained according to the current impedance and the initial impedance, and specifically, the impedance difference may be used to evaluate a degree of change of the current impedance of the earphone relative to the initial impedance, that is, the impedance may more accurately evaluate a blocking condition of a sound outlet of the earphone.
Step 1032: determining a target gain matched to the impedance difference; wherein the matching relationship between the impedance difference value and the target gain is pre-stored.
In practical applications, there are often differences in the sound pressure level criteria for evaluating different types of headphones for their superior sound production. However, the criteria for evaluating the superior sound output effect of the same type of headphones tend to be the same. For example, for type A earphones, the superior sound effect can be 80-100 dB of the boost level standard.
In a specific application, the gain of the earphone can be adjusted, so that the earphone can achieve a better sound output effect. In the embodiment of the invention, the gain of the earphone for realizing a better initial sound effect is the target gain.
In practical application, the blocking degree of the sound outlet hole of the earphone is different, and the corresponding target gains are also different. Because the impedance difference value of the earphone can more accurately evaluate the blocking degree of the sound outlet hole of the earphone, in practical application, the corresponding relation between the impedance difference value and the target gain can be stored in advance.
For example, if the impedance difference of the antenna is measured to be 4 ohms through a test, and the target gain is 20 db, the corresponding relationship between the impedance difference of 4 ohms and the target gain of 20 db may be stored in advance.
In the embodiment of the invention, according to the impedance difference, not only can the blocking degree of the earphone be judged, but also the target gain of the earphone which can realize better sound output effect under the blocking degree can be obtained according to the blocking degree of the earphone.
Step 104: and sending the target power matched with the target gain to the earphone.
In the embodiment of the present invention, a target power matched with the target gain may be sent to the earphone, and specifically, the target power is a power capable of enabling the earphone to achieve the target gain.
In practical application, the matching relationship between the target gain and the target power may be stored in advance, so that after the target gain of the earphone is determined, the target power matched with the target gain may be called, and the target power may be sent to the earphone.
For example, if a target output power that is measured by a test and enables the earphone to achieve a target gain of 20 db is 5 watts, a matching relationship between the target gain of 20 db and the target output power of 5 watts may be stored in advance, and when the target gain is determined to be 20 db, the target output power of 5 watts matching with the target gain may be called, and the target power of 5 watts may be output to the earphone, so that the earphone may achieve the target gain of 20 db, and a better sound output effect may be achieved.
In the embodiment of the invention, the target power can enable the earphone to realize the target gain, so that the earphone can realize a better sound effect, the problem of volume reduction of the earphone caused by blockage of a sound outlet hole is avoided, and the use experience of a user on the earphone is improved.
In summary, the earphone adjusting method according to the embodiment of the present invention at least includes the following advantages:
in the embodiment of the invention, the initial impedance of the earphone can be determined under the condition that the earphone is accessed to the mobile terminal for the first time; obtaining a current impedance of the earphone. According to the current impedance and the initial impedance, not only can the blocking degree of the earphone be judged, but also a target gain of the earphone, which can realize a better sound output effect, under the blocking degree can be obtained according to the blocking degree of the earphone; and sending a target output power which can enable the earphone to achieve the target gain to the earphone so as to adjust the volume of the earphone. Therefore, the earphone can realize better sound effect, the problem that the volume of the earphone is reduced due to blockage of the sound hole is avoided, and the use experience of a user on the earphone is improved.
Example two
Fig. 6 is a second flowchart of a method for implementing volume adjustment by using an electrical parameter according to an embodiment of the present invention, where the method may be applied to a mobile terminal to which an earphone is connected, and as shown in fig. 6, the method may include:
step 601: an initial impedance of the headset is determined.
Step 602: obtaining a current impedance of the earphone.
Step 603: and determining the target gain of the earphone according to the current impedance and the initial impedance.
Step 604: and sending the target power matched with the target gain to the earphone.
Step 605: and sending prompt information to prompt the user that the earphone is abnormal when the impedance difference value between the current impedance and the initial impedance is greater than a preset value.
In the embodiment of the invention, the impedance difference value between the current impedance and the initial impedance can be used for evaluating the blocking degree of the sound outlet hole of the earphone, when the impedance difference value is larger than a preset value, the sound outlet hole of the earphone can be considered to be blocked in a large area, the blocking condition of the sound outlet hole of the earphone is serious, the sound outlet effect of the earphone is difficult to improve by increasing the gain of the earphone, and at the moment, prompt information can be sent to prompt a user that the earphone is abnormal so as to remind the user to repair or replace the earphone in time, avoid the user from continuing to use the earphone with the serious blocking condition, and further improve the use experience of the user.
In practical applications, a person skilled in the art may set specific values of the preset values according to the type of the headset and the practical usage requirements of the headset. For example, the preset value may be 10 ohms, 20 ohms, 25 ohms, and the specific value of the preset value may not be limited in the embodiment of the present invention.
In summary, the earphone adjusting method according to the embodiment of the present invention at least includes the following advantages:
in the embodiment of the invention, the initial impedance of the earphone can be determined under the condition that the earphone is accessed to the mobile terminal for the first time; obtaining a current impedance of the earphone. According to the current impedance and the initial impedance, not only can the blocking degree of the earphone be judged, but also a target gain of the earphone, which can realize a better sound output effect, under the blocking degree can be obtained according to the blocking degree of the earphone; and transmitting a target output power to the headset that enables the headset to achieve the target gain. Therefore, the earphone can realize better sound effect, the problem that the volume of the earphone is reduced due to blockage of the sound hole is avoided, and the use experience of a user on the earphone is improved.
In the embodiment of the invention, when the impedance difference value is greater than the preset value, it can be considered that the sound outlet hole of the earphone is blocked in a large area, the blocking condition of the sound outlet hole of the earphone is serious, and the sound outlet effect of the earphone is difficult to improve by increasing the gain of the earphone, at this time, prompt information can be sent to prompt a user that the earphone is abnormal so as to prompt the user to repair or replace the earphone in time, so that the user is prevented from continuously using the earphone with the serious blocking condition, and the use experience of the user is further improved.
EXAMPLE III
Fig. 7 is a block diagram of a mobile terminal to which an earphone is connected according to an embodiment of the present invention, and as shown in fig. 7, the mobile terminal 700 may include:
an initial impedance determination module 701, configured to determine an initial impedance of the earphone.
A current impedance obtaining module 702, configured to obtain a current impedance of the earphone.
A target gain determining module 703, configured to determine a target gain of the earphone according to the current impedance and the initial impedance.
A target power output module 704, configured to send a target power matched with the target gain to the earphone.
In summary, the mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of fig. 1, and is not described herein again to avoid repetition. The mobile terminal may include at least the following advantages:
in the embodiment of the invention, under the condition that the earphone is connected to the mobile terminal, the initial impedance of the earphone can be determined; obtaining a current impedance of the earphone. According to the current impedance and the initial impedance, not only can the blocking degree of the earphone be judged, but also a target gain of the earphone, which can realize a better sound output effect, under the blocking degree can be obtained according to the blocking degree of the earphone; and transmitting a target output power to the headset that enables the headset to achieve the target gain. Therefore, the earphone can realize better sound effect, the problem that the volume of the earphone is reduced due to blockage of the sound hole is avoided, and the use experience of a user on the earphone is improved.
Example four
Fig. 8 is a second block diagram of a mobile terminal to which an earphone is connected according to a second embodiment of the present invention, and as shown in fig. 8, the mobile terminal 800 may include:
An initial impedance determination module 801 for determining an initial impedance of the earphone.
A current impedance obtaining module 802, configured to obtain a current impedance of the earphone.
A target gain determining module 803, configured to determine a target gain of the earphone according to the current impedance and the initial impedance.
A target power output module 804, configured to send a target power matched with the target gain to the earphone.
And an alarm module 805, configured to send an earphone blockage condition alarm when an impedance difference between the current impedance and the initial impedance is greater than a preset value.
Optionally, the initial impedance determination module 801 may include:
a headset type determining sub-module 8011 is configured to determine the type of the headset.
An initial impedance determination submodule 8012 is configured to determine the initial impedance of the headset according to the type of the headset.
Optionally, the present impedance obtaining module 802 may include:
the signal sending submodule 8021 is configured to send a second alternating current signal to the earphone when the earphone does not perform audio transmission.
The current impedance determining submodule 8022 is configured to determine a current impedance of the earphone according to the second feedback signal of the earphone.
Optionally, the target gain determining module 803 may include:
an impedance difference determination submodule 8031, configured to determine, according to the current impedance and the initial impedance, an impedance difference between the current impedance and the initial impedance;
a target gain determination submodule 8032 for determining a target gain matched to the impedance difference; wherein the matching relationship between the impedance difference value and the target gain is pre-stored.
In summary, the mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of fig. 6, and is not described herein again to avoid repetition. The mobile terminal may include at least the following advantages:
in the embodiment of the invention, the initial impedance of the earphone can be determined under the condition that the earphone is accessed to the mobile terminal for the first time; obtaining a current impedance of the earphone. According to the current impedance and the initial impedance, not only can the blocking degree of the earphone be judged, but also a target gain of the earphone, which can realize a better sound output effect, under the blocking degree can be obtained according to the blocking degree of the earphone; and transmitting a target output power to the headset that enables the headset to achieve the target gain. Therefore, the earphone can realize better sound effect, the problem that the volume of the earphone is reduced due to blockage of the sound hole is avoided, and the use experience of a user on the earphone is improved.
In the embodiment of the invention, when the impedance difference value is greater than the preset value, it can be considered that the sound outlet hole of the earphone is blocked in a large area, the blocking condition of the sound outlet hole of the earphone is serious, and the sound outlet effect of the earphone is difficult to improve by increasing the gain of the earphone, at this time, prompt information can be sent to prompt a user that the earphone is abnormal so as to prompt the user to repair or replace the earphone in time, so that the user is prevented from continuously using the earphone with the serious blocking condition, and the use experience of the user is further improved.
EXAMPLE five
Figure 9 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein the processor 910 is configured to determine an initial impedance of the earphone.
A processor 910 configured to obtain a current impedance of the earphone.
A processor 910, configured to determine a target gain of the earphone according to the current impedance and the initial impedance.
A processor 910 configured to send a target power matched with the target gain to the earphone.
In summary, the mobile terminal may determine an initial impedance of the headset; obtaining a current impedance of the earphone. According to the current impedance and the initial impedance, not only can the blocking degree of the earphone be judged, but also a target gain of the earphone, which can realize a better sound output effect, under the blocking degree can be obtained according to the blocking degree of the earphone; and transmitting a target output power to the headset that enables the headset to achieve the target gain. Therefore, the earphone can realize better sound effect, the problem that the volume of the earphone is reduced due to blockage of the sound hole is avoided, and the use experience of a user on the earphone is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 910; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 901 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 902, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may also provide audio output related to a specific function performed by the mobile terminal 900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive audio or video signals. The input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphic processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 901 in case of the phone call mode.
The mobile terminal 900 also includes at least one sensor 905, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 9061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 9061 and/or backlight when the mobile terminal 900 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 905 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 906 is used to display information input by the user or information provided to the user. The Display unit 906 may include a Display panel 9061, and the Display panel 9061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 907 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 9071 (e.g., operations by a user on or near the touch panel 9071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 9071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 9071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 907 may include other input devices 9072 in addition to the touch panel 9071. Specifically, the other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, and the like), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation on or near the touch panel 9071, the touch panel is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of the touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 908 is an interface through which external devices are connected to the mobile terminal 900. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 908 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the mobile terminal 900 or may be used to transmit data between the mobile terminal 900 and external devices.
The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 909 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 910 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 909 and calling data stored in the memory 909, thereby performing overall monitoring of the mobile terminal. Processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The mobile terminal 900 may also include a power supply 911 (e.g., a battery) for powering the various components, and preferably, the power supply 911 is logically connected to the processor 910 through a power management system that provides power management functions to manage charging, discharging, and power consumption.
In addition, the mobile terminal 900 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 910, a memory 909, and a computer program stored in the memory 909 and capable of running on the processor 910, and when the computer program is executed by the processor 910, the computer program implements each process of the above method embodiment for implementing volume adjustment by using an electrical parameter, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above method for implementing volume adjustment by using an electrical parameter, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
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 solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A method for realizing volume adjustment by using electric parameters is applied to a mobile terminal, and an earphone is connected to the mobile terminal, and the method is characterized by comprising the following steps:
determining an initial impedance of the headset in case the headset is first connected to the mobile terminal;
obtaining the current impedance of the earphone;
determining a target gain of the earphone according to the current impedance and the initial impedance;
transmitting a target power matched with the target gain to the headset;
wherein the step of determining a target gain of the headset from the current impedance and the initial impedance comprises:
determining an impedance difference between the current impedance and the initial impedance according to the current impedance and the initial impedance;
Determining a target gain matched to the impedance difference; wherein the matching relationship between the impedance difference value and the target gain is pre-stored;
the step of determining an initial impedance of the earpiece comprises:
determining a type of the headset;
determining an initial impedance of the headset according to the type of the headset;
the determining the type of the headset comprises:
receiving the type of the earphone manually input by a user on a setting interactive interface of the mobile terminal; the target gain is the gain of the earphone for realizing the target sound output effect; and sound pressure level standards corresponding to the target sound output effects of different types of earphones are different.
2. The method of claim 1, wherein the step of determining an initial impedance of the headset comprises:
when the earphone is accessed for the first time, a first alternating current signal is sent to the earphone;
determining the current impedance of the earphone according to the first feedback signal of the earphone.
3. The method of claim 1, further comprising, after the step of obtaining the current impedance of the headset:
and sending prompt information to prompt the user that the earphone is abnormal when the impedance difference value between the current impedance and the initial impedance is greater than a preset value.
4. The method of claim 1, wherein the step of obtaining the current impedance of the headset comprises:
sending a second alternating current signal to the earphone under the condition that the earphone does not carry out audio transmission;
and determining the current impedance of the earphone according to the second feedback signal of the earphone.
5. The method of claim 4, wherein the second AC signal is a voltage signal or a current signal;
the step of determining the current impedance of the earphone according to the second feedback signal comprises:
acquiring a feedback current signal fed back by the earphone according to the voltage signal, or acquiring a feedback voltage signal fed back by the earphone according to the current signal;
and determining the current impedance of the earphone according to the ratio of the voltage signal to the feedback current signal or the ratio of the feedback voltage signal to the current signal.
6. A mobile terminal to which a headset is attached, comprising:
the initial impedance determining module is used for determining the initial impedance of the earphone under the condition that the earphone is connected to the mobile terminal for the first time;
A current impedance obtaining module, configured to obtain a current impedance of the earphone;
a target gain determination module, configured to determine a target gain of the earphone according to the current impedance and the initial impedance;
a target power output module for sending a target power matched with the target gain to the earphone;
wherein the target gain determination module comprises:
the impedance difference value determining submodule is used for determining an impedance difference value between the current impedance and the initial impedance according to the current impedance and the initial impedance;
a target gain determination submodule for determining a target gain matched to the impedance difference; wherein the matching relationship between the impedance difference value and the target gain is pre-stored;
the mobile terminal is further used for determining the type of the earphone;
determining an initial impedance of the headset according to the type of the headset;
the determining the type of the headset comprises:
receiving the type of the earphone manually input by a user on a setting interactive interface of the mobile terminal; the target gain is the gain of the earphone for realizing the target sound output effect; and sound pressure level standards corresponding to the target sound output effects of different types of earphones are different.
7. The mobile terminal of claim 6, further comprising:
and the warning module is used for sending out prompt information to prompt a user that the earphone is abnormal when the impedance difference value between the current impedance and the initial impedance is greater than a preset value.
8. A mobile terminal comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing a method for volume adjustment using electrical parameters according to any one of claims 1 to 5.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of carrying out volume adjustment using an electrical parameter according to any one of claims 1 to 5.
CN201811341370.6A 2018-11-12 2018-11-12 Method for adjusting volume by using electrical parameters and mobile terminal Active CN109348366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811341370.6A CN109348366B (en) 2018-11-12 2018-11-12 Method for adjusting volume by using electrical parameters and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811341370.6A CN109348366B (en) 2018-11-12 2018-11-12 Method for adjusting volume by using electrical parameters and mobile terminal

Publications (2)

Publication Number Publication Date
CN109348366A CN109348366A (en) 2019-02-15
CN109348366B true CN109348366B (en) 2022-07-29

Family

ID=65315060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811341370.6A Active CN109348366B (en) 2018-11-12 2018-11-12 Method for adjusting volume by using electrical parameters and mobile terminal

Country Status (1)

Country Link
CN (1) CN109348366B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324775B (en) * 2019-05-14 2021-06-15 惠州Tcl移动通信有限公司 Earphone identification method, mobile terminal, earphone and storage medium
CN113709613A (en) * 2019-07-10 2021-11-26 Oppo广东移动通信有限公司 Volume adjusting method and device and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729958A (en) * 2008-10-24 2010-06-09 深圳富泰宏精密工业有限公司 Audio frequency output device
CN101964932A (en) * 2010-10-22 2011-02-02 张沈平 Sound source equipment and control method
CN102892058A (en) * 2011-07-18 2013-01-23 中兴通讯股份有限公司 Method and device for automatically regulating volume
CN103918282A (en) * 2011-09-06 2014-07-09 三星电子株式会社 Method and apparatus for processing audio signal
CN104244141A (en) * 2013-06-21 2014-12-24 深圳富泰宏精密工业有限公司 Earphone audio output control circuit
CN106303815A (en) * 2015-05-22 2017-01-04 西安中兴新软件有限责任公司 Method for controlling volume and electronic equipment
CN107734427A (en) * 2017-09-13 2018-02-23 广州市迪士普信息科技有限公司 A kind of guard method and device according to voice coil loudspeaker voice coil temperature rise adjust automatically speaker volume

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729958A (en) * 2008-10-24 2010-06-09 深圳富泰宏精密工业有限公司 Audio frequency output device
CN101964932A (en) * 2010-10-22 2011-02-02 张沈平 Sound source equipment and control method
CN102892058A (en) * 2011-07-18 2013-01-23 中兴通讯股份有限公司 Method and device for automatically regulating volume
CN103918282A (en) * 2011-09-06 2014-07-09 三星电子株式会社 Method and apparatus for processing audio signal
CN104244141A (en) * 2013-06-21 2014-12-24 深圳富泰宏精密工业有限公司 Earphone audio output control circuit
CN106303815A (en) * 2015-05-22 2017-01-04 西安中兴新软件有限责任公司 Method for controlling volume and electronic equipment
CN107734427A (en) * 2017-09-13 2018-02-23 广州市迪士普信息科技有限公司 A kind of guard method and device according to voice coil loudspeaker voice coil temperature rise adjust automatically speaker volume

Also Published As

Publication number Publication date
CN109348366A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109905812B (en) Input power control method and device and terminal equipment
CN111385714B (en) Method for determining voice coil temperature of loudspeaker, electronic device and storage medium
CN109215683B (en) Prompting method and terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN110012143B (en) Telephone receiver control method and terminal
CN110830861B (en) Telephone receiver control method and device and electronic equipment
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN109547894B (en) Amplitude adjustment method and device for electroacoustic device and mobile terminal
CN108848267B (en) Audio playing method and mobile terminal
CN111459447B (en) Volume adjustment display method and electronic equipment
CN111225315B (en) Audio playing device, audio playing method and electronic equipment
CN111182118B (en) Volume adjusting method and electronic equipment
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN110995909B (en) Sound compensation method and device
CN111614329A (en) Power amplifier, electronic equipment, voltage control method and device
CN109348366B (en) Method for adjusting volume by using electrical parameters and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN108307075B (en) Incoming call processing method and mobile terminal
CN109270352B (en) Amplitude adjusting method and sound generating device
CN110673761B (en) Touch key detection method and terminal equipment thereof
CN110209543B (en) Earphone socket detection method and terminal
CN109450508B (en) Antenna determination method and device and mobile terminal
CN108600566B (en) Interference processing method and mobile terminal
CN109005377B (en) Video processing method and terminal equipment
CN108900942B (en) Play control method and electronic equipment

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