CN117278904B - Headphone control circuit, headphone control method and electronic equipment - Google Patents
Headphone control circuit, headphone control method and electronic equipment Download PDFInfo
- Publication number
- CN117278904B CN117278904B CN202311451412.2A CN202311451412A CN117278904B CN 117278904 B CN117278904 B CN 117278904B CN 202311451412 A CN202311451412 A CN 202311451412A CN 117278904 B CN117278904 B CN 117278904B
- Authority
- CN
- China
- Prior art keywords
- control
- circuit
- earphone
- control signal
- driving circuit
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Headphones And Earphones (AREA)
Abstract
本申请提供一种耳机控制电路、耳机控制方法及电子设备,在耳机被从电子设备中拔出时,可以使得耳机快速下电,从而可以减少或消除拔出产生的POP音,有助于提升用户对电子设备的体验感。其中,耳机控制电路包括处理电路、控制开关和驱动电路,控制开关连接于处理电路和驱动电路;在耳机与驱动电路连接时,处理电路输出的电源信号通过控制开关传输至驱动电路,驱动电路用于依据电源信号为耳机供电;处理电路,用于在识别到耳机与驱动电路断开连接时,输出第一控制信号至控制开关;控制开关,用于依据第一控制信号控制处理电路停止输出电源信号至驱动电路。
The present application provides an earphone control circuit, an earphone control method and an electronic device, which can quickly power off the earphone when the earphone is unplugged from the electronic device, thereby reducing or eliminating the POP sound generated by unplugging, and helping to improve the user's experience of the electronic device. The earphone control circuit includes a processing circuit, a control switch and a driving circuit, and the control switch is connected to the processing circuit and the driving circuit; when the earphone is connected to the driving circuit, the power signal output by the processing circuit is transmitted to the driving circuit through the control switch, and the driving circuit is used to power the earphone according to the power signal; the processing circuit is used to output a first control signal to the control switch when it is recognized that the earphone is disconnected from the driving circuit; the control switch is used to control the processing circuit to stop outputting the power signal to the driving circuit according to the first control signal.
Description
技术领域Technical Field
本申请实施例涉及电子设备技术领域,尤其涉及一种耳机控制电路、耳机控制方法及电子设备。The embodiments of the present application relate to the technical field of electronic devices, and in particular to an earphone control circuit, an earphone control method, and an electronic device.
背景技术Background technique
随着通用串行总线(universal serial bus TypeC,USB Type-C)接口(简称为Type-C接口)的逐渐普及,越来越多的电子设备取消模拟耳机(例如3.5mm耳机)接口,但是模拟耳机并没有退出市场,例如电子设备可通过Type-C接口与模拟耳机连接,以向模拟耳机传输音频信号。With the gradual popularization of the universal serial bus Type C (USB Type-C) interface (referred to as Type-C interface), more and more electronic devices have cancelled the analog headphone (such as 3.5mm headphone) interface, but the analog headphone has not withdrawn from the market. For example, electronic devices can be connected to analog headphones through the Type-C interface to transmit audio signals to the analog headphones.
对于支持模拟耳机的电子设备或通过Type-C接口支持模拟耳机的电子设备,模拟耳机被从电子设备中拔出的过程中通常会产出类似于“噗噗”的声音或电流声(将这类声音称为POP音),POP音将大大影响用户对电子设备的体验感。因此,如何减少或消除拔出产生的POP音是亟待解决的技术问题。For electronic devices that support analog headphones or electronic devices that support analog headphones through the Type-C interface, when the analog headphones are unplugged from the electronic device, a sound similar to "puff" or electric current sound (this type of sound is called POP sound) is usually produced. The POP sound will greatly affect the user's experience of the electronic device. Therefore, how to reduce or eliminate the POP sound generated by unplugging is a technical problem that needs to be solved urgently.
发明内容Summary of the invention
本申请实施例提供一种耳机控制电路、耳机控制方法及电子设备,使得驱动电路可以快速下电,从而使得耳机可以快速下电,进而可以减少或消除拔出产生的POP音,有助于提升用户对电子设备的体验感。The embodiments of the present application provide an earphone control circuit, an earphone control method and an electronic device, so that the driving circuit can be powered off quickly, so that the earphone can be powered off quickly, and the POP sound generated by unplugging can be reduced or eliminated, which helps to improve the user experience of the electronic device.
第一方面,本申请实施例提供一种耳机控制电路,该耳机控制电路包括处理电路、控制开关和驱动电路,控制开关连接于处理电路和驱动电路;在耳机与驱动电路连接时,处理电路输出的电源信号通过控制开关传输至驱动电路,驱动电路用于依据电源信号为耳机供电;处理电路,用于在识别到耳机与驱动电路断开连接时,输出第一控制信号至控制开关;控制开关,用于依据第一控制信号,控制处理电路停止输出电源信号至驱动电路。也就是说,在耳机被拔出时,控制开关可以依据第一控制信号控制驱动电路下电,使得驱动电路可以快速下电,耳机可以快速下电,进而可以减少或消除拔出产生的POP音,有助于提升用户对电子设备的体验感。In the first aspect, the embodiment of the present application provides an earphone control circuit, which includes a processing circuit, a control switch and a driving circuit, wherein the control switch is connected to the processing circuit and the driving circuit; when the earphone is connected to the driving circuit, the power signal output by the processing circuit is transmitted to the driving circuit through the control switch, and the driving circuit is used to power the earphone according to the power signal; the processing circuit is used to output a first control signal to the control switch when it is recognized that the earphone is disconnected from the driving circuit; the control switch is used to control the processing circuit to stop outputting the power signal to the driving circuit according to the first control signal. In other words, when the earphone is unplugged, the control switch can control the driving circuit to power off according to the first control signal, so that the driving circuit can be powered off quickly, and the earphone can be powered off quickly, thereby reducing or eliminating the POP sound generated by unplugging, which helps to improve the user's experience of the electronic device.
结合第一方面提供的耳机控制电路,在一些实施例中,上述处理电路包括控制信号输出端,控制信号输出端用于输出第一控制信号至控制开关;控制开关包括控制端,控制端连接于控制信号输出端,控制开关在接收到第一控制信号时,控制处理电路与驱动电路电性断开。这样,通过控制开关控制处理电路与驱动电路电性断开,使得处理电路停止输出电源信号至驱动电路,从而驱动电路可以快速下电,耳机可以快速下电。In combination with the headphone control circuit provided in the first aspect, in some embodiments, the processing circuit includes a control signal output terminal, the control signal output terminal is used to output a first control signal to a control switch; the control switch includes a control terminal, the control terminal is connected to the control signal output terminal, and when the control switch receives the first control signal, the processing circuit is controlled to be electrically disconnected from the drive circuit. In this way, the control switch controls the processing circuit to be electrically disconnected from the drive circuit, so that the processing circuit stops outputting a power signal to the drive circuit, so that the drive circuit can be quickly powered off, and the headphone can be quickly powered off.
结合第一方面提供的耳机控制电路,在一些实施例中,上述处理电路还包括供电端,也就是说,处理电路包括控制信号输出端和供电端,供电端用于输出电源信号,以向驱动电路供电;控制开关还包括第一导电端和第二导电端,也就是说,控制开关包括控制端、第一导电端和第二导电端。控制端连接于控制信号输出端,第一导电端连接于供电端,第二导电端连接于驱动电路;控制开关的控制端接收到控制信号输出端输出的第一控制信号时,控制开关控制第二导电端与驱动电路电性断开,使得处理电路不再向驱动电路供电,从而驱动电路可以快速下电,耳机可以快速下电。In combination with the headphone control circuit provided in the first aspect, in some embodiments, the processing circuit further includes a power supply end, that is, the processing circuit includes a control signal output end and a power supply end, and the power supply end is used to output a power signal to supply power to the driving circuit; the control switch further includes a first conductive end and a second conductive end, that is, the control switch includes a control end, a first conductive end and a second conductive end. The control end is connected to the control signal output end, the first conductive end is connected to the power supply end, and the second conductive end is connected to the driving circuit; when the control end of the control switch receives the first control signal output by the control signal output end, the control switch controls the second conductive end to be electrically disconnected from the driving circuit, so that the processing circuit no longer supplies power to the driving circuit, so that the driving circuit can be quickly powered off, and the headphone can be quickly powered off.
结合第一方面提供的耳机控制电路,在一些实施例中,控制开关为第一晶体管,第一晶体管包括栅极、漏极和源极;栅极作为控制端,连接于控制信号输出端;漏极作为第二导电端,连接于驱动电路;源极作为第一导电端,连接于供电端。第一晶体管的栅极接收到第一控制信号时,第一晶体管截止,供电端与驱动电路电性断开,使得处理电路不再向驱动电路供电,从而驱动电路可以快速下电,耳机可以快速下电。In combination with the headset control circuit provided in the first aspect, in some embodiments, the control switch is a first transistor, and the first transistor includes a gate, a drain, and a source; the gate is connected to the control signal output terminal as a control terminal; the drain is connected to the drive circuit as a second conductive terminal; the source is connected to the power supply terminal as a first conductive terminal. When the gate of the first transistor receives the first control signal, the first transistor is turned off, and the power supply terminal is electrically disconnected from the drive circuit, so that the processing circuit no longer supplies power to the drive circuit, so that the drive circuit can be quickly powered off, and the headset can be quickly powered off.
结合第一方面提供的耳机控制电路,在一些实施例中,上述处理电路包括控制信号输出端,控制信号输出端用于输出第一控制信号至控制开关;控制开关包括控制端,控制端连接于控制信号输出端,控制开关在接收到第一控制信号时,控制处理电路和驱动电路连接于接地端。处理电路和驱动电路连接于接地端,使得处理电路不再向确定电路供电,从而驱动电路可以快速下电,耳机可以快速下电。In combination with the headset control circuit provided in the first aspect, in some embodiments, the processing circuit includes a control signal output terminal, the control signal output terminal is used to output a first control signal to a control switch; the control switch includes a control terminal, the control terminal is connected to the control signal output terminal, and when the control switch receives the first control signal, the processing circuit and the driving circuit are connected to the ground terminal. The processing circuit and the driving circuit are connected to the ground terminal, so that the processing circuit no longer supplies power to the determination circuit, so that the driving circuit can be quickly powered off, and the headset can be quickly powered off.
结合第一方面提供的耳机控制电路,在一些实施例中,上述处理电路还包括供电端,也就是说,处理电路包括控制信号输出端和供电端,供电端用于输出电源信号,以向驱动电路供电;控制开关还包括第一导电端和第二导电端,也就是说,控制开关包括控制端、第一导电端和第二导电端。控制端连接于控制信号输出端,第一导电端连接于供电端和驱动电路,第二导电端连接于接地端;控制开关的控制端在接收到控制信号输出端输出的第一控制信号时,控制处理电路和驱动电路连接于接地端,使得处理电路不再向确定电路供电,从而驱动电路不再向耳机供电,使得耳机可以快速下电。In combination with the headphone control circuit provided in the first aspect, in some embodiments, the processing circuit further includes a power supply terminal, that is, the processing circuit includes a control signal output terminal and a power supply terminal, and the power supply terminal is used to output a power signal to supply power to the driving circuit; the control switch further includes a first conductive terminal and a second conductive terminal, that is, the control switch includes a control terminal, a first conductive terminal and a second conductive terminal. The control terminal is connected to the control signal output terminal, the first conductive terminal is connected to the power supply terminal and the driving circuit, and the second conductive terminal is connected to the ground terminal; when the control terminal of the control switch receives the first control signal output by the control signal output terminal, the control circuit and the driving circuit are connected to the ground terminal, so that the processing circuit no longer supplies power to the determination circuit, and the driving circuit no longer supplies power to the headphone, so that the headphone can be powered off quickly.
结合第一方面提供的耳机控制电路,在一些实施例中,控制开关为第二晶体管,第二晶体管包括栅极、漏极和源极,栅极作为控制端,连接于控制信号输出端;漏极作为第一导电端,连接于供电端和驱动电路;源极作为第二导电端,连接于接地端。第二晶体管的栅极接收到第一控制信号时,第二晶体管导通,从而处理电路和驱动电路通过漏极和源极电性连接接地端,也就是说,处理电路和驱动电路通过导通的第二晶体管连接于接地端。这样使得供电端输出的电源信号的电压迅速拉低,从而驱动电路可以快速下电,耳机可以快速下电。In combination with the headphone control circuit provided in the first aspect, in some embodiments, the control switch is a second transistor, and the second transistor includes a gate, a drain and a source. The gate serves as a control terminal and is connected to the control signal output terminal; the drain serves as a first conductive terminal and is connected to the power supply terminal and the drive circuit; the source serves as a second conductive terminal and is connected to the ground terminal. When the gate of the second transistor receives the first control signal, the second transistor is turned on, so that the processing circuit and the drive circuit are electrically connected to the ground terminal through the drain and the source, that is, the processing circuit and the drive circuit are connected to the ground terminal through the turned-on second transistor. In this way, the voltage of the power signal output by the power supply terminal is quickly lowered, so that the drive circuit can be quickly powered off and the headphones can be quickly powered off.
结合第一方面提供的耳机控制电路,在一些实施例中,上述耳机控制电路还包括限流单元,限流单元的一端连接于第二晶体管的源极,另一端连接于接地端,也就是说,限流单元连接于第二晶体管的源极和接地端。在第二晶体管导通的情况下,第二晶体管的漏极和源极通过限流单元与接地端电性导通,从而供电端和驱动电路与接地端电性导通,使得供电端输出的电源信号的电压迅速拉低,这样驱动电路可以快速下电,耳机可以快速下电。其中,限流单元用于限制第二晶体管导通时,供电端至接地端的电流大小,以避免电源信号的电流过大烧坏第二晶体管。限流单元可以是限流电阻。In combination with the headphone control circuit provided in the first aspect, in some embodiments, the headphone control circuit further includes a current limiting unit, one end of the current limiting unit is connected to the source of the second transistor, and the other end is connected to the ground terminal, that is, the current limiting unit is connected to the source and the ground terminal of the second transistor. When the second transistor is turned on, the drain and source of the second transistor are electrically connected to the ground terminal through the current limiting unit, so that the power supply end and the drive circuit are electrically connected to the ground terminal, so that the voltage of the power signal output by the power supply end is quickly lowered, so that the drive circuit can be quickly powered off, and the headphone can be quickly powered off. Among them, the current limiting unit is used to limit the current from the power supply end to the ground terminal when the second transistor is turned on, so as to avoid the current of the power supply signal being too large and burning the second transistor. The current limiting unit can be a current limiting resistor.
结合第一方面提供的耳机控制电路,在一些实施例中,上述处理电路,还用于在识别到耳机与驱动电路连接时,输出第二控制信号至控制开关;控制开关,还用于依据第二控制信号,控制处理电路与驱动电路电性导通,使得处理电路可以向驱动电路供电。其中,第二控制信号的电平不同于第一控制信号的电平。也就是说,不同电平的控制信号使得处理电路与驱动电路电性导通或断开。In combination with the headphone control circuit provided in the first aspect, in some embodiments, the processing circuit is further used to output a second control signal to the control switch when the headphone is identified to be connected to the driving circuit; the control switch is further used to control the processing circuit and the driving circuit to be electrically connected according to the second control signal, so that the processing circuit can supply power to the driving circuit. The level of the second control signal is different from the level of the first control signal. That is, control signals of different levels make the processing circuit and the driving circuit electrically connected or disconnected.
结合第一方面提供的耳机控制电路,在一些实施例中,第一控制信号的电平为高电平,第二控制信号的电平为低电平。也就是说,高电平的控制信号使得处理电路不再向驱动电路供电,以使耳机下电;低电平的控制信号使用处理电路向驱动电路供电,以使耳机上电。控制信号可以是耳机中断信号。In conjunction with the headphone control circuit provided in the first aspect, in some embodiments, the level of the first control signal is a high level, and the level of the second control signal is a low level. That is, the high-level control signal causes the processing circuit to no longer supply power to the drive circuit, so that the headphone is powered off; the low-level control signal uses the processing circuit to supply power to the drive circuit, so that the headphone is powered on. The control signal may be a headphone interrupt signal.
结合第一方面提供的耳机控制电路,在一些实施例中,上述控制开关包括N型晶体管、P型晶体管、开关器中的一个或多个。其中,N型晶体管可以是上述的第二晶体管,P型晶体管可以是上述的第一晶体管。也就是说,控制开关可以是一个晶体管,也可以是多个晶体管或开关器的组合,例如控制开关包括一个N型晶体管和一个P型晶体管。对于控制开关为一个晶体管或一个开关器而言,电路结构简单,易于实现。In combination with the headphone control circuit provided in the first aspect, in some embodiments, the control switch includes one or more of an N-type transistor, a P-type transistor, and a switch. Among them, the N-type transistor can be the second transistor mentioned above, and the P-type transistor can be the first transistor mentioned above. In other words, the control switch can be a transistor, or a combination of multiple transistors or switches, for example, the control switch includes an N-type transistor and a P-type transistor. For the control switch being a transistor or a switch, the circuit structure is simple and easy to implement.
第二方面,本申请实施例提供一种耳机控制方法,该方法应用于电子设备,电子设备包括处理电路、控制开关和驱动电路;其中,在耳机被插入电子设备时,处理电路用于输出电源信号并通过控制开关将电源信号传输至驱动电路,驱动电路用于依据电源信号为耳机供电。该方法可包括:响应于耳机被从电子设备中拔出并与驱动电路断开连接,处理电路输出第一控制信号;控制开关接收第一控制信号,并依据第一控制信号控制处理电路停止向驱动电路输出电源信号。也就是说,在耳机被拔出时,控制开关可以依据第一控制信号控制驱动电路下电,使得驱动电路可以快速下电,耳机可以快速下电,进而可以减少或消除拔出产生的POP音,有助于提升用户对电子设备的体验感。In the second aspect, an embodiment of the present application provides a headset control method, which is applied to an electronic device, and the electronic device includes a processing circuit, a control switch, and a driving circuit; wherein, when the headset is inserted into the electronic device, the processing circuit is used to output a power signal and transmit the power signal to the driving circuit through the control switch, and the driving circuit is used to power the headset according to the power signal. The method may include: in response to the headset being unplugged from the electronic device and disconnected from the driving circuit, the processing circuit outputs a first control signal; the control switch receives the first control signal, and controls the processing circuit to stop outputting the power signal to the driving circuit according to the first control signal. That is, when the headset is unplugged, the control switch can control the driving circuit to power off according to the first control signal, so that the driving circuit can be powered off quickly, and the headset can be powered off quickly, thereby reducing or eliminating the POP sound generated by unplugging, which helps to improve the user's experience of the electronic device.
结合第二方面提供的方法,在一些实施例中,在耳机被从电子设备中拨出之后且耳机下电之后,响应于耳机被插入电子设备并与驱动电路连接,处理电路输出第二控制信号;控制开关接收第二控制信号,并依据第二控制信号控制处理电路向驱动电路输出电源信号,使得处理电路可以向驱动电路供电。其中,第二控制信号的电平不同于第一控制信号的电平。也就是说,不同电平的控制信号使得处理电路与驱动电路电性导通或断开。In combination with the method provided in the second aspect, in some embodiments, after the earphone is unplugged from the electronic device and the earphone is powered off, in response to the earphone being plugged into the electronic device and connected to the driving circuit, the processing circuit outputs a second control signal; the control switch receives the second control signal, and controls the processing circuit to output a power signal to the driving circuit according to the second control signal, so that the processing circuit can supply power to the driving circuit. The level of the second control signal is different from the level of the first control signal. That is, control signals of different levels make the processing circuit and the driving circuit electrically connected or disconnected.
结合第二方面提供的方法,在一些实施例中,第一控制信号的电平为高电平,第二控制信号的电平为低电平。也就是说,高电平的控制信号使得处理电路不再向驱动电路供电,以使耳机下电;低电平的控制信号使用处理电路向驱动电路供电,以使耳机上电。控制信号可以是耳机中断信号。In combination with the method provided in the second aspect, in some embodiments, the level of the first control signal is a high level, and the level of the second control signal is a low level. That is, the high-level control signal causes the processing circuit to no longer supply power to the drive circuit, so that the headset is powered off; the low-level control signal uses the processing circuit to supply power to the drive circuit, so that the headset is powered on. The control signal may be a headset interrupt signal.
结合第二方面提供的方法,在一些实施例中,上述控制开关包括N型晶体管、P型晶体管、开关器中的一个或多个。也就是说,控制开关可以是一个晶体管,也可以是多个晶体管或开关器的组合,例如控制开关包括一个N型晶体管和一个P型晶体管。对于控制开关为一个晶体管或一个开关器而言,电路结构简单,易于实现。In combination with the method provided in the second aspect, in some embodiments, the control switch includes one or more of an N-type transistor, a P-type transistor, and a switch. That is, the control switch can be a transistor, or a combination of multiple transistors or switches, for example, the control switch includes an N-type transistor and a P-type transistor. For the control switch being a transistor or a switch, the circuit structure is simple and easy to implement.
第三方面,本申请实施例提供一种电子设备,该电子设备包括第一方面以及第一方面中任一可能的实现方式提供的耳机控制电路。In a third aspect, an embodiment of the present application provides an electronic device, which includes the earphone control circuit provided by the first aspect and any possible implementation manner of the first aspect.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例提供的一种应用场景的示意图;FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2是模拟耳机的圆形插头的管脚的示意图;FIG2 is a schematic diagram of the pins of a circular plug simulating an earphone;
图3A是当前的耳机控制电路的电路结构示意图;FIG3A is a schematic diagram of the circuit structure of a current earphone control circuit;
图3B是耳机被插入电子设备100的波形图;FIG3B is a waveform diagram of an earphone being inserted into the electronic device 100;
图3C是耳机被从电子设备100中拔出的波形图;FIG3C is a waveform diagram showing that the earphone is unplugged from the electronic device 100;
图4是本申请实施例提供的一种耳机控制电路的电路结构示意图;FIG4 is a schematic diagram of a circuit structure of an earphone control circuit provided in an embodiment of the present application;
图5是本申请实施例提供的另一种耳机控制电路的电路结构示意图;FIG5 is a schematic diagram of the circuit structure of another earphone control circuit provided in an embodiment of the present application;
图6是本申请实施例提供的耳机从电子设备100中拨出的波形图;FIG6 is a waveform diagram of an earphone dialing out of an electronic device 100 provided in an embodiment of the present application;
图7是本申请实施例提供的一种耳机控制电路的示例图;FIG7 is an exemplary diagram of an earphone control circuit provided in an embodiment of the present application;
图8是本申请实施例提供的另一种耳机控制电路的示例图;FIG8 is an exemplary diagram of another earphone control circuit provided in an embodiment of the present application;
图9是本申请实施例提供的电子设备的硬件结构图。FIG. 9 is a hardware structure diagram of an electronic device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
本申请实施例中的术语“第一”、“第二”、“第三”等是区别于不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤或单元,或者可选地,还包括没有列出的步骤或单元,或者可选地还包括这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", etc. in the embodiments of the present application are distinguished from different objects, rather than being used to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a series of steps or units are included, or alternatively, steps or units not listed are also included, or other steps or units inherent to these processes, methods, products or devices are also included.
对于支持模拟耳机的电子设备或通过Type-C接口支持模拟耳机的电子设备,模拟耳机在插入电子设备时,由于电子设备对外部耳机电路模块的上电逻辑存在软件开启等延时,因此插入产生POP音的概率较低;但是,模拟耳机被从电子设备中拔出时,由于音频等信号一直处于通信状态,拨出是瞬间的物理动作,因此拔出产生POP音的概率较大。For electronic devices that support analog headphones or electronic devices that support analog headphones through a Type-C interface, when the analog headphones are inserted into the electronic device, the probability of generating a POP sound is low because the electronic device has delays such as software startup in the power-on logic of the external headphone circuit module; however, when the analog headphones are unplugged from the electronic device, since audio and other signals are always in a communication state and unplugging is an instantaneous physical action, the probability of generating a POP sound is higher.
鉴于此,本申请实施例提供了一种耳机控制电路、耳机控制方法及电子设备,通过在电子设备的电路结构中增加控制开关,以减少或消除模拟耳机拔出产生的POP音,有助于提升用户对电子设备的体验感。也就是说,无需对电子设备的软件流程进行改进,便能减少或消除模拟耳机拔出产生的POP音。In view of this, the embodiments of the present application provide an earphone control circuit, an earphone control method, and an electronic device, which reduce or eliminate the POP sound generated by unplugging a simulated earphone by adding a control switch in the circuit structure of the electronic device, thereby helping to improve the user experience of the electronic device. In other words, the POP sound generated by unplugging a simulated earphone can be reduced or eliminated without improving the software process of the electronic device.
为了使得本申请的技术方案更加清楚,下面先对本申请实施例的应用场景进行介绍。In order to make the technical solution of the present application clearer, the application scenarios of the embodiments of the present application are first introduced below.
示例性的,请参见图1,是本申请实施例提供的一种应用场景的示例图。该应用场景可包括电子设备100、Type-C转接头200和耳机300。For example, please refer to Fig. 1, which is an example diagram of an application scenario provided by an embodiment of the present application. The application scenario may include an electronic device 100, a Type-C adapter 200, and a headset 300.
电子设备100可以是手机、平板电脑;电子设备100也可以是桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence, AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备;电子设备100还可以是音乐播放器、随身听等播放设备。本申请实施例对该电子设备的具体类型不作特殊限制。图1所示的应用场景以电子设备100为手机为例。The electronic device 100 may be a mobile phone or a tablet computer; the electronic device 100 may also be a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device and/or a smart city device; the electronic device 100 may also be a music player, a walkman or other playback device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device. The application scenario shown in FIG1 takes the electronic device 100 as a mobile phone as an example.
Type-C转接头200包括Type-C插头和模拟耳机插孔,Type-C插头与模拟耳机插孔通过数据线连接。Type-C插头与Type-C接口契合,用于插入电子设备100的Type-C接口;模拟耳机插孔与模拟耳机的圆形插头契合,用于插入模拟耳机的圆形插头。待Type-C插头插入电子设备100的Type-C接口,且模拟耳机插头插入模拟耳机孔之后,电子设备100与模拟耳机实现连接,进而电子设备100可向模拟耳机传输音频信号。The Type-C adapter 200 includes a Type-C plug and an analog headphone jack, and the Type-C plug and the analog headphone jack are connected via a data cable. The Type-C plug fits with the Type-C interface and is used to be inserted into the Type-C interface of the electronic device 100; the analog headphone jack fits with the round plug of the analog headphone and is used to be inserted into the round plug of the analog headphone. After the Type-C plug is inserted into the Type-C interface of the electronic device 100 and the analog headphone plug is inserted into the analog headphone jack, the electronic device 100 is connected to the analog headphone, and then the electronic device 100 can transmit audio signals to the analog headphone.
耳机300指的是模拟耳机,模拟耳机可以理解为不具有Type-C插头的耳机,或者可以理解为通常的圆柱形插头3.5mm耳机。模拟耳机可通过Type-C转接头200与电子设备100连接。本申请实施例中涉及的耳机指的是模拟耳机。The earphone 300 refers to an analog earphone, which can be understood as an earphone without a Type-C plug, or can be understood as a common cylindrical plug 3.5mm earphone. The analog earphone can be connected to the electronic device 100 via the Type-C adapter 200. The earphone involved in the embodiment of the present application refers to an analog earphone.
图1的(1)所示的场景为Type-C插头已插入电子设备100的Type-C接口,耳机300的圆形插头将要插入模拟耳机插孔。该场景可以理解为耳机300将要插入电子设备100的场景。在本申请实施例中,耳机300插入电子设备100可以是耳机300直接通过其圆形插头插入电子设备100的3.5mm耳机插孔,也可以是耳机300通过Type-C转接头200插入电子设备100的Type-C接口。The scenario shown in (1) of FIG. 1 is that the Type-C plug has been inserted into the Type-C interface of the electronic device 100, and the round plug of the earphone 300 is about to be inserted into the analog earphone jack. This scenario can be understood as a scenario in which the earphone 300 is about to be inserted into the electronic device 100. In the embodiment of the present application, the earphone 300 is inserted into the electronic device 100 by directly inserting the earphone 300 into the 3.5mm earphone jack of the electronic device 100 through its round plug, or the earphone 300 is inserted into the Type-C interface of the electronic device 100 through the Type-C adapter 200.
图1的(2)所示的场景为Type-C插头已插入电子设备100的Type-C接口,耳机300的圆形插头将要从模拟耳机插孔拔出。该场景可以理解为耳机300将要从电子设备100中拔出的场景。在本申请实施例中,耳机300从电子设备100中拔出可以是耳机300直接从电子设备100的3.5mm耳机插孔拔出,也可以是耳机300从Type-C转接头200的模拟耳机插孔拔出,而不是Type-C插头从电子设备100中拔出。The scenario shown in (2) of FIG. 1 is that the Type-C plug has been inserted into the Type-C interface of the electronic device 100, and the round plug of the earphone 300 is about to be unplugged from the analog earphone jack. This scenario can be understood as a scenario in which the earphone 300 is about to be unplugged from the electronic device 100. In the embodiment of the present application, the earphone 300 may be unplugged from the electronic device 100 directly from the 3.5mm earphone jack of the electronic device 100, or may be unplugged from the analog earphone jack of the Type-C adapter 200, instead of the Type-C plug being unplugged from the electronic device 100.
也就是说,本申请实施例可以应用于耳机直接插拔电子设备的场景,也可以应用于耳机通过Type-C转接头插拔电子设备的场景,还可以应用于耳机通过其他类型转接头插拔电子设备的场景。That is to say, the embodiments of the present application can be applied to scenarios where headphones are directly plugged into or unplugged from electronic devices, or to scenarios where headphones are plugged into or unplugged from electronic devices via Type-C adapters, or to scenarios where headphones are plugged into or unplugged from electronic devices via other types of adapters.
请参见图2,是模拟耳机的圆形插头的管脚的示意图。模拟耳机的圆形插头包括四个管脚,这四个管脚分别是管脚SLEEVE,管脚RING2,管脚RING1和管脚TIP。如图2的(1)所示,管脚SLEEVE用于接地,管脚RING2用于实现麦克风功能,管脚RING1用于实现右声道功能,管脚TIP用于实现左声道功能。如图2的(2)所示,管脚SLEEVE用于实现麦克风功能,管脚RING2用于接地,管脚RING1用于实现右声道功能,管脚TIP用于实现左声道功能。图2中加粗的线条表示绝缘环的正视效果。Please refer to Figure 2, which is a schematic diagram of the pins of the circular plug of the analog headset. The circular plug of the analog headset includes four pins, which are pin SLEEVE, pin RING2, pin RING1 and pin TIP. As shown in (1) of Figure 2, pin SLEEVE is used for grounding, pin RING2 is used to implement the microphone function, pin RING1 is used to implement the right channel function, and pin TIP is used to implement the left channel function. As shown in (2) of Figure 2, pin SLEEVE is used to implement the microphone function, pin RING2 is used for grounding, pin RING1 is used to implement the right channel function, and pin TIP is used to implement the left channel function. The bold lines in Figure 2 represent the front view effect of the insulating ring.
在对本申请实施例提供的耳机控制电路进行介绍之前,对当前的耳机控制电路进行介绍。Before introducing the earphone control circuit provided in the embodiment of the present application, the current earphone control circuit is introduced.
请参见图3A,是当前的耳机控制电路的电路结构示意图。该耳机控制电路是电子设备100的部分电路结构,包括处理电路301和驱动电路302。其中,处理电路301用于在耳机被插入电子设备时,为驱动电路302供电,从而驱动电路302为耳机供电。Please refer to FIG3A, which is a schematic diagram of the circuit structure of the current earphone control circuit. The earphone control circuit is a partial circuit structure of the electronic device 100, including a processing circuit 301 and a driving circuit 302. The processing circuit 301 is used to power the driving circuit 302 when the earphone is inserted into the electronic device, so that the driving circuit 302 powers the earphone.
驱动电路302是电子设备100上的耳机电路,用于实现耳机电路的功能。驱动电路也可以描述为耳机驱动电路、耳机电路或耳机硬件电路等。驱动电路302用于实现耳机的上电或下电。驱动电路302在有电源供给的情况下,可实现耳机的上电;驱动电路302在无电源供给的情况下,可实现耳机的下电。The driving circuit 302 is an earphone circuit on the electronic device 100, which is used to implement the functions of the earphone circuit. The driving circuit can also be described as an earphone driving circuit, an earphone circuit, or an earphone hardware circuit. The driving circuit 302 is used to power on or off the earphone. The driving circuit 302 can power on the earphone when there is power supply; the driving circuit 302 can power off the earphone when there is no power supply.
处理电路301可以包括控制信号模块301a,用于提供高电平或低电平的控制信号,控制信号指的是耳机中断信号,耳机中断信号也可以描述为HP_EINT。例如,在耳机被插入电子设备100之前,控制信号模块301a提供高电平的控制信号;在耳机被插入电子设备100时,控制信号模块301a将控制信号从高电平变为低电平,之后提供低电平的控制信号;在耳机被从电子设备100中拔出时,控制信号模块301a将控制信号从低电平变为高电平,之后提供高电平的控制信号。The processing circuit 301 may include a control signal module 301a for providing a high-level or low-level control signal, the control signal being a headphone interrupt signal, which may also be described as HP_EINT. For example, before the headphone is inserted into the electronic device 100, the control signal module 301a provides a high-level control signal; when the headphone is inserted into the electronic device 100, the control signal module 301a changes the control signal from a high level to a low level, and then provides a low-level control signal; when the headphone is unplugged from the electronic device 100, the control signal module 301a changes the control signal from a low level to a high level, and then provides a high-level control signal.
可选的,处理电路301还可以包括其他模块,例如音频模块和应用处理器(Application Processor,AP)模块等。音频模块用于实现音频功能,例如音频编解码等。音频模块可以进一步包括音频模块内部的供电电源V1、软件开关、硬件门电路、寄存器和向驱动电路302供电的电源V2等。向音频模块供电的电源可以称为音频模块的总供电电源V0,音频模块的总供电电源V0可以包含在处理电路301中,也可以在处理电路301之外。AP模块可实现AP的功能,电子设备100的操作系统、用户界面以及应用程序等都在AP上执行。为了描述方便,下面将音频模块的总供电电源V0简称为V0,将向驱动电路302供电的电源V2简称为V2。Optionally, the processing circuit 301 may also include other modules, such as an audio module and an application processor (AP) module. The audio module is used to implement audio functions, such as audio encoding and decoding. The audio module may further include a power supply V1 inside the audio module, a software switch, a hardware gate circuit, a register, and a power supply V2 for supplying power to the drive circuit 302. The power supply for supplying power to the audio module may be referred to as the total power supply V0 of the audio module, and the total power supply V0 of the audio module may be included in the processing circuit 301 or outside the processing circuit 301. The AP module can implement the functions of the AP, and the operating system, user interface, and application programs of the electronic device 100 are all executed on the AP. For the convenience of description, the total power supply V0 of the audio module is referred to as V0, and the power supply V2 for supplying power to the drive circuit 302 is referred to as V2.
处理电路301可以是集成电路(Integrated Circuit,IC),例如编解码器(codec)IC,电源管理单元(Power Management Unit,PMU)IC等,处理电路301还可以是系统级芯片(System on Chip,SOC)等。The processing circuit 301 may be an integrated circuit (IC), such as a codec IC, a power management unit (PMU) IC, etc. The processing circuit 301 may also be a system on chip (SOC), etc.
处理电路301包括供电端3011和控制信号输出端3012。供电端3011用于向驱动电路302供电。控制信号输出端3012可以理解为控制信号模块301a的输出端,用于输出控制信号。The processing circuit 301 includes a power supply terminal 3011 and a control signal output terminal 3012. The power supply terminal 3011 is used to supply power to the driving circuit 302. The control signal output terminal 3012 can be understood as an output terminal of the control signal module 301a, which is used to output a control signal.
以耳机被插入电子设备100之前,控制信号模块301a提供高电平的控制信号为例,在耳机被插入电子设备100时,电子设备100的模拟耳机插孔内的弹片与接地端(Ground,GND)短路,使得控制信号模块301a将控制信号从高电平变为低电平。驱动电路302包括模拟耳机插孔内的弹片和GND,耳机被插入电子设备100时,驱动电路302中的弹片与GND短路,使得控制信号模块301a将控制信号从高电平变为低电平,从而控制信号模块301a输出低电平的控制信号。Taking the example that the control signal module 301a provides a high-level control signal before the earphone is inserted into the electronic device 100, when the earphone is inserted into the electronic device 100, the spring in the analog earphone jack of the electronic device 100 is short-circuited with the ground terminal (Ground, GND), so that the control signal module 301a changes the control signal from a high level to a low level. The driving circuit 302 includes a spring in the analog earphone jack and GND. When the earphone is inserted into the electronic device 100, the spring in the driving circuit 302 is short-circuited with GND, so that the control signal module 301a changes the control signal from a high level to a low level, so that the control signal module 301a outputs a low-level control signal.
示例性的,可参见图3B所示的耳机被插入电子设备100的波形图。图3B中,控制信号的电压在被插入耳机之前,一直是高电平,在被插入耳机时,立即变为低电平;V2的电压在被插入耳机之前,一直是低电平,在被插入耳机的一段时间(即虚线所示的时间差)后,变为高电平;MIC_P的电压在被插入耳机之前,一直是低电平,在被插入耳机的一段时间(即虚线所示的时间差)后,变为高电平。也就是说,MIC_P的电压的变化与V2的电压的变化一致。其中,MIC_P指的是模拟耳机插孔中与图2的(2)所示的管脚SLEEVE匹配的管脚。虚线所示的时间差可以理解为消抖时间,其取值范围为250ms~260ms,图3A以260ms为例。消抖时间也可以理解为V2与实际插入时间之间的延时时间。For example, see the waveform diagram of the earphone being inserted into the electronic device 100 shown in FIG3B. In FIG3B, the voltage of the control signal is always at a high level before the earphone is inserted, and immediately becomes a low level when the earphone is inserted; the voltage of V2 is always at a low level before the earphone is inserted, and becomes a high level after a period of time (i.e., the time difference shown by the dotted line) after the earphone is inserted; the voltage of MIC_P is always at a low level before the earphone is inserted, and becomes a high level after a period of time (i.e., the time difference shown by the dotted line) after the earphone is inserted. In other words, the change in the voltage of MIC_P is consistent with the change in the voltage of V2. Among them, MIC_P refers to the pin in the analog headphone jack that matches the pin SLEEVE shown in (2) of FIG2. The time difference shown by the dotted line can be understood as the debounce time, and its value range is 250ms~260ms. FIG3A takes 260ms as an example. The debounce time can also be understood as the delay time between V2 and the actual insertion time.
在耳机被从电子设备100中拔出时,电子设备100的模拟耳机插孔内的弹片与GND分离,使得控制信号模块301a将控制信号从低电平变为高电平,从而控制信号模块301a输出高电平的控制信号。When the earphone is unplugged from the electronic device 100, the spring in the analog earphone jack of the electronic device 100 is separated from GND, so that the control signal module 301a changes the control signal from a low level to a high level, and the control signal module 301a outputs a high level control signal.
示例性的,可参见图3C所示的耳机被从电子设备100中拔出的波形图。图3C中,控制信号的电压在拔出之前,一直是低电平,在拔出后变为高电平,但是V2的电压在拔出后是高电平,并且高电平还维持了一段时间(图3C以该段时间为2ms为例),该段时间后变为低电平。在这2ms内,在拔出耳机时,如果耳机的管脚SLEEVE、管脚RING1或管脚TIP与模拟耳机插孔中的GND短路,由于耳机还未完全下电,那么就会产生POP音。For example, see the waveform of the earphone being unplugged from the electronic device 100 shown in FIG3C. In FIG3C, the voltage of the control signal is always at a low level before being unplugged, and becomes a high level after being unplugged, but the voltage of V2 is at a high level after being unplugged, and the high level is maintained for a period of time (FIG3C takes this period of time as 2ms as an example), and then becomes a low level after this period of time. Within this 2ms, when the earphone is unplugged, if the earphone pin SLEEVE, the pin RING1 or the pin TIP is short-circuited with the GND in the analog earphone jack, a POP sound will be generated because the earphone has not been completely powered off.
可以理解的是,基于图3A所示的电路结构,耳机被从电子设备100中拔出时,会产生POP音。因此,本申请实施例提供一种耳机控制电路,可以减少或消除拔出产生的POP音。It is understandable that, based on the circuit structure shown in Fig. 3A, a POP sound is generated when the earphone is unplugged from the electronic device 100. Therefore, an embodiment of the present application provides an earphone control circuit that can reduce or eliminate the POP sound generated by unplugging.
下面对本申请实施例提供的耳机控制电路进行介绍。The earphone control circuit provided in the embodiment of the present application is introduced below.
请参见图4,是本申请实施例提供的一种耳机控制电路的电路结构示意图。该耳机控制电路是电子设备100的部分电路结构,包括处理电路301、驱动电路302和控制开关303。其中,处理电路301包括控制信号模块301a,具体可参见图3A中对该模块的具体描述。Please refer to Figure 4, which is a schematic diagram of the circuit structure of an earphone control circuit provided in an embodiment of the present application. The earphone control circuit is a partial circuit structure of the electronic device 100, including a processing circuit 301, a driving circuit 302 and a control switch 303. Among them, the processing circuit 301 includes a control signal module 301a, and the specific description of the module can be referred to in Figure 3A.
控制开关303连接于处理电路301和驱动电路302。对于耳机已被插入电子设备100(也就是说,耳机已与驱动电路302电性连接)而言,控制开关303、处理电路301以及驱动电路302,三者之间电性连接,从而处理电路301可以为驱动电路302供电。其中,电性连接指的是电路连接,即电路是通的,可以传输电压电流。The control switch 303 is connected to the processing circuit 301 and the driving circuit 302. When the earphone is inserted into the electronic device 100 (that is, the earphone is electrically connected to the driving circuit 302), the control switch 303, the processing circuit 301 and the driving circuit 302 are electrically connected, so that the processing circuit 301 can supply power to the driving circuit 302. The electrical connection refers to the circuit connection, that is, the circuit is connected and can transmit voltage and current.
在耳机被插入电子设备100时,驱动电路302中的弹片与GND短路,从而驱动电路302电路连接耳机,使得驱动电路302可以为耳机供电。驱动电路302为耳机供电,可以理解为驱动电路302向耳机提供电源信号。基于驱动电路302与耳机之间的电路连接,以及控制开关303、处理电路301以及驱动电路302三者之间的电性连接,处理电路301输出的电源信号可通过控制开关303传输至驱动电路302,从而驱动电路302依据电源信号为耳机供电。When the earphone is inserted into the electronic device 100, the spring in the driving circuit 302 is short-circuited to GND, so that the driving circuit 302 is connected to the earphone, so that the driving circuit 302 can power the earphone. The driving circuit 302 powers the earphone, which can be understood as the driving circuit 302 providing a power signal to the earphone. Based on the circuit connection between the driving circuit 302 and the earphone, and the electrical connection between the control switch 303, the processing circuit 301 and the driving circuit 302, the power signal output by the processing circuit 301 can be transmitted to the driving circuit 302 through the control switch 303, so that the driving circuit 302 powers the earphone according to the power signal.
在耳机被从电子设备100拔出时,驱动电路302中的弹片与GND分离,从而驱动电路302与耳机之间的电路连接断开。处理电路301在识别到耳机与驱动电路302断开连接时,输出第一控制信号至控制开关303。第一控制信号的电平与耳机与驱动电路302断开连接之前的电平不同,例如第一控制信号为高电平,耳机与驱动电路302断开连接之前的控制信号为低电平;再例如,第一控制信号为低电平,耳机与驱动电路302断开连接之前的控制信号为高电平。本申请实施例以第一控制信号为高电平为例。具体的,控制信号模块301a在识别到耳机与驱动电路302断开连接时,将控制信号从低电平变为高电平,并输出第一控制信号。When the earphone is unplugged from the electronic device 100, the spring in the driving circuit 302 is separated from the GND, so that the circuit connection between the driving circuit 302 and the earphone is disconnected. When the processing circuit 301 recognizes that the earphone is disconnected from the driving circuit 302, it outputs a first control signal to the control switch 303. The level of the first control signal is different from the level before the earphone is disconnected from the driving circuit 302. For example, the first control signal is a high level, and the control signal before the earphone is disconnected from the driving circuit 302 is a low level; for another example, the first control signal is a low level, and the control signal before the earphone is disconnected from the driving circuit 302 is a high level. The embodiment of the present application takes the first control signal as a high level as an example. Specifically, when the control signal module 301a recognizes that the earphone is disconnected from the driving circuit 302, it changes the control signal from a low level to a high level and outputs the first control signal.
控制开关303在接收到第一控制信号时,依据第一控制信号,控制处理电路301停止输出电源信号至驱动电路302。也就是说,控制开关303依据第一控制信号,控制处理电路301停止向驱动电路302供电。在图4所示的电路结构中,控制开关303依据第一控制信号,控制处理电路301与驱动电路302电性断开,即断开处理电路301与驱动电路302之间的电路通路,从而处理电路301不再向驱动电路302供电,这样驱动电路302也不再向耳机供电,使得耳机可以快速下电。When the control switch 303 receives the first control signal, the control switch 303 controls the processing circuit 301 to stop outputting the power signal to the driving circuit 302 according to the first control signal. That is, the control switch 303 controls the processing circuit 301 to stop supplying power to the driving circuit 302 according to the first control signal. In the circuit structure shown in FIG4 , the control switch 303 controls the processing circuit 301 to be electrically disconnected from the driving circuit 302 according to the first control signal, that is, the circuit path between the processing circuit 301 and the driving circuit 302 is disconnected, so that the processing circuit 301 no longer supplies power to the driving circuit 302, and the driving circuit 302 no longer supplies power to the earphone, so that the earphone can be powered off quickly.
处理电路301包括控制信号输出端3012,控制信号输出端3012用于输出控制信号至控制开关303。对于耳机被从电子设备100中拔出时而言,控制信号输出端3012用于输出第一控制信号至控制开关303。也就是说,控制信号输出端3012用于将第一控制信号输出至控制开关303。The processing circuit 301 includes a control signal output terminal 3012, and the control signal output terminal 3012 is used to output a control signal to the control switch 303. When the earphone is unplugged from the electronic device 100, the control signal output terminal 3012 is used to output a first control signal to the control switch 303. In other words, the control signal output terminal 3012 is used to output the first control signal to the control switch 303.
处理电路301还包括供电端3011,供电端3011用于输出电源信号,以便向驱动电路302。The processing circuit 301 further includes a power supply terminal 3011 , and the power supply terminal 3011 is used to output a power signal to the driving circuit 302 .
如图4所示,控制开关303包括控制端3031、第一导电端3032和第二导电端3033。其中,控制端3031连接于控制信号输出端3012,第一导电端3032连接于供电端3011,第二导电端3033连接于驱动电路302。控制端3031在接收到第一控制信号时,控制第一导电端3032与第二导电端3033电性断开,从而处理电路301与驱动电路302电性断开。As shown in FIG4 , the control switch 303 includes a control terminal 3031, a first conductive terminal 3032, and a second conductive terminal 3033. The control terminal 3031 is connected to the control signal output terminal 3012, the first conductive terminal 3032 is connected to the power supply terminal 3011, and the second conductive terminal 3033 is connected to the drive circuit 302. When the control terminal 3031 receives the first control signal, the first conductive terminal 3032 is controlled to be electrically disconnected from the second conductive terminal 3033, so that the processing circuit 301 is electrically disconnected from the drive circuit 302.
对于耳机被从电子设备100中拔出之后,又被插入电子设备100而言,驱动电路302中的弹片与GND短路,从而驱动电路302电路连接耳机。处理电路301在识别到耳机与驱动电路302电路连接时,输出第二控制信号至控制开关。具体的,控制信号模块301a在识别到耳机与驱动电路302电路连接时,将控制信号从高电平变为低电平,并输出第二控制信号。When the earphone is unplugged from the electronic device 100 and then plugged into the electronic device 100 again, the spring in the driving circuit 302 is short-circuited with the GND, so that the driving circuit 302 is connected to the earphone. When the processing circuit 301 recognizes that the earphone is connected to the driving circuit 302, it outputs a second control signal to the control switch. Specifically, when the control signal module 301a recognizes that the earphone is connected to the driving circuit 302, it changes the control signal from a high level to a low level and outputs a second control signal.
控制开关303在接收到第二控制信号时,依据第二控制信号,控制处理电路301与驱动电路302电性导通。也就是说,控制开关303依据第二控制信号,控制处理电路301向驱动电路302供电。具体的,控制端3031在接收到第二控制信号时,控制第一导电端3032与第二导电端3033电性导通,从而处理电路301与驱动电路302电性导通。When the control switch 303 receives the second control signal, the control switch 303 controls the processing circuit 301 to be electrically connected to the driving circuit 302 according to the second control signal. In other words, the control switch 303 controls the processing circuit 301 to supply power to the driving circuit 302 according to the second control signal. Specifically, when the control terminal 3031 receives the second control signal, the control terminal 3031 controls the first conductive terminal 3032 to be electrically connected to the second conductive terminal 3033, so that the processing circuit 301 and the driving circuit 302 are electrically connected.
示例性的,可参见图6所示的耳机从电子设备100中拨出的波形图。图6中,控制信号的电压在拔出之前,一直是低电平,在拔出的一段时间后,变为高电平;V2的电压在拔出之前,一直是高电平,在拔出的一段时间后,变为低电平。图6中虚线所示的一段时间可以理解为V2的电压变化时间,其取值范围在330微秒内,图6以330微秒为例。该取值范围比消抖时间的取值范围更小,因此可以有效减少拔出产生的POP音,甚至可避免任何POP音。图6中,控制信号的电压变化与V2的电压变化存在细微时延,该细微时延可能是控制开关303反映的时延或者第一控制信号传输的时延。For example, see the waveform of the earphone being unplugged from the electronic device 100 shown in FIG6 . In FIG6 , the voltage of the control signal is always at a low level before being unplugged, and becomes a high level after a period of time after being unplugged; the voltage of V2 is always at a high level before being unplugged, and becomes a low level after a period of time after being unplugged. The period of time shown by the dotted line in FIG6 can be understood as the voltage change time of V2, and its value range is within 330 microseconds, and FIG6 takes 330 microseconds as an example. This value range is smaller than the value range of the de-bouncing time, so it can effectively reduce the POP sound generated by unplugging, and even avoid any POP sound. In FIG6 , there is a slight delay between the voltage change of the control signal and the voltage change of V2, and the slight delay may be the delay reflected by the control switch 303 or the delay in the transmission of the first control signal.
对比图6和图3C可知,控制信号的电压信号从低电平变为高电平后,图3C中V2的高电平持续了2ms才变为低电平,远大于图6中V2的电压变化时间330微秒,从而采用本申请实施例可以有效减少或避免拨出产生的POP音。By comparing FIG6 and FIG3C , it can be seen that after the voltage signal of the control signal changes from a low level to a high level, the high level of V2 in FIG3C lasts for 2 ms before changing to a low level, which is much longer than the voltage change time of V2 in FIG6 , which is 330 microseconds. Thus, the use of the embodiment of the present application can effectively reduce or avoid the POP sound generated by dialing out.
请参见图5,是本申请实施例提供的另一种耳机控制电路的电路结构示意图。该耳机控制电路是电子设备100的部分电路结构,包括处理电路301、驱动电路302和控制开关303。其中,处理电路301包括控制信号模块301a,具体可参见图3A中对该模块的具体描述。Please refer to Figure 5, which is a schematic diagram of the circuit structure of another earphone control circuit provided in an embodiment of the present application. The earphone control circuit is a partial circuit structure of the electronic device 100, including a processing circuit 301, a driving circuit 302 and a control switch 303. Among them, the processing circuit 301 includes a control signal module 301a, and the specific description of the module can be referred to in Figure 3A.
控制开关303连接于处理电路301和驱动电路302。对于耳机已被插入电子设备100(也就是说,耳机已与驱动电路302电性连接)而言,控制开关303、处理电路301以及驱动电路302,三者之间电性连接,从而处理电路301可以为驱动电路302供电。The control switch 303 is connected to the processing circuit 301 and the driving circuit 302. When the earphone is inserted into the electronic device 100 (that is, the earphone is electrically connected to the driving circuit 302), the control switch 303, the processing circuit 301 and the driving circuit 302 are electrically connected, so that the processing circuit 301 can supply power to the driving circuit 302.
在耳机被插入电子设备100时,驱动电路302中的弹片与GND短路,从而驱动电路302电路连接耳机,使得驱动电路302可以为耳机供电。When the earphone is inserted into the electronic device 100 , the spring in the driving circuit 302 is short-circuited with the GND, so that the driving circuit 302 is connected to the earphone, so that the driving circuit 302 can supply power to the earphone.
在耳机被从电子设备100拔出时,驱动电路302中的弹片与GND分离,从而驱动电路302与耳机之间的电路连接断开。处理电路301在识别到耳机与驱动电路302断开连接时,输出第一控制信号至控制开关303。具体的,控制信号模块301a在识别到耳机与驱动电路302断开连接时,将控制信号从低电平变为高电平,并输出第一控制信号。When the earphone is unplugged from the electronic device 100, the spring in the driving circuit 302 is separated from the GND, so that the circuit connection between the driving circuit 302 and the earphone is disconnected. When the processing circuit 301 recognizes that the earphone is disconnected from the driving circuit 302, it outputs a first control signal to the control switch 303. Specifically, when the control signal module 301a recognizes that the earphone is disconnected from the driving circuit 302, it changes the control signal from a low level to a high level and outputs the first control signal.
控制开关303在接收到第一控制信号时,依据第一控制信号,控制处理电路301停止输出电源信号至驱动电路302。也就是说,控制开关303依据第一控制信号,控制处理电路301停止向驱动电路302供电。在图5所示的电路结构中,控制开关303依据第一控制信号,控制处理电路301和驱动电路302连接于GND,即控制处理电路301和驱动电路302接地,从而处理电路301不再向驱动电路302供电,这样驱动电路302也不再向耳机供电,使得耳机可以快速下电。When the control switch 303 receives the first control signal, the control switch 303 controls the processing circuit 301 to stop outputting the power signal to the driving circuit 302 according to the first control signal. That is, the control switch 303 controls the processing circuit 301 to stop supplying power to the driving circuit 302 according to the first control signal. In the circuit structure shown in FIG5 , the control switch 303 controls the processing circuit 301 and the driving circuit 302 to be connected to GND according to the first control signal, that is, the processing circuit 301 and the driving circuit 302 are grounded, so that the processing circuit 301 no longer supplies power to the driving circuit 302, and the driving circuit 302 no longer supplies power to the earphone, so that the earphone can be powered off quickly.
处理电路301包括控制信号输出端3012,控制信号输出端3012用于输出控制信号至控制开关303。处理电路301还包括供电端3011,供电端3011用于输出电源信号,以便向驱动电路302。The processing circuit 301 includes a control signal output terminal 3012, which is used to output a control signal to the control switch 303. The processing circuit 301 also includes a power supply terminal 3011, which is used to output a power signal to the driving circuit 302.
如图5所示,控制开关303包括控制端3031、第一导电端3032和第二导电端3033。其中,控制端3031连接于控制信号输出端3012,第一导电端3032连接于供电端3011和驱动电路302,第二导电端3033连接于GND。控制端3031在接收到第一控制信号时,控制第一导电端3032与第二导电端3033电性导通并接地,从而处理电路301不再向驱动电路302供电。As shown in FIG5 , the control switch 303 includes a control terminal 3031, a first conductive terminal 3032, and a second conductive terminal 3033. The control terminal 3031 is connected to the control signal output terminal 3012, the first conductive terminal 3032 is connected to the power supply terminal 3011 and the drive circuit 302, and the second conductive terminal 3033 is connected to GND. When the control terminal 3031 receives the first control signal, the first conductive terminal 3032 and the second conductive terminal 3033 are electrically connected and grounded, so that the processing circuit 301 no longer supplies power to the drive circuit 302.
可选的,图5所示的电路结构还可以包括限流单元,限流单元连接于第二导电端3033和GND;第一导电端3032和所述第二导电端3033通过限流单元与GND电性导通。限流单元,用于限制第一导电端3032与第二导电端3033电性导通时,供电端3011至GND的电流大小。也就是说,限流单元用于避免V2被拉出过流的情况。限流单元可以是限流电阻,限流电阻的大小与供电端3011输出的电源信号的电压和电流有关。例如,限流电阻的阻值不大于供电端3011输出的电源信号的电压与电流的比值。对于耳机被从电子设备100中拔出之后,又被插入电子设备100而言,驱动电路302中的弹片与GND短路,从而驱动电路302电路连接耳机。处理电路301在识别到耳机与驱动电路302电路连接时,输出第二控制信号至控制开关。Optionally, the circuit structure shown in FIG5 may further include a current limiting unit, which is connected to the second conductive end 3033 and GND; the first conductive end 3032 and the second conductive end 3033 are electrically connected to GND through the current limiting unit. The current limiting unit is used to limit the current from the power supply end 3011 to GND when the first conductive end 3032 and the second conductive end 3033 are electrically connected. In other words, the current limiting unit is used to avoid the situation where V2 is pulled out of the overcurrent. The current limiting unit can be a current limiting resistor, and the size of the current limiting resistor is related to the voltage and current of the power signal output by the power supply end 3011. For example, the resistance of the current limiting resistor is not greater than the ratio of the voltage to the current of the power signal output by the power supply end 3011. For the earphone being unplugged from the electronic device 100 and then inserted into the electronic device 100, the spring in the drive circuit 302 is short-circuited with GND, so that the drive circuit 302 is connected to the earphone. When the processing circuit 301 recognizes that the earphone is connected to the drive circuit 302, it outputs a second control signal to the control switch.
控制开关303在接收到第二控制信号时,依据第二控制信号,控制处理电路301与驱动电路302电性导通。也就是说,控制开关303依据第二控制信号,控制处理电路301向驱动电路302供电。具体的,控制端3031在接收到第二控制信号时,控制第一导电端3032与第二导电端3033电性断开,从而处理电路301与驱动电路302电性导通。示例性的,可参见图6所示的耳机从电子设备100中拨出的波形图。图6中,控制信号的电压在拔出之前,一直是低电平,在拔出的一段时间后,变为高电平;V2的电压在拔出之前,一直是高电平,在拔出的一段时间后,变为低电平。图6中虚线所示的一段时间可以理解为V2的电压变化时间,其取值范围在330微秒内,图6以330微秒为例。该取值范围比消抖时间的取值范围更小,因此可以有效减少拔出产生的POP音,甚至可避免任何POP音。图6中,控制信号的电压变化与V2的电压变化存在细微时延,该细微时延可能是控制开关303反映的时延或者第一控制信号传输的时延。When the control switch 303 receives the second control signal, the control switch 303 controls the processing circuit 301 and the driving circuit 302 to be electrically connected according to the second control signal. That is, the control switch 303 controls the processing circuit 301 to supply power to the driving circuit 302 according to the second control signal. Specifically, when the control terminal 3031 receives the second control signal, the first conductive terminal 3032 and the second conductive terminal 3033 are electrically disconnected, so that the processing circuit 301 and the driving circuit 302 are electrically connected. For example, see the waveform diagram of the earphone being unplugged from the electronic device 100 shown in FIG6. In FIG6, the voltage of the control signal is always at a low level before being unplugged, and becomes a high level after a period of unplugging; the voltage of V2 is always at a high level before being unplugged, and becomes a low level after a period of unplugging. The period of time shown by the dotted line in FIG6 can be understood as the voltage change time of V2, and its value range is within 330 microseconds. FIG6 takes 330 microseconds as an example. This value range is smaller than the value range of the debounce time, so it can effectively reduce the POP sound caused by unplugging, and even avoid any POP sound. In Figure 6, there is a slight delay between the voltage change of the control signal and the voltage change of V2, which may be the delay reflected by the control switch 303 or the delay of the first control signal transmission.
对比图6和图3C可知,控制信号的电压信号从低电平变为高电平后,图3C中V2的高电平持续了2ms才变为低电平,远大于图6中V2的电压变化时间330微秒,从而采用本申请实施例可以有效减少或避免拨出产生的POP音。By comparing FIG6 and FIG3C , it can be seen that after the voltage signal of the control signal changes from a low level to a high level, the high level of V2 in FIG3C lasts for 2 ms before changing to a low level, which is much longer than the voltage change time of V2 in FIG6 , which is 330 microseconds. Thus, the use of the embodiment of the present application can effectively reduce or avoid the POP sound generated by dialing out.
基于图4和图5所示的电路结构,V2的电压变化时间均以330微秒为例,考虑图4与图5结构的差异,V2的电压变化时间可能有些许差别,但电压变化时间均以微秒为单位。Based on the circuit structures shown in FIG. 4 and FIG. 5 , the voltage change time of V2 is taken as 330 microseconds as an example. Considering the difference between the structures of FIG. 4 and FIG. 5 , the voltage change time of V2 may be slightly different, but the voltage change time is in microseconds.
下面对本申请实施例提供的耳机控制电路进行举例说明。The earphone control circuit provided in the embodiment of the present application is described below by way of example.
示例性的,可参见图7所示的一种耳机控制电路的示例图。图7将图4中的控制开关303替换为第一晶体管,第一晶体管为P型晶体管。第一晶体管包括栅极(G)、漏极(D)和源极(S)。栅极(G)作为图4中的控制端3031,漏极(D)作为图4中的第二导电端3033,源极(S)作为图4中的第一导电端3032。第一晶体管接收到第一控制信号时,第一晶体管截止,从而供电端3011与驱动电路302电性断开,使得处理电路301不再向驱动电路302供电,从而驱动电路302可以快速下电,耳机可以快速下电。第一晶体管接收到第二控制信号时,第一晶体管导通,从而供电端3011与驱动电路302电性导通,使得处理电路301向驱动电路302供电,从而驱动电路302可以为耳机供电。For example, please refer to the example diagram of a headset control circuit shown in FIG7. FIG7 replaces the control switch 303 in FIG4 with a first transistor, and the first transistor is a P-type transistor. The first transistor includes a gate (G), a drain (D), and a source (S). The gate (G) serves as the control terminal 3031 in FIG4, the drain (D) serves as the second conductive terminal 3033 in FIG4, and the source (S) serves as the first conductive terminal 3032 in FIG4. When the first transistor receives the first control signal, the first transistor is turned off, so that the power supply terminal 3011 is electrically disconnected from the drive circuit 302, so that the processing circuit 301 no longer supplies power to the drive circuit 302, so that the drive circuit 302 can be quickly powered off, and the headset can be quickly powered off. When the first transistor receives the second control signal, the first transistor is turned on, so that the power supply terminal 3011 is electrically connected to the drive circuit 302, so that the processing circuit 301 supplies power to the drive circuit 302, so that the drive circuit 302 can power the headset.
示例性的,可参见图8所示的另一种耳机控制电路的示例图。图8将图5中的控制开关303替换为第二晶体管,第二晶体管为N型晶体管。第二晶体管包括栅极(G)、漏极(D)和源极(S)。栅极(G)作为图5中的控制端3031,漏极(D)作为图5中的第一导电端3032,源极(S)作为图5中的第二导电端3033,源极(S)通过限流电阻3034连接于GND。第二晶体管接收到第一控制信号时,第二晶体管导通,处理电路301和驱动电路302接地,使得处理电路301不再向驱动电路302供电,从而驱动电路302可以快速下电,耳机可以快速下电。第二晶体管接收到第二控制信号时,第二晶体管截止,从而供电端3011与驱动电路302电性导通,使得处理电路301向驱动电路302供电,从而驱动电路302可以为耳机供电。For example, please refer to another example diagram of the headphone control circuit shown in FIG8. FIG8 replaces the control switch 303 in FIG5 with a second transistor, and the second transistor is an N-type transistor. The second transistor includes a gate (G), a drain (D), and a source (S). The gate (G) serves as the control terminal 3031 in FIG5, the drain (D) serves as the first conductive terminal 3032 in FIG5, the source (S) serves as the second conductive terminal 3033 in FIG5, and the source (S) is connected to GND through a current limiting resistor 3034. When the second transistor receives the first control signal, the second transistor is turned on, and the processing circuit 301 and the driving circuit 302 are grounded, so that the processing circuit 301 no longer supplies power to the driving circuit 302, so that the driving circuit 302 can be quickly powered off, and the headphone can be quickly powered off. When the second transistor receives the second control signal, the second transistor is turned off, so that the power supply terminal 3011 is electrically connected to the driving circuit 302, so that the processing circuit 301 supplies power to the driving circuit 302, so that the driving circuit 302 can power the headphone.
图7以P型晶体管为例,图8以N型晶体管为例,在图3A的基础上增加一个晶体管,便能减少或消除耳机拔出时产生的POP音,对图3A的改动较小,易于实现,成本较低。可选的,控制开关可以采用一个P型晶体管与一个N型晶体管的组合,具体组合结构在本申请实施例中不作限定。可选的,控制开关也可以是开关器或开关芯片等,用于实现单刀双掷的功能。换言之,控制开关可以包括N型晶体管、P型晶体管、开关器中的一个或多个。FIG7 takes a P-type transistor as an example, and FIG8 takes an N-type transistor as an example. By adding a transistor on the basis of FIG3A, the POP sound generated when the earphone is unplugged can be reduced or eliminated. The change to FIG3A is small, easy to implement, and low cost. Optionally, the control switch can adopt a combination of a P-type transistor and an N-type transistor. The specific combination structure is not limited in the embodiment of the present application. Optionally, the control switch can also be a switch or a switch chip, etc., for realizing the function of single-pole double throw. In other words, the control switch can include one or more of an N-type transistor, a P-type transistor, and a switch.
本申请实施例还提供一种耳机控制方法,该方法应用于电子设备,电子设备包括处理电路、控制开关和驱动电路;其中,在耳机被插入电子设备时,处理电路用于输出电源信号并通过控制开关将电源信号传输至驱动电路,驱动电路用于依据电源信号为耳机供电。在耳机被从电子设备中拔出时,耳机与驱动电路断开连接,处理电路输出第一控制信号;控制开关接收第一控制信号,并依据第一控制信号控制处理电路停止向驱动电路输出电源信号。也就是说,在耳机被拔出时,控制开关可以依据第一控制信号控制驱动电路下电,使得驱动电路可以快速下电,耳机可以快速下电,进而可以减少或消除拔出产生的POP音,有助于提升用户对电子设备的体验感。The embodiment of the present application also provides a headset control method, which is applied to an electronic device, and the electronic device includes a processing circuit, a control switch and a driving circuit; wherein, when the headset is inserted into the electronic device, the processing circuit is used to output a power signal and transmit the power signal to the driving circuit through the control switch, and the driving circuit is used to power the headset according to the power signal. When the headset is unplugged from the electronic device, the headset is disconnected from the driving circuit, and the processing circuit outputs a first control signal; the control switch receives the first control signal, and controls the processing circuit to stop outputting the power signal to the driving circuit according to the first control signal. In other words, when the headset is unplugged, the control switch can control the driving circuit to power off according to the first control signal, so that the driving circuit can be powered off quickly, and the headset can be powered off quickly, thereby reducing or eliminating the POP sound generated by unplugging, which helps to improve the user's experience of the electronic device.
在耳机被从电子设备中拨出之后且耳机下电之后,耳机又被插入电子设备时,耳机与驱动电路连接,处理电路输出第二控制信号;控制开关接收第二控制信号,并依据第二控制信号控制处理电路向驱动电路输出电源信号,使得处理电路可以向驱动电路供电。After the earphone is unplugged from the electronic device and powered off, when the earphone is plugged into the electronic device again, the earphone is connected to the driving circuit, and the processing circuit outputs a second control signal; the control switch receives the second control signal, and controls the processing circuit to output a power signal to the driving circuit according to the second control signal, so that the processing circuit can supply power to the driving circuit.
图9示例性示出了电子设备100的硬件结构示意图。FIG. 9 exemplarily shows a schematic diagram of the hardware structure of the electronic device 100 .
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频处理模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio processing module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括AP,调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signalprocessor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在本申请实施例中,处理器110可以实现处理电路的功能。The processor 110 may include one or more processing units, for example, the processor 110 may include an AP, a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. In an embodiment of the present application, the processor 110 may implement the functions of a processing circuit.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。在本申请实施例中,USB Type C接口用于通过Type-C转接头连接模拟耳机。The USB interface 130 is an interface that complies with the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc. In an embodiment of the present application, the USB Type C interface is used to connect analog headphones via a Type-C adapter.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC ,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and/or satellite based augmentation system (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM )和一个或多个非易失性存储器(non-volatile memory,NVM)。The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory, DRAM)、同步动态随机存储器(synchronous dynamic random access memory, SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory, DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5 SDRAM)等。非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc. Non-volatile memory may include disk storage devices and flash memory.
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
电子设备100可以通过音频处理模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions such as music playing and recording through the audio processing module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor.
音频处理模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频处理模块170还可以用于对音频信号编码和解码。在一些实施例中,音频处理模块170可以设置于处理器110中,或将音频处理模块170的部分功能模块设置于处理器110中。The audio processing module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio processing module 170 can also be used to encode and decode audio signals. In some embodiments, the audio processing module 170 can be arranged in the processor 110, or some functional modules of the audio processing module 170 can be arranged in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。陀螺仪传感器180B可以用于确定电子设备100的运动姿态。气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。温度传感器180J用于检测温度。触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。骨传导传感器180M可以获取振动信号。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The air pressure sensor 180C is used to measure the air pressure. The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The distance sensor 180F is used to measure the distance. The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense the brightness of the ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K is also called a "touch device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or in the vicinity thereof. The bone conduction sensor 180M can acquire a vibration signal.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. Indicator 192 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting the SIM card interface 195 or pulling the SIM card interface 195 out. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
本申请的说明书和权利要求书及附图中的术语“用户界面 (user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在终端设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图片、文字、按钮等控件。控件(control)也称为部件(widget),是用户界面的基本元素,典型的控件有工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、按钮(button)、滚动条(scrollbar)、图片和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,GTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如GTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。The term "user interface (UI)" in the specification, claims and drawings of this application refers to the medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that can be recognized by the user, such as pictures, text, buttons and other controls. Controls (controls), also known as widgets, are basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, pictures and text. The properties and contents of controls in the interface are defined by tags or nodes. For example, XML specifies the controls contained in the interface through nodes such as <Textview>, <ImgView>, and <VideoView>. A node corresponds to a control or attribute in the interface, and the node is presented as user-visible content after being parsed and rendered. In addition, many applications, such as hybrid applications, usually also contain web pages in their interfaces. A web page, also called a page, can be understood as a special control embedded in an application interface. A web page is a source code written in a specific computer language, such as hypertext markup language (GTML), cascading style sheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component similar to a browser. The specific content contained in a web page is also defined by tags or nodes in the web page source code. For example, GTML defines the elements and attributes of a web page through <p>, <img>, <video>, and <canvas>.
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。The most common form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operation that is displayed in a graphical manner. It can be an icon, window, control or other interface element displayed on the display screen of an electronic device, where a control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets and other visual interface elements.
在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the specification and the appended claims of the present application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also include plural expressions, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" used in the present application refers to and includes any or all possible combinations of one or more of the listed items. As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrase "when determining..." or "if (stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "when (stated condition or event) is detected" or "in response to detecting (stated condition or event)", depending on the context.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311451412.2A CN117278904B (en) | 2023-11-03 | 2023-11-03 | Headphone control circuit, headphone control method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311451412.2A CN117278904B (en) | 2023-11-03 | 2023-11-03 | Headphone control circuit, headphone control method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117278904A CN117278904A (en) | 2023-12-22 |
| CN117278904B true CN117278904B (en) | 2024-06-14 |
Family
ID=89206429
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311451412.2A Active CN117278904B (en) | 2023-11-03 | 2023-11-03 | Headphone control circuit, headphone control method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117278904B (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN205017561U (en) * | 2015-08-24 | 2016-02-03 | 上海与德通讯技术有限公司 | Electronic equipment and suppression circuit of earphone plug plosive thereof |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7627128B2 (en) * | 2008-01-14 | 2009-12-01 | Apple Inc. | Methods of calibrating tone-based communications systems |
| CN103024632B (en) * | 2012-12-30 | 2016-06-01 | 青岛歌尔声学科技有限公司 | A kind of noise reduction device of earphone |
| CN204206434U (en) * | 2014-12-04 | 2015-03-11 | 青岛歌尔声学科技有限公司 | For eliminating audio frequency processing circuit and the line control earphone of headset plugging noise |
| CN105812979B (en) * | 2016-04-21 | 2018-12-14 | 歌尔股份有限公司 | A kind of earphone |
| CN109218871B (en) * | 2017-06-29 | 2020-10-16 | 北京小米移动软件有限公司 | Earphone interface circuit, audio module and electronic equipment |
| CN206894876U (en) * | 2017-07-03 | 2018-01-16 | 上海斐讯数据通信技术有限公司 | A kind of earphone insertion POP noise eliminates circuit |
| CN210721446U (en) * | 2019-11-20 | 2020-06-09 | 深圳市腾腾高科电子技术有限公司 | Interface detection control device and interface converter |
| CN214045978U (en) * | 2021-02-20 | 2021-08-24 | 维沃移动通信有限公司 | Headphone socket circuits and electronic equipment |
| CN215072913U (en) * | 2021-05-14 | 2021-12-07 | 维沃移动通信有限公司 | Earphone, earphone interface circuit and electronic equipment |
| CN217546274U (en) * | 2021-12-31 | 2022-10-04 | 南京微智新科技有限公司 | Earphone POP sound elimination circuit and electronic equipment |
| CN114598770B (en) * | 2022-03-22 | 2024-06-21 | 维沃移动通信有限公司 | Earphone, electronic equipment, and control method and device of earphone |
-
2023
- 2023-11-03 CN CN202311451412.2A patent/CN117278904B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN205017561U (en) * | 2015-08-24 | 2016-02-03 | 上海与德通讯技术有限公司 | Electronic equipment and suppression circuit of earphone plug plosive thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117278904A (en) | 2023-12-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112399390B (en) | Method and related device for Bluetooth back-up connection | |
| CN113498124B (en) | SIM card and eSIM card switching method and electronic equipment | |
| CN111599358A (en) | Voice interaction method and electronic equipment | |
| WO2021129521A1 (en) | Bluetooth communication method and apparatus | |
| CN113937832B (en) | Charging cable, and identification method and system thereof | |
| CN110737493A (en) | theme switching method and device | |
| CN115086473B (en) | Sound channel selection system, method and related device | |
| CN109582976A (en) | A kind of interpretation method and electronic equipment based on voice communication | |
| CN111010693A (en) | A method and electronic device for providing wireless fidelity WiFi network access service | |
| CN107635069A (en) | UART and USB multiplexing circuit and mobile terminal | |
| CN113703849B (en) | Screen-casting application opening method and device | |
| WO2024131269A1 (en) | Audio circuit and control method therefor, electronic device, and audio system | |
| CN114498804A (en) | Electronic equipment and control circuit for starting up or waking up system | |
| CN116049055A (en) | Access identification method of electronic equipment interface and electronic equipment | |
| CN110955452A (en) | A non-intrusive interaction method and electronic device | |
| CN117335830B (en) | Wireless communication circuit, bluetooth communication switching method and electronic device | |
| US20250141884A1 (en) | Communication method, communication system, and electronic device | |
| WO2023179123A1 (en) | Bluetooth audio playback method, electronic device, and storage medium | |
| CN117278904B (en) | Headphone control circuit, headphone control method and electronic equipment | |
| CN110806994B (en) | Signal transmission method and device | |
| WO2025035744A1 (en) | Earphone power-off method and electronic device | |
| CN115412387B (en) | Audio playback method, system and electronic device | |
| WO2022179343A1 (en) | Menu list update method and electronic device | |
| CN116962953B (en) | Device connection detection circuit, audio channel switching method and electronic device | |
| CN117119349B (en) | Volume control method, graphic interface and related device |
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 | ||
| CP03 | Change of name, title or address | ||
| 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 |