[go: up one dir, main page]

CN105934931B - A kind of terminal installation - Google Patents

A kind of terminal installation Download PDF

Info

Publication number
CN105934931B
CN105934931B CN201480068790.5A CN201480068790A CN105934931B CN 105934931 B CN105934931 B CN 105934931B CN 201480068790 A CN201480068790 A CN 201480068790A CN 105934931 B CN105934931 B CN 105934931B
Authority
CN
China
Prior art keywords
electrical signal
key
terminal device
button
earphone
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
CN201480068790.5A
Other languages
Chinese (zh)
Other versions
CN105934931A (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.)
Honor Device Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105934931A publication Critical patent/CN105934931A/en
Application granted granted Critical
Publication of CN105934931B publication Critical patent/CN105934931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例提供了一种终端装置,当耳机的至少两个按键中的至少一个按键所对应的控制功能失效时,终端装置获取用户操作所述至少两个按键而由耳机电路产生的至少两个电信号,并根据获取到的所述至少两个电信号得到识别阈值,从而基于所述识别阈值,识别所述至少两个按键对应的控制功能。这样,即便耳机在使用一段时间之后,出现硬件老化,由于识别阈值是基于硬件老化之后的按键电信号来设置,使得终端装置可以识别用户按下的按键。

An embodiment of the present invention provides a terminal device. When the control function corresponding to at least one of the at least two buttons of an earphone fails, the terminal device obtains at least two signals generated by the earphone circuit when the user operates the at least two buttons. The electrical signals are obtained, and a recognition threshold is obtained according to the obtained at least two electrical signals, so that the control functions corresponding to the at least two buttons are recognized based on the recognition threshold. In this way, even if the headset is used for a period of time, hardware aging occurs, because the identification threshold is set based on the electrical signal of the key after the hardware is aging, so that the terminal device can identify the key pressed by the user.

Description

一种终端装置a terminal device

技术领域technical field

本发明涉及一种终端装置,尤其涉及识别耳机的按键所对应的控制功能的终端装置。The present invention relates to a terminal device, in particular to a terminal device for identifying control functions corresponding to keys of an earphone.

背景技术Background technique

以手机为例,终端装置较多地使用适于连接在终端装置上的耳机,这样相对外放的扬声器,可以不影响他人。Taking a mobile phone as an example, the terminal device often uses an earphone suitable for connecting to the terminal device, so that the loudspeaker that is placed outside may not affect others.

上述的耳机是耳机接收机的简称,是指能够佩戴在耳朵上的小型受话器。上述耳机是将小型扬声器通过特定壳体加以固定之后插入耳内,并将与小型扬声器连接的连接端子插入到终端装置的插孔内,以便小型扬声器输出的声波传播到用户耳中。The above-mentioned earphone is an abbreviation of earphone receiver, which refers to a small receiver that can be worn on the ear. The above-mentioned earphone is inserted into the ear after the small speaker is fixed by a specific casing, and the connecting terminal connected with the small speaker is inserted into the jack of the terminal device, so that the sound wave output by the small speaker propagates to the user's ear.

上述耳机在连接端子和小型扬声器之间的连线上,通常还设有按键,用于部分地控制终端装置。以耳机为例,常用的按键可以包括三个按键,音量增大按键,音量减小按键,以及确认按键,这里的音量增大或减小是控制功能的举例,可以是其他控制功能,也可以复用按键具备其他控制功能。The above-mentioned earphones are usually also provided with buttons on the connection line between the connection terminal and the small speaker, which are used to partially control the terminal device. Taking the headset as an example, the commonly used buttons may include three buttons, a volume up button, a volume down button, and a confirmation button. The volume up or down here is an example of a control function, which can be other control functions or Multiplexed keys have other control functions.

但是,同一款耳机在使用一段时间后,硬件电路会老化,使得终端装置无法识别或者错误识别用户操作的按键。However, after the same earphone is used for a period of time, the hardware circuit will age, so that the terminal device cannot recognize or incorrectly recognize the keys operated by the user.

尽管以上是以有线耳机来介绍,但是耳机也可以是无线耳机,比如蓝牙耳机。尽管蓝牙耳机无需连线,但是蓝牙耳机上也通常包括按键,也存在类似的问题。Although the above description is based on wired earphones, the earphones may also be wireless earphones, such as Bluetooth earphones. Although Bluetooth headsets do not need to be wired, Bluetooth headsets usually include buttons, and there are similar problems.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种终端装置,用于识别耳机的按键所对应的控制功能。An embodiment of the present invention provides a terminal device for identifying a control function corresponding to a button of an earphone.

第一方面,本发明实施例提供了一种终端装置,所述终端装置包括:In a first aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes:

输入和输出单元;input and output units;

耳机接口,用于与耳机连接;所述耳机包括至少两个按键,所述至少两个按键分别对应一控制功能;所述耳机还包括耳机电路,用于响应用户对所述至少两个按键的操作而产生电信号;The earphone interface is used for connecting with the earphone; the earphone includes at least two buttons, and the at least two buttons respectively correspond to a control function; operate to generate electrical signals;

控制单元,用于当所述至少两个按键中的至少一个按键所对应的控制功能失效时,获取用户操作所述至少两个按键而由所述耳机电路产生的至少两个电信号,并根据获取到的所述至少两个电信号得到识别阈值,并基于所述识别阈值,识别所述至少两个按键对应的控制功能。The control unit is configured to acquire at least two electrical signals generated by the earphone circuit when the user operates the at least two buttons when the control function corresponding to at least one of the at least two buttons fails, and according to the The acquired at least two electrical signals obtain a recognition threshold, and based on the recognition threshold, the control functions corresponding to the at least two keys are recognized.

在第一方面的第一种可能的实现方式中,所述至少两个按键包括第一按键和第二按键,相应地所述获取用户操作所述至少两个按键而由所述耳机电路产生的至少两个电信号包括第一电信号和第二电信号;In a first possible implementation manner of the first aspect, the at least two buttons include a first button and a second button, and correspondingly, the acquisition of the user operating the at least two buttons is generated by the earphone circuit. the at least two electrical signals include a first electrical signal and a second electrical signal;

所述控制单元用于:基于所述第一电信号和第二电信号,根据预设的规则得到所述识别阈值。The control unit is configured to: obtain the identification threshold according to a preset rule based on the first electrical signal and the second electrical signal.

结合第一方面第一种可能的实现方式,在第二种可能的实现方式中,所述阈值为单一数值;所述第一电信号表征为第一数值,第二电信号表征为第二数值;In combination with the first possible implementation manner of the first aspect, in a second possible implementation manner, the threshold is a single value; the first electrical signal is represented by a first value, and the second electrical signal is represented by a second value ;

则所述控制单元具体用于:将所述第一数值和第二数值之间的某一数值设为所述识别阈值。Then the control unit is specifically configured to: set a certain value between the first value and the second value as the identification threshold.

结合第一方面第二种可能的实现方式,在第三种可能的实现方式中,所述控制单元还用于:With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the control unit is further configured to:

接收用户操作所述第一按键或第二按键而由所述耳机电路产生的第三电信号;receiving a third electrical signal generated by the earphone circuit when the user operates the first button or the second button;

比较所述第三电信号跟所述识别阈值的大小关系;comparing the magnitude relationship between the third electrical signal and the identification threshold;

根据比较结果,按照预设的规则识别所述第三电信号对应的控制功能。According to the comparison result, the control function corresponding to the third electrical signal is identified according to a preset rule.

结合第一方面第三种可能的实现方式,在第四种可能的实现方式中,所述控制单元具体用于:In combination with the third possible implementation manner of the first aspect, in the fourth possible implementation manner, the control unit is specifically used for:

当所述第三电信号小于或等于所述识别阈值,则识别为第一按键对应的控制功能;When the third electrical signal is less than or equal to the identification threshold, it is identified as the control function corresponding to the first button;

当所述第三电信号大于所述识别阈值,则识别为第二按键对应的控制功能;When the third electrical signal is greater than the identification threshold, it is identified as the control function corresponding to the second key;

结合第一方面第一种可能的实现方式,在第五种可能的实现方式中,所述识别阈值为数值范围,包括下限值和上限值;所述第一电信号表征为第一数值,第二电信号表征为第二数值,With reference to the first possible implementation manner of the first aspect, in a fifth possible implementation manner, the identification threshold is a numerical value range, including a lower limit value and an upper limit value; the first electrical signal is characterized as a first numerical value , the second electrical signal is characterized as a second value,

则所述控制单元具体用于:基于所述第一数值和第一阈值因子得到第一识别阈值的下限值和上限值,基于所述第二数值和第二阈值因子得到第二识别阈值的下限值和上限值。Then the control unit is specifically configured to: obtain the lower limit value and the upper limit value of the first identification threshold based on the first numerical value and the first threshold factor, and obtain the second identification threshold based on the second numerical value and the second threshold factor lower and upper limit values.

结合第一方面第五种可能的实现方式,在第六种可能的实现方式中,所述控制单元还用于:With reference to the fifth possible implementation manner of the first aspect, in the sixth possible implementation manner, the control unit is further configured to:

接收用户操作所述第一按键或第二按键而由所述耳机电路产生的第四电信号;receiving a fourth electrical signal generated by the earphone circuit when the user operates the first button or the second button;

比较所述第四电信号跟所述第一识别阈值和第二识别阈值的大小关系;comparing the magnitude relationship between the fourth electrical signal and the first identification threshold and the second identification threshold;

根据比较结果,按照预设的规则识别所述第四电信号对应的控制功能。According to the comparison result, the control function corresponding to the fourth electrical signal is identified according to a preset rule.

结合第一方面第五种可能的实现方式,在第七种可能的实现方式中,所述控制单元具体用于:With reference to the fifth possible implementation manner of the first aspect, in the seventh possible implementation manner, the control unit is specifically used for:

当所述第四电信号大于或者等于所述第一识别阈值的下限值且小于或等于所述第一识别阈值的上限值,则识别为第一按键对应的控制功能;When the fourth electrical signal is greater than or equal to the lower limit of the first identification threshold and less than or equal to the upper limit of the first identification threshold, it is identified as a control function corresponding to the first key;

当所述第四电信号大于或者等于所述第二识别阈值的下限值且小于或等于所述第二识别阈值的上限值,则识别为第二按键对应的控制功能;When the fourth electrical signal is greater than or equal to the lower limit of the second identification threshold and less than or equal to the upper limit of the second identification threshold, it is identified as a control function corresponding to the second key;

第二方面,本发明实施例提供了一种终端装置,所述终端装置包括:In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes:

输入和输出单元;input and output units;

耳机接口,用于与耳机连接;所述耳机包括至少两个按键,所述至少两个按键分别对应一控制功能;所述耳机还包括耳机电路,用于响应用户对所述至少两个按键的操作而产生电信号;The earphone interface is used for connecting with the earphone; the earphone includes at least two buttons, and the at least two buttons respectively correspond to a control function; operate to generate electrical signals;

控制单元,用于当所述至少两个按键中的至少一个按键所对应的控制功能失效时,获取用户操作所述失效的至少一个按键而由所述耳机电路产生的至少一个电信号,并根据获取到的所述至少一个电信号得到识别阈值,并根据所述识别阈值,识别所述至少两个按键对应的控制功能;The control unit is configured to acquire at least one electrical signal generated by the earphone circuit when the user operates the at least one key that fails when the control function corresponding to at least one of the at least two keys fails, and according to The obtained at least one electrical signal obtains a recognition threshold, and according to the recognition threshold, the control functions corresponding to the at least two buttons are recognized;

其中,所述识别阈值为数值范围,包括下限值和上限值。Wherein, the identification threshold is a numerical range, including a lower limit value and an upper limit value.

在第二方面的第一种可能的实现方式中,所述至少两个按键包括第一按键和第二按键,所述失效的至少一个按键为第一按键,相应地所述获取用户操作所述失效的至少一个按键而由所述耳机电路产生的至少一个电信号包括:获取用户操作所述失效的第一按键而由所述耳机产生的第一电信号,所述第一电信号表征为第一数值;In a first possible implementation manner of the second aspect, the at least two keys include a first key and a second key, and the at least one key that fails is the first key, and accordingly the acquiring the user operation The at least one electrical signal generated by the earphone circuit due to the disabled at least one button includes: obtaining a first electrical signal generated by the earphone when the user operates the disabled first button, and the first electrical signal is characterized as the first electrical signal. a value;

所述控制单元用于:基于所述第一电信号表征的第一数值和第一阈值因子得到所述识别阈值的下限值和上限值。The control unit is configured to: obtain a lower limit value and an upper limit value of the identification threshold based on a first value represented by the first electrical signal and a first threshold factor.

结合第二方面第一种可能的实现方式,在第二种可能的实现方式中,所述控制单元还用于:In combination with the first possible implementation manner of the second aspect, in the second possible implementation manner, the control unit is further configured to:

接收用户操作所述第一按键或第二按键而由所述耳机电路产生的第五电信号;receiving a fifth electrical signal generated by the earphone circuit when the user operates the first button or the second button;

比较所述第五电信号跟所述识别阈值的大小关系;comparing the magnitude relationship between the fifth electrical signal and the identification threshold;

根据比较结果,按照预设的规则识别所述第五电信号对应的控制功能。According to the comparison result, the control function corresponding to the fifth electrical signal is identified according to a preset rule.

结合第二方面第二种可能的实现方式,在第三种可能的实现方式中,所述控制单元具体用于:In combination with the second possible implementation manner of the second aspect, in the third possible implementation manner, the control unit is specifically used for:

当所述第五电信号大于或者等于所述识别阈值的下限值且小于或等于所述识别阈值的上限值,则识别为第一按键对应的控制功能。When the fifth electrical signal is greater than or equal to the lower limit of the identification threshold and less than or equal to the upper limit of the identification threshold, it is identified as a control function corresponding to the first key.

在本发明实施例中,当耳机的至少两个按键中的至少一个按键所对应的控制功能失效时,终端装置获取用户操作所述至少两个按键而由耳机电路产生的至少两个电信号,并根据获取到的所述至少两个电信号得到识别阈值,从而基于所述识别阈值,识别所述至少两个按键对应的控制功能。这样,即便耳机在使用一段时间之后,出现硬件老化,由于识别阈值是基于硬件老化之后的按键电信号来设置,使得终端装置可以识别用户按下的按键。In this embodiment of the present invention, when the control function corresponding to at least one of the at least two buttons of the earphone fails, the terminal device acquires at least two electrical signals generated by the earphone circuit when the user operates the at least two buttons, And a recognition threshold is obtained according to the obtained at least two electrical signals, so that control functions corresponding to the at least two keys are recognized based on the recognition threshold. In this way, even if the headset is used for a period of time, hardware aging occurs, because the recognition threshold is set based on the electrical signal of the key after the hardware is aging, so that the terminal device can recognize the key pressed by the user.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1为根据本发明实施例的终端装置的部分结构的示意图;FIG. 1 is a schematic diagram of a partial structure of a terminal device according to an embodiment of the present invention;

图2为根据本发明实施例的耳机的耳机电路的示意图;2 is a schematic diagram of an earphone circuit of an earphone according to an embodiment of the present invention;

图3a和3b为根据本发明实施例的一种识别方式的示意图;3a and 3b are schematic diagrams of an identification method according to an embodiment of the present invention;

图4a和4b为根据本发明实施例的的另一种识别方式的示意图;4a and 4b are schematic diagrams of another identification manner according to an embodiment of the present invention;

图5为根据本发明实施例的校正后的一种识别方式的示意图;5 is a schematic diagram of a corrected identification method according to an embodiment of the present invention;

图6为根据本发明实施例的校正后的另一种识别方式的示意图。FIG. 6 is a schematic diagram of another identification manner after correction according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, 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 These are some embodiments of the present invention, but not all 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.

本发明实施例中的终端装置可以包括手机,平板电脑,mp3播放器、PDA(personaldigital assistant,个人数字助理)等。The terminal device in the embodiment of the present invention may include a mobile phone, a tablet computer, an mp3 player, a PDA (personal digital assistant, personal digital assistant), and the like.

参考图1,终端装置100可以包括控制单元110、存储器120、输入单元130、输出单元140、耳机接口150等部件,另外耳机151作为终端装置100的配件与耳机接口连接。本领域技术人员可以理解,图1中示出的终端装置结构并不构成对终端装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。1 , the terminal device 100 may include a control unit 110 , a memory 120 , an input unit 130 , an output unit 140 , an earphone interface 150 and other components. In addition, the earphone 151 is an accessory of the terminal device 100 connected to the earphone interface. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 1 does not constitute a limitation on the terminal device, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.

下面结合图1对终端装置100的各个构成部件进行具体的介绍:Each component of the terminal device 100 will be specifically introduced below with reference to FIG. 1 :

其中,控制单元110是终端装置100的控制中心,可以是处理器芯片,也可以是具备控制功能的任一单元或模块。它利用各种接口和线路连接整个终端装置的各个部分。通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端装置100的各种功能,从而对终端装置进行整体监控。The control unit 110 is the control center of the terminal device 100 , and may be a processor chip or any unit or module having a control function. It uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, various functions of the terminal device 100 are performed, thereby overall monitoring the terminal device.

存储器120可用于存储软件程序以及相关数据。控制单元110通过运行存储在存储器120的软件程序和数据,从而执行终端装置100的各种功能应用以及数据处理。Memory 120 may be used to store software programs and related data. The control unit 110 executes various functional applications and data processing of the terminal device 100 by executing software programs and data stored in the memory 120 .

输入单元130可用于接收输入的数字或字符信息,以及产生与终端装置100的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可以包括但不限于触摸屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the terminal device 100 . Specifically, the input unit 130 may include, but is not limited to, one or more of a touch screen, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.

输出单元140可以包括显示设备或音频播放设备等。显示设备可用于显示由用户输入的信息或提供给用户的信息以及终端装置100的各种菜单。显示设备可包括显示屏。音频播放设备至少包括扬声器以及音频电路等。音频电路可将接收到的音频数据转换后的信号传输到扬声器,由扬声器转换为声音信号输出。The output unit 140 may include a display device or an audio playback device or the like. The display device may be used to display information input by the user or information provided to the user and various menus of the terminal device 100 . The display device may include a display screen. The audio playback device includes at least a speaker, an audio circuit, and the like. The audio circuit can transmit the received audio data converted signal to the speaker, and the speaker converts it into a sound signal and outputs it.

耳机接口150适于与耳机151连接。由于耳机至少可以分为有线耳机和无线耳机,相应地所述连接可以是有线连接或无线连接。耳机接口本身可以包括电路,插孔,无线模块等的全部或部分,属于现有技术,在此不再赘述。所述的耳机151可以设有按键,用于部分地控制终端装置100。以手机耳机为例,常用的按键可以包括三个按键,音量增大按键,音量减小按键,以及确认按键,这里的音量增大或减小等仅是控制功能的举例,可以是其他控制功能,也可以复用上述按键具备其他控制功能。耳机151还包括耳机电路(具体在下面介绍),用于响应用户对按键的操作而产生电信号。电信号可以是电压,电流等,优选为电压。The earphone interface 150 is suitable for connecting with the earphone 151 . Since earphones can be at least divided into wired earphones and wireless earphones, the connection can be wired connection or wireless connection accordingly. The earphone interface itself may include all or part of a circuit, a jack, a wireless module, etc., which belongs to the prior art and will not be repeated here. The earphone 151 may be provided with buttons for partially controlling the terminal device 100 . Taking a mobile phone headset as an example, the commonly used buttons may include three buttons, a volume up button, a volume down button, and a confirmation button. The volume up or down here is only an example of the control function, and can be other control functions. , you can also reuse the above keys to have other control functions. The earphone 151 also includes an earphone circuit (described in detail below) for generating an electrical signal in response to a user's operation of a key. The electrical signal may be voltage, current, etc., preferably voltage.

本领域技术人员可以理解,图1中示出的终端装置结构并不构成对终端装置的限定。本领域普通技术人员可以根据需要对图1中的结构进行适当改变。例如删除部分组件,增加一些组件,或者用其他组件代替图1中的部分组件。。Those skilled in the art can understand that the structure of the terminal device shown in FIG. 1 does not constitute a limitation on the terminal device. Those of ordinary skill in the art can make appropriate changes to the structure in FIG. 1 as required. For example, some components are deleted, some components are added, or some components in Figure 1 are replaced by other components. .

图2示出的是耳机内的耳机电路的示意图,因为耳机电路属于本领域的现有技术,因此在此不再详细展开,以下介绍只是方便理解。另外,图2示出的是现有的有线耳机的耳机电路的构成,但是它仅用来理解工作原理,并不构成任何限定。FIG. 2 shows a schematic diagram of the earphone circuit in the earphone, because the earphone circuit belongs to the prior art in the field, so it will not be described in detail here, and the following description is only for the convenience of understanding. In addition, FIG. 2 shows the structure of the earphone circuit of the existing wired earphone, but it is only used to understand the working principle and does not constitute any limitation.

如图2所示,SPK_L和SPK_R分别表示左、右小型扬声器,其中左扬声器的其中一个端子L+端子电连接于L端子、右扬声器的其中一个端子R+端子电连接于R端子,左扬声器和右扬声器的另一个端子均连接于G端子(接地端子)。As shown in Figure 2, SPK_L and SPK_R respectively represent left and right small speakers, one of the terminals L+ of the left speaker is electrically connected to the L terminal, one of the terminals R+ of the right speaker is electrically connected to the R terminal, the left speaker and the right speaker are electrically connected to the R terminal. The other terminals of the speakers are both connected to the G terminal (ground terminal).

按键包括三个,包括确认按键SW1(也称为按键Key_OK),音量减小按键SW2(也称为按键Key_V-),以及音量增大按键SW3(也称为按键Key_V+),分别用于确认,控制音量减小以及音量增大。可以理解的是,按键的数量和控制功能不做限定,比如至少两个按键即可。There are three buttons, including the confirmation button SW1 (also known as the button Key_OK), the volume down button SW2 (also known as the button Key_V-), and the volume increase button SW3 (also known as the button Key_V+), which are respectively used for confirmation, Controls volume down and volume up. It can be understood that the number of buttons and control functions are not limited, for example, at least two buttons are sufficient.

三个按键串/并联有三个电阻R1,R2,R3,每个电阻预设为一定阻值。当然耳机电路还包括有其他部件,比如电容C1,麦克MIC等,本发明实施例不再介绍。There are three resistors R1, R2, R3 in the series/parallel connection of the three buttons, and each resistor is preset to a certain resistance value. Of course, the headphone circuit also includes other components, such as a capacitor C1, a microphone MIC, etc., which are not described in this embodiment of the present invention.

参考图2可知,当用户操作不同的按键时,耳机电路联通不同的流路,因为阻值不同,导致在M+端子处产生不同的电信号。为了方便,以电信号为电压为例进行描述。Referring to FIG. 2 , it can be seen that when the user operates different buttons, the earphone circuit is connected to different flow paths, and different electrical signals are generated at the M+ terminal due to different resistance values. For convenience, the description is made by taking the electrical signal as a voltage as an example.

终端设备可以采集耳机电路中M+端子的电压V,根据预设的识别阈值和规则来识别是哪一个按键。The terminal device can collect the voltage V of the M+ terminal in the earphone circuit, and identify which key is the key according to the preset identification threshold and rules.

目前,基于不同的机制,有至少两种识别方式。Currently, there are at least two identification methods based on different mechanisms.

第一种方式,如图3a,识别阈值为单一数值的方式。The first way, as shown in Figure 3a, identifies the way in which the threshold is a single value.

比如,终端装置预设两个阈值,每个阈值为单一数值:阈值TH1,阈值TH2;For example, the terminal device presets two thresholds, each of which is a single value: threshold TH1, threshold TH2;

当V≤TH1,则识别出是按键SW1(Key_OK)被操作,则触发对应确认功能;When V≤TH1, it is recognized that the key SW1 (Key_OK) is operated, and the corresponding confirmation function is triggered;

当V≥TH2,则识别出是按键SW2(Key_V-)被操作,则触发对应音量减小功能;When V≥TH2, it is recognized that the key SW2 (Key_V-) is operated, and the corresponding volume reduction function is triggered;

当TH1<V<TH2,则识别出是按键SW3(Key_V+)被操作,则触发对应音量增加功能。When TH1<V<TH2, it is recognized that the key SW3 (Key_V+) is operated, and the corresponding volume increase function is triggered.

容易理解,上述识别规则可以根据需要设置。It is easy to understand that the above identification rules can be set as required.

但是,如果硬件老化,比如按键SW3(Key_V+)串联的电阻阻值起了变化,那么有可能如图3b那样,用户操作按键SW3(Key_V+),在M+端子的电压值V+超过了TH2(如虚线所示),则按照上述规则,即便用户操作按键SW3(Key_V+),终端装置也会识别为按键SW2(Key_V-)被操作。这显然是不准确的。However, if the hardware is aging, for example, the resistance value of the resistor in series with the button SW3 (Key_V+) changes, then it is possible that the user operates the button SW3 (Key_V+) as shown in Figure 3b, and the voltage value V+ at the M+ terminal exceeds TH2 (such as the dotted line). shown), according to the above rules, even if the user operates the key SW3 (Key_V+), the terminal device will recognize that the key SW2 (Key_V-) is operated. This is obviously inaccurate.

第二种方式,如图4a,识别阈值为数值范围的方式。The second way, as shown in Figure 4a, identifies the way that the threshold is a range of values.

比如,终端装置预设三个阈值,每个阈值为一个数值范围,包括上、下限值:阈值TH1(下限值A1,上限值A2),阈值TH2(下限值B1,上限值B2),阈值TH3(下限值C1,上限值C2),For example, the terminal device presets three thresholds, each of which is a value range, including upper and lower limits: threshold TH1 (lower limit A1, upper limit A2), threshold TH2 (lower limit B1, upper limit B2), threshold TH3 (lower limit C1, upper limit C2),

当A1≤V≤A2,则识别出是按键SW1(Key_OK)被操作,则触发对应确认功能;When A1≤V≤A2, it is recognized that the key SW1 (Key_OK) is operated, and the corresponding confirmation function is triggered;

当B1≤V≤B2,则识别出是按键SW3(Key_V+)被操作,则触发对应音量增加功能。When B1≤V≤B2, it is recognized that the key SW3 (Key_V+) is operated, and the corresponding volume increase function is triggered.

当C1≤V≤C2,则识别出是按键SW2(Key_V-)被操作,则触发对应音量减小功能。When C1≤V≤C2, it is recognized that the key SW2 (Key_V-) is operated, and the corresponding volume reduction function is triggered.

容易理解,上述上述识别规则可以根据需要设置。It is easy to understand that the above-mentioned identification rules can be set as required.

同样的,如果硬件老化,比如按键SW1(Key_OK)串联的电阻阻值起了变化,那么有可能如图4b那么,用户操作按键SW1(Key_OK),在M+端子的电压值V。k超过了阈值TH1的上限值A1(如虚线所示),那么即便用户操作按键SW1(Key_OK),终端装置是无法识别的。Similarly, if the hardware is aging, for example, the resistance value of the resistor in series with the button SW1 (Key_OK) has changed, then it is possible that the user operates the button SW1 (Key_OK), as shown in Figure 4b, the voltage value V at the M+ terminal . If k exceeds the upper limit value A1 of the threshold value TH1 (as shown by the dotted line), even if the user operates the key SW1 (Key_OK), the terminal device cannot recognize it.

本发明实施例即是为了解决上述问题。即当耳机的至少一个按键对应的控制功能失效时,如何识别按键的控制功能。所述的失效至少包括,当用户操作某按键时,终端装置不能识别出其对应的控制功能。这个对应的控制功能可以是被厂商预先设置好的,也可以是用户自己设置的。The embodiments of the present invention are intended to solve the above problems. That is, when the control function corresponding to at least one button of the earphone fails, how to identify the control function of the button. The failure at least includes that when a user operates a certain key, the terminal device cannot identify its corresponding control function. The corresponding control function may be preset by the manufacturer, or may be set by the user.

终端装置可以提供一个校正功能,当至少一个按键失效时,用户可以启动该校正功能。本发明实施例对如何提供校正功能不做限定,可以是用语音的方式引导用户接下来的操作,也可以用图形界面的方式引导接下来的操作,或者两者皆有,等等。为了方便描述,以下以图形界面的方式来介绍。The terminal device may provide a correction function, which can be activated by the user when at least one key fails. The embodiment of the present invention does not limit how to provide the correction function, and the user may be guided for the next operation in a voice manner, or in a graphical interface manner, or both, and so on. For the convenience of description, the following is introduced in the form of a graphical interface.

为了方便理解,本发明实施例根据两种识别方式分别进行介绍。For the convenience of understanding, the embodiments of the present invention are respectively introduced according to two identification methods.

(一)对应上述第一种方式:(1) Corresponding to the first method above:

当至少一个按键,比如按键SW3(Key_V+)失效时,用户可以启动校正功能,打开用于校正的图形界面。当然,终端装置也可以提示用户校正,比如周期性地主动提示用户。When at least one key, such as key SW3 (Key_V+), fails, the user can activate the calibration function and open a graphical interface for calibration. Of course, the terminal device may also prompt the user for correction, for example, periodically and actively prompt the user.

终端装置可以通过图形界面引导用户根据控制功能,依次操作三个按键,比如对应确认功能,提示用户操作按键SW1(Key_OK)、对应音量增大功能,提示用户操作按键SW3(Key_V+)、对应音量减小功能,提示用户操作SW2(Key_V-)。可以理解,操作的顺序并不构成限定。The terminal device can guide the user through the graphical interface to operate the three buttons in sequence according to the control function, for example, corresponding to the confirmation function, prompting the user to operate the button SW1 (Key_OK), corresponding to the volume increase function, prompting the user to operate the button SW3 (Key_V+), corresponding to the volume decrease. Small function, prompting the user to operate SW2 (Key_V-). It will be understood that the order of operations is not intended to be limiting.

终端装置的控制单元获取用户操作上述三个按键时,耳机电路中M+端子的电信号,比如电压,假定分别为V1,V3,V2。The control unit of the terminal device acquires the electrical signals, such as voltages, of the M+ terminal in the earphone circuit when the user operates the above-mentioned three buttons, which are assumed to be V1, V3, and V2 respectively.

根据上述电压V1,V3,V2,控制单元得到识别阈值TH1’,TH2‘。控制单元可以设置规则来得到所述识别门限。比如可以将V1和V3之间某一电压值作为区别按键SW1(Key_OK)和SW3(Key_V+)的第一识别阈值TH1’,将V3和V2之间某一电压值作为区别按键SW3(Key_V+)和SW2(Key_V-)的第二识别阈值TH2‘。优选的,可以将V1和V3取平均值作为第一识别阈值TH1’,将V3和V2取平均值作为第二识别阈值TH2‘。Based on the above-mentioned voltages V1, V3, V2, the control unit obtains the identification thresholds TH1', TH2'. The control unit may set a rule to obtain the identification threshold. For example, a certain voltage value between V1 and V3 can be used as the first identification threshold TH1' to distinguish the keys SW1 (Key_OK) and SW3 (Key_V+), and a certain voltage value between V3 and V2 can be used as the difference between the keys SW3 (Key_V+) and SW3 (Key_V+). The second identification threshold TH2' of SW2 (Key_V-). Preferably, the average value of V1 and V3 can be taken as the first identification threshold TH1', and the average value of V3 and V2 can be taken as the second identification threshold TH2'.

基于所述识别阈值,终端装置识别所述三个按键的控制功能。在校正结束后,如果用户操作任一按键,耳机电路会产生一电压值V’,控制单元会比较电压值V’跟上述识别阈值的关系,并根据预设的规则识别该案件对应的控制功能。比如,如果V’≤TH1’,则识别为按键SW1(Key_OK)被操作,如果V’≥TH2‘,则识别出是按键SW2(Key_V-)被操作,如果TH1’<V’<TH2‘,则识别出是按键SW3(Key_V+)被操作。Based on the identification threshold, the terminal device identifies the control functions of the three keys. After the calibration, if the user operates any button, the headphone circuit will generate a voltage value V', and the control unit will compare the relationship between the voltage value V' and the above identification threshold, and identify the control function corresponding to the case according to the preset rules . For example, if V'≤TH1', it is recognized that the key SW1 (Key_OK) is operated, if V'≥TH2', it is recognized that the key SW2 (Key_V-) is operated, if TH1'<V'<TH2', Then it is recognized that the key SW3 (Key_V+) is operated.

很容易理解,按键数量可以为至少两个,按键对应的控制功能也不构成限定,但是原理类似。It is easy to understand that the number of buttons may be at least two, and the control functions corresponding to the buttons are not limited, but the principles are similar.

这样,即便耳机在使用一段时间之后,出现硬件老化,由于识别阈值是基于硬件老化之后的按键电信号来设置,使得终端装置可以识别用户按下的按键。In this way, even if the headset is used for a period of time, hardware aging occurs, because the recognition threshold is set based on the electrical signal of the key after the hardware is aging, so that the terminal device can recognize the key pressed by the user.

另外,不同的厂家的耳机其耳机电路构成的电阻阻值和/或工作电压可能不同,这样不同的耳机跟同一移动终端配合使用时,如果还使用相同的识别阈值,也会导致用户在操作按键时,终端设备不能识别或错误识别。本发明实施例也可解决该问题,因为终端装置可以根据每一款耳机重新设定识别阈值,从而识别不同耳机的按键。In addition, the resistance values and/or working voltages of the earphone circuits of earphones of different manufacturers may be different, so when different earphones are used with the same mobile terminal, if the same recognition threshold is used, it will also cause the user to operate the buttons. , the terminal equipment cannot be identified or misidentified. The embodiment of the present invention can also solve this problem, because the terminal device can reset the recognition threshold according to each earphone, so as to recognize the buttons of different earphones.

(二)、对应上述第二种方式,其中与第一种方式类似的地方,在此不再赘述。(2) Corresponding to the above-mentioned second method, the places similar to those of the first method are not repeated here.

当至少一个按键,比如按键SW1(Key_OK)失效时,用户可以启动校正功能,打开用于校正的图形界面。当然,终端装置也可以提示用户校正,比如周期性地主动提示用户。When at least one key, such as the key SW1 (Key_OK), fails, the user can activate the calibration function and open a graphical interface for calibration. Of course, the terminal device may also prompt the user for correction, for example, periodically and actively prompt the user.

终端装置可以引导用户根据控制功能,依次操作三个按键,比如对应确认功能,提示用户操作按键SW1(Key_OK)、对应音量增大功能,提示用户操作按键SW3(Key_V+)、对应音量减小功能,提示用户操作SW2(Key_V-)。可以理解,操作的顺序并不构成限定。The terminal device can guide the user to operate the three buttons in sequence according to the control function, for example, corresponding to the confirmation function, prompting the user to operate the button SW1 (Key_OK), corresponding to the volume increase function, prompting the user to operate the button SW3 (Key_V+), corresponding to the volume decrease function, Prompt the user to operate SW2 (Key_V-). It will be understood that the order of operations is not intended to be limiting.

终端装置的控制单元获取用户操作上述三个按键时,耳机电路中M+端子的电信号,比如电压,假定分别为V1,V3,V2。The control unit of the terminal device acquires the electrical signals, such as voltages, of the M+ terminal in the earphone circuit when the user operates the above-mentioned three buttons, which are assumed to be V1, V3, and V2 respectively.

根据上述电压V1,V3,V2,控制单元得到识别阈值。控制单元可以预设规则来得到所述识别阈值。比如可以根据阈值因子得到识别阈值,阈值因子作为确定识别阈值的上限和下限值。例如第一阈值因子为a1,a2,则将V1-a1设为A1’,将V1+a2设为A2’,从而得到第一识别阈值的下限和上限A1’和A2’;第二阈值因子为b1,b2,则将V3-b1设为B1’,将V1+b2设为B2’,从而得到第二识别阈值的下限和上限B1’和B2’;第三阈值因子为c1,c2,则将V2-c1设为C1’,将V2+c2设为C2’,从而得到第三识别阈值的下限和上限C1’和C2’。优选地,阈值因子的大小可以相同或部分相同。比如a1,a2,b1,b2,c1,c2的值相同,均取Δe;也可以,a1,a2均为Δe1,b1,b2均为Δe2,c1,c2均为Δe3。Based on the above-mentioned voltages V1, V3, V2, the control unit obtains the identification threshold. The control unit may preset a rule to obtain the identification threshold. For example, the identification threshold can be obtained according to the threshold factor, and the threshold factor is used as the upper limit and the lower limit for determining the identification threshold. For example, the first threshold factor is a1, a2, then V1-a1 is set as A1', and V1+a2 is set as A2', so as to obtain the lower and upper limits A1' and A2' of the first identification threshold; the second threshold factor is b1, b2, V3-b1 is set as B1', and V1+b2 is set as B2', so as to obtain the lower and upper limits B1' and B2' of the second identification threshold; the third threshold factor is c1, c2, then the V2-c1 is set as C1', and V2+c2 is set as C2', so as to obtain the lower and upper limits C1' and C2' of the third identification threshold. Preferably, the magnitudes of the threshold factors may be the same or partially the same. For example, the values of a1, a2, b1, b2, c1, and c2 are the same, and all take Δe; alternatively, a1, a2 are all Δe1, b1, b2 are all Δe2, and c1, c2 are all Δe3.

基于所述识别阈值,终端装置识别所述三个按键的控制功能。在校正结束后,如果用户操作任一按键,耳机电路会产生一电压值V’,控制单元会比较电压值V跟上述识别阈值的关系,并根据预设的规则识别该案件对应的控制功能。比如,当A1’≤V’≤A2’,则识别出是按键SW1(Key_OK)被操作,则触发对应确认功能;当B1’≤V’≤B2’,则识别出是按键SW3(Key_V+)被操作,则触发对应音量增加功能。当C1’≤V’≤C2’,则识别出是按键SW2(Key_V-)被操作,则触发对应音量减小功能。Based on the identification threshold, the terminal device identifies the control functions of the three keys. After the calibration is completed, if the user operates any button, the earphone circuit will generate a voltage value V', and the control unit will compare the relationship between the voltage value V and the above-mentioned identification threshold, and identify the control function corresponding to the case according to the preset rules. For example, when A1'≤V'≤A2', it is recognized that the key SW1 (Key_OK) is operated, and the corresponding confirmation function is triggered; when B1'≤V'≤B2', it is recognized that the key SW3 (Key_V+) is operated operation, the corresponding volume increase function will be triggered. When C1'≤V'≤C2', it is recognized that the key SW2 (Key_V-) is operated, and the corresponding volume reduction function is triggered.

很容易理解,按键数量可以为至少两个,按键对应的控制功能也不构成限定,但是原理类似。It is easy to understand that the number of buttons may be at least two, and the control functions corresponding to the buttons are not limited, but the principles are similar.

这样,即便耳机在使用一段时间之后,出现硬件老化,由于识别阈值是基于硬件老化之后的按键电信号来设置,使得终端装置可以识别用户按下的按键。In this way, even if the headset is used for a period of time, hardware aging occurs, because the recognition threshold is set based on the electrical signal of the key after the hardware is aging, so that the terminal device can recognize the key pressed by the user.

另外,不同的厂家的耳机其耳机电路构成的电阻阻值和/或工作电压可能不同,这样不同的耳机跟同一移动终端配合使用时,如果还使用相同的识别阈值,也会导致用户在操作按键时,终端设备不能识别或错误识别。本发明实施例也可解决该问题,因为终端装置可以根据每一款耳机重新设定识别阈值,从而识别不同耳机的按键。In addition, the resistance values and/or working voltages of the earphone circuits of earphones of different manufacturers may be different, so when different earphones are used with the same mobile terminal, if the same recognition threshold is used, it will also cause the user to operate the buttons. , the terminal equipment cannot be identified or misidentified. The embodiment of the present invention can also solve this problem, because the terminal device can reset the recognition threshold according to each earphone, so as to recognize the buttons of different earphones.

进一步地,对于对应上述第二种方式,上述描述的方案是:如果至少一个按键失效,则采集用户操作每个按键而产生的电压值,从而确定校正后的识别阈值。但是,优选的是,可以只针对失效的按键进行校正即可。比如按键SW1(Key_OK)失效时,终端装置可以仅引导用户操作按键SW1(Key_OK),获取到电压V1,其他按键因为并未失效,可以不校正。接下来,控制单元根据上述电压V1得到失效的按键SW1(Key_OK)的识别阈值(具体设置方法,参见上面的描述,在此不再赘述)。这样也能解决上面的类似问题。Further, for the above-mentioned second manner, the above-described solution is: if at least one button fails, the voltage value generated by the user operating each button is collected, so as to determine the corrected recognition threshold. However, it is preferable to correct only the failed keys. For example, when the key SW1 (Key_OK) fails, the terminal device may only guide the user to operate the key SW1 (Key_OK) to obtain the voltage V1, and the other keys may not be corrected because they have not failed. Next, the control unit obtains the identification threshold of the failed key SW1 (Key_OK) according to the above-mentioned voltage V1 (for a specific setting method, see the above description, which will not be repeated here). This can also solve similar problems above.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (4)

1.一种终端装置,其特征在于,所述终端装置包括:1. A terminal device, wherein the terminal device comprises: 输入单元和输出单元;input unit and output unit; 耳机接口,用于与耳机连接;所述耳机包括至少两个按键,所述至少两个按键分别对应一控制功能;所述耳机还包括耳机电路,用于响应用户对所述至少两个按键的操作而产生电信号;The earphone interface is used for connecting with the earphone; the earphone includes at least two buttons, and the at least two buttons respectively correspond to a control function; operate to generate electrical signals; 控制单元,用于当所述至少两个按键中的一个按键所对应的控制功能失效时,提示用户进行耳机校正,并通过图像界面或者语音引导用户操作所述失效的一个按键;获取用户操作所述失效的一个按键而由所述耳机电路产生的一个电信号,并根据获取到的所述一个电信号得到识别阈值;The control unit is used to prompt the user to perform headset correction when the control function corresponding to one of the at least two keys fails, and guide the user to operate the failed key through an image interface or voice; An electrical signal generated by the earphone circuit due to the failed key, and a recognition threshold is obtained according to the obtained electrical signal; 所述控制单元还用于,在用户进行耳机校正之后,根据所述识别阈值,识别所述失效的一个按键对应的控制功能;其中,所述识别阈值为数值范围,包括下限值和上限值。The control unit is further configured to, after the user calibrates the headset, identify a control function corresponding to the failed key according to the identification threshold; wherein the identification threshold is a numerical range, including a lower limit value and an upper limit value. 2.根据权利要求1所述终端装置,其特征在于,所述至少两个按键包括第一按键和第二按键,所述失效的一个按键为第一按键,相应地所述获取用户操作所述失效的一个按键而由所述耳机电路产生的一个电信号包括:获取用户操作所述失效的第一按键而由所述耳机产生的第一电信号,所述第一电信号表征为第一数值;2 . The terminal device according to claim 1 , wherein the at least two buttons comprise a first button and a second button, and the invalid one button is the first button, and correspondingly the acquiring the user operation An electrical signal generated by the earphone circuit due to an invalid button includes: acquiring a first electrical signal generated by the earphone when the user operates the disabled first button, and the first electrical signal is represented as a first value ; 所述控制单元用于:基于所述第一电信号表征的第一数值和第一阈值因子得到所述识别阈值的下限值和上限值。The control unit is configured to: obtain a lower limit value and an upper limit value of the identification threshold based on a first value represented by the first electrical signal and a first threshold factor. 3.根据权利要求2所述终端装置,其特征在于,所述控制单元还用于:3. The terminal device according to claim 2, wherein the control unit is further configured to: 接收用户操作所述第一按键或第二按键而由所述耳机电路产生的第五电信号;receiving a fifth electrical signal generated by the earphone circuit when the user operates the first button or the second button; 比较所述第五电信号跟所述识别阈值的大小关系;comparing the magnitude relationship between the fifth electrical signal and the identification threshold; 根据比较结果,按照预设的规则识别所述第五电信号对应的控制功能。According to the comparison result, the control function corresponding to the fifth electrical signal is identified according to a preset rule. 4.根据权利要求3所述终端装置,其特征在于,所述控制单元具体用于:4. The terminal device according to claim 3, wherein the control unit is specifically configured to: 当所述第五电信号大于或者等于所述识别阈值的下限值且小于或等于所述识别阈值的上限值,则识别为第一按键对应的控制功能。When the fifth electrical signal is greater than or equal to the lower limit of the identification threshold and less than or equal to the upper limit of the identification threshold, it is identified as a control function corresponding to the first key.
CN201480068790.5A 2014-12-26 2014-12-26 A kind of terminal installation Active CN105934931B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/095150 WO2016101269A1 (en) 2014-12-26 2014-12-26 Terminal device

Publications (2)

Publication Number Publication Date
CN105934931A CN105934931A (en) 2016-09-07
CN105934931B true CN105934931B (en) 2019-07-19

Family

ID=56148996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480068790.5A Active CN105934931B (en) 2014-12-26 2014-12-26 A kind of terminal installation

Country Status (2)

Country Link
CN (1) CN105934931B (en)
WO (1) WO2016101269A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242487B (en) * 2021-05-11 2022-12-02 深圳市中科蓝讯科技股份有限公司 Line control method, line control device, adapter and line control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534483A (en) * 2003-03-31 2004-10-06 联想(北京)有限公司 Realization method of pushbutton function control
CN201928419U (en) * 2011-01-21 2011-08-10 青岛海信移动通信技术股份有限公司 Earphone and mobile communication terminal provided with same
CN104244122A (en) * 2013-06-13 2014-12-24 无锡华润矽科微电子有限公司 Drive-by-wire headset and volume control circuit thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534483A (en) * 2003-03-31 2004-10-06 联想(北京)有限公司 Realization method of pushbutton function control
CN201928419U (en) * 2011-01-21 2011-08-10 青岛海信移动通信技术股份有限公司 Earphone and mobile communication terminal provided with same
CN104244122A (en) * 2013-06-13 2014-12-24 无锡华润矽科微电子有限公司 Drive-by-wire headset and volume control circuit thereof

Also Published As

Publication number Publication date
CN105934931A (en) 2016-09-07
WO2016101269A1 (en) 2016-06-30

Similar Documents

Publication Publication Date Title
KR101646964B1 (en) Circuit apparatus and method for recognition earphone in electronic device
US9319768B2 (en) Multi-standard headset support with integrated ground switching
US9654859B2 (en) Mobile terminal earphone line control circuit and line control method
TWI455609B (en) Electronic device, electronic system, and method for processing signals from an audio accessory thereof
US8290171B1 (en) Headset with microphone and wired remote control
KR101636771B1 (en) Circuit apparatus and method for recognition earphone in electronic device
JP4191192B2 (en) Identification method of audio device in portable terminal and portable terminal
US20140213327A1 (en) Microphone Line Based Detection of Headset Plug Removal
US8787589B2 (en) Electronic device and system and method thereof for identifying electronic accessory and controlling electronic device
US9319780B2 (en) Smart passive speaker drive
US8917883B2 (en) Electronic device and audio accessory having a plurality of passive switches for controlling the audio device
US20150110262A1 (en) Method and Apparatus for Controlling Call Audio Channel on Communications Terminal, and Communications Terminal
US9848270B2 (en) Electronic device, earphone, and electronic device system
CN107005762B (en) Audio connector identification method and portable electronic device
US20170223449A1 (en) Electronic device, earphone, and electronic device system
CN108955758A (en) Wearable device wearing detection method and related product
JP2013251728A (en) Connector device and electronic device
CN105934931B (en) A kind of terminal installation
CN102026419B (en) Electronic device and system and method for identifying electronic accessories and controlling electronic device
CN104969568B (en) Circuit, terminal and earphone for detecting earphone button action
CN115918055B (en) Communication system, voice input device, communication terminal, and storage medium
CN103347104B (en) The mobile device that can externally charge
KR20080065165A (en) Touch earphone, mobile terminal with touch earphone and its operation method
TW201633800A (en) An audio interface arrangement and a handheld device comprising the audio interface arrangement
CN203761446U (en) Circuit for the power supply of earphone in mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210508

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address