[go: up one dir, main page]

CN109348366B - A method and mobile terminal for realizing volume adjustment using electrical parameters - Google Patents

A method and mobile terminal for realizing volume adjustment using electrical parameters 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
mobile terminal
current
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)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (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

一种利用电参数实现音量调节的方法及移动终端A method and mobile terminal for realizing volume adjustment using electrical parameters

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种利用电参数实现音量调节方法及移动终端。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a method and a mobile terminal for realizing volume adjustment using electrical parameters.

背景技术Background technique

随着移动终端在人们生活中发挥着越来越重要的作用,人们每天使用移动终端的频率也越来越高,日常生活和工作与移动终端的关系也越来越密切。用户经常会需要使用移动终端来收听声音、观看视频等,为了避免移动终端的扬声器播放的音频干扰到他人,用户往往采用耳机来接听移动终端的音频。As mobile terminals play an increasingly important role in people's lives, people use mobile terminals more and more frequently every day, and the relationship between daily life and work and mobile terminals is also getting closer and closer. A user often needs to use a mobile terminal to listen to sound, watch video, etc. In order to prevent the audio played by the speaker of the mobile terminal from interfering with others, the user often uses an earphone to listen to the audio of the mobile terminal.

然而,随着耳机使用频率的增加,耳机上的出音孔很容易被灰尘、油污等杂物堵塞,从而导致耳机的音量下降,影响用户的使用体验。However, as the frequency of use of the earphones increases, the sound holes on the earphones are easily blocked by debris such as dust and oil, which leads to a decrease in the volume of the earphones and affects the user experience.

发明内容SUMMARY OF THE INVENTION

本发明提供一种利用电参数实现音量调节的方法及移动终端,以便解决进行耳机容易被堵塞导致耳机音量下降的问题。The present invention provides a method and a mobile terminal for realizing volume adjustment by using electrical parameters, so as to solve the problem that the earphone is easily blocked and the volume of the earphone is lowered.

为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:

第一方面,本发明实施例提供了一种利用电参数实现音量调节的方法,应用于移动终端,耳机接入所述移动终端,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for realizing volume adjustment by using electrical parameters, which is applied to a mobile terminal, and an earphone is connected to the mobile terminal, and the method includes:

确定所述耳机的初始阻抗;获取所述耳机的当前阻抗;determine the initial impedance of the earphone; obtain the current impedance of the earphone;

根据所述当前阻抗和所述初始阻抗,确定所述耳机的目标增益;determining the target gain of the earphone according to the current impedance and the initial impedance;

将与所述目标增益匹配的目标功率发送给所述耳机。A target power matching the target gain is sent to the earphone.

第二方面,本发明实施例提供了一种移动终端,耳机接入所述移动终端,该移动终端可以包括:In a second aspect, an embodiment of the present invention provides a mobile terminal to which a headset is connected, and the mobile terminal may include:

初始阻抗确定模块,用于确定所述耳机的初始阻抗;当前阻抗获取模块,用于获取所述耳机的当前阻抗;an initial impedance determination module for determining the initial impedance of the earphone; a current impedance acquisition module for acquiring the current impedance of the earphone;

目标增益确定模块,用于根据所述当前阻抗和所述初始阻抗,确定所述耳机的目标增益;a target gain determination module, configured to determine the target gain of the earphone according to the current impedance and the initial impedance;

目标功率输出模块,用于将与所述目标增益匹配的目标功率发送给所述耳机。A target power output module, configured to send the target power matching 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 is executed by the processor At the time, the steps of the method for realizing volume adjustment by using electrical parameters as described in the first aspect are realized.

第四方面,本发明实施例提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的利用电参数实现音量调节的方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program is implemented as described in the first aspect when the computer program is executed by a processor. The steps of the method for realizing volume adjustment by using electrical parameters.

在本发明实施例中,在耳机接入移动终端的情况下,可以确定所述耳机的初始阻抗,获取所述耳机的当前阻抗。根据所述当前阻抗和所述初始阻抗,不仅可以判断出所述耳机的堵塞程度,还可以根据所述耳机的堵塞程度,得出所述耳机在所述堵塞程度下,能够实现较优的出音效果的目标增益;并将能够使得所述耳机实现所述目标增益的目标输出功率发送给所述耳机,以调节所述耳机音量。这样,所述耳机就可以实现较优的出音效果,避免了所述耳机出现由于出音孔堵塞导致的音量下降的问题,提升用户对于耳机的使用体验。In the embodiment of the present invention, when 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 the degree of blockage of the earphone can be determined, but also according to the degree of blockage of the earphone, it can be concluded that the earphone can achieve a better output under the degree of blockage. The target gain of the sound effect; and the target output power that enables the earphone to achieve the target gain is sent to the earphone, so as to adjust the volume of the earphone. In this way, the earphone can achieve a better sound output effect, avoid the problem of the volume drop of the earphone due to the blockage of the sound outlet hole, and improve the user's experience of using the earphone.

附图说明Description of drawings

图1是本发明实施例提供的利用电参数实现音量调节的方法的流程图之一;Fig. 1 is one of the flow charts of the method that utilizes electric parameter to realize volume adjustment provided by the embodiment of the present invention;

图2是本发明实施例提供的确定耳机的初始阻抗方法的步骤流程图;2 is a flowchart of steps of a method for determining an initial impedance of an earphone provided by an embodiment of the present invention;

图3是本发明实施例提供的耳机等效电路结构示意图;3 is a schematic structural diagram of an equivalent circuit of an earphone provided by an embodiment of the present invention;

图4是本发明实施例提供的获取耳机当前阻抗方法的步骤流程图;4 is a flowchart of steps of a method for obtaining the current impedance of an earphone provided by an embodiment of the present invention;

图5是本发明实施例提供的确定耳机的目标增益方法的步骤流程图;5 is a flowchart of steps of a method for determining a target gain of an earphone provided by an embodiment of the present invention;

图6是本发明实施例提供的利用电参数实现音量调节的方法的流程图之二;Fig. 6 is the second flow chart of the method for realizing volume adjustment by using electrical parameters provided by an embodiment of the present invention;

图7是本发明实施例提供的一种移动终端的框图之一;7 is one of the block diagrams of a mobile terminal provided by an embodiment of the present invention;

图8是本发明实施例提供的一种移动终端的框图之二;8 is the second block diagram of a mobile terminal provided by an embodiment of the present invention;

图9为实现本发明各个实施例的一种移动终端的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例一Example 1

图1是本发明实施例提供的利用电参数实现音量调节的方法的流程图之一,该方法可以应用于移动终端,耳机接入所述移动终端,如图1所示,该方法可以包括:FIG. 1 is one of the flowcharts of a method for implementing volume adjustment using electrical parameters provided by an embodiment of the present invention. The method can be applied to a mobile terminal, and an earphone is connected to the mobile terminal. As shown in FIG. 1 , the method may include:

步骤101:确定耳机的初始阻抗。Step 101: Determine the initial impedance of the earphone.

本发明实施例中,所述耳机为接入所述移动终端的耳机插孔内的耳机。具体地,所述耳机可以为所述移动终端的标配耳机,也可以为非标配的耳机,本发明实施例对于所述耳机的具体类型可以不做限定。In this embodiment of the present invention, the earphone is an earphone connected to 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 this embodiment of the present invention.

图2是本发明实施例提供的确定耳机的初始阻抗方法的步骤流程图。如图2所示,该方法可以包括:FIG. 2 is a flowchart of steps of a method for determining an initial impedance of an earphone provided by an embodiment of the present invention. As shown in Figure 2, the method may include:

步骤1011:确定所述耳机的类型。Step 1011: Determine the type of the headset.

在实际应用中,在所述耳机为所述移动终端的标配耳机的情况下,可以自动识别所述耳机的类型。In practical applications, in the case that the headset is a standard headset of the mobile terminal, the type of the headset can be automatically identified.

在所述耳机为非标配耳机的情况下,可以通过以下两种方式来确定所述耳机的型号:第一种为通过用户手动输入所述耳机的型号来确定所述耳机的型号。例如,在用户在所述移动终端的设置交互界面手动输入所述耳机的型号为“A”的情况下,可以确定所述耳机的型号为A。第二种为通过检测所述耳机接入所述移动终端时检测到的负载以及阻抗等参数,确定所述耳机的型号。例如,在新的非标配耳机接入所述移动终端时,在检测到的负载和阻抗等参数与已有的耳机类型B的参数匹配的情况下,即可确定所述耳机的类型为B。In the case that the earphone is a non-standard earphone, the model of the earphone can be determined in the following two ways: the first is to determine the model of the earphone by manually inputting the model of the earphone by the user. For example, in the case where the user manually inputs the model of the headset as "A" on the setting interactive interface of the mobile terminal, the model of the headset may be determined to be A. The second is to determine the model of the earphone by detecting parameters such as load and impedance detected when the earphone is connected to the mobile terminal. For example, when a new non-standard headset is connected to the mobile terminal, and the detected parameters such as load and impedance match the parameters of the existing headset type B, it can be determined that the headset type is B .

步骤1012:根据所述耳机的类型,确定所述耳机的初始阻抗。Step 1012: Determine the initial impedance of the earphone according to the type of the earphone.

本发明实施例中,所述初始阻抗可以为耳机在出厂状态下(即耳机的出音孔没有被堵塞的状态下)的阻抗。在实际应用中,各类型的耳机往往对应有各自的初始阻抗。In this embodiment of the present invention, the initial impedance may be the impedance of the earphone in a factory state (ie, a state in which the sound outlet of the earphone is not blocked). In practical applications, various types of headphones often have their own initial impedances.

在实际应用中,可以将各类型的耳机以及对应的初始阻抗进行预先存储。例如:A类型的耳机对应的初始阻抗为4欧姆,B类型的耳机对应的阻抗为8欧姆。In practical applications, various types of earphones and corresponding initial impedances can be stored in advance. For example, the corresponding initial impedance of type A headphones is 4 ohms, and the corresponding impedance of type B headphones is 8 ohms.

本发明实施例中,在确定了所述耳机的类型之后,可以根据所述耳机的类型,确定所述耳机预设的初始阻抗。In this 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.

例如,在确定了所述耳机的类型为A类型的情况下,即可直接确定所述耳机的初始阻抗为4欧姆。For example, when it is determined that the type of the earphone is type A, it can be directly determined that the initial impedance of the earphone is 4 ohms.

在本发明的一种可选实施例中,还可以通过另外一种方法确定所述耳机的初始阻抗。In an optional embodiment of the present invention, another method may also be used to determine the initial impedance of the earphone.

首先,在所述耳机第一次接入时,可以向所述耳机发送第一交流信号。在实际应用中,在所述耳机接入所述移动终端时,可以向所述耳机发送第一交流信号,具体地,所述第一交流信号可以为电压信号或者电流信号。First, when the earphone is connected for the first time, a first AC signal can be sent to the earphone. In practical applications, when the headset is connected to the mobile terminal, a first AC signal may be sent to the headset, 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 applications, after the first AC signal is sent to the earphone, the earphone will feed 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 can feed back a current signal according to the voltage signal, and the current signal is the first feedback signal. The ratio of the current signals can be used to determine the initial impedance of the earphone.

步骤102:获取所述耳机的当前阻抗。Step 102: Obtain the current impedance of the earphone.

图3是本发明实施例提供的耳机等效电路结构示意图,如图3所示,所述耳机等效电路具体可以包括:音圈直流电阻30、音圈电感31、前腔出音孔声阻32、前腔声容33以及前腔出音孔声感34;其中,音圈直流电阻30、音圈电感31以及前腔出音孔声阻32串联连接,前腔声容33、前腔出音孔声感34与前腔出音孔声阻32并联连接。在实际应用中,所述耳机的当前阻抗Zx可以为音圈直流电阻30和前腔出音孔声阻32的电阻之和,音圈直流电阻30是固定值,前腔出音孔声阻32的值则与所述耳机的出音孔堵塞情况有关。FIG. 3 is a schematic structural diagram of an equivalent circuit of an earphone provided by an embodiment of the present invention. As shown in FIG. 3 , the equivalent circuit of the earphone may specifically include: a voice coil DC resistance 30 , a voice coil inductance 31 , and an acoustic resistance of the sound outlet of the front cavity. 32. The front cavity sound capacity 33 and the front cavity sound hole sound sense 34; wherein, the voice coil DC resistance 30, the voice coil inductance 31 and the front cavity sound hole sound resistance 32 are connected in series, the front cavity sound capacity 33, the front cavity output The sound hole sound sense 34 is connected in parallel with the front cavity sound hole sound resistance 32 . In practical application, the current impedance Zx of the earphone can be the sum of the resistance of the voice coil DC resistance 30 and the sound resistance 32 of the front cavity sound hole, the voice coil DC resistance 30 is a fixed value, and the front cavity sound hole sound resistance 32 The value of is related to the blockage of the sound outlet of the earphone.

具体地,在所述耳机的出音孔被灰尘、油污等杂物堵塞的情况下,会导致前腔出音孔声阻32增大,而且,所述耳机的出音孔堵塞程度越严重,前腔出音孔声阻32的值越大,相应地,所述耳机的当前阻抗Zx也越大。Specifically, when the sound outlet of the earphone is blocked by debris such as dust, oil, etc., the sound resistance 32 of the sound outlet of the front cavity will increase, and the more seriously the sound outlet of the earphone is blocked, The larger the value of the acoustic resistance 32 of the sound hole in the front cavity is, the correspondingly the current impedance Zx of the earphone is also larger.

在实际应用中,所述耳机可能包括有左侧子耳机和右侧子耳机。图3示出的耳机等效电路可以为左侧子耳机的等效电路或者右侧子耳机的等效电路。也就是说,所述耳机的子耳机分别对应一个单独的当前阻抗,本发明实施例中,仅以所述耳机中的一个子耳机为例进行说明,所述耳机中的其他子耳机参照执行即可。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 sub-earphone or the equivalent circuit of the right sub-earphone. That is to say, the sub-earphones of the earphone correspond to a separate current impedance respectively. In the embodiment of the present invention, only one sub-earphone in the earphone is used as an example for description, and the other sub-earphones in the earphone refer to the execution Can.

本发明实施例中,在所述耳机接入所述移动终端的情况下,可以自动获取所述移动终端的当前阻抗。In this embodiment of the present invention, when the earphone is connected to the mobile terminal, the current impedance of the mobile terminal can be automatically acquired.

图4是本发明实施例提供的获取耳机当前阻抗方法的步骤流程图。如图4所示,该方法可以包括:FIG. 4 is a flowchart of steps of a method for obtaining a current impedance of an earphone provided by an embodiment of the present invention. As shown in Figure 4, the method may include:

步骤1021:在所述耳机未进行音频传输的情况下,向所述耳机发送第二交流信号。Step 1021: Send a second AC signal to the earphone when the earphone is not performing audio transmission.

本发明实施例中,所述耳机未进行音频传输的情况可以为所述耳机接入所述移动终端但是却没有进行音频传输的情况下,也即,所述耳机没有发出音频的情况。In this embodiment of the present invention, the situation where the headset does not perform audio transmission may be a situation where the headset is connected to the mobile terminal but does not perform audio transmission, that is, the headset does not emit audio.

在实际应用中,在所述耳机未进行音频传输的情况下,可以向所述耳机发送第二交流信号。具体地,所述第二交流信号可以为电压信号或者电流信号。In practical applications, when the earphone does not perform audio transmission, a second AC signal may be sent to the earphone. Specifically, the second AC signal may be a voltage signal or a current signal.

在本发明的一种可选实施例中,可以以预设频率向所述耳机发送所述第二交流信号,以提高获取到的所述当前阻抗的准确度。具体地,所述预设频率可以为10分钟一次、20分钟一次或者其他的频率,本发明实施例对于所述预设频率不做具体限定。In an optional embodiment of the present invention, the second AC signal may be sent to the earphone at a preset frequency, so as to improve the accuracy of the acquired current impedance. Specifically, the preset frequency may be once every 10 minutes, once every 20 minutes, or other frequencies, and the embodiment of the present invention does not specifically limit the preset frequency.

步骤1022:根据所述耳机的第二反馈信号,确定所述耳机的当前阻抗。Step 1022: Determine the current impedance of the earphone according to the second feedback signal of the earphone.

在实际应用中,在向所述耳机发送所述第二交流信号后,所述耳机会反馈回第二反馈信号,根据所述第二反馈信号,即可确定出所述耳机的当前阻抗。In practical applications, after the second AC signal is sent to the earphone, the earphone will feed back a second feedback signal, and the current impedance of the earphone can be determined according to the second feedback signal.

例如,在所述第二交流信号为电压信号的情况下,所述耳机可以根据所述电压信号反馈回反馈电流信号,所述反馈电流信号即为所述第二反馈信号,根据所述电压信号和所述反馈电流信号的比值,即可确定所述耳机的当前阻抗。For example, in the case where the second AC signal is a voltage signal, the earphone can feed back a feedback current signal according to the voltage signal, and the feedback current signal is the second feedback signal, according to the voltage signal and the ratio of the feedback current signal, the current impedance of the earphone can be determined.

又如,在所述第二交流信号为电流信号的情况下,所述耳机可以根据所述电流信号反馈回反馈电压信号,所述反馈电压信号即为所述第二反馈信号,根据所述反馈电压信号和所述电流信号的比值,即可确定所述耳机的当前阻抗。For another example, when the second AC signal is a current signal, the earphone can feed back a feedback voltage signal according to the current signal, and the feedback voltage signal is the second feedback signal, according to the feedback The ratio of the voltage signal to the current signal can determine the current impedance of the earphone.

步骤103:根据所述当前阻抗和所述初始阻抗,确定所述耳机的目标增益。Step 103: Determine the target gain of the earphone according to the current impedance and the initial impedance.

本发明实施例中,根据所述耳机的当前阻抗和初始阻抗,即可判断出所述耳机的出音孔的堵塞情况,根据所述堵塞情况,确定与所述堵塞情况匹配的目标增益。在实际应用中,所述目标增益可以为耳机能够实现较优出音效果的增益。具体的,所述耳机的目标增益确定方法可以如下所示。In the embodiment of the present invention, according to the current impedance and the initial impedance of the earphone, the blockage of the sound outlet of the earphone can be determined, and according to the blockage, a target gain matching the blockage is determined. In practical applications, the target gain may be a gain that enables the earphone to achieve better sound output. Specifically, the method for determining the target gain of the earphone may be as follows.

图5是本发明实施例提供的确定耳机的目标增益方法的步骤流程图,如图5所示,该方法具体可以包括:FIG. 5 is a flowchart of steps of a method for determining a target gain of an earphone provided by an embodiment of the present invention. As shown in FIG. 5 , the method may specifically include:

步骤1031:根据所述当前阻抗和所述初始阻抗,确定所述当前阻抗与所述初始阻抗之间的阻抗差值。Step 1031: Determine an impedance difference between the current impedance and the initial impedance according to the current impedance and the initial impedance.

本发明实施例中,所述阻抗差值可以根据所述当前阻抗和所述初始阻抗得出,具体地,所述阻抗差值可以用来评价所述耳机的当前阻抗相对初始阻抗的变化程度,也即,所述阻抗能够较为准确的评价所述耳机的出音孔的堵塞情况。In this embodiment of the present invention, the impedance difference value may be obtained according to the current impedance and the initial impedance. Specifically, the impedance difference value may be used to evaluate the degree of change of the current impedance of the earphone relative to the initial impedance, That is, the impedance can more accurately evaluate the blockage of the sound outlet of the earphone.

步骤1032:确定与所述阻抗差值匹配的目标增益;其中,所述阻抗差值与所述目标增益的匹配关系是预先存储的。Step 1032: Determine a target gain matching the impedance difference; wherein, the matching relationship between the impedance difference and the target gain is pre-stored.

在实际应用中,对于不同类型的耳机来说,评价其具有较优的出音效果的声压级标准往往存在差异。但是,对于同一类型的耳机,评价其具有较优的出音效果的标准往往相同的。例如,对于A类型的耳机来说,其较优的出音效果可以为其升压级标准为80~100dB。In practical applications, for different types of earphones, there are often differences in the sound pressure level criteria for evaluating their excellent sound output. However, for the same type of headphones, the criteria for evaluating their superior sound output are often the same. For example, for a type A earphone, the better sound output effect may be 80-100dB for its boost level.

在具体的应用中,可以调节所述耳机的增益,以使的所述耳机实现较优的出音效果。本发明实施例中,能够使得所述耳机实现较优的初音效果的增益即为所述目标增益。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 present invention, the gain that enables the earphone to achieve a better initial sound effect is the target gain.

在实际应用中,所述耳机的出音孔的堵塞程度不同,其对应的目标增益也会不同。由于所述耳机的阻抗差值可以较为准确的评价所述耳机的出音孔的堵塞程度,因此,在实际应用中,可以预先将所述阻抗差值和所述目标增益的对应关系进行存储。In practical applications, the degree of blockage of the sound outlet of the earphone is different, and the corresponding target gain is also different. Since the impedance difference value of the earphone can more accurately evaluate the degree of blockage of the sound outlet of the earphone, in practical application, the corresponding relationship between the impedance difference value and the target gain can be stored in advance.

例如,若通过试验测得所述天线的阻抗差值为4欧姆时,所述目标增益为20分贝,即可将所述阻抗差值4欧姆和所述目标增益20分贝的对应关系进行预先存储。For example, if the impedance difference of the antenna is measured to be 4 ohms and the target gain is 20 decibels, the corresponding relationship between the impedance difference of 4 ohms and the target gain of 20 decibels can be stored in advance .

本发明实施例中,根据所述阻抗差值,不仅可以判断出所述耳机的堵塞程度,还可以根据所述耳机的堵塞程度,得出所述耳机在所述堵塞程度下,能够实现较优的出音效果的目标增益。In the embodiment of the present invention, according to the impedance difference, not only the degree of blockage of the earphone can be determined, but also according to the degree of blockage of the earphone, it can be concluded that the earphone can achieve better performance under the degree of blockage. The target gain of the sound-out effect.

步骤104:将与所述目标增益匹配的目标功率发送给所述耳机。Step 104: Send the target power matching the target gain to the earphone.

本发明实施例中,可以将与所述目标增益匹配的目标功率发送给所述耳机,具体地,所述目标功率为能够使得所述耳机实现所述目标增益的功率。In this embodiment of the present invention, a target power matching the target gain may be sent to the earphone, and specifically, the target power is a power that enables the earphone to achieve the target gain.

在实际应用中,可以将所述目标增益与所述目标功率的匹配关系进行预先储存,这样,在确定好所述耳机的目标增益之后,即可调用与所述目标增益匹配的目标功率,并将所述目标功率发送给所述耳机。In practical applications, the matching relationship between the target gain and the target power can be stored in advance, so that after the target gain of the earphone is determined, the target power matching the target gain can be called, and The target power is sent to the headset.

例如,若试验测得能够使得所述耳机实现目标增益20分贝的目标输出功率为5瓦特,即可将所述目标增益20分贝与所述目标输出功率5瓦特的匹配关系进行预先存储,在确定所述目标增益为20分贝的情况下,即可调用与其匹配的目标输出功率5瓦特,并向所述耳机输出所述目标功率5瓦特,以使得所示耳机能够实现所述目标增益20分贝,实现较优的出音效果。For example, if the target output power that enables the earphone to achieve a target gain of 20 decibels is 5 watts, the matching relationship between the target gain of 20 decibels and the target output power of 5 watts can be pre-stored, and after determining When the target gain is 20 decibels, the matching target output power of 5 watts can be called, and the target power of 5 watts can be output to the earphone, so that the earphone can achieve the target gain of 20 decibels, To achieve better sound effect.

本发明实施例中,由于所述目标功率能够使得所述耳机能够实现所述目标增益,这样,所述耳机就能够实现较优的出音效果,避免所述耳机出现由于出音孔堵塞导致的音量下降的问题,提升用户对于耳机的使用体验。In the embodiment of the present invention, since the target power can enable the earphone to achieve the target gain, the earphone can achieve a better sound output effect, and avoid the earphone from being caused by the blockage of the sound outlet hole. The problem of volume drop improves the user's experience of using headphones.

综上,本发明实施例所述的耳机调节方法至少包括以下优点:To sum up, the headphone adjustment method according to the embodiment of the present invention at least includes the following advantages:

本发明实施例中,在耳机第一次接入移动终端的情况下,可以确定所述耳机的初始阻抗;获取所述耳机的当前阻抗。根据所述当前阻抗和所述初始阻抗,不仅可以判断出所述耳机的堵塞程度,还可以根据所述耳机的堵塞程度,得出所述耳机在所述堵塞程度下,能够实现较优的出音效果的目标增益;并将能够使得所述耳机实现所述目标增益的目标输出功率发送给所述耳机,以调节所述耳机音量。这样,所述耳机就可以实现较优的出音效果,避免了所述耳机出现由于出音孔堵塞导致的音量下降的问题,提升用户对于耳机的使用体验。In this embodiment of the present invention, when the earphone is connected to the mobile terminal for the first time, 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 the degree of blockage of the earphone can be determined, but also according to the degree of blockage of the earphone, it can be concluded that the earphone can achieve a better output under the degree of blockage. The target gain of the sound effect; and the target output power that enables the earphone to achieve the target gain is sent to the earphone, so as to adjust the volume of the earphone. In this way, the earphone can achieve a better sound output effect, avoid the problem of the volume drop of the earphone due to the blockage of the sound outlet hole, and improve the user's experience of using the earphone.

实施例二Embodiment 2

图6是本发明实施例提供的利用电参数实现音量调节的方法的流程图之二,该方法可以应用于移动终端,耳机接入所述移动终端,如图6所示,该方法可以包括:FIG. 6 is the second flowchart of the method for implementing volume adjustment using electrical parameters provided by an embodiment of the present invention. The method can be applied to a mobile terminal, and an earphone is connected to the mobile terminal. As shown in FIG. 6 , the method may include:

步骤601:确定耳机的初始阻抗。Step 601: Determine the initial impedance of the earphone.

步骤602:获取所述耳机的当前阻抗。Step 602: Obtain the current impedance of the earphone.

步骤603:根据所述当前阻抗和所述初始阻抗,确定所述耳机的目标增益。Step 603: Determine the target gain of the earphone according to the current impedance and the initial impedance.

步骤604:将与所述目标增益匹配的目标功率发送给所述耳机。Step 604: Send the target power matching the target gain to the earphone.

步骤605:当所述当前阻抗与所述初始阻抗的阻抗差值大于预设值的情况下,发出提示信息以提示用户耳机异常。Step 605: When the impedance difference between the current impedance and the initial impedance is greater than a preset value, send a prompt message to prompt the user that the earphone is abnormal.

本发明实施例中,由于所述当前阻抗和所述初始阻抗的阻抗差值可以用来评价所述耳机的出音孔的堵塞程度,当所述阻抗差值大于预设值的情况下,可以认为所述耳机的出音孔已经出现了大面积的堵塞,所述耳机的出音孔的堵塞情况已经较为严重,通过增大所述耳机的增益已经很难提高所述耳机的出音效果,此时,可以发出提示信息以提示用户耳机异常,以提醒用户及时修理或者更换耳机,避免用户继续使用堵塞情况严重的耳机,进一步提升用户的使用体验。In this embodiment of the present invention, since the impedance difference between the current impedance and the initial impedance can be used to evaluate the degree of blockage of the sound outlet of the earphone, when the impedance difference is greater than a preset value, the It is considered that the sound outlet of the earphone has been blocked in a large area, the blockage of the sound outlet of the earphone has been relatively serious, and it is difficult to improve the sound output effect of the earphone by increasing the gain of the earphone, At this time, a prompt message may be issued to remind the user that the earphone is abnormal, so as to remind the user to repair or replace the earphone in time, so as to avoid the user from continuing to use the earphone with serious blockage, and further improve the user's use experience.

在实际应用中,本领域技术人员可以根据所述耳机的类型以及所述耳机的实际使用需求设置所述预设值的具体值。例如,所述预设值的值可以是10欧姆、20欧姆、25欧姆等值,本发明实施例对于所述预设值的具体值可以不做限定。In practical applications, those skilled in the art can set the specific value of the preset value according to the type of the earphone and the actual use requirement of the earphone. For example, the value of the preset value may be a value such as 10 ohms, 20 ohms, 25 ohms, and the like, and the specific value of the preset value may not be limited in this embodiment of the present invention.

综上,本发明实施例所述的耳机调节方法至少包括以下优点:To sum up, the headphone adjustment method according to the embodiment of the present invention at least includes the following advantages:

本发明实施例中,在耳机第一次接入移动终端的情况下,可以确定所述耳机的初始阻抗;获取所述耳机的当前阻抗。根据所述当前阻抗和所述初始阻抗,不仅可以判断出所述耳机的堵塞程度,还可以根据所述耳机的堵塞程度,得出所述耳机在所述堵塞程度下,能够实现较优的出音效果的目标增益;并将能够使得所述耳机实现所述目标增益的目标输出功率发送给所述耳机。这样,所述耳机就可以实现较优的出音效果,避免了所述耳机出现由于出音孔堵塞导致的音量下降的问题,提升用户对于耳机的使用体验。In this embodiment of the present invention, when the earphone is connected to the mobile terminal for the first time, 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 the degree of blockage of the earphone can be determined, but also according to the degree of blockage of the earphone, it can be concluded that the earphone can achieve a better output under the degree of blockage. The target gain of the sound effect; and the target output power that enables the earphone to achieve the target gain is sent to the earphone. In this way, the earphone can achieve a better sound output effect, avoid the problem of the volume drop of the earphone due to the blockage of the sound outlet hole, and improve the user's experience of using the earphone.

本发明实施例中,当所述阻抗差值大于预设值的情况下,可以认为所述耳机的出音孔已经出现了大面积的堵塞,所述耳机的出音孔的堵塞情况已经较为严重,通过增大所述耳机的增益已经很难提高所述耳机的出音效果,此时,可以发出提示信息以提示用户耳机异常,以提醒用户及时修理或者更换耳机,避免用户继续使用堵塞情况严重的耳机,进一步提升用户的使用体验。In the embodiment of the present invention, when the impedance difference is greater than the preset value, it can be considered that the sound outlet of the earphone has been blocked in a large area, and the blockage of the sound outlet of the earphone has been serious. It is difficult to improve the sound output effect of the earphone by increasing the gain of the earphone. At this time, a prompt message can be sent to remind the user that the earphone is abnormal, so as to remind the user to repair or replace the earphone in time, so as to prevent the user from continuing to use the earphone. earphones to further enhance the user experience.

实施例三Embodiment 3

图7是本发明实施例提供的一种移动终端的框图之一,耳机接入所述移动终端,如图7所示,该移动终端700可以包括:FIG. 7 is one of the block diagrams of a mobile terminal provided by an embodiment of the present invention. A headset is connected to the mobile terminal. As shown in FIG. 7 , the mobile terminal 700 may include:

初始阻抗确定模块701,用于确定所述耳机的初始阻抗。The initial impedance determination module 701 is configured to determine the initial impedance of the earphone.

当前阻抗获取模块702,用于获取所述耳机的当前阻抗。The current impedance obtaining module 702 is configured to obtain the current impedance of the earphone.

目标增益确定模块703,用于根据所述当前阻抗和所述初始阻抗,确定所述耳机的目标增益。A target gain determination module 703, configured to determine the target gain of the earphone according to the current impedance and the initial impedance.

目标功率输出模块704,用于将与所述目标增益匹配的目标功率发送给所述耳机。A target power output module 704, configured to send the target power matching the target gain to the earphone.

综上所述,本发明实施例提供的移动终端能够实现图1的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。所述移动终端至少可以包括以下优点:To sum up, the mobile terminal provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of FIG. 1 , and to avoid repetition, details are not described here. The mobile terminal may include at least the following advantages:

本发明实施例中,在耳机接入移动终端的情况下,可以确定所述耳机的初始阻抗;获取所述耳机的当前阻抗。根据所述当前阻抗和所述初始阻抗,不仅可以判断出所述耳机的堵塞程度,还可以根据所述耳机的堵塞程度,得出所述耳机在所述堵塞程度下,能够实现较优的出音效果的目标增益;并将能够使得所述耳机实现所述目标增益的目标输出功率发送给所述耳机。这样,所述耳机就可以实现较优的出音效果,避免了所述耳机出现由于出音孔堵塞导致的音量下降的问题,提升用户对于耳机的使用体验。In this embodiment of the present invention, when 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 the degree of blockage of the earphone can be determined, but also according to the degree of blockage of the earphone, it can be concluded that the earphone can achieve a better output under the degree of blockage. The target gain of the sound effect; and the target output power that enables the earphone to achieve the target gain is sent to the earphone. In this way, the earphone can achieve a better sound output effect, avoid the problem of the volume drop of the earphone due to the blockage of the sound outlet hole, and improve the user's experience of using the earphone.

实施例四Embodiment 4

图8是本发明实施例提供的一种移动终端的框图之二,耳机接入所述移动终端,如图8所示,该移动终端800可以包括:FIG. 8 is the second block diagram of a mobile terminal provided by an embodiment of the present invention. A headset is connected to the mobile terminal. As shown in FIG. 8 , the mobile terminal 800 may include:

初始阻抗确定模块801,用于确定所述耳机的初始阻抗。The initial impedance determination module 801 is configured to determine the initial impedance of the earphone.

当前阻抗获取模块802,用于获取所述耳机的当前阻抗。The current impedance obtaining module 802 is configured to obtain the current impedance of the earphone.

目标增益确定模块803,用于根据所述当前阻抗和所述初始阻抗,确定所述耳机的目标增益。The target gain determination module 803 is configured to determine the target gain of the earphone according to the current impedance and the initial impedance.

目标功率输出模块804,用于将与所述目标增益匹配的目标功率发送给所述耳机。A target power output module 804, configured to send the target power matching the target gain to the earphone.

示警模块805,用于当所述当前阻抗与所述初始阻抗的阻抗差值大于预设值的情况下,发出耳机堵塞情况示警。The warning module 805 is configured to issue an earphone blockage warning when the impedance difference between the current impedance and the initial impedance is greater than a preset value.

可选地,初始阻抗确定模块801可以包括:Optionally, the initial impedance determination module 801 may include:

耳机类型确定子模块8011,用于确定所述耳机的类型。The earphone type determination sub-module 8011 is used to determine the type of the earphone.

初始阻抗确定子模块8012,用于根据所述耳机的类型,确定所述耳机初始阻抗。The initial impedance determination sub-module 8012 is configured to determine the initial impedance of the earphone according to the type of the earphone.

可选地,当前阻抗获取模块802可以包括:Optionally, the current impedance acquisition module 802 may include:

信号发送子模块8021,用于在所述耳机未进行音频传输的情况下,向所述耳机发送第二交流信号。The signal sending sub-module 8021 is configured to send a second AC signal to the earphone when the earphone does not perform audio transmission.

当前阻抗确定子模块8022,用于根据所述耳机的第二反馈信号,确定所述耳机的当前阻抗。The current impedance determination sub-module 8022 is configured to determine the current impedance of the earphone according to the second feedback signal of the earphone.

可选地,目标增益确定模块803可以包括:Optionally, the target gain determination module 803 may include:

阻抗差值确定子模块8031,用于根据所述当前阻抗和所述初始阻抗,确定所述当前阻抗与所述初始阻抗之间的阻抗差值;an impedance difference value determination sub-module 8031, configured to determine an impedance difference value between the current impedance and the initial impedance according to the current impedance and the initial impedance;

目标增益确定子模块8032,用于确定与所述阻抗差值匹配的目标增益;其中,所述阻抗差值与所述目标增益的匹配关系是预先存储的。The target gain determination sub-module 8032 is configured to determine a target gain matching the impedance difference value; wherein, the matching relationship between the impedance difference value and the target gain is pre-stored.

综上所述,本发明实施例提供的移动终端能够实现图6的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。所述移动终端至少可以包括以下优点:To sum up, 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 to avoid repetition, details are not repeated here. The mobile terminal may include at least the following advantages:

本发明实施例中,在耳机第一次接入移动终端的情况下,可以确定所述耳机的初始阻抗;获取所述耳机的当前阻抗。根据所述当前阻抗和所述初始阻抗,不仅可以判断出所述耳机的堵塞程度,还可以根据所述耳机的堵塞程度,得出所述耳机在所述堵塞程度下,能够实现较优的出音效果的目标增益;并将能够使得所述耳机实现所述目标增益的目标输出功率发送给所述耳机。这样,所述耳机就可以实现较优的出音效果,避免了所述耳机出现由于出音孔堵塞导致的音量下降的问题,提升用户对于耳机的使用体验。In this embodiment of the present invention, when the earphone is connected to the mobile terminal for the first time, 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 the degree of blockage of the earphone can be determined, but also according to the degree of blockage of the earphone, it can be concluded that the earphone can achieve a better output under the degree of blockage. The target gain of the sound effect; and the target output power that enables the earphone to achieve the target gain is sent to the earphone. In this way, the earphone can achieve a better sound output effect, avoid the problem of the volume drop of the earphone due to the blockage of the sound outlet hole, and improve the user's experience of using the earphone.

本发明实施例中,当所述阻抗差值大于预设值的情况下,可以认为所述耳机的出音孔已经出现了大面积的堵塞,所述耳机的出音孔的堵塞情况已经较为严重,通过增大所述耳机的增益已经很难提高所述耳机的出音效果,此时,可以发出提示信息以提示用户耳机异常,以提醒用户及时修理或者更换耳机,避免用户继续使用堵塞情况严重的耳机,进一步提升用户的使用体验。In the embodiment of the present invention, when the impedance difference is greater than the preset value, it can be considered that the sound outlet of the earphone has been blocked in a large area, and the blockage of the sound outlet of the earphone has been serious. It is difficult to improve the sound output effect of the earphone by increasing the gain of the earphone. At this time, a prompt message can be sent to remind the user that the earphone is abnormal, so as to remind the user to repair or replace the earphone in time, so as to prevent the user from continuing to use the earphone. earphones to further enhance the user experience.

实施例五Embodiment 5

图9为实现本发明各个实施例的一种移动终端的硬件结构示意图,9 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,

该移动终端900包括但不限于:射频单元901、网络模块902、音频输出单元903、输入单元904、传感器905、显示单元906、用户输入单元907、接口单元908、存储器909、处理器910以及电源911等部件。本领域技术人员可以理解,图9中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。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 and other parts. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 9 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,处理器910,用于确定所述耳机的初始阻抗。The processor 910 is configured to determine the initial impedance of the earphone.

处理器910,用于获取所述耳机的当前阻抗。The processor 910 is configured to acquire the current impedance of the earphone.

处理器910,用于根据所述当前阻抗和所述初始阻抗,确定所述耳机的目标增益。The processor 910 is configured to determine the target gain of the earphone according to the current impedance and the initial impedance.

处理器910,用于将与所述目标增益匹配的目标功率发送给所述耳机。The processor 910 is configured to send the target power matching the target gain to the earphone.

综上所述,移动终端可以确定所述耳机的初始阻抗;获取所述耳机的当前阻抗。根据所述当前阻抗和所述初始阻抗,不仅可以判断出所述耳机的堵塞程度,还可以根据所述耳机的堵塞程度,得出所述耳机在所述堵塞程度下,能够实现较优的出音效果的目标增益;并将能够使得所述耳机能够实现所述目标增益的目标输出功率发送给所述耳机。这样,所述耳机就可以实现较优的出音效果,避免了所述耳机出现由于出音孔堵塞导致的音量下降的问题,提升用户对于耳机的使用体验。To sum up, the mobile terminal can determine the initial impedance of the earphone and obtain the current impedance of the earphone. According to the current impedance and the initial impedance, not only the degree of blockage of the earphone can be determined, but also according to the degree of blockage of the earphone, it can be concluded that the earphone can achieve a better output under the degree of blockage. The target gain of the sound effect; and the target output power that enables the earphone to achieve the target gain is sent to the earphone. In this way, the earphone can achieve a better sound output effect, avoid the problem of the volume drop of the earphone due to the blockage of the sound outlet hole, and improve the user's experience of using the earphone.

应理解的是,本发明实施例中,射频单元901可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器910处理;另外,将上行的数据发送给基站。通常,射频单元901包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元901还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 901 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 910; The uplink data is sent 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 the network and other devices through a wireless communication system.

移动终端通过网络模块902为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides the user with wireless broadband Internet access through the network module 902, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.

音频输出单元903可以将射频单元901或网络模块902接收的或者在存储器909中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元903还可以提供与移动终端900执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元903包括扬声器、蜂鸣器以及受话器等。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 audio signals 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 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.

输入单元904用于接收音频或视频信号。输入单元904可以包括图形处理器(Graphics Processing Unit,GPU)9041和麦克风9042,图形处理器9041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元906上。经图形处理器9041处理后的图像帧可以存储在存储器909(或其它存储介质)中或者经由射频单元901或网络模块902进行发送。麦克风9042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元901发送到移动通信基站的格式输出。The input unit 904 is used to receive audio or video signals. The input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 captures images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 906 . The image frames processed by the graphics 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 sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 901 for output in the case of a telephone call mode.

移动终端900还包括至少一种传感器905,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板9061的亮度,接近传感器可在移动终端900移动到耳边时,关闭显示面板9061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器905还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 900 also includes at least one sensor 905, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 9061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 9061 and the proximity sensor when the mobile terminal 900 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 905 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元906用于显示由用户输入的信息或提供给用户的信息。显示单元906可包括显示面板9061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板9061。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.

用户输入单元907可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元907包括触控面板9071以及其他输入设备9072。触控面板9071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9071上或在触控面板9071附近的操作)。触控面板9071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器910,接收处理器910发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9071。除了触控面板9071,用户输入单元907还可以包括其他输入设备9072。具体地,其他输入设备9072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 907 may be used to receive input numerical or character information, and generate key signal input 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, can collect touch operations by the user on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 9071). operate). The touch panel 9071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 910, the command sent by the processor 910 is received and executed. In addition, the touch panel 9071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 9071 , the user input unit 907 may also include other input devices 9072 . Specifically, other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板9071可覆盖在显示面板9061上,当触控面板9071检测到在其上或附近的触摸操作后,传送给处理器910以确定触摸事件的类型,随后处理器910根据触摸事件的类型在显示面板9061上提供相应的视觉输出。虽然在图9中,触控面板9071与显示面板9061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板9071与显示面板9061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 9071 can be overlaid on the display panel 9061. When the touch panel 9071 detects a touch operation on or near it, it transmits it to the processor 910 to determine the type of the touch event, and then the processor 910 determines the type of the touch event according to the touch The type of event provides a corresponding visual output on the display panel 9061. Although in FIG. 9, the touch panel 9071 and the display panel 9061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated The input and output functions of the mobile terminal are implemented, which is not specifically limited here.

接口单元908为外部装置与移动终端900连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元908可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端900内的一个或多个元件或者可以用于在移动终端900和外部装置之间传输数据。The interface unit 908 is an interface for connecting an external device to the mobile terminal 900 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 908 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 900 or may be used between the mobile terminal 900 and the external Transfer data between devices.

存储器909可用于存储软件程序以及各种数据。存储器909可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器909可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, 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.

处理器910是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器909内的软件程序和/或模块,以及调用存储在存储器909内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器910可包括一个或多个处理单元;优选的,处理器910可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器910中。The processor 910 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory 909, and calls the data stored in the memory 909. , perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 910.

移动终端900还可以包括给各个部件供电的电源911(比如电池),优选的,电源911可以通过电源管理系统与处理器910逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 900 may also include a power supply 911 (such as a battery) for supplying power to various components. Preferably, the power supply 911 may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. and other functions.

另外,移动终端900包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 900 includes some unshown functional modules, which are not repeated here.

优选的,本发明实施例还提供一种移动终端,包括处理器910,存储器909,存储在存储器909上并可在所述处理器910上运行的计算机程序,该计算机程序被处理器910执行时实现上述利用电参数实现音量调节的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 910 , a memory 909 , a computer program stored in the memory 909 and running on the processor 910 , when the computer program is executed by the processor 910 The various processes of the above-mentioned method embodiments for realizing volume adjustment by using electrical parameters are realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述利用电参数实现音量调节的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(RandomAccess Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide 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, each process of the foregoing method embodiment for implementing volume adjustment by using electrical parameters is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

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 A method and mobile terminal for realizing volume adjustment using electrical parameters Active CN109348366B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

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 A method and mobile terminal for realizing volume adjustment using electrical parameters

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
CN113709614B (en) * 2019-07-10 2024-04-30 Oppo广东移动通信有限公司 Volume adjustment 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
CN110730260B (en) Electronic device control method and electronic device
CN108551631A (en) A sound quality compensation method and mobile terminal
CN110830861B (en) Telephone receiver control method and device and electronic equipment
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN108848267B (en) Audio playback method and mobile terminal
CN108040313A (en) A kind of play parameter control method and electronic equipment
CN109348504B (en) Power detection method, mobile terminal and power detection circuit
CN109951582B (en) A kind of mobile terminal and sound output control method
CN109040449A (en) A kind of volume adjusting method and terminal device
CN110855313A (en) Signal control method and electronic equipment
CN108289270A (en) A kind of loud speaker and mobile terminal
CN107786751A (en) A kind of method for broadcasting multimedia file and mobile terminal
WO2021197311A1 (en) Volume adjustment display method and electronic apparatus
CN111614329B (en) Power amplifier, electronic device, voltage control method and device
CN109348366B (en) A method and mobile terminal for realizing volume adjustment using electrical parameters
WO2020259295A1 (en) Mobile terminal and control method
CN108307075B (en) A kind of incoming call processing method and mobile terminal
CN111541975B (en) Audio signal adjustment method and electronic device
CN111585666B (en) A power compensation method and electronic device
CN109889942B (en) A Type-C transfer cable, control method and terminal device
CN110209543B (en) Earphone socket detection method and terminal
CN108319440A (en) Audio-frequency inputting method and mobile terminal
CN109270352B (en) Amplitude adjusting method and sound generating device
CN108430025B (en) A detection method and mobile terminal
CN108804071B (en) A kind of receiver driving method and mobile terminal

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